oci-keymanagement 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +6 -0
- package/lib/client.d.ts +159 -41
- package/lib/client.js +278 -82
- package/lib/client.js.map +1 -1
- package/lib/request/backup-key-request.d.ts +1 -1
- package/lib/request/backup-vault-request.d.ts +1 -1
- package/lib/request/cancel-key-deletion-request.d.ts +1 -1
- package/lib/request/cancel-key-version-deletion-request.d.ts +1 -1
- package/lib/request/cancel-vault-deletion-request.d.ts +1 -1
- package/lib/request/change-key-compartment-request.d.ts +1 -1
- package/lib/request/change-vault-compartment-request.d.ts +1 -1
- package/lib/request/create-key-request.d.ts +1 -1
- package/lib/request/create-key-version-request.d.ts +1 -1
- package/lib/request/create-vault-replica-request.d.ts +1 -1
- package/lib/request/create-vault-request.d.ts +1 -1
- package/lib/request/decrypt-request.d.ts +1 -1
- package/lib/request/delete-vault-replica-request.d.ts +1 -1
- package/lib/request/disable-key-request.d.ts +1 -1
- package/lib/request/enable-key-request.d.ts +1 -1
- package/lib/request/encrypt-request.d.ts +1 -1
- package/lib/request/export-key-request.d.ts +1 -1
- package/lib/request/generate-data-encryption-key-request.d.ts +1 -1
- package/lib/request/get-key-request.d.ts +1 -1
- package/lib/request/get-key-version-request.d.ts +1 -1
- package/lib/request/get-replication-status-request.d.ts +1 -1
- package/lib/request/get-vault-request.d.ts +1 -1
- package/lib/request/get-vault-usage-request.d.ts +1 -1
- package/lib/request/get-wrapping-key-request.d.ts +1 -1
- package/lib/request/import-key-request.d.ts +1 -1
- package/lib/request/import-key-version-request.d.ts +1 -1
- package/lib/request/list-key-versions-request.d.ts +1 -1
- package/lib/request/list-keys-request.d.ts +1 -1
- package/lib/request/list-vault-replicas-request.d.ts +1 -1
- package/lib/request/list-vaults-request.d.ts +1 -1
- package/lib/request/restore-key-from-file-request.d.ts +1 -1
- package/lib/request/restore-key-from-object-store-request.d.ts +1 -1
- package/lib/request/restore-vault-from-file-request.d.ts +1 -1
- package/lib/request/restore-vault-from-object-store-request.d.ts +1 -1
- package/lib/request/schedule-key-deletion-request.d.ts +1 -1
- package/lib/request/schedule-key-version-deletion-request.d.ts +1 -1
- package/lib/request/schedule-vault-deletion-request.d.ts +1 -1
- package/lib/request/sign-request.d.ts +1 -1
- package/lib/request/update-key-request.d.ts +1 -1
- package/lib/request/update-vault-request.d.ts +1 -1
- package/lib/request/verify-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -55,6 +55,9 @@ const oci_common_2 = require("oci-common");
|
|
|
55
55
|
var KmsCryptoApiKeys;
|
|
56
56
|
(function (KmsCryptoApiKeys) {
|
|
57
57
|
})(KmsCryptoApiKeys = exports.KmsCryptoApiKeys || (exports.KmsCryptoApiKeys = {}));
|
|
58
|
+
/**
|
|
59
|
+
* This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
60
|
+
*/
|
|
58
61
|
class KmsCryptoClient {
|
|
59
62
|
constructor(params, clientConfiguration) {
|
|
60
63
|
this["_endpoint"] = "";
|
|
@@ -69,6 +72,13 @@ class KmsCryptoClient {
|
|
|
69
72
|
? clientConfiguration.circuitBreaker.circuit
|
|
70
73
|
: null;
|
|
71
74
|
}
|
|
75
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
76
|
+
const specCircuitBreakerEnabled = false;
|
|
77
|
+
if (!this._circuitBreaker &&
|
|
78
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
79
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
80
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
81
|
+
}
|
|
72
82
|
this._httpClient =
|
|
73
83
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
74
84
|
}
|
|
@@ -93,10 +103,11 @@ class KmsCryptoClient {
|
|
|
93
103
|
/**
|
|
94
104
|
* Decrypts data using the given [DecryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/DecryptDataDetails) resource.
|
|
95
105
|
*
|
|
106
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
96
107
|
* @param DecryptRequest
|
|
97
108
|
* @return DecryptResponse
|
|
98
109
|
* @throws OciError when an error occurs
|
|
99
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
110
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/Decrypt.ts.html |here} to see how to use Decrypt API.
|
|
100
111
|
*/
|
|
101
112
|
decrypt(decryptRequest) {
|
|
102
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -108,7 +119,8 @@ class KmsCryptoClient {
|
|
|
108
119
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
109
120
|
"opc-request-id": decryptRequest.opcRequestId
|
|
110
121
|
};
|
|
111
|
-
const
|
|
122
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
123
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, decryptRequest.retryConfiguration, specRetryConfiguration);
|
|
112
124
|
if (this.logger)
|
|
113
125
|
retrier.logger = this.logger;
|
|
114
126
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -148,10 +160,11 @@ class KmsCryptoClient {
|
|
|
148
160
|
* Encrypts data using the given [EncryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/EncryptDataDetails) resource.
|
|
149
161
|
* Plaintext included in the example request is a base64-encoded value of a UTF-8 string.
|
|
150
162
|
*
|
|
163
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
151
164
|
* @param EncryptRequest
|
|
152
165
|
* @return EncryptResponse
|
|
153
166
|
* @throws OciError when an error occurs
|
|
154
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
167
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/Encrypt.ts.html |here} to see how to use Encrypt API.
|
|
155
168
|
*/
|
|
156
169
|
encrypt(encryptRequest) {
|
|
157
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -163,7 +176,8 @@ class KmsCryptoClient {
|
|
|
163
176
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
164
177
|
"opc-request-id": encryptRequest.opcRequestId
|
|
165
178
|
};
|
|
166
|
-
const
|
|
179
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
180
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, encryptRequest.retryConfiguration, specRetryConfiguration);
|
|
167
181
|
if (this.logger)
|
|
168
182
|
retrier.logger = this.logger;
|
|
169
183
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -204,10 +218,11 @@ class KmsCryptoClient {
|
|
|
204
218
|
* keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys
|
|
205
219
|
* stored on the server. For export, the key version is encrypted by an RSA public key that you provide.
|
|
206
220
|
*
|
|
221
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
207
222
|
* @param ExportKeyRequest
|
|
208
223
|
* @return ExportKeyResponse
|
|
209
224
|
* @throws OciError when an error occurs
|
|
210
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
225
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ExportKey.ts.html |here} to see how to use ExportKey API.
|
|
211
226
|
*/
|
|
212
227
|
exportKey(exportKeyRequest) {
|
|
213
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -218,7 +233,8 @@ class KmsCryptoClient {
|
|
|
218
233
|
let headerParams = {
|
|
219
234
|
"Content-Type": common.Constants.APPLICATION_JSON
|
|
220
235
|
};
|
|
221
|
-
const
|
|
236
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
237
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
222
238
|
if (this.logger)
|
|
223
239
|
retrier.logger = this.logger;
|
|
224
240
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -257,10 +273,11 @@ class KmsCryptoClient {
|
|
|
257
273
|
/**
|
|
258
274
|
* Generates a key that you can use to encrypt or decrypt data.
|
|
259
275
|
*
|
|
276
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
260
277
|
* @param GenerateDataEncryptionKeyRequest
|
|
261
278
|
* @return GenerateDataEncryptionKeyResponse
|
|
262
279
|
* @throws OciError when an error occurs
|
|
263
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
280
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GenerateDataEncryptionKey.ts.html |here} to see how to use GenerateDataEncryptionKey API.
|
|
264
281
|
*/
|
|
265
282
|
generateDataEncryptionKey(generateDataEncryptionKeyRequest) {
|
|
266
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -272,7 +289,8 @@ class KmsCryptoClient {
|
|
|
272
289
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
273
290
|
"opc-request-id": generateDataEncryptionKeyRequest.opcRequestId
|
|
274
291
|
};
|
|
275
|
-
const
|
|
292
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
293
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDataEncryptionKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
276
294
|
if (this.logger)
|
|
277
295
|
retrier.logger = this.logger;
|
|
278
296
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -313,10 +331,11 @@ class KmsCryptoClient {
|
|
|
313
331
|
* also known as an asymmetric key. To verify the generated signature, you can use the [Verify](https://docs.cloud.oracle.com/api/#/en/key/latest/VerifiedData/Verify)
|
|
314
332
|
* operation. Or, if you want to validate the signature outside of the service, you can do so by using the public key of the same asymmetric key.
|
|
315
333
|
*
|
|
334
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
316
335
|
* @param SignRequest
|
|
317
336
|
* @return SignResponse
|
|
318
337
|
* @throws OciError when an error occurs
|
|
319
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
338
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/Sign.ts.html |here} to see how to use Sign API.
|
|
320
339
|
*/
|
|
321
340
|
sign(signRequest) {
|
|
322
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -328,7 +347,8 @@ class KmsCryptoClient {
|
|
|
328
347
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
329
348
|
"opc-request-id": signRequest.opcRequestId
|
|
330
349
|
};
|
|
331
|
-
const
|
|
350
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
351
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, signRequest.retryConfiguration, specRetryConfiguration);
|
|
332
352
|
if (this.logger)
|
|
333
353
|
retrier.logger = this.logger;
|
|
334
354
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -369,10 +389,11 @@ class KmsCryptoClient {
|
|
|
369
389
|
* by using the public key of the same asymmetric key that was used to sign the data. If you want to validate the
|
|
370
390
|
* digital signature outside of the service, you can do so by using the public key of the asymmetric key.
|
|
371
391
|
*
|
|
392
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
372
393
|
* @param VerifyRequest
|
|
373
394
|
* @return VerifyResponse
|
|
374
395
|
* @throws OciError when an error occurs
|
|
375
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
396
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/Verify.ts.html |here} to see how to use Verify API.
|
|
376
397
|
*/
|
|
377
398
|
verify(verifyRequest) {
|
|
378
399
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -384,7 +405,8 @@ class KmsCryptoClient {
|
|
|
384
405
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
385
406
|
"opc-request-id": verifyRequest.opcRequestId
|
|
386
407
|
};
|
|
387
|
-
const
|
|
408
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
409
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, verifyRequest.retryConfiguration, specRetryConfiguration);
|
|
388
410
|
if (this.logger)
|
|
389
411
|
retrier.logger = this.logger;
|
|
390
412
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -426,6 +448,9 @@ KmsCryptoClient.serviceEndpointTemplate = "https://kms.{region}.{secondLevelDoma
|
|
|
426
448
|
var KmsManagementApiKeys;
|
|
427
449
|
(function (KmsManagementApiKeys) {
|
|
428
450
|
})(KmsManagementApiKeys = exports.KmsManagementApiKeys || (exports.KmsManagementApiKeys = {}));
|
|
451
|
+
/**
|
|
452
|
+
* This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
453
|
+
*/
|
|
429
454
|
class KmsManagementClient {
|
|
430
455
|
constructor(params, clientConfiguration) {
|
|
431
456
|
this["_endpoint"] = "";
|
|
@@ -440,6 +465,13 @@ class KmsManagementClient {
|
|
|
440
465
|
? clientConfiguration.circuitBreaker.circuit
|
|
441
466
|
: null;
|
|
442
467
|
}
|
|
468
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
469
|
+
const specCircuitBreakerEnabled = false;
|
|
470
|
+
if (!this._circuitBreaker &&
|
|
471
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
472
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
473
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
474
|
+
}
|
|
443
475
|
this._httpClient =
|
|
444
476
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
445
477
|
}
|
|
@@ -486,10 +518,11 @@ class KmsManagementClient {
|
|
|
486
518
|
* Backs up an encrypted file that contains all key versions and metadata of the specified key so that you can restore
|
|
487
519
|
* the key later. The file also contains the metadata of the vault that the key belonged to.
|
|
488
520
|
*
|
|
521
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
489
522
|
* @param BackupKeyRequest
|
|
490
523
|
* @return BackupKeyResponse
|
|
491
524
|
* @throws OciError when an error occurs
|
|
492
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
525
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/BackupKey.ts.html |here} to see how to use BackupKey API.
|
|
493
526
|
*/
|
|
494
527
|
backupKey(backupKeyRequest) {
|
|
495
528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -505,7 +538,8 @@ class KmsManagementClient {
|
|
|
505
538
|
"opc-request-id": backupKeyRequest.opcRequestId,
|
|
506
539
|
"opc-retry-token": backupKeyRequest.opcRetryToken
|
|
507
540
|
};
|
|
508
|
-
const
|
|
541
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
542
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
509
543
|
if (this.logger)
|
|
510
544
|
retrier.logger = this.logger;
|
|
511
545
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -561,10 +595,11 @@ class KmsManagementClient {
|
|
|
561
595
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
562
596
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
563
597
|
*
|
|
598
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
564
599
|
* @param CancelKeyDeletionRequest
|
|
565
600
|
* @return CancelKeyDeletionResponse
|
|
566
601
|
* @throws OciError when an error occurs
|
|
567
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
602
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CancelKeyDeletion.ts.html |here} to see how to use CancelKeyDeletion API.
|
|
568
603
|
*/
|
|
569
604
|
cancelKeyDeletion(cancelKeyDeletionRequest) {
|
|
570
605
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -580,7 +615,8 @@ class KmsManagementClient {
|
|
|
580
615
|
"opc-request-id": cancelKeyDeletionRequest.opcRequestId,
|
|
581
616
|
"opc-retry-token": cancelKeyDeletionRequest.opcRetryToken
|
|
582
617
|
};
|
|
583
|
-
const
|
|
618
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
619
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
584
620
|
if (this.logger)
|
|
585
621
|
retrier.logger = this.logger;
|
|
586
622
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -630,10 +666,11 @@ class KmsManagementClient {
|
|
|
630
666
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
631
667
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
632
668
|
*
|
|
669
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
633
670
|
* @param CancelKeyVersionDeletionRequest
|
|
634
671
|
* @return CancelKeyVersionDeletionResponse
|
|
635
672
|
* @throws OciError when an error occurs
|
|
636
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
673
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CancelKeyVersionDeletion.ts.html |here} to see how to use CancelKeyVersionDeletion API.
|
|
637
674
|
*/
|
|
638
675
|
cancelKeyVersionDeletion(cancelKeyVersionDeletionRequest) {
|
|
639
676
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -650,7 +687,8 @@ class KmsManagementClient {
|
|
|
650
687
|
"opc-request-id": cancelKeyVersionDeletionRequest.opcRequestId,
|
|
651
688
|
"opc-retry-token": cancelKeyVersionDeletionRequest.opcRetryToken
|
|
652
689
|
};
|
|
653
|
-
const
|
|
690
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
691
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
654
692
|
if (this.logger)
|
|
655
693
|
retrier.logger = this.logger;
|
|
656
694
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -701,10 +739,11 @@ class KmsManagementClient {
|
|
|
701
739
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
702
740
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
703
741
|
*
|
|
742
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
704
743
|
* @param ChangeKeyCompartmentRequest
|
|
705
744
|
* @return ChangeKeyCompartmentResponse
|
|
706
745
|
* @throws OciError when an error occurs
|
|
707
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
746
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ChangeKeyCompartment.ts.html |here} to see how to use ChangeKeyCompartment API.
|
|
708
747
|
*/
|
|
709
748
|
changeKeyCompartment(changeKeyCompartmentRequest) {
|
|
710
749
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -720,7 +759,8 @@ class KmsManagementClient {
|
|
|
720
759
|
"opc-request-id": changeKeyCompartmentRequest.opcRequestId,
|
|
721
760
|
"opc-retry-token": changeKeyCompartmentRequest.opcRetryToken
|
|
722
761
|
};
|
|
723
|
-
const
|
|
762
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
763
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeKeyCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
724
764
|
if (this.logger)
|
|
725
765
|
retrier.logger = this.logger;
|
|
726
766
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -765,10 +805,11 @@ class KmsManagementClient {
|
|
|
765
805
|
* to reject an otherwise valid request when the total rate of management write operations exceeds 10
|
|
766
806
|
* requests per second for a given tenancy.
|
|
767
807
|
*
|
|
808
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
768
809
|
* @param CreateKeyRequest
|
|
769
810
|
* @return CreateKeyResponse
|
|
770
811
|
* @throws OciError when an error occurs
|
|
771
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
812
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CreateKey.ts.html |here} to see how to use CreateKey API.
|
|
772
813
|
*/
|
|
773
814
|
createKey(createKeyRequest) {
|
|
774
815
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -781,7 +822,8 @@ class KmsManagementClient {
|
|
|
781
822
|
"opc-request-id": createKeyRequest.opcRequestId,
|
|
782
823
|
"opc-retry-token": createKeyRequest.opcRetryToken
|
|
783
824
|
};
|
|
784
|
-
const
|
|
825
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
826
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
785
827
|
if (this.logger)
|
|
786
828
|
retrier.logger = this.logger;
|
|
787
829
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -831,10 +873,11 @@ class KmsManagementClient {
|
|
|
831
873
|
* otherwise valid request when the total rate of management write operations exceeds 10 requests per second
|
|
832
874
|
* for a given tenancy.
|
|
833
875
|
*
|
|
876
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
834
877
|
* @param CreateKeyVersionRequest
|
|
835
878
|
* @return CreateKeyVersionResponse
|
|
836
879
|
* @throws OciError when an error occurs
|
|
837
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
880
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CreateKeyVersion.ts.html |here} to see how to use CreateKeyVersion API.
|
|
838
881
|
*/
|
|
839
882
|
createKeyVersion(createKeyVersionRequest) {
|
|
840
883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -849,7 +892,8 @@ class KmsManagementClient {
|
|
|
849
892
|
"opc-request-id": createKeyVersionRequest.opcRequestId,
|
|
850
893
|
"opc-retry-token": createKeyVersionRequest.opcRetryToken
|
|
851
894
|
};
|
|
852
|
-
const
|
|
895
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
896
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKeyVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
853
897
|
if (this.logger)
|
|
854
898
|
retrier.logger = this.logger;
|
|
855
899
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -898,10 +942,11 @@ class KmsManagementClient {
|
|
|
898
942
|
* otherwise valid request when the total rate of management write operations exceeds 10 requests per second
|
|
899
943
|
* for a given tenancy.
|
|
900
944
|
*
|
|
945
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
901
946
|
* @param DisableKeyRequest
|
|
902
947
|
* @return DisableKeyResponse
|
|
903
948
|
* @throws OciError when an error occurs
|
|
904
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
949
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/DisableKey.ts.html |here} to see how to use DisableKey API.
|
|
905
950
|
*/
|
|
906
951
|
disableKey(disableKeyRequest) {
|
|
907
952
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -917,7 +962,8 @@ class KmsManagementClient {
|
|
|
917
962
|
"opc-request-id": disableKeyRequest.opcRequestId,
|
|
918
963
|
"opc-retry-token": disableKeyRequest.opcRetryToken
|
|
919
964
|
};
|
|
920
|
-
const
|
|
965
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
966
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
921
967
|
if (this.logger)
|
|
922
968
|
retrier.logger = this.logger;
|
|
923
969
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -966,10 +1012,11 @@ class KmsManagementClient {
|
|
|
966
1012
|
* otherwise valid request when the total rate of management write operations exceeds 10 requests per second
|
|
967
1013
|
* for a given tenancy.
|
|
968
1014
|
*
|
|
1015
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
969
1016
|
* @param EnableKeyRequest
|
|
970
1017
|
* @return EnableKeyResponse
|
|
971
1018
|
* @throws OciError when an error occurs
|
|
972
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1019
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/EnableKey.ts.html |here} to see how to use EnableKey API.
|
|
973
1020
|
*/
|
|
974
1021
|
enableKey(enableKeyRequest) {
|
|
975
1022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -985,7 +1032,8 @@ class KmsManagementClient {
|
|
|
985
1032
|
"opc-request-id": enableKeyRequest.opcRequestId,
|
|
986
1033
|
"opc-retry-token": enableKeyRequest.opcRetryToken
|
|
987
1034
|
};
|
|
988
|
-
const
|
|
1035
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1036
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
989
1037
|
if (this.logger)
|
|
990
1038
|
retrier.logger = this.logger;
|
|
991
1039
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1033,10 +1081,11 @@ class KmsManagementClient {
|
|
|
1033
1081
|
* otherwise valid request when the total rate of management read operations exceeds 10 requests per second for
|
|
1034
1082
|
* a given tenancy.
|
|
1035
1083
|
*
|
|
1084
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1036
1085
|
* @param GetKeyRequest
|
|
1037
1086
|
* @return GetKeyResponse
|
|
1038
1087
|
* @throws OciError when an error occurs
|
|
1039
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1088
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GetKey.ts.html |here} to see how to use GetKey API.
|
|
1040
1089
|
*/
|
|
1041
1090
|
getKey(getKeyRequest) {
|
|
1042
1091
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1050,7 +1099,8 @@ class KmsManagementClient {
|
|
|
1050
1099
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1051
1100
|
"opc-request-id": getKeyRequest.opcRequestId
|
|
1052
1101
|
};
|
|
1053
|
-
const
|
|
1102
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1103
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
1054
1104
|
if (this.logger)
|
|
1055
1105
|
retrier.logger = this.logger;
|
|
1056
1106
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1098,10 +1148,11 @@ class KmsManagementClient {
|
|
|
1098
1148
|
* otherwise valid request when the total rate of management read operations exceeds 10 requests per second
|
|
1099
1149
|
* for a given tenancy.
|
|
1100
1150
|
*
|
|
1151
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1101
1152
|
* @param GetKeyVersionRequest
|
|
1102
1153
|
* @return GetKeyVersionResponse
|
|
1103
1154
|
* @throws OciError when an error occurs
|
|
1104
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1155
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GetKeyVersion.ts.html |here} to see how to use GetKeyVersion API.
|
|
1105
1156
|
*/
|
|
1106
1157
|
getKeyVersion(getKeyVersionRequest) {
|
|
1107
1158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1116,7 +1167,8 @@ class KmsManagementClient {
|
|
|
1116
1167
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1117
1168
|
"opc-request-id": getKeyVersionRequest.opcRequestId
|
|
1118
1169
|
};
|
|
1119
|
-
const
|
|
1170
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1171
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKeyVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
1120
1172
|
if (this.logger)
|
|
1121
1173
|
retrier.logger = this.logger;
|
|
1122
1174
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1162,10 +1214,11 @@ class KmsManagementClient {
|
|
|
1162
1214
|
* details about whether the operation associated with the given replicationId has been
|
|
1163
1215
|
* successfully applied across replicas.
|
|
1164
1216
|
*
|
|
1217
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1165
1218
|
* @param GetReplicationStatusRequest
|
|
1166
1219
|
* @return GetReplicationStatusResponse
|
|
1167
1220
|
* @throws OciError when an error occurs
|
|
1168
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1221
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GetReplicationStatus.ts.html |here} to see how to use GetReplicationStatus API.
|
|
1169
1222
|
*/
|
|
1170
1223
|
getReplicationStatus(getReplicationStatusRequest) {
|
|
1171
1224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1179,7 +1232,8 @@ class KmsManagementClient {
|
|
|
1179
1232
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1180
1233
|
"opc-request-id": getReplicationStatusRequest.opcRequestId
|
|
1181
1234
|
};
|
|
1182
|
-
const
|
|
1235
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1236
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
1183
1237
|
if (this.logger)
|
|
1184
1238
|
retrier.logger = this.logger;
|
|
1185
1239
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1223,10 +1277,11 @@ class KmsManagementClient {
|
|
|
1223
1277
|
* Gets details about the public RSA wrapping key associated with the vault in the endpoint. Each vault has an RSA key-pair that wraps and
|
|
1224
1278
|
* unwraps AES key material for import into Key Management.
|
|
1225
1279
|
*
|
|
1280
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1226
1281
|
* @param GetWrappingKeyRequest
|
|
1227
1282
|
* @return GetWrappingKeyResponse
|
|
1228
1283
|
* @throws OciError when an error occurs
|
|
1229
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1284
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GetWrappingKey.ts.html |here} to see how to use GetWrappingKey API.
|
|
1230
1285
|
*/
|
|
1231
1286
|
getWrappingKey(getWrappingKeyRequest) {
|
|
1232
1287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1238,7 +1293,8 @@ class KmsManagementClient {
|
|
|
1238
1293
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1239
1294
|
"opc-request-id": getWrappingKeyRequest.opcRequestId
|
|
1240
1295
|
};
|
|
1241
|
-
const
|
|
1296
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1297
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWrappingKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
1242
1298
|
if (this.logger)
|
|
1243
1299
|
retrier.logger = this.logger;
|
|
1244
1300
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1283,10 +1339,11 @@ class KmsManagementClient {
|
|
|
1283
1339
|
* wrapped by the vault's public RSA wrapping key before you can import it. Key Management supports AES symmetric keys
|
|
1284
1340
|
* that are exactly 16, 24, or 32 bytes. Furthermore, the key length must match what you specify at the time of import.
|
|
1285
1341
|
*
|
|
1342
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1286
1343
|
* @param ImportKeyRequest
|
|
1287
1344
|
* @return ImportKeyResponse
|
|
1288
1345
|
* @throws OciError when an error occurs
|
|
1289
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1346
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ImportKey.ts.html |here} to see how to use ImportKey API.
|
|
1290
1347
|
*/
|
|
1291
1348
|
importKey(importKeyRequest) {
|
|
1292
1349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1299,7 +1356,8 @@ class KmsManagementClient {
|
|
|
1299
1356
|
"opc-request-id": importKeyRequest.opcRequestId,
|
|
1300
1357
|
"opc-retry-token": importKeyRequest.opcRetryToken
|
|
1301
1358
|
};
|
|
1302
|
-
const
|
|
1359
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1360
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
1303
1361
|
if (this.logger)
|
|
1304
1362
|
retrier.logger = this.logger;
|
|
1305
1363
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1347,10 +1405,11 @@ class KmsManagementClient {
|
|
|
1347
1405
|
* Furthermore, the key length must match the length of the specified key and what you specify as the length
|
|
1348
1406
|
* at the time of import.
|
|
1349
1407
|
*
|
|
1408
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1350
1409
|
* @param ImportKeyVersionRequest
|
|
1351
1410
|
* @return ImportKeyVersionResponse
|
|
1352
1411
|
* @throws OciError when an error occurs
|
|
1353
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1412
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ImportKeyVersion.ts.html |here} to see how to use ImportKeyVersion API.
|
|
1354
1413
|
*/
|
|
1355
1414
|
importKeyVersion(importKeyVersionRequest) {
|
|
1356
1415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1365,7 +1424,8 @@ class KmsManagementClient {
|
|
|
1365
1424
|
"opc-request-id": importKeyVersionRequest.opcRequestId,
|
|
1366
1425
|
"opc-retry-token": importKeyVersionRequest.opcRetryToken
|
|
1367
1426
|
};
|
|
1368
|
-
const
|
|
1427
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1428
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importKeyVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
1369
1429
|
if (this.logger)
|
|
1370
1430
|
retrier.logger = this.logger;
|
|
1371
1431
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1415,10 +1475,11 @@ class KmsManagementClient {
|
|
|
1415
1475
|
* otherwise valid request when the total rate of management read operations exceeds 10 requests per second
|
|
1416
1476
|
* for a given tenancy.
|
|
1417
1477
|
*
|
|
1478
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1418
1479
|
* @param ListKeyVersionsRequest
|
|
1419
1480
|
* @return ListKeyVersionsResponse
|
|
1420
1481
|
* @throws OciError when an error occurs
|
|
1421
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1482
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ListKeyVersions.ts.html |here} to see how to use ListKeyVersions API.
|
|
1422
1483
|
*/
|
|
1423
1484
|
listKeyVersions(listKeyVersionsRequest) {
|
|
1424
1485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1437,7 +1498,8 @@ class KmsManagementClient {
|
|
|
1437
1498
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1438
1499
|
"opc-request-id": listKeyVersionsRequest.opcRequestId
|
|
1439
1500
|
};
|
|
1440
|
-
const
|
|
1501
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1502
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeyVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1441
1503
|
if (this.logger)
|
|
1442
1504
|
retrier.logger = this.logger;
|
|
1443
1505
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1478,6 +1540,7 @@ class KmsManagementClient {
|
|
|
1478
1540
|
});
|
|
1479
1541
|
}
|
|
1480
1542
|
/**
|
|
1543
|
+
* NOTE: This function is deprecated in favor of listKeyVersionsRecordIterator function.
|
|
1481
1544
|
* Creates a new async iterator which will iterate over the models.KeyVersionSummary objects
|
|
1482
1545
|
* contained in responses from the listKeyVersions operation. This iterator will fetch more data from the
|
|
1483
1546
|
* server as needed.
|
|
@@ -1488,6 +1551,7 @@ class KmsManagementClient {
|
|
|
1488
1551
|
return oci_common_1.paginateRecords(request, req => this.listKeyVersions(req));
|
|
1489
1552
|
}
|
|
1490
1553
|
/**
|
|
1554
|
+
* NOTE: This function is deprecated in favor of listKeyVersionsResponseIterator function.
|
|
1491
1555
|
* Creates a new async iterator which will iterate over the responses received from the listKeyVersions operation. This iterator
|
|
1492
1556
|
* will fetch more data from the server as needed.
|
|
1493
1557
|
*
|
|
@@ -1496,6 +1560,25 @@ class KmsManagementClient {
|
|
|
1496
1560
|
listAllKeyVersionsResponses(request) {
|
|
1497
1561
|
return oci_common_1.paginateResponses(request, req => this.listKeyVersions(req));
|
|
1498
1562
|
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Creates a new async iterator which will iterate over the models.KeyVersionSummary objects
|
|
1565
|
+
* contained in responses from the listKeyVersions operation. This iterator will fetch more data from the
|
|
1566
|
+
* server as needed.
|
|
1567
|
+
*
|
|
1568
|
+
* @param request a request which can be sent to the service operation
|
|
1569
|
+
*/
|
|
1570
|
+
listKeyVersionsRecordIterator(request) {
|
|
1571
|
+
return oci_common_1.paginateRecords(request, req => this.listKeyVersions(req));
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* Creates a new async iterator which will iterate over the responses received from the listKeyVersions operation. This iterator
|
|
1575
|
+
* will fetch more data from the server as needed.
|
|
1576
|
+
*
|
|
1577
|
+
* @param request a request which can be sent to the service operation
|
|
1578
|
+
*/
|
|
1579
|
+
listKeyVersionsResponseIterator(request) {
|
|
1580
|
+
return oci_common_1.paginateResponses(request, req => this.listKeyVersions(req));
|
|
1581
|
+
}
|
|
1499
1582
|
/**
|
|
1500
1583
|
* Lists the master encryption keys in the specified vault and compartment.
|
|
1501
1584
|
* <p>
|
|
@@ -1504,10 +1587,11 @@ class KmsManagementClient {
|
|
|
1504
1587
|
* otherwise valid request when the total rate of management read operations exceeds 10 requests per second
|
|
1505
1588
|
* for a given tenancy.
|
|
1506
1589
|
*
|
|
1590
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1507
1591
|
* @param ListKeysRequest
|
|
1508
1592
|
* @return ListKeysResponse
|
|
1509
1593
|
* @throws OciError when an error occurs
|
|
1510
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1594
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ListKeys.ts.html |here} to see how to use ListKeys API.
|
|
1511
1595
|
*/
|
|
1512
1596
|
listKeys(listKeysRequest) {
|
|
1513
1597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1529,7 +1613,8 @@ class KmsManagementClient {
|
|
|
1529
1613
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1530
1614
|
"opc-request-id": listKeysRequest.opcRequestId
|
|
1531
1615
|
};
|
|
1532
|
-
const
|
|
1616
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1617
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeysRequest.retryConfiguration, specRetryConfiguration);
|
|
1533
1618
|
if (this.logger)
|
|
1534
1619
|
retrier.logger = this.logger;
|
|
1535
1620
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1570,6 +1655,7 @@ class KmsManagementClient {
|
|
|
1570
1655
|
});
|
|
1571
1656
|
}
|
|
1572
1657
|
/**
|
|
1658
|
+
* NOTE: This function is deprecated in favor of listKeysRecordIterator function.
|
|
1573
1659
|
* Creates a new async iterator which will iterate over the models.KeySummary objects
|
|
1574
1660
|
* contained in responses from the listKeys operation. This iterator will fetch more data from the
|
|
1575
1661
|
* server as needed.
|
|
@@ -1580,6 +1666,7 @@ class KmsManagementClient {
|
|
|
1580
1666
|
return oci_common_1.paginateRecords(request, req => this.listKeys(req));
|
|
1581
1667
|
}
|
|
1582
1668
|
/**
|
|
1669
|
+
* NOTE: This function is deprecated in favor of listKeysResponseIterator function.
|
|
1583
1670
|
* Creates a new async iterator which will iterate over the responses received from the listKeys operation. This iterator
|
|
1584
1671
|
* will fetch more data from the server as needed.
|
|
1585
1672
|
*
|
|
@@ -1588,15 +1675,35 @@ class KmsManagementClient {
|
|
|
1588
1675
|
listAllKeysResponses(request) {
|
|
1589
1676
|
return oci_common_1.paginateResponses(request, req => this.listKeys(req));
|
|
1590
1677
|
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Creates a new async iterator which will iterate over the models.KeySummary objects
|
|
1680
|
+
* contained in responses from the listKeys operation. This iterator will fetch more data from the
|
|
1681
|
+
* server as needed.
|
|
1682
|
+
*
|
|
1683
|
+
* @param request a request which can be sent to the service operation
|
|
1684
|
+
*/
|
|
1685
|
+
listKeysRecordIterator(request) {
|
|
1686
|
+
return oci_common_1.paginateRecords(request, req => this.listKeys(req));
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Creates a new async iterator which will iterate over the responses received from the listKeys operation. This iterator
|
|
1690
|
+
* will fetch more data from the server as needed.
|
|
1691
|
+
*
|
|
1692
|
+
* @param request a request which can be sent to the service operation
|
|
1693
|
+
*/
|
|
1694
|
+
listKeysResponseIterator(request) {
|
|
1695
|
+
return oci_common_1.paginateResponses(request, req => this.listKeys(req));
|
|
1696
|
+
}
|
|
1591
1697
|
/**
|
|
1592
1698
|
* Restores the specified key to the specified vault, based on information in the backup file provided.
|
|
1593
1699
|
* If the vault doesn't exist, the operation returns a response with a 404 HTTP status error code. You
|
|
1594
1700
|
* need to first restore the vault associated with the key.
|
|
1595
1701
|
*
|
|
1702
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1596
1703
|
* @param RestoreKeyFromFileRequest
|
|
1597
1704
|
* @return RestoreKeyFromFileResponse
|
|
1598
1705
|
* @throws OciError when an error occurs
|
|
1599
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1706
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/RestoreKeyFromFile.ts.html |here} to see how to use RestoreKeyFromFile API.
|
|
1600
1707
|
*/
|
|
1601
1708
|
restoreKeyFromFile(restoreKeyFromFileRequest) {
|
|
1602
1709
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1611,7 +1718,8 @@ class KmsManagementClient {
|
|
|
1611
1718
|
"opc-request-id": restoreKeyFromFileRequest.opcRequestId,
|
|
1612
1719
|
"opc-retry-token": restoreKeyFromFileRequest.opcRetryToken
|
|
1613
1720
|
};
|
|
1614
|
-
const
|
|
1721
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1722
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromFileRequest.retryConfiguration, specRetryConfiguration);
|
|
1615
1723
|
if (this.logger)
|
|
1616
1724
|
retrier.logger = this.logger;
|
|
1617
1725
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1668,10 +1776,11 @@ class KmsManagementClient {
|
|
|
1668
1776
|
* Object Storage location. If the vault doesn't exist, the operation returns a response with a
|
|
1669
1777
|
* 404 HTTP status error code. You need to first restore the vault associated with the key.
|
|
1670
1778
|
*
|
|
1779
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1671
1780
|
* @param RestoreKeyFromObjectStoreRequest
|
|
1672
1781
|
* @return RestoreKeyFromObjectStoreResponse
|
|
1673
1782
|
* @throws OciError when an error occurs
|
|
1674
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1783
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/RestoreKeyFromObjectStore.ts.html |here} to see how to use RestoreKeyFromObjectStore API.
|
|
1675
1784
|
*/
|
|
1676
1785
|
restoreKeyFromObjectStore(restoreKeyFromObjectStoreRequest) {
|
|
1677
1786
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1685,7 +1794,8 @@ class KmsManagementClient {
|
|
|
1685
1794
|
"opc-request-id": restoreKeyFromObjectStoreRequest.opcRequestId,
|
|
1686
1795
|
"opc-retry-token": restoreKeyFromObjectStoreRequest.opcRetryToken
|
|
1687
1796
|
};
|
|
1688
|
-
const
|
|
1797
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1798
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
|
|
1689
1799
|
if (this.logger)
|
|
1690
1800
|
retrier.logger = this.logger;
|
|
1691
1801
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1740,10 +1850,11 @@ class KmsManagementClient {
|
|
|
1740
1850
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
1741
1851
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
1742
1852
|
*
|
|
1853
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1743
1854
|
* @param ScheduleKeyDeletionRequest
|
|
1744
1855
|
* @return ScheduleKeyDeletionResponse
|
|
1745
1856
|
* @throws OciError when an error occurs
|
|
1746
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1857
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ScheduleKeyDeletion.ts.html |here} to see how to use ScheduleKeyDeletion API.
|
|
1747
1858
|
*/
|
|
1748
1859
|
scheduleKeyDeletion(scheduleKeyDeletionRequest) {
|
|
1749
1860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1759,7 +1870,8 @@ class KmsManagementClient {
|
|
|
1759
1870
|
"opc-request-id": scheduleKeyDeletionRequest.opcRequestId,
|
|
1760
1871
|
"opc-retry-token": scheduleKeyDeletionRequest.opcRetryToken
|
|
1761
1872
|
};
|
|
1762
|
-
const
|
|
1873
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1874
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1763
1875
|
if (this.logger)
|
|
1764
1876
|
retrier.logger = this.logger;
|
|
1765
1877
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1809,10 +1921,11 @@ class KmsManagementClient {
|
|
|
1809
1921
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
1810
1922
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
1811
1923
|
*
|
|
1924
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1812
1925
|
* @param ScheduleKeyVersionDeletionRequest
|
|
1813
1926
|
* @return ScheduleKeyVersionDeletionResponse
|
|
1814
1927
|
* @throws OciError when an error occurs
|
|
1815
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1928
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ScheduleKeyVersionDeletion.ts.html |here} to see how to use ScheduleKeyVersionDeletion API.
|
|
1816
1929
|
*/
|
|
1817
1930
|
scheduleKeyVersionDeletion(scheduleKeyVersionDeletionRequest) {
|
|
1818
1931
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1829,7 +1942,8 @@ class KmsManagementClient {
|
|
|
1829
1942
|
"opc-request-id": scheduleKeyVersionDeletionRequest.opcRequestId,
|
|
1830
1943
|
"opc-retry-token": scheduleKeyVersionDeletionRequest.opcRetryToken
|
|
1831
1944
|
};
|
|
1832
|
-
const
|
|
1945
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1946
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1833
1947
|
if (this.logger)
|
|
1834
1948
|
retrier.logger = this.logger;
|
|
1835
1949
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1880,10 +1994,11 @@ class KmsManagementClient {
|
|
|
1880
1994
|
* otherwise valid request when the total rate of management write operations exceeds 10 requests per second
|
|
1881
1995
|
* for a given tenancy.
|
|
1882
1996
|
*
|
|
1997
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1883
1998
|
* @param UpdateKeyRequest
|
|
1884
1999
|
* @return UpdateKeyResponse
|
|
1885
2000
|
* @throws OciError when an error occurs
|
|
1886
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2001
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/UpdateKey.ts.html |here} to see how to use UpdateKey API.
|
|
1887
2002
|
*/
|
|
1888
2003
|
updateKey(updateKeyRequest) {
|
|
1889
2004
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1898,7 +2013,8 @@ class KmsManagementClient {
|
|
|
1898
2013
|
"if-match": updateKeyRequest.ifMatch,
|
|
1899
2014
|
"opc-request-id": updateKeyRequest.opcRequestId
|
|
1900
2015
|
};
|
|
1901
|
-
const
|
|
2016
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2017
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
1902
2018
|
if (this.logger)
|
|
1903
2019
|
retrier.logger = this.logger;
|
|
1904
2020
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1945,6 +2061,9 @@ KmsManagementClient.serviceEndpointTemplate = "https://kms.{region}.{secondLevel
|
|
|
1945
2061
|
var KmsVaultApiKeys;
|
|
1946
2062
|
(function (KmsVaultApiKeys) {
|
|
1947
2063
|
})(KmsVaultApiKeys = exports.KmsVaultApiKeys || (exports.KmsVaultApiKeys = {}));
|
|
2064
|
+
/**
|
|
2065
|
+
* This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
2066
|
+
*/
|
|
1948
2067
|
class KmsVaultClient {
|
|
1949
2068
|
constructor(params, clientConfiguration) {
|
|
1950
2069
|
this["_endpoint"] = "";
|
|
@@ -1959,6 +2078,13 @@ class KmsVaultClient {
|
|
|
1959
2078
|
? clientConfiguration.circuitBreaker.circuit
|
|
1960
2079
|
: null;
|
|
1961
2080
|
}
|
|
2081
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2082
|
+
const specCircuitBreakerEnabled = false;
|
|
2083
|
+
if (!this._circuitBreaker &&
|
|
2084
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2085
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2086
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2087
|
+
}
|
|
1962
2088
|
this._httpClient =
|
|
1963
2089
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
1964
2090
|
if (params.authenticationDetailsProvider &&
|
|
@@ -2032,10 +2158,11 @@ class KmsVaultClient {
|
|
|
2032
2158
|
* You can backup a vault whether or not it contains keys. This operation only backs up the
|
|
2033
2159
|
* metadata of the vault, and does not include key metadata.
|
|
2034
2160
|
*
|
|
2161
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2035
2162
|
* @param BackupVaultRequest
|
|
2036
2163
|
* @return BackupVaultResponse
|
|
2037
2164
|
* @throws OciError when an error occurs
|
|
2038
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2165
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/BackupVault.ts.html |here} to see how to use BackupVault API.
|
|
2039
2166
|
*/
|
|
2040
2167
|
backupVault(backupVaultRequest) {
|
|
2041
2168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2051,7 +2178,8 @@ class KmsVaultClient {
|
|
|
2051
2178
|
"opc-request-id": backupVaultRequest.opcRequestId,
|
|
2052
2179
|
"opc-retry-token": backupVaultRequest.opcRetryToken
|
|
2053
2180
|
};
|
|
2054
|
-
const
|
|
2181
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2182
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2055
2183
|
if (this.logger)
|
|
2056
2184
|
retrier.logger = this.logger;
|
|
2057
2185
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2108,10 +2236,11 @@ class KmsVaultClient {
|
|
|
2108
2236
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2109
2237
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2110
2238
|
*
|
|
2239
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2111
2240
|
* @param CancelVaultDeletionRequest
|
|
2112
2241
|
* @return CancelVaultDeletionResponse
|
|
2113
2242
|
* @throws OciError when an error occurs
|
|
2114
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2243
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CancelVaultDeletion.ts.html |here} to see how to use CancelVaultDeletion API.
|
|
2115
2244
|
*/
|
|
2116
2245
|
cancelVaultDeletion(cancelVaultDeletionRequest) {
|
|
2117
2246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2127,7 +2256,8 @@ class KmsVaultClient {
|
|
|
2127
2256
|
"opc-request-id": cancelVaultDeletionRequest.opcRequestId,
|
|
2128
2257
|
"opc-retry-token": cancelVaultDeletionRequest.opcRetryToken
|
|
2129
2258
|
};
|
|
2130
|
-
const
|
|
2259
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2260
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
2131
2261
|
if (this.logger)
|
|
2132
2262
|
retrier.logger = this.logger;
|
|
2133
2263
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2178,10 +2308,11 @@ class KmsVaultClient {
|
|
|
2178
2308
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2179
2309
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2180
2310
|
*
|
|
2311
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2181
2312
|
* @param ChangeVaultCompartmentRequest
|
|
2182
2313
|
* @return ChangeVaultCompartmentResponse
|
|
2183
2314
|
* @throws OciError when an error occurs
|
|
2184
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2315
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ChangeVaultCompartment.ts.html |here} to see how to use ChangeVaultCompartment API.
|
|
2185
2316
|
*/
|
|
2186
2317
|
changeVaultCompartment(changeVaultCompartmentRequest) {
|
|
2187
2318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2197,7 +2328,8 @@ class KmsVaultClient {
|
|
|
2197
2328
|
"opc-request-id": changeVaultCompartmentRequest.opcRequestId,
|
|
2198
2329
|
"opc-retry-token": changeVaultCompartmentRequest.opcRetryToken
|
|
2199
2330
|
};
|
|
2200
|
-
const
|
|
2331
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2332
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeVaultCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2201
2333
|
if (this.logger)
|
|
2202
2334
|
retrier.logger = this.logger;
|
|
2203
2335
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2245,10 +2377,11 @@ class KmsVaultClient {
|
|
|
2245
2377
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2246
2378
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2247
2379
|
*
|
|
2380
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2248
2381
|
* @param CreateVaultRequest
|
|
2249
2382
|
* @return CreateVaultResponse
|
|
2250
2383
|
* @throws OciError when an error occurs
|
|
2251
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2384
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CreateVault.ts.html |here} to see how to use CreateVault API.
|
|
2252
2385
|
*/
|
|
2253
2386
|
createVault(createVaultRequest) {
|
|
2254
2387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2261,7 +2394,8 @@ class KmsVaultClient {
|
|
|
2261
2394
|
"opc-request-id": createVaultRequest.opcRequestId,
|
|
2262
2395
|
"opc-retry-token": createVaultRequest.opcRetryToken
|
|
2263
2396
|
};
|
|
2264
|
-
const
|
|
2397
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2398
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2265
2399
|
if (this.logger)
|
|
2266
2400
|
retrier.logger = this.logger;
|
|
2267
2401
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2314,10 +2448,11 @@ class KmsVaultClient {
|
|
|
2314
2448
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2315
2449
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2316
2450
|
*
|
|
2451
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2317
2452
|
* @param CreateVaultReplicaRequest
|
|
2318
2453
|
* @return CreateVaultReplicaResponse
|
|
2319
2454
|
* @throws OciError when an error occurs
|
|
2320
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2455
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/CreateVaultReplica.ts.html |here} to see how to use CreateVaultReplica API.
|
|
2321
2456
|
*/
|
|
2322
2457
|
createVaultReplica(createVaultReplicaRequest) {
|
|
2323
2458
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2333,7 +2468,8 @@ class KmsVaultClient {
|
|
|
2333
2468
|
"opc-request-id": createVaultReplicaRequest.opcRequestId,
|
|
2334
2469
|
"opc-retry-token": createVaultReplicaRequest.opcRetryToken
|
|
2335
2470
|
};
|
|
2336
|
-
const
|
|
2471
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2472
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
2337
2473
|
if (this.logger)
|
|
2338
2474
|
retrier.logger = this.logger;
|
|
2339
2475
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2378,10 +2514,11 @@ class KmsVaultClient {
|
|
|
2378
2514
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2379
2515
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2380
2516
|
*
|
|
2517
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2381
2518
|
* @param DeleteVaultReplicaRequest
|
|
2382
2519
|
* @return DeleteVaultReplicaResponse
|
|
2383
2520
|
* @throws OciError when an error occurs
|
|
2384
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2521
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/DeleteVaultReplica.ts.html |here} to see how to use DeleteVaultReplica API.
|
|
2385
2522
|
*/
|
|
2386
2523
|
deleteVaultReplica(deleteVaultReplicaRequest) {
|
|
2387
2524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2397,7 +2534,8 @@ class KmsVaultClient {
|
|
|
2397
2534
|
"opc-request-id": deleteVaultReplicaRequest.opcRequestId,
|
|
2398
2535
|
"opc-retry-token": deleteVaultReplicaRequest.opcRetryToken
|
|
2399
2536
|
};
|
|
2400
|
-
const
|
|
2537
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2538
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
2401
2539
|
if (this.logger)
|
|
2402
2540
|
retrier.logger = this.logger;
|
|
2403
2541
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2442,10 +2580,11 @@ class KmsVaultClient {
|
|
|
2442
2580
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2443
2581
|
* read operations exceeds 10 requests per second for a given tenancy.
|
|
2444
2582
|
*
|
|
2583
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2445
2584
|
* @param GetVaultRequest
|
|
2446
2585
|
* @return GetVaultResponse
|
|
2447
2586
|
* @throws OciError when an error occurs
|
|
2448
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2587
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GetVault.ts.html |here} to see how to use GetVault API.
|
|
2449
2588
|
*/
|
|
2450
2589
|
getVault(getVaultRequest) {
|
|
2451
2590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2459,7 +2598,8 @@ class KmsVaultClient {
|
|
|
2459
2598
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2460
2599
|
"opc-request-id": getVaultRequest.opcRequestId
|
|
2461
2600
|
};
|
|
2462
|
-
const
|
|
2601
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2602
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2463
2603
|
if (this.logger)
|
|
2464
2604
|
retrier.logger = this.logger;
|
|
2465
2605
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2502,10 +2642,11 @@ class KmsVaultClient {
|
|
|
2502
2642
|
/**
|
|
2503
2643
|
* Gets the count of keys and key versions in the specified vault to calculate usage against service limits.
|
|
2504
2644
|
*
|
|
2645
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2505
2646
|
* @param GetVaultUsageRequest
|
|
2506
2647
|
* @return GetVaultUsageResponse
|
|
2507
2648
|
* @throws OciError when an error occurs
|
|
2508
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2649
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/GetVaultUsage.ts.html |here} to see how to use GetVaultUsage API.
|
|
2509
2650
|
*/
|
|
2510
2651
|
getVaultUsage(getVaultUsageRequest) {
|
|
2511
2652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2519,7 +2660,8 @@ class KmsVaultClient {
|
|
|
2519
2660
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2520
2661
|
"opc-request-id": getVaultUsageRequest.opcRequestId
|
|
2521
2662
|
};
|
|
2522
|
-
const
|
|
2663
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2664
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultUsageRequest.retryConfiguration, specRetryConfiguration);
|
|
2523
2665
|
if (this.logger)
|
|
2524
2666
|
retrier.logger = this.logger;
|
|
2525
2667
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2562,10 +2704,11 @@ class KmsVaultClient {
|
|
|
2562
2704
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2563
2705
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2564
2706
|
*
|
|
2707
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2565
2708
|
* @param ListVaultReplicasRequest
|
|
2566
2709
|
* @return ListVaultReplicasResponse
|
|
2567
2710
|
* @throws OciError when an error occurs
|
|
2568
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2711
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ListVaultReplicas.ts.html |here} to see how to use ListVaultReplicas API.
|
|
2569
2712
|
*/
|
|
2570
2713
|
listVaultReplicas(listVaultReplicasRequest) {
|
|
2571
2714
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2586,7 +2729,8 @@ class KmsVaultClient {
|
|
|
2586
2729
|
"opc-request-id": listVaultReplicasRequest.opcRequestId,
|
|
2587
2730
|
"opc-retry-token": listVaultReplicasRequest.opcRetryToken
|
|
2588
2731
|
};
|
|
2589
|
-
const
|
|
2732
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2733
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultReplicasRequest.retryConfiguration, specRetryConfiguration);
|
|
2590
2734
|
if (this.logger)
|
|
2591
2735
|
retrier.logger = this.logger;
|
|
2592
2736
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2632,6 +2776,7 @@ class KmsVaultClient {
|
|
|
2632
2776
|
});
|
|
2633
2777
|
}
|
|
2634
2778
|
/**
|
|
2779
|
+
* NOTE: This function is deprecated in favor of listVaultReplicasRecordIterator function.
|
|
2635
2780
|
* Creates a new async iterator which will iterate over the models.VaultReplicaSummary objects
|
|
2636
2781
|
* contained in responses from the listVaultReplicas operation. This iterator will fetch more data from the
|
|
2637
2782
|
* server as needed.
|
|
@@ -2642,6 +2787,7 @@ class KmsVaultClient {
|
|
|
2642
2787
|
return oci_common_1.paginateRecords(request, req => this.listVaultReplicas(req));
|
|
2643
2788
|
}
|
|
2644
2789
|
/**
|
|
2790
|
+
* NOTE: This function is deprecated in favor of listVaultReplicasResponseIterator function.
|
|
2645
2791
|
* Creates a new async iterator which will iterate over the responses received from the listVaultReplicas operation. This iterator
|
|
2646
2792
|
* will fetch more data from the server as needed.
|
|
2647
2793
|
*
|
|
@@ -2650,6 +2796,25 @@ class KmsVaultClient {
|
|
|
2650
2796
|
listAllVaultReplicasResponses(request) {
|
|
2651
2797
|
return oci_common_1.paginateResponses(request, req => this.listVaultReplicas(req));
|
|
2652
2798
|
}
|
|
2799
|
+
/**
|
|
2800
|
+
* Creates a new async iterator which will iterate over the models.VaultReplicaSummary objects
|
|
2801
|
+
* contained in responses from the listVaultReplicas operation. This iterator will fetch more data from the
|
|
2802
|
+
* server as needed.
|
|
2803
|
+
*
|
|
2804
|
+
* @param request a request which can be sent to the service operation
|
|
2805
|
+
*/
|
|
2806
|
+
listVaultReplicasRecordIterator(request) {
|
|
2807
|
+
return oci_common_1.paginateRecords(request, req => this.listVaultReplicas(req));
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Creates a new async iterator which will iterate over the responses received from the listVaultReplicas operation. This iterator
|
|
2811
|
+
* will fetch more data from the server as needed.
|
|
2812
|
+
*
|
|
2813
|
+
* @param request a request which can be sent to the service operation
|
|
2814
|
+
*/
|
|
2815
|
+
listVaultReplicasResponseIterator(request) {
|
|
2816
|
+
return oci_common_1.paginateResponses(request, req => this.listVaultReplicas(req));
|
|
2817
|
+
}
|
|
2653
2818
|
/**
|
|
2654
2819
|
* Lists the vaults in the specified compartment.
|
|
2655
2820
|
* <p>
|
|
@@ -2658,10 +2823,11 @@ class KmsVaultClient {
|
|
|
2658
2823
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2659
2824
|
* read operations exceeds 10 requests per second for a given tenancy.
|
|
2660
2825
|
*
|
|
2826
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2661
2827
|
* @param ListVaultsRequest
|
|
2662
2828
|
* @return ListVaultsResponse
|
|
2663
2829
|
* @throws OciError when an error occurs
|
|
2664
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ListVaults.ts.html |here} to see how to use ListVaults API.
|
|
2665
2831
|
*/
|
|
2666
2832
|
listVaults(listVaultsRequest) {
|
|
2667
2833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2679,7 +2845,8 @@ class KmsVaultClient {
|
|
|
2679
2845
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2680
2846
|
"opc-request-id": listVaultsRequest.opcRequestId
|
|
2681
2847
|
};
|
|
2682
|
-
const
|
|
2848
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2849
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultsRequest.retryConfiguration, specRetryConfiguration);
|
|
2683
2850
|
if (this.logger)
|
|
2684
2851
|
retrier.logger = this.logger;
|
|
2685
2852
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2720,6 +2887,7 @@ class KmsVaultClient {
|
|
|
2720
2887
|
});
|
|
2721
2888
|
}
|
|
2722
2889
|
/**
|
|
2890
|
+
* NOTE: This function is deprecated in favor of listVaultsRecordIterator function.
|
|
2723
2891
|
* Creates a new async iterator which will iterate over the models.VaultSummary objects
|
|
2724
2892
|
* contained in responses from the listVaults operation. This iterator will fetch more data from the
|
|
2725
2893
|
* server as needed.
|
|
@@ -2730,6 +2898,7 @@ class KmsVaultClient {
|
|
|
2730
2898
|
return oci_common_1.paginateRecords(request, req => this.listVaults(req));
|
|
2731
2899
|
}
|
|
2732
2900
|
/**
|
|
2901
|
+
* NOTE: This function is deprecated in favor of listVaultsResponseIterator function.
|
|
2733
2902
|
* Creates a new async iterator which will iterate over the responses received from the listVaults operation. This iterator
|
|
2734
2903
|
* will fetch more data from the server as needed.
|
|
2735
2904
|
*
|
|
@@ -2738,15 +2907,35 @@ class KmsVaultClient {
|
|
|
2738
2907
|
listAllVaultsResponses(request) {
|
|
2739
2908
|
return oci_common_1.paginateResponses(request, req => this.listVaults(req));
|
|
2740
2909
|
}
|
|
2910
|
+
/**
|
|
2911
|
+
* Creates a new async iterator which will iterate over the models.VaultSummary objects
|
|
2912
|
+
* contained in responses from the listVaults operation. This iterator will fetch more data from the
|
|
2913
|
+
* server as needed.
|
|
2914
|
+
*
|
|
2915
|
+
* @param request a request which can be sent to the service operation
|
|
2916
|
+
*/
|
|
2917
|
+
listVaultsRecordIterator(request) {
|
|
2918
|
+
return oci_common_1.paginateRecords(request, req => this.listVaults(req));
|
|
2919
|
+
}
|
|
2920
|
+
/**
|
|
2921
|
+
* Creates a new async iterator which will iterate over the responses received from the listVaults operation. This iterator
|
|
2922
|
+
* will fetch more data from the server as needed.
|
|
2923
|
+
*
|
|
2924
|
+
* @param request a request which can be sent to the service operation
|
|
2925
|
+
*/
|
|
2926
|
+
listVaultsResponseIterator(request) {
|
|
2927
|
+
return oci_common_1.paginateResponses(request, req => this.listVaults(req));
|
|
2928
|
+
}
|
|
2741
2929
|
/**
|
|
2742
2930
|
* Restores a vault from an encrypted backup file. If a vault
|
|
2743
2931
|
* with the same OCID already exists, this operation returns a response with a
|
|
2744
2932
|
* 409 HTTP status error code.
|
|
2745
2933
|
*
|
|
2934
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2746
2935
|
* @param RestoreVaultFromFileRequest
|
|
2747
2936
|
* @return RestoreVaultFromFileResponse
|
|
2748
2937
|
* @throws OciError when an error occurs
|
|
2749
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2938
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/RestoreVaultFromFile.ts.html |here} to see how to use RestoreVaultFromFile API.
|
|
2750
2939
|
*/
|
|
2751
2940
|
restoreVaultFromFile(restoreVaultFromFileRequest) {
|
|
2752
2941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2763,7 +2952,8 @@ class KmsVaultClient {
|
|
|
2763
2952
|
"opc-request-id": restoreVaultFromFileRequest.opcRequestId,
|
|
2764
2953
|
"opc-retry-token": restoreVaultFromFileRequest.opcRetryToken
|
|
2765
2954
|
};
|
|
2766
|
-
const
|
|
2955
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2956
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromFileRequest.retryConfiguration, specRetryConfiguration);
|
|
2767
2957
|
if (this.logger)
|
|
2768
2958
|
retrier.logger = this.logger;
|
|
2769
2959
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2820,10 +3010,11 @@ class KmsVaultClient {
|
|
|
2820
3010
|
* Storage. If a vault with the same OCID already exists, this operation returns
|
|
2821
3011
|
* a response with a 409 HTTP status error code.
|
|
2822
3012
|
*
|
|
3013
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2823
3014
|
* @param RestoreVaultFromObjectStoreRequest
|
|
2824
3015
|
* @return RestoreVaultFromObjectStoreResponse
|
|
2825
3016
|
* @throws OciError when an error occurs
|
|
2826
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3017
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/RestoreVaultFromObjectStore.ts.html |here} to see how to use RestoreVaultFromObjectStore API.
|
|
2827
3018
|
*/
|
|
2828
3019
|
restoreVaultFromObjectStore(restoreVaultFromObjectStoreRequest) {
|
|
2829
3020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2839,7 +3030,8 @@ class KmsVaultClient {
|
|
|
2839
3030
|
"opc-request-id": restoreVaultFromObjectStoreRequest.opcRequestId,
|
|
2840
3031
|
"opc-retry-token": restoreVaultFromObjectStoreRequest.opcRetryToken
|
|
2841
3032
|
};
|
|
2842
|
-
const
|
|
3033
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3034
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
|
|
2843
3035
|
if (this.logger)
|
|
2844
3036
|
retrier.logger = this.logger;
|
|
2845
3037
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2897,10 +3089,11 @@ class KmsVaultClient {
|
|
|
2897
3089
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2898
3090
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2899
3091
|
*
|
|
3092
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2900
3093
|
* @param ScheduleVaultDeletionRequest
|
|
2901
3094
|
* @return ScheduleVaultDeletionResponse
|
|
2902
3095
|
* @throws OciError when an error occurs
|
|
2903
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3096
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/ScheduleVaultDeletion.ts.html |here} to see how to use ScheduleVaultDeletion API.
|
|
2904
3097
|
*/
|
|
2905
3098
|
scheduleVaultDeletion(scheduleVaultDeletionRequest) {
|
|
2906
3099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2916,7 +3109,8 @@ class KmsVaultClient {
|
|
|
2916
3109
|
"opc-request-id": scheduleVaultDeletionRequest.opcRequestId,
|
|
2917
3110
|
"opc-retry-token": scheduleVaultDeletionRequest.opcRetryToken
|
|
2918
3111
|
};
|
|
2919
|
-
const
|
|
3112
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3113
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
2920
3114
|
if (this.logger)
|
|
2921
3115
|
retrier.logger = this.logger;
|
|
2922
3116
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2967,10 +3161,11 @@ class KmsVaultClient {
|
|
|
2967
3161
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2968
3162
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2969
3163
|
*
|
|
3164
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2970
3165
|
* @param UpdateVaultRequest
|
|
2971
3166
|
* @return UpdateVaultResponse
|
|
2972
3167
|
* @throws OciError when an error occurs
|
|
2973
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3168
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/keymanagement/UpdateVault.ts.html |here} to see how to use UpdateVault API.
|
|
2974
3169
|
*/
|
|
2975
3170
|
updateVault(updateVaultRequest) {
|
|
2976
3171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2985,7 +3180,8 @@ class KmsVaultClient {
|
|
|
2985
3180
|
"if-match": updateVaultRequest.ifMatch,
|
|
2986
3181
|
"opc-request-id": updateVaultRequest.opcRequestId
|
|
2987
3182
|
};
|
|
2988
|
-
const
|
|
3183
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3184
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2989
3185
|
if (this.logger)
|
|
2990
3186
|
retrier.logger = this.logger;
|
|
2991
3187
|
const request = yield oci_common_2.composeRequest({
|