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 ( d31577...fa9ae5 )
by
unknown
07:13
created

AddZoneToVpcEndpoint::withIp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Privatelink\V20200415;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddUserToVpcEndpointService addUserToVpcEndpointService(array $options = [])
9
 * @method AddZoneToVpcEndpoint addZoneToVpcEndpoint(array $options = [])
10
 * @method AttachResourceToVpcEndpointService attachResourceToVpcEndpointService(array $options = [])
11
 * @method AttachSecurityGroupToVpcEndpoint attachSecurityGroupToVpcEndpoint(array $options = [])
12
 * @method CheckProductOpen checkProductOpen(array $options = [])
13
 * @method CreateVpcEndpoint createVpcEndpoint(array $options = [])
14
 * @method CreateVpcEndpointService createVpcEndpointService(array $options = [])
15
 * @method DeleteVpcEndpoint deleteVpcEndpoint(array $options = [])
16
 * @method DeleteVpcEndpointService deleteVpcEndpointService(array $options = [])
17
 * @method DescribeRegions describeRegions(array $options = [])
18
 * @method DescribeZones describeZones(array $options = [])
19
 * @method DetachResourceFromVpcEndpointService detachResourceFromVpcEndpointService(array $options = [])
20
 * @method DetachSecurityGroupFromVpcEndpoint detachSecurityGroupFromVpcEndpoint(array $options = [])
21
 * @method DisableVpcEndpointConnection disableVpcEndpointConnection(array $options = [])
22
 * @method EnableVpcEndpointConnection enableVpcEndpointConnection(array $options = [])
23
 * @method GetVpcEndpointAttribute getVpcEndpointAttribute(array $options = [])
24
 * @method GetVpcEndpointServiceAttribute getVpcEndpointServiceAttribute(array $options = [])
25
 * @method ListVpcEndpointConnections listVpcEndpointConnections(array $options = [])
26
 * @method ListVpcEndpoints listVpcEndpoints(array $options = [])
27
 * @method ListVpcEndpointSecurityGroups listVpcEndpointSecurityGroups(array $options = [])
28
 * @method ListVpcEndpointServiceResources listVpcEndpointServiceResources(array $options = [])
29
 * @method ListVpcEndpointServices listVpcEndpointServices(array $options = [])
30
 * @method ListVpcEndpointServicesByEndUser listVpcEndpointServicesByEndUser(array $options = [])
31
 * @method ListVpcEndpointServiceUsers listVpcEndpointServiceUsers(array $options = [])
32
 * @method ListVpcEndpointZones listVpcEndpointZones(array $options = [])
33
 * @method OpenPrivateLinkService openPrivateLinkService(array $options = [])
34
 * @method RemoveUserFromVpcEndpointService removeUserFromVpcEndpointService(array $options = [])
35
 * @method RemoveZoneFromVpcEndpoint removeZoneFromVpcEndpoint(array $options = [])
36
 * @method UpdateVpcEndpointAttribute updateVpcEndpointAttribute(array $options = [])
37
 * @method UpdateVpcEndpointConnectionAttribute updateVpcEndpointConnectionAttribute(array $options = [])
38
 * @method UpdateVpcEndpointServiceAttribute updateVpcEndpointServiceAttribute(array $options = [])
39
 */
40
class PrivatelinkApiResolver extends ApiResolver
41
{
42
}
43
44
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
45
{
46
    /** @var string */
47
    public $product = 'Privatelink';
48
49
    /** @var string */
50
    public $version = '2020-04-15';
51
52
    /** @var string */
53
    public $method = 'POST';
54
55
    /** @var string */
56
    protected $scheme = 'https';
57
58
    /** @var string */
59
    public $serviceCode = 'privatelink';
60
}
61
62
/**
63
 * @method string getClientToken()
64
 * @method $this withClientToken($value)
65
 * @method string getUserId()
66
 * @method $this withUserId($value)
67
 * @method string getDryRun()
68
 * @method $this withDryRun($value)
69
 * @method string getServiceId()
70
 * @method $this withServiceId($value)
71
 */
72
class AddUserToVpcEndpointService extends Rpc
73
{
74
}
75
76
/**
77
 * @method string getClientToken()
78
 * @method $this withClientToken($value)
79
 * @method string getEndpointId()
80
 * @method $this withEndpointId($value)
81
 * @method string getDryRun()
82
 * @method $this withDryRun($value)
83
 * @method string getIp()
84
 * @method string getVSwitchId()
85
 * @method $this withVSwitchId($value)
86
 * @method string getZoneId()
87
 * @method $this withZoneId($value)
88
 */
89
class AddZoneToVpcEndpoint extends Rpc
90
{
91
92
    /**
93
     * @param string $value
94
     *
95
     * @return $this
96
     */
97
    public function withIp($value)
98
    {
99
        $this->data['Ip'] = $value;
100
        $this->options['query']['ip'] = $value;
101
102
        return $this;
103
    }
104
}
105
106
/**
107
 * @method string getClientToken()
108
 * @method $this withClientToken($value)
109
 * @method string getResourceId()
110
 * @method $this withResourceId($value)
111
 * @method string getDryRun()
112
 * @method $this withDryRun($value)
113
 * @method string getResourceType()
114
 * @method $this withResourceType($value)
115
 * @method string getServiceId()
116
 * @method $this withServiceId($value)
117
 */
118
class AttachResourceToVpcEndpointService extends Rpc
119
{
120
}
121
122
/**
123
 * @method string getClientToken()
124
 * @method $this withClientToken($value)
125
 * @method string getEndpointId()
126
 * @method $this withEndpointId($value)
127
 * @method string getSecurityGroupId()
128
 * @method $this withSecurityGroupId($value)
129
 * @method string getDryRun()
130
 * @method $this withDryRun($value)
131
 */
132
class AttachSecurityGroupToVpcEndpoint extends Rpc
133
{
134
135
    /** @var string */
136
    public $scheme = 'http';
137
}
138
139
class CheckProductOpen extends Rpc
140
{
141
142
    /** @var string */
143
    public $scheme = 'http';
144
}
145
146
/**
147
 * @method string getClientToken()
148
 * @method $this withClientToken($value)
149
 * @method array getSecurityGroupId()
150
 * @method array getZone()
151
 * @method string getServiceName()
152
 * @method $this withServiceName($value)
153
 * @method string getDryRun()
154
 * @method $this withDryRun($value)
155
 * @method string getEndpointDescription()
156
 * @method $this withEndpointDescription($value)
157
 * @method string getEndpointName()
158
 * @method $this withEndpointName($value)
159
 * @method string getVpcId()
160
 * @method $this withVpcId($value)
161
 * @method string getServiceId()
162
 * @method $this withServiceId($value)
163
 */
164
class CreateVpcEndpoint extends Rpc
165
{
166
167
    /**
168
     * @param array $securityGroupId
169
     *
170
     * @return $this
171
     */
172
	public function withSecurityGroupId(array $securityGroupId)
173
	{
174
	    $this->data['SecurityGroupId'] = $securityGroupId;
175
		foreach ($securityGroupId as $i => $iValue) {
176
			$this->options['query']['SecurityGroupId.' . ($i + 1)] = $iValue;
177
		}
178
179
		return $this;
180
    }
181
182
    /**
183
     * @param array $zone
184
     *
185
     * @return $this
186
     */
187
	public function withZone(array $zone)
188
	{
189
	    $this->data['Zone'] = $zone;
190
		foreach ($zone as $depth1 => $depth1Value) {
191
			if(isset($depth1Value['VSwitchId'])){
192
				$this->options['query']['Zone.' . ($depth1 + 1) . '.VSwitchId'] = $depth1Value['VSwitchId'];
193
			}
194
			if(isset($depth1Value['ZoneId'])){
195
				$this->options['query']['Zone.' . ($depth1 + 1) . '.ZoneId'] = $depth1Value['ZoneId'];
196
			}
197
			if(isset($depth1Value['Ip'])){
198
				$this->options['query']['Zone.' . ($depth1 + 1) . '.ip'] = $depth1Value['Ip'];
199
			}
200
		}
201
202
		return $this;
203
    }
204
}
205
206
/**
207
 * @method string getAutoAcceptEnabled()
208
 * @method $this withAutoAcceptEnabled($value)
209
 * @method string getClientToken()
210
 * @method $this withClientToken($value)
211
 * @method string getPayer()
212
 * @method $this withPayer($value)
213
 * @method string getZoneAffinityEnabled()
214
 * @method $this withZoneAffinityEnabled($value)
215
 * @method string getDryRun()
216
 * @method $this withDryRun($value)
217
 * @method array getResource()
218
 * @method string getServiceDescription()
219
 * @method $this withServiceDescription($value)
220
 */
221
class CreateVpcEndpointService extends Rpc
222
{
223
224
    /**
225
     * @param array $resource
226
     *
227
     * @return $this
228
     */
229
	public function withResource(array $resource)
230
	{
231
	    $this->data['Resource'] = $resource;
232
		foreach ($resource as $depth1 => $depth1Value) {
233
			if(isset($depth1Value['ResourceType'])){
234
				$this->options['query']['Resource.' . ($depth1 + 1) . '.ResourceType'] = $depth1Value['ResourceType'];
235
			}
236
			if(isset($depth1Value['ResourceId'])){
237
				$this->options['query']['Resource.' . ($depth1 + 1) . '.ResourceId'] = $depth1Value['ResourceId'];
238
			}
239
		}
240
241
		return $this;
242
    }
243
}
244
245
/**
246
 * @method string getClientToken()
247
 * @method $this withClientToken($value)
248
 * @method string getEndpointId()
249
 * @method $this withEndpointId($value)
250
 * @method string getDryRun()
251
 * @method $this withDryRun($value)
252
 */
253
class DeleteVpcEndpoint extends Rpc
254
{
255
}
256
257
/**
258
 * @method string getClientToken()
259
 * @method $this withClientToken($value)
260
 * @method string getDryRun()
261
 * @method $this withDryRun($value)
262
 * @method string getServiceId()
263
 * @method $this withServiceId($value)
264
 */
265
class DeleteVpcEndpointService extends Rpc
266
{
267
}
268
269
class DescribeRegions extends Rpc
270
{
271
}
272
273
class DescribeZones extends Rpc
274
{
275
}
276
277
/**
278
 * @method string getClientToken()
279
 * @method $this withClientToken($value)
280
 * @method string getResourceId()
281
 * @method $this withResourceId($value)
282
 * @method string getDryRun()
283
 * @method $this withDryRun($value)
284
 * @method string getResourceType()
285
 * @method $this withResourceType($value)
286
 * @method string getServiceId()
287
 * @method $this withServiceId($value)
288
 */
289
class DetachResourceFromVpcEndpointService extends Rpc
290
{
291
}
292
293
/**
294
 * @method string getClientToken()
295
 * @method $this withClientToken($value)
296
 * @method string getEndpointId()
297
 * @method $this withEndpointId($value)
298
 * @method string getSecurityGroupId()
299
 * @method $this withSecurityGroupId($value)
300
 * @method string getDryRun()
301
 * @method $this withDryRun($value)
302
 */
303
class DetachSecurityGroupFromVpcEndpoint extends Rpc
304
{
305
}
306
307
/**
308
 * @method string getClientToken()
309
 * @method $this withClientToken($value)
310
 * @method string getEndpointId()
311
 * @method $this withEndpointId($value)
312
 * @method string getDryRun()
313
 * @method $this withDryRun($value)
314
 * @method string getServiceId()
315
 * @method $this withServiceId($value)
316
 */
317
class DisableVpcEndpointConnection extends Rpc
318
{
319
}
320
321
/**
322
 * @method string getClientToken()
323
 * @method $this withClientToken($value)
324
 * @method string getEndpointId()
325
 * @method $this withEndpointId($value)
326
 * @method string getDryRun()
327
 * @method $this withDryRun($value)
328
 * @method string getBandwidth()
329
 * @method $this withBandwidth($value)
330
 * @method string getServiceId()
331
 * @method $this withServiceId($value)
332
 */
333
class EnableVpcEndpointConnection extends Rpc
334
{
335
}
336
337
/**
338
 * @method string getEndpointId()
339
 * @method $this withEndpointId($value)
340
 */
341
class GetVpcEndpointAttribute extends Rpc
342
{
343
}
344
345
/**
346
 * @method string getServiceId()
347
 * @method $this withServiceId($value)
348
 */
349
class GetVpcEndpointServiceAttribute extends Rpc
350
{
351
}
352
353
/**
354
 * @method string getEndpointId()
355
 * @method $this withEndpointId($value)
356
 * @method string getEndpointOwnerId()
357
 * @method $this withEndpointOwnerId($value)
358
 * @method string getNextToken()
359
 * @method $this withNextToken($value)
360
 * @method string getConnectionStatus()
361
 * @method $this withConnectionStatus($value)
362
 * @method string getMaxResults()
363
 * @method $this withMaxResults($value)
364
 * @method string getServiceId()
365
 * @method $this withServiceId($value)
366
 */
367
class ListVpcEndpointConnections extends Rpc
368
{
369
}
370
371
/**
372
 * @method string getEndpointId()
373
 * @method $this withEndpointId($value)
374
 * @method string getEndpointStatus()
375
 * @method $this withEndpointStatus($value)
376
 * @method string getNextToken()
377
 * @method $this withNextToken($value)
378
 * @method string getServiceName()
379
 * @method $this withServiceName($value)
380
 * @method string getConnectionStatus()
381
 * @method $this withConnectionStatus($value)
382
 * @method string getVpcId()
383
 * @method $this withVpcId($value)
384
 * @method string getEndpointName()
385
 * @method $this withEndpointName($value)
386
 * @method string getMaxResults()
387
 * @method $this withMaxResults($value)
388
 */
389
class ListVpcEndpoints extends Rpc
390
{
391
}
392
393
/**
394
 * @method string getEndpointId()
395
 * @method $this withEndpointId($value)
396
 * @method string getNextToken()
397
 * @method $this withNextToken($value)
398
 * @method string getMaxResults()
399
 * @method $this withMaxResults($value)
400
 */
401
class ListVpcEndpointSecurityGroups extends Rpc
402
{
403
}
404
405
/**
406
 * @method string getNextToken()
407
 * @method $this withNextToken($value)
408
 * @method string getMaxResults()
409
 * @method $this withMaxResults($value)
410
 * @method string getServiceId()
411
 * @method $this withServiceId($value)
412
 */
413
class ListVpcEndpointServiceResources extends Rpc
414
{
415
}
416
417
/**
418
 * @method string getServiceBusinessStatus()
419
 * @method $this withServiceBusinessStatus($value)
420
 * @method string getAutoAcceptEnabled()
421
 * @method $this withAutoAcceptEnabled($value)
422
 * @method string getServiceStatus()
423
 * @method $this withServiceStatus($value)
424
 * @method string getNextToken()
425
 * @method $this withNextToken($value)
426
 * @method string getZoneAffinityEnabled()
427
 * @method $this withZoneAffinityEnabled($value)
428
 * @method string getServiceName()
429
 * @method $this withServiceName($value)
430
 * @method string getMaxResults()
431
 * @method $this withMaxResults($value)
432
 * @method string getServiceId()
433
 * @method $this withServiceId($value)
434
 */
435
class ListVpcEndpointServices extends Rpc
436
{
437
}
438
439
/**
440
 * @method string getNextToken()
441
 * @method $this withNextToken($value)
442
 * @method string getServiceName()
443
 * @method $this withServiceName($value)
444
 * @method string getMaxResults()
445
 * @method $this withMaxResults($value)
446
 * @method string getServiceId()
447
 * @method $this withServiceId($value)
448
 */
449
class ListVpcEndpointServicesByEndUser extends Rpc
450
{
451
}
452
453
/**
454
 * @method string getUserId()
455
 * @method $this withUserId($value)
456
 * @method string getNextToken()
457
 * @method $this withNextToken($value)
458
 * @method string getMaxResults()
459
 * @method $this withMaxResults($value)
460
 * @method string getServiceId()
461
 * @method $this withServiceId($value)
462
 */
463
class ListVpcEndpointServiceUsers extends Rpc
464
{
465
}
466
467
/**
468
 * @method string getEndpointId()
469
 * @method $this withEndpointId($value)
470
 * @method string getNextToken()
471
 * @method $this withNextToken($value)
472
 * @method string getMaxResults()
473
 * @method $this withMaxResults($value)
474
 */
475
class ListVpcEndpointZones extends Rpc
476
{
477
}
478
479
/**
480
 * @method string getOwnerId()
481
 * @method $this withOwnerId($value)
482
 */
483
class OpenPrivateLinkService extends Rpc
484
{
485
486
    /** @var string */
487
    public $scheme = 'http';
488
}
489
490
/**
491
 * @method string getClientToken()
492
 * @method $this withClientToken($value)
493
 * @method string getUserId()
494
 * @method $this withUserId($value)
495
 * @method string getDryRun()
496
 * @method $this withDryRun($value)
497
 * @method string getServiceId()
498
 * @method $this withServiceId($value)
499
 */
500
class RemoveUserFromVpcEndpointService extends Rpc
501
{
502
}
503
504
/**
505
 * @method string getClientToken()
506
 * @method $this withClientToken($value)
507
 * @method string getEndpointId()
508
 * @method $this withEndpointId($value)
509
 * @method string getDryRun()
510
 * @method $this withDryRun($value)
511
 * @method string getZoneId()
512
 * @method $this withZoneId($value)
513
 */
514
class RemoveZoneFromVpcEndpoint extends Rpc
515
{
516
}
517
518
/**
519
 * @method string getClientToken()
520
 * @method $this withClientToken($value)
521
 * @method string getEndpointId()
522
 * @method $this withEndpointId($value)
523
 * @method string getDryRun()
524
 * @method $this withDryRun($value)
525
 * @method string getEndpointDescription()
526
 * @method $this withEndpointDescription($value)
527
 * @method string getEndpointName()
528
 * @method $this withEndpointName($value)
529
 */
530
class UpdateVpcEndpointAttribute extends Rpc
531
{
532
}
533
534
/**
535
 * @method string getClientToken()
536
 * @method $this withClientToken($value)
537
 * @method string getEndpointId()
538
 * @method $this withEndpointId($value)
539
 * @method string getDryRun()
540
 * @method $this withDryRun($value)
541
 * @method string getBandwidth()
542
 * @method $this withBandwidth($value)
543
 * @method string getServiceId()
544
 * @method $this withServiceId($value)
545
 */
546
class UpdateVpcEndpointConnectionAttribute extends Rpc
547
{
548
}
549
550
/**
551
 * @method string getAutoAcceptEnabled()
552
 * @method $this withAutoAcceptEnabled($value)
553
 * @method string getClientToken()
554
 * @method $this withClientToken($value)
555
 * @method string getConnectBandwidth()
556
 * @method $this withConnectBandwidth($value)
557
 * @method string getZoneAffinityEnabled()
558
 * @method $this withZoneAffinityEnabled($value)
559
 * @method string getDryRun()
560
 * @method $this withDryRun($value)
561
 * @method string getServiceDescription()
562
 * @method $this withServiceDescription($value)
563
 * @method string getServiceId()
564
 * @method $this withServiceId($value)
565
 */
566
class UpdateVpcEndpointServiceAttribute extends Rpc
567
{
568
}
569