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 ( 3ab1a4...a3068b )
by
unknown
06:13
created

UntagResources   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 9
c 1
b 0
f 0
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withTagKey() 0 8 2
A withResourceId() 0 8 2
1
<?php
2
3
namespace AlibabaCloud\Ddosbgp\V20180720;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddIp addIp(array $options = [])
9
 * @method CheckAccessLogAuth checkAccessLogAuth(array $options = [])
10
 * @method CheckGrant checkGrant(array $options = [])
11
 * @method ConfigSchedruleOnDemand configSchedruleOnDemand(array $options = [])
12
 * @method CreateSchedruleOnDemand createSchedruleOnDemand(array $options = [])
13
 * @method DeleteBlackhole deleteBlackhole(array $options = [])
14
 * @method DeleteIp deleteIp(array $options = [])
15
 * @method DeleteSchedruleOnDemand deleteSchedruleOnDemand(array $options = [])
16
 * @method DescribeDdosEvent describeDdosEvent(array $options = [])
17
 * @method DescribeExcpetionCount describeExcpetionCount(array $options = [])
18
 * @method DescribeInstanceList describeInstanceList(array $options = [])
19
 * @method DescribeInstanceSpecs describeInstanceSpecs(array $options = [])
20
 * @method DescribeOnDemandDdosEvent describeOnDemandDdosEvent(array $options = [])
21
 * @method DescribeOnDemandInstanceStatus describeOnDemandInstanceStatus(array $options = [])
22
 * @method DescribeOpEntities describeOpEntities(array $options = [])
23
 * @method DescribePackIpList describePackIpList(array $options = [])
24
 * @method DescribeRegions describeRegions(array $options = [])
25
 * @method DescribeTraffic describeTraffic(array $options = [])
26
 * @method GetSlsOpenStatus getSlsOpenStatus(array $options = [])
27
 * @method ListOpenedAccessLogInstances listOpenedAccessLogInstances(array $options = [])
28
 * @method ListTagKeys listTagKeys(array $options = [])
29
 * @method ListTagResources listTagResources(array $options = [])
30
 * @method ModifyRemark modifyRemark(array $options = [])
31
 * @method QuerySchedruleOnDemand querySchedruleOnDemand(array $options = [])
32
 * @method SetInstanceModeOnDemand setInstanceModeOnDemand(array $options = [])
33
 * @method TagResources tagResources(array $options = [])
34
 * @method UntagResources untagResources(array $options = [])
35
 */
36
class DdosbgpApiResolver extends ApiResolver
37
{
38
}
39
40
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
41
{
42
    /** @var string */
43
    public $product = 'ddosbgp';
44
45
    /** @var string */
46
    public $version = '2018-07-20';
47
48
    /** @var string */
49
    public $method = 'POST';
50
}
51
52
/**
53
 * @method string getIpList()
54
 * @method $this withIpList($value)
55
 * @method string getResourceGroupId()
56
 * @method $this withResourceGroupId($value)
57
 * @method string getInstanceId()
58
 * @method $this withInstanceId($value)
59
 * @method string getSourceIp()
60
 * @method $this withSourceIp($value)
61
 */
62
class AddIp extends Rpc
63
{
64
}
65
66
/**
67
 * @method string getResourceGroupId()
68
 * @method $this withResourceGroupId($value)
69
 * @method string getSourceIp()
70
 * @method $this withSourceIp($value)
71
 */
72
class CheckAccessLogAuth extends Rpc
73
{
74
}
75
76
/**
77
 * @method string getResourceGroupId()
78
 * @method $this withResourceGroupId($value)
79
 * @method string getSourceIp()
80
 * @method $this withSourceIp($value)
81
 */
82
class CheckGrant extends Rpc
83
{
84
85
    /** @var string */
86
    public $method = 'GET';
87
}
88
89
/**
90
 * @method string getTimeZone()
91
 * @method $this withTimeZone($value)
92
 * @method string getRuleName()
93
 * @method $this withRuleName($value)
94
 * @method string getRuleConditionMbps()
95
 * @method $this withRuleConditionMbps($value)
96
 * @method string getRuleAction()
97
 * @method $this withRuleAction($value)
98
 * @method string getSourceIp()
99
 * @method $this withSourceIp($value)
100
 * @method string getRuleUndoMode()
101
 * @method $this withRuleUndoMode($value)
102
 * @method string getRuleUndoEndTime()
103
 * @method $this withRuleUndoEndTime($value)
104
 * @method string getInstanceId()
105
 * @method $this withInstanceId($value)
106
 * @method string getRuleUndoBeginTime()
107
 * @method $this withRuleUndoBeginTime($value)
108
 * @method string getRuleConditionCnt()
109
 * @method $this withRuleConditionCnt($value)
110
 * @method string getRuleSwitch()
111
 * @method $this withRuleSwitch($value)
112
 * @method string getRuleConditionKpps()
113
 * @method $this withRuleConditionKpps($value)
114
 */
115
class ConfigSchedruleOnDemand extends Rpc
116
{
117
}
118
119
/**
120
 * @method string getTimeZone()
121
 * @method $this withTimeZone($value)
122
 * @method string getRuleName()
123
 * @method $this withRuleName($value)
124
 * @method string getRuleConditionMbps()
125
 * @method $this withRuleConditionMbps($value)
126
 * @method string getRuleAction()
127
 * @method $this withRuleAction($value)
128
 * @method string getSourceIp()
129
 * @method $this withSourceIp($value)
130
 * @method string getRuleUndoMode()
131
 * @method $this withRuleUndoMode($value)
132
 * @method string getRuleUndoEndTime()
133
 * @method $this withRuleUndoEndTime($value)
134
 * @method string getInstanceId()
135
 * @method $this withInstanceId($value)
136
 * @method string getRuleUndoBeginTime()
137
 * @method $this withRuleUndoBeginTime($value)
138
 * @method string getRuleConditionCnt()
139
 * @method $this withRuleConditionCnt($value)
140
 * @method string getRuleSwitch()
141
 * @method $this withRuleSwitch($value)
142
 * @method string getRuleConditionKpps()
143
 * @method $this withRuleConditionKpps($value)
144
 */
145
class CreateSchedruleOnDemand extends Rpc
146
{
147
}
148
149
/**
150
 * @method string getIp()
151
 * @method $this withIp($value)
152
 * @method string getResourceGroupId()
153
 * @method $this withResourceGroupId($value)
154
 * @method string getInstanceId()
155
 * @method $this withInstanceId($value)
156
 * @method string getSourceIp()
157
 * @method $this withSourceIp($value)
158
 */
159
class DeleteBlackhole extends Rpc
160
{
161
}
162
163
/**
164
 * @method string getIpList()
165
 * @method $this withIpList($value)
166
 * @method string getResourceGroupId()
167
 * @method $this withResourceGroupId($value)
168
 * @method string getInstanceId()
169
 * @method $this withInstanceId($value)
170
 * @method string getSourceIp()
171
 * @method $this withSourceIp($value)
172
 */
173
class DeleteIp extends Rpc
174
{
175
}
176
177
/**
178
 * @method string getRuleName()
179
 * @method $this withRuleName($value)
180
 * @method string getInstanceId()
181
 * @method $this withInstanceId($value)
182
 * @method string getSourceIp()
183
 * @method $this withSourceIp($value)
184
 */
185
class DeleteSchedruleOnDemand extends Rpc
186
{
187
}
188
189
/**
190
 * @method string getStartTime()
191
 * @method $this withStartTime($value)
192
 * @method string getResourceGroupId()
193
 * @method $this withResourceGroupId($value)
194
 * @method string getSourceIp()
195
 * @method $this withSourceIp($value)
196
 * @method string getPageSize()
197
 * @method $this withPageSize($value)
198
 * @method string getIp()
199
 * @method $this withIp($value)
200
 * @method string getEndTime()
201
 * @method $this withEndTime($value)
202
 * @method string getInstanceId()
203
 * @method $this withInstanceId($value)
204
 * @method string getPageNo()
205
 * @method $this withPageNo($value)
206
 */
207
class DescribeDdosEvent extends Rpc
208
{
209
}
210
211
/**
212
 * @method string getResourceGroupId()
213
 * @method $this withResourceGroupId($value)
214
 * @method string getSourceIp()
215
 * @method $this withSourceIp($value)
216
 */
217
class DescribeExcpetionCount extends Rpc
218
{
219
}
220
221
/**
222
 * @method string getRemark()
223
 * @method $this withRemark($value)
224
 * @method string getResourceGroupId()
225
 * @method $this withResourceGroupId($value)
226
 * @method string getSourceIp()
227
 * @method $this withSourceIp($value)
228
 * @method string getPageSize()
229
 * @method $this withPageSize($value)
230
 * @method string getInstanceType()
231
 * @method $this withInstanceType($value)
232
 * @method string getIpVersion()
233
 * @method $this withIpVersion($value)
234
 * @method array getTag()
235
 * @method string getIp()
236
 * @method $this withIp($value)
237
 * @method string getOrderby()
238
 * @method $this withOrderby($value)
239
 * @method string getInstanceIdList()
240
 * @method $this withInstanceIdList($value)
241
 * @method string getPageNo()
242
 * @method $this withPageNo($value)
243
 * @method string getOrderdire()
244
 * @method $this withOrderdire($value)
245
 * @method string getInstanceTypeList()
246
 * @method $this withInstanceTypeList($value)
247
 */
248
class DescribeInstanceList extends Rpc
249
{
250
251
    /**
252
     * @param array $tag
253
     *
254
     * @return $this
255
     */
256
	public function withTag(array $tag)
257
	{
258
	    $this->data['Tag'] = $tag;
259
		foreach ($tag as $depth1 => $depth1Value) {
260
			if(isset($depth1Value['Value'])){
261
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
262
			}
263
			if(isset($depth1Value['Key'])){
264
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
265
			}
266
		}
267
268
		return $this;
269
    }
270
}
271
272
/**
273
 * @method string getResourceGroupId()
274
 * @method $this withResourceGroupId($value)
275
 * @method string getSourceIp()
276
 * @method $this withSourceIp($value)
277
 * @method string getInstanceIdList()
278
 * @method $this withInstanceIdList($value)
279
 * @method string getLang()
280
 * @method $this withLang($value)
281
 */
282
class DescribeInstanceSpecs extends Rpc
283
{
284
}
285
286
/**
287
 * @method string getStartTime()
288
 * @method $this withStartTime($value)
289
 * @method string getResourceGroupId()
290
 * @method $this withResourceGroupId($value)
291
 * @method string getSourceIp()
292
 * @method $this withSourceIp($value)
293
 * @method string getPageSize()
294
 * @method $this withPageSize($value)
295
 * @method string getIp()
296
 * @method $this withIp($value)
297
 * @method string getEndTime()
298
 * @method $this withEndTime($value)
299
 * @method string getInstanceId()
300
 * @method $this withInstanceId($value)
301
 * @method string getPageNo()
302
 * @method $this withPageNo($value)
303
 */
304
class DescribeOnDemandDdosEvent extends Rpc
305
{
306
}
307
308
/**
309
 * @method string getSourceIp()
310
 * @method $this withSourceIp($value)
311
 * @method array getInstanceIdList()
312
 */
313
class DescribeOnDemandInstanceStatus extends Rpc
314
{
315
316
    /**
317
     * @param array $instanceIdList
318
     *
319
     * @return $this
320
     */
321
	public function withInstanceIdList(array $instanceIdList)
322
	{
323
	    $this->data['InstanceIdList'] = $instanceIdList;
324
		foreach ($instanceIdList as $i => $iValue) {
325
			$this->options['query']['InstanceIdList.' . ($i + 1)] = $iValue;
326
		}
327
328
		return $this;
329
    }
330
}
331
332
/**
333
 * @method string getStartTime()
334
 * @method $this withStartTime($value)
335
 * @method string getResourceGroupId()
336
 * @method $this withResourceGroupId($value)
337
 * @method string getSourceIp()
338
 * @method $this withSourceIp($value)
339
 * @method string getPageSize()
340
 * @method $this withPageSize($value)
341
 * @method string getLang()
342
 * @method $this withLang($value)
343
 * @method string getEndTime()
344
 * @method $this withEndTime($value)
345
 * @method string getOrderBy()
346
 * @method $this withOrderBy($value)
347
 * @method string getCurrentPage()
348
 * @method $this withCurrentPage($value)
349
 * @method string getOrderDir()
350
 * @method $this withOrderDir($value)
351
 * @method string getInstanceId()
352
 * @method $this withInstanceId($value)
353
 */
354
class DescribeOpEntities extends Rpc
355
{
356
}
357
358
/**
359
 * @method string getResourceGroupId()
360
 * @method $this withResourceGroupId($value)
361
 * @method string getSourceIp()
362
 * @method $this withSourceIp($value)
363
 * @method string getPageSize()
364
 * @method $this withPageSize($value)
365
 * @method string getProductName()
366
 * @method $this withProductName($value)
367
 * @method string getIp()
368
 * @method $this withIp($value)
369
 * @method string getInstanceId()
370
 * @method $this withInstanceId($value)
371
 * @method string getPageNo()
372
 * @method $this withPageNo($value)
373
 */
374
class DescribePackIpList extends Rpc
375
{
376
}
377
378
/**
379
 * @method string getResourceGroupId()
380
 * @method $this withResourceGroupId($value)
381
 * @method string getSourceIp()
382
 * @method $this withSourceIp($value)
383
 */
384
class DescribeRegions extends Rpc
385
{
386
}
387
388
/**
389
 * @method string getStartTime()
390
 * @method $this withStartTime($value)
391
 * @method string getResourceGroupId()
392
 * @method $this withResourceGroupId($value)
393
 * @method string getSourceIp()
394
 * @method $this withSourceIp($value)
395
 * @method string getIp()
396
 * @method $this withIp($value)
397
 * @method string getEndTime()
398
 * @method $this withEndTime($value)
399
 * @method string getIpnet()
400
 * @method $this withIpnet($value)
401
 * @method string getFlowType()
402
 * @method $this withFlowType($value)
403
 * @method string getInstanceId()
404
 * @method $this withInstanceId($value)
405
 * @method string getInterval()
406
 * @method $this withInterval($value)
407
 */
408
class DescribeTraffic extends Rpc
409
{
410
}
411
412
/**
413
 * @method string getResourceGroupId()
414
 * @method $this withResourceGroupId($value)
415
 * @method string getSourceIp()
416
 * @method $this withSourceIp($value)
417
 */
418
class GetSlsOpenStatus extends Rpc
419
{
420
}
421
422
/**
423
 * @method string getPageNumber()
424
 * @method $this withPageNumber($value)
425
 * @method string getResourceGroupId()
426
 * @method $this withResourceGroupId($value)
427
 * @method string getSourceIp()
428
 * @method $this withSourceIp($value)
429
 * @method string getPageSize()
430
 * @method $this withPageSize($value)
431
 */
432
class ListOpenedAccessLogInstances extends Rpc
433
{
434
}
435
436
/**
437
 * @method string getTagOwnerUid()
438
 * @method $this withTagOwnerUid($value)
439
 * @method string getResourceGroupId()
440
 * @method $this withResourceGroupId($value)
441
 * @method string getSourceIp()
442
 * @method $this withSourceIp($value)
443
 * @method string getScope()
444
 * @method $this withScope($value)
445
 * @method string getPageSize()
446
 * @method $this withPageSize($value)
447
 * @method string getTagOwnerBid()
448
 * @method $this withTagOwnerBid($value)
449
 * @method string getCurrentPage()
450
 * @method $this withCurrentPage($value)
451
 * @method string getResourceType()
452
 * @method $this withResourceType($value)
453
 */
454
class ListTagKeys extends Rpc
455
{
456
}
457
458
/**
459
 * @method string getTagOwnerUid()
460
 * @method $this withTagOwnerUid($value)
461
 * @method string getResourceGroupId()
462
 * @method $this withResourceGroupId($value)
463
 * @method string getSourceIp()
464
 * @method $this withSourceIp($value)
465
 * @method string getNextToken()
466
 * @method $this withNextToken($value)
467
 * @method string getScope()
468
 * @method $this withScope($value)
469
 * @method string getTagOwnerBid()
470
 * @method $this withTagOwnerBid($value)
471
 * @method array getTag()
472
 * @method array getResourceId()
473
 * @method string getResourceType()
474
 * @method $this withResourceType($value)
475
 */
476
class ListTagResources extends Rpc
477
{
478
479
    /**
480
     * @param array $tag
481
     *
482
     * @return $this
483
     */
484
	public function withTag(array $tag)
485
	{
486
	    $this->data['Tag'] = $tag;
487
		foreach ($tag as $depth1 => $depth1Value) {
488
			if(isset($depth1Value['Value'])){
489
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
490
			}
491
			if(isset($depth1Value['Key'])){
492
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
493
			}
494
		}
495
496
		return $this;
497
    }
498
499
    /**
500
     * @param array $resourceId
501
     *
502
     * @return $this
503
     */
504
	public function withResourceId(array $resourceId)
505
	{
506
	    $this->data['ResourceId'] = $resourceId;
507
		foreach ($resourceId as $i => $iValue) {
508
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
509
		}
510
511
		return $this;
512
    }
513
}
514
515
/**
516
 * @method string getRemark()
517
 * @method $this withRemark($value)
518
 * @method string getResourceGroupId()
519
 * @method $this withResourceGroupId($value)
520
 * @method string getInstanceId()
521
 * @method $this withInstanceId($value)
522
 * @method string getSourceIp()
523
 * @method $this withSourceIp($value)
524
 * @method string getLang()
525
 * @method $this withLang($value)
526
 */
527
class ModifyRemark extends Rpc
528
{
529
}
530
531
/**
532
 * @method string getInstanceId()
533
 * @method $this withInstanceId($value)
534
 * @method string getSourceIp()
535
 * @method $this withSourceIp($value)
536
 */
537
class QuerySchedruleOnDemand extends Rpc
538
{
539
}
540
541
/**
542
 * @method string getMode()
543
 * @method $this withMode($value)
544
 * @method string getSourceIp()
545
 * @method $this withSourceIp($value)
546
 * @method array getInstanceIdList()
547
 */
548
class SetInstanceModeOnDemand extends Rpc
549
{
550
551
    /**
552
     * @param array $instanceIdList
553
     *
554
     * @return $this
555
     */
556
	public function withInstanceIdList(array $instanceIdList)
557
	{
558
	    $this->data['InstanceIdList'] = $instanceIdList;
559
		foreach ($instanceIdList as $i => $iValue) {
560
			$this->options['query']['InstanceIdList.' . ($i + 1)] = $iValue;
561
		}
562
563
		return $this;
564
    }
565
}
566
567
/**
568
 * @method string getTagOwnerUid()
569
 * @method $this withTagOwnerUid($value)
570
 * @method string getResourceGroupId()
571
 * @method $this withResourceGroupId($value)
572
 * @method string getSourceIp()
573
 * @method $this withSourceIp($value)
574
 * @method string getScope()
575
 * @method $this withScope($value)
576
 * @method string getTagOwnerBid()
577
 * @method $this withTagOwnerBid($value)
578
 * @method array getTag()
579
 * @method array getResourceId()
580
 * @method string getResourceType()
581
 * @method $this withResourceType($value)
582
 */
583
class TagResources extends Rpc
584
{
585
586
    /**
587
     * @param array $tag
588
     *
589
     * @return $this
590
     */
591
	public function withTag(array $tag)
592
	{
593
	    $this->data['Tag'] = $tag;
594
		foreach ($tag as $depth1 => $depth1Value) {
595
			if(isset($depth1Value['Value'])){
596
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
597
			}
598
			if(isset($depth1Value['Key'])){
599
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
600
			}
601
		}
602
603
		return $this;
604
    }
605
606
    /**
607
     * @param array $resourceId
608
     *
609
     * @return $this
610
     */
611
	public function withResourceId(array $resourceId)
612
	{
613
	    $this->data['ResourceId'] = $resourceId;
614
		foreach ($resourceId as $i => $iValue) {
615
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
616
		}
617
618
		return $this;
619
    }
620
}
621
622
/**
623
 * @method string getTagOwnerUid()
624
 * @method $this withTagOwnerUid($value)
625
 * @method string getResourceGroupId()
626
 * @method $this withResourceGroupId($value)
627
 * @method string getSourceIp()
628
 * @method $this withSourceIp($value)
629
 * @method string getTagOwnerBid()
630
 * @method $this withTagOwnerBid($value)
631
 * @method string getAll()
632
 * @method $this withAll($value)
633
 * @method array getResourceId()
634
 * @method string getResourceType()
635
 * @method $this withResourceType($value)
636
 * @method array getTagKey()
637
 */
638
class UntagResources extends Rpc
639
{
640
641
    /**
642
     * @param array $resourceId
643
     *
644
     * @return $this
645
     */
646
	public function withResourceId(array $resourceId)
647
	{
648
	    $this->data['ResourceId'] = $resourceId;
649
		foreach ($resourceId as $i => $iValue) {
650
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
651
		}
652
653
		return $this;
654
    }
655
656
    /**
657
     * @param array $tagKey
658
     *
659
     * @return $this
660
     */
661
	public function withTagKey(array $tagKey)
662
	{
663
	    $this->data['TagKey'] = $tagKey;
664
		foreach ($tagKey as $i => $iValue) {
665
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
666
		}
667
668
		return $this;
669
    }
670
}
671