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 ( ddff8a...23ca60 )
by
unknown
07:13
created

ListTagResources   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 32
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withResourceId() 0 8 2
A withTag() 0 9 2
1
<?php
2
3
namespace AlibabaCloud\Adb\V20190315;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AllocateClusterPublicConnection allocateClusterPublicConnection(array $options = [])
9
 * @method CreateAccount createAccount(array $options = [])
10
 * @method CreateDBCluster createDBCluster(array $options = [])
11
 * @method DeleteAccount deleteAccount(array $options = [])
12
 * @method DescribeAccounts describeAccounts(array $options = [])
13
 * @method DescribeAutoRenewAttribute describeAutoRenewAttribute(array $options = [])
14
 * @method DescribeBackupPolicy describeBackupPolicy(array $options = [])
15
 * @method DescribeBackups describeBackups(array $options = [])
16
 * @method DescribeDBClusterAccessWhiteList describeDBClusterAccessWhiteList(array $options = [])
17
 * @method DescribeDBClusterAttribute describeDBClusterAttribute(array $options = [])
18
 * @method DescribeDBClusterNetInfo describeDBClusterNetInfo(array $options = [])
19
 * @method DescribeDBClusterPerformance describeDBClusterPerformance(array $options = [])
20
 * @method DescribeDBClusters describeDBClusters(array $options = [])
21
 * @method DescribeOperatorPermission describeOperatorPermission(array $options = [])
22
 * @method DescribeRegions describeRegions(array $options = [])
23
 * @method DescribeSlowLogRecords describeSlowLogRecords(array $options = [])
24
 * @method DescribeSlowLogTrend describeSlowLogTrend(array $options = [])
25
 * @method GrantOperatorPermission grantOperatorPermission(array $options = [])
26
 * @method ListTagResources listTagResources(array $options = [])
27
 * @method ModifyAccountDescription modifyAccountDescription(array $options = [])
28
 * @method ModifyAutoRenewAttribute modifyAutoRenewAttribute(array $options = [])
29
 * @method ModifyDBClusterAccessWhiteList modifyDBClusterAccessWhiteList(array $options = [])
30
 * @method ModifyDBClusterDescription modifyDBClusterDescription(array $options = [])
31
 * @method ModifyDBClusterMaintainTime modifyDBClusterMaintainTime(array $options = [])
32
 * @method ReleaseClusterPublicConnection releaseClusterPublicConnection(array $options = [])
33
 * @method ResetAccountPassword resetAccountPassword(array $options = [])
34
 * @method RevokeOperatorPermission revokeOperatorPermission(array $options = [])
35
 * @method TagResources tagResources(array $options = [])
36
 * @method UntagResources untagResources(array $options = [])
37
 */
38
class AdbApiResolver extends ApiResolver
39
{
40
}
41
42
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
43
{
44
    /** @var string */
45
    public $product = 'adb';
46
47
    /** @var string */
48
    public $version = '2019-03-15';
49
50
    /** @var string */
51
    public $method = 'POST';
52
53
    /** @var string */
54
    public $serviceCode = 'ads';
55
}
56
57
/**
58
 * @method string getResourceOwnerId()
59
 * @method $this withResourceOwnerId($value)
60
 * @method string getConnectionStringPrefix()
61
 * @method $this withConnectionStringPrefix($value)
62
 * @method string getResourceOwnerAccount()
63
 * @method $this withResourceOwnerAccount($value)
64
 * @method string getDBClusterId()
65
 * @method $this withDBClusterId($value)
66
 * @method string getOwnerAccount()
67
 * @method $this withOwnerAccount($value)
68
 * @method string getOwnerId()
69
 * @method $this withOwnerId($value)
70
 */
71
class AllocateClusterPublicConnection extends Rpc
72
{
73
}
74
75
/**
76
 * @method string getResourceOwnerId()
77
 * @method $this withResourceOwnerId($value)
78
 * @method string getAccountDescription()
79
 * @method $this withAccountDescription($value)
80
 * @method string getAccountName()
81
 * @method $this withAccountName($value)
82
 * @method string getResourceOwnerAccount()
83
 * @method $this withResourceOwnerAccount($value)
84
 * @method string getDBClusterId()
85
 * @method $this withDBClusterId($value)
86
 * @method string getOwnerAccount()
87
 * @method $this withOwnerAccount($value)
88
 * @method string getOwnerId()
89
 * @method $this withOwnerId($value)
90
 * @method string getAccountPassword()
91
 * @method $this withAccountPassword($value)
92
 */
93
class CreateAccount extends Rpc
94
{
95
}
96
97
/**
98
 * @method string getResourceOwnerId()
99
 * @method $this withResourceOwnerId($value)
100
 * @method string getDBClusterDescription()
101
 * @method $this withDBClusterDescription($value)
102
 * @method string getClientToken()
103
 * @method $this withClientToken($value)
104
 * @method string getDBClusterCategory()
105
 * @method $this withDBClusterCategory($value)
106
 * @method string getDBClusterNetworkType()
107
 * @method $this withDBClusterNetworkType($value)
108
 * @method string getPeriod()
109
 * @method $this withPeriod($value)
110
 * @method string getResourceOwnerAccount()
111
 * @method $this withResourceOwnerAccount($value)
112
 * @method string getOwnerAccount()
113
 * @method $this withOwnerAccount($value)
114
 * @method string getDBClusterVersion()
115
 * @method $this withDBClusterVersion($value)
116
 * @method string getDBClusterClass()
117
 * @method $this withDBClusterClass($value)
118
 * @method string getOwnerId()
119
 * @method $this withOwnerId($value)
120
 * @method string getDBNodeGroupCount()
121
 * @method $this withDBNodeGroupCount($value)
122
 * @method string getUsedTime()
123
 * @method $this withUsedTime($value)
124
 * @method string getVSwitchId()
125
 * @method $this withVSwitchId($value)
126
 * @method string getDBNodeStorage()
127
 * @method $this withDBNodeStorage($value)
128
 * @method string getVPCId()
129
 * @method $this withVPCId($value)
130
 * @method string getZoneId()
131
 * @method $this withZoneId($value)
132
 * @method string getPayType()
133
 * @method $this withPayType($value)
134
 */
135
class CreateDBCluster extends Rpc
136
{
137
}
138
139
/**
140
 * @method string getResourceOwnerId()
141
 * @method $this withResourceOwnerId($value)
142
 * @method string getAccountName()
143
 * @method $this withAccountName($value)
144
 * @method string getResourceOwnerAccount()
145
 * @method $this withResourceOwnerAccount($value)
146
 * @method string getDBClusterId()
147
 * @method $this withDBClusterId($value)
148
 * @method string getOwnerAccount()
149
 * @method $this withOwnerAccount($value)
150
 * @method string getOwnerId()
151
 * @method $this withOwnerId($value)
152
 */
153
class DeleteAccount extends Rpc
154
{
155
}
156
157
/**
158
 * @method string getResourceOwnerId()
159
 * @method $this withResourceOwnerId($value)
160
 * @method string getAccountName()
161
 * @method $this withAccountName($value)
162
 * @method string getResourceOwnerAccount()
163
 * @method $this withResourceOwnerAccount($value)
164
 * @method string getDBClusterId()
165
 * @method $this withDBClusterId($value)
166
 * @method string getOwnerAccount()
167
 * @method $this withOwnerAccount($value)
168
 * @method string getOwnerId()
169
 * @method $this withOwnerId($value)
170
 */
171
class DescribeAccounts extends Rpc
172
{
173
}
174
175
/**
176
 * @method string getResourceOwnerId()
177
 * @method $this withResourceOwnerId($value)
178
 * @method string getPageNumber()
179
 * @method $this withPageNumber($value)
180
 * @method string getPageSize()
181
 * @method $this withPageSize($value)
182
 * @method string getResourceOwnerAccount()
183
 * @method $this withResourceOwnerAccount($value)
184
 * @method string getOwnerAccount()
185
 * @method $this withOwnerAccount($value)
186
 * @method string getOwnerId()
187
 * @method $this withOwnerId($value)
188
 * @method string getDBClusterIds()
189
 * @method $this withDBClusterIds($value)
190
 */
191
class DescribeAutoRenewAttribute extends Rpc
192
{
193
}
194
195
/**
196
 * @method string getResourceOwnerId()
197
 * @method $this withResourceOwnerId($value)
198
 * @method string getResourceOwnerAccount()
199
 * @method $this withResourceOwnerAccount($value)
200
 * @method string getDBClusterId()
201
 * @method $this withDBClusterId($value)
202
 * @method string getOwnerAccount()
203
 * @method $this withOwnerAccount($value)
204
 * @method string getOwnerId()
205
 * @method $this withOwnerId($value)
206
 */
207
class DescribeBackupPolicy extends Rpc
208
{
209
}
210
211
/**
212
 * @method string getResourceOwnerId()
213
 * @method $this withResourceOwnerId($value)
214
 * @method string getStartTime()
215
 * @method $this withStartTime($value)
216
 * @method string getPageNumber()
217
 * @method $this withPageNumber($value)
218
 * @method string getPageSize()
219
 * @method $this withPageSize($value)
220
 * @method string getResourceOwnerAccount()
221
 * @method $this withResourceOwnerAccount($value)
222
 * @method string getDBClusterId()
223
 * @method $this withDBClusterId($value)
224
 * @method string getOwnerAccount()
225
 * @method $this withOwnerAccount($value)
226
 * @method string getBackupId()
227
 * @method $this withBackupId($value)
228
 * @method string getEndTime()
229
 * @method $this withEndTime($value)
230
 * @method string getOwnerId()
231
 * @method $this withOwnerId($value)
232
 */
233
class DescribeBackups extends Rpc
234
{
235
}
236
237
/**
238
 * @method string getResourceOwnerId()
239
 * @method $this withResourceOwnerId($value)
240
 * @method string getResourceOwnerAccount()
241
 * @method $this withResourceOwnerAccount($value)
242
 * @method string getDBClusterId()
243
 * @method $this withDBClusterId($value)
244
 * @method string getOwnerAccount()
245
 * @method $this withOwnerAccount($value)
246
 * @method string getOwnerId()
247
 * @method $this withOwnerId($value)
248
 */
249
class DescribeDBClusterAccessWhiteList extends Rpc
250
{
251
}
252
253
/**
254
 * @method string getResourceOwnerId()
255
 * @method $this withResourceOwnerId($value)
256
 * @method string getResourceOwnerAccount()
257
 * @method $this withResourceOwnerAccount($value)
258
 * @method string getDBClusterId()
259
 * @method $this withDBClusterId($value)
260
 * @method string getOwnerAccount()
261
 * @method $this withOwnerAccount($value)
262
 * @method string getOwnerId()
263
 * @method $this withOwnerId($value)
264
 */
265
class DescribeDBClusterAttribute extends Rpc
266
{
267
}
268
269
/**
270
 * @method string getResourceOwnerId()
271
 * @method $this withResourceOwnerId($value)
272
 * @method string getResourceOwnerAccount()
273
 * @method $this withResourceOwnerAccount($value)
274
 * @method string getDBClusterId()
275
 * @method $this withDBClusterId($value)
276
 * @method string getOwnerAccount()
277
 * @method $this withOwnerAccount($value)
278
 * @method string getOwnerId()
279
 * @method $this withOwnerId($value)
280
 */
281
class DescribeDBClusterNetInfo extends Rpc
282
{
283
}
284
285
/**
286
 * @method string getResourceOwnerId()
287
 * @method $this withResourceOwnerId($value)
288
 * @method string getStartTime()
289
 * @method $this withStartTime($value)
290
 * @method string getKey()
291
 * @method $this withKey($value)
292
 * @method string getResourceOwnerAccount()
293
 * @method $this withResourceOwnerAccount($value)
294
 * @method string getDBClusterId()
295
 * @method $this withDBClusterId($value)
296
 * @method string getOwnerAccount()
297
 * @method $this withOwnerAccount($value)
298
 * @method string getEndTime()
299
 * @method $this withEndTime($value)
300
 * @method string getOwnerId()
301
 * @method $this withOwnerId($value)
302
 */
303
class DescribeDBClusterPerformance extends Rpc
304
{
305
}
306
307
/**
308
 * @method string getResourceOwnerId()
309
 * @method $this withResourceOwnerId($value)
310
 * @method string getDBClusterDescription()
311
 * @method $this withDBClusterDescription($value)
312
 * @method string getDBClusterStatus()
313
 * @method $this withDBClusterStatus($value)
314
 * @method string getPageNumber()
315
 * @method $this withPageNumber($value)
316
 * @method string getPageSize()
317
 * @method $this withPageSize($value)
318
 * @method array getTag()
319
 * @method string getResourceOwnerAccount()
320
 * @method $this withResourceOwnerAccount($value)
321
 * @method string getOwnerAccount()
322
 * @method $this withOwnerAccount($value)
323
 * @method string getOwnerId()
324
 * @method $this withOwnerId($value)
325
 * @method string getDBClusterIds()
326
 * @method $this withDBClusterIds($value)
327
 */
328
class DescribeDBClusters 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
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
341
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
342
		}
343
344
		return $this;
345
    }
346
}
347
348
/**
349
 * @method string getResourceOwnerId()
350
 * @method $this withResourceOwnerId($value)
351
 * @method string getResourceOwnerAccount()
352
 * @method $this withResourceOwnerAccount($value)
353
 * @method string getDBClusterId()
354
 * @method $this withDBClusterId($value)
355
 * @method string getOwnerAccount()
356
 * @method $this withOwnerAccount($value)
357
 * @method string getOwnerId()
358
 * @method $this withOwnerId($value)
359
 */
360
class DescribeOperatorPermission extends Rpc
361
{
362
}
363
364
/**
365
 * @method string getResourceOwnerId()
366
 * @method $this withResourceOwnerId($value)
367
 * @method string getResourceOwnerAccount()
368
 * @method $this withResourceOwnerAccount($value)
369
 * @method string getOwnerAccount()
370
 * @method $this withOwnerAccount($value)
371
 * @method string getOwnerId()
372
 * @method $this withOwnerId($value)
373
 */
374
class DescribeRegions extends Rpc
375
{
376
}
377
378
/**
379
 * @method string getResourceOwnerId()
380
 * @method $this withResourceOwnerId($value)
381
 * @method string getStartTime()
382
 * @method $this withStartTime($value)
383
 * @method string getPageNumber()
384
 * @method $this withPageNumber($value)
385
 * @method string getPageSize()
386
 * @method $this withPageSize($value)
387
 * @method string getResourceOwnerAccount()
388
 * @method $this withResourceOwnerAccount($value)
389
 * @method string getDBClusterId()
390
 * @method $this withDBClusterId($value)
391
 * @method string getOwnerAccount()
392
 * @method $this withOwnerAccount($value)
393
 * @method string getEndTime()
394
 * @method $this withEndTime($value)
395
 * @method string getOwnerId()
396
 * @method $this withOwnerId($value)
397
 * @method string getDBName()
398
 * @method $this withDBName($value)
399
 */
400
class DescribeSlowLogRecords extends Rpc
401
{
402
}
403
404
/**
405
 * @method string getResourceOwnerId()
406
 * @method $this withResourceOwnerId($value)
407
 * @method string getStartTime()
408
 * @method $this withStartTime($value)
409
 * @method string getResourceOwnerAccount()
410
 * @method $this withResourceOwnerAccount($value)
411
 * @method string getDBClusterId()
412
 * @method $this withDBClusterId($value)
413
 * @method string getOwnerAccount()
414
 * @method $this withOwnerAccount($value)
415
 * @method string getEndTime()
416
 * @method $this withEndTime($value)
417
 * @method string getOwnerId()
418
 * @method $this withOwnerId($value)
419
 * @method string getDBName()
420
 * @method $this withDBName($value)
421
 */
422
class DescribeSlowLogTrend extends Rpc
423
{
424
}
425
426
/**
427
 * @method string getPrivileges()
428
 * @method $this withPrivileges($value)
429
 * @method string getResourceOwnerId()
430
 * @method $this withResourceOwnerId($value)
431
 * @method string getResourceOwnerAccount()
432
 * @method $this withResourceOwnerAccount($value)
433
 * @method string getDBClusterId()
434
 * @method $this withDBClusterId($value)
435
 * @method string getOwnerAccount()
436
 * @method $this withOwnerAccount($value)
437
 * @method string getOwnerId()
438
 * @method $this withOwnerId($value)
439
 * @method string getExpiredTime()
440
 * @method $this withExpiredTime($value)
441
 */
442
class GrantOperatorPermission extends Rpc
443
{
444
}
445
446
/**
447
 * @method string getResourceOwnerId()
448
 * @method $this withResourceOwnerId($value)
449
 * @method string getNextToken()
450
 * @method $this withNextToken($value)
451
 * @method array getTag()
452
 * @method array getResourceId()
453
 * @method string getResourceOwnerAccount()
454
 * @method $this withResourceOwnerAccount($value)
455
 * @method string getOwnerAccount()
456
 * @method $this withOwnerAccount($value)
457
 * @method string getOwnerId()
458
 * @method $this withOwnerId($value)
459
 * @method string getResourceType()
460
 * @method $this withResourceType($value)
461
 */
462
class ListTagResources extends Rpc
463
{
464
465
    /**
466
     * @param array $tag
467
     *
468
     * @return $this
469
     */
470
	public function withTag(array $tag)
471
	{
472
	    $this->data['Tag'] = $tag;
473
		foreach ($tag as $depth1 => $depth1Value) {
474
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
475
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
476
		}
477
478
		return $this;
479
    }
480
481
    /**
482
     * @param array $resourceId
483
     *
484
     * @return $this
485
     */
486
	public function withResourceId(array $resourceId)
487
	{
488
	    $this->data['ResourceId'] = $resourceId;
489
		foreach ($resourceId as $i => $iValue) {
490
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
491
		}
492
493
		return $this;
494
    }
495
}
496
497
/**
498
 * @method string getResourceOwnerId()
499
 * @method $this withResourceOwnerId($value)
500
 * @method string getAccountDescription()
501
 * @method $this withAccountDescription($value)
502
 * @method string getAccountName()
503
 * @method $this withAccountName($value)
504
 * @method string getResourceOwnerAccount()
505
 * @method $this withResourceOwnerAccount($value)
506
 * @method string getDBClusterId()
507
 * @method $this withDBClusterId($value)
508
 * @method string getOwnerAccount()
509
 * @method $this withOwnerAccount($value)
510
 * @method string getOwnerId()
511
 * @method $this withOwnerId($value)
512
 */
513
class ModifyAccountDescription extends Rpc
514
{
515
}
516
517
/**
518
 * @method string getResourceOwnerId()
519
 * @method $this withResourceOwnerId($value)
520
 * @method string getDuration()
521
 * @method $this withDuration($value)
522
 * @method string getRenewalStatus()
523
 * @method $this withRenewalStatus($value)
524
 * @method string getResourceOwnerAccount()
525
 * @method $this withResourceOwnerAccount($value)
526
 * @method string getDBClusterId()
527
 * @method $this withDBClusterId($value)
528
 * @method string getOwnerAccount()
529
 * @method $this withOwnerAccount($value)
530
 * @method string getOwnerId()
531
 * @method $this withOwnerId($value)
532
 * @method string getPeriodUnit()
533
 * @method $this withPeriodUnit($value)
534
 */
535
class ModifyAutoRenewAttribute extends Rpc
536
{
537
}
538
539
/**
540
 * @method string getResourceOwnerId()
541
 * @method $this withResourceOwnerId($value)
542
 * @method string getSecurityIps()
543
 * @method $this withSecurityIps($value)
544
 * @method string getDBClusterIPArrayAttribute()
545
 * @method $this withDBClusterIPArrayAttribute($value)
546
 * @method string getModifyMode()
547
 * @method $this withModifyMode($value)
548
 * @method string getResourceOwnerAccount()
549
 * @method $this withResourceOwnerAccount($value)
550
 * @method string getDBClusterId()
551
 * @method $this withDBClusterId($value)
552
 * @method string getOwnerAccount()
553
 * @method $this withOwnerAccount($value)
554
 * @method string getOwnerId()
555
 * @method $this withOwnerId($value)
556
 * @method string getDBClusterIPArrayName()
557
 * @method $this withDBClusterIPArrayName($value)
558
 */
559
class ModifyDBClusterAccessWhiteList extends Rpc
560
{
561
}
562
563
/**
564
 * @method string getResourceOwnerId()
565
 * @method $this withResourceOwnerId($value)
566
 * @method string getDBClusterDescription()
567
 * @method $this withDBClusterDescription($value)
568
 * @method string getResourceOwnerAccount()
569
 * @method $this withResourceOwnerAccount($value)
570
 * @method string getDBClusterId()
571
 * @method $this withDBClusterId($value)
572
 * @method string getOwnerAccount()
573
 * @method $this withOwnerAccount($value)
574
 * @method string getOwnerId()
575
 * @method $this withOwnerId($value)
576
 */
577
class ModifyDBClusterDescription extends Rpc
578
{
579
}
580
581
/**
582
 * @method string getResourceOwnerId()
583
 * @method $this withResourceOwnerId($value)
584
 * @method string getMaintainTime()
585
 * @method $this withMaintainTime($value)
586
 * @method string getResourceOwnerAccount()
587
 * @method $this withResourceOwnerAccount($value)
588
 * @method string getDBClusterId()
589
 * @method $this withDBClusterId($value)
590
 * @method string getOwnerAccount()
591
 * @method $this withOwnerAccount($value)
592
 * @method string getOwnerId()
593
 * @method $this withOwnerId($value)
594
 */
595
class ModifyDBClusterMaintainTime extends Rpc
596
{
597
}
598
599
/**
600
 * @method string getResourceOwnerId()
601
 * @method $this withResourceOwnerId($value)
602
 * @method string getResourceOwnerAccount()
603
 * @method $this withResourceOwnerAccount($value)
604
 * @method string getDBClusterId()
605
 * @method $this withDBClusterId($value)
606
 * @method string getOwnerAccount()
607
 * @method $this withOwnerAccount($value)
608
 * @method string getOwnerId()
609
 * @method $this withOwnerId($value)
610
 */
611
class ReleaseClusterPublicConnection extends Rpc
612
{
613
}
614
615
/**
616
 * @method string getResourceOwnerId()
617
 * @method $this withResourceOwnerId($value)
618
 * @method string getAccountName()
619
 * @method $this withAccountName($value)
620
 * @method string getResourceOwnerAccount()
621
 * @method $this withResourceOwnerAccount($value)
622
 * @method string getDBClusterId()
623
 * @method $this withDBClusterId($value)
624
 * @method string getOwnerAccount()
625
 * @method $this withOwnerAccount($value)
626
 * @method string getOwnerId()
627
 * @method $this withOwnerId($value)
628
 * @method string getAccountPassword()
629
 * @method $this withAccountPassword($value)
630
 */
631
class ResetAccountPassword extends Rpc
632
{
633
}
634
635
/**
636
 * @method string getResourceOwnerId()
637
 * @method $this withResourceOwnerId($value)
638
 * @method string getResourceOwnerAccount()
639
 * @method $this withResourceOwnerAccount($value)
640
 * @method string getDBClusterId()
641
 * @method $this withDBClusterId($value)
642
 * @method string getOwnerAccount()
643
 * @method $this withOwnerAccount($value)
644
 * @method string getOwnerId()
645
 * @method $this withOwnerId($value)
646
 */
647
class RevokeOperatorPermission extends Rpc
648
{
649
}
650
651
/**
652
 * @method string getResourceOwnerId()
653
 * @method $this withResourceOwnerId($value)
654
 * @method array getTag()
655
 * @method array getResourceId()
656
 * @method string getResourceOwnerAccount()
657
 * @method $this withResourceOwnerAccount($value)
658
 * @method string getOwnerAccount()
659
 * @method $this withOwnerAccount($value)
660
 * @method string getOwnerId()
661
 * @method $this withOwnerId($value)
662
 * @method string getResourceType()
663
 * @method $this withResourceType($value)
664
 */
665
class TagResources extends Rpc
666
{
667
668
    /**
669
     * @param array $tag
670
     *
671
     * @return $this
672
     */
673
	public function withTag(array $tag)
674
	{
675
	    $this->data['Tag'] = $tag;
676
		foreach ($tag as $depth1 => $depth1Value) {
677
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
678
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
679
		}
680
681
		return $this;
682
    }
683
684
    /**
685
     * @param array $resourceId
686
     *
687
     * @return $this
688
     */
689
	public function withResourceId(array $resourceId)
690
	{
691
	    $this->data['ResourceId'] = $resourceId;
692
		foreach ($resourceId as $i => $iValue) {
693
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
694
		}
695
696
		return $this;
697
    }
698
}
699
700
/**
701
 * @method string getResourceOwnerId()
702
 * @method $this withResourceOwnerId($value)
703
 * @method string getAll()
704
 * @method $this withAll($value)
705
 * @method array getResourceId()
706
 * @method string getResourceOwnerAccount()
707
 * @method $this withResourceOwnerAccount($value)
708
 * @method string getOwnerAccount()
709
 * @method $this withOwnerAccount($value)
710
 * @method string getOwnerId()
711
 * @method $this withOwnerId($value)
712
 * @method string getResourceType()
713
 * @method $this withResourceType($value)
714
 * @method array getTagKey()
715
 */
716
class UntagResources extends Rpc
717
{
718
719
    /**
720
     * @param array $resourceId
721
     *
722
     * @return $this
723
     */
724
	public function withResourceId(array $resourceId)
725
	{
726
	    $this->data['ResourceId'] = $resourceId;
727
		foreach ($resourceId as $i => $iValue) {
728
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
729
		}
730
731
		return $this;
732
    }
733
734
    /**
735
     * @param array $tagKey
736
     *
737
     * @return $this
738
     */
739
	public function withTagKey(array $tagKey)
740
	{
741
	    $this->data['TagKey'] = $tagKey;
742
		foreach ($tagKey as $i => $iValue) {
743
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
744
		}
745
746
		return $this;
747
    }
748
}
749