oci-keymanagement 2.79.1 → 2.80.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/lib/client.d.ts +68 -63
- package/lib/client.js +330 -131
- package/lib/client.js.map +1 -1
- package/lib/model/backup-location.js +4 -2
- package/lib/model/backup-location.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-hsm-cluster-deletion-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-hsm-cluster-compartment-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-ekms-private-endpoint-request.d.ts +1 -1
- package/lib/request/create-hsm-cluster-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-ekms-private-endpoint-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/download-certificate-signing-request-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-ekms-private-endpoint-request.d.ts +1 -1
- package/lib/request/get-hsm-cluster-request.d.ts +1 -1
- package/lib/request/get-hsm-partition-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-pre-co-user-credentials-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-ekms-private-endpoints-request.d.ts +1 -1
- package/lib/request/list-hsm-clusters-request.d.ts +1 -1
- package/lib/request/list-hsm-partitions-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-hsm-cluster-deletion-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-ekms-private-endpoint-request.d.ts +1 -1
- package/lib/request/update-hsm-cluster-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/upload-partition-certificates-request.d.ts +1 -1
- package/lib/request/verify-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -62,7 +62,7 @@ var EkmApiKeys;
|
|
|
62
62
|
*/
|
|
63
63
|
class EkmClient {
|
|
64
64
|
constructor(params, clientConfiguration) {
|
|
65
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
65
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
66
66
|
this["_endpoint"] = "";
|
|
67
67
|
this["_defaultHeaders"] = {};
|
|
68
68
|
this._circuitBreaker = null;
|
|
@@ -120,7 +120,11 @@ class EkmClient {
|
|
|
120
120
|
*/
|
|
121
121
|
set endpoint(endpoint) {
|
|
122
122
|
this._endpoint = endpoint;
|
|
123
|
-
|
|
123
|
+
if (this.logger)
|
|
124
|
+
this.logger.info(`EkmClient endpoint set to ${this._endpoint}`);
|
|
125
|
+
}
|
|
126
|
+
get logger() {
|
|
127
|
+
return common.LOG.logger;
|
|
124
128
|
}
|
|
125
129
|
/**
|
|
126
130
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -129,7 +133,8 @@ class EkmClient {
|
|
|
129
133
|
*/
|
|
130
134
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
131
135
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
132
|
-
|
|
136
|
+
if (this.logger)
|
|
137
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
133
138
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
134
139
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(EkmClient.serviceEndpointTemplate, this._region, EkmClient.endpointServiceName);
|
|
135
140
|
}
|
|
@@ -195,11 +200,12 @@ class EkmClient {
|
|
|
195
200
|
* @param CreateEkmsPrivateEndpointRequest
|
|
196
201
|
* @return CreateEkmsPrivateEndpointResponse
|
|
197
202
|
* @throws OciError when an error occurs
|
|
198
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
203
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CreateEkmsPrivateEndpoint.ts.html |here} to see how to use CreateEkmsPrivateEndpoint API.
|
|
199
204
|
*/
|
|
200
205
|
createEkmsPrivateEndpoint(createEkmsPrivateEndpointRequest) {
|
|
201
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
|
|
207
|
+
if (this.logger)
|
|
208
|
+
this.logger.debug("Calling operation EkmClient#createEkmsPrivateEndpoint.");
|
|
203
209
|
const operationName = "createEkmsPrivateEndpoint";
|
|
204
210
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/CreateEkmsPrivateEndpoint";
|
|
205
211
|
const pathParams = {};
|
|
@@ -211,6 +217,8 @@ class EkmClient {
|
|
|
211
217
|
};
|
|
212
218
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
213
219
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
220
|
+
if (this.logger)
|
|
221
|
+
retrier.logger = this.logger;
|
|
214
222
|
const request = yield oci_common_2.composeRequest({
|
|
215
223
|
baseEndpoint: this._endpoint,
|
|
216
224
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -260,11 +268,12 @@ class EkmClient {
|
|
|
260
268
|
* @param DeleteEkmsPrivateEndpointRequest
|
|
261
269
|
* @return DeleteEkmsPrivateEndpointResponse
|
|
262
270
|
* @throws OciError when an error occurs
|
|
263
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/DeleteEkmsPrivateEndpoint.ts.html |here} to see how to use DeleteEkmsPrivateEndpoint API.
|
|
264
272
|
*/
|
|
265
273
|
deleteEkmsPrivateEndpoint(deleteEkmsPrivateEndpointRequest) {
|
|
266
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
-
|
|
275
|
+
if (this.logger)
|
|
276
|
+
this.logger.debug("Calling operation EkmClient#deleteEkmsPrivateEndpoint.");
|
|
268
277
|
const operationName = "deleteEkmsPrivateEndpoint";
|
|
269
278
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/DeleteEkmsPrivateEndpoint";
|
|
270
279
|
const pathParams = {
|
|
@@ -278,6 +287,8 @@ class EkmClient {
|
|
|
278
287
|
};
|
|
279
288
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
280
289
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
290
|
+
if (this.logger)
|
|
291
|
+
retrier.logger = this.logger;
|
|
281
292
|
const request = yield oci_common_2.composeRequest({
|
|
282
293
|
baseEndpoint: this._endpoint,
|
|
283
294
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -317,11 +328,12 @@ class EkmClient {
|
|
|
317
328
|
* @param GetEkmsPrivateEndpointRequest
|
|
318
329
|
* @return GetEkmsPrivateEndpointResponse
|
|
319
330
|
* @throws OciError when an error occurs
|
|
320
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
331
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetEkmsPrivateEndpoint.ts.html |here} to see how to use GetEkmsPrivateEndpoint API.
|
|
321
332
|
*/
|
|
322
333
|
getEkmsPrivateEndpoint(getEkmsPrivateEndpointRequest) {
|
|
323
334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
|
|
335
|
+
if (this.logger)
|
|
336
|
+
this.logger.debug("Calling operation EkmClient#getEkmsPrivateEndpoint.");
|
|
325
337
|
const operationName = "getEkmsPrivateEndpoint";
|
|
326
338
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/GetEkmsPrivateEndpoint";
|
|
327
339
|
const pathParams = {
|
|
@@ -334,6 +346,8 @@ class EkmClient {
|
|
|
334
346
|
};
|
|
335
347
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
336
348
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
349
|
+
if (this.logger)
|
|
350
|
+
retrier.logger = this.logger;
|
|
337
351
|
const request = yield oci_common_2.composeRequest({
|
|
338
352
|
baseEndpoint: this._endpoint,
|
|
339
353
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -378,11 +392,12 @@ class EkmClient {
|
|
|
378
392
|
* @param ListEkmsPrivateEndpointsRequest
|
|
379
393
|
* @return ListEkmsPrivateEndpointsResponse
|
|
380
394
|
* @throws OciError when an error occurs
|
|
381
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
395
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ListEkmsPrivateEndpoints.ts.html |here} to see how to use ListEkmsPrivateEndpoints API.
|
|
382
396
|
*/
|
|
383
397
|
listEkmsPrivateEndpoints(listEkmsPrivateEndpointsRequest) {
|
|
384
398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
-
|
|
399
|
+
if (this.logger)
|
|
400
|
+
this.logger.debug("Calling operation EkmClient#listEkmsPrivateEndpoints.");
|
|
386
401
|
const operationName = "listEkmsPrivateEndpoints";
|
|
387
402
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpointSummary/ListEkmsPrivateEndpoints";
|
|
388
403
|
const pathParams = {};
|
|
@@ -399,6 +414,8 @@ class EkmClient {
|
|
|
399
414
|
};
|
|
400
415
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
401
416
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEkmsPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
417
|
+
if (this.logger)
|
|
418
|
+
retrier.logger = this.logger;
|
|
402
419
|
const request = yield oci_common_2.composeRequest({
|
|
403
420
|
baseEndpoint: this._endpoint,
|
|
404
421
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -482,11 +499,12 @@ class EkmClient {
|
|
|
482
499
|
* @param UpdateEkmsPrivateEndpointRequest
|
|
483
500
|
* @return UpdateEkmsPrivateEndpointResponse
|
|
484
501
|
* @throws OciError when an error occurs
|
|
485
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
502
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/UpdateEkmsPrivateEndpoint.ts.html |here} to see how to use UpdateEkmsPrivateEndpoint API.
|
|
486
503
|
*/
|
|
487
504
|
updateEkmsPrivateEndpoint(updateEkmsPrivateEndpointRequest) {
|
|
488
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
-
|
|
506
|
+
if (this.logger)
|
|
507
|
+
this.logger.debug("Calling operation EkmClient#updateEkmsPrivateEndpoint.");
|
|
490
508
|
const operationName = "updateEkmsPrivateEndpoint";
|
|
491
509
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/UpdateEkmsPrivateEndpoint";
|
|
492
510
|
const pathParams = {
|
|
@@ -500,6 +518,8 @@ class EkmClient {
|
|
|
500
518
|
};
|
|
501
519
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
502
520
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
521
|
+
if (this.logger)
|
|
522
|
+
retrier.logger = this.logger;
|
|
503
523
|
const request = yield oci_common_2.composeRequest({
|
|
504
524
|
baseEndpoint: this._endpoint,
|
|
505
525
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -550,7 +570,7 @@ var KmsCryptoApiKeys;
|
|
|
550
570
|
*/
|
|
551
571
|
class KmsCryptoClient {
|
|
552
572
|
constructor(params, clientConfiguration) {
|
|
553
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
573
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
554
574
|
this["_endpoint"] = "";
|
|
555
575
|
this["_defaultHeaders"] = {};
|
|
556
576
|
this._circuitBreaker = null;
|
|
@@ -599,7 +619,11 @@ class KmsCryptoClient {
|
|
|
599
619
|
*/
|
|
600
620
|
set endpoint(endpoint) {
|
|
601
621
|
this._endpoint = endpoint;
|
|
602
|
-
|
|
622
|
+
if (this.logger)
|
|
623
|
+
this.logger.info(`KmsCryptoClient endpoint set to ${this._endpoint}`);
|
|
624
|
+
}
|
|
625
|
+
get logger() {
|
|
626
|
+
return common.LOG.logger;
|
|
603
627
|
}
|
|
604
628
|
/**
|
|
605
629
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -608,7 +632,8 @@ class KmsCryptoClient {
|
|
|
608
632
|
*/
|
|
609
633
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
610
634
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
611
|
-
|
|
635
|
+
if (this.logger)
|
|
636
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
612
637
|
}
|
|
613
638
|
/**
|
|
614
639
|
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
@@ -625,11 +650,12 @@ class KmsCryptoClient {
|
|
|
625
650
|
* @param DecryptRequest
|
|
626
651
|
* @return DecryptResponse
|
|
627
652
|
* @throws OciError when an error occurs
|
|
628
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
653
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/Decrypt.ts.html |here} to see how to use Decrypt API.
|
|
629
654
|
*/
|
|
630
655
|
decrypt(decryptRequest) {
|
|
631
656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
-
|
|
657
|
+
if (this.logger)
|
|
658
|
+
this.logger.debug("Calling operation KmsCryptoClient#decrypt.");
|
|
633
659
|
const operationName = "decrypt";
|
|
634
660
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/DecryptedData/Decrypt";
|
|
635
661
|
const pathParams = {};
|
|
@@ -640,6 +666,8 @@ class KmsCryptoClient {
|
|
|
640
666
|
};
|
|
641
667
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
642
668
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, decryptRequest.retryConfiguration, specRetryConfiguration);
|
|
669
|
+
if (this.logger)
|
|
670
|
+
retrier.logger = this.logger;
|
|
643
671
|
const request = yield oci_common_2.composeRequest({
|
|
644
672
|
baseEndpoint: this._endpoint,
|
|
645
673
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -681,11 +709,12 @@ class KmsCryptoClient {
|
|
|
681
709
|
* @param EncryptRequest
|
|
682
710
|
* @return EncryptResponse
|
|
683
711
|
* @throws OciError when an error occurs
|
|
684
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
712
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/Encrypt.ts.html |here} to see how to use Encrypt API.
|
|
685
713
|
*/
|
|
686
714
|
encrypt(encryptRequest) {
|
|
687
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
-
|
|
716
|
+
if (this.logger)
|
|
717
|
+
this.logger.debug("Calling operation KmsCryptoClient#encrypt.");
|
|
689
718
|
const operationName = "encrypt";
|
|
690
719
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EncryptedData/Encrypt";
|
|
691
720
|
const pathParams = {};
|
|
@@ -696,6 +725,8 @@ class KmsCryptoClient {
|
|
|
696
725
|
};
|
|
697
726
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
698
727
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, encryptRequest.retryConfiguration, specRetryConfiguration);
|
|
728
|
+
if (this.logger)
|
|
729
|
+
retrier.logger = this.logger;
|
|
699
730
|
const request = yield oci_common_2.composeRequest({
|
|
700
731
|
baseEndpoint: this._endpoint,
|
|
701
732
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -739,11 +770,12 @@ class KmsCryptoClient {
|
|
|
739
770
|
* @param ExportKeyRequest
|
|
740
771
|
* @return ExportKeyResponse
|
|
741
772
|
* @throws OciError when an error occurs
|
|
742
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
773
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ExportKey.ts.html |here} to see how to use ExportKey API.
|
|
743
774
|
*/
|
|
744
775
|
exportKey(exportKeyRequest) {
|
|
745
776
|
return __awaiter(this, void 0, void 0, function* () {
|
|
746
|
-
|
|
777
|
+
if (this.logger)
|
|
778
|
+
this.logger.debug("Calling operation KmsCryptoClient#exportKey.");
|
|
747
779
|
const operationName = "exportKey";
|
|
748
780
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/ExportedKeyData/ExportKey";
|
|
749
781
|
const pathParams = {};
|
|
@@ -753,6 +785,8 @@ class KmsCryptoClient {
|
|
|
753
785
|
};
|
|
754
786
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
755
787
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
788
|
+
if (this.logger)
|
|
789
|
+
retrier.logger = this.logger;
|
|
756
790
|
const request = yield oci_common_2.composeRequest({
|
|
757
791
|
baseEndpoint: this._endpoint,
|
|
758
792
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -793,11 +827,12 @@ class KmsCryptoClient {
|
|
|
793
827
|
* @param GenerateDataEncryptionKeyRequest
|
|
794
828
|
* @return GenerateDataEncryptionKeyResponse
|
|
795
829
|
* @throws OciError when an error occurs
|
|
796
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GenerateDataEncryptionKey.ts.html |here} to see how to use GenerateDataEncryptionKey API.
|
|
797
831
|
*/
|
|
798
832
|
generateDataEncryptionKey(generateDataEncryptionKeyRequest) {
|
|
799
833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
-
|
|
834
|
+
if (this.logger)
|
|
835
|
+
this.logger.debug("Calling operation KmsCryptoClient#generateDataEncryptionKey.");
|
|
801
836
|
const operationName = "generateDataEncryptionKey";
|
|
802
837
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/GeneratedKey/GenerateDataEncryptionKey";
|
|
803
838
|
const pathParams = {};
|
|
@@ -808,6 +843,8 @@ class KmsCryptoClient {
|
|
|
808
843
|
};
|
|
809
844
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
810
845
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDataEncryptionKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
846
|
+
if (this.logger)
|
|
847
|
+
retrier.logger = this.logger;
|
|
811
848
|
const request = yield oci_common_2.composeRequest({
|
|
812
849
|
baseEndpoint: this._endpoint,
|
|
813
850
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -851,11 +888,12 @@ class KmsCryptoClient {
|
|
|
851
888
|
* @param SignRequest
|
|
852
889
|
* @return SignResponse
|
|
853
890
|
* @throws OciError when an error occurs
|
|
854
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
891
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/Sign.ts.html |here} to see how to use Sign API.
|
|
855
892
|
*/
|
|
856
893
|
sign(signRequest) {
|
|
857
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
858
|
-
|
|
895
|
+
if (this.logger)
|
|
896
|
+
this.logger.debug("Calling operation KmsCryptoClient#sign.");
|
|
859
897
|
const operationName = "sign";
|
|
860
898
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/SignedData/Sign";
|
|
861
899
|
const pathParams = {};
|
|
@@ -866,6 +904,8 @@ class KmsCryptoClient {
|
|
|
866
904
|
};
|
|
867
905
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
868
906
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, signRequest.retryConfiguration, specRetryConfiguration);
|
|
907
|
+
if (this.logger)
|
|
908
|
+
retrier.logger = this.logger;
|
|
869
909
|
const request = yield oci_common_2.composeRequest({
|
|
870
910
|
baseEndpoint: this._endpoint,
|
|
871
911
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -909,11 +949,12 @@ class KmsCryptoClient {
|
|
|
909
949
|
* @param VerifyRequest
|
|
910
950
|
* @return VerifyResponse
|
|
911
951
|
* @throws OciError when an error occurs
|
|
912
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
952
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/Verify.ts.html |here} to see how to use Verify API.
|
|
913
953
|
*/
|
|
914
954
|
verify(verifyRequest) {
|
|
915
955
|
return __awaiter(this, void 0, void 0, function* () {
|
|
916
|
-
|
|
956
|
+
if (this.logger)
|
|
957
|
+
this.logger.debug("Calling operation KmsCryptoClient#verify.");
|
|
917
958
|
const operationName = "verify";
|
|
918
959
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VerifiedData/Verify";
|
|
919
960
|
const pathParams = {};
|
|
@@ -924,6 +965,8 @@ class KmsCryptoClient {
|
|
|
924
965
|
};
|
|
925
966
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
926
967
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, verifyRequest.retryConfiguration, specRetryConfiguration);
|
|
968
|
+
if (this.logger)
|
|
969
|
+
retrier.logger = this.logger;
|
|
927
970
|
const request = yield oci_common_2.composeRequest({
|
|
928
971
|
baseEndpoint: this._endpoint,
|
|
929
972
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -969,7 +1012,7 @@ var KmsHsmClusterApiKeys;
|
|
|
969
1012
|
*/
|
|
970
1013
|
class KmsHsmClusterClient {
|
|
971
1014
|
constructor(params, clientConfiguration) {
|
|
972
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
1015
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
973
1016
|
this["_endpoint"] = "";
|
|
974
1017
|
this["_defaultHeaders"] = {};
|
|
975
1018
|
this._circuitBreaker = null;
|
|
@@ -1027,7 +1070,11 @@ class KmsHsmClusterClient {
|
|
|
1027
1070
|
*/
|
|
1028
1071
|
set endpoint(endpoint) {
|
|
1029
1072
|
this._endpoint = endpoint;
|
|
1030
|
-
|
|
1073
|
+
if (this.logger)
|
|
1074
|
+
this.logger.info(`KmsHsmClusterClient endpoint set to ${this._endpoint}`);
|
|
1075
|
+
}
|
|
1076
|
+
get logger() {
|
|
1077
|
+
return common.LOG.logger;
|
|
1031
1078
|
}
|
|
1032
1079
|
/**
|
|
1033
1080
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -1036,7 +1083,8 @@ class KmsHsmClusterClient {
|
|
|
1036
1083
|
*/
|
|
1037
1084
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1038
1085
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1039
|
-
|
|
1086
|
+
if (this.logger)
|
|
1087
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1040
1088
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1041
1089
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KmsHsmClusterClient.serviceEndpointTemplate, this._region, KmsHsmClusterClient.endpointServiceName);
|
|
1042
1090
|
}
|
|
@@ -1102,11 +1150,12 @@ class KmsHsmClusterClient {
|
|
|
1102
1150
|
* @param CancelHsmClusterDeletionRequest
|
|
1103
1151
|
* @return CancelHsmClusterDeletionResponse
|
|
1104
1152
|
* @throws OciError when an error occurs
|
|
1105
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1153
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CancelHsmClusterDeletion.ts.html |here} to see how to use CancelHsmClusterDeletion API.
|
|
1106
1154
|
*/
|
|
1107
1155
|
cancelHsmClusterDeletion(cancelHsmClusterDeletionRequest) {
|
|
1108
1156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1109
|
-
|
|
1157
|
+
if (this.logger)
|
|
1158
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#cancelHsmClusterDeletion.");
|
|
1110
1159
|
const operationName = "cancelHsmClusterDeletion";
|
|
1111
1160
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/CancelHsmClusterDeletion";
|
|
1112
1161
|
const pathParams = {
|
|
@@ -1121,6 +1170,8 @@ class KmsHsmClusterClient {
|
|
|
1121
1170
|
};
|
|
1122
1171
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1123
1172
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelHsmClusterDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1173
|
+
if (this.logger)
|
|
1174
|
+
retrier.logger = this.logger;
|
|
1124
1175
|
const request = yield oci_common_2.composeRequest({
|
|
1125
1176
|
baseEndpoint: this._endpoint,
|
|
1126
1177
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1165,11 +1216,12 @@ class KmsHsmClusterClient {
|
|
|
1165
1216
|
* @param ChangeHsmClusterCompartmentRequest
|
|
1166
1217
|
* @return ChangeHsmClusterCompartmentResponse
|
|
1167
1218
|
* @throws OciError when an error occurs
|
|
1168
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1219
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ChangeHsmClusterCompartment.ts.html |here} to see how to use ChangeHsmClusterCompartment API.
|
|
1169
1220
|
*/
|
|
1170
1221
|
changeHsmClusterCompartment(changeHsmClusterCompartmentRequest) {
|
|
1171
1222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1172
|
-
|
|
1223
|
+
if (this.logger)
|
|
1224
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#changeHsmClusterCompartment.");
|
|
1173
1225
|
const operationName = "changeHsmClusterCompartment";
|
|
1174
1226
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/ChangeHsmClusterCompartment";
|
|
1175
1227
|
const pathParams = {
|
|
@@ -1184,6 +1236,8 @@ class KmsHsmClusterClient {
|
|
|
1184
1236
|
};
|
|
1185
1237
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1186
1238
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeHsmClusterCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1239
|
+
if (this.logger)
|
|
1240
|
+
retrier.logger = this.logger;
|
|
1187
1241
|
const request = yield oci_common_2.composeRequest({
|
|
1188
1242
|
baseEndpoint: this._endpoint,
|
|
1189
1243
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1225,11 +1279,12 @@ class KmsHsmClusterClient {
|
|
|
1225
1279
|
* @param CreateHsmClusterRequest
|
|
1226
1280
|
* @return CreateHsmClusterResponse
|
|
1227
1281
|
* @throws OciError when an error occurs
|
|
1228
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1282
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CreateHsmCluster.ts.html |here} to see how to use CreateHsmCluster API.
|
|
1229
1283
|
*/
|
|
1230
1284
|
createHsmCluster(createHsmClusterRequest) {
|
|
1231
1285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1232
|
-
|
|
1286
|
+
if (this.logger)
|
|
1287
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#createHsmCluster.");
|
|
1233
1288
|
const operationName = "createHsmCluster";
|
|
1234
1289
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/CreateHsmCluster";
|
|
1235
1290
|
const pathParams = {};
|
|
@@ -1241,6 +1296,8 @@ class KmsHsmClusterClient {
|
|
|
1241
1296
|
};
|
|
1242
1297
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1243
1298
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createHsmClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1299
|
+
if (this.logger)
|
|
1300
|
+
retrier.logger = this.logger;
|
|
1244
1301
|
const request = yield oci_common_2.composeRequest({
|
|
1245
1302
|
baseEndpoint: this._endpoint,
|
|
1246
1303
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1286,11 +1343,12 @@ class KmsHsmClusterClient {
|
|
|
1286
1343
|
* @param DownloadCertificateSigningRequestRequest
|
|
1287
1344
|
* @return DownloadCertificateSigningRequestResponse
|
|
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.80.0/keymanagement/DownloadCertificateSigningRequest.ts.html |here} to see how to use DownloadCertificateSigningRequest API.
|
|
1290
1347
|
*/
|
|
1291
1348
|
downloadCertificateSigningRequest(downloadCertificateSigningRequestRequest) {
|
|
1292
1349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1293
|
-
|
|
1350
|
+
if (this.logger)
|
|
1351
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#downloadCertificateSigningRequest.");
|
|
1294
1352
|
const operationName = "downloadCertificateSigningRequest";
|
|
1295
1353
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/DownloadCertificateSigningRequest";
|
|
1296
1354
|
const pathParams = {
|
|
@@ -1305,6 +1363,8 @@ class KmsHsmClusterClient {
|
|
|
1305
1363
|
};
|
|
1306
1364
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1307
1365
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1366
|
+
if (this.logger)
|
|
1367
|
+
retrier.logger = this.logger;
|
|
1308
1368
|
const request = yield oci_common_2.composeRequest({
|
|
1309
1369
|
baseEndpoint: this._endpoint,
|
|
1310
1370
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1354,11 +1414,12 @@ class KmsHsmClusterClient {
|
|
|
1354
1414
|
* @param GetHsmClusterRequest
|
|
1355
1415
|
* @return GetHsmClusterResponse
|
|
1356
1416
|
* @throws OciError when an error occurs
|
|
1357
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1417
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetHsmCluster.ts.html |here} to see how to use GetHsmCluster API.
|
|
1358
1418
|
*/
|
|
1359
1419
|
getHsmCluster(getHsmClusterRequest) {
|
|
1360
1420
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1361
|
-
|
|
1421
|
+
if (this.logger)
|
|
1422
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#getHsmCluster.");
|
|
1362
1423
|
const operationName = "getHsmCluster";
|
|
1363
1424
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/GetHsmCluster";
|
|
1364
1425
|
const pathParams = {
|
|
@@ -1371,6 +1432,8 @@ class KmsHsmClusterClient {
|
|
|
1371
1432
|
};
|
|
1372
1433
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1373
1434
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHsmClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1435
|
+
if (this.logger)
|
|
1436
|
+
retrier.logger = this.logger;
|
|
1374
1437
|
const request = yield oci_common_2.composeRequest({
|
|
1375
1438
|
baseEndpoint: this._endpoint,
|
|
1376
1439
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1415,11 +1478,12 @@ class KmsHsmClusterClient {
|
|
|
1415
1478
|
* @param GetHsmPartitionRequest
|
|
1416
1479
|
* @return GetHsmPartitionResponse
|
|
1417
1480
|
* @throws OciError when an error occurs
|
|
1418
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1481
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetHsmPartition.ts.html |here} to see how to use GetHsmPartition API.
|
|
1419
1482
|
*/
|
|
1420
1483
|
getHsmPartition(getHsmPartitionRequest) {
|
|
1421
1484
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1422
|
-
|
|
1485
|
+
if (this.logger)
|
|
1486
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#getHsmPartition.");
|
|
1423
1487
|
const operationName = "getHsmPartition";
|
|
1424
1488
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmPartition/GetHsmPartition";
|
|
1425
1489
|
const pathParams = {
|
|
@@ -1434,6 +1498,8 @@ class KmsHsmClusterClient {
|
|
|
1434
1498
|
};
|
|
1435
1499
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1436
1500
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHsmPartitionRequest.retryConfiguration, specRetryConfiguration);
|
|
1501
|
+
if (this.logger)
|
|
1502
|
+
retrier.logger = this.logger;
|
|
1437
1503
|
const request = yield oci_common_2.composeRequest({
|
|
1438
1504
|
baseEndpoint: this._endpoint,
|
|
1439
1505
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1478,11 +1544,12 @@ class KmsHsmClusterClient {
|
|
|
1478
1544
|
* @param GetPreCoUserCredentialsRequest
|
|
1479
1545
|
* @return GetPreCoUserCredentialsResponse
|
|
1480
1546
|
* @throws OciError when an error occurs
|
|
1481
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1547
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetPreCoUserCredentials.ts.html |here} to see how to use GetPreCoUserCredentials API.
|
|
1482
1548
|
*/
|
|
1483
1549
|
getPreCoUserCredentials(getPreCoUserCredentialsRequest) {
|
|
1484
1550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1485
|
-
|
|
1551
|
+
if (this.logger)
|
|
1552
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#getPreCoUserCredentials.");
|
|
1486
1553
|
const operationName = "getPreCoUserCredentials";
|
|
1487
1554
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/GetPreCoUserCredentials";
|
|
1488
1555
|
const pathParams = {
|
|
@@ -1496,6 +1563,8 @@ class KmsHsmClusterClient {
|
|
|
1496
1563
|
};
|
|
1497
1564
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1498
1565
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPreCoUserCredentialsRequest.retryConfiguration, specRetryConfiguration);
|
|
1566
|
+
if (this.logger)
|
|
1567
|
+
retrier.logger = this.logger;
|
|
1499
1568
|
const request = yield oci_common_2.composeRequest({
|
|
1500
1569
|
baseEndpoint: this._endpoint,
|
|
1501
1570
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1545,11 +1614,12 @@ class KmsHsmClusterClient {
|
|
|
1545
1614
|
* @param ListHsmClustersRequest
|
|
1546
1615
|
* @return ListHsmClustersResponse
|
|
1547
1616
|
* @throws OciError when an error occurs
|
|
1548
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1617
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ListHsmClusters.ts.html |here} to see how to use ListHsmClusters API.
|
|
1549
1618
|
*/
|
|
1550
1619
|
listHsmClusters(listHsmClustersRequest) {
|
|
1551
1620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1552
|
-
|
|
1621
|
+
if (this.logger)
|
|
1622
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#listHsmClusters.");
|
|
1553
1623
|
const operationName = "listHsmClusters";
|
|
1554
1624
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/ListHsmClusters";
|
|
1555
1625
|
const pathParams = {};
|
|
@@ -1566,6 +1636,8 @@ class KmsHsmClusterClient {
|
|
|
1566
1636
|
};
|
|
1567
1637
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1568
1638
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHsmClustersRequest.retryConfiguration, specRetryConfiguration);
|
|
1639
|
+
if (this.logger)
|
|
1640
|
+
retrier.logger = this.logger;
|
|
1569
1641
|
const request = yield oci_common_2.composeRequest({
|
|
1570
1642
|
baseEndpoint: this._endpoint,
|
|
1571
1643
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1610,11 +1682,12 @@ class KmsHsmClusterClient {
|
|
|
1610
1682
|
* @param ListHsmPartitionsRequest
|
|
1611
1683
|
* @return ListHsmPartitionsResponse
|
|
1612
1684
|
* @throws OciError when an error occurs
|
|
1613
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1685
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ListHsmPartitions.ts.html |here} to see how to use ListHsmPartitions API.
|
|
1614
1686
|
*/
|
|
1615
1687
|
listHsmPartitions(listHsmPartitionsRequest) {
|
|
1616
1688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1617
|
-
|
|
1689
|
+
if (this.logger)
|
|
1690
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#listHsmPartitions.");
|
|
1618
1691
|
const operationName = "listHsmPartitions";
|
|
1619
1692
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmPartition/ListHsmPartitions";
|
|
1620
1693
|
const pathParams = {
|
|
@@ -1633,6 +1706,8 @@ class KmsHsmClusterClient {
|
|
|
1633
1706
|
};
|
|
1634
1707
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1635
1708
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHsmPartitionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1709
|
+
if (this.logger)
|
|
1710
|
+
retrier.logger = this.logger;
|
|
1636
1711
|
const request = yield oci_common_2.composeRequest({
|
|
1637
1712
|
baseEndpoint: this._endpoint,
|
|
1638
1713
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1678,11 +1753,12 @@ class KmsHsmClusterClient {
|
|
|
1678
1753
|
* @param ScheduleHsmClusterDeletionRequest
|
|
1679
1754
|
* @return ScheduleHsmClusterDeletionResponse
|
|
1680
1755
|
* @throws OciError when an error occurs
|
|
1681
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1756
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ScheduleHsmClusterDeletion.ts.html |here} to see how to use ScheduleHsmClusterDeletion API.
|
|
1682
1757
|
*/
|
|
1683
1758
|
scheduleHsmClusterDeletion(scheduleHsmClusterDeletionRequest) {
|
|
1684
1759
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1685
|
-
|
|
1760
|
+
if (this.logger)
|
|
1761
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#scheduleHsmClusterDeletion.");
|
|
1686
1762
|
const operationName = "scheduleHsmClusterDeletion";
|
|
1687
1763
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/ScheduleHsmClusterDeletion";
|
|
1688
1764
|
const pathParams = {
|
|
@@ -1697,6 +1773,8 @@ class KmsHsmClusterClient {
|
|
|
1697
1773
|
};
|
|
1698
1774
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1699
1775
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleHsmClusterDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1776
|
+
if (this.logger)
|
|
1777
|
+
retrier.logger = this.logger;
|
|
1700
1778
|
const request = yield oci_common_2.composeRequest({
|
|
1701
1779
|
baseEndpoint: this._endpoint,
|
|
1702
1780
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1747,11 +1825,12 @@ class KmsHsmClusterClient {
|
|
|
1747
1825
|
* @param UpdateHsmClusterRequest
|
|
1748
1826
|
* @return UpdateHsmClusterResponse
|
|
1749
1827
|
* @throws OciError when an error occurs
|
|
1750
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1828
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/UpdateHsmCluster.ts.html |here} to see how to use UpdateHsmCluster API.
|
|
1751
1829
|
*/
|
|
1752
1830
|
updateHsmCluster(updateHsmClusterRequest) {
|
|
1753
1831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1754
|
-
|
|
1832
|
+
if (this.logger)
|
|
1833
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#updateHsmCluster.");
|
|
1755
1834
|
const operationName = "updateHsmCluster";
|
|
1756
1835
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UpdateHsmCluster";
|
|
1757
1836
|
const pathParams = {
|
|
@@ -1765,6 +1844,8 @@ class KmsHsmClusterClient {
|
|
|
1765
1844
|
};
|
|
1766
1845
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1767
1846
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateHsmClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1847
|
+
if (this.logger)
|
|
1848
|
+
retrier.logger = this.logger;
|
|
1768
1849
|
const request = yield oci_common_2.composeRequest({
|
|
1769
1850
|
baseEndpoint: this._endpoint,
|
|
1770
1851
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1810,11 +1891,12 @@ class KmsHsmClusterClient {
|
|
|
1810
1891
|
* @param UploadPartitionCertificatesRequest
|
|
1811
1892
|
* @return UploadPartitionCertificatesResponse
|
|
1812
1893
|
* @throws OciError when an error occurs
|
|
1813
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1894
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/UploadPartitionCertificates.ts.html |here} to see how to use UploadPartitionCertificates API.
|
|
1814
1895
|
*/
|
|
1815
1896
|
uploadPartitionCertificates(uploadPartitionCertificatesRequest) {
|
|
1816
1897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1817
|
-
|
|
1898
|
+
if (this.logger)
|
|
1899
|
+
this.logger.debug("Calling operation KmsHsmClusterClient#uploadPartitionCertificates.");
|
|
1818
1900
|
const operationName = "uploadPartitionCertificates";
|
|
1819
1901
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UploadPartitionCertificates";
|
|
1820
1902
|
const pathParams = {
|
|
@@ -1829,6 +1911,8 @@ class KmsHsmClusterClient {
|
|
|
1829
1911
|
};
|
|
1830
1912
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1831
1913
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadPartitionCertificatesRequest.retryConfiguration, specRetryConfiguration);
|
|
1914
|
+
if (this.logger)
|
|
1915
|
+
retrier.logger = this.logger;
|
|
1832
1916
|
const request = yield oci_common_2.composeRequest({
|
|
1833
1917
|
baseEndpoint: this._endpoint,
|
|
1834
1918
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1875,7 +1959,7 @@ var KmsManagementApiKeys;
|
|
|
1875
1959
|
*/
|
|
1876
1960
|
class KmsManagementClient {
|
|
1877
1961
|
constructor(params, clientConfiguration) {
|
|
1878
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
1962
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1879
1963
|
this["_endpoint"] = "";
|
|
1880
1964
|
this["_defaultHeaders"] = {};
|
|
1881
1965
|
this._circuitBreaker = null;
|
|
@@ -1924,7 +2008,11 @@ class KmsManagementClient {
|
|
|
1924
2008
|
*/
|
|
1925
2009
|
set endpoint(endpoint) {
|
|
1926
2010
|
this._endpoint = endpoint;
|
|
1927
|
-
|
|
2011
|
+
if (this.logger)
|
|
2012
|
+
this.logger.info(`KmsManagementClient endpoint set to ${this._endpoint}`);
|
|
2013
|
+
}
|
|
2014
|
+
get logger() {
|
|
2015
|
+
return common.LOG.logger;
|
|
1928
2016
|
}
|
|
1929
2017
|
/**
|
|
1930
2018
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -1933,7 +2021,8 @@ class KmsManagementClient {
|
|
|
1933
2021
|
*/
|
|
1934
2022
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1935
2023
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1936
|
-
|
|
2024
|
+
if (this.logger)
|
|
2025
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1937
2026
|
}
|
|
1938
2027
|
/**
|
|
1939
2028
|
* Creates a new KmsManagementWaiter for resources for this service.
|
|
@@ -1972,11 +2061,12 @@ class KmsManagementClient {
|
|
|
1972
2061
|
* @param BackupKeyRequest
|
|
1973
2062
|
* @return BackupKeyResponse
|
|
1974
2063
|
* @throws OciError when an error occurs
|
|
1975
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2064
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/BackupKey.ts.html |here} to see how to use BackupKey API.
|
|
1976
2065
|
*/
|
|
1977
2066
|
backupKey(backupKeyRequest) {
|
|
1978
2067
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1979
|
-
|
|
2068
|
+
if (this.logger)
|
|
2069
|
+
this.logger.debug("Calling operation KmsManagementClient#backupKey.");
|
|
1980
2070
|
const operationName = "backupKey";
|
|
1981
2071
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/BackupKey";
|
|
1982
2072
|
const pathParams = {
|
|
@@ -1991,6 +2081,8 @@ class KmsManagementClient {
|
|
|
1991
2081
|
};
|
|
1992
2082
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1993
2083
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2084
|
+
if (this.logger)
|
|
2085
|
+
retrier.logger = this.logger;
|
|
1994
2086
|
const request = yield oci_common_2.composeRequest({
|
|
1995
2087
|
baseEndpoint: this._endpoint,
|
|
1996
2088
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2048,11 +2140,12 @@ class KmsManagementClient {
|
|
|
2048
2140
|
* @param CancelKeyDeletionRequest
|
|
2049
2141
|
* @return CancelKeyDeletionResponse
|
|
2050
2142
|
* @throws OciError when an error occurs
|
|
2051
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2143
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CancelKeyDeletion.ts.html |here} to see how to use CancelKeyDeletion API.
|
|
2052
2144
|
*/
|
|
2053
2145
|
cancelKeyDeletion(cancelKeyDeletionRequest) {
|
|
2054
2146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2055
|
-
|
|
2147
|
+
if (this.logger)
|
|
2148
|
+
this.logger.debug("Calling operation KmsManagementClient#cancelKeyDeletion.");
|
|
2056
2149
|
const operationName = "cancelKeyDeletion";
|
|
2057
2150
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/CancelKeyDeletion";
|
|
2058
2151
|
const pathParams = {
|
|
@@ -2067,6 +2160,8 @@ class KmsManagementClient {
|
|
|
2067
2160
|
};
|
|
2068
2161
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2069
2162
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
2163
|
+
if (this.logger)
|
|
2164
|
+
retrier.logger = this.logger;
|
|
2070
2165
|
const request = yield oci_common_2.composeRequest({
|
|
2071
2166
|
baseEndpoint: this._endpoint,
|
|
2072
2167
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2118,11 +2213,12 @@ class KmsManagementClient {
|
|
|
2118
2213
|
* @param CancelKeyVersionDeletionRequest
|
|
2119
2214
|
* @return CancelKeyVersionDeletionResponse
|
|
2120
2215
|
* @throws OciError when an error occurs
|
|
2121
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2216
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CancelKeyVersionDeletion.ts.html |here} to see how to use CancelKeyVersionDeletion API.
|
|
2122
2217
|
*/
|
|
2123
2218
|
cancelKeyVersionDeletion(cancelKeyVersionDeletionRequest) {
|
|
2124
2219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2125
|
-
|
|
2220
|
+
if (this.logger)
|
|
2221
|
+
this.logger.debug("Calling operation KmsManagementClient#cancelKeyVersionDeletion.");
|
|
2126
2222
|
const operationName = "cancelKeyVersionDeletion";
|
|
2127
2223
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/CancelKeyVersionDeletion";
|
|
2128
2224
|
const pathParams = {
|
|
@@ -2138,6 +2234,8 @@ class KmsManagementClient {
|
|
|
2138
2234
|
};
|
|
2139
2235
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2140
2236
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
2237
|
+
if (this.logger)
|
|
2238
|
+
retrier.logger = this.logger;
|
|
2141
2239
|
const request = yield oci_common_2.composeRequest({
|
|
2142
2240
|
baseEndpoint: this._endpoint,
|
|
2143
2241
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2190,11 +2288,12 @@ class KmsManagementClient {
|
|
|
2190
2288
|
* @param ChangeKeyCompartmentRequest
|
|
2191
2289
|
* @return ChangeKeyCompartmentResponse
|
|
2192
2290
|
* @throws OciError when an error occurs
|
|
2193
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2291
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ChangeKeyCompartment.ts.html |here} to see how to use ChangeKeyCompartment API.
|
|
2194
2292
|
*/
|
|
2195
2293
|
changeKeyCompartment(changeKeyCompartmentRequest) {
|
|
2196
2294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2197
|
-
|
|
2295
|
+
if (this.logger)
|
|
2296
|
+
this.logger.debug("Calling operation KmsManagementClient#changeKeyCompartment.");
|
|
2198
2297
|
const operationName = "changeKeyCompartment";
|
|
2199
2298
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/ChangeKeyCompartment";
|
|
2200
2299
|
const pathParams = {
|
|
@@ -2209,6 +2308,8 @@ class KmsManagementClient {
|
|
|
2209
2308
|
};
|
|
2210
2309
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2211
2310
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeKeyCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2311
|
+
if (this.logger)
|
|
2312
|
+
retrier.logger = this.logger;
|
|
2212
2313
|
const request = yield oci_common_2.composeRequest({
|
|
2213
2314
|
baseEndpoint: this._endpoint,
|
|
2214
2315
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2255,11 +2356,12 @@ class KmsManagementClient {
|
|
|
2255
2356
|
* @param CreateKeyRequest
|
|
2256
2357
|
* @return CreateKeyResponse
|
|
2257
2358
|
* @throws OciError when an error occurs
|
|
2258
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2359
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CreateKey.ts.html |here} to see how to use CreateKey API.
|
|
2259
2360
|
*/
|
|
2260
2361
|
createKey(createKeyRequest) {
|
|
2261
2362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2262
|
-
|
|
2363
|
+
if (this.logger)
|
|
2364
|
+
this.logger.debug("Calling operation KmsManagementClient#createKey.");
|
|
2263
2365
|
const operationName = "createKey";
|
|
2264
2366
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/CreateKey";
|
|
2265
2367
|
const pathParams = {};
|
|
@@ -2271,6 +2373,8 @@ class KmsManagementClient {
|
|
|
2271
2373
|
};
|
|
2272
2374
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2273
2375
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2376
|
+
if (this.logger)
|
|
2377
|
+
retrier.logger = this.logger;
|
|
2274
2378
|
const request = yield oci_common_2.composeRequest({
|
|
2275
2379
|
baseEndpoint: this._endpoint,
|
|
2276
2380
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2322,11 +2426,12 @@ class KmsManagementClient {
|
|
|
2322
2426
|
* @param CreateKeyVersionRequest
|
|
2323
2427
|
* @return CreateKeyVersionResponse
|
|
2324
2428
|
* @throws OciError when an error occurs
|
|
2325
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2429
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CreateKeyVersion.ts.html |here} to see how to use CreateKeyVersion API.
|
|
2326
2430
|
*/
|
|
2327
2431
|
createKeyVersion(createKeyVersionRequest) {
|
|
2328
2432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2329
|
-
|
|
2433
|
+
if (this.logger)
|
|
2434
|
+
this.logger.debug("Calling operation KmsManagementClient#createKeyVersion.");
|
|
2330
2435
|
const operationName = "createKeyVersion";
|
|
2331
2436
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/CreateKeyVersion";
|
|
2332
2437
|
const pathParams = {
|
|
@@ -2340,6 +2445,8 @@ class KmsManagementClient {
|
|
|
2340
2445
|
};
|
|
2341
2446
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2342
2447
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKeyVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
2448
|
+
if (this.logger)
|
|
2449
|
+
retrier.logger = this.logger;
|
|
2343
2450
|
const request = yield oci_common_2.composeRequest({
|
|
2344
2451
|
baseEndpoint: this._endpoint,
|
|
2345
2452
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2391,11 +2498,12 @@ class KmsManagementClient {
|
|
|
2391
2498
|
* @param DisableKeyRequest
|
|
2392
2499
|
* @return DisableKeyResponse
|
|
2393
2500
|
* @throws OciError when an error occurs
|
|
2394
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2501
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/DisableKey.ts.html |here} to see how to use DisableKey API.
|
|
2395
2502
|
*/
|
|
2396
2503
|
disableKey(disableKeyRequest) {
|
|
2397
2504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2398
|
-
|
|
2505
|
+
if (this.logger)
|
|
2506
|
+
this.logger.debug("Calling operation KmsManagementClient#disableKey.");
|
|
2399
2507
|
const operationName = "disableKey";
|
|
2400
2508
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/DisableKey";
|
|
2401
2509
|
const pathParams = {
|
|
@@ -2410,6 +2518,8 @@ class KmsManagementClient {
|
|
|
2410
2518
|
};
|
|
2411
2519
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2412
2520
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2521
|
+
if (this.logger)
|
|
2522
|
+
retrier.logger = this.logger;
|
|
2413
2523
|
const request = yield oci_common_2.composeRequest({
|
|
2414
2524
|
baseEndpoint: this._endpoint,
|
|
2415
2525
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2460,11 +2570,12 @@ class KmsManagementClient {
|
|
|
2460
2570
|
* @param EnableKeyRequest
|
|
2461
2571
|
* @return EnableKeyResponse
|
|
2462
2572
|
* @throws OciError when an error occurs
|
|
2463
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2573
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/EnableKey.ts.html |here} to see how to use EnableKey API.
|
|
2464
2574
|
*/
|
|
2465
2575
|
enableKey(enableKeyRequest) {
|
|
2466
2576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2467
|
-
|
|
2577
|
+
if (this.logger)
|
|
2578
|
+
this.logger.debug("Calling operation KmsManagementClient#enableKey.");
|
|
2468
2579
|
const operationName = "enableKey";
|
|
2469
2580
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/EnableKey";
|
|
2470
2581
|
const pathParams = {
|
|
@@ -2479,6 +2590,8 @@ class KmsManagementClient {
|
|
|
2479
2590
|
};
|
|
2480
2591
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2481
2592
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2593
|
+
if (this.logger)
|
|
2594
|
+
retrier.logger = this.logger;
|
|
2482
2595
|
const request = yield oci_common_2.composeRequest({
|
|
2483
2596
|
baseEndpoint: this._endpoint,
|
|
2484
2597
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2528,11 +2641,12 @@ class KmsManagementClient {
|
|
|
2528
2641
|
* @param GetKeyRequest
|
|
2529
2642
|
* @return GetKeyResponse
|
|
2530
2643
|
* @throws OciError when an error occurs
|
|
2531
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2644
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetKey.ts.html |here} to see how to use GetKey API.
|
|
2532
2645
|
*/
|
|
2533
2646
|
getKey(getKeyRequest) {
|
|
2534
2647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2535
|
-
|
|
2648
|
+
if (this.logger)
|
|
2649
|
+
this.logger.debug("Calling operation KmsManagementClient#getKey.");
|
|
2536
2650
|
const operationName = "getKey";
|
|
2537
2651
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/GetKey";
|
|
2538
2652
|
const pathParams = {
|
|
@@ -2545,6 +2659,8 @@ class KmsManagementClient {
|
|
|
2545
2659
|
};
|
|
2546
2660
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2547
2661
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2662
|
+
if (this.logger)
|
|
2663
|
+
retrier.logger = this.logger;
|
|
2548
2664
|
const request = yield oci_common_2.composeRequest({
|
|
2549
2665
|
baseEndpoint: this._endpoint,
|
|
2550
2666
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2594,11 +2710,12 @@ class KmsManagementClient {
|
|
|
2594
2710
|
* @param GetKeyVersionRequest
|
|
2595
2711
|
* @return GetKeyVersionResponse
|
|
2596
2712
|
* @throws OciError when an error occurs
|
|
2597
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2713
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetKeyVersion.ts.html |here} to see how to use GetKeyVersion API.
|
|
2598
2714
|
*/
|
|
2599
2715
|
getKeyVersion(getKeyVersionRequest) {
|
|
2600
2716
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2601
|
-
|
|
2717
|
+
if (this.logger)
|
|
2718
|
+
this.logger.debug("Calling operation KmsManagementClient#getKeyVersion.");
|
|
2602
2719
|
const operationName = "getKeyVersion";
|
|
2603
2720
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/GetKeyVersion";
|
|
2604
2721
|
const pathParams = {
|
|
@@ -2612,6 +2729,8 @@ class KmsManagementClient {
|
|
|
2612
2729
|
};
|
|
2613
2730
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2614
2731
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKeyVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
2732
|
+
if (this.logger)
|
|
2733
|
+
retrier.logger = this.logger;
|
|
2615
2734
|
const request = yield oci_common_2.composeRequest({
|
|
2616
2735
|
baseEndpoint: this._endpoint,
|
|
2617
2736
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2659,11 +2778,12 @@ class KmsManagementClient {
|
|
|
2659
2778
|
* @param GetReplicationStatusRequest
|
|
2660
2779
|
* @return GetReplicationStatusResponse
|
|
2661
2780
|
* @throws OciError when an error occurs
|
|
2662
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2781
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetReplicationStatus.ts.html |here} to see how to use GetReplicationStatus API.
|
|
2663
2782
|
*/
|
|
2664
2783
|
getReplicationStatus(getReplicationStatusRequest) {
|
|
2665
2784
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2666
|
-
|
|
2785
|
+
if (this.logger)
|
|
2786
|
+
this.logger.debug("Calling operation KmsManagementClient#getReplicationStatus.");
|
|
2667
2787
|
const operationName = "getReplicationStatus";
|
|
2668
2788
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/ReplicationStatusDetails/GetReplicationStatus";
|
|
2669
2789
|
const pathParams = {
|
|
@@ -2676,6 +2796,8 @@ class KmsManagementClient {
|
|
|
2676
2796
|
};
|
|
2677
2797
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2678
2798
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
2799
|
+
if (this.logger)
|
|
2800
|
+
retrier.logger = this.logger;
|
|
2679
2801
|
const request = yield oci_common_2.composeRequest({
|
|
2680
2802
|
baseEndpoint: this._endpoint,
|
|
2681
2803
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2721,11 +2843,12 @@ class KmsManagementClient {
|
|
|
2721
2843
|
* @param GetWrappingKeyRequest
|
|
2722
2844
|
* @return GetWrappingKeyResponse
|
|
2723
2845
|
* @throws OciError when an error occurs
|
|
2724
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2846
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetWrappingKey.ts.html |here} to see how to use GetWrappingKey API.
|
|
2725
2847
|
*/
|
|
2726
2848
|
getWrappingKey(getWrappingKeyRequest) {
|
|
2727
2849
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2728
|
-
|
|
2850
|
+
if (this.logger)
|
|
2851
|
+
this.logger.debug("Calling operation KmsManagementClient#getWrappingKey.");
|
|
2729
2852
|
const operationName = "getWrappingKey";
|
|
2730
2853
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/WrappingKey/GetWrappingKey";
|
|
2731
2854
|
const pathParams = {};
|
|
@@ -2736,6 +2859,8 @@ class KmsManagementClient {
|
|
|
2736
2859
|
};
|
|
2737
2860
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2738
2861
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWrappingKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2862
|
+
if (this.logger)
|
|
2863
|
+
retrier.logger = this.logger;
|
|
2739
2864
|
const request = yield oci_common_2.composeRequest({
|
|
2740
2865
|
baseEndpoint: this._endpoint,
|
|
2741
2866
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2785,11 +2910,12 @@ class KmsManagementClient {
|
|
|
2785
2910
|
* @param ImportKeyRequest
|
|
2786
2911
|
* @return ImportKeyResponse
|
|
2787
2912
|
* @throws OciError when an error occurs
|
|
2788
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2913
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ImportKey.ts.html |here} to see how to use ImportKey API.
|
|
2789
2914
|
*/
|
|
2790
2915
|
importKey(importKeyRequest) {
|
|
2791
2916
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2792
|
-
|
|
2917
|
+
if (this.logger)
|
|
2918
|
+
this.logger.debug("Calling operation KmsManagementClient#importKey.");
|
|
2793
2919
|
const operationName = "importKey";
|
|
2794
2920
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/ImportKey";
|
|
2795
2921
|
const pathParams = {};
|
|
@@ -2801,6 +2927,8 @@ class KmsManagementClient {
|
|
|
2801
2927
|
};
|
|
2802
2928
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2803
2929
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2930
|
+
if (this.logger)
|
|
2931
|
+
retrier.logger = this.logger;
|
|
2804
2932
|
const request = yield oci_common_2.composeRequest({
|
|
2805
2933
|
baseEndpoint: this._endpoint,
|
|
2806
2934
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2851,11 +2979,12 @@ class KmsManagementClient {
|
|
|
2851
2979
|
* @param ImportKeyVersionRequest
|
|
2852
2980
|
* @return ImportKeyVersionResponse
|
|
2853
2981
|
* @throws OciError when an error occurs
|
|
2854
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2982
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ImportKeyVersion.ts.html |here} to see how to use ImportKeyVersion API.
|
|
2855
2983
|
*/
|
|
2856
2984
|
importKeyVersion(importKeyVersionRequest) {
|
|
2857
2985
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2858
|
-
|
|
2986
|
+
if (this.logger)
|
|
2987
|
+
this.logger.debug("Calling operation KmsManagementClient#importKeyVersion.");
|
|
2859
2988
|
const operationName = "importKeyVersion";
|
|
2860
2989
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/ImportKeyVersion";
|
|
2861
2990
|
const pathParams = {
|
|
@@ -2869,6 +2998,8 @@ class KmsManagementClient {
|
|
|
2869
2998
|
};
|
|
2870
2999
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2871
3000
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importKeyVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
3001
|
+
if (this.logger)
|
|
3002
|
+
retrier.logger = this.logger;
|
|
2872
3003
|
const request = yield oci_common_2.composeRequest({
|
|
2873
3004
|
baseEndpoint: this._endpoint,
|
|
2874
3005
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2920,11 +3051,12 @@ class KmsManagementClient {
|
|
|
2920
3051
|
* @param ListKeyVersionsRequest
|
|
2921
3052
|
* @return ListKeyVersionsResponse
|
|
2922
3053
|
* @throws OciError when an error occurs
|
|
2923
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3054
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ListKeyVersions.ts.html |here} to see how to use ListKeyVersions API.
|
|
2924
3055
|
*/
|
|
2925
3056
|
listKeyVersions(listKeyVersionsRequest) {
|
|
2926
3057
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2927
|
-
|
|
3058
|
+
if (this.logger)
|
|
3059
|
+
this.logger.debug("Calling operation KmsManagementClient#listKeyVersions.");
|
|
2928
3060
|
const operationName = "listKeyVersions";
|
|
2929
3061
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersionSummary/ListKeyVersions";
|
|
2930
3062
|
const pathParams = {
|
|
@@ -2942,6 +3074,8 @@ class KmsManagementClient {
|
|
|
2942
3074
|
};
|
|
2943
3075
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2944
3076
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeyVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
3077
|
+
if (this.logger)
|
|
3078
|
+
retrier.logger = this.logger;
|
|
2945
3079
|
const request = yield oci_common_2.composeRequest({
|
|
2946
3080
|
baseEndpoint: this._endpoint,
|
|
2947
3081
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3031,11 +3165,12 @@ class KmsManagementClient {
|
|
|
3031
3165
|
* @param ListKeysRequest
|
|
3032
3166
|
* @return ListKeysResponse
|
|
3033
3167
|
* @throws OciError when an error occurs
|
|
3034
|
-
* @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.80.0/keymanagement/ListKeys.ts.html |here} to see how to use ListKeys API.
|
|
3035
3169
|
*/
|
|
3036
3170
|
listKeys(listKeysRequest) {
|
|
3037
3171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3038
|
-
|
|
3172
|
+
if (this.logger)
|
|
3173
|
+
this.logger.debug("Calling operation KmsManagementClient#listKeys.");
|
|
3039
3174
|
const operationName = "listKeys";
|
|
3040
3175
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeySummary/ListKeys";
|
|
3041
3176
|
const pathParams = {};
|
|
@@ -3056,6 +3191,8 @@ class KmsManagementClient {
|
|
|
3056
3191
|
};
|
|
3057
3192
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3058
3193
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeysRequest.retryConfiguration, specRetryConfiguration);
|
|
3194
|
+
if (this.logger)
|
|
3195
|
+
retrier.logger = this.logger;
|
|
3059
3196
|
const request = yield oci_common_2.composeRequest({
|
|
3060
3197
|
baseEndpoint: this._endpoint,
|
|
3061
3198
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3142,11 +3279,12 @@ class KmsManagementClient {
|
|
|
3142
3279
|
* @param RestoreKeyFromFileRequest
|
|
3143
3280
|
* @return RestoreKeyFromFileResponse
|
|
3144
3281
|
* @throws OciError when an error occurs
|
|
3145
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3282
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/RestoreKeyFromFile.ts.html |here} to see how to use RestoreKeyFromFile API.
|
|
3146
3283
|
*/
|
|
3147
3284
|
restoreKeyFromFile(restoreKeyFromFileRequest) {
|
|
3148
3285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3149
|
-
|
|
3286
|
+
if (this.logger)
|
|
3287
|
+
this.logger.debug("Calling operation KmsManagementClient#restoreKeyFromFile.");
|
|
3150
3288
|
const operationName = "restoreKeyFromFile";
|
|
3151
3289
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/RestoreKeyFromFile";
|
|
3152
3290
|
const pathParams = {};
|
|
@@ -3160,6 +3298,8 @@ class KmsManagementClient {
|
|
|
3160
3298
|
};
|
|
3161
3299
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3162
3300
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromFileRequest.retryConfiguration, specRetryConfiguration);
|
|
3301
|
+
if (this.logger)
|
|
3302
|
+
retrier.logger = this.logger;
|
|
3163
3303
|
const request = yield oci_common_2.composeRequest({
|
|
3164
3304
|
baseEndpoint: this._endpoint,
|
|
3165
3305
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3218,11 +3358,12 @@ class KmsManagementClient {
|
|
|
3218
3358
|
* @param RestoreKeyFromObjectStoreRequest
|
|
3219
3359
|
* @return RestoreKeyFromObjectStoreResponse
|
|
3220
3360
|
* @throws OciError when an error occurs
|
|
3221
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3361
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/RestoreKeyFromObjectStore.ts.html |here} to see how to use RestoreKeyFromObjectStore API.
|
|
3222
3362
|
*/
|
|
3223
3363
|
restoreKeyFromObjectStore(restoreKeyFromObjectStoreRequest) {
|
|
3224
3364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3225
|
-
|
|
3365
|
+
if (this.logger)
|
|
3366
|
+
this.logger.debug("Calling operation KmsManagementClient#restoreKeyFromObjectStore.");
|
|
3226
3367
|
const operationName = "restoreKeyFromObjectStore";
|
|
3227
3368
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/RestoreKeyFromObjectStore";
|
|
3228
3369
|
const pathParams = {};
|
|
@@ -3235,6 +3376,8 @@ class KmsManagementClient {
|
|
|
3235
3376
|
};
|
|
3236
3377
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3237
3378
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
|
|
3379
|
+
if (this.logger)
|
|
3380
|
+
retrier.logger = this.logger;
|
|
3238
3381
|
const request = yield oci_common_2.composeRequest({
|
|
3239
3382
|
baseEndpoint: this._endpoint,
|
|
3240
3383
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3291,11 +3434,12 @@ class KmsManagementClient {
|
|
|
3291
3434
|
* @param ScheduleKeyDeletionRequest
|
|
3292
3435
|
* @return ScheduleKeyDeletionResponse
|
|
3293
3436
|
* @throws OciError when an error occurs
|
|
3294
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3437
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ScheduleKeyDeletion.ts.html |here} to see how to use ScheduleKeyDeletion API.
|
|
3295
3438
|
*/
|
|
3296
3439
|
scheduleKeyDeletion(scheduleKeyDeletionRequest) {
|
|
3297
3440
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3298
|
-
|
|
3441
|
+
if (this.logger)
|
|
3442
|
+
this.logger.debug("Calling operation KmsManagementClient#scheduleKeyDeletion.");
|
|
3299
3443
|
const operationName = "scheduleKeyDeletion";
|
|
3300
3444
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/ScheduleKeyDeletion";
|
|
3301
3445
|
const pathParams = {
|
|
@@ -3310,6 +3454,8 @@ class KmsManagementClient {
|
|
|
3310
3454
|
};
|
|
3311
3455
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3312
3456
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
3457
|
+
if (this.logger)
|
|
3458
|
+
retrier.logger = this.logger;
|
|
3313
3459
|
const request = yield oci_common_2.composeRequest({
|
|
3314
3460
|
baseEndpoint: this._endpoint,
|
|
3315
3461
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3361,11 +3507,12 @@ class KmsManagementClient {
|
|
|
3361
3507
|
* @param ScheduleKeyVersionDeletionRequest
|
|
3362
3508
|
* @return ScheduleKeyVersionDeletionResponse
|
|
3363
3509
|
* @throws OciError when an error occurs
|
|
3364
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3510
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ScheduleKeyVersionDeletion.ts.html |here} to see how to use ScheduleKeyVersionDeletion API.
|
|
3365
3511
|
*/
|
|
3366
3512
|
scheduleKeyVersionDeletion(scheduleKeyVersionDeletionRequest) {
|
|
3367
3513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3368
|
-
|
|
3514
|
+
if (this.logger)
|
|
3515
|
+
this.logger.debug("Calling operation KmsManagementClient#scheduleKeyVersionDeletion.");
|
|
3369
3516
|
const operationName = "scheduleKeyVersionDeletion";
|
|
3370
3517
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/ScheduleKeyVersionDeletion";
|
|
3371
3518
|
const pathParams = {
|
|
@@ -3381,6 +3528,8 @@ class KmsManagementClient {
|
|
|
3381
3528
|
};
|
|
3382
3529
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3383
3530
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
3531
|
+
if (this.logger)
|
|
3532
|
+
retrier.logger = this.logger;
|
|
3384
3533
|
const request = yield oci_common_2.composeRequest({
|
|
3385
3534
|
baseEndpoint: this._endpoint,
|
|
3386
3535
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3433,11 +3582,12 @@ class KmsManagementClient {
|
|
|
3433
3582
|
* @param UpdateKeyRequest
|
|
3434
3583
|
* @return UpdateKeyResponse
|
|
3435
3584
|
* @throws OciError when an error occurs
|
|
3436
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3585
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/UpdateKey.ts.html |here} to see how to use UpdateKey API.
|
|
3437
3586
|
*/
|
|
3438
3587
|
updateKey(updateKeyRequest) {
|
|
3439
3588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3440
|
-
|
|
3589
|
+
if (this.logger)
|
|
3590
|
+
this.logger.debug("Calling operation KmsManagementClient#updateKey.");
|
|
3441
3591
|
const operationName = "updateKey";
|
|
3442
3592
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/UpdateKey";
|
|
3443
3593
|
const pathParams = {
|
|
@@ -3451,6 +3601,8 @@ class KmsManagementClient {
|
|
|
3451
3601
|
};
|
|
3452
3602
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3453
3603
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
3604
|
+
if (this.logger)
|
|
3605
|
+
retrier.logger = this.logger;
|
|
3454
3606
|
const request = yield oci_common_2.composeRequest({
|
|
3455
3607
|
baseEndpoint: this._endpoint,
|
|
3456
3608
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3501,7 +3653,7 @@ var KmsVaultApiKeys;
|
|
|
3501
3653
|
*/
|
|
3502
3654
|
class KmsVaultClient {
|
|
3503
3655
|
constructor(params, clientConfiguration) {
|
|
3504
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
3656
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
3505
3657
|
this["_endpoint"] = "";
|
|
3506
3658
|
this["_defaultHeaders"] = {};
|
|
3507
3659
|
this._circuitBreaker = null;
|
|
@@ -3559,7 +3711,11 @@ class KmsVaultClient {
|
|
|
3559
3711
|
*/
|
|
3560
3712
|
set endpoint(endpoint) {
|
|
3561
3713
|
this._endpoint = endpoint;
|
|
3562
|
-
|
|
3714
|
+
if (this.logger)
|
|
3715
|
+
this.logger.info(`KmsVaultClient endpoint set to ${this._endpoint}`);
|
|
3716
|
+
}
|
|
3717
|
+
get logger() {
|
|
3718
|
+
return common.LOG.logger;
|
|
3563
3719
|
}
|
|
3564
3720
|
/**
|
|
3565
3721
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -3568,7 +3724,8 @@ class KmsVaultClient {
|
|
|
3568
3724
|
*/
|
|
3569
3725
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3570
3726
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3571
|
-
|
|
3727
|
+
if (this.logger)
|
|
3728
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3572
3729
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3573
3730
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KmsVaultClient.serviceEndpointTemplate, this._region, KmsVaultClient.endpointServiceName);
|
|
3574
3731
|
}
|
|
@@ -3637,11 +3794,12 @@ class KmsVaultClient {
|
|
|
3637
3794
|
* @param BackupVaultRequest
|
|
3638
3795
|
* @return BackupVaultResponse
|
|
3639
3796
|
* @throws OciError when an error occurs
|
|
3640
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3797
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/BackupVault.ts.html |here} to see how to use BackupVault API.
|
|
3641
3798
|
*/
|
|
3642
3799
|
backupVault(backupVaultRequest) {
|
|
3643
3800
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3644
|
-
|
|
3801
|
+
if (this.logger)
|
|
3802
|
+
this.logger.debug("Calling operation KmsVaultClient#backupVault.");
|
|
3645
3803
|
const operationName = "backupVault";
|
|
3646
3804
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/BackupVault";
|
|
3647
3805
|
const pathParams = {
|
|
@@ -3656,6 +3814,8 @@ class KmsVaultClient {
|
|
|
3656
3814
|
};
|
|
3657
3815
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3658
3816
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3817
|
+
if (this.logger)
|
|
3818
|
+
retrier.logger = this.logger;
|
|
3659
3819
|
const request = yield oci_common_2.composeRequest({
|
|
3660
3820
|
baseEndpoint: this._endpoint,
|
|
3661
3821
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3714,11 +3874,12 @@ class KmsVaultClient {
|
|
|
3714
3874
|
* @param CancelVaultDeletionRequest
|
|
3715
3875
|
* @return CancelVaultDeletionResponse
|
|
3716
3876
|
* @throws OciError when an error occurs
|
|
3717
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3877
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CancelVaultDeletion.ts.html |here} to see how to use CancelVaultDeletion API.
|
|
3718
3878
|
*/
|
|
3719
3879
|
cancelVaultDeletion(cancelVaultDeletionRequest) {
|
|
3720
3880
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3721
|
-
|
|
3881
|
+
if (this.logger)
|
|
3882
|
+
this.logger.debug("Calling operation KmsVaultClient#cancelVaultDeletion.");
|
|
3722
3883
|
const operationName = "cancelVaultDeletion";
|
|
3723
3884
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/CancelVaultDeletion";
|
|
3724
3885
|
const pathParams = {
|
|
@@ -3733,6 +3894,8 @@ class KmsVaultClient {
|
|
|
3733
3894
|
};
|
|
3734
3895
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3735
3896
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
3897
|
+
if (this.logger)
|
|
3898
|
+
retrier.logger = this.logger;
|
|
3736
3899
|
const request = yield oci_common_2.composeRequest({
|
|
3737
3900
|
baseEndpoint: this._endpoint,
|
|
3738
3901
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3785,11 +3948,12 @@ class KmsVaultClient {
|
|
|
3785
3948
|
* @param ChangeVaultCompartmentRequest
|
|
3786
3949
|
* @return ChangeVaultCompartmentResponse
|
|
3787
3950
|
* @throws OciError when an error occurs
|
|
3788
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3951
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ChangeVaultCompartment.ts.html |here} to see how to use ChangeVaultCompartment API.
|
|
3789
3952
|
*/
|
|
3790
3953
|
changeVaultCompartment(changeVaultCompartmentRequest) {
|
|
3791
3954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3792
|
-
|
|
3955
|
+
if (this.logger)
|
|
3956
|
+
this.logger.debug("Calling operation KmsVaultClient#changeVaultCompartment.");
|
|
3793
3957
|
const operationName = "changeVaultCompartment";
|
|
3794
3958
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/ChangeVaultCompartment";
|
|
3795
3959
|
const pathParams = {
|
|
@@ -3804,6 +3968,8 @@ class KmsVaultClient {
|
|
|
3804
3968
|
};
|
|
3805
3969
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3806
3970
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeVaultCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
3971
|
+
if (this.logger)
|
|
3972
|
+
retrier.logger = this.logger;
|
|
3807
3973
|
const request = yield oci_common_2.composeRequest({
|
|
3808
3974
|
baseEndpoint: this._endpoint,
|
|
3809
3975
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3853,11 +4019,12 @@ class KmsVaultClient {
|
|
|
3853
4019
|
* @param CreateVaultRequest
|
|
3854
4020
|
* @return CreateVaultResponse
|
|
3855
4021
|
* @throws OciError when an error occurs
|
|
3856
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4022
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CreateVault.ts.html |here} to see how to use CreateVault API.
|
|
3857
4023
|
*/
|
|
3858
4024
|
createVault(createVaultRequest) {
|
|
3859
4025
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3860
|
-
|
|
4026
|
+
if (this.logger)
|
|
4027
|
+
this.logger.debug("Calling operation KmsVaultClient#createVault.");
|
|
3861
4028
|
const operationName = "createVault";
|
|
3862
4029
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/CreateVault";
|
|
3863
4030
|
const pathParams = {};
|
|
@@ -3869,6 +4036,8 @@ class KmsVaultClient {
|
|
|
3869
4036
|
};
|
|
3870
4037
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3871
4038
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
4039
|
+
if (this.logger)
|
|
4040
|
+
retrier.logger = this.logger;
|
|
3872
4041
|
const request = yield oci_common_2.composeRequest({
|
|
3873
4042
|
baseEndpoint: this._endpoint,
|
|
3874
4043
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3923,11 +4092,12 @@ class KmsVaultClient {
|
|
|
3923
4092
|
* @param CreateVaultReplicaRequest
|
|
3924
4093
|
* @return CreateVaultReplicaResponse
|
|
3925
4094
|
* @throws OciError when an error occurs
|
|
3926
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4095
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/CreateVaultReplica.ts.html |here} to see how to use CreateVaultReplica API.
|
|
3927
4096
|
*/
|
|
3928
4097
|
createVaultReplica(createVaultReplicaRequest) {
|
|
3929
4098
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3930
|
-
|
|
4099
|
+
if (this.logger)
|
|
4100
|
+
this.logger.debug("Calling operation KmsVaultClient#createVaultReplica.");
|
|
3931
4101
|
const operationName = "createVaultReplica";
|
|
3932
4102
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/CreateVaultReplica";
|
|
3933
4103
|
const pathParams = {
|
|
@@ -3942,6 +4112,8 @@ class KmsVaultClient {
|
|
|
3942
4112
|
};
|
|
3943
4113
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3944
4114
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
4115
|
+
if (this.logger)
|
|
4116
|
+
retrier.logger = this.logger;
|
|
3945
4117
|
const request = yield oci_common_2.composeRequest({
|
|
3946
4118
|
baseEndpoint: this._endpoint,
|
|
3947
4119
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3988,11 +4160,12 @@ class KmsVaultClient {
|
|
|
3988
4160
|
* @param DeleteVaultReplicaRequest
|
|
3989
4161
|
* @return DeleteVaultReplicaResponse
|
|
3990
4162
|
* @throws OciError when an error occurs
|
|
3991
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4163
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/DeleteVaultReplica.ts.html |here} to see how to use DeleteVaultReplica API.
|
|
3992
4164
|
*/
|
|
3993
4165
|
deleteVaultReplica(deleteVaultReplicaRequest) {
|
|
3994
4166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3995
|
-
|
|
4167
|
+
if (this.logger)
|
|
4168
|
+
this.logger.debug("Calling operation KmsVaultClient#deleteVaultReplica.");
|
|
3996
4169
|
const operationName = "deleteVaultReplica";
|
|
3997
4170
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/DeleteVaultReplica";
|
|
3998
4171
|
const pathParams = {
|
|
@@ -4007,6 +4180,8 @@ class KmsVaultClient {
|
|
|
4007
4180
|
};
|
|
4008
4181
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4009
4182
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
4183
|
+
if (this.logger)
|
|
4184
|
+
retrier.logger = this.logger;
|
|
4010
4185
|
const request = yield oci_common_2.composeRequest({
|
|
4011
4186
|
baseEndpoint: this._endpoint,
|
|
4012
4187
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4053,11 +4228,12 @@ class KmsVaultClient {
|
|
|
4053
4228
|
* @param GetVaultRequest
|
|
4054
4229
|
* @return GetVaultResponse
|
|
4055
4230
|
* @throws OciError when an error occurs
|
|
4056
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4231
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetVault.ts.html |here} to see how to use GetVault API.
|
|
4057
4232
|
*/
|
|
4058
4233
|
getVault(getVaultRequest) {
|
|
4059
4234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4060
|
-
|
|
4235
|
+
if (this.logger)
|
|
4236
|
+
this.logger.debug("Calling operation KmsVaultClient#getVault.");
|
|
4061
4237
|
const operationName = "getVault";
|
|
4062
4238
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/GetVault";
|
|
4063
4239
|
const pathParams = {
|
|
@@ -4070,6 +4246,8 @@ class KmsVaultClient {
|
|
|
4070
4246
|
};
|
|
4071
4247
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4072
4248
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
4249
|
+
if (this.logger)
|
|
4250
|
+
retrier.logger = this.logger;
|
|
4073
4251
|
const request = yield oci_common_2.composeRequest({
|
|
4074
4252
|
baseEndpoint: this._endpoint,
|
|
4075
4253
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4114,11 +4292,12 @@ class KmsVaultClient {
|
|
|
4114
4292
|
* @param GetVaultUsageRequest
|
|
4115
4293
|
* @return GetVaultUsageResponse
|
|
4116
4294
|
* @throws OciError when an error occurs
|
|
4117
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4295
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/GetVaultUsage.ts.html |here} to see how to use GetVaultUsage API.
|
|
4118
4296
|
*/
|
|
4119
4297
|
getVaultUsage(getVaultUsageRequest) {
|
|
4120
4298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4121
|
-
|
|
4299
|
+
if (this.logger)
|
|
4300
|
+
this.logger.debug("Calling operation KmsVaultClient#getVaultUsage.");
|
|
4122
4301
|
const operationName = "getVaultUsage";
|
|
4123
4302
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VaultUsage/GetVaultUsage";
|
|
4124
4303
|
const pathParams = {
|
|
@@ -4131,6 +4310,8 @@ class KmsVaultClient {
|
|
|
4131
4310
|
};
|
|
4132
4311
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4133
4312
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultUsageRequest.retryConfiguration, specRetryConfiguration);
|
|
4313
|
+
if (this.logger)
|
|
4314
|
+
retrier.logger = this.logger;
|
|
4134
4315
|
const request = yield oci_common_2.composeRequest({
|
|
4135
4316
|
baseEndpoint: this._endpoint,
|
|
4136
4317
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4175,11 +4356,12 @@ class KmsVaultClient {
|
|
|
4175
4356
|
* @param ListVaultReplicasRequest
|
|
4176
4357
|
* @return ListVaultReplicasResponse
|
|
4177
4358
|
* @throws OciError when an error occurs
|
|
4178
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4359
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ListVaultReplicas.ts.html |here} to see how to use ListVaultReplicas API.
|
|
4179
4360
|
*/
|
|
4180
4361
|
listVaultReplicas(listVaultReplicasRequest) {
|
|
4181
4362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4182
|
-
|
|
4363
|
+
if (this.logger)
|
|
4364
|
+
this.logger.debug("Calling operation KmsVaultClient#listVaultReplicas.");
|
|
4183
4365
|
const operationName = "listVaultReplicas";
|
|
4184
4366
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/ListVaultReplicas";
|
|
4185
4367
|
const pathParams = {
|
|
@@ -4199,6 +4381,8 @@ class KmsVaultClient {
|
|
|
4199
4381
|
};
|
|
4200
4382
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4201
4383
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultReplicasRequest.retryConfiguration, specRetryConfiguration);
|
|
4384
|
+
if (this.logger)
|
|
4385
|
+
retrier.logger = this.logger;
|
|
4202
4386
|
const request = yield oci_common_2.composeRequest({
|
|
4203
4387
|
baseEndpoint: this._endpoint,
|
|
4204
4388
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4293,11 +4477,12 @@ class KmsVaultClient {
|
|
|
4293
4477
|
* @param ListVaultsRequest
|
|
4294
4478
|
* @return ListVaultsResponse
|
|
4295
4479
|
* @throws OciError when an error occurs
|
|
4296
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4480
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ListVaults.ts.html |here} to see how to use ListVaults API.
|
|
4297
4481
|
*/
|
|
4298
4482
|
listVaults(listVaultsRequest) {
|
|
4299
4483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4300
|
-
|
|
4484
|
+
if (this.logger)
|
|
4485
|
+
this.logger.debug("Calling operation KmsVaultClient#listVaults.");
|
|
4301
4486
|
const operationName = "listVaults";
|
|
4302
4487
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VaultSummary/ListVaults";
|
|
4303
4488
|
const pathParams = {};
|
|
@@ -4314,6 +4499,8 @@ class KmsVaultClient {
|
|
|
4314
4499
|
};
|
|
4315
4500
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4316
4501
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultsRequest.retryConfiguration, specRetryConfiguration);
|
|
4502
|
+
if (this.logger)
|
|
4503
|
+
retrier.logger = this.logger;
|
|
4317
4504
|
const request = yield oci_common_2.composeRequest({
|
|
4318
4505
|
baseEndpoint: this._endpoint,
|
|
4319
4506
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4400,11 +4587,12 @@ class KmsVaultClient {
|
|
|
4400
4587
|
* @param RestoreVaultFromFileRequest
|
|
4401
4588
|
* @return RestoreVaultFromFileResponse
|
|
4402
4589
|
* @throws OciError when an error occurs
|
|
4403
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4590
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/RestoreVaultFromFile.ts.html |here} to see how to use RestoreVaultFromFile API.
|
|
4404
4591
|
*/
|
|
4405
4592
|
restoreVaultFromFile(restoreVaultFromFileRequest) {
|
|
4406
4593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4407
|
-
|
|
4594
|
+
if (this.logger)
|
|
4595
|
+
this.logger.debug("Calling operation KmsVaultClient#restoreVaultFromFile.");
|
|
4408
4596
|
const operationName = "restoreVaultFromFile";
|
|
4409
4597
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/RestoreVaultFromFile";
|
|
4410
4598
|
const pathParams = {};
|
|
@@ -4420,6 +4608,8 @@ class KmsVaultClient {
|
|
|
4420
4608
|
};
|
|
4421
4609
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4422
4610
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromFileRequest.retryConfiguration, specRetryConfiguration);
|
|
4611
|
+
if (this.logger)
|
|
4612
|
+
retrier.logger = this.logger;
|
|
4423
4613
|
const request = yield oci_common_2.composeRequest({
|
|
4424
4614
|
baseEndpoint: this._endpoint,
|
|
4425
4615
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4478,11 +4668,12 @@ class KmsVaultClient {
|
|
|
4478
4668
|
* @param RestoreVaultFromObjectStoreRequest
|
|
4479
4669
|
* @return RestoreVaultFromObjectStoreResponse
|
|
4480
4670
|
* @throws OciError when an error occurs
|
|
4481
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4671
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/RestoreVaultFromObjectStore.ts.html |here} to see how to use RestoreVaultFromObjectStore API.
|
|
4482
4672
|
*/
|
|
4483
4673
|
restoreVaultFromObjectStore(restoreVaultFromObjectStoreRequest) {
|
|
4484
4674
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4485
|
-
|
|
4675
|
+
if (this.logger)
|
|
4676
|
+
this.logger.debug("Calling operation KmsVaultClient#restoreVaultFromObjectStore.");
|
|
4486
4677
|
const operationName = "restoreVaultFromObjectStore";
|
|
4487
4678
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/RestoreVaultFromObjectStore";
|
|
4488
4679
|
const pathParams = {};
|
|
@@ -4497,6 +4688,8 @@ class KmsVaultClient {
|
|
|
4497
4688
|
};
|
|
4498
4689
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4499
4690
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
|
|
4691
|
+
if (this.logger)
|
|
4692
|
+
retrier.logger = this.logger;
|
|
4500
4693
|
const request = yield oci_common_2.composeRequest({
|
|
4501
4694
|
baseEndpoint: this._endpoint,
|
|
4502
4695
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4556,11 +4749,12 @@ class KmsVaultClient {
|
|
|
4556
4749
|
* @param ScheduleVaultDeletionRequest
|
|
4557
4750
|
* @return ScheduleVaultDeletionResponse
|
|
4558
4751
|
* @throws OciError when an error occurs
|
|
4559
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4752
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/ScheduleVaultDeletion.ts.html |here} to see how to use ScheduleVaultDeletion API.
|
|
4560
4753
|
*/
|
|
4561
4754
|
scheduleVaultDeletion(scheduleVaultDeletionRequest) {
|
|
4562
4755
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4563
|
-
|
|
4756
|
+
if (this.logger)
|
|
4757
|
+
this.logger.debug("Calling operation KmsVaultClient#scheduleVaultDeletion.");
|
|
4564
4758
|
const operationName = "scheduleVaultDeletion";
|
|
4565
4759
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/ScheduleVaultDeletion";
|
|
4566
4760
|
const pathParams = {
|
|
@@ -4575,6 +4769,8 @@ class KmsVaultClient {
|
|
|
4575
4769
|
};
|
|
4576
4770
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4577
4771
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
4772
|
+
if (this.logger)
|
|
4773
|
+
retrier.logger = this.logger;
|
|
4578
4774
|
const request = yield oci_common_2.composeRequest({
|
|
4579
4775
|
baseEndpoint: this._endpoint,
|
|
4580
4776
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4627,11 +4823,12 @@ class KmsVaultClient {
|
|
|
4627
4823
|
* @param UpdateVaultRequest
|
|
4628
4824
|
* @return UpdateVaultResponse
|
|
4629
4825
|
* @throws OciError when an error occurs
|
|
4630
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4826
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/keymanagement/UpdateVault.ts.html |here} to see how to use UpdateVault API.
|
|
4631
4827
|
*/
|
|
4632
4828
|
updateVault(updateVaultRequest) {
|
|
4633
4829
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4634
|
-
|
|
4830
|
+
if (this.logger)
|
|
4831
|
+
this.logger.debug("Calling operation KmsVaultClient#updateVault.");
|
|
4635
4832
|
const operationName = "updateVault";
|
|
4636
4833
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/UpdateVault";
|
|
4637
4834
|
const pathParams = {
|
|
@@ -4645,6 +4842,8 @@ class KmsVaultClient {
|
|
|
4645
4842
|
};
|
|
4646
4843
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4647
4844
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
4845
|
+
if (this.logger)
|
|
4846
|
+
retrier.logger = this.logger;
|
|
4648
4847
|
const request = yield oci_common_2.composeRequest({
|
|
4649
4848
|
baseEndpoint: this._endpoint,
|
|
4650
4849
|
defaultHeaders: this._defaultHeaders,
|