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 ( cc0c74...eee0c8 )
by
unknown
06:05
created

TagResources::withResourceId()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\Kms\V20160120;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AsymmetricDecrypt asymmetricDecrypt(array $options = [])
9
 * @method AsymmetricEncrypt asymmetricEncrypt(array $options = [])
10
 * @method AsymmetricSign asymmetricSign(array $options = [])
11
 * @method AsymmetricVerify asymmetricVerify(array $options = [])
12
 * @method CancelKeyDeletion cancelKeyDeletion(array $options = [])
13
 * @method CertificatePrivateKeyDecrypt certificatePrivateKeyDecrypt(array $options = [])
14
 * @method CertificatePrivateKeySign certificatePrivateKeySign(array $options = [])
15
 * @method CertificatePublicKeyEncrypt certificatePublicKeyEncrypt(array $options = [])
16
 * @method CertificatePublicKeyVerify certificatePublicKeyVerify(array $options = [])
17
 * @method CreateAlias createAlias(array $options = [])
18
 * @method CreateCertificate createCertificate(array $options = [])
19
 * @method CreateKey createKey(array $options = [])
20
 * @method CreateKeyVersion createKeyVersion(array $options = [])
21
 * @method CreateSecret createSecret(array $options = [])
22
 * @method Decrypt decrypt(array $options = [])
23
 * @method DeleteAlias deleteAlias(array $options = [])
24
 * @method DeleteCertificate deleteCertificate(array $options = [])
25
 * @method DeleteKeyMaterial deleteKeyMaterial(array $options = [])
26
 * @method DeleteSecret deleteSecret(array $options = [])
27
 * @method DescribeAccountKmsStatus describeAccountKmsStatus(array $options = [])
28
 * @method DescribeCertificate describeCertificate(array $options = [])
29
 * @method DescribeKey describeKey(array $options = [])
30
 * @method DescribeKeyVersion describeKeyVersion(array $options = [])
31
 * @method DescribeRegions describeRegions(array $options = [])
32
 * @method DescribeSecret describeSecret(array $options = [])
33
 * @method DisableKey disableKey(array $options = [])
34
 * @method EnableKey enableKey(array $options = [])
35
 * @method Encrypt encrypt(array $options = [])
36
 * @method ExportDataKey exportDataKey(array $options = [])
37
 * @method GenerateAndExportDataKey generateAndExportDataKey(array $options = [])
38
 * @method GenerateDataKey generateDataKey(array $options = [])
39
 * @method GenerateDataKeyWithoutPlaintext generateDataKeyWithoutPlaintext(array $options = [])
40
 * @method GetCertificate getCertificate(array $options = [])
41
 * @method GetParametersForImport getParametersForImport(array $options = [])
42
 * @method GetPublicKey getPublicKey(array $options = [])
43
 * @method GetRandomPassword getRandomPassword(array $options = [])
44
 * @method GetSecretValue getSecretValue(array $options = [])
45
 * @method ImportKeyMaterial importKeyMaterial(array $options = [])
46
 * @method ListAliases listAliases(array $options = [])
47
 * @method ListAliasesByKeyId listAliasesByKeyId(array $options = [])
48
 * @method ListKeys listKeys(array $options = [])
49
 * @method ListKeyVersions listKeyVersions(array $options = [])
50
 * @method ListResourceTags listResourceTags(array $options = [])
51
 * @method ListSecrets listSecrets(array $options = [])
52
 * @method ListSecretVersionIds listSecretVersionIds(array $options = [])
53
 * @method ListTagResources listTagResources(array $options = [])
54
 * @method OpenKmsService openKmsService(array $options = [])
55
 * @method PutSecretValue putSecretValue(array $options = [])
56
 * @method ReEncrypt reEncrypt(array $options = [])
57
 * @method RestoreSecret restoreSecret(array $options = [])
58
 * @method RotateSecret rotateSecret(array $options = [])
59
 * @method ScheduleKeyDeletion scheduleKeyDeletion(array $options = [])
60
 * @method SetDeletionProtection setDeletionProtection(array $options = [])
61
 * @method TagResource tagResource(array $options = [])
62
 * @method TagResources tagResources(array $options = [])
63
 * @method UntagResource untagResource(array $options = [])
64
 * @method UntagResources untagResources(array $options = [])
65
 * @method UpdateAlias updateAlias(array $options = [])
66
 * @method UpdateCertificateStatus updateCertificateStatus(array $options = [])
67
 * @method UpdateKeyDescription updateKeyDescription(array $options = [])
68
 * @method UpdateRotationPolicy updateRotationPolicy(array $options = [])
69
 * @method UpdateSecret updateSecret(array $options = [])
70
 * @method UpdateSecretRotationPolicy updateSecretRotationPolicy(array $options = [])
71
 * @method UpdateSecretVersionStage updateSecretVersionStage(array $options = [])
72
 * @method UploadCertificate uploadCertificate(array $options = [])
73
 */
74
class KmsApiResolver extends ApiResolver
75
{
76
}
77
78
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
79
{
80
    /** @var string */
81
    public $product = 'Kms';
82
83
    /** @var string */
84
    public $version = '2016-01-20';
85
86
    /** @var string */
87
    public $method = 'POST';
88
89
    /** @var string */
90
    protected $scheme = 'https';
91
92
    /** @var string */
93
    public $serviceCode = 'kms';
94
}
95
96
/**
97
 * @method string getKeyVersionId()
98
 * @method $this withKeyVersionId($value)
99
 * @method string getKeyId()
100
 * @method $this withKeyId($value)
101
 * @method string getCiphertextBlob()
102
 * @method $this withCiphertextBlob($value)
103
 * @method string getAlgorithm()
104
 * @method $this withAlgorithm($value)
105
 */
106
class AsymmetricDecrypt extends Rpc
107
{
108
}
109
110
/**
111
 * @method string getKeyVersionId()
112
 * @method $this withKeyVersionId($value)
113
 * @method string getKeyId()
114
 * @method $this withKeyId($value)
115
 * @method string getPlaintext()
116
 * @method $this withPlaintext($value)
117
 * @method string getAlgorithm()
118
 * @method $this withAlgorithm($value)
119
 */
120
class AsymmetricEncrypt extends Rpc
121
{
122
}
123
124
/**
125
 * @method string getKeyVersionId()
126
 * @method $this withKeyVersionId($value)
127
 * @method string getKeyId()
128
 * @method $this withKeyId($value)
129
 * @method string getDigest()
130
 * @method $this withDigest($value)
131
 * @method string getAlgorithm()
132
 * @method $this withAlgorithm($value)
133
 */
134
class AsymmetricSign extends Rpc
135
{
136
}
137
138
/**
139
 * @method string getKeyVersionId()
140
 * @method $this withKeyVersionId($value)
141
 * @method string getKeyId()
142
 * @method $this withKeyId($value)
143
 * @method string getDigest()
144
 * @method $this withDigest($value)
145
 * @method string getValue()
146
 * @method $this withValue($value)
147
 * @method string getAlgorithm()
148
 * @method $this withAlgorithm($value)
149
 */
150
class AsymmetricVerify extends Rpc
151
{
152
}
153
154
/**
155
 * @method string getKeyId()
156
 * @method $this withKeyId($value)
157
 */
158
class CancelKeyDeletion extends Rpc
159
{
160
}
161
162
/**
163
 * @method string getCertificateId()
164
 * @method $this withCertificateId($value)
165
 * @method string getAlgorithm()
166
 * @method $this withAlgorithm($value)
167
 * @method string getCiphertextBlob()
168
 * @method $this withCiphertextBlob($value)
169
 */
170
class CertificatePrivateKeyDecrypt extends Rpc
171
{
172
}
173
174
/**
175
 * @method string getMessageType()
176
 * @method $this withMessageType($value)
177
 * @method string getCertificateId()
178
 * @method $this withCertificateId($value)
179
 * @method string getMessage()
180
 * @method $this withMessage($value)
181
 * @method string getAlgorithm()
182
 * @method $this withAlgorithm($value)
183
 */
184
class CertificatePrivateKeySign extends Rpc
185
{
186
}
187
188
/**
189
 * @method string getCertificateId()
190
 * @method $this withCertificateId($value)
191
 * @method string getPlaintext()
192
 * @method $this withPlaintext($value)
193
 * @method string getAlgorithm()
194
 * @method $this withAlgorithm($value)
195
 */
196
class CertificatePublicKeyEncrypt extends Rpc
197
{
198
}
199
200
/**
201
 * @method string getMessageType()
202
 * @method $this withMessageType($value)
203
 * @method string getCertificateId()
204
 * @method $this withCertificateId($value)
205
 * @method string getMessage()
206
 * @method $this withMessage($value)
207
 * @method string getSignatureValue()
208
 * @method $this withSignatureValue($value)
209
 * @method string getAlgorithm()
210
 * @method $this withAlgorithm($value)
211
 */
212
class CertificatePublicKeyVerify extends Rpc
213
{
214
}
215
216
/**
217
 * @method string getAliasName()
218
 * @method $this withAliasName($value)
219
 * @method string getKeyId()
220
 * @method $this withKeyId($value)
221
 */
222
class CreateAlias extends Rpc
223
{
224
}
225
226
/**
227
 * @method string getClientToken()
228
 * @method $this withClientToken($value)
229
 * @method string getSubject()
230
 * @method $this withSubject($value)
231
 * @method string getKeySpec()
232
 * @method $this withKeySpec($value)
233
 * @method string getProtectionLevel()
234
 * @method $this withProtectionLevel($value)
235
 * @method string getExportablePrivateKey()
236
 * @method $this withExportablePrivateKey($value)
237
 * @method string getSubjectAlternativeNames()
238
 * @method $this withSubjectAlternativeNames($value)
239
 */
240
class CreateCertificate extends Rpc
241
{
242
}
243
244
/**
245
 * @method string getOrigin()
246
 * @method $this withOrigin($value)
247
 * @method string getDescription()
248
 * @method $this withDescription($value)
249
 * @method string getKeySpec()
250
 * @method $this withKeySpec($value)
251
 * @method string getRotationInterval()
252
 * @method $this withRotationInterval($value)
253
 * @method string getEnableAutomaticRotation()
254
 * @method $this withEnableAutomaticRotation($value)
255
 * @method string getTags()
256
 * @method $this withTags($value)
257
 * @method string getProtectionLevel()
258
 * @method $this withProtectionLevel($value)
259
 * @method string getKeyUsage()
260
 * @method $this withKeyUsage($value)
261
 * @method string getDKMSInstanceId()
262
 * @method $this withDKMSInstanceId($value)
263
 */
264
class CreateKey extends Rpc
265
{
266
}
267
268
/**
269
 * @method string getKeyId()
270
 * @method $this withKeyId($value)
271
 */
272
class CreateKeyVersion extends Rpc
273
{
274
}
275
276
/**
277
 * @method string getSecretType()
278
 * @method $this withSecretType($value)
279
 * @method string getDescription()
280
 * @method $this withDescription($value)
281
 * @method string getRotationInterval()
282
 * @method $this withRotationInterval($value)
283
 * @method string getEnableAutomaticRotation()
284
 * @method $this withEnableAutomaticRotation($value)
285
 * @method string getEncryptionKeyId()
286
 * @method $this withEncryptionKeyId($value)
287
 * @method string getTags()
288
 * @method $this withTags($value)
289
 * @method string getExtendedConfig()
290
 * @method $this withExtendedConfig($value)
291
 * @method string getVersionId()
292
 * @method $this withVersionId($value)
293
 * @method string getDKMSInstanceId()
294
 * @method $this withDKMSInstanceId($value)
295
 * @method string getSecretData()
296
 * @method $this withSecretData($value)
297
 * @method string getSecretName()
298
 * @method $this withSecretName($value)
299
 * @method string getSecretDataType()
300
 * @method $this withSecretDataType($value)
301
 */
302
class CreateSecret extends Rpc
303
{
304
}
305
306
/**
307
 * @method string getEncryptionContext()
308
 * @method $this withEncryptionContext($value)
309
 * @method string getCiphertextBlob()
310
 * @method $this withCiphertextBlob($value)
311
 */
312
class Decrypt extends Rpc
313
{
314
}
315
316
/**
317
 * @method string getAliasName()
318
 * @method $this withAliasName($value)
319
 */
320
class DeleteAlias extends Rpc
321
{
322
}
323
324
/**
325
 * @method string getCertificateId()
326
 * @method $this withCertificateId($value)
327
 */
328
class DeleteCertificate extends Rpc
329
{
330
}
331
332
/**
333
 * @method string getKeyId()
334
 * @method $this withKeyId($value)
335
 */
336
class DeleteKeyMaterial extends Rpc
337
{
338
}
339
340
/**
341
 * @method string getForceDeleteWithoutRecovery()
342
 * @method $this withForceDeleteWithoutRecovery($value)
343
 * @method string getRecoveryWindowInDays()
344
 * @method $this withRecoveryWindowInDays($value)
345
 * @method string getSecretName()
346
 * @method $this withSecretName($value)
347
 */
348
class DeleteSecret extends Rpc
349
{
350
}
351
352
class DescribeAccountKmsStatus extends Rpc
353
{
354
}
355
356
/**
357
 * @method string getCertificateId()
358
 * @method $this withCertificateId($value)
359
 */
360
class DescribeCertificate extends Rpc
361
{
362
}
363
364
/**
365
 * @method string getKeyId()
366
 * @method $this withKeyId($value)
367
 */
368
class DescribeKey extends Rpc
369
{
370
}
371
372
/**
373
 * @method string getKeyVersionId()
374
 * @method $this withKeyVersionId($value)
375
 * @method string getKeyId()
376
 * @method $this withKeyId($value)
377
 */
378
class DescribeKeyVersion extends Rpc
379
{
380
}
381
382
class DescribeRegions extends Rpc
383
{
384
}
385
386
/**
387
 * @method string getSecretName()
388
 * @method $this withSecretName($value)
389
 * @method string getFetchTags()
390
 * @method $this withFetchTags($value)
391
 */
392
class DescribeSecret extends Rpc
393
{
394
}
395
396
/**
397
 * @method string getKeyId()
398
 * @method $this withKeyId($value)
399
 */
400
class DisableKey extends Rpc
401
{
402
}
403
404
/**
405
 * @method string getKeyId()
406
 * @method $this withKeyId($value)
407
 */
408
class EnableKey extends Rpc
409
{
410
}
411
412
/**
413
 * @method string getKeyId()
414
 * @method $this withKeyId($value)
415
 * @method string getPlaintext()
416
 * @method $this withPlaintext($value)
417
 * @method string getEncryptionContext()
418
 * @method $this withEncryptionContext($value)
419
 */
420
class Encrypt extends Rpc
421
{
422
}
423
424
/**
425
 * @method string getPublicKeyBlob()
426
 * @method $this withPublicKeyBlob($value)
427
 * @method string getEncryptionContext()
428
 * @method $this withEncryptionContext($value)
429
 * @method string getWrappingAlgorithm()
430
 * @method $this withWrappingAlgorithm($value)
431
 * @method string getCiphertextBlob()
432
 * @method $this withCiphertextBlob($value)
433
 * @method string getWrappingKeySpec()
434
 * @method $this withWrappingKeySpec($value)
435
 */
436
class ExportDataKey extends Rpc
437
{
438
}
439
440
/**
441
 * @method string getKeyId()
442
 * @method $this withKeyId($value)
443
 * @method string getKeySpec()
444
 * @method $this withKeySpec($value)
445
 * @method string getNumberOfBytes()
446
 * @method $this withNumberOfBytes($value)
447
 * @method string getPublicKeyBlob()
448
 * @method $this withPublicKeyBlob($value)
449
 * @method string getEncryptionContext()
450
 * @method $this withEncryptionContext($value)
451
 * @method string getWrappingAlgorithm()
452
 * @method $this withWrappingAlgorithm($value)
453
 * @method string getWrappingKeySpec()
454
 * @method $this withWrappingKeySpec($value)
455
 */
456
class GenerateAndExportDataKey extends Rpc
457
{
458
}
459
460
/**
461
 * @method string getKeyId()
462
 * @method $this withKeyId($value)
463
 * @method string getKeySpec()
464
 * @method $this withKeySpec($value)
465
 * @method string getNumberOfBytes()
466
 * @method $this withNumberOfBytes($value)
467
 * @method string getEncryptionContext()
468
 * @method $this withEncryptionContext($value)
469
 */
470
class GenerateDataKey extends Rpc
471
{
472
}
473
474
/**
475
 * @method string getKeyId()
476
 * @method $this withKeyId($value)
477
 * @method string getKeySpec()
478
 * @method $this withKeySpec($value)
479
 * @method string getNumberOfBytes()
480
 * @method $this withNumberOfBytes($value)
481
 * @method string getEncryptionContext()
482
 * @method $this withEncryptionContext($value)
483
 */
484
class GenerateDataKeyWithoutPlaintext extends Rpc
485
{
486
}
487
488
/**
489
 * @method string getCertificateId()
490
 * @method $this withCertificateId($value)
491
 */
492
class GetCertificate extends Rpc
493
{
494
}
495
496
/**
497
 * @method string getKeyId()
498
 * @method $this withKeyId($value)
499
 * @method string getWrappingAlgorithm()
500
 * @method $this withWrappingAlgorithm($value)
501
 * @method string getWrappingKeySpec()
502
 * @method $this withWrappingKeySpec($value)
503
 */
504
class GetParametersForImport extends Rpc
505
{
506
}
507
508
/**
509
 * @method string getKeyVersionId()
510
 * @method $this withKeyVersionId($value)
511
 * @method string getKeyId()
512
 * @method $this withKeyId($value)
513
 */
514
class GetPublicKey extends Rpc
515
{
516
}
517
518
/**
519
 * @method string getExcludeCharacters()
520
 * @method $this withExcludeCharacters($value)
521
 * @method string getPasswordLength()
522
 * @method $this withPasswordLength($value)
523
 * @method string getExcludePunctuation()
524
 * @method $this withExcludePunctuation($value)
525
 * @method string getRequireEachIncludedType()
526
 * @method $this withRequireEachIncludedType($value)
527
 * @method string getExcludeNumbers()
528
 * @method $this withExcludeNumbers($value)
529
 * @method string getExcludeLowercase()
530
 * @method $this withExcludeLowercase($value)
531
 * @method string getExcludeUppercase()
532
 * @method $this withExcludeUppercase($value)
533
 */
534
class GetRandomPassword extends Rpc
535
{
536
}
537
538
/**
539
 * @method string getVersionId()
540
 * @method $this withVersionId($value)
541
 * @method string getVersionStage()
542
 * @method $this withVersionStage($value)
543
 * @method string getSecretName()
544
 * @method $this withSecretName($value)
545
 * @method string getFetchExtendedConfig()
546
 * @method $this withFetchExtendedConfig($value)
547
 */
548
class GetSecretValue extends Rpc
549
{
550
}
551
552
/**
553
 * @method string getImportToken()
554
 * @method $this withImportToken($value)
555
 * @method string getEncryptedKeyMaterial()
556
 * @method $this withEncryptedKeyMaterial($value)
557
 * @method string getKeyMaterialExpireUnix()
558
 * @method $this withKeyMaterialExpireUnix($value)
559
 * @method string getKeyId()
560
 * @method $this withKeyId($value)
561
 */
562
class ImportKeyMaterial extends Rpc
563
{
564
}
565
566
/**
567
 * @method string getPageSize()
568
 * @method $this withPageSize($value)
569
 * @method string getPageNumber()
570
 * @method $this withPageNumber($value)
571
 */
572
class ListAliases extends Rpc
573
{
574
}
575
576
/**
577
 * @method string getKeyId()
578
 * @method $this withKeyId($value)
579
 * @method string getPageNumber()
580
 * @method $this withPageNumber($value)
581
 * @method string getPageSize()
582
 * @method $this withPageSize($value)
583
 */
584
class ListAliasesByKeyId extends Rpc
585
{
586
}
587
588
/**
589
 * @method string getFilters()
590
 * @method $this withFilters($value)
591
 * @method string getPageNumber()
592
 * @method $this withPageNumber($value)
593
 * @method string getPageSize()
594
 * @method $this withPageSize($value)
595
 */
596
class ListKeys extends Rpc
597
{
598
}
599
600
/**
601
 * @method string getKeyId()
602
 * @method $this withKeyId($value)
603
 * @method string getPageNumber()
604
 * @method $this withPageNumber($value)
605
 * @method string getPageSize()
606
 * @method $this withPageSize($value)
607
 */
608
class ListKeyVersions extends Rpc
609
{
610
}
611
612
/**
613
 * @method string getKeyId()
614
 * @method $this withKeyId($value)
615
 */
616
class ListResourceTags extends Rpc
617
{
618
}
619
620
/**
621
 * @method string getFilters()
622
 * @method $this withFilters($value)
623
 * @method string getPageNumber()
624
 * @method $this withPageNumber($value)
625
 * @method string getPageSize()
626
 * @method $this withPageSize($value)
627
 * @method string getFetchTags()
628
 * @method $this withFetchTags($value)
629
 */
630
class ListSecrets extends Rpc
631
{
632
}
633
634
/**
635
 * @method string getIncludeDeprecated()
636
 * @method $this withIncludeDeprecated($value)
637
 * @method string getPageNumber()
638
 * @method $this withPageNumber($value)
639
 * @method string getPageSize()
640
 * @method $this withPageSize($value)
641
 * @method string getSecretName()
642
 * @method $this withSecretName($value)
643
 */
644
class ListSecretVersionIds extends Rpc
645
{
646
}
647
648
/**
649
 * @method array getResourceId()
650
 * @method string getResourceType()
651
 * @method $this withResourceType($value)
652
 * @method string getNextToken()
653
 * @method $this withNextToken($value)
654
 * @method array getTag()
655
 */
656
class ListTagResources extends Rpc
657
{
658
659
    /**
660
     * @param array $resourceId
661
     *
662
     * @return $this
663
     */
664
	public function withResourceId(array $resourceId)
665
	{
666
	    $this->data['ResourceId'] = $resourceId;
667
		foreach ($resourceId as $i => $iValue) {
668
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
669
		}
670
671
		return $this;
672
    }
673
674
    /**
675
     * @param array $tag
676
     *
677
     * @return $this
678
     */
679
	public function withTag(array $tag)
680
	{
681
	    $this->data['Tag'] = $tag;
682
		foreach ($tag as $depth1 => $depth1Value) {
683
			if(isset($depth1Value['Value'])){
684
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
685
			}
686
			if(isset($depth1Value['Key'])){
687
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
688
			}
689
		}
690
691
		return $this;
692
    }
693
}
694
695
class OpenKmsService extends Rpc
696
{
697
}
698
699
/**
700
 * @method string getVersionId()
701
 * @method $this withVersionId($value)
702
 * @method string getVersionStages()
703
 * @method $this withVersionStages($value)
704
 * @method string getSecretData()
705
 * @method $this withSecretData($value)
706
 * @method string getSecretName()
707
 * @method $this withSecretName($value)
708
 * @method string getSecretDataType()
709
 * @method $this withSecretDataType($value)
710
 */
711
class PutSecretValue extends Rpc
712
{
713
}
714
715
/**
716
 * @method string getDestinationEncryptionContext()
717
 * @method $this withDestinationEncryptionContext($value)
718
 * @method string getSourceKeyId()
719
 * @method $this withSourceKeyId($value)
720
 * @method string getSourceEncryptionAlgorithm()
721
 * @method $this withSourceEncryptionAlgorithm($value)
722
 * @method string getSourceKeyVersionId()
723
 * @method $this withSourceKeyVersionId($value)
724
 * @method string getDestinationKeyId()
725
 * @method $this withDestinationKeyId($value)
726
 * @method string getSourceEncryptionContext()
727
 * @method $this withSourceEncryptionContext($value)
728
 * @method string getCiphertextBlob()
729
 * @method $this withCiphertextBlob($value)
730
 */
731
class ReEncrypt extends Rpc
732
{
733
}
734
735
/**
736
 * @method string getSecretName()
737
 * @method $this withSecretName($value)
738
 */
739
class RestoreSecret extends Rpc
740
{
741
}
742
743
/**
744
 * @method string getVersionId()
745
 * @method $this withVersionId($value)
746
 * @method string getSecretName()
747
 * @method $this withSecretName($value)
748
 */
749
class RotateSecret extends Rpc
750
{
751
}
752
753
/**
754
 * @method string getPendingWindowInDays()
755
 * @method $this withPendingWindowInDays($value)
756
 * @method string getKeyId()
757
 * @method $this withKeyId($value)
758
 */
759
class ScheduleKeyDeletion extends Rpc
760
{
761
}
762
763
/**
764
 * @method string getDeletionProtectionDescription()
765
 * @method $this withDeletionProtectionDescription($value)
766
 * @method string getEnableDeletionProtection()
767
 * @method $this withEnableDeletionProtection($value)
768
 * @method string getProtectedResourceArn()
769
 * @method $this withProtectedResourceArn($value)
770
 */
771
class SetDeletionProtection extends Rpc
772
{
773
}
774
775
/**
776
 * @method string getCertificateId()
777
 * @method $this withCertificateId($value)
778
 * @method string getKeyId()
779
 * @method $this withKeyId($value)
780
 * @method string getTags()
781
 * @method $this withTags($value)
782
 * @method string getSecretName()
783
 * @method $this withSecretName($value)
784
 */
785
class TagResource extends Rpc
786
{
787
}
788
789
/**
790
 * @method array getResourceId()
791
 * @method string getResourceType()
792
 * @method $this withResourceType($value)
793
 * @method array getTag()
794
 */
795
class TagResources extends Rpc
796
{
797
798
    /**
799
     * @param array $resourceId
800
     *
801
     * @return $this
802
     */
803
	public function withResourceId(array $resourceId)
804
	{
805
	    $this->data['ResourceId'] = $resourceId;
806
		foreach ($resourceId as $i => $iValue) {
807
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
808
		}
809
810
		return $this;
811
    }
812
813
    /**
814
     * @param array $tag
815
     *
816
     * @return $this
817
     */
818
	public function withTag(array $tag)
819
	{
820
	    $this->data['Tag'] = $tag;
821
		foreach ($tag as $depth1 => $depth1Value) {
822
			if(isset($depth1Value['Value'])){
823
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
824
			}
825
			if(isset($depth1Value['Key'])){
826
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
827
			}
828
		}
829
830
		return $this;
831
    }
832
}
833
834
/**
835
 * @method string getCertificateId()
836
 * @method $this withCertificateId($value)
837
 * @method string getKeyId()
838
 * @method $this withKeyId($value)
839
 * @method string getTagKeys()
840
 * @method $this withTagKeys($value)
841
 * @method string getSecretName()
842
 * @method $this withSecretName($value)
843
 */
844
class UntagResource extends Rpc
845
{
846
}
847
848
/**
849
 * @method string getAll()
850
 * @method $this withAll($value)
851
 * @method array getResourceId()
852
 * @method string getResourceType()
853
 * @method $this withResourceType($value)
854
 * @method array getTagKey()
855
 */
856
class UntagResources extends Rpc
857
{
858
859
    /**
860
     * @param array $resourceId
861
     *
862
     * @return $this
863
     */
864
	public function withResourceId(array $resourceId)
865
	{
866
	    $this->data['ResourceId'] = $resourceId;
867
		foreach ($resourceId as $i => $iValue) {
868
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
869
		}
870
871
		return $this;
872
    }
873
874
    /**
875
     * @param array $tagKey
876
     *
877
     * @return $this
878
     */
879
	public function withTagKey(array $tagKey)
880
	{
881
	    $this->data['TagKey'] = $tagKey;
882
		foreach ($tagKey as $i => $iValue) {
883
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
884
		}
885
886
		return $this;
887
    }
888
}
889
890
/**
891
 * @method string getAliasName()
892
 * @method $this withAliasName($value)
893
 * @method string getKeyId()
894
 * @method $this withKeyId($value)
895
 */
896
class UpdateAlias extends Rpc
897
{
898
}
899
900
/**
901
 * @method string getCertificateId()
902
 * @method $this withCertificateId($value)
903
 * @method string getStatus()
904
 * @method $this withStatus($value)
905
 */
906
class UpdateCertificateStatus extends Rpc
907
{
908
}
909
910
/**
911
 * @method string getKeyId()
912
 * @method $this withKeyId($value)
913
 * @method string getDescription()
914
 * @method $this withDescription($value)
915
 */
916
class UpdateKeyDescription extends Rpc
917
{
918
}
919
920
/**
921
 * @method string getKeyId()
922
 * @method $this withKeyId($value)
923
 * @method string getRotationInterval()
924
 * @method $this withRotationInterval($value)
925
 * @method string getEnableAutomaticRotation()
926
 * @method $this withEnableAutomaticRotation($value)
927
 */
928
class UpdateRotationPolicy extends Rpc
929
{
930
}
931
932
/**
933
 * @method string getDescription()
934
 * @method $this withDescription($value)
935
 * @method string getSecretName()
936
 * @method $this withSecretName($value)
937
 * @method string getExtendedConfigCustomData()
938
 */
939
class UpdateSecret extends Rpc
940
{
941
942
    /**
943
     * @param string $value
944
     *
945
     * @return $this
946
     */
947
    public function withExtendedConfigCustomData($value)
948
    {
949
        $this->data['ExtendedConfigCustomData'] = $value;
950
        $this->options['query']['ExtendedConfig.CustomData'] = $value;
951
952
        return $this;
953
    }
954
}
955
956
/**
957
 * @method string getRotationInterval()
958
 * @method $this withRotationInterval($value)
959
 * @method string getEnableAutomaticRotation()
960
 * @method $this withEnableAutomaticRotation($value)
961
 * @method string getSecretName()
962
 * @method $this withSecretName($value)
963
 */
964
class UpdateSecretRotationPolicy extends Rpc
965
{
966
}
967
968
/**
969
 * @method string getMoveToVersion()
970
 * @method $this withMoveToVersion($value)
971
 * @method string getRemoveFromVersion()
972
 * @method $this withRemoveFromVersion($value)
973
 * @method string getVersionStage()
974
 * @method $this withVersionStage($value)
975
 * @method string getSecretName()
976
 * @method $this withSecretName($value)
977
 */
978
class UpdateSecretVersionStage extends Rpc
979
{
980
}
981
982
/**
983
 * @method string getCertificateId()
984
 * @method $this withCertificateId($value)
985
 * @method string getCertificate()
986
 * @method $this withCertificate($value)
987
 * @method string getCertificateChain()
988
 * @method $this withCertificateChain($value)
989
 */
990
class UploadCertificate extends Rpc
991
{
992
}
993