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 ( 7c8e8c...a4e484 )
by
unknown
06:47
created

CreateReplicationJob::withSystemDiskPart()   A

Complexity

Conditions 5
Paths 9

Size

Total Lines 16
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 16
rs 9.6111
cc 5
nc 9
nop 1
1
<?php
2
3
namespace AlibabaCloud\Smc\V20190601;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateReplicationJob createReplicationJob(array $options = [])
9
 * @method DeleteReplicationJob deleteReplicationJob(array $options = [])
10
 * @method DeleteSourceServer deleteSourceServer(array $options = [])
11
 * @method DescribeReplicationJobs describeReplicationJobs(array $options = [])
12
 * @method DescribeSourceServers describeSourceServers(array $options = [])
13
 * @method ListTagResources listTagResources(array $options = [])
14
 * @method ModifyReplicationJobAttribute modifyReplicationJobAttribute(array $options = [])
15
 * @method ModifySourceServerAttribute modifySourceServerAttribute(array $options = [])
16
 * @method StartReplicationJob startReplicationJob(array $options = [])
17
 * @method StopReplicationJob stopReplicationJob(array $options = [])
18
 * @method TagResources tagResources(array $options = [])
19
 * @method UntagResources untagResources(array $options = [])
20
 */
21
class SmcApiResolver extends ApiResolver
22
{
23
}
24
25
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
26
{
27
    /** @var string */
28
    public $product = 'smc';
29
30
    /** @var string */
31
    public $version = '2019-06-01';
32
33
    /** @var string */
34
    public $method = 'POST';
35
36
    /** @var string */
37
    public $serviceCode = 'smc';
38
}
39
40
/**
41
 * @method string getFrequency()
42
 * @method $this withFrequency($value)
43
 * @method string getReplicationParameters()
44
 * @method $this withReplicationParameters($value)
45
 * @method string getSystemDiskSize()
46
 * @method $this withSystemDiskSize($value)
47
 * @method array getTag()
48
 * @method string getNetMode()
49
 * @method $this withNetMode($value)
50
 * @method string getContainerNamespace()
51
 * @method $this withContainerNamespace($value)
52
 * @method string getLaunchTemplateId()
53
 * @method $this withLaunchTemplateId($value)
54
 * @method string getValidTime()
55
 * @method $this withValidTime($value)
56
 * @method string getOwnerId()
57
 * @method $this withOwnerId($value)
58
 * @method string getVSwitchId()
59
 * @method $this withVSwitchId($value)
60
 * @method string getScheduledStartTime()
61
 * @method $this withScheduledStartTime($value)
62
 * @method string getInstanceId()
63
 * @method $this withInstanceId($value)
64
 * @method string getInstanceRamRole()
65
 * @method $this withInstanceRamRole($value)
66
 * @method string getName()
67
 * @method $this withName($value)
68
 * @method string getMaxNumberOfImageToKeep()
69
 * @method $this withMaxNumberOfImageToKeep($value)
70
 * @method string getTargetType()
71
 * @method $this withTargetType($value)
72
 * @method string getClientToken()
73
 * @method $this withClientToken($value)
74
 * @method string getDescription()
75
 * @method $this withDescription($value)
76
 * @method string getImageName()
77
 * @method $this withImageName($value)
78
 * @method string getInstanceType()
79
 * @method $this withInstanceType($value)
80
 * @method string getContainerRepository()
81
 * @method $this withContainerRepository($value)
82
 * @method string getContainerTag()
83
 * @method $this withContainerTag($value)
84
 * @method string getSourceId()
85
 * @method $this withSourceId($value)
86
 * @method string getRunOnce()
87
 * @method $this withRunOnce($value)
88
 * @method string getResourceOwnerAccount()
89
 * @method $this withResourceOwnerAccount($value)
90
 * @method array getSystemDiskPart()
91
 * @method array getDataDisk()
92
 * @method string getLaunchTemplateVersion()
93
 * @method $this withLaunchTemplateVersion($value)
94
 * @method string getVpcId()
95
 * @method $this withVpcId($value)
96
 */
97
class CreateReplicationJob extends Rpc
98
{
99
100
    /**
101
     * @param array $tag
102
     *
103
     * @return $this
104
     */
105
	public function withTag(array $tag)
106
	{
107
	    $this->data['Tag'] = $tag;
108
		foreach ($tag as $depth1 => $depth1Value) {
109
			if(isset($depth1Value['Value'])){
110
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
111
			}
112
			if(isset($depth1Value['Key'])){
113
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
114
			}
115
		}
116
117
		return $this;
118
    }
119
120
    /**
121
     * @param array $systemDiskPart
122
     *
123
     * @return $this
124
     */
125
	public function withSystemDiskPart(array $systemDiskPart)
126
	{
127
	    $this->data['SystemDiskPart'] = $systemDiskPart;
128
		foreach ($systemDiskPart as $depth1 => $depth1Value) {
129
			if(isset($depth1Value['SizeBytes'])){
130
				$this->options['query']['SystemDiskPart.' . ($depth1 + 1) . '.SizeBytes'] = $depth1Value['SizeBytes'];
131
			}
132
			if(isset($depth1Value['Block'])){
133
				$this->options['query']['SystemDiskPart.' . ($depth1 + 1) . '.Block'] = $depth1Value['Block'];
134
			}
135
			if(isset($depth1Value['Device'])){
136
				$this->options['query']['SystemDiskPart.' . ($depth1 + 1) . '.Device'] = $depth1Value['Device'];
137
			}
138
		}
139
140
		return $this;
141
    }
142
143
    /**
144
     * @param array $dataDisk
145
     *
146
     * @return $this
147
     */
148
	public function withDataDisk(array $dataDisk)
149
	{
150
	    $this->data['DataDisk'] = $dataDisk;
151
		foreach ($dataDisk as $depth1 => $depth1Value) {
152
			if(isset($depth1Value['Size'])){
153
				$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Size'] = $depth1Value['Size'];
154
			}
155
			foreach ($depth1Value['Part'] as $depth2 => $depth2Value) {
156
				if(isset($depth2Value['SizeBytes'])){
157
					$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Part.' . ($depth2 + 1) . '.SizeBytes'] = $depth2Value['SizeBytes'];
158
				}
159
				if(isset($depth2Value['Block'])){
160
					$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Part.' . ($depth2 + 1) . '.Block'] = $depth2Value['Block'];
161
				}
162
				if(isset($depth2Value['Device'])){
163
					$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Part.' . ($depth2 + 1) . '.Device'] = $depth2Value['Device'];
164
				}
165
			}
166
			if(isset($depth1Value['Index'])){
167
				$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Index'] = $depth1Value['Index'];
168
			}
169
		}
170
171
		return $this;
172
    }
173
}
174
175
/**
176
 * @method string getResourceOwnerAccount()
177
 * @method $this withResourceOwnerAccount($value)
178
 * @method string getOwnerId()
179
 * @method $this withOwnerId($value)
180
 * @method string getJobId()
181
 * @method $this withJobId($value)
182
 */
183
class DeleteReplicationJob extends Rpc
184
{
185
}
186
187
/**
188
 * @method string getSourceId()
189
 * @method $this withSourceId($value)
190
 * @method string getResourceOwnerAccount()
191
 * @method $this withResourceOwnerAccount($value)
192
 * @method string getOwnerId()
193
 * @method $this withOwnerId($value)
194
 * @method string getForce()
195
 * @method $this withForce($value)
196
 */
197
class DeleteSourceServer extends Rpc
198
{
199
}
200
201
/**
202
 * @method string getPageNumber()
203
 * @method $this withPageNumber($value)
204
 * @method array getJobId()
205
 * @method string getPageSize()
206
 * @method $this withPageSize($value)
207
 * @method array getSourceId()
208
 * @method string getBusinessStatus()
209
 * @method $this withBusinessStatus($value)
210
 * @method string getResourceOwnerAccount()
211
 * @method $this withResourceOwnerAccount($value)
212
 * @method string getOwnerId()
213
 * @method $this withOwnerId($value)
214
 * @method string getName()
215
 * @method $this withName($value)
216
 * @method string getStatus()
217
 * @method $this withStatus($value)
218
 */
219
class DescribeReplicationJobs extends Rpc
220
{
221
222
    /**
223
     * @param array $jobId
224
     *
225
     * @return $this
226
     */
227
	public function withJobId(array $jobId)
228
	{
229
	    $this->data['JobId'] = $jobId;
230
		foreach ($jobId as $i => $iValue) {
231
			$this->options['query']['JobId.' . ($i + 1)] = $iValue;
232
		}
233
234
		return $this;
235
    }
236
237
    /**
238
     * @param array $sourceId
239
     *
240
     * @return $this
241
     */
242
	public function withSourceId(array $sourceId)
243
	{
244
	    $this->data['SourceId'] = $sourceId;
245
		foreach ($sourceId as $i => $iValue) {
246
			$this->options['query']['SourceId.' . ($i + 1)] = $iValue;
247
		}
248
249
		return $this;
250
    }
251
}
252
253
/**
254
 * @method string getPageNumber()
255
 * @method $this withPageNumber($value)
256
 * @method string getJobId()
257
 * @method $this withJobId($value)
258
 * @method string getPageSize()
259
 * @method $this withPageSize($value)
260
 * @method string getState()
261
 * @method $this withState($value)
262
 * @method array getSourceId()
263
 * @method string getResourceOwnerAccount()
264
 * @method $this withResourceOwnerAccount($value)
265
 * @method string getOwnerId()
266
 * @method $this withOwnerId($value)
267
 * @method string getName()
268
 * @method $this withName($value)
269
 */
270
class DescribeSourceServers extends Rpc
271
{
272
273
    /**
274
     * @param array $sourceId
275
     *
276
     * @return $this
277
     */
278
	public function withSourceId(array $sourceId)
279
	{
280
	    $this->data['SourceId'] = $sourceId;
281
		foreach ($sourceId as $i => $iValue) {
282
			$this->options['query']['SourceId.' . ($i + 1)] = $iValue;
283
		}
284
285
		return $this;
286
    }
287
}
288
289
/**
290
 * @method string getNextToken()
291
 * @method $this withNextToken($value)
292
 * @method array getTag()
293
 * @method array getResourceId()
294
 * @method string getResourceOwnerAccount()
295
 * @method $this withResourceOwnerAccount($value)
296
 * @method string getOwnerId()
297
 * @method $this withOwnerId($value)
298
 * @method string getResourceType()
299
 * @method $this withResourceType($value)
300
 */
301
class ListTagResources extends Rpc
302
{
303
304
    /**
305
     * @param array $tag
306
     *
307
     * @return $this
308
     */
309
	public function withTag(array $tag)
310
	{
311
	    $this->data['Tag'] = $tag;
312
		foreach ($tag as $depth1 => $depth1Value) {
313
			if(isset($depth1Value['Value'])){
314
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
315
			}
316
			if(isset($depth1Value['Key'])){
317
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
318
			}
319
		}
320
321
		return $this;
322
    }
323
324
    /**
325
     * @param array $resourceId
326
     *
327
     * @return $this
328
     */
329
	public function withResourceId(array $resourceId)
330
	{
331
	    $this->data['ResourceId'] = $resourceId;
332
		foreach ($resourceId as $i => $iValue) {
333
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
334
		}
335
336
		return $this;
337
    }
338
}
339
340
/**
341
 * @method string getTargetType()
342
 * @method $this withTargetType($value)
343
 * @method string getDescription()
344
 * @method $this withDescription($value)
345
 * @method string getFrequency()
346
 * @method $this withFrequency($value)
347
 * @method string getJobId()
348
 * @method $this withJobId($value)
349
 * @method string getImageName()
350
 * @method $this withImageName($value)
351
 * @method string getSystemDiskSize()
352
 * @method $this withSystemDiskSize($value)
353
 * @method string getInstanceType()
354
 * @method $this withInstanceType($value)
355
 * @method string getContainerRepository()
356
 * @method $this withContainerRepository($value)
357
 * @method string getContainerTag()
358
 * @method $this withContainerTag($value)
359
 * @method string getContainerNamespace()
360
 * @method $this withContainerNamespace($value)
361
 * @method string getLaunchTemplateId()
362
 * @method $this withLaunchTemplateId($value)
363
 * @method string getResourceOwnerAccount()
364
 * @method $this withResourceOwnerAccount($value)
365
 * @method array getSystemDiskPart()
366
 * @method string getValidTime()
367
 * @method $this withValidTime($value)
368
 * @method string getOwnerId()
369
 * @method $this withOwnerId($value)
370
 * @method array getDataDisk()
371
 * @method string getLaunchTemplateVersion()
372
 * @method $this withLaunchTemplateVersion($value)
373
 * @method string getScheduledStartTime()
374
 * @method $this withScheduledStartTime($value)
375
 * @method string getInstanceId()
376
 * @method $this withInstanceId($value)
377
 * @method string getInstanceRamRole()
378
 * @method $this withInstanceRamRole($value)
379
 * @method string getName()
380
 * @method $this withName($value)
381
 * @method string getMaxNumberOfImageToKeep()
382
 * @method $this withMaxNumberOfImageToKeep($value)
383
 */
384
class ModifyReplicationJobAttribute extends Rpc
385
{
386
387
    /**
388
     * @param array $systemDiskPart
389
     *
390
     * @return $this
391
     */
392
	public function withSystemDiskPart(array $systemDiskPart)
393
	{
394
	    $this->data['SystemDiskPart'] = $systemDiskPart;
395
		foreach ($systemDiskPart as $depth1 => $depth1Value) {
396
			if(isset($depth1Value['SizeBytes'])){
397
				$this->options['query']['SystemDiskPart.' . ($depth1 + 1) . '.SizeBytes'] = $depth1Value['SizeBytes'];
398
			}
399
			if(isset($depth1Value['Block'])){
400
				$this->options['query']['SystemDiskPart.' . ($depth1 + 1) . '.Block'] = $depth1Value['Block'];
401
			}
402
			if(isset($depth1Value['Device'])){
403
				$this->options['query']['SystemDiskPart.' . ($depth1 + 1) . '.Device'] = $depth1Value['Device'];
404
			}
405
		}
406
407
		return $this;
408
    }
409
410
    /**
411
     * @param array $dataDisk
412
     *
413
     * @return $this
414
     */
415
	public function withDataDisk(array $dataDisk)
416
	{
417
	    $this->data['DataDisk'] = $dataDisk;
418
		foreach ($dataDisk as $depth1 => $depth1Value) {
419
			if(isset($depth1Value['Size'])){
420
				$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Size'] = $depth1Value['Size'];
421
			}
422
			foreach ($depth1Value['Part'] as $depth2 => $depth2Value) {
423
				if(isset($depth2Value['SizeBytes'])){
424
					$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Part.' . ($depth2 + 1) . '.SizeBytes'] = $depth2Value['SizeBytes'];
425
				}
426
				if(isset($depth2Value['Block'])){
427
					$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Part.' . ($depth2 + 1) . '.Block'] = $depth2Value['Block'];
428
				}
429
				if(isset($depth2Value['Device'])){
430
					$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Part.' . ($depth2 + 1) . '.Device'] = $depth2Value['Device'];
431
				}
432
			}
433
			if(isset($depth1Value['Index'])){
434
				$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Index'] = $depth1Value['Index'];
435
			}
436
		}
437
438
		return $this;
439
    }
440
}
441
442
/**
443
 * @method string getDescription()
444
 * @method $this withDescription($value)
445
 * @method string getSourceId()
446
 * @method $this withSourceId($value)
447
 * @method string getResourceOwnerAccount()
448
 * @method $this withResourceOwnerAccount($value)
449
 * @method string getOwnerId()
450
 * @method $this withOwnerId($value)
451
 * @method string getName()
452
 * @method $this withName($value)
453
 */
454
class ModifySourceServerAttribute extends Rpc
455
{
456
}
457
458
/**
459
 * @method string getResourceOwnerAccount()
460
 * @method $this withResourceOwnerAccount($value)
461
 * @method string getOwnerId()
462
 * @method $this withOwnerId($value)
463
 * @method string getJobId()
464
 * @method $this withJobId($value)
465
 */
466
class StartReplicationJob extends Rpc
467
{
468
}
469
470
/**
471
 * @method string getResourceOwnerAccount()
472
 * @method $this withResourceOwnerAccount($value)
473
 * @method string getOwnerId()
474
 * @method $this withOwnerId($value)
475
 * @method string getJobId()
476
 * @method $this withJobId($value)
477
 */
478
class StopReplicationJob extends Rpc
479
{
480
}
481
482
/**
483
 * @method array getTag()
484
 * @method array getResourceId()
485
 * @method string getResourceOwnerAccount()
486
 * @method $this withResourceOwnerAccount($value)
487
 * @method string getOwnerId()
488
 * @method $this withOwnerId($value)
489
 * @method string getResourceType()
490
 * @method $this withResourceType($value)
491
 */
492
class TagResources extends Rpc
493
{
494
495
    /**
496
     * @param array $tag
497
     *
498
     * @return $this
499
     */
500
	public function withTag(array $tag)
501
	{
502
	    $this->data['Tag'] = $tag;
503
		foreach ($tag as $depth1 => $depth1Value) {
504
			if(isset($depth1Value['Value'])){
505
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
506
			}
507
			if(isset($depth1Value['Key'])){
508
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
509
			}
510
		}
511
512
		return $this;
513
    }
514
515
    /**
516
     * @param array $resourceId
517
     *
518
     * @return $this
519
     */
520
	public function withResourceId(array $resourceId)
521
	{
522
	    $this->data['ResourceId'] = $resourceId;
523
		foreach ($resourceId as $i => $iValue) {
524
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
525
		}
526
527
		return $this;
528
    }
529
}
530
531
/**
532
 * @method string getAll()
533
 * @method $this withAll($value)
534
 * @method array getResourceId()
535
 * @method string getResourceOwnerAccount()
536
 * @method $this withResourceOwnerAccount($value)
537
 * @method string getOwnerId()
538
 * @method $this withOwnerId($value)
539
 * @method string getResourceType()
540
 * @method $this withResourceType($value)
541
 * @method array getTagKey()
542
 */
543
class UntagResources extends Rpc
544
{
545
546
    /**
547
     * @param array $resourceId
548
     *
549
     * @return $this
550
     */
551
	public function withResourceId(array $resourceId)
552
	{
553
	    $this->data['ResourceId'] = $resourceId;
554
		foreach ($resourceId as $i => $iValue) {
555
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
556
		}
557
558
		return $this;
559
    }
560
561
    /**
562
     * @param array $tagKey
563
     *
564
     * @return $this
565
     */
566
	public function withTagKey(array $tagKey)
567
	{
568
	    $this->data['TagKey'] = $tagKey;
569
		foreach ($tagKey as $i => $iValue) {
570
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
571
		}
572
573
		return $this;
574
    }
575
}
576