oci-keymanagement 2.5.0 → 2.6.1
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 +91 -41
- package/lib/client.js +194 -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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({
|
|
@@ -1525,10 +1587,11 @@ class KmsManagementClient {
|
|
|
1525
1587
|
* otherwise valid request when the total rate of management read operations exceeds 10 requests per second
|
|
1526
1588
|
* for a given tenancy.
|
|
1527
1589
|
*
|
|
1590
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1528
1591
|
* @param ListKeysRequest
|
|
1529
1592
|
* @return ListKeysResponse
|
|
1530
1593
|
* @throws OciError when an error occurs
|
|
1531
|
-
* @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.1/keymanagement/ListKeys.ts.html |here} to see how to use ListKeys API.
|
|
1532
1595
|
*/
|
|
1533
1596
|
listKeys(listKeysRequest) {
|
|
1534
1597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1550,7 +1613,8 @@ class KmsManagementClient {
|
|
|
1550
1613
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1551
1614
|
"opc-request-id": listKeysRequest.opcRequestId
|
|
1552
1615
|
};
|
|
1553
|
-
const
|
|
1616
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1617
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeysRequest.retryConfiguration, specRetryConfiguration);
|
|
1554
1618
|
if (this.logger)
|
|
1555
1619
|
retrier.logger = this.logger;
|
|
1556
1620
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1635,10 +1699,11 @@ class KmsManagementClient {
|
|
|
1635
1699
|
* If the vault doesn't exist, the operation returns a response with a 404 HTTP status error code. You
|
|
1636
1700
|
* need to first restore the vault associated with the key.
|
|
1637
1701
|
*
|
|
1702
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1638
1703
|
* @param RestoreKeyFromFileRequest
|
|
1639
1704
|
* @return RestoreKeyFromFileResponse
|
|
1640
1705
|
* @throws OciError when an error occurs
|
|
1641
|
-
* @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.1/keymanagement/RestoreKeyFromFile.ts.html |here} to see how to use RestoreKeyFromFile API.
|
|
1642
1707
|
*/
|
|
1643
1708
|
restoreKeyFromFile(restoreKeyFromFileRequest) {
|
|
1644
1709
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1653,7 +1718,8 @@ class KmsManagementClient {
|
|
|
1653
1718
|
"opc-request-id": restoreKeyFromFileRequest.opcRequestId,
|
|
1654
1719
|
"opc-retry-token": restoreKeyFromFileRequest.opcRetryToken
|
|
1655
1720
|
};
|
|
1656
|
-
const
|
|
1721
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1722
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromFileRequest.retryConfiguration, specRetryConfiguration);
|
|
1657
1723
|
if (this.logger)
|
|
1658
1724
|
retrier.logger = this.logger;
|
|
1659
1725
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1710,10 +1776,11 @@ class KmsManagementClient {
|
|
|
1710
1776
|
* Object Storage location. If the vault doesn't exist, the operation returns a response with a
|
|
1711
1777
|
* 404 HTTP status error code. You need to first restore the vault associated with the key.
|
|
1712
1778
|
*
|
|
1779
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1713
1780
|
* @param RestoreKeyFromObjectStoreRequest
|
|
1714
1781
|
* @return RestoreKeyFromObjectStoreResponse
|
|
1715
1782
|
* @throws OciError when an error occurs
|
|
1716
|
-
* @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.1/keymanagement/RestoreKeyFromObjectStore.ts.html |here} to see how to use RestoreKeyFromObjectStore API.
|
|
1717
1784
|
*/
|
|
1718
1785
|
restoreKeyFromObjectStore(restoreKeyFromObjectStoreRequest) {
|
|
1719
1786
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1727,7 +1794,8 @@ class KmsManagementClient {
|
|
|
1727
1794
|
"opc-request-id": restoreKeyFromObjectStoreRequest.opcRequestId,
|
|
1728
1795
|
"opc-retry-token": restoreKeyFromObjectStoreRequest.opcRetryToken
|
|
1729
1796
|
};
|
|
1730
|
-
const
|
|
1797
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1798
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
|
|
1731
1799
|
if (this.logger)
|
|
1732
1800
|
retrier.logger = this.logger;
|
|
1733
1801
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1782,10 +1850,11 @@ class KmsManagementClient {
|
|
|
1782
1850
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
1783
1851
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
1784
1852
|
*
|
|
1853
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1785
1854
|
* @param ScheduleKeyDeletionRequest
|
|
1786
1855
|
* @return ScheduleKeyDeletionResponse
|
|
1787
1856
|
* @throws OciError when an error occurs
|
|
1788
|
-
* @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.1/keymanagement/ScheduleKeyDeletion.ts.html |here} to see how to use ScheduleKeyDeletion API.
|
|
1789
1858
|
*/
|
|
1790
1859
|
scheduleKeyDeletion(scheduleKeyDeletionRequest) {
|
|
1791
1860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1801,7 +1870,8 @@ class KmsManagementClient {
|
|
|
1801
1870
|
"opc-request-id": scheduleKeyDeletionRequest.opcRequestId,
|
|
1802
1871
|
"opc-retry-token": scheduleKeyDeletionRequest.opcRetryToken
|
|
1803
1872
|
};
|
|
1804
|
-
const
|
|
1873
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1874
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1805
1875
|
if (this.logger)
|
|
1806
1876
|
retrier.logger = this.logger;
|
|
1807
1877
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1851,10 +1921,11 @@ class KmsManagementClient {
|
|
|
1851
1921
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
1852
1922
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
1853
1923
|
*
|
|
1924
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1854
1925
|
* @param ScheduleKeyVersionDeletionRequest
|
|
1855
1926
|
* @return ScheduleKeyVersionDeletionResponse
|
|
1856
1927
|
* @throws OciError when an error occurs
|
|
1857
|
-
* @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.1/keymanagement/ScheduleKeyVersionDeletion.ts.html |here} to see how to use ScheduleKeyVersionDeletion API.
|
|
1858
1929
|
*/
|
|
1859
1930
|
scheduleKeyVersionDeletion(scheduleKeyVersionDeletionRequest) {
|
|
1860
1931
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1871,7 +1942,8 @@ class KmsManagementClient {
|
|
|
1871
1942
|
"opc-request-id": scheduleKeyVersionDeletionRequest.opcRequestId,
|
|
1872
1943
|
"opc-retry-token": scheduleKeyVersionDeletionRequest.opcRetryToken
|
|
1873
1944
|
};
|
|
1874
|
-
const
|
|
1945
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1946
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1875
1947
|
if (this.logger)
|
|
1876
1948
|
retrier.logger = this.logger;
|
|
1877
1949
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1922,10 +1994,11 @@ class KmsManagementClient {
|
|
|
1922
1994
|
* otherwise valid request when the total rate of management write operations exceeds 10 requests per second
|
|
1923
1995
|
* for a given tenancy.
|
|
1924
1996
|
*
|
|
1997
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1925
1998
|
* @param UpdateKeyRequest
|
|
1926
1999
|
* @return UpdateKeyResponse
|
|
1927
2000
|
* @throws OciError when an error occurs
|
|
1928
|
-
* @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.1/keymanagement/UpdateKey.ts.html |here} to see how to use UpdateKey API.
|
|
1929
2002
|
*/
|
|
1930
2003
|
updateKey(updateKeyRequest) {
|
|
1931
2004
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1940,7 +2013,8 @@ class KmsManagementClient {
|
|
|
1940
2013
|
"if-match": updateKeyRequest.ifMatch,
|
|
1941
2014
|
"opc-request-id": updateKeyRequest.opcRequestId
|
|
1942
2015
|
};
|
|
1943
|
-
const
|
|
2016
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2017
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
1944
2018
|
if (this.logger)
|
|
1945
2019
|
retrier.logger = this.logger;
|
|
1946
2020
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -1987,6 +2061,9 @@ KmsManagementClient.serviceEndpointTemplate = "https://kms.{region}.{secondLevel
|
|
|
1987
2061
|
var KmsVaultApiKeys;
|
|
1988
2062
|
(function (KmsVaultApiKeys) {
|
|
1989
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
|
+
*/
|
|
1990
2067
|
class KmsVaultClient {
|
|
1991
2068
|
constructor(params, clientConfiguration) {
|
|
1992
2069
|
this["_endpoint"] = "";
|
|
@@ -2001,6 +2078,13 @@ class KmsVaultClient {
|
|
|
2001
2078
|
? clientConfiguration.circuitBreaker.circuit
|
|
2002
2079
|
: null;
|
|
2003
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
|
+
}
|
|
2004
2088
|
this._httpClient =
|
|
2005
2089
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
2006
2090
|
if (params.authenticationDetailsProvider &&
|
|
@@ -2074,10 +2158,11 @@ class KmsVaultClient {
|
|
|
2074
2158
|
* You can backup a vault whether or not it contains keys. This operation only backs up the
|
|
2075
2159
|
* metadata of the vault, and does not include key metadata.
|
|
2076
2160
|
*
|
|
2161
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2077
2162
|
* @param BackupVaultRequest
|
|
2078
2163
|
* @return BackupVaultResponse
|
|
2079
2164
|
* @throws OciError when an error occurs
|
|
2080
|
-
* @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.1/keymanagement/BackupVault.ts.html |here} to see how to use BackupVault API.
|
|
2081
2166
|
*/
|
|
2082
2167
|
backupVault(backupVaultRequest) {
|
|
2083
2168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2093,7 +2178,8 @@ class KmsVaultClient {
|
|
|
2093
2178
|
"opc-request-id": backupVaultRequest.opcRequestId,
|
|
2094
2179
|
"opc-retry-token": backupVaultRequest.opcRetryToken
|
|
2095
2180
|
};
|
|
2096
|
-
const
|
|
2181
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2182
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2097
2183
|
if (this.logger)
|
|
2098
2184
|
retrier.logger = this.logger;
|
|
2099
2185
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2150,10 +2236,11 @@ class KmsVaultClient {
|
|
|
2150
2236
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2151
2237
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2152
2238
|
*
|
|
2239
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2153
2240
|
* @param CancelVaultDeletionRequest
|
|
2154
2241
|
* @return CancelVaultDeletionResponse
|
|
2155
2242
|
* @throws OciError when an error occurs
|
|
2156
|
-
* @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.1/keymanagement/CancelVaultDeletion.ts.html |here} to see how to use CancelVaultDeletion API.
|
|
2157
2244
|
*/
|
|
2158
2245
|
cancelVaultDeletion(cancelVaultDeletionRequest) {
|
|
2159
2246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2169,7 +2256,8 @@ class KmsVaultClient {
|
|
|
2169
2256
|
"opc-request-id": cancelVaultDeletionRequest.opcRequestId,
|
|
2170
2257
|
"opc-retry-token": cancelVaultDeletionRequest.opcRetryToken
|
|
2171
2258
|
};
|
|
2172
|
-
const
|
|
2259
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2260
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
2173
2261
|
if (this.logger)
|
|
2174
2262
|
retrier.logger = this.logger;
|
|
2175
2263
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2220,10 +2308,11 @@ class KmsVaultClient {
|
|
|
2220
2308
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2221
2309
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2222
2310
|
*
|
|
2311
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2223
2312
|
* @param ChangeVaultCompartmentRequest
|
|
2224
2313
|
* @return ChangeVaultCompartmentResponse
|
|
2225
2314
|
* @throws OciError when an error occurs
|
|
2226
|
-
* @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.1/keymanagement/ChangeVaultCompartment.ts.html |here} to see how to use ChangeVaultCompartment API.
|
|
2227
2316
|
*/
|
|
2228
2317
|
changeVaultCompartment(changeVaultCompartmentRequest) {
|
|
2229
2318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2239,7 +2328,8 @@ class KmsVaultClient {
|
|
|
2239
2328
|
"opc-request-id": changeVaultCompartmentRequest.opcRequestId,
|
|
2240
2329
|
"opc-retry-token": changeVaultCompartmentRequest.opcRetryToken
|
|
2241
2330
|
};
|
|
2242
|
-
const
|
|
2331
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2332
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeVaultCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2243
2333
|
if (this.logger)
|
|
2244
2334
|
retrier.logger = this.logger;
|
|
2245
2335
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2287,10 +2377,11 @@ class KmsVaultClient {
|
|
|
2287
2377
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2288
2378
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2289
2379
|
*
|
|
2380
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2290
2381
|
* @param CreateVaultRequest
|
|
2291
2382
|
* @return CreateVaultResponse
|
|
2292
2383
|
* @throws OciError when an error occurs
|
|
2293
|
-
* @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.1/keymanagement/CreateVault.ts.html |here} to see how to use CreateVault API.
|
|
2294
2385
|
*/
|
|
2295
2386
|
createVault(createVaultRequest) {
|
|
2296
2387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2303,7 +2394,8 @@ class KmsVaultClient {
|
|
|
2303
2394
|
"opc-request-id": createVaultRequest.opcRequestId,
|
|
2304
2395
|
"opc-retry-token": createVaultRequest.opcRetryToken
|
|
2305
2396
|
};
|
|
2306
|
-
const
|
|
2397
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2398
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2307
2399
|
if (this.logger)
|
|
2308
2400
|
retrier.logger = this.logger;
|
|
2309
2401
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2356,10 +2448,11 @@ class KmsVaultClient {
|
|
|
2356
2448
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2357
2449
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2358
2450
|
*
|
|
2451
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2359
2452
|
* @param CreateVaultReplicaRequest
|
|
2360
2453
|
* @return CreateVaultReplicaResponse
|
|
2361
2454
|
* @throws OciError when an error occurs
|
|
2362
|
-
* @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.1/keymanagement/CreateVaultReplica.ts.html |here} to see how to use CreateVaultReplica API.
|
|
2363
2456
|
*/
|
|
2364
2457
|
createVaultReplica(createVaultReplicaRequest) {
|
|
2365
2458
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2375,7 +2468,8 @@ class KmsVaultClient {
|
|
|
2375
2468
|
"opc-request-id": createVaultReplicaRequest.opcRequestId,
|
|
2376
2469
|
"opc-retry-token": createVaultReplicaRequest.opcRetryToken
|
|
2377
2470
|
};
|
|
2378
|
-
const
|
|
2471
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2472
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
2379
2473
|
if (this.logger)
|
|
2380
2474
|
retrier.logger = this.logger;
|
|
2381
2475
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2420,10 +2514,11 @@ class KmsVaultClient {
|
|
|
2420
2514
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2421
2515
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2422
2516
|
*
|
|
2517
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2423
2518
|
* @param DeleteVaultReplicaRequest
|
|
2424
2519
|
* @return DeleteVaultReplicaResponse
|
|
2425
2520
|
* @throws OciError when an error occurs
|
|
2426
|
-
* @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.1/keymanagement/DeleteVaultReplica.ts.html |here} to see how to use DeleteVaultReplica API.
|
|
2427
2522
|
*/
|
|
2428
2523
|
deleteVaultReplica(deleteVaultReplicaRequest) {
|
|
2429
2524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2439,7 +2534,8 @@ class KmsVaultClient {
|
|
|
2439
2534
|
"opc-request-id": deleteVaultReplicaRequest.opcRequestId,
|
|
2440
2535
|
"opc-retry-token": deleteVaultReplicaRequest.opcRetryToken
|
|
2441
2536
|
};
|
|
2442
|
-
const
|
|
2537
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2538
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
2443
2539
|
if (this.logger)
|
|
2444
2540
|
retrier.logger = this.logger;
|
|
2445
2541
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2484,10 +2580,11 @@ class KmsVaultClient {
|
|
|
2484
2580
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2485
2581
|
* read operations exceeds 10 requests per second for a given tenancy.
|
|
2486
2582
|
*
|
|
2583
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2487
2584
|
* @param GetVaultRequest
|
|
2488
2585
|
* @return GetVaultResponse
|
|
2489
2586
|
* @throws OciError when an error occurs
|
|
2490
|
-
* @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.1/keymanagement/GetVault.ts.html |here} to see how to use GetVault API.
|
|
2491
2588
|
*/
|
|
2492
2589
|
getVault(getVaultRequest) {
|
|
2493
2590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2501,7 +2598,8 @@ class KmsVaultClient {
|
|
|
2501
2598
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2502
2599
|
"opc-request-id": getVaultRequest.opcRequestId
|
|
2503
2600
|
};
|
|
2504
|
-
const
|
|
2601
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2602
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2505
2603
|
if (this.logger)
|
|
2506
2604
|
retrier.logger = this.logger;
|
|
2507
2605
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2544,10 +2642,11 @@ class KmsVaultClient {
|
|
|
2544
2642
|
/**
|
|
2545
2643
|
* Gets the count of keys and key versions in the specified vault to calculate usage against service limits.
|
|
2546
2644
|
*
|
|
2645
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2547
2646
|
* @param GetVaultUsageRequest
|
|
2548
2647
|
* @return GetVaultUsageResponse
|
|
2549
2648
|
* @throws OciError when an error occurs
|
|
2550
|
-
* @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.1/keymanagement/GetVaultUsage.ts.html |here} to see how to use GetVaultUsage API.
|
|
2551
2650
|
*/
|
|
2552
2651
|
getVaultUsage(getVaultUsageRequest) {
|
|
2553
2652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2561,7 +2660,8 @@ class KmsVaultClient {
|
|
|
2561
2660
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2562
2661
|
"opc-request-id": getVaultUsageRequest.opcRequestId
|
|
2563
2662
|
};
|
|
2564
|
-
const
|
|
2663
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2664
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultUsageRequest.retryConfiguration, specRetryConfiguration);
|
|
2565
2665
|
if (this.logger)
|
|
2566
2666
|
retrier.logger = this.logger;
|
|
2567
2667
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2604,10 +2704,11 @@ class KmsVaultClient {
|
|
|
2604
2704
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2605
2705
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2606
2706
|
*
|
|
2707
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2607
2708
|
* @param ListVaultReplicasRequest
|
|
2608
2709
|
* @return ListVaultReplicasResponse
|
|
2609
2710
|
* @throws OciError when an error occurs
|
|
2610
|
-
* @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.1/keymanagement/ListVaultReplicas.ts.html |here} to see how to use ListVaultReplicas API.
|
|
2611
2712
|
*/
|
|
2612
2713
|
listVaultReplicas(listVaultReplicasRequest) {
|
|
2613
2714
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2628,7 +2729,8 @@ class KmsVaultClient {
|
|
|
2628
2729
|
"opc-request-id": listVaultReplicasRequest.opcRequestId,
|
|
2629
2730
|
"opc-retry-token": listVaultReplicasRequest.opcRetryToken
|
|
2630
2731
|
};
|
|
2631
|
-
const
|
|
2732
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2733
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultReplicasRequest.retryConfiguration, specRetryConfiguration);
|
|
2632
2734
|
if (this.logger)
|
|
2633
2735
|
retrier.logger = this.logger;
|
|
2634
2736
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2721,10 +2823,11 @@ class KmsVaultClient {
|
|
|
2721
2823
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2722
2824
|
* read operations exceeds 10 requests per second for a given tenancy.
|
|
2723
2825
|
*
|
|
2826
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2724
2827
|
* @param ListVaultsRequest
|
|
2725
2828
|
* @return ListVaultsResponse
|
|
2726
2829
|
* @throws OciError when an error occurs
|
|
2727
|
-
* @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.1/keymanagement/ListVaults.ts.html |here} to see how to use ListVaults API.
|
|
2728
2831
|
*/
|
|
2729
2832
|
listVaults(listVaultsRequest) {
|
|
2730
2833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2742,7 +2845,8 @@ class KmsVaultClient {
|
|
|
2742
2845
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2743
2846
|
"opc-request-id": listVaultsRequest.opcRequestId
|
|
2744
2847
|
};
|
|
2745
|
-
const
|
|
2848
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2849
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultsRequest.retryConfiguration, specRetryConfiguration);
|
|
2746
2850
|
if (this.logger)
|
|
2747
2851
|
retrier.logger = this.logger;
|
|
2748
2852
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2827,10 +2931,11 @@ class KmsVaultClient {
|
|
|
2827
2931
|
* with the same OCID already exists, this operation returns a response with a
|
|
2828
2932
|
* 409 HTTP status error code.
|
|
2829
2933
|
*
|
|
2934
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2830
2935
|
* @param RestoreVaultFromFileRequest
|
|
2831
2936
|
* @return RestoreVaultFromFileResponse
|
|
2832
2937
|
* @throws OciError when an error occurs
|
|
2833
|
-
* @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.1/keymanagement/RestoreVaultFromFile.ts.html |here} to see how to use RestoreVaultFromFile API.
|
|
2834
2939
|
*/
|
|
2835
2940
|
restoreVaultFromFile(restoreVaultFromFileRequest) {
|
|
2836
2941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2847,7 +2952,8 @@ class KmsVaultClient {
|
|
|
2847
2952
|
"opc-request-id": restoreVaultFromFileRequest.opcRequestId,
|
|
2848
2953
|
"opc-retry-token": restoreVaultFromFileRequest.opcRetryToken
|
|
2849
2954
|
};
|
|
2850
|
-
const
|
|
2955
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2956
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromFileRequest.retryConfiguration, specRetryConfiguration);
|
|
2851
2957
|
if (this.logger)
|
|
2852
2958
|
retrier.logger = this.logger;
|
|
2853
2959
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2904,10 +3010,11 @@ class KmsVaultClient {
|
|
|
2904
3010
|
* Storage. If a vault with the same OCID already exists, this operation returns
|
|
2905
3011
|
* a response with a 409 HTTP status error code.
|
|
2906
3012
|
*
|
|
3013
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2907
3014
|
* @param RestoreVaultFromObjectStoreRequest
|
|
2908
3015
|
* @return RestoreVaultFromObjectStoreResponse
|
|
2909
3016
|
* @throws OciError when an error occurs
|
|
2910
|
-
* @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.1/keymanagement/RestoreVaultFromObjectStore.ts.html |here} to see how to use RestoreVaultFromObjectStore API.
|
|
2911
3018
|
*/
|
|
2912
3019
|
restoreVaultFromObjectStore(restoreVaultFromObjectStoreRequest) {
|
|
2913
3020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2923,7 +3030,8 @@ class KmsVaultClient {
|
|
|
2923
3030
|
"opc-request-id": restoreVaultFromObjectStoreRequest.opcRequestId,
|
|
2924
3031
|
"opc-retry-token": restoreVaultFromObjectStoreRequest.opcRetryToken
|
|
2925
3032
|
};
|
|
2926
|
-
const
|
|
3033
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3034
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
|
|
2927
3035
|
if (this.logger)
|
|
2928
3036
|
retrier.logger = this.logger;
|
|
2929
3037
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -2981,10 +3089,11 @@ class KmsVaultClient {
|
|
|
2981
3089
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
2982
3090
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
2983
3091
|
*
|
|
3092
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2984
3093
|
* @param ScheduleVaultDeletionRequest
|
|
2985
3094
|
* @return ScheduleVaultDeletionResponse
|
|
2986
3095
|
* @throws OciError when an error occurs
|
|
2987
|
-
* @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.1/keymanagement/ScheduleVaultDeletion.ts.html |here} to see how to use ScheduleVaultDeletion API.
|
|
2988
3097
|
*/
|
|
2989
3098
|
scheduleVaultDeletion(scheduleVaultDeletionRequest) {
|
|
2990
3099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3000,7 +3109,8 @@ class KmsVaultClient {
|
|
|
3000
3109
|
"opc-request-id": scheduleVaultDeletionRequest.opcRequestId,
|
|
3001
3110
|
"opc-retry-token": scheduleVaultDeletionRequest.opcRetryToken
|
|
3002
3111
|
};
|
|
3003
|
-
const
|
|
3112
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3113
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
3004
3114
|
if (this.logger)
|
|
3005
3115
|
retrier.logger = this.logger;
|
|
3006
3116
|
const request = yield oci_common_2.composeRequest({
|
|
@@ -3051,10 +3161,11 @@ class KmsVaultClient {
|
|
|
3051
3161
|
* throttle this call to reject an otherwise valid request when the total rate of provisioning
|
|
3052
3162
|
* write operations exceeds 10 requests per second for a given tenancy.
|
|
3053
3163
|
*
|
|
3164
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3054
3165
|
* @param UpdateVaultRequest
|
|
3055
3166
|
* @return UpdateVaultResponse
|
|
3056
3167
|
* @throws OciError when an error occurs
|
|
3057
|
-
* @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.1/keymanagement/UpdateVault.ts.html |here} to see how to use UpdateVault API.
|
|
3058
3169
|
*/
|
|
3059
3170
|
updateVault(updateVaultRequest) {
|
|
3060
3171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3069,7 +3180,8 @@ class KmsVaultClient {
|
|
|
3069
3180
|
"if-match": updateVaultRequest.ifMatch,
|
|
3070
3181
|
"opc-request-id": updateVaultRequest.opcRequestId
|
|
3071
3182
|
};
|
|
3072
|
-
const
|
|
3183
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3184
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3073
3185
|
if (this.logger)
|
|
3074
3186
|
retrier.logger = this.logger;
|
|
3075
3187
|
const request = yield oci_common_2.composeRequest({
|