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 ( 8dfbcc...cbc315 )
by
unknown
06:17
created

UpdateIpSets   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A withIpSets() 0 13 4
1
<?php
2
3
namespace AlibabaCloud\Ga\V20191120;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddEntriesToAcl addEntriesToAcl(array $options = [])
9
 * @method AssociateAclsWithListener associateAclsWithListener(array $options = [])
10
 * @method AttachDdosToAccelerator attachDdosToAccelerator(array $options = [])
11
 * @method AttachLogStoreToEndpointGroup attachLogStoreToEndpointGroup(array $options = [])
12
 * @method BandwidthPackageAddAccelerator bandwidthPackageAddAccelerator(array $options = [])
13
 * @method BandwidthPackageRemoveAccelerator bandwidthPackageRemoveAccelerator(array $options = [])
14
 * @method ConfigEndpointProbe configEndpointProbe(array $options = [])
15
 * @method CreateAccelerator createAccelerator(array $options = [])
16
 * @method CreateAcl createAcl(array $options = [])
17
 * @method CreateBandwidthPackage createBandwidthPackage(array $options = [])
18
 * @method CreateEndpointGroup createEndpointGroup(array $options = [])
19
 * @method CreateForwardingRules createForwardingRules(array $options = [])
20
 * @method CreateIpSets createIpSets(array $options = [])
21
 * @method CreateListener createListener(array $options = [])
22
 * @method DeleteAccelerator deleteAccelerator(array $options = [])
23
 * @method DeleteAcl deleteAcl(array $options = [])
24
 * @method DeleteBandwidthPackage deleteBandwidthPackage(array $options = [])
25
 * @method DeleteEndpointGroup deleteEndpointGroup(array $options = [])
26
 * @method DeleteForwardingRules deleteForwardingRules(array $options = [])
27
 * @method DeleteIpSet deleteIpSet(array $options = [])
28
 * @method DeleteIpSets deleteIpSets(array $options = [])
29
 * @method DeleteListener deleteListener(array $options = [])
30
 * @method DescribeAccelerator describeAccelerator(array $options = [])
31
 * @method DescribeBandwidthPackage describeBandwidthPackage(array $options = [])
32
 * @method DescribeEndpointGroup describeEndpointGroup(array $options = [])
33
 * @method DescribeIpSet describeIpSet(array $options = [])
34
 * @method DescribeListener describeListener(array $options = [])
35
 * @method DescribeRegions describeRegions(array $options = [])
36
 * @method DetachDdosFromAccelerator detachDdosFromAccelerator(array $options = [])
37
 * @method DetachLogStoreFromEndpointGroup detachLogStoreFromEndpointGroup(array $options = [])
38
 * @method DissociateAclsFromListener dissociateAclsFromListener(array $options = [])
39
 * @method GetAcl getAcl(array $options = [])
40
 * @method ListAccelerateAreas listAccelerateAreas(array $options = [])
41
 * @method ListAccelerators listAccelerators(array $options = [])
42
 * @method ListAcls listAcls(array $options = [])
43
 * @method ListAvailableAccelerateAreas listAvailableAccelerateAreas(array $options = [])
44
 * @method ListAvailableBusiRegions listAvailableBusiRegions(array $options = [])
45
 * @method ListBandwidthackages listBandwidthackages(array $options = [])
46
 * @method ListBandwidthPackages listBandwidthPackages(array $options = [])
47
 * @method ListBusiRegions listBusiRegions(array $options = [])
48
 * @method ListEndpointGroups listEndpointGroups(array $options = [])
49
 * @method ListForwardingRules listForwardingRules(array $options = [])
50
 * @method ListIpSets listIpSets(array $options = [])
51
 * @method ListListeners listListeners(array $options = [])
52
 * @method RemoveEntriesFromAcl removeEntriesFromAcl(array $options = [])
53
 * @method ReplaceBandwidthPackage replaceBandwidthPackage(array $options = [])
54
 * @method UpdateAccelerator updateAccelerator(array $options = [])
55
 * @method UpdateAclAttribute updateAclAttribute(array $options = [])
56
 * @method UpdateBandwidthPackage updateBandwidthPackage(array $options = [])
57
 * @method UpdateEndpointGroup updateEndpointGroup(array $options = [])
58
 * @method UpdateEndpointGroupAttribute updateEndpointGroupAttribute(array $options = [])
59
 * @method UpdateForwardingRules updateForwardingRules(array $options = [])
60
 * @method UpdateIpSet updateIpSet(array $options = [])
61
 * @method UpdateIpSets updateIpSets(array $options = [])
62
 * @method UpdateListener updateListener(array $options = [])
63
 */
64
class GaApiResolver extends ApiResolver
65
{
66
}
67
68
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
69
{
70
    /** @var string */
71
    public $product = 'Ga';
72
73
    /** @var string */
74
    public $version = '2019-11-20';
75
76
    /** @var string */
77
    public $method = 'POST';
78
79
    /** @var string */
80
    public $serviceCode = 'ga';
81
}
82
83
/**
84
 * @method string getAclId()
85
 * @method $this withAclId($value)
86
 * @method string getDryRun()
87
 * @method $this withDryRun($value)
88
 * @method string getClientToken()
89
 * @method $this withClientToken($value)
90
 * @method array getAclEntries()
91
 */
92
class AddEntriesToAcl extends Rpc
93
{
94
95
    /**
96
     * @param array $aclEntries
97
     *
98
     * @return $this
99
     */
100
	public function withAclEntries(array $aclEntries)
101
	{
102
	    $this->data['AclEntries'] = $aclEntries;
103
		foreach ($aclEntries as $depth1 => $depth1Value) {
104
			if(isset($depth1Value['Entry'])){
105
				$this->options['query']['AclEntries.' . ($depth1 + 1) . '.Entry'] = $depth1Value['Entry'];
106
			}
107
			if(isset($depth1Value['EntryDescription'])){
108
				$this->options['query']['AclEntries.' . ($depth1 + 1) . '.EntryDescription'] = $depth1Value['EntryDescription'];
109
			}
110
		}
111
112
		return $this;
113
    }
114
}
115
116
/**
117
 * @method string getDryRun()
118
 * @method $this withDryRun($value)
119
 * @method string getClientToken()
120
 * @method $this withClientToken($value)
121
 * @method array getAclIds()
122
 * @method string getAclType()
123
 * @method $this withAclType($value)
124
 * @method string getListenerId()
125
 * @method $this withListenerId($value)
126
 */
127
class AssociateAclsWithListener extends Rpc
128
{
129
130
    /**
131
     * @param array $aclIds
132
     *
133
     * @return $this
134
     */
135
	public function withAclIds(array $aclIds)
136
	{
137
	    $this->data['AclIds'] = $aclIds;
138
		foreach ($aclIds as $i => $iValue) {
139
			$this->options['query']['AclIds.' . ($i + 1)] = $iValue;
140
		}
141
142
		return $this;
143
    }
144
}
145
146
/**
147
 * @method string getDdosId()
148
 * @method $this withDdosId($value)
149
 * @method string getDdosRegionId()
150
 * @method $this withDdosRegionId($value)
151
 * @method string getAcceleratorId()
152
 * @method $this withAcceleratorId($value)
153
 */
154
class AttachDdosToAccelerator extends Rpc
155
{
156
}
157
158
/**
159
 * @method string getClientToken()
160
 * @method $this withClientToken($value)
161
 * @method string getSlsLogStoreName()
162
 * @method $this withSlsLogStoreName($value)
163
 * @method string getListenerId()
164
 * @method $this withListenerId($value)
165
 * @method array getEndpointGroupIds()
166
 * @method string getSlsProjectName()
167
 * @method $this withSlsProjectName($value)
168
 * @method string getSlsRegionId()
169
 * @method $this withSlsRegionId($value)
170
 * @method string getAcceleratorId()
171
 * @method $this withAcceleratorId($value)
172
 */
173
class AttachLogStoreToEndpointGroup extends Rpc
174
{
175
176
    /**
177
     * @param array $endpointGroupIds
178
     *
179
     * @return $this
180
     */
181
	public function withEndpointGroupIds(array $endpointGroupIds)
182
	{
183
	    $this->data['EndpointGroupIds'] = $endpointGroupIds;
184
		foreach ($endpointGroupIds as $i => $iValue) {
185
			$this->options['query']['EndpointGroupIds.' . ($i + 1)] = $iValue;
186
		}
187
188
		return $this;
189
    }
190
}
191
192
/**
193
 * @method string getBandwidthPackageId()
194
 * @method $this withBandwidthPackageId($value)
195
 * @method string getAcceleratorId()
196
 * @method $this withAcceleratorId($value)
197
 */
198
class BandwidthPackageAddAccelerator extends Rpc
199
{
200
}
201
202
/**
203
 * @method string getBandwidthPackageId()
204
 * @method $this withBandwidthPackageId($value)
205
 * @method string getAcceleratorId()
206
 * @method $this withAcceleratorId($value)
207
 */
208
class BandwidthPackageRemoveAccelerator extends Rpc
209
{
210
}
211
212
/**
213
 * @method string getClientToken()
214
 * @method $this withClientToken($value)
215
 * @method string getEndpoint()
216
 * @method $this withEndpoint($value)
217
 * @method string getEndpointType()
218
 * @method $this withEndpointType($value)
219
 * @method string getEnable()
220
 * @method $this withEnable($value)
221
 * @method string getProbeProtocol()
222
 * @method $this withProbeProtocol($value)
223
 * @method string getProbePort()
224
 * @method $this withProbePort($value)
225
 * @method string getEndpointGroupId()
226
 * @method $this withEndpointGroupId($value)
227
 */
228
class ConfigEndpointProbe extends Rpc
229
{
230
}
231
232
/**
233
 * @method string getAutoPay()
234
 * @method $this withAutoPay($value)
235
 * @method string getPromotionOptionNo()
236
 * @method $this withPromotionOptionNo($value)
237
 * @method string getClientToken()
238
 * @method $this withClientToken($value)
239
 * @method string getAutoUseCoupon()
240
 * @method $this withAutoUseCoupon($value)
241
 * @method string getSpec()
242
 * @method $this withSpec($value)
243
 * @method string getDuration()
244
 * @method $this withDuration($value)
245
 * @method string getName()
246
 * @method $this withName($value)
247
 * @method string getPricingCycle()
248
 * @method $this withPricingCycle($value)
249
 */
250
class CreateAccelerator extends Rpc
251
{
252
}
253
254
/**
255
 * @method string getDryRun()
256
 * @method $this withDryRun($value)
257
 * @method string getAclName()
258
 * @method $this withAclName($value)
259
 * @method string getClientToken()
260
 * @method $this withClientToken($value)
261
 * @method array getAclEntries()
262
 * @method string getAddressIPVersion()
263
 * @method $this withAddressIPVersion($value)
264
 */
265
class CreateAcl extends Rpc
266
{
267
268
    /**
269
     * @param array $aclEntries
270
     *
271
     * @return $this
272
     */
273
	public function withAclEntries(array $aclEntries)
274
	{
275
	    $this->data['AclEntries'] = $aclEntries;
276
		foreach ($aclEntries as $depth1 => $depth1Value) {
277
			if(isset($depth1Value['Entry'])){
278
				$this->options['query']['AclEntries.' . ($depth1 + 1) . '.Entry'] = $depth1Value['Entry'];
279
			}
280
			if(isset($depth1Value['EntryDescription'])){
281
				$this->options['query']['AclEntries.' . ($depth1 + 1) . '.EntryDescription'] = $depth1Value['EntryDescription'];
282
			}
283
		}
284
285
		return $this;
286
    }
287
}
288
289
/**
290
 * @method string getBandwidthType()
291
 * @method $this withBandwidthType($value)
292
 * @method string getClientToken()
293
 * @method $this withClientToken($value)
294
 * @method string getAutoUseCoupon()
295
 * @method $this withAutoUseCoupon($value)
296
 * @method string getType()
297
 * @method $this withType($value)
298
 * @method string getDuration()
299
 * @method $this withDuration($value)
300
 * @method string getAutoPay()
301
 * @method $this withAutoPay($value)
302
 * @method string getPromotionOptionNo()
303
 * @method $this withPromotionOptionNo($value)
304
 * @method string getBandwidth()
305
 * @method $this withBandwidth($value)
306
 * @method string getCbnGeographicRegionIdB()
307
 * @method $this withCbnGeographicRegionIdB($value)
308
 * @method string getCbnGeographicRegionIdA()
309
 * @method $this withCbnGeographicRegionIdA($value)
310
 * @method string getBillingType()
311
 * @method $this withBillingType($value)
312
 * @method string getChargeType()
313
 * @method $this withChargeType($value)
314
 * @method string getPricingCycle()
315
 * @method $this withPricingCycle($value)
316
 * @method string getRatio()
317
 * @method $this withRatio($value)
318
 */
319
class CreateBandwidthPackage extends Rpc
320
{
321
}
322
323
/**
324
 * @method array getPortOverrides()
325
 * @method string getClientToken()
326
 * @method $this withClientToken($value)
327
 * @method string getHealthCheckIntervalSeconds()
328
 * @method $this withHealthCheckIntervalSeconds($value)
329
 * @method string getDescription()
330
 * @method $this withDescription($value)
331
 * @method string getHealthCheckProtocol()
332
 * @method $this withHealthCheckProtocol($value)
333
 * @method string getEndpointRequestProtocol()
334
 * @method $this withEndpointRequestProtocol($value)
335
 * @method string getListenerId()
336
 * @method $this withListenerId($value)
337
 * @method string getHealthCheckPath()
338
 * @method $this withHealthCheckPath($value)
339
 * @method array getEndpointConfigurations()
340
 * @method string getEndpointGroupType()
341
 * @method $this withEndpointGroupType($value)
342
 * @method string getAcceleratorId()
343
 * @method $this withAcceleratorId($value)
344
 * @method string getTrafficPercentage()
345
 * @method $this withTrafficPercentage($value)
346
 * @method string getHealthCheckPort()
347
 * @method $this withHealthCheckPort($value)
348
 * @method string getThresholdCount()
349
 * @method $this withThresholdCount($value)
350
 * @method string getEndpointGroupRegion()
351
 * @method $this withEndpointGroupRegion($value)
352
 * @method string getName()
353
 * @method $this withName($value)
354
 */
355
class CreateEndpointGroup extends Rpc
356
{
357
358
    /**
359
     * @param array $portOverrides
360
     *
361
     * @return $this
362
     */
363
	public function withPortOverrides(array $portOverrides)
364
	{
365
	    $this->data['PortOverrides'] = $portOverrides;
366
		foreach ($portOverrides as $depth1 => $depth1Value) {
367
			if(isset($depth1Value['ListenerPort'])){
368
				$this->options['query']['PortOverrides.' . ($depth1 + 1) . '.ListenerPort'] = $depth1Value['ListenerPort'];
369
			}
370
			if(isset($depth1Value['EndpointPort'])){
371
				$this->options['query']['PortOverrides.' . ($depth1 + 1) . '.EndpointPort'] = $depth1Value['EndpointPort'];
372
			}
373
		}
374
375
		return $this;
376
    }
377
378
    /**
379
     * @param array $endpointConfigurations
380
     *
381
     * @return $this
382
     */
383
	public function withEndpointConfigurations(array $endpointConfigurations)
384
	{
385
	    $this->data['EndpointConfigurations'] = $endpointConfigurations;
386
		foreach ($endpointConfigurations as $depth1 => $depth1Value) {
387
			if(isset($depth1Value['Type'])){
388
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
389
			}
390
			if(isset($depth1Value['EnableClientIPPreservation'])){
391
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.EnableClientIPPreservation'] = $depth1Value['EnableClientIPPreservation'];
392
			}
393
			if(isset($depth1Value['Weight'])){
394
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.Weight'] = $depth1Value['Weight'];
395
			}
396
			if(isset($depth1Value['EnableProxyProtocol'])){
397
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.EnableProxyProtocol'] = $depth1Value['EnableProxyProtocol'];
398
			}
399
			if(isset($depth1Value['Endpoint'])){
400
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.Endpoint'] = $depth1Value['Endpoint'];
401
			}
402
		}
403
404
		return $this;
405
    }
406
}
407
408
/**
409
 * @method string getClientToken()
410
 * @method $this withClientToken($value)
411
 * @method string getListenerId()
412
 * @method $this withListenerId($value)
413
 * @method string getAcceleratorId()
414
 * @method $this withAcceleratorId($value)
415
 * @method string getForwardingRules()
416
 * @method $this withForwardingRules($value)
417
 */
418
class CreateForwardingRules extends Rpc
419
{
420
}
421
422
/**
423
 * @method string getClientToken()
424
 * @method $this withClientToken($value)
425
 * @method string getAcceleratorId()
426
 * @method $this withAcceleratorId($value)
427
 * @method array getAccelerateRegion()
428
 */
429
class CreateIpSets extends Rpc
430
{
431
432
    /**
433
     * @param array $accelerateRegion
434
     *
435
     * @return $this
436
     */
437
	public function withAccelerateRegion(array $accelerateRegion)
438
	{
439
	    $this->data['AccelerateRegion'] = $accelerateRegion;
440
		foreach ($accelerateRegion as $depth1 => $depth1Value) {
441
			if(isset($depth1Value['AccelerateRegionId'])){
442
				$this->options['query']['AccelerateRegion.' . ($depth1 + 1) . '.AccelerateRegionId'] = $depth1Value['AccelerateRegionId'];
443
			}
444
			if(isset($depth1Value['IpVersion'])){
445
				$this->options['query']['AccelerateRegion.' . ($depth1 + 1) . '.IpVersion'] = $depth1Value['IpVersion'];
446
			}
447
			if(isset($depth1Value['Bandwidth'])){
448
				$this->options['query']['AccelerateRegion.' . ($depth1 + 1) . '.Bandwidth'] = $depth1Value['Bandwidth'];
449
			}
450
		}
451
452
		return $this;
453
    }
454
}
455
456
/**
457
 * @method string getClientToken()
458
 * @method $this withClientToken($value)
459
 * @method string getDescription()
460
 * @method $this withDescription($value)
461
 * @method array getBackendPorts()
462
 * @method string getProtocol()
463
 * @method $this withProtocol($value)
464
 * @method string getAcceleratorId()
465
 * @method $this withAcceleratorId($value)
466
 * @method string getProxyProtocol()
467
 * @method $this withProxyProtocol($value)
468
 * @method array getPortRanges()
469
 * @method array getCertificates()
470
 * @method string getName()
471
 * @method $this withName($value)
472
 * @method string getClientAffinity()
473
 * @method $this withClientAffinity($value)
474
 */
475
class CreateListener extends Rpc
476
{
477
478
    /**
479
     * @param array $backendPorts
480
     *
481
     * @return $this
482
     */
483
	public function withBackendPorts(array $backendPorts)
484
	{
485
	    $this->data['BackendPorts'] = $backendPorts;
486
		foreach ($backendPorts as $depth1 => $depth1Value) {
487
			if(isset($depth1Value['FromPort'])){
488
				$this->options['query']['BackendPorts.' . ($depth1 + 1) . '.FromPort'] = $depth1Value['FromPort'];
489
			}
490
			if(isset($depth1Value['ToPort'])){
491
				$this->options['query']['BackendPorts.' . ($depth1 + 1) . '.ToPort'] = $depth1Value['ToPort'];
492
			}
493
		}
494
495
		return $this;
496
    }
497
498
    /**
499
     * @param array $portRanges
500
     *
501
     * @return $this
502
     */
503
	public function withPortRanges(array $portRanges)
504
	{
505
	    $this->data['PortRanges'] = $portRanges;
506
		foreach ($portRanges as $depth1 => $depth1Value) {
507
			if(isset($depth1Value['FromPort'])){
508
				$this->options['query']['PortRanges.' . ($depth1 + 1) . '.FromPort'] = $depth1Value['FromPort'];
509
			}
510
			if(isset($depth1Value['ToPort'])){
511
				$this->options['query']['PortRanges.' . ($depth1 + 1) . '.ToPort'] = $depth1Value['ToPort'];
512
			}
513
		}
514
515
		return $this;
516
    }
517
518
    /**
519
     * @param array $certificates
520
     *
521
     * @return $this
522
     */
523
	public function withCertificates(array $certificates)
524
	{
525
	    $this->data['Certificates'] = $certificates;
526
		foreach ($certificates as $depth1 => $depth1Value) {
527
			if(isset($depth1Value['Id'])){
528
				$this->options['query']['Certificates.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
529
			}
530
		}
531
532
		return $this;
533
    }
534
}
535
536
/**
537
 * @method string getAcceleratorId()
538
 * @method $this withAcceleratorId($value)
539
 */
540
class DeleteAccelerator extends Rpc
541
{
542
}
543
544
/**
545
 * @method string getAclId()
546
 * @method $this withAclId($value)
547
 * @method string getDryRun()
548
 * @method $this withDryRun($value)
549
 * @method string getClientToken()
550
 * @method $this withClientToken($value)
551
 */
552
class DeleteAcl extends Rpc
553
{
554
}
555
556
/**
557
 * @method string getBandwidthPackageId()
558
 * @method $this withBandwidthPackageId($value)
559
 * @method string getClientToken()
560
 * @method $this withClientToken($value)
561
 */
562
class DeleteBandwidthPackage extends Rpc
563
{
564
}
565
566
/**
567
 * @method string getClientToken()
568
 * @method $this withClientToken($value)
569
 * @method string getAcceleratorId()
570
 * @method $this withAcceleratorId($value)
571
 * @method string getEndpointGroupId()
572
 * @method $this withEndpointGroupId($value)
573
 */
574
class DeleteEndpointGroup extends Rpc
575
{
576
}
577
578
/**
579
 * @method string getClientToken()
580
 * @method $this withClientToken($value)
581
 * @method string getListenerId()
582
 * @method $this withListenerId($value)
583
 * @method string getAcceleratorId()
584
 * @method $this withAcceleratorId($value)
585
 * @method string getForwardingRuleIds()
586
 * @method $this withForwardingRuleIds($value)
587
 */
588
class DeleteForwardingRules extends Rpc
589
{
590
}
591
592
/**
593
 * @method string getClientToken()
594
 * @method $this withClientToken($value)
595
 * @method string getIpSetId()
596
 * @method $this withIpSetId($value)
597
 * @method string getAcceleratorId()
598
 * @method $this withAcceleratorId($value)
599
 */
600
class DeleteIpSet extends Rpc
601
{
602
}
603
604
/**
605
 * @method array getIpSetIds()
606
 */
607
class DeleteIpSets extends Rpc
608
{
609
610
    /**
611
     * @param array $ipSetIds
612
     *
613
     * @return $this
614
     */
615
	public function withIpSetIds(array $ipSetIds)
616
	{
617
	    $this->data['IpSetIds'] = $ipSetIds;
618
		foreach ($ipSetIds as $i => $iValue) {
619
			$this->options['query']['IpSetIds.' . ($i + 1)] = $iValue;
620
		}
621
622
		return $this;
623
    }
624
}
625
626
/**
627
 * @method string getClientToken()
628
 * @method $this withClientToken($value)
629
 * @method string getListenerId()
630
 * @method $this withListenerId($value)
631
 * @method string getAcceleratorId()
632
 * @method $this withAcceleratorId($value)
633
 */
634
class DeleteListener extends Rpc
635
{
636
}
637
638
/**
639
 * @method string getAcceleratorId()
640
 * @method $this withAcceleratorId($value)
641
 */
642
class DescribeAccelerator extends Rpc
643
{
644
}
645
646
/**
647
 * @method string getBandwidthPackageId()
648
 * @method $this withBandwidthPackageId($value)
649
 */
650
class DescribeBandwidthPackage extends Rpc
651
{
652
}
653
654
/**
655
 * @method string getEndpointGroupId()
656
 * @method $this withEndpointGroupId($value)
657
 */
658
class DescribeEndpointGroup extends Rpc
659
{
660
}
661
662
/**
663
 * @method string getIpSetId()
664
 * @method $this withIpSetId($value)
665
 */
666
class DescribeIpSet extends Rpc
667
{
668
}
669
670
/**
671
 * @method string getListenerId()
672
 * @method $this withListenerId($value)
673
 */
674
class DescribeListener extends Rpc
675
{
676
}
677
678
class DescribeRegions extends Rpc
679
{
680
}
681
682
/**
683
 * @method string getAcceleratorId()
684
 * @method $this withAcceleratorId($value)
685
 */
686
class DetachDdosFromAccelerator extends Rpc
687
{
688
}
689
690
/**
691
 * @method string getClientToken()
692
 * @method $this withClientToken($value)
693
 * @method string getListenerId()
694
 * @method $this withListenerId($value)
695
 * @method array getEndpointGroupIds()
696
 * @method string getAcceleratorId()
697
 * @method $this withAcceleratorId($value)
698
 */
699
class DetachLogStoreFromEndpointGroup extends Rpc
700
{
701
702
    /**
703
     * @param array $endpointGroupIds
704
     *
705
     * @return $this
706
     */
707
	public function withEndpointGroupIds(array $endpointGroupIds)
708
	{
709
	    $this->data['EndpointGroupIds'] = $endpointGroupIds;
710
		foreach ($endpointGroupIds as $i => $iValue) {
711
			$this->options['query']['EndpointGroupIds.' . ($i + 1)] = $iValue;
712
		}
713
714
		return $this;
715
    }
716
}
717
718
/**
719
 * @method string getDryRun()
720
 * @method $this withDryRun($value)
721
 * @method string getClientToken()
722
 * @method $this withClientToken($value)
723
 * @method array getAclIds()
724
 * @method string getListenerId()
725
 * @method $this withListenerId($value)
726
 */
727
class DissociateAclsFromListener extends Rpc
728
{
729
730
    /**
731
     * @param array $aclIds
732
     *
733
     * @return $this
734
     */
735
	public function withAclIds(array $aclIds)
736
	{
737
	    $this->data['AclIds'] = $aclIds;
738
		foreach ($aclIds as $i => $iValue) {
739
			$this->options['query']['AclIds.' . ($i + 1)] = $iValue;
740
		}
741
742
		return $this;
743
    }
744
}
745
746
/**
747
 * @method string getAclId()
748
 * @method $this withAclId($value)
749
 */
750
class GetAcl extends Rpc
751
{
752
}
753
754
class ListAccelerateAreas extends Rpc
755
{
756
}
757
758
/**
759
 * @method string getPageNumber()
760
 * @method $this withPageNumber($value)
761
 * @method string getPageSize()
762
 * @method $this withPageSize($value)
763
 * @method string getAcceleratorId()
764
 * @method $this withAcceleratorId($value)
765
 */
766
class ListAccelerators extends Rpc
767
{
768
}
769
770
/**
771
 * @method string getAclName()
772
 * @method $this withAclName($value)
773
 * @method string getClientToken()
774
 * @method $this withClientToken($value)
775
 * @method string getAclIds()
776
 * @method $this withAclIds($value)
777
 * @method string getNextToken()
778
 * @method $this withNextToken($value)
779
 * @method string getMaxResults()
780
 * @method $this withMaxResults($value)
781
 */
782
class ListAcls extends Rpc
783
{
784
}
785
786
/**
787
 * @method string getAcceleratorId()
788
 * @method $this withAcceleratorId($value)
789
 */
790
class ListAvailableAccelerateAreas extends Rpc
791
{
792
}
793
794
/**
795
 * @method string getAcceleratorId()
796
 * @method $this withAcceleratorId($value)
797
 */
798
class ListAvailableBusiRegions extends Rpc
799
{
800
}
801
802
/**
803
 * @method string getPageNumber()
804
 * @method $this withPageNumber($value)
805
 * @method string getPageSize()
806
 * @method $this withPageSize($value)
807
 */
808
class ListBandwidthackages extends Rpc
809
{
810
}
811
812
/**
813
 * @method string getBandwidthPackageId()
814
 * @method $this withBandwidthPackageId($value)
815
 * @method string getType()
816
 * @method $this withType($value)
817
 * @method string getPageNumber()
818
 * @method $this withPageNumber($value)
819
 * @method string getPageSize()
820
 * @method $this withPageSize($value)
821
 * @method string getState()
822
 * @method $this withState($value)
823
 */
824
class ListBandwidthPackages extends Rpc
825
{
826
}
827
828
class ListBusiRegions extends Rpc
829
{
830
}
831
832
/**
833
 * @method string getPageNumber()
834
 * @method $this withPageNumber($value)
835
 * @method string getListenerId()
836
 * @method $this withListenerId($value)
837
 * @method string getEndpointGroupType()
838
 * @method $this withEndpointGroupType($value)
839
 * @method string getAccessLogSwitch()
840
 * @method $this withAccessLogSwitch($value)
841
 * @method string getPageSize()
842
 * @method $this withPageSize($value)
843
 * @method string getAcceleratorId()
844
 * @method $this withAcceleratorId($value)
845
 * @method string getEndpointGroupId()
846
 * @method $this withEndpointGroupId($value)
847
 */
848
class ListEndpointGroups extends Rpc
849
{
850
}
851
852
/**
853
 * @method string getClientToken()
854
 * @method $this withClientToken($value)
855
 * @method string getListenerId()
856
 * @method $this withListenerId($value)
857
 * @method string getForwardingRuleId()
858
 * @method $this withForwardingRuleId($value)
859
 * @method string getNextToken()
860
 * @method $this withNextToken($value)
861
 * @method string getMaxResults()
862
 * @method $this withMaxResults($value)
863
 * @method string getAcceleratorId()
864
 * @method $this withAcceleratorId($value)
865
 */
866
class ListForwardingRules extends Rpc
867
{
868
}
869
870
/**
871
 * @method string getPageNumber()
872
 * @method $this withPageNumber($value)
873
 * @method string getPageSize()
874
 * @method $this withPageSize($value)
875
 * @method string getAcceleratorId()
876
 * @method $this withAcceleratorId($value)
877
 */
878
class ListIpSets extends Rpc
879
{
880
}
881
882
/**
883
 * @method string getPageNumber()
884
 * @method $this withPageNumber($value)
885
 * @method string getPageSize()
886
 * @method $this withPageSize($value)
887
 * @method string getAcceleratorId()
888
 * @method $this withAcceleratorId($value)
889
 */
890
class ListListeners extends Rpc
891
{
892
}
893
894
/**
895
 * @method string getAclId()
896
 * @method $this withAclId($value)
897
 * @method string getDryRun()
898
 * @method $this withDryRun($value)
899
 * @method string getClientToken()
900
 * @method $this withClientToken($value)
901
 * @method array getAclEntries()
902
 */
903
class RemoveEntriesFromAcl extends Rpc
904
{
905
906
    /**
907
     * @param array $aclEntries
908
     *
909
     * @return $this
910
     */
911
	public function withAclEntries(array $aclEntries)
912
	{
913
	    $this->data['AclEntries'] = $aclEntries;
914
		foreach ($aclEntries as $depth1 => $depth1Value) {
915
			if(isset($depth1Value['Entry'])){
916
				$this->options['query']['AclEntries.' . ($depth1 + 1) . '.Entry'] = $depth1Value['Entry'];
917
			}
918
		}
919
920
		return $this;
921
    }
922
}
923
924
/**
925
 * @method string getBandwidthPackageId()
926
 * @method $this withBandwidthPackageId($value)
927
 * @method string getTargetBandwidthPackageId()
928
 * @method $this withTargetBandwidthPackageId($value)
929
 */
930
class ReplaceBandwidthPackage extends Rpc
931
{
932
}
933
934
/**
935
 * @method string getAutoPay()
936
 * @method $this withAutoPay($value)
937
 * @method string getPromotionOptionNo()
938
 * @method $this withPromotionOptionNo($value)
939
 * @method string getClientToken()
940
 * @method $this withClientToken($value)
941
 * @method string getDescription()
942
 * @method $this withDescription($value)
943
 * @method string getAutoUseCoupon()
944
 * @method $this withAutoUseCoupon($value)
945
 * @method string getSpec()
946
 * @method $this withSpec($value)
947
 * @method string getName()
948
 * @method $this withName($value)
949
 * @method string getAcceleratorId()
950
 * @method $this withAcceleratorId($value)
951
 */
952
class UpdateAccelerator extends Rpc
953
{
954
}
955
956
/**
957
 * @method string getAclId()
958
 * @method $this withAclId($value)
959
 * @method string getDryRun()
960
 * @method $this withDryRun($value)
961
 * @method string getAclName()
962
 * @method $this withAclName($value)
963
 * @method string getClientToken()
964
 * @method $this withClientToken($value)
965
 */
966
class UpdateAclAttribute extends Rpc
967
{
968
}
969
970
/**
971
 * @method string getBandwidthType()
972
 * @method $this withBandwidthType($value)
973
 * @method string getBandwidthPackageId()
974
 * @method $this withBandwidthPackageId($value)
975
 * @method string getAutoPay()
976
 * @method $this withAutoPay($value)
977
 * @method string getPromotionOptionNo()
978
 * @method $this withPromotionOptionNo($value)
979
 * @method string getBandwidth()
980
 * @method $this withBandwidth($value)
981
 * @method string getDescription()
982
 * @method $this withDescription($value)
983
 * @method string getAutoUseCoupon()
984
 * @method $this withAutoUseCoupon($value)
985
 * @method string getName()
986
 * @method $this withName($value)
987
 */
988
class UpdateBandwidthPackage extends Rpc
989
{
990
}
991
992
/**
993
 * @method array getPortOverrides()
994
 * @method string getClientToken()
995
 * @method $this withClientToken($value)
996
 * @method string getHealthCheckIntervalSeconds()
997
 * @method $this withHealthCheckIntervalSeconds($value)
998
 * @method string getDescription()
999
 * @method $this withDescription($value)
1000
 * @method string getHealthCheckProtocol()
1001
 * @method $this withHealthCheckProtocol($value)
1002
 * @method string getEndpointRequestProtocol()
1003
 * @method $this withEndpointRequestProtocol($value)
1004
 * @method string getHealthCheckPath()
1005
 * @method $this withHealthCheckPath($value)
1006
 * @method array getEndpointConfigurations()
1007
 * @method string getEndpointGroupId()
1008
 * @method $this withEndpointGroupId($value)
1009
 * @method string getTrafficPercentage()
1010
 * @method $this withTrafficPercentage($value)
1011
 * @method string getHealthCheckPort()
1012
 * @method $this withHealthCheckPort($value)
1013
 * @method string getThresholdCount()
1014
 * @method $this withThresholdCount($value)
1015
 * @method string getEndpointGroupRegion()
1016
 * @method $this withEndpointGroupRegion($value)
1017
 * @method string getName()
1018
 * @method $this withName($value)
1019
 */
1020
class UpdateEndpointGroup extends Rpc
1021
{
1022
1023
    /**
1024
     * @param array $portOverrides
1025
     *
1026
     * @return $this
1027
     */
1028
	public function withPortOverrides(array $portOverrides)
1029
	{
1030
	    $this->data['PortOverrides'] = $portOverrides;
1031
		foreach ($portOverrides as $depth1 => $depth1Value) {
1032
			if(isset($depth1Value['ListenerPort'])){
1033
				$this->options['query']['PortOverrides.' . ($depth1 + 1) . '.ListenerPort'] = $depth1Value['ListenerPort'];
1034
			}
1035
			if(isset($depth1Value['EndpointPort'])){
1036
				$this->options['query']['PortOverrides.' . ($depth1 + 1) . '.EndpointPort'] = $depth1Value['EndpointPort'];
1037
			}
1038
		}
1039
1040
		return $this;
1041
    }
1042
1043
    /**
1044
     * @param array $endpointConfigurations
1045
     *
1046
     * @return $this
1047
     */
1048
	public function withEndpointConfigurations(array $endpointConfigurations)
1049
	{
1050
	    $this->data['EndpointConfigurations'] = $endpointConfigurations;
1051
		foreach ($endpointConfigurations as $depth1 => $depth1Value) {
1052
			if(isset($depth1Value['Type'])){
1053
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
1054
			}
1055
			if(isset($depth1Value['EnableClientIPPreservation'])){
1056
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.EnableClientIPPreservation'] = $depth1Value['EnableClientIPPreservation'];
1057
			}
1058
			if(isset($depth1Value['Weight'])){
1059
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.Weight'] = $depth1Value['Weight'];
1060
			}
1061
			if(isset($depth1Value['EnableProxyProtocol'])){
1062
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.EnableProxyProtocol'] = $depth1Value['EnableProxyProtocol'];
1063
			}
1064
			if(isset($depth1Value['Endpoint'])){
1065
				$this->options['query']['EndpointConfigurations.' . ($depth1 + 1) . '.Endpoint'] = $depth1Value['Endpoint'];
1066
			}
1067
		}
1068
1069
		return $this;
1070
    }
1071
}
1072
1073
/**
1074
 * @method string getClientToken()
1075
 * @method $this withClientToken($value)
1076
 * @method string getDescription()
1077
 * @method $this withDescription($value)
1078
 * @method string getName()
1079
 * @method $this withName($value)
1080
 * @method string getEndpointGroupId()
1081
 * @method $this withEndpointGroupId($value)
1082
 */
1083
class UpdateEndpointGroupAttribute extends Rpc
1084
{
1085
}
1086
1087
/**
1088
 * @method string getClientToken()
1089
 * @method $this withClientToken($value)
1090
 * @method string getListenerId()
1091
 * @method $this withListenerId($value)
1092
 * @method string getAcceleratorId()
1093
 * @method $this withAcceleratorId($value)
1094
 * @method string getForwardingRules()
1095
 * @method $this withForwardingRules($value)
1096
 */
1097
class UpdateForwardingRules extends Rpc
1098
{
1099
}
1100
1101
/**
1102
 * @method string getClientToken()
1103
 * @method $this withClientToken($value)
1104
 * @method string getBandwidth()
1105
 * @method $this withBandwidth($value)
1106
 * @method string getIpSetId()
1107
 * @method $this withIpSetId($value)
1108
 */
1109
class UpdateIpSet extends Rpc
1110
{
1111
}
1112
1113
/**
1114
 * @method array getIpSets()
1115
 */
1116
class UpdateIpSets extends Rpc
1117
{
1118
1119
    /**
1120
     * @param array $ipSets
1121
     *
1122
     * @return $this
1123
     */
1124
	public function withIpSets(array $ipSets)
1125
	{
1126
	    $this->data['IpSets'] = $ipSets;
1127
		foreach ($ipSets as $depth1 => $depth1Value) {
1128
			if(isset($depth1Value['Bandwidth'])){
1129
				$this->options['query']['IpSets.' . ($depth1 + 1) . '.Bandwidth'] = $depth1Value['Bandwidth'];
1130
			}
1131
			if(isset($depth1Value['IpSetId'])){
1132
				$this->options['query']['IpSets.' . ($depth1 + 1) . '.IpSetId'] = $depth1Value['IpSetId'];
1133
			}
1134
		}
1135
1136
		return $this;
1137
    }
1138
}
1139
1140
/**
1141
 * @method string getClientToken()
1142
 * @method $this withClientToken($value)
1143
 * @method string getDescription()
1144
 * @method $this withDescription($value)
1145
 * @method array getBackendPorts()
1146
 * @method string getListenerId()
1147
 * @method $this withListenerId($value)
1148
 * @method string getProtocol()
1149
 * @method $this withProtocol($value)
1150
 * @method string getProxyProtocol()
1151
 * @method $this withProxyProtocol($value)
1152
 * @method array getPortRanges()
1153
 * @method array getCertificates()
1154
 * @method string getName()
1155
 * @method $this withName($value)
1156
 * @method string getClientAffinity()
1157
 * @method $this withClientAffinity($value)
1158
 */
1159
class UpdateListener extends Rpc
1160
{
1161
1162
    /**
1163
     * @param array $backendPorts
1164
     *
1165
     * @return $this
1166
     */
1167
	public function withBackendPorts(array $backendPorts)
1168
	{
1169
	    $this->data['BackendPorts'] = $backendPorts;
1170
		foreach ($backendPorts as $depth1 => $depth1Value) {
1171
			if(isset($depth1Value['FromPort'])){
1172
				$this->options['query']['BackendPorts.' . ($depth1 + 1) . '.FromPort'] = $depth1Value['FromPort'];
1173
			}
1174
			if(isset($depth1Value['ToPort'])){
1175
				$this->options['query']['BackendPorts.' . ($depth1 + 1) . '.ToPort'] = $depth1Value['ToPort'];
1176
			}
1177
		}
1178
1179
		return $this;
1180
    }
1181
1182
    /**
1183
     * @param array $portRanges
1184
     *
1185
     * @return $this
1186
     */
1187
	public function withPortRanges(array $portRanges)
1188
	{
1189
	    $this->data['PortRanges'] = $portRanges;
1190
		foreach ($portRanges as $depth1 => $depth1Value) {
1191
			if(isset($depth1Value['FromPort'])){
1192
				$this->options['query']['PortRanges.' . ($depth1 + 1) . '.FromPort'] = $depth1Value['FromPort'];
1193
			}
1194
			if(isset($depth1Value['ToPort'])){
1195
				$this->options['query']['PortRanges.' . ($depth1 + 1) . '.ToPort'] = $depth1Value['ToPort'];
1196
			}
1197
		}
1198
1199
		return $this;
1200
    }
1201
1202
    /**
1203
     * @param array $certificates
1204
     *
1205
     * @return $this
1206
     */
1207
	public function withCertificates(array $certificates)
1208
	{
1209
	    $this->data['Certificates'] = $certificates;
1210
		foreach ($certificates as $depth1 => $depth1Value) {
1211
			if(isset($depth1Value['Id'])){
1212
				$this->options['query']['Certificates.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
1213
			}
1214
		}
1215
1216
		return $this;
1217
    }
1218
}
1219