GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( cf8451...dd8546 )
by
unknown
04:29
created

UnTagResources::withResourceId()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\Cassandra\V20190101;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AllocatePublicContactPoints allocatePublicContactPoints(array $options = [])
9
 * @method CreateBackupPlan createBackupPlan(array $options = [])
10
 * @method CreateCluster createCluster(array $options = [])
11
 * @method CreateDataCenter createDataCenter(array $options = [])
12
 * @method DeleteBackupPlan deleteBackupPlan(array $options = [])
13
 * @method DeleteCluster deleteCluster(array $options = [])
14
 * @method DeleteDataCenter deleteDataCenter(array $options = [])
15
 * @method DeleteNodeToolExecutionHistory deleteNodeToolExecutionHistory(array $options = [])
16
 * @method DescribeAccounts describeAccounts(array $options = [])
17
 * @method DescribeBackup describeBackup(array $options = [])
18
 * @method DescribeBackupPlan describeBackupPlan(array $options = [])
19
 * @method DescribeBackupPlans describeBackupPlans(array $options = [])
20
 * @method DescribeBackups describeBackups(array $options = [])
21
 * @method DescribeCluster describeCluster(array $options = [])
22
 * @method DescribeClusterDashboard describeClusterDashboard(array $options = [])
23
 * @method DescribeClusters describeClusters(array $options = [])
24
 * @method DescribeClusterStatus describeClusterStatus(array $options = [])
25
 * @method DescribeContactPoints describeContactPoints(array $options = [])
26
 * @method DescribeDataCenters describeDataCenters(array $options = [])
27
 * @method DescribeDeletedClusters describeDeletedClusters(array $options = [])
28
 * @method DescribeInstanceType describeInstanceType(array $options = [])
29
 * @method DescribeIpWhitelist describeIpWhitelist(array $options = [])
30
 * @method DescribeIpWhitelistGroups describeIpWhitelistGroups(array $options = [])
31
 * @method DescribeNodeToolExecutionHistories describeNodeToolExecutionHistories(array $options = [])
32
 * @method DescribeParameterModificationHistories describeParameterModificationHistories(array $options = [])
33
 * @method DescribeParameters describeParameters(array $options = [])
34
 * @method DescribeRegions describeRegions(array $options = [])
35
 * @method DescribeSecurityGroups describeSecurityGroups(array $options = [])
36
 * @method ExecuteNodeTool executeNodeTool(array $options = [])
37
 * @method GetCmsUrl getCmsUrl(array $options = [])
38
 * @method ListTagResources listTagResources(array $options = [])
39
 * @method ListTags listTags(array $options = [])
40
 * @method ModifyAccountPassword modifyAccountPassword(array $options = [])
41
 * @method ModifyBackupPlan modifyBackupPlan(array $options = [])
42
 * @method ModifyCluster modifyCluster(array $options = [])
43
 * @method ModifyDataCenter modifyDataCenter(array $options = [])
44
 * @method ModifyInstanceMaintainTime modifyInstanceMaintainTime(array $options = [])
45
 * @method ModifyInstanceType modifyInstanceType(array $options = [])
46
 * @method ModifyIpWhitelist modifyIpWhitelist(array $options = [])
47
 * @method ModifyIpWhitelistGroup modifyIpWhitelistGroup(array $options = [])
48
 * @method ModifyParameter modifyParameter(array $options = [])
49
 * @method ModifySecurityGroups modifySecurityGroups(array $options = [])
50
 * @method PurgeCluster purgeCluster(array $options = [])
51
 * @method RebootCluster rebootCluster(array $options = [])
52
 * @method ReleasePublicContactPoints releasePublicContactPoints(array $options = [])
53
 * @method ResizeDiskSize resizeDiskSize(array $options = [])
54
 * @method ResizeNodeCount resizeNodeCount(array $options = [])
55
 * @method TagResources tagResources(array $options = [])
56
 * @method UnTagResources unTagResources(array $options = [])
57
 * @method UpgradeClusterVersion upgradeClusterVersion(array $options = [])
58
 */
59
class CassandraApiResolver extends ApiResolver
60
{
61
}
62
63
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
64
{
65
    /** @var string */
66
    public $product = 'Cassandra';
67
68
    /** @var string */
69
    public $version = '2019-01-01';
70
71
    /** @var string */
72
    public $method = 'POST';
73
74
    /** @var string */
75
    public $serviceCode = 'Cassandra';
76
}
77
78
/**
79
 * @method string getDataCenterId()
80
 * @method $this withDataCenterId($value)
81
 * @method string getClusterId()
82
 * @method $this withClusterId($value)
83
 */
84
class AllocatePublicContactPoints extends Rpc
85
{
86
}
87
88
/**
89
 * @method string getRetentionPeriod()
90
 * @method $this withRetentionPeriod($value)
91
 * @method string getDataCenterId()
92
 * @method $this withDataCenterId($value)
93
 * @method string getActive()
94
 * @method $this withActive($value)
95
 * @method string getClusterId()
96
 * @method $this withClusterId($value)
97
 * @method string getBackupTime()
98
 * @method $this withBackupTime($value)
99
 * @method string getBackupPeriod()
100
 * @method $this withBackupPeriod($value)
101
 */
102
class CreateBackupPlan extends Rpc
103
{
104
}
105
106
/**
107
 * @method string getClientToken()
108
 * @method $this withClientToken($value)
109
 * @method string getClusterName()
110
 * @method $this withClusterName($value)
111
 * @method string getPassword()
112
 * @method $this withPassword($value)
113
 * @method string getInstanceType()
114
 * @method $this withInstanceType($value)
115
 * @method string getAutoRenewPeriod()
116
 * @method $this withAutoRenewPeriod($value)
117
 * @method string getPeriod()
118
 * @method $this withPeriod($value)
119
 * @method string getMajorVersion()
120
 * @method $this withMajorVersion($value)
121
 * @method string getDiskSize()
122
 * @method $this withDiskSize($value)
123
 * @method string getDiskType()
124
 * @method $this withDiskType($value)
125
 * @method string getVswitchId()
126
 * @method $this withVswitchId($value)
127
 * @method string getPeriodUnit()
128
 * @method $this withPeriodUnit($value)
129
 * @method string getAutoRenew()
130
 * @method $this withAutoRenew($value)
131
 * @method string getDataCenterName()
132
 * @method $this withDataCenterName($value)
133
 * @method string getNodeCount()
134
 * @method $this withNodeCount($value)
135
 * @method string getVpcId()
136
 * @method $this withVpcId($value)
137
 * @method string getZoneId()
138
 * @method $this withZoneId($value)
139
 * @method string getPayType()
140
 * @method $this withPayType($value)
141
 */
142
class CreateCluster extends Rpc
143
{
144
}
145
146
/**
147
 * @method string getClientToken()
148
 * @method $this withClientToken($value)
149
 * @method string getInstanceType()
150
 * @method $this withInstanceType($value)
151
 * @method string getAutoRenewPeriod()
152
 * @method $this withAutoRenewPeriod($value)
153
 * @method string getPeriod()
154
 * @method $this withPeriod($value)
155
 * @method string getDiskSize()
156
 * @method $this withDiskSize($value)
157
 * @method string getClusterId()
158
 * @method $this withClusterId($value)
159
 * @method string getDiskType()
160
 * @method $this withDiskType($value)
161
 * @method string getVswitchId()
162
 * @method $this withVswitchId($value)
163
 * @method string getPeriodUnit()
164
 * @method $this withPeriodUnit($value)
165
 * @method string getAutoRenew()
166
 * @method $this withAutoRenew($value)
167
 * @method string getDataCenterName()
168
 * @method $this withDataCenterName($value)
169
 * @method string getNodeCount()
170
 * @method $this withNodeCount($value)
171
 * @method string getVpcId()
172
 * @method $this withVpcId($value)
173
 * @method string getZoneId()
174
 * @method $this withZoneId($value)
175
 * @method string getPayType()
176
 * @method $this withPayType($value)
177
 */
178
class CreateDataCenter extends Rpc
179
{
180
}
181
182
/**
183
 * @method string getDataCenterId()
184
 * @method $this withDataCenterId($value)
185
 * @method string getClusterId()
186
 * @method $this withClusterId($value)
187
 */
188
class DeleteBackupPlan extends Rpc
189
{
190
}
191
192
/**
193
 * @method string getClusterId()
194
 * @method $this withClusterId($value)
195
 */
196
class DeleteCluster extends Rpc
197
{
198
}
199
200
/**
201
 * @method string getDataCenterId()
202
 * @method $this withDataCenterId($value)
203
 * @method string getClusterId()
204
 * @method $this withClusterId($value)
205
 */
206
class DeleteDataCenter extends Rpc
207
{
208
}
209
210
/**
211
 * @method string getDataCenterId()
212
 * @method $this withDataCenterId($value)
213
 * @method string getClusterId()
214
 * @method $this withClusterId($value)
215
 * @method string getJobId()
216
 * @method $this withJobId($value)
217
 */
218
class DeleteNodeToolExecutionHistory extends Rpc
219
{
220
}
221
222
/**
223
 * @method string getClusterId()
224
 * @method $this withClusterId($value)
225
 */
226
class DescribeAccounts extends Rpc
227
{
228
}
229
230
/**
231
 * @method string getBackupType()
232
 * @method $this withBackupType($value)
233
 * @method string getBackupId()
234
 * @method $this withBackupId($value)
235
 * @method string getDataCenterId()
236
 * @method $this withDataCenterId($value)
237
 * @method string getClusterId()
238
 * @method $this withClusterId($value)
239
 */
240
class DescribeBackup extends Rpc
241
{
242
}
243
244
/**
245
 * @method string getDataCenterId()
246
 * @method $this withDataCenterId($value)
247
 * @method string getClusterId()
248
 * @method $this withClusterId($value)
249
 */
250
class DescribeBackupPlan extends Rpc
251
{
252
}
253
254
/**
255
 * @method string getClusterId()
256
 * @method $this withClusterId($value)
257
 */
258
class DescribeBackupPlans extends Rpc
259
{
260
}
261
262
/**
263
 * @method string getDataCenterId()
264
 * @method $this withDataCenterId($value)
265
 * @method string getClusterId()
266
 * @method $this withClusterId($value)
267
 * @method string getBackupType()
268
 * @method $this withBackupType($value)
269
 */
270
class DescribeBackups extends Rpc
271
{
272
}
273
274
/**
275
 * @method string getClusterId()
276
 * @method $this withClusterId($value)
277
 */
278
class DescribeCluster extends Rpc
279
{
280
}
281
282
/**
283
 * @method string getClusterId()
284
 * @method $this withClusterId($value)
285
 */
286
class DescribeClusterDashboard extends Rpc
287
{
288
}
289
290
/**
291
 * @method string getClusterName()
292
 * @method $this withClusterName($value)
293
 * @method string getPageNumber()
294
 * @method $this withPageNumber($value)
295
 * @method string getPageSize()
296
 * @method $this withPageSize($value)
297
 * @method array getTag()
298
 */
299
class DescribeClusters extends Rpc
300
{
301
302
    /**
303
     * @param array $tag
304
     *
305
     * @return $this
306
     */
307
	public function withTag(array $tag)
308
	{
309
	    $this->data['Tag'] = $tag;
310
		foreach ($tag as $depth1 => $depth1Value) {
311
			if(isset($depth1Value['Value'])){
312
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
313
			}
314
			if(isset($depth1Value['Key'])){
315
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
316
			}
317
		}
318
319
		return $this;
320
    }
321
}
322
323
/**
324
 * @method string getClusterId()
325
 * @method $this withClusterId($value)
326
 */
327
class DescribeClusterStatus extends Rpc
328
{
329
}
330
331
/**
332
 * @method string getClusterId()
333
 * @method $this withClusterId($value)
334
 */
335
class DescribeContactPoints extends Rpc
336
{
337
}
338
339
/**
340
 * @method string getClusterId()
341
 * @method $this withClusterId($value)
342
 */
343
class DescribeDataCenters extends Rpc
344
{
345
}
346
347
/**
348
 * @method string getPageNumber()
349
 * @method $this withPageNumber($value)
350
 * @method string getPageSize()
351
 * @method $this withPageSize($value)
352
 */
353
class DescribeDeletedClusters extends Rpc
354
{
355
}
356
357
/**
358
 * @method string getInstanceType()
359
 * @method $this withInstanceType($value)
360
 */
361
class DescribeInstanceType extends Rpc
362
{
363
}
364
365
/**
366
 * @method string getClusterId()
367
 * @method $this withClusterId($value)
368
 */
369
class DescribeIpWhitelist extends Rpc
370
{
371
}
372
373
/**
374
 * @method string getClusterId()
375
 * @method $this withClusterId($value)
376
 */
377
class DescribeIpWhitelistGroups extends Rpc
378
{
379
}
380
381
/**
382
 * @method string getClusterId()
383
 * @method $this withClusterId($value)
384
 * @method string getPageNumber()
385
 * @method $this withPageNumber($value)
386
 * @method string getPageSize()
387
 * @method $this withPageSize($value)
388
 */
389
class DescribeNodeToolExecutionHistories extends Rpc
390
{
391
}
392
393
/**
394
 * @method string getClusterId()
395
 * @method $this withClusterId($value)
396
 * @method string getPageNumber()
397
 * @method $this withPageNumber($value)
398
 * @method string getPageSize()
399
 * @method $this withPageSize($value)
400
 */
401
class DescribeParameterModificationHistories extends Rpc
402
{
403
}
404
405
/**
406
 * @method string getClusterId()
407
 * @method $this withClusterId($value)
408
 * @method string getPageNumber()
409
 * @method $this withPageNumber($value)
410
 * @method string getPageSize()
411
 * @method $this withPageSize($value)
412
 */
413
class DescribeParameters extends Rpc
414
{
415
}
416
417
/**
418
 * @method string getAcceptLanguage()
419
 * @method $this withAcceptLanguage($value)
420
 */
421
class DescribeRegions extends Rpc
422
{
423
}
424
425
/**
426
 * @method string getClusterId()
427
 * @method $this withClusterId($value)
428
 */
429
class DescribeSecurityGroups extends Rpc
430
{
431
}
432
433
/**
434
 * @method string getDataCenterId()
435
 * @method $this withDataCenterId($value)
436
 * @method string getClusterId()
437
 * @method $this withClusterId($value)
438
 * @method string getCommand()
439
 * @method $this withCommand($value)
440
 * @method string getArguments()
441
 * @method $this withArguments($value)
442
 */
443
class ExecuteNodeTool extends Rpc
444
{
445
}
446
447
/**
448
 * @method string getClusterId()
449
 * @method $this withClusterId($value)
450
 */
451
class GetCmsUrl extends Rpc
452
{
453
}
454
455
/**
456
 * @method string getNextToken()
457
 * @method $this withNextToken($value)
458
 * @method array getTag()
459
 * @method array getResourceId()
460
 */
461
class ListTagResources extends Rpc
462
{
463
464
    /**
465
     * @param array $tag
466
     *
467
     * @return $this
468
     */
469
	public function withTag(array $tag)
470
	{
471
	    $this->data['Tag'] = $tag;
472
		foreach ($tag as $depth1 => $depth1Value) {
473
			if(isset($depth1Value['Value'])){
474
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
475
			}
476
			if(isset($depth1Value['Key'])){
477
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
478
			}
479
		}
480
481
		return $this;
482
    }
483
484
    /**
485
     * @param array $resourceId
486
     *
487
     * @return $this
488
     */
489
	public function withResourceId(array $resourceId)
490
	{
491
	    $this->data['ResourceId'] = $resourceId;
492
		foreach ($resourceId as $i => $iValue) {
493
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
494
		}
495
496
		return $this;
497
    }
498
}
499
500
class ListTags extends Rpc
501
{
502
}
503
504
/**
505
 * @method string getClusterId()
506
 * @method $this withClusterId($value)
507
 * @method string getPassword()
508
 * @method $this withPassword($value)
509
 * @method string getAccount()
510
 * @method $this withAccount($value)
511
 */
512
class ModifyAccountPassword extends Rpc
513
{
514
}
515
516
/**
517
 * @method string getRetentionPeriod()
518
 * @method $this withRetentionPeriod($value)
519
 * @method string getDataCenterId()
520
 * @method $this withDataCenterId($value)
521
 * @method string getActive()
522
 * @method $this withActive($value)
523
 * @method string getClusterId()
524
 * @method $this withClusterId($value)
525
 * @method string getBackupTime()
526
 * @method $this withBackupTime($value)
527
 * @method string getBackupPeriod()
528
 * @method $this withBackupPeriod($value)
529
 */
530
class ModifyBackupPlan extends Rpc
531
{
532
}
533
534
/**
535
 * @method string getClusterName()
536
 * @method $this withClusterName($value)
537
 * @method string getClusterId()
538
 * @method $this withClusterId($value)
539
 */
540
class ModifyCluster extends Rpc
541
{
542
}
543
544
/**
545
 * @method string getDataCenterId()
546
 * @method $this withDataCenterId($value)
547
 * @method string getClusterId()
548
 * @method $this withClusterId($value)
549
 * @method string getDataCenterName()
550
 * @method $this withDataCenterName($value)
551
 */
552
class ModifyDataCenter extends Rpc
553
{
554
}
555
556
/**
557
 * @method string getClusterId()
558
 * @method $this withClusterId($value)
559
 * @method string getMaintainEndTime()
560
 * @method $this withMaintainEndTime($value)
561
 * @method string getMaintainStartTime()
562
 * @method $this withMaintainStartTime($value)
563
 */
564
class ModifyInstanceMaintainTime extends Rpc
565
{
566
}
567
568
/**
569
 * @method string getDataCenterId()
570
 * @method $this withDataCenterId($value)
571
 * @method string getClusterId()
572
 * @method $this withClusterId($value)
573
 * @method string getInstanceType()
574
 * @method $this withInstanceType($value)
575
 */
576
class ModifyInstanceType extends Rpc
577
{
578
}
579
580
/**
581
 * @method string getClusterId()
582
 * @method $this withClusterId($value)
583
 * @method string getIpList()
584
 * @method $this withIpList($value)
585
 */
586
class ModifyIpWhitelist extends Rpc
587
{
588
}
589
590
/**
591
 * @method string getIpList()
592
 * @method $this withIpList($value)
593
 * @method string getIpVersion()
594
 * @method $this withIpVersion($value)
595
 * @method string getClusterId()
596
 * @method $this withClusterId($value)
597
 * @method string getGroupName()
598
 * @method $this withGroupName($value)
599
 */
600
class ModifyIpWhitelistGroup extends Rpc
601
{
602
}
603
604
/**
605
 * @method string getClusterId()
606
 * @method $this withClusterId($value)
607
 * @method string getName()
608
 * @method $this withName($value)
609
 * @method string getValue()
610
 * @method $this withValue($value)
611
 */
612
class ModifyParameter extends Rpc
613
{
614
}
615
616
/**
617
 * @method string getClusterId()
618
 * @method $this withClusterId($value)
619
 * @method string getSecurityGroupIds()
620
 * @method $this withSecurityGroupIds($value)
621
 */
622
class ModifySecurityGroups extends Rpc
623
{
624
}
625
626
/**
627
 * @method string getClusterId()
628
 * @method $this withClusterId($value)
629
 */
630
class PurgeCluster extends Rpc
631
{
632
}
633
634
/**
635
 * @method string getClusterId()
636
 * @method $this withClusterId($value)
637
 */
638
class RebootCluster extends Rpc
639
{
640
}
641
642
/**
643
 * @method string getDataCenterId()
644
 * @method $this withDataCenterId($value)
645
 * @method string getClusterId()
646
 * @method $this withClusterId($value)
647
 */
648
class ReleasePublicContactPoints extends Rpc
649
{
650
}
651
652
/**
653
 * @method string getDiskSize()
654
 * @method $this withDiskSize($value)
655
 * @method string getDataCenterId()
656
 * @method $this withDataCenterId($value)
657
 * @method string getClusterId()
658
 * @method $this withClusterId($value)
659
 */
660
class ResizeDiskSize extends Rpc
661
{
662
}
663
664
/**
665
 * @method string getDataCenterId()
666
 * @method $this withDataCenterId($value)
667
 * @method string getClusterId()
668
 * @method $this withClusterId($value)
669
 * @method string getNodeCount()
670
 * @method $this withNodeCount($value)
671
 */
672
class ResizeNodeCount extends Rpc
673
{
674
}
675
676
/**
677
 * @method array getResourceId()
678
 * @method array getTag()
679
 */
680
class TagResources extends Rpc
681
{
682
683
    /**
684
     * @param array $resourceId
685
     *
686
     * @return $this
687
     */
688
	public function withResourceId(array $resourceId)
689
	{
690
	    $this->data['ResourceId'] = $resourceId;
691
		foreach ($resourceId as $i => $iValue) {
692
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
693
		}
694
695
		return $this;
696
    }
697
698
    /**
699
     * @param array $tag
700
     *
701
     * @return $this
702
     */
703
	public function withTag(array $tag)
704
	{
705
	    $this->data['Tag'] = $tag;
706
		foreach ($tag as $depth1 => $depth1Value) {
707
			if(isset($depth1Value['Value'])){
708
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
709
			}
710
			if(isset($depth1Value['Key'])){
711
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
712
			}
713
		}
714
715
		return $this;
716
    }
717
}
718
719
/**
720
 * @method string getAll()
721
 * @method $this withAll($value)
722
 * @method array getResourceId()
723
 * @method array getTagKey()
724
 */
725
class UnTagResources extends Rpc
726
{
727
728
    /**
729
     * @param array $resourceId
730
     *
731
     * @return $this
732
     */
733
	public function withResourceId(array $resourceId)
734
	{
735
	    $this->data['ResourceId'] = $resourceId;
736
		foreach ($resourceId as $i => $iValue) {
737
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
738
		}
739
740
		return $this;
741
    }
742
743
    /**
744
     * @param array $tagKey
745
     *
746
     * @return $this
747
     */
748
	public function withTagKey(array $tagKey)
749
	{
750
	    $this->data['TagKey'] = $tagKey;
751
		foreach ($tagKey as $i => $iValue) {
752
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
753
		}
754
755
		return $this;
756
    }
757
}
758
759
/**
760
 * @method string getClusterId()
761
 * @method $this withClusterId($value)
762
 */
763
class UpgradeClusterVersion extends Rpc
764
{
765
}
766