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 ( 3bcb20...ff50fb )
by
unknown
06:44
created

ModifyReplicationJobAttribute::withDataDisk()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 2
nc 2
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 getTargetType()
42
 * @method $this withTargetType($value)
43
 * @method string getClientToken()
44
 * @method $this withClientToken($value)
45
 * @method string getDescription()
46
 * @method $this withDescription($value)
47
 * @method string getFrequency()
48
 * @method $this withFrequency($value)
49
 * @method string getReplicationParameters()
50
 * @method $this withReplicationParameters($value)
51
 * @method string getImageName()
52
 * @method $this withImageName($value)
53
 * @method string getSystemDiskSize()
54
 * @method $this withSystemDiskSize($value)
55
 * @method string getInstanceType()
56
 * @method $this withInstanceType($value)
57
 * @method array getTag()
58
 * @method string getNetMode()
59
 * @method $this withNetMode($value)
60
 * @method string getSourceId()
61
 * @method $this withSourceId($value)
62
 * @method string getRunOnce()
63
 * @method $this withRunOnce($value)
64
 * @method string getResourceOwnerAccount()
65
 * @method $this withResourceOwnerAccount($value)
66
 * @method string getValidTime()
67
 * @method $this withValidTime($value)
68
 * @method string getOwnerId()
69
 * @method $this withOwnerId($value)
70
 * @method array getDataDisk()
71
 * @method string getVSwitchId()
72
 * @method $this withVSwitchId($value)
73
 * @method string getScheduledStartTime()
74
 * @method $this withScheduledStartTime($value)
75
 * @method string getInstanceId()
76
 * @method $this withInstanceId($value)
77
 * @method string getVpcId()
78
 * @method $this withVpcId($value)
79
 * @method string getName()
80
 * @method $this withName($value)
81
 * @method string getMaxNumberOfImageToKeep()
82
 * @method $this withMaxNumberOfImageToKeep($value)
83
 */
84
class CreateReplicationJob extends Rpc
85
{
86
87
    /**
88
     * @param array $tag
89
     *
90
     * @return $this
91
     */
92
	public function withTag(array $tag)
93
	{
94
	    $this->data['Tag'] = $tag;
95
		foreach ($tag as $depth1 => $depth1Value) {
96
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
97
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
98
		}
99
100
		return $this;
101
    }
102
103
    /**
104
     * @param array $dataDisk
105
     *
106
     * @return $this
107
     */
108
	public function withDataDisk(array $dataDisk)
109
	{
110
	    $this->data['DataDisk'] = $dataDisk;
111
		foreach ($dataDisk as $depth1 => $depth1Value) {
112
			$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Size'] = $depth1Value['Size'];
113
			$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Index'] = $depth1Value['Index'];
114
		}
115
116
		return $this;
117
    }
118
}
119
120
/**
121
 * @method string getResourceOwnerAccount()
122
 * @method $this withResourceOwnerAccount($value)
123
 * @method string getOwnerId()
124
 * @method $this withOwnerId($value)
125
 * @method string getJobId()
126
 * @method $this withJobId($value)
127
 */
128
class DeleteReplicationJob extends Rpc
129
{
130
}
131
132
/**
133
 * @method string getSourceId()
134
 * @method $this withSourceId($value)
135
 * @method string getResourceOwnerAccount()
136
 * @method $this withResourceOwnerAccount($value)
137
 * @method string getOwnerId()
138
 * @method $this withOwnerId($value)
139
 * @method string getForce()
140
 * @method $this withForce($value)
141
 */
142
class DeleteSourceServer extends Rpc
143
{
144
}
145
146
/**
147
 * @method string getPageNumber()
148
 * @method $this withPageNumber($value)
149
 * @method array getJobId()
150
 * @method string getPageSize()
151
 * @method $this withPageSize($value)
152
 * @method array getSourceId()
153
 * @method string getBusinessStatus()
154
 * @method $this withBusinessStatus($value)
155
 * @method string getResourceOwnerAccount()
156
 * @method $this withResourceOwnerAccount($value)
157
 * @method string getOwnerId()
158
 * @method $this withOwnerId($value)
159
 * @method string getName()
160
 * @method $this withName($value)
161
 * @method string getStatus()
162
 * @method $this withStatus($value)
163
 */
164
class DescribeReplicationJobs extends Rpc
165
{
166
167
    /**
168
     * @param array $jobId
169
     *
170
     * @return $this
171
     */
172
	public function withJobId(array $jobId)
173
	{
174
	    $this->data['JobId'] = $jobId;
175
		foreach ($jobId as $i => $iValue) {
176
			$this->options['query']['JobId.' . ($i + 1)] = $iValue;
177
		}
178
179
		return $this;
180
    }
181
182
    /**
183
     * @param array $sourceId
184
     *
185
     * @return $this
186
     */
187
	public function withSourceId(array $sourceId)
188
	{
189
	    $this->data['SourceId'] = $sourceId;
190
		foreach ($sourceId as $i => $iValue) {
191
			$this->options['query']['SourceId.' . ($i + 1)] = $iValue;
192
		}
193
194
		return $this;
195
    }
196
}
197
198
/**
199
 * @method string getPageNumber()
200
 * @method $this withPageNumber($value)
201
 * @method string getJobId()
202
 * @method $this withJobId($value)
203
 * @method string getPageSize()
204
 * @method $this withPageSize($value)
205
 * @method string getState()
206
 * @method $this withState($value)
207
 * @method array getSourceId()
208
 * @method string getResourceOwnerAccount()
209
 * @method $this withResourceOwnerAccount($value)
210
 * @method string getOwnerId()
211
 * @method $this withOwnerId($value)
212
 * @method string getName()
213
 * @method $this withName($value)
214
 */
215
class DescribeSourceServers extends Rpc
216
{
217
218
    /**
219
     * @param array $sourceId
220
     *
221
     * @return $this
222
     */
223
	public function withSourceId(array $sourceId)
224
	{
225
	    $this->data['SourceId'] = $sourceId;
226
		foreach ($sourceId as $i => $iValue) {
227
			$this->options['query']['SourceId.' . ($i + 1)] = $iValue;
228
		}
229
230
		return $this;
231
    }
232
}
233
234
/**
235
 * @method string getNextToken()
236
 * @method $this withNextToken($value)
237
 * @method array getTag()
238
 * @method array getResourceId()
239
 * @method string getResourceOwnerAccount()
240
 * @method $this withResourceOwnerAccount($value)
241
 * @method string getOwnerId()
242
 * @method $this withOwnerId($value)
243
 * @method string getResourceType()
244
 * @method $this withResourceType($value)
245
 */
246
class ListTagResources extends Rpc
247
{
248
249
    /**
250
     * @param array $tag
251
     *
252
     * @return $this
253
     */
254
	public function withTag(array $tag)
255
	{
256
	    $this->data['Tag'] = $tag;
257
		foreach ($tag as $depth1 => $depth1Value) {
258
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
259
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
260
		}
261
262
		return $this;
263
    }
264
265
    /**
266
     * @param array $resourceId
267
     *
268
     * @return $this
269
     */
270
	public function withResourceId(array $resourceId)
271
	{
272
	    $this->data['ResourceId'] = $resourceId;
273
		foreach ($resourceId as $i => $iValue) {
274
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
275
		}
276
277
		return $this;
278
    }
279
}
280
281
/**
282
 * @method string getTargetType()
283
 * @method $this withTargetType($value)
284
 * @method string getDescription()
285
 * @method $this withDescription($value)
286
 * @method string getFrequency()
287
 * @method $this withFrequency($value)
288
 * @method string getJobId()
289
 * @method $this withJobId($value)
290
 * @method string getImageName()
291
 * @method $this withImageName($value)
292
 * @method string getSystemDiskSize()
293
 * @method $this withSystemDiskSize($value)
294
 * @method string getInstanceType()
295
 * @method $this withInstanceType($value)
296
 * @method string getResourceOwnerAccount()
297
 * @method $this withResourceOwnerAccount($value)
298
 * @method string getOwnerId()
299
 * @method $this withOwnerId($value)
300
 * @method array getDataDisk()
301
 * @method string getScheduledStartTime()
302
 * @method $this withScheduledStartTime($value)
303
 * @method string getInstanceId()
304
 * @method $this withInstanceId($value)
305
 * @method string getName()
306
 * @method $this withName($value)
307
 * @method string getMaxNumberOfImageToKeep()
308
 * @method $this withMaxNumberOfImageToKeep($value)
309
 */
310
class ModifyReplicationJobAttribute extends Rpc
311
{
312
313
    /**
314
     * @param array $dataDisk
315
     *
316
     * @return $this
317
     */
318
	public function withDataDisk(array $dataDisk)
319
	{
320
	    $this->data['DataDisk'] = $dataDisk;
321
		foreach ($dataDisk as $depth1 => $depth1Value) {
322
			$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Size'] = $depth1Value['Size'];
323
			$this->options['query']['DataDisk.' . ($depth1 + 1) . '.Index'] = $depth1Value['Index'];
324
		}
325
326
		return $this;
327
    }
328
}
329
330
/**
331
 * @method string getDescription()
332
 * @method $this withDescription($value)
333
 * @method string getSourceId()
334
 * @method $this withSourceId($value)
335
 * @method string getResourceOwnerAccount()
336
 * @method $this withResourceOwnerAccount($value)
337
 * @method string getOwnerId()
338
 * @method $this withOwnerId($value)
339
 * @method string getName()
340
 * @method $this withName($value)
341
 */
342
class ModifySourceServerAttribute extends Rpc
343
{
344
}
345
346
/**
347
 * @method string getResourceOwnerAccount()
348
 * @method $this withResourceOwnerAccount($value)
349
 * @method string getOwnerId()
350
 * @method $this withOwnerId($value)
351
 * @method string getJobId()
352
 * @method $this withJobId($value)
353
 */
354
class StartReplicationJob extends Rpc
355
{
356
}
357
358
/**
359
 * @method string getResourceOwnerAccount()
360
 * @method $this withResourceOwnerAccount($value)
361
 * @method string getOwnerId()
362
 * @method $this withOwnerId($value)
363
 * @method string getJobId()
364
 * @method $this withJobId($value)
365
 */
366
class StopReplicationJob extends Rpc
367
{
368
}
369
370
/**
371
 * @method array getTag()
372
 * @method array getResourceId()
373
 * @method string getResourceOwnerAccount()
374
 * @method $this withResourceOwnerAccount($value)
375
 * @method string getOwnerId()
376
 * @method $this withOwnerId($value)
377
 * @method string getResourceType()
378
 * @method $this withResourceType($value)
379
 */
380
class TagResources extends Rpc
381
{
382
383
    /**
384
     * @param array $tag
385
     *
386
     * @return $this
387
     */
388
	public function withTag(array $tag)
389
	{
390
	    $this->data['Tag'] = $tag;
391
		foreach ($tag as $depth1 => $depth1Value) {
392
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
393
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
394
		}
395
396
		return $this;
397
    }
398
399
    /**
400
     * @param array $resourceId
401
     *
402
     * @return $this
403
     */
404
	public function withResourceId(array $resourceId)
405
	{
406
	    $this->data['ResourceId'] = $resourceId;
407
		foreach ($resourceId as $i => $iValue) {
408
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
409
		}
410
411
		return $this;
412
    }
413
}
414
415
/**
416
 * @method string getAll()
417
 * @method $this withAll($value)
418
 * @method array getResourceId()
419
 * @method string getResourceOwnerAccount()
420
 * @method $this withResourceOwnerAccount($value)
421
 * @method string getOwnerId()
422
 * @method $this withOwnerId($value)
423
 * @method string getResourceType()
424
 * @method $this withResourceType($value)
425
 * @method array getTagKey()
426
 */
427
class UntagResources extends Rpc
428
{
429
430
    /**
431
     * @param array $resourceId
432
     *
433
     * @return $this
434
     */
435
	public function withResourceId(array $resourceId)
436
	{
437
	    $this->data['ResourceId'] = $resourceId;
438
		foreach ($resourceId as $i => $iValue) {
439
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
440
		}
441
442
		return $this;
443
    }
444
445
    /**
446
     * @param array $tagKey
447
     *
448
     * @return $this
449
     */
450
	public function withTagKey(array $tagKey)
451
	{
452
	    $this->data['TagKey'] = $tagKey;
453
		foreach ($tagKey as $i => $iValue) {
454
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
455
		}
456
457
		return $this;
458
    }
459
}
460