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 ( 1119bf...03f416 )
by
unknown
07:01
created

CreateVpcEndpointService::withResource()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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