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 ( d66a45...1e9b9c )
by
unknown
07:15
created

CreateService::withTag()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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