oci-keymanagement 2.78.0 → 2.79.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/index.d.ts +3 -0
  2. package/index.js +4 -1
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +252 -50
  5. package/lib/client.js +1115 -366
  6. package/lib/client.js.map +1 -1
  7. package/lib/kmshsmcluster-waiter.d.ts +38 -0
  8. package/lib/kmshsmcluster-waiter.js +78 -0
  9. package/lib/kmshsmcluster-waiter.js.map +1 -0
  10. package/lib/model/backup-location.js +2 -4
  11. package/lib/model/backup-location.js.map +1 -1
  12. package/lib/model/change-hsm-cluster-compartment-details.d.ts +26 -0
  13. package/lib/model/change-hsm-cluster-compartment-details.js +30 -0
  14. package/lib/model/change-hsm-cluster-compartment-details.js.map +1 -0
  15. package/lib/model/create-hsm-cluster-details.d.ts +52 -0
  16. package/lib/model/create-hsm-cluster-details.js +30 -0
  17. package/lib/model/create-hsm-cluster-details.js.map +1 -0
  18. package/lib/model/hsm-cluster-collection.d.ts +27 -0
  19. package/lib/model/hsm-cluster-collection.js +62 -0
  20. package/lib/model/hsm-cluster-collection.js.map +1 -0
  21. package/lib/model/hsm-cluster-summary.d.ts +87 -0
  22. package/lib/model/hsm-cluster-summary.js +30 -0
  23. package/lib/model/hsm-cluster-summary.js.map +1 -0
  24. package/lib/model/hsm-cluster.d.ts +105 -0
  25. package/lib/model/hsm-cluster.js +49 -0
  26. package/lib/model/hsm-cluster.js.map +1 -0
  27. package/lib/model/hsm-partition-collection.d.ts +27 -0
  28. package/lib/model/hsm-partition-collection.js +62 -0
  29. package/lib/model/hsm-partition-collection.js.map +1 -0
  30. package/lib/model/hsm-partition-summary.d.ts +57 -0
  31. package/lib/model/hsm-partition-summary.js +62 -0
  32. package/lib/model/hsm-partition-summary.js.map +1 -0
  33. package/lib/model/hsm-partition.d.ts +64 -0
  34. package/lib/model/hsm-partition.js +74 -0
  35. package/lib/model/hsm-partition.js.map +1 -0
  36. package/lib/model/index.d.ts +26 -0
  37. package/lib/model/index.js +28 -2
  38. package/lib/model/index.js.map +1 -1
  39. package/lib/model/port-information.d.ts +39 -0
  40. package/lib/model/port-information.js +40 -0
  41. package/lib/model/port-information.js.map +1 -0
  42. package/lib/model/pre-co-user-credentials.d.ts +30 -0
  43. package/lib/model/pre-co-user-credentials.js +30 -0
  44. package/lib/model/pre-co-user-credentials.js.map +1 -0
  45. package/lib/model/schedule-hsm-cluster-deletion-details.d.ts +31 -0
  46. package/lib/model/schedule-hsm-cluster-deletion-details.js +30 -0
  47. package/lib/model/schedule-hsm-cluster-deletion-details.js.map +1 -0
  48. package/lib/model/sign-data-details.d.ts +8 -0
  49. package/lib/model/sign-data-details.js.map +1 -1
  50. package/lib/model/update-hsm-cluster-details.d.ts +48 -0
  51. package/lib/model/update-hsm-cluster-details.js +30 -0
  52. package/lib/model/update-hsm-cluster-details.js.map +1 -0
  53. package/lib/model/upload-partition-certificates-details.d.ts +30 -0
  54. package/lib/model/upload-partition-certificates-details.js +30 -0
  55. package/lib/model/upload-partition-certificates-details.js.map +1 -0
  56. package/lib/request/backup-key-request.d.ts +1 -1
  57. package/lib/request/backup-vault-request.d.ts +1 -1
  58. package/lib/request/cancel-hsm-cluster-deletion-request.d.ts +48 -0
  59. package/lib/request/cancel-hsm-cluster-deletion-request.js +15 -0
  60. package/lib/request/cancel-hsm-cluster-deletion-request.js.map +1 -0
  61. package/lib/request/cancel-key-deletion-request.d.ts +1 -1
  62. package/lib/request/cancel-key-version-deletion-request.d.ts +1 -1
  63. package/lib/request/cancel-vault-deletion-request.d.ts +1 -1
  64. package/lib/request/change-hsm-cluster-compartment-request.d.ts +53 -0
  65. package/lib/request/change-hsm-cluster-compartment-request.js +15 -0
  66. package/lib/request/change-hsm-cluster-compartment-request.js.map +1 -0
  67. package/lib/request/change-key-compartment-request.d.ts +1 -1
  68. package/lib/request/change-vault-compartment-request.d.ts +1 -1
  69. package/lib/request/create-ekms-private-endpoint-request.d.ts +1 -1
  70. package/lib/request/create-hsm-cluster-request.d.ts +40 -0
  71. package/lib/request/create-hsm-cluster-request.js +15 -0
  72. package/lib/request/create-hsm-cluster-request.js.map +1 -0
  73. package/lib/request/create-key-request.d.ts +1 -1
  74. package/lib/request/create-key-version-request.d.ts +1 -1
  75. package/lib/request/create-vault-replica-request.d.ts +1 -1
  76. package/lib/request/create-vault-request.d.ts +1 -1
  77. package/lib/request/decrypt-request.d.ts +1 -1
  78. package/lib/request/delete-ekms-private-endpoint-request.d.ts +1 -1
  79. package/lib/request/delete-vault-replica-request.d.ts +1 -1
  80. package/lib/request/disable-key-request.d.ts +1 -1
  81. package/lib/request/download-certificate-signing-request-request.d.ts +48 -0
  82. package/lib/request/download-certificate-signing-request-request.js +15 -0
  83. package/lib/request/download-certificate-signing-request-request.js.map +1 -0
  84. package/lib/request/enable-key-request.d.ts +1 -1
  85. package/lib/request/encrypt-request.d.ts +1 -1
  86. package/lib/request/export-key-request.d.ts +1 -1
  87. package/lib/request/generate-data-encryption-key-request.d.ts +1 -1
  88. package/lib/request/get-ekms-private-endpoint-request.d.ts +1 -1
  89. package/lib/request/get-hsm-cluster-request.d.ts +29 -0
  90. package/lib/request/get-hsm-cluster-request.js +15 -0
  91. package/lib/request/get-hsm-cluster-request.js.map +1 -0
  92. package/lib/request/get-hsm-partition-request.d.ts +43 -0
  93. package/lib/request/get-hsm-partition-request.js +15 -0
  94. package/lib/request/get-hsm-partition-request.js.map +1 -0
  95. package/lib/request/get-key-request.d.ts +1 -1
  96. package/lib/request/get-key-version-request.d.ts +1 -1
  97. package/lib/request/get-pre-co-user-credentials-request.d.ts +39 -0
  98. package/lib/request/get-pre-co-user-credentials-request.js +15 -0
  99. package/lib/request/get-pre-co-user-credentials-request.js.map +1 -0
  100. package/lib/request/get-replication-status-request.d.ts +1 -1
  101. package/lib/request/get-vault-request.d.ts +1 -1
  102. package/lib/request/get-vault-usage-request.d.ts +1 -1
  103. package/lib/request/get-wrapping-key-request.d.ts +1 -1
  104. package/lib/request/import-key-request.d.ts +1 -1
  105. package/lib/request/import-key-version-request.d.ts +1 -1
  106. package/lib/request/index.d.ts +24 -0
  107. package/lib/request/index.js +5 -1
  108. package/lib/request/index.js.map +1 -1
  109. package/lib/request/list-ekms-private-endpoints-request.d.ts +1 -1
  110. package/lib/request/list-hsm-clusters-request.d.ts +62 -0
  111. package/lib/request/list-hsm-clusters-request.js +29 -0
  112. package/lib/request/list-hsm-clusters-request.js.map +1 -0
  113. package/lib/request/list-hsm-partitions-request.d.ts +66 -0
  114. package/lib/request/list-hsm-partitions-request.js +29 -0
  115. package/lib/request/list-hsm-partitions-request.js.map +1 -0
  116. package/lib/request/list-key-versions-request.d.ts +1 -1
  117. package/lib/request/list-keys-request.d.ts +1 -1
  118. package/lib/request/list-vault-replicas-request.d.ts +1 -1
  119. package/lib/request/list-vaults-request.d.ts +1 -1
  120. package/lib/request/restore-key-from-file-request.d.ts +1 -1
  121. package/lib/request/restore-key-from-object-store-request.d.ts +1 -1
  122. package/lib/request/restore-vault-from-file-request.d.ts +1 -1
  123. package/lib/request/restore-vault-from-object-store-request.d.ts +1 -1
  124. package/lib/request/schedule-hsm-cluster-deletion-request.d.ts +53 -0
  125. package/lib/request/schedule-hsm-cluster-deletion-request.js +15 -0
  126. package/lib/request/schedule-hsm-cluster-deletion-request.js.map +1 -0
  127. package/lib/request/schedule-key-deletion-request.d.ts +1 -1
  128. package/lib/request/schedule-key-version-deletion-request.d.ts +1 -1
  129. package/lib/request/schedule-vault-deletion-request.d.ts +1 -1
  130. package/lib/request/sign-request.d.ts +1 -1
  131. package/lib/request/update-ekms-private-endpoint-request.d.ts +1 -1
  132. package/lib/request/update-hsm-cluster-request.d.ts +43 -0
  133. package/lib/request/update-hsm-cluster-request.js +15 -0
  134. package/lib/request/update-hsm-cluster-request.js.map +1 -0
  135. package/lib/request/update-key-request.d.ts +1 -1
  136. package/lib/request/update-vault-request.d.ts +1 -1
  137. package/lib/request/upload-partition-certificates-request.d.ts +53 -0
  138. package/lib/request/upload-partition-certificates-request.js +15 -0
  139. package/lib/request/upload-partition-certificates-request.js.map +1 -0
  140. package/lib/request/verify-request.d.ts +1 -1
  141. package/lib/response/cancel-hsm-cluster-deletion-response.d.ts +29 -0
  142. package/lib/response/cancel-hsm-cluster-deletion-response.js +15 -0
  143. package/lib/response/cancel-hsm-cluster-deletion-response.js.map +1 -0
  144. package/lib/response/change-hsm-cluster-compartment-response.d.ts +24 -0
  145. package/lib/response/change-hsm-cluster-compartment-response.js +15 -0
  146. package/lib/response/change-hsm-cluster-compartment-response.js.map +1 -0
  147. package/lib/response/create-hsm-cluster-response.d.ts +29 -0
  148. package/lib/response/create-hsm-cluster-response.js +15 -0
  149. package/lib/response/create-hsm-cluster-response.js.map +1 -0
  150. package/lib/response/download-certificate-signing-request-response.d.ts +28 -0
  151. package/lib/response/download-certificate-signing-request-response.js +15 -0
  152. package/lib/response/download-certificate-signing-request-response.js.map +1 -0
  153. package/lib/response/get-hsm-cluster-response.d.ts +29 -0
  154. package/lib/response/get-hsm-cluster-response.js +15 -0
  155. package/lib/response/get-hsm-cluster-response.js.map +1 -0
  156. package/lib/response/get-hsm-partition-response.d.ts +29 -0
  157. package/lib/response/get-hsm-partition-response.js +15 -0
  158. package/lib/response/get-hsm-partition-response.js.map +1 -0
  159. package/lib/response/get-pre-co-user-credentials-response.d.ts +29 -0
  160. package/lib/response/get-pre-co-user-credentials-response.js +15 -0
  161. package/lib/response/get-pre-co-user-credentials-response.js.map +1 -0
  162. package/lib/response/index.d.ts +24 -0
  163. package/lib/response/list-hsm-clusters-response.d.ts +33 -0
  164. package/lib/response/list-hsm-clusters-response.js +15 -0
  165. package/lib/response/list-hsm-clusters-response.js.map +1 -0
  166. package/lib/response/list-hsm-partitions-response.d.ts +33 -0
  167. package/lib/response/list-hsm-partitions-response.js +15 -0
  168. package/lib/response/list-hsm-partitions-response.js.map +1 -0
  169. package/lib/response/schedule-hsm-cluster-deletion-response.d.ts +29 -0
  170. package/lib/response/schedule-hsm-cluster-deletion-response.js +15 -0
  171. package/lib/response/schedule-hsm-cluster-deletion-response.js.map +1 -0
  172. package/lib/response/update-hsm-cluster-response.d.ts +29 -0
  173. package/lib/response/update-hsm-cluster-response.js +15 -0
  174. package/lib/response/update-hsm-cluster-response.js.map +1 -0
  175. package/lib/response/upload-partition-certificates-response.d.ts +24 -0
  176. package/lib/response/upload-partition-certificates-response.js +15 -0
  177. package/lib/response/upload-partition-certificates-response.js.map +1 -0
  178. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -41,11 +41,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
41
41
  });
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.KmsVaultClient = exports.KmsVaultApiKeys = exports.KmsManagementClient = exports.KmsManagementApiKeys = exports.KmsCryptoClient = exports.KmsCryptoApiKeys = exports.EkmClient = exports.EkmApiKeys = void 0;
44
+ exports.KmsVaultClient = exports.KmsVaultApiKeys = exports.KmsManagementClient = exports.KmsManagementApiKeys = exports.KmsHsmClusterClient = exports.KmsHsmClusterApiKeys = exports.KmsCryptoClient = exports.KmsCryptoApiKeys = exports.EkmClient = exports.EkmApiKeys = void 0;
45
45
  const common = require("oci-common");
46
46
  const model = __importStar(require("./model"));
47
47
  const oci_common_1 = require("oci-common");
48
48
  const ekm_waiter_1 = require("./ekm-waiter");
49
+ const kmshsmcluster_waiter_1 = require("./kmshsmcluster-waiter");
49
50
  const kmsmanagement_waiter_1 = require("./kmsmanagement-waiter");
50
51
  const kmsvault_waiter_1 = require("./kmsvault-waiter");
51
52
  const oci_common_2 = require("oci-common");
@@ -119,11 +120,7 @@ class EkmClient {
119
120
  */
120
121
  set endpoint(endpoint) {
121
122
  this._endpoint = endpoint;
122
- if (this.logger)
123
- this.logger.info(`EkmClient endpoint set to ${this._endpoint}`);
124
- }
125
- get logger() {
126
- return common.LOG.logger;
123
+ oci_common_2.logger.info(`EkmClient endpoint set to ${this._endpoint}`);
127
124
  }
128
125
  /**
129
126
  * Determines whether realm specific endpoint should be used or not.
@@ -132,8 +129,7 @@ class EkmClient {
132
129
  */
133
130
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
134
131
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
135
- if (this.logger)
136
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
132
+ oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
137
133
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
138
134
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(EkmClient.serviceEndpointTemplate, this._region, EkmClient.endpointServiceName);
139
135
  }
@@ -199,12 +195,11 @@ class EkmClient {
199
195
  * @param CreateEkmsPrivateEndpointRequest
200
196
  * @return CreateEkmsPrivateEndpointResponse
201
197
  * @throws OciError when an error occurs
202
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CreateEkmsPrivateEndpoint.ts.html |here} to see how to use CreateEkmsPrivateEndpoint API.
198
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CreateEkmsPrivateEndpoint.ts.html |here} to see how to use CreateEkmsPrivateEndpoint API.
203
199
  */
204
200
  createEkmsPrivateEndpoint(createEkmsPrivateEndpointRequest) {
205
201
  return __awaiter(this, void 0, void 0, function* () {
206
- if (this.logger)
207
- this.logger.debug("Calling operation EkmClient#createEkmsPrivateEndpoint.");
202
+ oci_common_2.logger.debug("Calling operation EkmClient#createEkmsPrivateEndpoint.");
208
203
  const operationName = "createEkmsPrivateEndpoint";
209
204
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/CreateEkmsPrivateEndpoint";
210
205
  const pathParams = {};
@@ -216,8 +211,6 @@ class EkmClient {
216
211
  };
217
212
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
218
213
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
219
- if (this.logger)
220
- retrier.logger = this.logger;
221
214
  const request = yield oci_common_2.composeRequest({
222
215
  baseEndpoint: this._endpoint,
223
216
  defaultHeaders: this._defaultHeaders,
@@ -267,12 +260,11 @@ class EkmClient {
267
260
  * @param DeleteEkmsPrivateEndpointRequest
268
261
  * @return DeleteEkmsPrivateEndpointResponse
269
262
  * @throws OciError when an error occurs
270
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/DeleteEkmsPrivateEndpoint.ts.html |here} to see how to use DeleteEkmsPrivateEndpoint API.
263
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/DeleteEkmsPrivateEndpoint.ts.html |here} to see how to use DeleteEkmsPrivateEndpoint API.
271
264
  */
272
265
  deleteEkmsPrivateEndpoint(deleteEkmsPrivateEndpointRequest) {
273
266
  return __awaiter(this, void 0, void 0, function* () {
274
- if (this.logger)
275
- this.logger.debug("Calling operation EkmClient#deleteEkmsPrivateEndpoint.");
267
+ oci_common_2.logger.debug("Calling operation EkmClient#deleteEkmsPrivateEndpoint.");
276
268
  const operationName = "deleteEkmsPrivateEndpoint";
277
269
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/DeleteEkmsPrivateEndpoint";
278
270
  const pathParams = {
@@ -286,8 +278,6 @@ class EkmClient {
286
278
  };
287
279
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
288
280
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
289
- if (this.logger)
290
- retrier.logger = this.logger;
291
281
  const request = yield oci_common_2.composeRequest({
292
282
  baseEndpoint: this._endpoint,
293
283
  defaultHeaders: this._defaultHeaders,
@@ -327,12 +317,11 @@ class EkmClient {
327
317
  * @param GetEkmsPrivateEndpointRequest
328
318
  * @return GetEkmsPrivateEndpointResponse
329
319
  * @throws OciError when an error occurs
330
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetEkmsPrivateEndpoint.ts.html |here} to see how to use GetEkmsPrivateEndpoint API.
320
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetEkmsPrivateEndpoint.ts.html |here} to see how to use GetEkmsPrivateEndpoint API.
331
321
  */
332
322
  getEkmsPrivateEndpoint(getEkmsPrivateEndpointRequest) {
333
323
  return __awaiter(this, void 0, void 0, function* () {
334
- if (this.logger)
335
- this.logger.debug("Calling operation EkmClient#getEkmsPrivateEndpoint.");
324
+ oci_common_2.logger.debug("Calling operation EkmClient#getEkmsPrivateEndpoint.");
336
325
  const operationName = "getEkmsPrivateEndpoint";
337
326
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/GetEkmsPrivateEndpoint";
338
327
  const pathParams = {
@@ -345,8 +334,6 @@ class EkmClient {
345
334
  };
346
335
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
347
336
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
348
- if (this.logger)
349
- retrier.logger = this.logger;
350
337
  const request = yield oci_common_2.composeRequest({
351
338
  baseEndpoint: this._endpoint,
352
339
  defaultHeaders: this._defaultHeaders,
@@ -391,12 +378,11 @@ class EkmClient {
391
378
  * @param ListEkmsPrivateEndpointsRequest
392
379
  * @return ListEkmsPrivateEndpointsResponse
393
380
  * @throws OciError when an error occurs
394
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ListEkmsPrivateEndpoints.ts.html |here} to see how to use ListEkmsPrivateEndpoints API.
381
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListEkmsPrivateEndpoints.ts.html |here} to see how to use ListEkmsPrivateEndpoints API.
395
382
  */
396
383
  listEkmsPrivateEndpoints(listEkmsPrivateEndpointsRequest) {
397
384
  return __awaiter(this, void 0, void 0, function* () {
398
- if (this.logger)
399
- this.logger.debug("Calling operation EkmClient#listEkmsPrivateEndpoints.");
385
+ oci_common_2.logger.debug("Calling operation EkmClient#listEkmsPrivateEndpoints.");
400
386
  const operationName = "listEkmsPrivateEndpoints";
401
387
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpointSummary/ListEkmsPrivateEndpoints";
402
388
  const pathParams = {};
@@ -413,8 +399,6 @@ class EkmClient {
413
399
  };
414
400
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
415
401
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEkmsPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
416
- if (this.logger)
417
- retrier.logger = this.logger;
418
402
  const request = yield oci_common_2.composeRequest({
419
403
  baseEndpoint: this._endpoint,
420
404
  defaultHeaders: this._defaultHeaders,
@@ -498,12 +482,11 @@ class EkmClient {
498
482
  * @param UpdateEkmsPrivateEndpointRequest
499
483
  * @return UpdateEkmsPrivateEndpointResponse
500
484
  * @throws OciError when an error occurs
501
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/UpdateEkmsPrivateEndpoint.ts.html |here} to see how to use UpdateEkmsPrivateEndpoint API.
485
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/UpdateEkmsPrivateEndpoint.ts.html |here} to see how to use UpdateEkmsPrivateEndpoint API.
502
486
  */
503
487
  updateEkmsPrivateEndpoint(updateEkmsPrivateEndpointRequest) {
504
488
  return __awaiter(this, void 0, void 0, function* () {
505
- if (this.logger)
506
- this.logger.debug("Calling operation EkmClient#updateEkmsPrivateEndpoint.");
489
+ oci_common_2.logger.debug("Calling operation EkmClient#updateEkmsPrivateEndpoint.");
507
490
  const operationName = "updateEkmsPrivateEndpoint";
508
491
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EkmsPrivateEndpoint/UpdateEkmsPrivateEndpoint";
509
492
  const pathParams = {
@@ -517,8 +500,6 @@ class EkmClient {
517
500
  };
518
501
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
519
502
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEkmsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
520
- if (this.logger)
521
- retrier.logger = this.logger;
522
503
  const request = yield oci_common_2.composeRequest({
523
504
  baseEndpoint: this._endpoint,
524
505
  defaultHeaders: this._defaultHeaders,
@@ -618,11 +599,7 @@ class KmsCryptoClient {
618
599
  */
619
600
  set endpoint(endpoint) {
620
601
  this._endpoint = endpoint;
621
- if (this.logger)
622
- this.logger.info(`KmsCryptoClient endpoint set to ${this._endpoint}`);
623
- }
624
- get logger() {
625
- return common.LOG.logger;
602
+ oci_common_2.logger.info(`KmsCryptoClient endpoint set to ${this._endpoint}`);
626
603
  }
627
604
  /**
628
605
  * Determines whether realm specific endpoint should be used or not.
@@ -631,8 +608,7 @@ class KmsCryptoClient {
631
608
  */
632
609
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
633
610
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
634
- if (this.logger)
635
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
611
+ oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
636
612
  }
637
613
  /**
638
614
  * Shutdown the circuit breaker used by the client when it is no longer needed
@@ -643,36 +619,826 @@ class KmsCryptoClient {
643
619
  }
644
620
  }
645
621
  /**
646
- * Decrypts data using the given [DecryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/DecryptDataDetails) resource.
622
+ * Decrypts data using the given [DecryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/DecryptDataDetails) resource.
623
+ *
624
+ * This operation does not retry by default if the user has not defined a retry configuration.
625
+ * @param DecryptRequest
626
+ * @return DecryptResponse
627
+ * @throws OciError when an error occurs
628
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/Decrypt.ts.html |here} to see how to use Decrypt API.
629
+ */
630
+ decrypt(decryptRequest) {
631
+ return __awaiter(this, void 0, void 0, function* () {
632
+ oci_common_2.logger.debug("Calling operation KmsCryptoClient#decrypt.");
633
+ const operationName = "decrypt";
634
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/DecryptedData/Decrypt";
635
+ const pathParams = {};
636
+ const queryParams = {};
637
+ let headerParams = {
638
+ "Content-Type": common.Constants.APPLICATION_JSON,
639
+ "opc-request-id": decryptRequest.opcRequestId
640
+ };
641
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
642
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, decryptRequest.retryConfiguration, specRetryConfiguration);
643
+ const request = yield oci_common_2.composeRequest({
644
+ baseEndpoint: this._endpoint,
645
+ defaultHeaders: this._defaultHeaders,
646
+ path: "/20180608/decrypt",
647
+ method: "POST",
648
+ bodyContent: common.ObjectSerializer.serialize(decryptRequest.decryptDataDetails, "DecryptDataDetails", model.DecryptDataDetails.getJsonObj),
649
+ pathParams: pathParams,
650
+ headerParams: headerParams,
651
+ queryParams: queryParams
652
+ });
653
+ try {
654
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
655
+ const sdkResponse = oci_common_2.composeResponse({
656
+ responseObject: {},
657
+ body: yield response.json(),
658
+ bodyKey: "decryptedData",
659
+ bodyModel: model.DecryptedData,
660
+ type: "model.DecryptedData",
661
+ responseHeaders: [
662
+ {
663
+ value: response.headers.get("opc-request-id"),
664
+ key: "opcRequestId",
665
+ dataType: "string"
666
+ }
667
+ ]
668
+ });
669
+ return sdkResponse;
670
+ }
671
+ catch (err) {
672
+ throw err;
673
+ }
674
+ });
675
+ }
676
+ /**
677
+ * Encrypts data using the given [EncryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/EncryptDataDetails) resource.
678
+ * Plaintext included in the example request is a base64-encoded value of a UTF-8 string.
679
+ *
680
+ * This operation does not retry by default if the user has not defined a retry configuration.
681
+ * @param EncryptRequest
682
+ * @return EncryptResponse
683
+ * @throws OciError when an error occurs
684
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/Encrypt.ts.html |here} to see how to use Encrypt API.
685
+ */
686
+ encrypt(encryptRequest) {
687
+ return __awaiter(this, void 0, void 0, function* () {
688
+ oci_common_2.logger.debug("Calling operation KmsCryptoClient#encrypt.");
689
+ const operationName = "encrypt";
690
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EncryptedData/Encrypt";
691
+ const pathParams = {};
692
+ const queryParams = {};
693
+ let headerParams = {
694
+ "Content-Type": common.Constants.APPLICATION_JSON,
695
+ "opc-request-id": encryptRequest.opcRequestId
696
+ };
697
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
698
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, encryptRequest.retryConfiguration, specRetryConfiguration);
699
+ const request = yield oci_common_2.composeRequest({
700
+ baseEndpoint: this._endpoint,
701
+ defaultHeaders: this._defaultHeaders,
702
+ path: "/20180608/encrypt",
703
+ method: "POST",
704
+ bodyContent: common.ObjectSerializer.serialize(encryptRequest.encryptDataDetails, "EncryptDataDetails", model.EncryptDataDetails.getJsonObj),
705
+ pathParams: pathParams,
706
+ headerParams: headerParams,
707
+ queryParams: queryParams
708
+ });
709
+ try {
710
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
711
+ const sdkResponse = oci_common_2.composeResponse({
712
+ responseObject: {},
713
+ body: yield response.json(),
714
+ bodyKey: "encryptedData",
715
+ bodyModel: model.EncryptedData,
716
+ type: "model.EncryptedData",
717
+ responseHeaders: [
718
+ {
719
+ value: response.headers.get("opc-request-id"),
720
+ key: "opcRequestId",
721
+ dataType: "string"
722
+ }
723
+ ]
724
+ });
725
+ return sdkResponse;
726
+ }
727
+ catch (err) {
728
+ throw err;
729
+ }
730
+ });
731
+ }
732
+ /**
733
+ * Exports a specific version of a master encryption key according to the details of the request. For their protection,
734
+ * keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys
735
+ * stored on the server. For export, the key version is encrypted by an RSA public key that you provide.
736
+ * This operation is not supported for keys having protection mode `EXTERNAL`.
737
+ *
738
+ * This operation does not retry by default if the user has not defined a retry configuration.
739
+ * @param ExportKeyRequest
740
+ * @return ExportKeyResponse
741
+ * @throws OciError when an error occurs
742
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ExportKey.ts.html |here} to see how to use ExportKey API.
743
+ */
744
+ exportKey(exportKeyRequest) {
745
+ return __awaiter(this, void 0, void 0, function* () {
746
+ oci_common_2.logger.debug("Calling operation KmsCryptoClient#exportKey.");
747
+ const operationName = "exportKey";
748
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/ExportedKeyData/ExportKey";
749
+ const pathParams = {};
750
+ const queryParams = {};
751
+ let headerParams = {
752
+ "Content-Type": common.Constants.APPLICATION_JSON
753
+ };
754
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
755
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportKeyRequest.retryConfiguration, specRetryConfiguration);
756
+ const request = yield oci_common_2.composeRequest({
757
+ baseEndpoint: this._endpoint,
758
+ defaultHeaders: this._defaultHeaders,
759
+ path: "/20180608/exportKey",
760
+ method: "POST",
761
+ bodyContent: common.ObjectSerializer.serialize(exportKeyRequest.exportKeyDetails, "ExportKeyDetails", model.ExportKeyDetails.getJsonObj),
762
+ pathParams: pathParams,
763
+ headerParams: headerParams,
764
+ queryParams: queryParams
765
+ });
766
+ try {
767
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
768
+ const sdkResponse = oci_common_2.composeResponse({
769
+ responseObject: {},
770
+ body: yield response.json(),
771
+ bodyKey: "exportedKeyData",
772
+ bodyModel: model.ExportedKeyData,
773
+ type: "model.ExportedKeyData",
774
+ responseHeaders: [
775
+ {
776
+ value: response.headers.get("opc-request-id"),
777
+ key: "opcRequestId",
778
+ dataType: "string"
779
+ }
780
+ ]
781
+ });
782
+ return sdkResponse;
783
+ }
784
+ catch (err) {
785
+ throw err;
786
+ }
787
+ });
788
+ }
789
+ /**
790
+ * Generates a key that you can use to encrypt or decrypt data.
791
+ *
792
+ * This operation does not retry by default if the user has not defined a retry configuration.
793
+ * @param GenerateDataEncryptionKeyRequest
794
+ * @return GenerateDataEncryptionKeyResponse
795
+ * @throws OciError when an error occurs
796
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GenerateDataEncryptionKey.ts.html |here} to see how to use GenerateDataEncryptionKey API.
797
+ */
798
+ generateDataEncryptionKey(generateDataEncryptionKeyRequest) {
799
+ return __awaiter(this, void 0, void 0, function* () {
800
+ oci_common_2.logger.debug("Calling operation KmsCryptoClient#generateDataEncryptionKey.");
801
+ const operationName = "generateDataEncryptionKey";
802
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/GeneratedKey/GenerateDataEncryptionKey";
803
+ const pathParams = {};
804
+ const queryParams = {};
805
+ let headerParams = {
806
+ "Content-Type": common.Constants.APPLICATION_JSON,
807
+ "opc-request-id": generateDataEncryptionKeyRequest.opcRequestId
808
+ };
809
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
810
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDataEncryptionKeyRequest.retryConfiguration, specRetryConfiguration);
811
+ const request = yield oci_common_2.composeRequest({
812
+ baseEndpoint: this._endpoint,
813
+ defaultHeaders: this._defaultHeaders,
814
+ path: "/20180608/generateDataEncryptionKey",
815
+ method: "POST",
816
+ bodyContent: common.ObjectSerializer.serialize(generateDataEncryptionKeyRequest.generateKeyDetails, "GenerateKeyDetails", model.GenerateKeyDetails.getJsonObj),
817
+ pathParams: pathParams,
818
+ headerParams: headerParams,
819
+ queryParams: queryParams
820
+ });
821
+ try {
822
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
823
+ const sdkResponse = oci_common_2.composeResponse({
824
+ responseObject: {},
825
+ body: yield response.json(),
826
+ bodyKey: "generatedKey",
827
+ bodyModel: model.GeneratedKey,
828
+ type: "model.GeneratedKey",
829
+ responseHeaders: [
830
+ {
831
+ value: response.headers.get("opc-request-id"),
832
+ key: "opcRequestId",
833
+ dataType: "string"
834
+ }
835
+ ]
836
+ });
837
+ return sdkResponse;
838
+ }
839
+ catch (err) {
840
+ throw err;
841
+ }
842
+ });
843
+ }
844
+ /**
845
+ * Creates a digital signature for a message or message digest by using the private key of a public-private key pair,
846
+ * also known as an asymmetric key. To verify the generated signature, you can use the [Verify](https://docs.cloud.oracle.com/api/#/en/key/latest/VerifiedData/Verify)
847
+ * operation. Or, if you want to validate the signature outside of the service, you can do so by using the public key of the same asymmetric key.
848
+ * This operation is not supported for keys having protection mode `EXTERNAL`.
849
+ *
850
+ * This operation does not retry by default if the user has not defined a retry configuration.
851
+ * @param SignRequest
852
+ * @return SignResponse
853
+ * @throws OciError when an error occurs
854
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/Sign.ts.html |here} to see how to use Sign API.
855
+ */
856
+ sign(signRequest) {
857
+ return __awaiter(this, void 0, void 0, function* () {
858
+ oci_common_2.logger.debug("Calling operation KmsCryptoClient#sign.");
859
+ const operationName = "sign";
860
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/SignedData/Sign";
861
+ const pathParams = {};
862
+ const queryParams = {};
863
+ let headerParams = {
864
+ "Content-Type": common.Constants.APPLICATION_JSON,
865
+ "opc-request-id": signRequest.opcRequestId
866
+ };
867
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
868
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, signRequest.retryConfiguration, specRetryConfiguration);
869
+ const request = yield oci_common_2.composeRequest({
870
+ baseEndpoint: this._endpoint,
871
+ defaultHeaders: this._defaultHeaders,
872
+ path: "/20180608/sign",
873
+ method: "POST",
874
+ bodyContent: common.ObjectSerializer.serialize(signRequest.signDataDetails, "SignDataDetails", model.SignDataDetails.getJsonObj),
875
+ pathParams: pathParams,
876
+ headerParams: headerParams,
877
+ queryParams: queryParams
878
+ });
879
+ try {
880
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
881
+ const sdkResponse = oci_common_2.composeResponse({
882
+ responseObject: {},
883
+ body: yield response.json(),
884
+ bodyKey: "signedData",
885
+ bodyModel: model.SignedData,
886
+ type: "model.SignedData",
887
+ responseHeaders: [
888
+ {
889
+ value: response.headers.get("opc-request-id"),
890
+ key: "opcRequestId",
891
+ dataType: "string"
892
+ }
893
+ ]
894
+ });
895
+ return sdkResponse;
896
+ }
897
+ catch (err) {
898
+ throw err;
899
+ }
900
+ });
901
+ }
902
+ /**
903
+ * Verifies a digital signature that was generated by the [Sign](https://docs.cloud.oracle.com/api/#/en/key/latest/SignedData/Sign) operation
904
+ * by using the public key of the same asymmetric key that was used to sign the data. If you want to validate the
905
+ * digital signature outside of the service, you can do so by using the public key of the asymmetric key.
906
+ * This operation is not supported for keys having protection mode `EXTERNAL`.
907
+ *
908
+ * This operation does not retry by default if the user has not defined a retry configuration.
909
+ * @param VerifyRequest
910
+ * @return VerifyResponse
911
+ * @throws OciError when an error occurs
912
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/Verify.ts.html |here} to see how to use Verify API.
913
+ */
914
+ verify(verifyRequest) {
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ oci_common_2.logger.debug("Calling operation KmsCryptoClient#verify.");
917
+ const operationName = "verify";
918
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VerifiedData/Verify";
919
+ const pathParams = {};
920
+ const queryParams = {};
921
+ let headerParams = {
922
+ "Content-Type": common.Constants.APPLICATION_JSON,
923
+ "opc-request-id": verifyRequest.opcRequestId
924
+ };
925
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
926
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, verifyRequest.retryConfiguration, specRetryConfiguration);
927
+ const request = yield oci_common_2.composeRequest({
928
+ baseEndpoint: this._endpoint,
929
+ defaultHeaders: this._defaultHeaders,
930
+ path: "/20180608/verify",
931
+ method: "POST",
932
+ bodyContent: common.ObjectSerializer.serialize(verifyRequest.verifyDataDetails, "VerifyDataDetails", model.VerifyDataDetails.getJsonObj),
933
+ pathParams: pathParams,
934
+ headerParams: headerParams,
935
+ queryParams: queryParams
936
+ });
937
+ try {
938
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
939
+ const sdkResponse = oci_common_2.composeResponse({
940
+ responseObject: {},
941
+ body: yield response.json(),
942
+ bodyKey: "verifiedData",
943
+ bodyModel: model.VerifiedData,
944
+ type: "model.VerifiedData",
945
+ responseHeaders: [
946
+ {
947
+ value: response.headers.get("opc-request-id"),
948
+ key: "opcRequestId",
949
+ dataType: "string"
950
+ }
951
+ ]
952
+ });
953
+ return sdkResponse;
954
+ }
955
+ catch (err) {
956
+ throw err;
957
+ }
958
+ });
959
+ }
960
+ }
961
+ exports.KmsCryptoClient = KmsCryptoClient;
962
+ KmsCryptoClient.serviceEndpointTemplate = "https://kms.{region}.{secondLevelDomain}";
963
+ KmsCryptoClient.endpointServiceName = "";
964
+ var KmsHsmClusterApiKeys;
965
+ (function (KmsHsmClusterApiKeys) {
966
+ })(KmsHsmClusterApiKeys = exports.KmsHsmClusterApiKeys || (exports.KmsHsmClusterApiKeys = {}));
967
+ /**
968
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
969
+ */
970
+ class KmsHsmClusterClient {
971
+ constructor(params, clientConfiguration) {
972
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
973
+ this["_endpoint"] = "";
974
+ this["_defaultHeaders"] = {};
975
+ this._circuitBreaker = null;
976
+ this._httpOptions = undefined;
977
+ this._bodyDuplexMode = undefined;
978
+ this.targetService = "KmsHsmCluster";
979
+ this._regionId = "";
980
+ this._lastSetRegionOrRegionId = "";
981
+ const requestSigner = params.authenticationDetailsProvider
982
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
983
+ : null;
984
+ if (clientConfiguration) {
985
+ this._clientConfiguration = clientConfiguration;
986
+ this._circuitBreaker = clientConfiguration.circuitBreaker
987
+ ? clientConfiguration.circuitBreaker.circuit
988
+ : null;
989
+ this._httpOptions = clientConfiguration.httpOptions
990
+ ? clientConfiguration.httpOptions
991
+ : undefined;
992
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
993
+ ? clientConfiguration.bodyDuplexMode
994
+ : undefined;
995
+ }
996
+ if (!oci_common_2.developerToolConfiguration.isServiceEnabled("keymanagement")) {
997
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
998
+ throw errmsg.concat("keymanagement");
999
+ }
1000
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
1001
+ const specCircuitBreakerEnabled = true;
1002
+ if (!this._circuitBreaker &&
1003
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
1004
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
1005
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
1006
+ }
1007
+ this._httpClient =
1008
+ params.httpClient ||
1009
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
1010
+ if (params.authenticationDetailsProvider &&
1011
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
1012
+ const provider = params.authenticationDetailsProvider;
1013
+ if (provider.getRegion()) {
1014
+ this.region = provider.getRegion();
1015
+ }
1016
+ }
1017
+ }
1018
+ /**
1019
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
1020
+ */
1021
+ get endpoint() {
1022
+ return this._endpoint;
1023
+ }
1024
+ /**
1025
+ * Sets the endpoint to call (ex, https://www.example.com).
1026
+ * @param endpoint The endpoint of the service.
1027
+ */
1028
+ set endpoint(endpoint) {
1029
+ this._endpoint = endpoint;
1030
+ oci_common_2.logger.info(`KmsHsmClusterClient endpoint set to ${this._endpoint}`);
1031
+ }
1032
+ /**
1033
+ * Determines whether realm specific endpoint should be used or not.
1034
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1035
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1036
+ */
1037
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1038
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1039
+ oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1040
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1041
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KmsHsmClusterClient.serviceEndpointTemplate, this._region, KmsHsmClusterClient.endpointServiceName);
1042
+ }
1043
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1044
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(KmsHsmClusterClient.serviceEndpointTemplate, this._regionId, KmsHsmClusterClient.endpointServiceName);
1045
+ }
1046
+ }
1047
+ /**
1048
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
1049
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1050
+ * @param region The region of the service.
1051
+ */
1052
+ set region(region) {
1053
+ this._region = region;
1054
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KmsHsmClusterClient.serviceEndpointTemplate, region, KmsHsmClusterClient.endpointServiceName);
1055
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1056
+ }
1057
+ /**
1058
+ * Sets the regionId to call (ex, 'us-phoenix-1').
1059
+ *
1060
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
1061
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
1062
+ * and then call {@link #endpoint(String) endpoint}.
1063
+ * @param regionId The public region ID.
1064
+ */
1065
+ set regionId(regionId) {
1066
+ this._regionId = regionId;
1067
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(KmsHsmClusterClient.serviceEndpointTemplate, regionId, KmsHsmClusterClient.endpointServiceName);
1068
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1069
+ }
1070
+ /**
1071
+ * Creates a new KmsHsmClusterWaiter for resources for this service.
1072
+ *
1073
+ * @param config The waiter configuration for termination and delay strategy
1074
+ * @return The service waiters.
1075
+ */
1076
+ createWaiters(config) {
1077
+ this._waiters = new kmshsmcluster_waiter_1.KmsHsmClusterWaiter(this, config);
1078
+ return this._waiters;
1079
+ }
1080
+ /**
1081
+ * Gets the waiters available for resources for this service.
1082
+ *
1083
+ * @return The service waiters.
1084
+ */
1085
+ getWaiters() {
1086
+ if (this._waiters) {
1087
+ return this._waiters;
1088
+ }
1089
+ throw Error("Waiters do not exist. Please create waiters.");
1090
+ }
1091
+ /**
1092
+ * Shutdown the circuit breaker used by the client when it is no longer needed
1093
+ */
1094
+ shutdownCircuitBreaker() {
1095
+ if (this._circuitBreaker) {
1096
+ this._circuitBreaker.shutdown();
1097
+ }
1098
+ }
1099
+ /**
1100
+ * Cancels deletion of specified HSM Cluster, restores it and associated HSM partitions to pre-deletion states.
1101
+ * This operation does not retry by default if the user has not defined a retry configuration.
1102
+ * @param CancelHsmClusterDeletionRequest
1103
+ * @return CancelHsmClusterDeletionResponse
1104
+ * @throws OciError when an error occurs
1105
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CancelHsmClusterDeletion.ts.html |here} to see how to use CancelHsmClusterDeletion API.
1106
+ */
1107
+ cancelHsmClusterDeletion(cancelHsmClusterDeletionRequest) {
1108
+ return __awaiter(this, void 0, void 0, function* () {
1109
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#cancelHsmClusterDeletion.");
1110
+ const operationName = "cancelHsmClusterDeletion";
1111
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/CancelHsmClusterDeletion";
1112
+ const pathParams = {
1113
+ "{hsmClusterId}": cancelHsmClusterDeletionRequest.hsmClusterId
1114
+ };
1115
+ const queryParams = {};
1116
+ let headerParams = {
1117
+ "Content-Type": common.Constants.APPLICATION_JSON,
1118
+ "if-match": cancelHsmClusterDeletionRequest.ifMatch,
1119
+ "opc-request-id": cancelHsmClusterDeletionRequest.opcRequestId,
1120
+ "opc-retry-token": cancelHsmClusterDeletionRequest.opcRetryToken
1121
+ };
1122
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1123
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelHsmClusterDeletionRequest.retryConfiguration, specRetryConfiguration);
1124
+ const request = yield oci_common_2.composeRequest({
1125
+ baseEndpoint: this._endpoint,
1126
+ defaultHeaders: this._defaultHeaders,
1127
+ path: "/20180608/hsmClusters/{hsmClusterId}/actions/cancelDeletion",
1128
+ method: "POST",
1129
+ pathParams: pathParams,
1130
+ headerParams: headerParams,
1131
+ queryParams: queryParams
1132
+ });
1133
+ try {
1134
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1135
+ const sdkResponse = oci_common_2.composeResponse({
1136
+ responseObject: {},
1137
+ body: yield response.json(),
1138
+ bodyKey: "hsmCluster",
1139
+ bodyModel: model.HsmCluster,
1140
+ type: "model.HsmCluster",
1141
+ responseHeaders: [
1142
+ {
1143
+ value: response.headers.get("etag"),
1144
+ key: "etag",
1145
+ dataType: "string"
1146
+ },
1147
+ {
1148
+ value: response.headers.get("opc-request-id"),
1149
+ key: "opcRequestId",
1150
+ dataType: "string"
1151
+ }
1152
+ ]
1153
+ });
1154
+ return sdkResponse;
1155
+ }
1156
+ catch (err) {
1157
+ throw err;
1158
+ }
1159
+ });
1160
+ }
1161
+ /**
1162
+ * Moves a HSM Cluster resource to a different compartment within the same tenancy.
1163
+ *
1164
+ * This operation does not retry by default if the user has not defined a retry configuration.
1165
+ * @param ChangeHsmClusterCompartmentRequest
1166
+ * @return ChangeHsmClusterCompartmentResponse
1167
+ * @throws OciError when an error occurs
1168
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ChangeHsmClusterCompartment.ts.html |here} to see how to use ChangeHsmClusterCompartment API.
1169
+ */
1170
+ changeHsmClusterCompartment(changeHsmClusterCompartmentRequest) {
1171
+ return __awaiter(this, void 0, void 0, function* () {
1172
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#changeHsmClusterCompartment.");
1173
+ const operationName = "changeHsmClusterCompartment";
1174
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/ChangeHsmClusterCompartment";
1175
+ const pathParams = {
1176
+ "{hsmClusterId}": changeHsmClusterCompartmentRequest.hsmClusterId
1177
+ };
1178
+ const queryParams = {};
1179
+ let headerParams = {
1180
+ "Content-Type": common.Constants.APPLICATION_JSON,
1181
+ "if-match": changeHsmClusterCompartmentRequest.ifMatch,
1182
+ "opc-request-id": changeHsmClusterCompartmentRequest.opcRequestId,
1183
+ "opc-retry-token": changeHsmClusterCompartmentRequest.opcRetryToken
1184
+ };
1185
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1186
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeHsmClusterCompartmentRequest.retryConfiguration, specRetryConfiguration);
1187
+ const request = yield oci_common_2.composeRequest({
1188
+ baseEndpoint: this._endpoint,
1189
+ defaultHeaders: this._defaultHeaders,
1190
+ path: "/20180608/hsmClusters/{hsmClusterId}/actions/changeCompartment",
1191
+ method: "POST",
1192
+ bodyContent: common.ObjectSerializer.serialize(changeHsmClusterCompartmentRequest.changeHsmClusterCompartmentDetails, "ChangeHsmClusterCompartmentDetails", model.ChangeHsmClusterCompartmentDetails.getJsonObj),
1193
+ pathParams: pathParams,
1194
+ headerParams: headerParams,
1195
+ queryParams: queryParams
1196
+ });
1197
+ try {
1198
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1199
+ const sdkResponse = oci_common_2.composeResponse({
1200
+ responseObject: {},
1201
+ responseHeaders: [
1202
+ {
1203
+ value: response.headers.get("etag"),
1204
+ key: "etag",
1205
+ dataType: "string"
1206
+ },
1207
+ {
1208
+ value: response.headers.get("opc-request-id"),
1209
+ key: "opcRequestId",
1210
+ dataType: "string"
1211
+ }
1212
+ ]
1213
+ });
1214
+ return sdkResponse;
1215
+ }
1216
+ catch (err) {
1217
+ throw err;
1218
+ }
1219
+ });
1220
+ }
1221
+ /**
1222
+ * Creates a new HSM cluster resource.
1223
+ *
1224
+ * This operation does not retry by default if the user has not defined a retry configuration.
1225
+ * @param CreateHsmClusterRequest
1226
+ * @return CreateHsmClusterResponse
1227
+ * @throws OciError when an error occurs
1228
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CreateHsmCluster.ts.html |here} to see how to use CreateHsmCluster API.
1229
+ */
1230
+ createHsmCluster(createHsmClusterRequest) {
1231
+ return __awaiter(this, void 0, void 0, function* () {
1232
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#createHsmCluster.");
1233
+ const operationName = "createHsmCluster";
1234
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/CreateHsmCluster";
1235
+ const pathParams = {};
1236
+ const queryParams = {};
1237
+ let headerParams = {
1238
+ "Content-Type": common.Constants.APPLICATION_JSON,
1239
+ "opc-request-id": createHsmClusterRequest.opcRequestId,
1240
+ "opc-retry-token": createHsmClusterRequest.opcRetryToken
1241
+ };
1242
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1243
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createHsmClusterRequest.retryConfiguration, specRetryConfiguration);
1244
+ const request = yield oci_common_2.composeRequest({
1245
+ baseEndpoint: this._endpoint,
1246
+ defaultHeaders: this._defaultHeaders,
1247
+ path: "/20180608/hsmClusters",
1248
+ method: "POST",
1249
+ bodyContent: common.ObjectSerializer.serialize(createHsmClusterRequest.createHsmClusterDetails, "CreateHsmClusterDetails", model.CreateHsmClusterDetails.getJsonObj),
1250
+ pathParams: pathParams,
1251
+ headerParams: headerParams,
1252
+ queryParams: queryParams
1253
+ });
1254
+ try {
1255
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1256
+ const sdkResponse = oci_common_2.composeResponse({
1257
+ responseObject: {},
1258
+ body: yield response.json(),
1259
+ bodyKey: "hsmCluster",
1260
+ bodyModel: model.HsmCluster,
1261
+ type: "model.HsmCluster",
1262
+ responseHeaders: [
1263
+ {
1264
+ value: response.headers.get("etag"),
1265
+ key: "etag",
1266
+ dataType: "string"
1267
+ },
1268
+ {
1269
+ value: response.headers.get("opc-request-id"),
1270
+ key: "opcRequestId",
1271
+ dataType: "string"
1272
+ }
1273
+ ]
1274
+ });
1275
+ return sdkResponse;
1276
+ }
1277
+ catch (err) {
1278
+ throw err;
1279
+ }
1280
+ });
1281
+ }
1282
+ /**
1283
+ * Retrieves the certificate signing request for the designated HSM Cluster resource.
1284
+ *
1285
+ * This operation does not retry by default if the user has not defined a retry configuration.
1286
+ * @param DownloadCertificateSigningRequestRequest
1287
+ * @return DownloadCertificateSigningRequestResponse
1288
+ * @throws OciError when an error occurs
1289
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/DownloadCertificateSigningRequest.ts.html |here} to see how to use DownloadCertificateSigningRequest API.
1290
+ */
1291
+ downloadCertificateSigningRequest(downloadCertificateSigningRequestRequest) {
1292
+ return __awaiter(this, void 0, void 0, function* () {
1293
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#downloadCertificateSigningRequest.");
1294
+ const operationName = "downloadCertificateSigningRequest";
1295
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/DownloadCertificateSigningRequest";
1296
+ const pathParams = {
1297
+ "{hsmClusterId}": downloadCertificateSigningRequestRequest.hsmClusterId
1298
+ };
1299
+ const queryParams = {};
1300
+ let headerParams = {
1301
+ "Content-Type": common.Constants.APPLICATION_JSON,
1302
+ "opc-request-id": downloadCertificateSigningRequestRequest.opcRequestId,
1303
+ "opc-retry-token": downloadCertificateSigningRequestRequest.opcRetryToken,
1304
+ "if-match": downloadCertificateSigningRequestRequest.ifMatch
1305
+ };
1306
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1307
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
1308
+ const request = yield oci_common_2.composeRequest({
1309
+ baseEndpoint: this._endpoint,
1310
+ defaultHeaders: this._defaultHeaders,
1311
+ path: "/20180608/hsmClusters/{hsmClusterId}/actions/downloadCertificateSigningRequest",
1312
+ method: "POST",
1313
+ pathParams: pathParams,
1314
+ headerParams: headerParams,
1315
+ queryParams: queryParams
1316
+ });
1317
+ try {
1318
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1319
+ const sdkResponse = oci_common_2.composeResponse({
1320
+ responseObject: {},
1321
+ body: yield response.json(),
1322
+ bodyKey: "value",
1323
+ bodyModel: "string",
1324
+ type: "string",
1325
+ responseHeaders: [
1326
+ {
1327
+ value: response.headers.get("etag"),
1328
+ key: "etag",
1329
+ dataType: "string"
1330
+ },
1331
+ {
1332
+ value: response.headers.get("opc-request-id"),
1333
+ key: "opcRequestId",
1334
+ dataType: "string"
1335
+ }
1336
+ ]
1337
+ });
1338
+ return sdkResponse;
1339
+ }
1340
+ catch (err) {
1341
+ throw err;
1342
+ }
1343
+ });
1344
+ }
1345
+ /**
1346
+ * Retrieves configuration details for the specified HSM Cluster resource.
1347
+ * <p>
1348
+ As a provisioning operation, this call is subject to a Key Management limit that applies to
1349
+ * the total number of requests across all provisioning read operations. Key Management might
1350
+ * throttle this call to reject an otherwise valid request when the total rate of provisioning
1351
+ * read operations exceeds 10 requests per second for a given tenancy.
1352
+ *
1353
+ * This operation does not retry by default if the user has not defined a retry configuration.
1354
+ * @param GetHsmClusterRequest
1355
+ * @return GetHsmClusterResponse
1356
+ * @throws OciError when an error occurs
1357
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetHsmCluster.ts.html |here} to see how to use GetHsmCluster API.
1358
+ */
1359
+ getHsmCluster(getHsmClusterRequest) {
1360
+ return __awaiter(this, void 0, void 0, function* () {
1361
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#getHsmCluster.");
1362
+ const operationName = "getHsmCluster";
1363
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/GetHsmCluster";
1364
+ const pathParams = {
1365
+ "{hsmClusterId}": getHsmClusterRequest.hsmClusterId
1366
+ };
1367
+ const queryParams = {};
1368
+ let headerParams = {
1369
+ "Content-Type": common.Constants.APPLICATION_JSON,
1370
+ "opc-request-id": getHsmClusterRequest.opcRequestId
1371
+ };
1372
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1373
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHsmClusterRequest.retryConfiguration, specRetryConfiguration);
1374
+ const request = yield oci_common_2.composeRequest({
1375
+ baseEndpoint: this._endpoint,
1376
+ defaultHeaders: this._defaultHeaders,
1377
+ path: "/20180608/hsmClusters/{hsmClusterId}",
1378
+ method: "GET",
1379
+ pathParams: pathParams,
1380
+ headerParams: headerParams,
1381
+ queryParams: queryParams
1382
+ });
1383
+ try {
1384
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1385
+ const sdkResponse = oci_common_2.composeResponse({
1386
+ responseObject: {},
1387
+ body: yield response.json(),
1388
+ bodyKey: "hsmCluster",
1389
+ bodyModel: model.HsmCluster,
1390
+ type: "model.HsmCluster",
1391
+ responseHeaders: [
1392
+ {
1393
+ value: response.headers.get("etag"),
1394
+ key: "etag",
1395
+ dataType: "string"
1396
+ },
1397
+ {
1398
+ value: response.headers.get("opc-request-id"),
1399
+ key: "opcRequestId",
1400
+ dataType: "string"
1401
+ }
1402
+ ]
1403
+ });
1404
+ return sdkResponse;
1405
+ }
1406
+ catch (err) {
1407
+ throw err;
1408
+ }
1409
+ });
1410
+ }
1411
+ /**
1412
+ * Retrieves HSM partition details for the specified HSM cluster.
647
1413
  *
648
1414
  * This operation does not retry by default if the user has not defined a retry configuration.
649
- * @param DecryptRequest
650
- * @return DecryptResponse
1415
+ * @param GetHsmPartitionRequest
1416
+ * @return GetHsmPartitionResponse
651
1417
  * @throws OciError when an error occurs
652
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/Decrypt.ts.html |here} to see how to use Decrypt API.
1418
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetHsmPartition.ts.html |here} to see how to use GetHsmPartition API.
653
1419
  */
654
- decrypt(decryptRequest) {
1420
+ getHsmPartition(getHsmPartitionRequest) {
655
1421
  return __awaiter(this, void 0, void 0, function* () {
656
- if (this.logger)
657
- this.logger.debug("Calling operation KmsCryptoClient#decrypt.");
658
- const operationName = "decrypt";
659
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/DecryptedData/Decrypt";
660
- const pathParams = {};
1422
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#getHsmPartition.");
1423
+ const operationName = "getHsmPartition";
1424
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmPartition/GetHsmPartition";
1425
+ const pathParams = {
1426
+ "{hsmClusterId}": getHsmPartitionRequest.hsmClusterId,
1427
+ "{hsmPartitionId}": getHsmPartitionRequest.hsmPartitionId
1428
+ };
661
1429
  const queryParams = {};
662
1430
  let headerParams = {
663
1431
  "Content-Type": common.Constants.APPLICATION_JSON,
664
- "opc-request-id": decryptRequest.opcRequestId
1432
+ "opc-request-id": getHsmPartitionRequest.opcRequestId,
1433
+ "opc-retry-token": getHsmPartitionRequest.opcRetryToken
665
1434
  };
666
1435
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
667
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, decryptRequest.retryConfiguration, specRetryConfiguration);
668
- if (this.logger)
669
- retrier.logger = this.logger;
1436
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHsmPartitionRequest.retryConfiguration, specRetryConfiguration);
670
1437
  const request = yield oci_common_2.composeRequest({
671
1438
  baseEndpoint: this._endpoint,
672
1439
  defaultHeaders: this._defaultHeaders,
673
- path: "/20180608/decrypt",
674
- method: "POST",
675
- bodyContent: common.ObjectSerializer.serialize(decryptRequest.decryptDataDetails, "DecryptDataDetails", model.DecryptDataDetails.getJsonObj),
1440
+ path: "/20180608/hsmClusters/{hsmClusterId}/hsmPartitions/{hsmPartitionId}",
1441
+ method: "GET",
676
1442
  pathParams: pathParams,
677
1443
  headerParams: headerParams,
678
1444
  queryParams: queryParams
@@ -682,10 +1448,15 @@ class KmsCryptoClient {
682
1448
  const sdkResponse = oci_common_2.composeResponse({
683
1449
  responseObject: {},
684
1450
  body: yield response.json(),
685
- bodyKey: "decryptedData",
686
- bodyModel: model.DecryptedData,
687
- type: "model.DecryptedData",
1451
+ bodyKey: "hsmPartition",
1452
+ bodyModel: model.HsmPartition,
1453
+ type: "model.HsmPartition",
688
1454
  responseHeaders: [
1455
+ {
1456
+ value: response.headers.get("etag"),
1457
+ key: "etag",
1458
+ dataType: "string"
1459
+ },
689
1460
  {
690
1461
  value: response.headers.get("opc-request-id"),
691
1462
  key: "opcRequestId",
@@ -701,37 +1472,35 @@ class KmsCryptoClient {
701
1472
  });
702
1473
  }
703
1474
  /**
704
- * Encrypts data using the given [EncryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/EncryptDataDetails) resource.
705
- * Plaintext included in the example request is a base64-encoded value of a UTF-8 string.
1475
+ * Retrieves Pre Crypto Officer user credentials for the specified HSM cluster.
706
1476
  *
707
1477
  * This operation does not retry by default if the user has not defined a retry configuration.
708
- * @param EncryptRequest
709
- * @return EncryptResponse
1478
+ * @param GetPreCoUserCredentialsRequest
1479
+ * @return GetPreCoUserCredentialsResponse
710
1480
  * @throws OciError when an error occurs
711
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/Encrypt.ts.html |here} to see how to use Encrypt API.
1481
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetPreCoUserCredentials.ts.html |here} to see how to use GetPreCoUserCredentials API.
712
1482
  */
713
- encrypt(encryptRequest) {
1483
+ getPreCoUserCredentials(getPreCoUserCredentialsRequest) {
714
1484
  return __awaiter(this, void 0, void 0, function* () {
715
- if (this.logger)
716
- this.logger.debug("Calling operation KmsCryptoClient#encrypt.");
717
- const operationName = "encrypt";
718
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/EncryptedData/Encrypt";
719
- const pathParams = {};
1485
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#getPreCoUserCredentials.");
1486
+ const operationName = "getPreCoUserCredentials";
1487
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/GetPreCoUserCredentials";
1488
+ const pathParams = {
1489
+ "{hsmClusterId}": getPreCoUserCredentialsRequest.hsmClusterId
1490
+ };
720
1491
  const queryParams = {};
721
1492
  let headerParams = {
722
1493
  "Content-Type": common.Constants.APPLICATION_JSON,
723
- "opc-request-id": encryptRequest.opcRequestId
1494
+ "opc-request-id": getPreCoUserCredentialsRequest.opcRequestId,
1495
+ "opc-retry-token": getPreCoUserCredentialsRequest.opcRetryToken
724
1496
  };
725
1497
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
726
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, encryptRequest.retryConfiguration, specRetryConfiguration);
727
- if (this.logger)
728
- retrier.logger = this.logger;
1498
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPreCoUserCredentialsRequest.retryConfiguration, specRetryConfiguration);
729
1499
  const request = yield oci_common_2.composeRequest({
730
1500
  baseEndpoint: this._endpoint,
731
1501
  defaultHeaders: this._defaultHeaders,
732
- path: "/20180608/encrypt",
733
- method: "POST",
734
- bodyContent: common.ObjectSerializer.serialize(encryptRequest.encryptDataDetails, "EncryptDataDetails", model.EncryptDataDetails.getJsonObj),
1502
+ path: "/20180608/hsmClusters/{hsmClusterId}/preCoUserCredentials",
1503
+ method: "GET",
735
1504
  pathParams: pathParams,
736
1505
  headerParams: headerParams,
737
1506
  queryParams: queryParams
@@ -741,10 +1510,15 @@ class KmsCryptoClient {
741
1510
  const sdkResponse = oci_common_2.composeResponse({
742
1511
  responseObject: {},
743
1512
  body: yield response.json(),
744
- bodyKey: "encryptedData",
745
- bodyModel: model.EncryptedData,
746
- type: "model.EncryptedData",
1513
+ bodyKey: "preCoUserCredentials",
1514
+ bodyModel: model.PreCoUserCredentials,
1515
+ type: "model.PreCoUserCredentials",
747
1516
  responseHeaders: [
1517
+ {
1518
+ value: response.headers.get("etag"),
1519
+ key: "etag",
1520
+ dataType: "string"
1521
+ },
748
1522
  {
749
1523
  value: response.headers.get("opc-request-id"),
750
1524
  key: "opcRequestId",
@@ -760,38 +1534,43 @@ class KmsCryptoClient {
760
1534
  });
761
1535
  }
762
1536
  /**
763
- * Exports a specific version of a master encryption key according to the details of the request. For their protection,
764
- * keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys
765
- * stored on the server. For export, the key version is encrypted by an RSA public key that you provide.
766
- * This operation is not supported for keys having protection mode `EXTERNAL`.
767
- *
768
- * This operation does not retry by default if the user has not defined a retry configuration.
769
- * @param ExportKeyRequest
770
- * @return ExportKeyResponse
771
- * @throws OciError when an error occurs
772
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ExportKey.ts.html |here} to see how to use ExportKey API.
773
- */
774
- exportKey(exportKeyRequest) {
1537
+ * Lists all HSM cluster resources contained within the specified compartment.
1538
+ * <p>
1539
+ As a provisioning operation, this call is subject to a Key Management limit that applies to
1540
+ * the total number of requests across all provisioning read operations. Key Management might
1541
+ * throttle this call to reject an otherwise valid request when the total rate of provisioning
1542
+ * read operations exceeds 10 requests per second for a given tenancy.
1543
+ *
1544
+ * This operation does not retry by default if the user has not defined a retry configuration.
1545
+ * @param ListHsmClustersRequest
1546
+ * @return ListHsmClustersResponse
1547
+ * @throws OciError when an error occurs
1548
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListHsmClusters.ts.html |here} to see how to use ListHsmClusters API.
1549
+ */
1550
+ listHsmClusters(listHsmClustersRequest) {
775
1551
  return __awaiter(this, void 0, void 0, function* () {
776
- if (this.logger)
777
- this.logger.debug("Calling operation KmsCryptoClient#exportKey.");
778
- const operationName = "exportKey";
779
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/ExportedKeyData/ExportKey";
1552
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#listHsmClusters.");
1553
+ const operationName = "listHsmClusters";
1554
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/ListHsmClusters";
780
1555
  const pathParams = {};
781
- const queryParams = {};
1556
+ const queryParams = {
1557
+ "compartmentId": listHsmClustersRequest.compartmentId,
1558
+ "limit": listHsmClustersRequest.limit,
1559
+ "page": listHsmClustersRequest.page,
1560
+ "sortBy": listHsmClustersRequest.sortBy,
1561
+ "sortOrder": listHsmClustersRequest.sortOrder
1562
+ };
782
1563
  let headerParams = {
783
- "Content-Type": common.Constants.APPLICATION_JSON
1564
+ "Content-Type": common.Constants.APPLICATION_JSON,
1565
+ "opc-request-id": listHsmClustersRequest.opcRequestId
784
1566
  };
785
1567
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
786
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportKeyRequest.retryConfiguration, specRetryConfiguration);
787
- if (this.logger)
788
- retrier.logger = this.logger;
1568
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHsmClustersRequest.retryConfiguration, specRetryConfiguration);
789
1569
  const request = yield oci_common_2.composeRequest({
790
1570
  baseEndpoint: this._endpoint,
791
1571
  defaultHeaders: this._defaultHeaders,
792
- path: "/20180608/exportKey",
793
- method: "POST",
794
- bodyContent: common.ObjectSerializer.serialize(exportKeyRequest.exportKeyDetails, "ExportKeyDetails", model.ExportKeyDetails.getJsonObj),
1572
+ path: "/20180608/hsmClusters",
1573
+ method: "GET",
795
1574
  pathParams: pathParams,
796
1575
  headerParams: headerParams,
797
1576
  queryParams: queryParams
@@ -801,10 +1580,15 @@ class KmsCryptoClient {
801
1580
  const sdkResponse = oci_common_2.composeResponse({
802
1581
  responseObject: {},
803
1582
  body: yield response.json(),
804
- bodyKey: "exportedKeyData",
805
- bodyModel: model.ExportedKeyData,
806
- type: "model.ExportedKeyData",
1583
+ bodyKey: "hsmClusterCollection",
1584
+ bodyModel: model.HsmClusterCollection,
1585
+ type: "model.HsmClusterCollection",
807
1586
  responseHeaders: [
1587
+ {
1588
+ value: response.headers.get("opc-next-page"),
1589
+ key: "opcNextPage",
1590
+ dataType: "string"
1591
+ },
808
1592
  {
809
1593
  value: response.headers.get("opc-request-id"),
810
1594
  key: "opcRequestId",
@@ -820,36 +1604,40 @@ class KmsCryptoClient {
820
1604
  });
821
1605
  }
822
1606
  /**
823
- * Generates a key that you can use to encrypt or decrypt data.
1607
+ * Lists all HSM partitions within the specified HSM Cluster resource.
824
1608
  *
825
1609
  * This operation does not retry by default if the user has not defined a retry configuration.
826
- * @param GenerateDataEncryptionKeyRequest
827
- * @return GenerateDataEncryptionKeyResponse
1610
+ * @param ListHsmPartitionsRequest
1611
+ * @return ListHsmPartitionsResponse
828
1612
  * @throws OciError when an error occurs
829
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GenerateDataEncryptionKey.ts.html |here} to see how to use GenerateDataEncryptionKey API.
1613
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListHsmPartitions.ts.html |here} to see how to use ListHsmPartitions API.
830
1614
  */
831
- generateDataEncryptionKey(generateDataEncryptionKeyRequest) {
1615
+ listHsmPartitions(listHsmPartitionsRequest) {
832
1616
  return __awaiter(this, void 0, void 0, function* () {
833
- if (this.logger)
834
- this.logger.debug("Calling operation KmsCryptoClient#generateDataEncryptionKey.");
835
- const operationName = "generateDataEncryptionKey";
836
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/GeneratedKey/GenerateDataEncryptionKey";
837
- const pathParams = {};
838
- const queryParams = {};
1617
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#listHsmPartitions.");
1618
+ const operationName = "listHsmPartitions";
1619
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmPartition/ListHsmPartitions";
1620
+ const pathParams = {
1621
+ "{hsmClusterId}": listHsmPartitionsRequest.hsmClusterId
1622
+ };
1623
+ const queryParams = {
1624
+ "limit": listHsmPartitionsRequest.limit,
1625
+ "page": listHsmPartitionsRequest.page,
1626
+ "sortBy": listHsmPartitionsRequest.sortBy,
1627
+ "sortOrder": listHsmPartitionsRequest.sortOrder,
1628
+ "lifecycleState": listHsmPartitionsRequest.lifecycleState
1629
+ };
839
1630
  let headerParams = {
840
1631
  "Content-Type": common.Constants.APPLICATION_JSON,
841
- "opc-request-id": generateDataEncryptionKeyRequest.opcRequestId
1632
+ "opc-request-id": listHsmPartitionsRequest.opcRequestId
842
1633
  };
843
1634
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
844
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDataEncryptionKeyRequest.retryConfiguration, specRetryConfiguration);
845
- if (this.logger)
846
- retrier.logger = this.logger;
1635
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHsmPartitionsRequest.retryConfiguration, specRetryConfiguration);
847
1636
  const request = yield oci_common_2.composeRequest({
848
1637
  baseEndpoint: this._endpoint,
849
1638
  defaultHeaders: this._defaultHeaders,
850
- path: "/20180608/generateDataEncryptionKey",
851
- method: "POST",
852
- bodyContent: common.ObjectSerializer.serialize(generateDataEncryptionKeyRequest.generateKeyDetails, "GenerateKeyDetails", model.GenerateKeyDetails.getJsonObj),
1639
+ path: "/20180608/hsmClusters/{hsmClusterId}/hsmPartitions",
1640
+ method: "GET",
853
1641
  pathParams: pathParams,
854
1642
  headerParams: headerParams,
855
1643
  queryParams: queryParams
@@ -859,10 +1647,15 @@ class KmsCryptoClient {
859
1647
  const sdkResponse = oci_common_2.composeResponse({
860
1648
  responseObject: {},
861
1649
  body: yield response.json(),
862
- bodyKey: "generatedKey",
863
- bodyModel: model.GeneratedKey,
864
- type: "model.GeneratedKey",
1650
+ bodyKey: "hsmPartitionCollection",
1651
+ bodyModel: model.HsmPartitionCollection,
1652
+ type: "model.HsmPartitionCollection",
865
1653
  responseHeaders: [
1654
+ {
1655
+ value: response.headers.get("opc-next-page"),
1656
+ key: "opcNextPage",
1657
+ dataType: "string"
1658
+ },
866
1659
  {
867
1660
  value: response.headers.get("opc-request-id"),
868
1661
  key: "opcRequestId",
@@ -878,39 +1671,38 @@ class KmsCryptoClient {
878
1671
  });
879
1672
  }
880
1673
  /**
881
- * Creates a digital signature for a message or message digest by using the private key of a public-private key pair,
882
- * also known as an asymmetric key. To verify the generated signature, you can use the [Verify](https://docs.cloud.oracle.com/api/#/en/key/latest/VerifiedData/Verify)
883
- * operation. Or, if you want to validate the signature outside of the service, you can do so by using the public key of the same asymmetric key.
884
- * This operation is not supported for keys having protection mode `EXTERNAL`.
1674
+ * Schedules HSM cluster for deletion, update its lifecycle state to 'PENDING_DELETION'
1675
+ * and deletes it after the retention period.
885
1676
  *
886
1677
  * This operation does not retry by default if the user has not defined a retry configuration.
887
- * @param SignRequest
888
- * @return SignResponse
1678
+ * @param ScheduleHsmClusterDeletionRequest
1679
+ * @return ScheduleHsmClusterDeletionResponse
889
1680
  * @throws OciError when an error occurs
890
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/Sign.ts.html |here} to see how to use Sign API.
1681
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ScheduleHsmClusterDeletion.ts.html |here} to see how to use ScheduleHsmClusterDeletion API.
891
1682
  */
892
- sign(signRequest) {
1683
+ scheduleHsmClusterDeletion(scheduleHsmClusterDeletionRequest) {
893
1684
  return __awaiter(this, void 0, void 0, function* () {
894
- if (this.logger)
895
- this.logger.debug("Calling operation KmsCryptoClient#sign.");
896
- const operationName = "sign";
897
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/SignedData/Sign";
898
- const pathParams = {};
1685
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#scheduleHsmClusterDeletion.");
1686
+ const operationName = "scheduleHsmClusterDeletion";
1687
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/ScheduleHsmClusterDeletion";
1688
+ const pathParams = {
1689
+ "{hsmClusterId}": scheduleHsmClusterDeletionRequest.hsmClusterId
1690
+ };
899
1691
  const queryParams = {};
900
1692
  let headerParams = {
901
1693
  "Content-Type": common.Constants.APPLICATION_JSON,
902
- "opc-request-id": signRequest.opcRequestId
1694
+ "if-match": scheduleHsmClusterDeletionRequest.ifMatch,
1695
+ "opc-request-id": scheduleHsmClusterDeletionRequest.opcRequestId,
1696
+ "opc-retry-token": scheduleHsmClusterDeletionRequest.opcRetryToken
903
1697
  };
904
1698
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
905
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, signRequest.retryConfiguration, specRetryConfiguration);
906
- if (this.logger)
907
- retrier.logger = this.logger;
1699
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleHsmClusterDeletionRequest.retryConfiguration, specRetryConfiguration);
908
1700
  const request = yield oci_common_2.composeRequest({
909
1701
  baseEndpoint: this._endpoint,
910
1702
  defaultHeaders: this._defaultHeaders,
911
- path: "/20180608/sign",
1703
+ path: "/20180608/hsmClusters/{hsmClusterId}/actions/scheduleDeletion",
912
1704
  method: "POST",
913
- bodyContent: common.ObjectSerializer.serialize(signRequest.signDataDetails, "SignDataDetails", model.SignDataDetails.getJsonObj),
1705
+ bodyContent: common.ObjectSerializer.serialize(scheduleHsmClusterDeletionRequest.scheduleHsmClusterDeletionDetails, "ScheduleHsmClusterDeletionDetails", model.ScheduleHsmClusterDeletionDetails.getJsonObj),
914
1706
  pathParams: pathParams,
915
1707
  headerParams: headerParams,
916
1708
  queryParams: queryParams
@@ -920,10 +1712,15 @@ class KmsCryptoClient {
920
1712
  const sdkResponse = oci_common_2.composeResponse({
921
1713
  responseObject: {},
922
1714
  body: yield response.json(),
923
- bodyKey: "signedData",
924
- bodyModel: model.SignedData,
925
- type: "model.SignedData",
1715
+ bodyKey: "hsmCluster",
1716
+ bodyModel: model.HsmCluster,
1717
+ type: "model.HsmCluster",
926
1718
  responseHeaders: [
1719
+ {
1720
+ value: response.headers.get("etag"),
1721
+ key: "etag",
1722
+ dataType: "string"
1723
+ },
927
1724
  {
928
1725
  value: response.headers.get("opc-request-id"),
929
1726
  key: "opcRequestId",
@@ -939,39 +1736,105 @@ class KmsCryptoClient {
939
1736
  });
940
1737
  }
941
1738
  /**
942
- * Verifies a digital signature that was generated by the [Sign](https://docs.cloud.oracle.com/api/#/en/key/latest/SignedData/Sign) operation
943
- * by using the public key of the same asymmetric key that was used to sign the data. If you want to validate the
944
- * digital signature outside of the service, you can do so by using the public key of the asymmetric key.
945
- * This operation is not supported for keys having protection mode `EXTERNAL`.
1739
+ * Modifies properties of an HSM cluster resource, including `displayName`, `freeformTags` and `definedTags`.
1740
+ * <p>
1741
+ As a provisioning operation, this call is subject to a Key Management limit that applies to
1742
+ * the total number of requests across all provisioning write operations. Key Management might
1743
+ * throttle this call to reject an otherwise valid request when the total rate of provisioning
1744
+ * write operations exceeds 10 requests per second for a given tenancy.
1745
+ *
1746
+ * This operation does not retry by default if the user has not defined a retry configuration.
1747
+ * @param UpdateHsmClusterRequest
1748
+ * @return UpdateHsmClusterResponse
1749
+ * @throws OciError when an error occurs
1750
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/UpdateHsmCluster.ts.html |here} to see how to use UpdateHsmCluster API.
1751
+ */
1752
+ updateHsmCluster(updateHsmClusterRequest) {
1753
+ return __awaiter(this, void 0, void 0, function* () {
1754
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#updateHsmCluster.");
1755
+ const operationName = "updateHsmCluster";
1756
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UpdateHsmCluster";
1757
+ const pathParams = {
1758
+ "{hsmClusterId}": updateHsmClusterRequest.hsmClusterId
1759
+ };
1760
+ const queryParams = {};
1761
+ let headerParams = {
1762
+ "Content-Type": common.Constants.APPLICATION_JSON,
1763
+ "if-match": updateHsmClusterRequest.ifMatch,
1764
+ "opc-request-id": updateHsmClusterRequest.opcRequestId
1765
+ };
1766
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1767
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateHsmClusterRequest.retryConfiguration, specRetryConfiguration);
1768
+ const request = yield oci_common_2.composeRequest({
1769
+ baseEndpoint: this._endpoint,
1770
+ defaultHeaders: this._defaultHeaders,
1771
+ path: "/20180608/hsmClusters/{hsmClusterId}",
1772
+ method: "PUT",
1773
+ bodyContent: common.ObjectSerializer.serialize(updateHsmClusterRequest.updateHsmClusterDetails, "UpdateHsmClusterDetails", model.UpdateHsmClusterDetails.getJsonObj),
1774
+ pathParams: pathParams,
1775
+ headerParams: headerParams,
1776
+ queryParams: queryParams
1777
+ });
1778
+ try {
1779
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1780
+ const sdkResponse = oci_common_2.composeResponse({
1781
+ responseObject: {},
1782
+ body: yield response.json(),
1783
+ bodyKey: "hsmCluster",
1784
+ bodyModel: model.HsmCluster,
1785
+ type: "model.HsmCluster",
1786
+ responseHeaders: [
1787
+ {
1788
+ value: response.headers.get("etag"),
1789
+ key: "etag",
1790
+ dataType: "string"
1791
+ },
1792
+ {
1793
+ value: response.headers.get("opc-request-id"),
1794
+ key: "opcRequestId",
1795
+ dataType: "string"
1796
+ }
1797
+ ]
1798
+ });
1799
+ return sdkResponse;
1800
+ }
1801
+ catch (err) {
1802
+ throw err;
1803
+ }
1804
+ });
1805
+ }
1806
+ /**
1807
+ * Uploads the partition owner certificates to the HSM Cluster resource.
946
1808
  *
947
1809
  * This operation does not retry by default if the user has not defined a retry configuration.
948
- * @param VerifyRequest
949
- * @return VerifyResponse
1810
+ * @param UploadPartitionCertificatesRequest
1811
+ * @return UploadPartitionCertificatesResponse
950
1812
  * @throws OciError when an error occurs
951
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/Verify.ts.html |here} to see how to use Verify API.
1813
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/UploadPartitionCertificates.ts.html |here} to see how to use UploadPartitionCertificates API.
952
1814
  */
953
- verify(verifyRequest) {
1815
+ uploadPartitionCertificates(uploadPartitionCertificatesRequest) {
954
1816
  return __awaiter(this, void 0, void 0, function* () {
955
- if (this.logger)
956
- this.logger.debug("Calling operation KmsCryptoClient#verify.");
957
- const operationName = "verify";
958
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VerifiedData/Verify";
959
- const pathParams = {};
1817
+ oci_common_2.logger.debug("Calling operation KmsHsmClusterClient#uploadPartitionCertificates.");
1818
+ const operationName = "uploadPartitionCertificates";
1819
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/HsmCluster/UploadPartitionCertificates";
1820
+ const pathParams = {
1821
+ "{hsmClusterId}": uploadPartitionCertificatesRequest.hsmClusterId
1822
+ };
960
1823
  const queryParams = {};
961
1824
  let headerParams = {
962
1825
  "Content-Type": common.Constants.APPLICATION_JSON,
963
- "opc-request-id": verifyRequest.opcRequestId
1826
+ "opc-request-id": uploadPartitionCertificatesRequest.opcRequestId,
1827
+ "opc-retry-token": uploadPartitionCertificatesRequest.opcRetryToken,
1828
+ "if-match": uploadPartitionCertificatesRequest.ifMatch
964
1829
  };
965
1830
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
966
- const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, verifyRequest.retryConfiguration, specRetryConfiguration);
967
- if (this.logger)
968
- retrier.logger = this.logger;
1831
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadPartitionCertificatesRequest.retryConfiguration, specRetryConfiguration);
969
1832
  const request = yield oci_common_2.composeRequest({
970
1833
  baseEndpoint: this._endpoint,
971
1834
  defaultHeaders: this._defaultHeaders,
972
- path: "/20180608/verify",
1835
+ path: "/20180608/hsmClusters/{hsmClusterId}/actions/uploadPartitionCertificates",
973
1836
  method: "POST",
974
- bodyContent: common.ObjectSerializer.serialize(verifyRequest.verifyDataDetails, "VerifyDataDetails", model.VerifyDataDetails.getJsonObj),
1837
+ bodyContent: common.ObjectSerializer.serialize(uploadPartitionCertificatesRequest.uploadPartitionCertificatesDetails, "UploadPartitionCertificatesDetails", model.UploadPartitionCertificatesDetails.getJsonObj),
975
1838
  pathParams: pathParams,
976
1839
  headerParams: headerParams,
977
1840
  queryParams: queryParams
@@ -980,11 +1843,12 @@ class KmsCryptoClient {
980
1843
  const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
981
1844
  const sdkResponse = oci_common_2.composeResponse({
982
1845
  responseObject: {},
983
- body: yield response.json(),
984
- bodyKey: "verifiedData",
985
- bodyModel: model.VerifiedData,
986
- type: "model.VerifiedData",
987
1846
  responseHeaders: [
1847
+ {
1848
+ value: response.headers.get("etag"),
1849
+ key: "etag",
1850
+ dataType: "string"
1851
+ },
988
1852
  {
989
1853
  value: response.headers.get("opc-request-id"),
990
1854
  key: "opcRequestId",
@@ -1000,9 +1864,9 @@ class KmsCryptoClient {
1000
1864
  });
1001
1865
  }
1002
1866
  }
1003
- exports.KmsCryptoClient = KmsCryptoClient;
1004
- KmsCryptoClient.serviceEndpointTemplate = "https://kms.{region}.{secondLevelDomain}";
1005
- KmsCryptoClient.endpointServiceName = "";
1867
+ exports.KmsHsmClusterClient = KmsHsmClusterClient;
1868
+ KmsHsmClusterClient.serviceEndpointTemplate = "https://kms.{region}.{secondLevelDomain}";
1869
+ KmsHsmClusterClient.endpointServiceName = "";
1006
1870
  var KmsManagementApiKeys;
1007
1871
  (function (KmsManagementApiKeys) {
1008
1872
  })(KmsManagementApiKeys = exports.KmsManagementApiKeys || (exports.KmsManagementApiKeys = {}));
@@ -1060,11 +1924,7 @@ class KmsManagementClient {
1060
1924
  */
1061
1925
  set endpoint(endpoint) {
1062
1926
  this._endpoint = endpoint;
1063
- if (this.logger)
1064
- this.logger.info(`KmsManagementClient endpoint set to ${this._endpoint}`);
1065
- }
1066
- get logger() {
1067
- return common.LOG.logger;
1927
+ oci_common_2.logger.info(`KmsManagementClient endpoint set to ${this._endpoint}`);
1068
1928
  }
1069
1929
  /**
1070
1930
  * Determines whether realm specific endpoint should be used or not.
@@ -1073,8 +1933,7 @@ class KmsManagementClient {
1073
1933
  */
1074
1934
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1075
1935
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1076
- if (this.logger)
1077
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1936
+ oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1078
1937
  }
1079
1938
  /**
1080
1939
  * Creates a new KmsManagementWaiter for resources for this service.
@@ -1113,12 +1972,11 @@ class KmsManagementClient {
1113
1972
  * @param BackupKeyRequest
1114
1973
  * @return BackupKeyResponse
1115
1974
  * @throws OciError when an error occurs
1116
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/BackupKey.ts.html |here} to see how to use BackupKey API.
1975
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/BackupKey.ts.html |here} to see how to use BackupKey API.
1117
1976
  */
1118
1977
  backupKey(backupKeyRequest) {
1119
1978
  return __awaiter(this, void 0, void 0, function* () {
1120
- if (this.logger)
1121
- this.logger.debug("Calling operation KmsManagementClient#backupKey.");
1979
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#backupKey.");
1122
1980
  const operationName = "backupKey";
1123
1981
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/BackupKey";
1124
1982
  const pathParams = {
@@ -1133,8 +1991,6 @@ class KmsManagementClient {
1133
1991
  };
1134
1992
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1135
1993
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupKeyRequest.retryConfiguration, specRetryConfiguration);
1136
- if (this.logger)
1137
- retrier.logger = this.logger;
1138
1994
  const request = yield oci_common_2.composeRequest({
1139
1995
  baseEndpoint: this._endpoint,
1140
1996
  defaultHeaders: this._defaultHeaders,
@@ -1192,12 +2048,11 @@ class KmsManagementClient {
1192
2048
  * @param CancelKeyDeletionRequest
1193
2049
  * @return CancelKeyDeletionResponse
1194
2050
  * @throws OciError when an error occurs
1195
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CancelKeyDeletion.ts.html |here} to see how to use CancelKeyDeletion API.
2051
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CancelKeyDeletion.ts.html |here} to see how to use CancelKeyDeletion API.
1196
2052
  */
1197
2053
  cancelKeyDeletion(cancelKeyDeletionRequest) {
1198
2054
  return __awaiter(this, void 0, void 0, function* () {
1199
- if (this.logger)
1200
- this.logger.debug("Calling operation KmsManagementClient#cancelKeyDeletion.");
2055
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#cancelKeyDeletion.");
1201
2056
  const operationName = "cancelKeyDeletion";
1202
2057
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/CancelKeyDeletion";
1203
2058
  const pathParams = {
@@ -1212,8 +2067,6 @@ class KmsManagementClient {
1212
2067
  };
1213
2068
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1214
2069
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
1215
- if (this.logger)
1216
- retrier.logger = this.logger;
1217
2070
  const request = yield oci_common_2.composeRequest({
1218
2071
  baseEndpoint: this._endpoint,
1219
2072
  defaultHeaders: this._defaultHeaders,
@@ -1265,12 +2118,11 @@ class KmsManagementClient {
1265
2118
  * @param CancelKeyVersionDeletionRequest
1266
2119
  * @return CancelKeyVersionDeletionResponse
1267
2120
  * @throws OciError when an error occurs
1268
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CancelKeyVersionDeletion.ts.html |here} to see how to use CancelKeyVersionDeletion API.
2121
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CancelKeyVersionDeletion.ts.html |here} to see how to use CancelKeyVersionDeletion API.
1269
2122
  */
1270
2123
  cancelKeyVersionDeletion(cancelKeyVersionDeletionRequest) {
1271
2124
  return __awaiter(this, void 0, void 0, function* () {
1272
- if (this.logger)
1273
- this.logger.debug("Calling operation KmsManagementClient#cancelKeyVersionDeletion.");
2125
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#cancelKeyVersionDeletion.");
1274
2126
  const operationName = "cancelKeyVersionDeletion";
1275
2127
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/CancelKeyVersionDeletion";
1276
2128
  const pathParams = {
@@ -1286,8 +2138,6 @@ class KmsManagementClient {
1286
2138
  };
1287
2139
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1288
2140
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
1289
- if (this.logger)
1290
- retrier.logger = this.logger;
1291
2141
  const request = yield oci_common_2.composeRequest({
1292
2142
  baseEndpoint: this._endpoint,
1293
2143
  defaultHeaders: this._defaultHeaders,
@@ -1340,12 +2190,11 @@ class KmsManagementClient {
1340
2190
  * @param ChangeKeyCompartmentRequest
1341
2191
  * @return ChangeKeyCompartmentResponse
1342
2192
  * @throws OciError when an error occurs
1343
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ChangeKeyCompartment.ts.html |here} to see how to use ChangeKeyCompartment API.
2193
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ChangeKeyCompartment.ts.html |here} to see how to use ChangeKeyCompartment API.
1344
2194
  */
1345
2195
  changeKeyCompartment(changeKeyCompartmentRequest) {
1346
2196
  return __awaiter(this, void 0, void 0, function* () {
1347
- if (this.logger)
1348
- this.logger.debug("Calling operation KmsManagementClient#changeKeyCompartment.");
2197
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#changeKeyCompartment.");
1349
2198
  const operationName = "changeKeyCompartment";
1350
2199
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/ChangeKeyCompartment";
1351
2200
  const pathParams = {
@@ -1360,8 +2209,6 @@ class KmsManagementClient {
1360
2209
  };
1361
2210
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1362
2211
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeKeyCompartmentRequest.retryConfiguration, specRetryConfiguration);
1363
- if (this.logger)
1364
- retrier.logger = this.logger;
1365
2212
  const request = yield oci_common_2.composeRequest({
1366
2213
  baseEndpoint: this._endpoint,
1367
2214
  defaultHeaders: this._defaultHeaders,
@@ -1408,12 +2255,11 @@ class KmsManagementClient {
1408
2255
  * @param CreateKeyRequest
1409
2256
  * @return CreateKeyResponse
1410
2257
  * @throws OciError when an error occurs
1411
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CreateKey.ts.html |here} to see how to use CreateKey API.
2258
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CreateKey.ts.html |here} to see how to use CreateKey API.
1412
2259
  */
1413
2260
  createKey(createKeyRequest) {
1414
2261
  return __awaiter(this, void 0, void 0, function* () {
1415
- if (this.logger)
1416
- this.logger.debug("Calling operation KmsManagementClient#createKey.");
2262
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#createKey.");
1417
2263
  const operationName = "createKey";
1418
2264
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/CreateKey";
1419
2265
  const pathParams = {};
@@ -1425,8 +2271,6 @@ class KmsManagementClient {
1425
2271
  };
1426
2272
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1427
2273
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKeyRequest.retryConfiguration, specRetryConfiguration);
1428
- if (this.logger)
1429
- retrier.logger = this.logger;
1430
2274
  const request = yield oci_common_2.composeRequest({
1431
2275
  baseEndpoint: this._endpoint,
1432
2276
  defaultHeaders: this._defaultHeaders,
@@ -1478,12 +2322,11 @@ class KmsManagementClient {
1478
2322
  * @param CreateKeyVersionRequest
1479
2323
  * @return CreateKeyVersionResponse
1480
2324
  * @throws OciError when an error occurs
1481
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CreateKeyVersion.ts.html |here} to see how to use CreateKeyVersion API.
2325
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CreateKeyVersion.ts.html |here} to see how to use CreateKeyVersion API.
1482
2326
  */
1483
2327
  createKeyVersion(createKeyVersionRequest) {
1484
2328
  return __awaiter(this, void 0, void 0, function* () {
1485
- if (this.logger)
1486
- this.logger.debug("Calling operation KmsManagementClient#createKeyVersion.");
2329
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#createKeyVersion.");
1487
2330
  const operationName = "createKeyVersion";
1488
2331
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/CreateKeyVersion";
1489
2332
  const pathParams = {
@@ -1497,8 +2340,6 @@ class KmsManagementClient {
1497
2340
  };
1498
2341
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1499
2342
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKeyVersionRequest.retryConfiguration, specRetryConfiguration);
1500
- if (this.logger)
1501
- retrier.logger = this.logger;
1502
2343
  const request = yield oci_common_2.composeRequest({
1503
2344
  baseEndpoint: this._endpoint,
1504
2345
  defaultHeaders: this._defaultHeaders,
@@ -1550,12 +2391,11 @@ class KmsManagementClient {
1550
2391
  * @param DisableKeyRequest
1551
2392
  * @return DisableKeyResponse
1552
2393
  * @throws OciError when an error occurs
1553
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/DisableKey.ts.html |here} to see how to use DisableKey API.
2394
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/DisableKey.ts.html |here} to see how to use DisableKey API.
1554
2395
  */
1555
2396
  disableKey(disableKeyRequest) {
1556
2397
  return __awaiter(this, void 0, void 0, function* () {
1557
- if (this.logger)
1558
- this.logger.debug("Calling operation KmsManagementClient#disableKey.");
2398
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#disableKey.");
1559
2399
  const operationName = "disableKey";
1560
2400
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/DisableKey";
1561
2401
  const pathParams = {
@@ -1570,8 +2410,6 @@ class KmsManagementClient {
1570
2410
  };
1571
2411
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1572
2412
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableKeyRequest.retryConfiguration, specRetryConfiguration);
1573
- if (this.logger)
1574
- retrier.logger = this.logger;
1575
2413
  const request = yield oci_common_2.composeRequest({
1576
2414
  baseEndpoint: this._endpoint,
1577
2415
  defaultHeaders: this._defaultHeaders,
@@ -1622,12 +2460,11 @@ class KmsManagementClient {
1622
2460
  * @param EnableKeyRequest
1623
2461
  * @return EnableKeyResponse
1624
2462
  * @throws OciError when an error occurs
1625
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/EnableKey.ts.html |here} to see how to use EnableKey API.
2463
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/EnableKey.ts.html |here} to see how to use EnableKey API.
1626
2464
  */
1627
2465
  enableKey(enableKeyRequest) {
1628
2466
  return __awaiter(this, void 0, void 0, function* () {
1629
- if (this.logger)
1630
- this.logger.debug("Calling operation KmsManagementClient#enableKey.");
2467
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#enableKey.");
1631
2468
  const operationName = "enableKey";
1632
2469
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/EnableKey";
1633
2470
  const pathParams = {
@@ -1642,8 +2479,6 @@ class KmsManagementClient {
1642
2479
  };
1643
2480
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1644
2481
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableKeyRequest.retryConfiguration, specRetryConfiguration);
1645
- if (this.logger)
1646
- retrier.logger = this.logger;
1647
2482
  const request = yield oci_common_2.composeRequest({
1648
2483
  baseEndpoint: this._endpoint,
1649
2484
  defaultHeaders: this._defaultHeaders,
@@ -1693,12 +2528,11 @@ class KmsManagementClient {
1693
2528
  * @param GetKeyRequest
1694
2529
  * @return GetKeyResponse
1695
2530
  * @throws OciError when an error occurs
1696
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetKey.ts.html |here} to see how to use GetKey API.
2531
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetKey.ts.html |here} to see how to use GetKey API.
1697
2532
  */
1698
2533
  getKey(getKeyRequest) {
1699
2534
  return __awaiter(this, void 0, void 0, function* () {
1700
- if (this.logger)
1701
- this.logger.debug("Calling operation KmsManagementClient#getKey.");
2535
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#getKey.");
1702
2536
  const operationName = "getKey";
1703
2537
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/GetKey";
1704
2538
  const pathParams = {
@@ -1711,8 +2545,6 @@ class KmsManagementClient {
1711
2545
  };
1712
2546
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1713
2547
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKeyRequest.retryConfiguration, specRetryConfiguration);
1714
- if (this.logger)
1715
- retrier.logger = this.logger;
1716
2548
  const request = yield oci_common_2.composeRequest({
1717
2549
  baseEndpoint: this._endpoint,
1718
2550
  defaultHeaders: this._defaultHeaders,
@@ -1762,12 +2594,11 @@ class KmsManagementClient {
1762
2594
  * @param GetKeyVersionRequest
1763
2595
  * @return GetKeyVersionResponse
1764
2596
  * @throws OciError when an error occurs
1765
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetKeyVersion.ts.html |here} to see how to use GetKeyVersion API.
2597
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetKeyVersion.ts.html |here} to see how to use GetKeyVersion API.
1766
2598
  */
1767
2599
  getKeyVersion(getKeyVersionRequest) {
1768
2600
  return __awaiter(this, void 0, void 0, function* () {
1769
- if (this.logger)
1770
- this.logger.debug("Calling operation KmsManagementClient#getKeyVersion.");
2601
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#getKeyVersion.");
1771
2602
  const operationName = "getKeyVersion";
1772
2603
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/GetKeyVersion";
1773
2604
  const pathParams = {
@@ -1781,8 +2612,6 @@ class KmsManagementClient {
1781
2612
  };
1782
2613
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1783
2614
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKeyVersionRequest.retryConfiguration, specRetryConfiguration);
1784
- if (this.logger)
1785
- retrier.logger = this.logger;
1786
2615
  const request = yield oci_common_2.composeRequest({
1787
2616
  baseEndpoint: this._endpoint,
1788
2617
  defaultHeaders: this._defaultHeaders,
@@ -1830,12 +2659,11 @@ class KmsManagementClient {
1830
2659
  * @param GetReplicationStatusRequest
1831
2660
  * @return GetReplicationStatusResponse
1832
2661
  * @throws OciError when an error occurs
1833
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetReplicationStatus.ts.html |here} to see how to use GetReplicationStatus API.
2662
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetReplicationStatus.ts.html |here} to see how to use GetReplicationStatus API.
1834
2663
  */
1835
2664
  getReplicationStatus(getReplicationStatusRequest) {
1836
2665
  return __awaiter(this, void 0, void 0, function* () {
1837
- if (this.logger)
1838
- this.logger.debug("Calling operation KmsManagementClient#getReplicationStatus.");
2666
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#getReplicationStatus.");
1839
2667
  const operationName = "getReplicationStatus";
1840
2668
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/ReplicationStatusDetails/GetReplicationStatus";
1841
2669
  const pathParams = {
@@ -1848,8 +2676,6 @@ class KmsManagementClient {
1848
2676
  };
1849
2677
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1850
2678
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationStatusRequest.retryConfiguration, specRetryConfiguration);
1851
- if (this.logger)
1852
- retrier.logger = this.logger;
1853
2679
  const request = yield oci_common_2.composeRequest({
1854
2680
  baseEndpoint: this._endpoint,
1855
2681
  defaultHeaders: this._defaultHeaders,
@@ -1895,12 +2721,11 @@ class KmsManagementClient {
1895
2721
  * @param GetWrappingKeyRequest
1896
2722
  * @return GetWrappingKeyResponse
1897
2723
  * @throws OciError when an error occurs
1898
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetWrappingKey.ts.html |here} to see how to use GetWrappingKey API.
2724
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetWrappingKey.ts.html |here} to see how to use GetWrappingKey API.
1899
2725
  */
1900
2726
  getWrappingKey(getWrappingKeyRequest) {
1901
2727
  return __awaiter(this, void 0, void 0, function* () {
1902
- if (this.logger)
1903
- this.logger.debug("Calling operation KmsManagementClient#getWrappingKey.");
2728
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#getWrappingKey.");
1904
2729
  const operationName = "getWrappingKey";
1905
2730
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/WrappingKey/GetWrappingKey";
1906
2731
  const pathParams = {};
@@ -1911,8 +2736,6 @@ class KmsManagementClient {
1911
2736
  };
1912
2737
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1913
2738
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWrappingKeyRequest.retryConfiguration, specRetryConfiguration);
1914
- if (this.logger)
1915
- retrier.logger = this.logger;
1916
2739
  const request = yield oci_common_2.composeRequest({
1917
2740
  baseEndpoint: this._endpoint,
1918
2741
  defaultHeaders: this._defaultHeaders,
@@ -1962,12 +2785,11 @@ class KmsManagementClient {
1962
2785
  * @param ImportKeyRequest
1963
2786
  * @return ImportKeyResponse
1964
2787
  * @throws OciError when an error occurs
1965
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ImportKey.ts.html |here} to see how to use ImportKey API.
2788
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ImportKey.ts.html |here} to see how to use ImportKey API.
1966
2789
  */
1967
2790
  importKey(importKeyRequest) {
1968
2791
  return __awaiter(this, void 0, void 0, function* () {
1969
- if (this.logger)
1970
- this.logger.debug("Calling operation KmsManagementClient#importKey.");
2792
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#importKey.");
1971
2793
  const operationName = "importKey";
1972
2794
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/ImportKey";
1973
2795
  const pathParams = {};
@@ -1979,8 +2801,6 @@ class KmsManagementClient {
1979
2801
  };
1980
2802
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1981
2803
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importKeyRequest.retryConfiguration, specRetryConfiguration);
1982
- if (this.logger)
1983
- retrier.logger = this.logger;
1984
2804
  const request = yield oci_common_2.composeRequest({
1985
2805
  baseEndpoint: this._endpoint,
1986
2806
  defaultHeaders: this._defaultHeaders,
@@ -2031,12 +2851,11 @@ class KmsManagementClient {
2031
2851
  * @param ImportKeyVersionRequest
2032
2852
  * @return ImportKeyVersionResponse
2033
2853
  * @throws OciError when an error occurs
2034
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ImportKeyVersion.ts.html |here} to see how to use ImportKeyVersion API.
2854
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ImportKeyVersion.ts.html |here} to see how to use ImportKeyVersion API.
2035
2855
  */
2036
2856
  importKeyVersion(importKeyVersionRequest) {
2037
2857
  return __awaiter(this, void 0, void 0, function* () {
2038
- if (this.logger)
2039
- this.logger.debug("Calling operation KmsManagementClient#importKeyVersion.");
2858
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#importKeyVersion.");
2040
2859
  const operationName = "importKeyVersion";
2041
2860
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/ImportKeyVersion";
2042
2861
  const pathParams = {
@@ -2050,8 +2869,6 @@ class KmsManagementClient {
2050
2869
  };
2051
2870
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2052
2871
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, importKeyVersionRequest.retryConfiguration, specRetryConfiguration);
2053
- if (this.logger)
2054
- retrier.logger = this.logger;
2055
2872
  const request = yield oci_common_2.composeRequest({
2056
2873
  baseEndpoint: this._endpoint,
2057
2874
  defaultHeaders: this._defaultHeaders,
@@ -2103,12 +2920,11 @@ class KmsManagementClient {
2103
2920
  * @param ListKeyVersionsRequest
2104
2921
  * @return ListKeyVersionsResponse
2105
2922
  * @throws OciError when an error occurs
2106
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ListKeyVersions.ts.html |here} to see how to use ListKeyVersions API.
2923
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListKeyVersions.ts.html |here} to see how to use ListKeyVersions API.
2107
2924
  */
2108
2925
  listKeyVersions(listKeyVersionsRequest) {
2109
2926
  return __awaiter(this, void 0, void 0, function* () {
2110
- if (this.logger)
2111
- this.logger.debug("Calling operation KmsManagementClient#listKeyVersions.");
2927
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#listKeyVersions.");
2112
2928
  const operationName = "listKeyVersions";
2113
2929
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersionSummary/ListKeyVersions";
2114
2930
  const pathParams = {
@@ -2126,8 +2942,6 @@ class KmsManagementClient {
2126
2942
  };
2127
2943
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2128
2944
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeyVersionsRequest.retryConfiguration, specRetryConfiguration);
2129
- if (this.logger)
2130
- retrier.logger = this.logger;
2131
2945
  const request = yield oci_common_2.composeRequest({
2132
2946
  baseEndpoint: this._endpoint,
2133
2947
  defaultHeaders: this._defaultHeaders,
@@ -2217,12 +3031,11 @@ class KmsManagementClient {
2217
3031
  * @param ListKeysRequest
2218
3032
  * @return ListKeysResponse
2219
3033
  * @throws OciError when an error occurs
2220
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ListKeys.ts.html |here} to see how to use ListKeys API.
3034
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListKeys.ts.html |here} to see how to use ListKeys API.
2221
3035
  */
2222
3036
  listKeys(listKeysRequest) {
2223
3037
  return __awaiter(this, void 0, void 0, function* () {
2224
- if (this.logger)
2225
- this.logger.debug("Calling operation KmsManagementClient#listKeys.");
3038
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#listKeys.");
2226
3039
  const operationName = "listKeys";
2227
3040
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeySummary/ListKeys";
2228
3041
  const pathParams = {};
@@ -2243,8 +3056,6 @@ class KmsManagementClient {
2243
3056
  };
2244
3057
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2245
3058
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKeysRequest.retryConfiguration, specRetryConfiguration);
2246
- if (this.logger)
2247
- retrier.logger = this.logger;
2248
3059
  const request = yield oci_common_2.composeRequest({
2249
3060
  baseEndpoint: this._endpoint,
2250
3061
  defaultHeaders: this._defaultHeaders,
@@ -2331,12 +3142,11 @@ class KmsManagementClient {
2331
3142
  * @param RestoreKeyFromFileRequest
2332
3143
  * @return RestoreKeyFromFileResponse
2333
3144
  * @throws OciError when an error occurs
2334
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/RestoreKeyFromFile.ts.html |here} to see how to use RestoreKeyFromFile API.
3145
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/RestoreKeyFromFile.ts.html |here} to see how to use RestoreKeyFromFile API.
2335
3146
  */
2336
3147
  restoreKeyFromFile(restoreKeyFromFileRequest) {
2337
3148
  return __awaiter(this, void 0, void 0, function* () {
2338
- if (this.logger)
2339
- this.logger.debug("Calling operation KmsManagementClient#restoreKeyFromFile.");
3149
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#restoreKeyFromFile.");
2340
3150
  const operationName = "restoreKeyFromFile";
2341
3151
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/RestoreKeyFromFile";
2342
3152
  const pathParams = {};
@@ -2350,8 +3160,6 @@ class KmsManagementClient {
2350
3160
  };
2351
3161
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2352
3162
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromFileRequest.retryConfiguration, specRetryConfiguration);
2353
- if (this.logger)
2354
- retrier.logger = this.logger;
2355
3163
  const request = yield oci_common_2.composeRequest({
2356
3164
  baseEndpoint: this._endpoint,
2357
3165
  defaultHeaders: this._defaultHeaders,
@@ -2410,12 +3218,11 @@ class KmsManagementClient {
2410
3218
  * @param RestoreKeyFromObjectStoreRequest
2411
3219
  * @return RestoreKeyFromObjectStoreResponse
2412
3220
  * @throws OciError when an error occurs
2413
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/RestoreKeyFromObjectStore.ts.html |here} to see how to use RestoreKeyFromObjectStore API.
3221
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/RestoreKeyFromObjectStore.ts.html |here} to see how to use RestoreKeyFromObjectStore API.
2414
3222
  */
2415
3223
  restoreKeyFromObjectStore(restoreKeyFromObjectStoreRequest) {
2416
3224
  return __awaiter(this, void 0, void 0, function* () {
2417
- if (this.logger)
2418
- this.logger.debug("Calling operation KmsManagementClient#restoreKeyFromObjectStore.");
3225
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#restoreKeyFromObjectStore.");
2419
3226
  const operationName = "restoreKeyFromObjectStore";
2420
3227
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/RestoreKeyFromObjectStore";
2421
3228
  const pathParams = {};
@@ -2428,8 +3235,6 @@ class KmsManagementClient {
2428
3235
  };
2429
3236
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2430
3237
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreKeyFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
2431
- if (this.logger)
2432
- retrier.logger = this.logger;
2433
3238
  const request = yield oci_common_2.composeRequest({
2434
3239
  baseEndpoint: this._endpoint,
2435
3240
  defaultHeaders: this._defaultHeaders,
@@ -2486,12 +3291,11 @@ class KmsManagementClient {
2486
3291
  * @param ScheduleKeyDeletionRequest
2487
3292
  * @return ScheduleKeyDeletionResponse
2488
3293
  * @throws OciError when an error occurs
2489
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ScheduleKeyDeletion.ts.html |here} to see how to use ScheduleKeyDeletion API.
3294
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ScheduleKeyDeletion.ts.html |here} to see how to use ScheduleKeyDeletion API.
2490
3295
  */
2491
3296
  scheduleKeyDeletion(scheduleKeyDeletionRequest) {
2492
3297
  return __awaiter(this, void 0, void 0, function* () {
2493
- if (this.logger)
2494
- this.logger.debug("Calling operation KmsManagementClient#scheduleKeyDeletion.");
3298
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#scheduleKeyDeletion.");
2495
3299
  const operationName = "scheduleKeyDeletion";
2496
3300
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/ScheduleKeyDeletion";
2497
3301
  const pathParams = {
@@ -2506,8 +3310,6 @@ class KmsManagementClient {
2506
3310
  };
2507
3311
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2508
3312
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyDeletionRequest.retryConfiguration, specRetryConfiguration);
2509
- if (this.logger)
2510
- retrier.logger = this.logger;
2511
3313
  const request = yield oci_common_2.composeRequest({
2512
3314
  baseEndpoint: this._endpoint,
2513
3315
  defaultHeaders: this._defaultHeaders,
@@ -2559,12 +3361,11 @@ class KmsManagementClient {
2559
3361
  * @param ScheduleKeyVersionDeletionRequest
2560
3362
  * @return ScheduleKeyVersionDeletionResponse
2561
3363
  * @throws OciError when an error occurs
2562
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ScheduleKeyVersionDeletion.ts.html |here} to see how to use ScheduleKeyVersionDeletion API.
3364
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ScheduleKeyVersionDeletion.ts.html |here} to see how to use ScheduleKeyVersionDeletion API.
2563
3365
  */
2564
3366
  scheduleKeyVersionDeletion(scheduleKeyVersionDeletionRequest) {
2565
3367
  return __awaiter(this, void 0, void 0, function* () {
2566
- if (this.logger)
2567
- this.logger.debug("Calling operation KmsManagementClient#scheduleKeyVersionDeletion.");
3368
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#scheduleKeyVersionDeletion.");
2568
3369
  const operationName = "scheduleKeyVersionDeletion";
2569
3370
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/KeyVersion/ScheduleKeyVersionDeletion";
2570
3371
  const pathParams = {
@@ -2580,8 +3381,6 @@ class KmsManagementClient {
2580
3381
  };
2581
3382
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2582
3383
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleKeyVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
2583
- if (this.logger)
2584
- retrier.logger = this.logger;
2585
3384
  const request = yield oci_common_2.composeRequest({
2586
3385
  baseEndpoint: this._endpoint,
2587
3386
  defaultHeaders: this._defaultHeaders,
@@ -2634,12 +3433,11 @@ class KmsManagementClient {
2634
3433
  * @param UpdateKeyRequest
2635
3434
  * @return UpdateKeyResponse
2636
3435
  * @throws OciError when an error occurs
2637
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/UpdateKey.ts.html |here} to see how to use UpdateKey API.
3436
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/UpdateKey.ts.html |here} to see how to use UpdateKey API.
2638
3437
  */
2639
3438
  updateKey(updateKeyRequest) {
2640
3439
  return __awaiter(this, void 0, void 0, function* () {
2641
- if (this.logger)
2642
- this.logger.debug("Calling operation KmsManagementClient#updateKey.");
3440
+ oci_common_2.logger.debug("Calling operation KmsManagementClient#updateKey.");
2643
3441
  const operationName = "updateKey";
2644
3442
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Key/UpdateKey";
2645
3443
  const pathParams = {
@@ -2653,8 +3451,6 @@ class KmsManagementClient {
2653
3451
  };
2654
3452
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2655
3453
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKeyRequest.retryConfiguration, specRetryConfiguration);
2656
- if (this.logger)
2657
- retrier.logger = this.logger;
2658
3454
  const request = yield oci_common_2.composeRequest({
2659
3455
  baseEndpoint: this._endpoint,
2660
3456
  defaultHeaders: this._defaultHeaders,
@@ -2763,11 +3559,7 @@ class KmsVaultClient {
2763
3559
  */
2764
3560
  set endpoint(endpoint) {
2765
3561
  this._endpoint = endpoint;
2766
- if (this.logger)
2767
- this.logger.info(`KmsVaultClient endpoint set to ${this._endpoint}`);
2768
- }
2769
- get logger() {
2770
- return common.LOG.logger;
3562
+ oci_common_2.logger.info(`KmsVaultClient endpoint set to ${this._endpoint}`);
2771
3563
  }
2772
3564
  /**
2773
3565
  * Determines whether realm specific endpoint should be used or not.
@@ -2776,8 +3568,7 @@ class KmsVaultClient {
2776
3568
  */
2777
3569
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2778
3570
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2779
- if (this.logger)
2780
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3571
+ oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2781
3572
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2782
3573
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(KmsVaultClient.serviceEndpointTemplate, this._region, KmsVaultClient.endpointServiceName);
2783
3574
  }
@@ -2846,12 +3637,11 @@ class KmsVaultClient {
2846
3637
  * @param BackupVaultRequest
2847
3638
  * @return BackupVaultResponse
2848
3639
  * @throws OciError when an error occurs
2849
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/BackupVault.ts.html |here} to see how to use BackupVault API.
3640
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/BackupVault.ts.html |here} to see how to use BackupVault API.
2850
3641
  */
2851
3642
  backupVault(backupVaultRequest) {
2852
3643
  return __awaiter(this, void 0, void 0, function* () {
2853
- if (this.logger)
2854
- this.logger.debug("Calling operation KmsVaultClient#backupVault.");
3644
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#backupVault.");
2855
3645
  const operationName = "backupVault";
2856
3646
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/BackupVault";
2857
3647
  const pathParams = {
@@ -2866,8 +3656,6 @@ class KmsVaultClient {
2866
3656
  };
2867
3657
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2868
3658
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, backupVaultRequest.retryConfiguration, specRetryConfiguration);
2869
- if (this.logger)
2870
- retrier.logger = this.logger;
2871
3659
  const request = yield oci_common_2.composeRequest({
2872
3660
  baseEndpoint: this._endpoint,
2873
3661
  defaultHeaders: this._defaultHeaders,
@@ -2926,12 +3714,11 @@ class KmsVaultClient {
2926
3714
  * @param CancelVaultDeletionRequest
2927
3715
  * @return CancelVaultDeletionResponse
2928
3716
  * @throws OciError when an error occurs
2929
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CancelVaultDeletion.ts.html |here} to see how to use CancelVaultDeletion API.
3717
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CancelVaultDeletion.ts.html |here} to see how to use CancelVaultDeletion API.
2930
3718
  */
2931
3719
  cancelVaultDeletion(cancelVaultDeletionRequest) {
2932
3720
  return __awaiter(this, void 0, void 0, function* () {
2933
- if (this.logger)
2934
- this.logger.debug("Calling operation KmsVaultClient#cancelVaultDeletion.");
3721
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#cancelVaultDeletion.");
2935
3722
  const operationName = "cancelVaultDeletion";
2936
3723
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/CancelVaultDeletion";
2937
3724
  const pathParams = {
@@ -2946,8 +3733,6 @@ class KmsVaultClient {
2946
3733
  };
2947
3734
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
2948
3735
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
2949
- if (this.logger)
2950
- retrier.logger = this.logger;
2951
3736
  const request = yield oci_common_2.composeRequest({
2952
3737
  baseEndpoint: this._endpoint,
2953
3738
  defaultHeaders: this._defaultHeaders,
@@ -3000,12 +3785,11 @@ class KmsVaultClient {
3000
3785
  * @param ChangeVaultCompartmentRequest
3001
3786
  * @return ChangeVaultCompartmentResponse
3002
3787
  * @throws OciError when an error occurs
3003
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ChangeVaultCompartment.ts.html |here} to see how to use ChangeVaultCompartment API.
3788
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ChangeVaultCompartment.ts.html |here} to see how to use ChangeVaultCompartment API.
3004
3789
  */
3005
3790
  changeVaultCompartment(changeVaultCompartmentRequest) {
3006
3791
  return __awaiter(this, void 0, void 0, function* () {
3007
- if (this.logger)
3008
- this.logger.debug("Calling operation KmsVaultClient#changeVaultCompartment.");
3792
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#changeVaultCompartment.");
3009
3793
  const operationName = "changeVaultCompartment";
3010
3794
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/ChangeVaultCompartment";
3011
3795
  const pathParams = {
@@ -3020,8 +3804,6 @@ class KmsVaultClient {
3020
3804
  };
3021
3805
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3022
3806
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeVaultCompartmentRequest.retryConfiguration, specRetryConfiguration);
3023
- if (this.logger)
3024
- retrier.logger = this.logger;
3025
3807
  const request = yield oci_common_2.composeRequest({
3026
3808
  baseEndpoint: this._endpoint,
3027
3809
  defaultHeaders: this._defaultHeaders,
@@ -3071,12 +3853,11 @@ class KmsVaultClient {
3071
3853
  * @param CreateVaultRequest
3072
3854
  * @return CreateVaultResponse
3073
3855
  * @throws OciError when an error occurs
3074
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CreateVault.ts.html |here} to see how to use CreateVault API.
3856
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CreateVault.ts.html |here} to see how to use CreateVault API.
3075
3857
  */
3076
3858
  createVault(createVaultRequest) {
3077
3859
  return __awaiter(this, void 0, void 0, function* () {
3078
- if (this.logger)
3079
- this.logger.debug("Calling operation KmsVaultClient#createVault.");
3860
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#createVault.");
3080
3861
  const operationName = "createVault";
3081
3862
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/CreateVault";
3082
3863
  const pathParams = {};
@@ -3088,8 +3869,6 @@ class KmsVaultClient {
3088
3869
  };
3089
3870
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3090
3871
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultRequest.retryConfiguration, specRetryConfiguration);
3091
- if (this.logger)
3092
- retrier.logger = this.logger;
3093
3872
  const request = yield oci_common_2.composeRequest({
3094
3873
  baseEndpoint: this._endpoint,
3095
3874
  defaultHeaders: this._defaultHeaders,
@@ -3144,12 +3923,11 @@ class KmsVaultClient {
3144
3923
  * @param CreateVaultReplicaRequest
3145
3924
  * @return CreateVaultReplicaResponse
3146
3925
  * @throws OciError when an error occurs
3147
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/CreateVaultReplica.ts.html |here} to see how to use CreateVaultReplica API.
3926
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/CreateVaultReplica.ts.html |here} to see how to use CreateVaultReplica API.
3148
3927
  */
3149
3928
  createVaultReplica(createVaultReplicaRequest) {
3150
3929
  return __awaiter(this, void 0, void 0, function* () {
3151
- if (this.logger)
3152
- this.logger.debug("Calling operation KmsVaultClient#createVaultReplica.");
3930
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#createVaultReplica.");
3153
3931
  const operationName = "createVaultReplica";
3154
3932
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/CreateVaultReplica";
3155
3933
  const pathParams = {
@@ -3164,8 +3942,6 @@ class KmsVaultClient {
3164
3942
  };
3165
3943
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3166
3944
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
3167
- if (this.logger)
3168
- retrier.logger = this.logger;
3169
3945
  const request = yield oci_common_2.composeRequest({
3170
3946
  baseEndpoint: this._endpoint,
3171
3947
  defaultHeaders: this._defaultHeaders,
@@ -3212,12 +3988,11 @@ class KmsVaultClient {
3212
3988
  * @param DeleteVaultReplicaRequest
3213
3989
  * @return DeleteVaultReplicaResponse
3214
3990
  * @throws OciError when an error occurs
3215
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/DeleteVaultReplica.ts.html |here} to see how to use DeleteVaultReplica API.
3991
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/DeleteVaultReplica.ts.html |here} to see how to use DeleteVaultReplica API.
3216
3992
  */
3217
3993
  deleteVaultReplica(deleteVaultReplicaRequest) {
3218
3994
  return __awaiter(this, void 0, void 0, function* () {
3219
- if (this.logger)
3220
- this.logger.debug("Calling operation KmsVaultClient#deleteVaultReplica.");
3995
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#deleteVaultReplica.");
3221
3996
  const operationName = "deleteVaultReplica";
3222
3997
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/DeleteVaultReplica";
3223
3998
  const pathParams = {
@@ -3232,8 +4007,6 @@ class KmsVaultClient {
3232
4007
  };
3233
4008
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3234
4009
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVaultReplicaRequest.retryConfiguration, specRetryConfiguration);
3235
- if (this.logger)
3236
- retrier.logger = this.logger;
3237
4010
  const request = yield oci_common_2.composeRequest({
3238
4011
  baseEndpoint: this._endpoint,
3239
4012
  defaultHeaders: this._defaultHeaders,
@@ -3280,12 +4053,11 @@ class KmsVaultClient {
3280
4053
  * @param GetVaultRequest
3281
4054
  * @return GetVaultResponse
3282
4055
  * @throws OciError when an error occurs
3283
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetVault.ts.html |here} to see how to use GetVault API.
4056
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetVault.ts.html |here} to see how to use GetVault API.
3284
4057
  */
3285
4058
  getVault(getVaultRequest) {
3286
4059
  return __awaiter(this, void 0, void 0, function* () {
3287
- if (this.logger)
3288
- this.logger.debug("Calling operation KmsVaultClient#getVault.");
4060
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#getVault.");
3289
4061
  const operationName = "getVault";
3290
4062
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/GetVault";
3291
4063
  const pathParams = {
@@ -3298,8 +4070,6 @@ class KmsVaultClient {
3298
4070
  };
3299
4071
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3300
4072
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultRequest.retryConfiguration, specRetryConfiguration);
3301
- if (this.logger)
3302
- retrier.logger = this.logger;
3303
4073
  const request = yield oci_common_2.composeRequest({
3304
4074
  baseEndpoint: this._endpoint,
3305
4075
  defaultHeaders: this._defaultHeaders,
@@ -3344,12 +4114,11 @@ class KmsVaultClient {
3344
4114
  * @param GetVaultUsageRequest
3345
4115
  * @return GetVaultUsageResponse
3346
4116
  * @throws OciError when an error occurs
3347
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/GetVaultUsage.ts.html |here} to see how to use GetVaultUsage API.
4117
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/GetVaultUsage.ts.html |here} to see how to use GetVaultUsage API.
3348
4118
  */
3349
4119
  getVaultUsage(getVaultUsageRequest) {
3350
4120
  return __awaiter(this, void 0, void 0, function* () {
3351
- if (this.logger)
3352
- this.logger.debug("Calling operation KmsVaultClient#getVaultUsage.");
4121
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#getVaultUsage.");
3353
4122
  const operationName = "getVaultUsage";
3354
4123
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VaultUsage/GetVaultUsage";
3355
4124
  const pathParams = {
@@ -3362,8 +4131,6 @@ class KmsVaultClient {
3362
4131
  };
3363
4132
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3364
4133
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVaultUsageRequest.retryConfiguration, specRetryConfiguration);
3365
- if (this.logger)
3366
- retrier.logger = this.logger;
3367
4134
  const request = yield oci_common_2.composeRequest({
3368
4135
  baseEndpoint: this._endpoint,
3369
4136
  defaultHeaders: this._defaultHeaders,
@@ -3408,12 +4175,11 @@ class KmsVaultClient {
3408
4175
  * @param ListVaultReplicasRequest
3409
4176
  * @return ListVaultReplicasResponse
3410
4177
  * @throws OciError when an error occurs
3411
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ListVaultReplicas.ts.html |here} to see how to use ListVaultReplicas API.
4178
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListVaultReplicas.ts.html |here} to see how to use ListVaultReplicas API.
3412
4179
  */
3413
4180
  listVaultReplicas(listVaultReplicasRequest) {
3414
4181
  return __awaiter(this, void 0, void 0, function* () {
3415
- if (this.logger)
3416
- this.logger.debug("Calling operation KmsVaultClient#listVaultReplicas.");
4182
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#listVaultReplicas.");
3417
4183
  const operationName = "listVaultReplicas";
3418
4184
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/ListVaultReplicas";
3419
4185
  const pathParams = {
@@ -3433,8 +4199,6 @@ class KmsVaultClient {
3433
4199
  };
3434
4200
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3435
4201
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultReplicasRequest.retryConfiguration, specRetryConfiguration);
3436
- if (this.logger)
3437
- retrier.logger = this.logger;
3438
4202
  const request = yield oci_common_2.composeRequest({
3439
4203
  baseEndpoint: this._endpoint,
3440
4204
  defaultHeaders: this._defaultHeaders,
@@ -3529,12 +4293,11 @@ class KmsVaultClient {
3529
4293
  * @param ListVaultsRequest
3530
4294
  * @return ListVaultsResponse
3531
4295
  * @throws OciError when an error occurs
3532
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ListVaults.ts.html |here} to see how to use ListVaults API.
4296
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ListVaults.ts.html |here} to see how to use ListVaults API.
3533
4297
  */
3534
4298
  listVaults(listVaultsRequest) {
3535
4299
  return __awaiter(this, void 0, void 0, function* () {
3536
- if (this.logger)
3537
- this.logger.debug("Calling operation KmsVaultClient#listVaults.");
4300
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#listVaults.");
3538
4301
  const operationName = "listVaults";
3539
4302
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/VaultSummary/ListVaults";
3540
4303
  const pathParams = {};
@@ -3551,8 +4314,6 @@ class KmsVaultClient {
3551
4314
  };
3552
4315
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3553
4316
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVaultsRequest.retryConfiguration, specRetryConfiguration);
3554
- if (this.logger)
3555
- retrier.logger = this.logger;
3556
4317
  const request = yield oci_common_2.composeRequest({
3557
4318
  baseEndpoint: this._endpoint,
3558
4319
  defaultHeaders: this._defaultHeaders,
@@ -3639,12 +4400,11 @@ class KmsVaultClient {
3639
4400
  * @param RestoreVaultFromFileRequest
3640
4401
  * @return RestoreVaultFromFileResponse
3641
4402
  * @throws OciError when an error occurs
3642
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/RestoreVaultFromFile.ts.html |here} to see how to use RestoreVaultFromFile API.
4403
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/RestoreVaultFromFile.ts.html |here} to see how to use RestoreVaultFromFile API.
3643
4404
  */
3644
4405
  restoreVaultFromFile(restoreVaultFromFileRequest) {
3645
4406
  return __awaiter(this, void 0, void 0, function* () {
3646
- if (this.logger)
3647
- this.logger.debug("Calling operation KmsVaultClient#restoreVaultFromFile.");
4407
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#restoreVaultFromFile.");
3648
4408
  const operationName = "restoreVaultFromFile";
3649
4409
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/RestoreVaultFromFile";
3650
4410
  const pathParams = {};
@@ -3660,8 +4420,6 @@ class KmsVaultClient {
3660
4420
  };
3661
4421
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3662
4422
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromFileRequest.retryConfiguration, specRetryConfiguration);
3663
- if (this.logger)
3664
- retrier.logger = this.logger;
3665
4423
  const request = yield oci_common_2.composeRequest({
3666
4424
  baseEndpoint: this._endpoint,
3667
4425
  defaultHeaders: this._defaultHeaders,
@@ -3720,12 +4478,11 @@ class KmsVaultClient {
3720
4478
  * @param RestoreVaultFromObjectStoreRequest
3721
4479
  * @return RestoreVaultFromObjectStoreResponse
3722
4480
  * @throws OciError when an error occurs
3723
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/RestoreVaultFromObjectStore.ts.html |here} to see how to use RestoreVaultFromObjectStore API.
4481
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/RestoreVaultFromObjectStore.ts.html |here} to see how to use RestoreVaultFromObjectStore API.
3724
4482
  */
3725
4483
  restoreVaultFromObjectStore(restoreVaultFromObjectStoreRequest) {
3726
4484
  return __awaiter(this, void 0, void 0, function* () {
3727
- if (this.logger)
3728
- this.logger.debug("Calling operation KmsVaultClient#restoreVaultFromObjectStore.");
4485
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#restoreVaultFromObjectStore.");
3729
4486
  const operationName = "restoreVaultFromObjectStore";
3730
4487
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/RestoreVaultFromObjectStore";
3731
4488
  const pathParams = {};
@@ -3740,8 +4497,6 @@ class KmsVaultClient {
3740
4497
  };
3741
4498
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3742
4499
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreVaultFromObjectStoreRequest.retryConfiguration, specRetryConfiguration);
3743
- if (this.logger)
3744
- retrier.logger = this.logger;
3745
4500
  const request = yield oci_common_2.composeRequest({
3746
4501
  baseEndpoint: this._endpoint,
3747
4502
  defaultHeaders: this._defaultHeaders,
@@ -3801,12 +4556,11 @@ class KmsVaultClient {
3801
4556
  * @param ScheduleVaultDeletionRequest
3802
4557
  * @return ScheduleVaultDeletionResponse
3803
4558
  * @throws OciError when an error occurs
3804
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/ScheduleVaultDeletion.ts.html |here} to see how to use ScheduleVaultDeletion API.
4559
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/ScheduleVaultDeletion.ts.html |here} to see how to use ScheduleVaultDeletion API.
3805
4560
  */
3806
4561
  scheduleVaultDeletion(scheduleVaultDeletionRequest) {
3807
4562
  return __awaiter(this, void 0, void 0, function* () {
3808
- if (this.logger)
3809
- this.logger.debug("Calling operation KmsVaultClient#scheduleVaultDeletion.");
4563
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#scheduleVaultDeletion.");
3810
4564
  const operationName = "scheduleVaultDeletion";
3811
4565
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/ScheduleVaultDeletion";
3812
4566
  const pathParams = {
@@ -3821,8 +4575,6 @@ class KmsVaultClient {
3821
4575
  };
3822
4576
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3823
4577
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleVaultDeletionRequest.retryConfiguration, specRetryConfiguration);
3824
- if (this.logger)
3825
- retrier.logger = this.logger;
3826
4578
  const request = yield oci_common_2.composeRequest({
3827
4579
  baseEndpoint: this._endpoint,
3828
4580
  defaultHeaders: this._defaultHeaders,
@@ -3875,12 +4627,11 @@ class KmsVaultClient {
3875
4627
  * @param UpdateVaultRequest
3876
4628
  * @return UpdateVaultResponse
3877
4629
  * @throws OciError when an error occurs
3878
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/keymanagement/UpdateVault.ts.html |here} to see how to use UpdateVault API.
4630
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/keymanagement/UpdateVault.ts.html |here} to see how to use UpdateVault API.
3879
4631
  */
3880
4632
  updateVault(updateVaultRequest) {
3881
4633
  return __awaiter(this, void 0, void 0, function* () {
3882
- if (this.logger)
3883
- this.logger.debug("Calling operation KmsVaultClient#updateVault.");
4634
+ oci_common_2.logger.debug("Calling operation KmsVaultClient#updateVault.");
3884
4635
  const operationName = "updateVault";
3885
4636
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/key/release/Vault/UpdateVault";
3886
4637
  const pathParams = {
@@ -3894,8 +4645,6 @@ class KmsVaultClient {
3894
4645
  };
3895
4646
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
3896
4647
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVaultRequest.retryConfiguration, specRetryConfiguration);
3897
- if (this.logger)
3898
- retrier.logger = this.logger;
3899
4648
  const request = yield oci_common_2.composeRequest({
3900
4649
  baseEndpoint: this._endpoint,
3901
4650
  defaultHeaders: this._defaultHeaders,