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 ( ea24d7...265755 )
by
unknown
07:10
created

UpdateService::withServiceInfo()   A

Complexity

Conditions 6
Paths 17

Size

Total Lines 19
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 19
rs 9.2222
cc 6
nc 17
nop 1
1
<?php
2
3
namespace AlibabaCloud\ComputeNestSupplier\V20210521;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateArtifact createArtifact(array $options = [])
9
 * @method CreateService createService(array $options = [])
10
 * @method DeleteArtifact deleteArtifact(array $options = [])
11
 * @method DeleteService deleteService(array $options = [])
12
 * @method GetArtifact getArtifact(array $options = [])
13
 * @method GetArtifactRepositoryCredentials getArtifactRepositoryCredentials(array $options = [])
14
 * @method GetService getService(array $options = [])
15
 * @method GetServiceEstimateCost getServiceEstimateCost(array $options = [])
16
 * @method GetServiceInstance getServiceInstance(array $options = [])
17
 * @method ListArtifacts listArtifacts(array $options = [])
18
 * @method ListArtifactVersions listArtifactVersions(array $options = [])
19
 * @method ListServiceInstances listServiceInstances(array $options = [])
20
 * @method ListServices listServices(array $options = [])
21
 * @method ListServiceUsages listServiceUsages(array $options = [])
22
 * @method ReleaseArtifact releaseArtifact(array $options = [])
23
 * @method UpdateArtifact updateArtifact(array $options = [])
24
 * @method UpdateService updateService(array $options = [])
25
 */
26
class ComputeNestSupplierApiResolver extends ApiResolver
27
{
28
}
29
30
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
31
{
32
    /** @var string */
33
    public $product = 'ComputeNestSupplier';
34
35
    /** @var string */
36
    public $version = '2021-05-21';
37
38
    /** @var string */
39
    public $method = 'POST';
40
}
41
42
/**
43
 * @method string getDescription()
44
 * @method $this withDescription($value)
45
 * @method array getSupportRegionIds()
46
 * @method string getArtifactType()
47
 * @method $this withArtifactType($value)
48
 * @method string getName()
49
 * @method $this withName($value)
50
 * @method string getArtifactId()
51
 * @method $this withArtifactId($value)
52
 * @method string getArtifactProperty()
53
 * @method $this withArtifactProperty($value)
54
 * @method string getVersionName()
55
 * @method $this withVersionName($value)
56
 */
57
class CreateArtifact extends Rpc
58
{
59
60
    /**
61
     * @param array $supportRegionIds
62
     *
63
     * @return $this
64
     */
65
	public function withSupportRegionIds(array $supportRegionIds)
66
	{
67
	    $this->data['SupportRegionIds'] = $supportRegionIds;
68
		foreach ($supportRegionIds as $i => $iValue) {
69
			$this->options['query']['SupportRegionIds.' . ($i + 1)] = $iValue;
70
		}
71
72
		return $this;
73
    }
74
}
75
76
/**
77
 * @method string getAlarmMetadata()
78
 * @method $this withAlarmMetadata($value)
79
 * @method string getClientToken()
80
 * @method $this withClientToken($value)
81
 * @method string getPolicyNames()
82
 * @method $this withPolicyNames($value)
83
 * @method string getLicenseMetadata()
84
 * @method $this withLicenseMetadata($value)
85
 * @method string getDuration()
86
 * @method $this withDuration($value)
87
 * @method string getResourceGroupId()
88
 * @method $this withResourceGroupId($value)
89
 * @method string getApprovalType()
90
 * @method $this withApprovalType($value)
91
 * @method string getTrialDuration()
92
 * @method $this withTrialDuration($value)
93
 * @method string getShareType()
94
 * @method $this withShareType($value)
95
 * @method array getTag()
96
 * @method string getUpgradeMetadata()
97
 * @method $this withUpgradeMetadata($value)
98
 * @method string getDeployMetadata()
99
 * @method $this withDeployMetadata($value)
100
 * @method string getServiceType()
101
 * @method $this withServiceType($value)
102
 * @method string getIsSupportOperated()
103
 * @method $this withIsSupportOperated($value)
104
 * @method string getTenantType()
105
 * @method $this withTenantType($value)
106
 * @method array getServiceInfo()
107
 * @method string getServiceId()
108
 * @method $this withServiceId($value)
109
 * @method string getVersionName()
110
 * @method $this withVersionName($value)
111
 * @method string getOperationMetadata()
112
 * @method $this withOperationMetadata($value)
113
 * @method string getDeployType()
114
 * @method $this withDeployType($value)
115
 */
116
class CreateService extends Rpc
117
{
118
119
    /**
120
     * @param array $tag
121
     *
122
     * @return $this
123
     */
124
	public function withTag(array $tag)
125
	{
126
	    $this->data['Tag'] = $tag;
127
		foreach ($tag as $depth1 => $depth1Value) {
128
			if(isset($depth1Value['Value'])){
129
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
130
			}
131
			if(isset($depth1Value['Key'])){
132
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
133
			}
134
		}
135
136
		return $this;
137
    }
138
139
    /**
140
     * @param array $serviceInfo
141
     *
142
     * @return $this
143
     */
144
	public function withServiceInfo(array $serviceInfo)
145
	{
146
	    $this->data['ServiceInfo'] = $serviceInfo;
147
		foreach ($serviceInfo as $depth1 => $depth1Value) {
148
			if(isset($depth1Value['ShortDescription'])){
149
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.ShortDescription'] = $depth1Value['ShortDescription'];
150
			}
151
			if(isset($depth1Value['Image'])){
152
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image'];
153
			}
154
			if(isset($depth1Value['Name'])){
155
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
156
			}
157
			if(isset($depth1Value['Locale'])){
158
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.Locale'] = $depth1Value['Locale'];
159
			}
160
		}
161
162
		return $this;
163
    }
164
}
165
166
/**
167
 * @method string getArtifactVersion()
168
 * @method $this withArtifactVersion($value)
169
 * @method string getArtifactId()
170
 * @method $this withArtifactId($value)
171
 */
172
class DeleteArtifact extends Rpc
173
{
174
}
175
176
/**
177
 * @method string getClientToken()
178
 * @method $this withClientToken($value)
179
 * @method string getServiceVersion()
180
 * @method $this withServiceVersion($value)
181
 * @method string getServiceId()
182
 * @method $this withServiceId($value)
183
 */
184
class DeleteService extends Rpc
185
{
186
}
187
188
/**
189
 * @method string getArtifactVersion()
190
 * @method $this withArtifactVersion($value)
191
 * @method string getArtifactId()
192
 * @method $this withArtifactId($value)
193
 */
194
class GetArtifact extends Rpc
195
{
196
}
197
198
/**
199
 * @method string getDeployRegionId()
200
 * @method $this withDeployRegionId($value)
201
 * @method string getArtifactType()
202
 * @method $this withArtifactType($value)
203
 */
204
class GetArtifactRepositoryCredentials extends Rpc
205
{
206
}
207
208
/**
209
 * @method string getServiceVersion()
210
 * @method $this withServiceVersion($value)
211
 * @method string getServiceId()
212
 * @method $this withServiceId($value)
213
 */
214
class GetService extends Rpc
215
{
216
}
217
218
/**
219
 * @method string getClientToken()
220
 * @method $this withClientToken($value)
221
 * @method string getServiceVersion()
222
 * @method $this withServiceVersion($value)
223
 * @method string getTemplateName()
224
 * @method $this withTemplateName($value)
225
 * @method string getServiceId()
226
 * @method $this withServiceId($value)
227
 * @method string getParameters()
228
 * @method $this withParameters($value)
229
 * @method string getServiceInstanceId()
230
 * @method $this withServiceInstanceId($value)
231
 */
232
class GetServiceEstimateCost extends Rpc
233
{
234
}
235
236
/**
237
 * @method string getServiceInstanceId()
238
 * @method $this withServiceInstanceId($value)
239
 */
240
class GetServiceInstance extends Rpc
241
{
242
}
243
244
/**
245
 * @method string getNextToken()
246
 * @method $this withNextToken($value)
247
 * @method array getFilter()
248
 * @method string getMaxResults()
249
 * @method $this withMaxResults($value)
250
 */
251
class ListArtifacts extends Rpc
252
{
253
254
    /**
255
     * @param array $filter
256
     *
257
     * @return $this
258
     */
259
	public function withFilter(array $filter)
260
	{
261
	    $this->data['Filter'] = $filter;
262
		foreach ($filter as $depth1 => $depth1Value) {
263
			foreach ($depth1Value['Values'] as $i => $iValue) {
264
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Values.' . ($i + 1)] = $iValue;
265
			}
266
			if(isset($depth1Value['Name'])){
267
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
268
			}
269
		}
270
271
		return $this;
272
    }
273
}
274
275
/**
276
 * @method string getNextToken()
277
 * @method $this withNextToken($value)
278
 * @method string getMaxResult()
279
 * @method $this withMaxResult($value)
280
 * @method string getArtifactId()
281
 * @method $this withArtifactId($value)
282
 */
283
class ListArtifactVersions extends Rpc
284
{
285
}
286
287
/**
288
 * @method string getNextToken()
289
 * @method $this withNextToken($value)
290
 * @method array getTag()
291
 * @method string getShowDeleted()
292
 * @method $this withShowDeleted($value)
293
 * @method array getFilter()
294
 * @method string getMaxResults()
295
 * @method $this withMaxResults($value)
296
 */
297
class ListServiceInstances extends Rpc
298
{
299
300
    /**
301
     * @param array $tag
302
     *
303
     * @return $this
304
     */
305
	public function withTag(array $tag)
306
	{
307
	    $this->data['Tag'] = $tag;
308
		foreach ($tag as $depth1 => $depth1Value) {
309
			if(isset($depth1Value['Value'])){
310
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
311
			}
312
			if(isset($depth1Value['Key'])){
313
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
314
			}
315
		}
316
317
		return $this;
318
    }
319
320
    /**
321
     * @param array $filter
322
     *
323
     * @return $this
324
     */
325
	public function withFilter(array $filter)
326
	{
327
	    $this->data['Filter'] = $filter;
328
		foreach ($filter as $depth1 => $depth1Value) {
329
			if(isset($depth1Value['Name'])){
330
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
331
			}
332
			foreach ($depth1Value['Value'] as $i => $iValue) {
333
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
334
			}
335
		}
336
337
		return $this;
338
    }
339
}
340
341
/**
342
 * @method string getAllVersions()
343
 * @method $this withAllVersions($value)
344
 * @method string getResourceGroupId()
345
 * @method $this withResourceGroupId($value)
346
 * @method string getNextToken()
347
 * @method $this withNextToken($value)
348
 * @method array getTag()
349
 * @method array getFilter()
350
 * @method string getMaxResults()
351
 * @method $this withMaxResults($value)
352
 */
353
class ListServices extends Rpc
354
{
355
356
    /**
357
     * @param array $tag
358
     *
359
     * @return $this
360
     */
361
	public function withTag(array $tag)
362
	{
363
	    $this->data['Tag'] = $tag;
364
		foreach ($tag as $depth1 => $depth1Value) {
365
			if(isset($depth1Value['Value'])){
366
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
367
			}
368
			if(isset($depth1Value['Key'])){
369
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
370
			}
371
		}
372
373
		return $this;
374
    }
375
376
    /**
377
     * @param array $filter
378
     *
379
     * @return $this
380
     */
381
	public function withFilter(array $filter)
382
	{
383
	    $this->data['Filter'] = $filter;
384
		foreach ($filter as $depth1 => $depth1Value) {
385
			if(isset($depth1Value['Name'])){
386
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
387
			}
388
			foreach ($depth1Value['Value'] as $i => $iValue) {
389
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
390
			}
391
		}
392
393
		return $this;
394
    }
395
}
396
397
/**
398
 * @method string getNextToken()
399
 * @method $this withNextToken($value)
400
 * @method array getFilter()
401
 * @method string getMaxResults()
402
 * @method $this withMaxResults($value)
403
 */
404
class ListServiceUsages extends Rpc
405
{
406
407
    /**
408
     * @param array $filter
409
     *
410
     * @return $this
411
     */
412
	public function withFilter(array $filter)
413
	{
414
	    $this->data['Filter'] = $filter;
415
		foreach ($filter as $depth1 => $depth1Value) {
416
			if(isset($depth1Value['Name'])){
417
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
418
			}
419
			foreach ($depth1Value['Value'] as $i => $iValue) {
420
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
421
			}
422
		}
423
424
		return $this;
425
    }
426
}
427
428
/**
429
 * @method string getArtifactId()
430
 * @method $this withArtifactId($value)
431
 */
432
class ReleaseArtifact extends Rpc
433
{
434
}
435
436
/**
437
 * @method string getDescription()
438
 * @method $this withDescription($value)
439
 * @method array getSupportRegionIds()
440
 * @method string getArtifactId()
441
 * @method $this withArtifactId($value)
442
 * @method string getArtifactProperty()
443
 * @method $this withArtifactProperty($value)
444
 * @method string getVersionName()
445
 * @method $this withVersionName($value)
446
 */
447
class UpdateArtifact extends Rpc
448
{
449
450
    /**
451
     * @param array $supportRegionIds
452
     *
453
     * @return $this
454
     */
455
	public function withSupportRegionIds(array $supportRegionIds)
456
	{
457
	    $this->data['SupportRegionIds'] = $supportRegionIds;
458
		foreach ($supportRegionIds as $i => $iValue) {
459
			$this->options['query']['SupportRegionIds.' . ($i + 1)] = $iValue;
460
		}
461
462
		return $this;
463
    }
464
}
465
466
/**
467
 * @method string getAlarmMetadata()
468
 * @method $this withAlarmMetadata($value)
469
 * @method string getClientToken()
470
 * @method $this withClientToken($value)
471
 * @method string getPolicyNames()
472
 * @method $this withPolicyNames($value)
473
 * @method string getLicenseMetadata()
474
 * @method $this withLicenseMetadata($value)
475
 * @method string getDuration()
476
 * @method $this withDuration($value)
477
 * @method string getTrialDuration()
478
 * @method $this withTrialDuration($value)
479
 * @method string getUpgradeMetadata()
480
 * @method $this withUpgradeMetadata($value)
481
 * @method string getDeployMetadata()
482
 * @method $this withDeployMetadata($value)
483
 * @method string getServiceType()
484
 * @method $this withServiceType($value)
485
 * @method string getIsSupportOperated()
486
 * @method $this withIsSupportOperated($value)
487
 * @method string getTenantType()
488
 * @method $this withTenantType($value)
489
 * @method string getServiceVersion()
490
 * @method $this withServiceVersion($value)
491
 * @method array getServiceInfo()
492
 * @method string getServiceId()
493
 * @method $this withServiceId($value)
494
 * @method string getVersionName()
495
 * @method $this withVersionName($value)
496
 * @method string getOperationMetadata()
497
 * @method $this withOperationMetadata($value)
498
 * @method string getDeployType()
499
 * @method $this withDeployType($value)
500
 */
501
class UpdateService extends Rpc
502
{
503
504
    /**
505
     * @param array $serviceInfo
506
     *
507
     * @return $this
508
     */
509
	public function withServiceInfo(array $serviceInfo)
510
	{
511
	    $this->data['ServiceInfo'] = $serviceInfo;
512
		foreach ($serviceInfo as $depth1 => $depth1Value) {
513
			if(isset($depth1Value['ShortDescription'])){
514
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.ShortDescription'] = $depth1Value['ShortDescription'];
515
			}
516
			if(isset($depth1Value['Image'])){
517
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image'];
518
			}
519
			if(isset($depth1Value['Name'])){
520
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
521
			}
522
			if(isset($depth1Value['Locale'])){
523
				$this->options['query']['ServiceInfo.' . ($depth1 + 1) . '.Locale'] = $depth1Value['Locale'];
524
			}
525
		}
526
527
		return $this;
528
    }
529
}
530