oci-databasetools 2.119.1 → 2.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/lib/client.d.ts +97 -0
  2. package/lib/client.js +654 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/databasetools-waiter.d.ts +8 -0
  5. package/lib/databasetools-waiter.js +12 -0
  6. package/lib/databasetools-waiter.js.map +1 -1
  7. package/lib/model/change-database-tools-identity-compartment-details.d.ts +25 -0
  8. package/lib/model/change-database-tools-identity-compartment-details.js +29 -0
  9. package/lib/model/change-database-tools-identity-compartment-details.js.map +1 -0
  10. package/lib/model/create-database-tools-connection-details.d.ts +4 -0
  11. package/lib/model/create-database-tools-connection-details.js.map +1 -1
  12. package/lib/model/create-database-tools-identity-details.d.ts +57 -0
  13. package/lib/model/create-database-tools-identity-details.js +80 -0
  14. package/lib/model/create-database-tools-identity-details.js.map +1 -0
  15. package/lib/model/create-database-tools-identity-oracle-database-resource-principal-details.d.ts +28 -0
  16. package/lib/model/create-database-tools-identity-oracle-database-resource-principal-details.js +54 -0
  17. package/lib/model/create-database-tools-identity-oracle-database-resource-principal-details.js.map +1 -0
  18. package/lib/model/database-tools-connection-summary.d.ts +8 -0
  19. package/lib/model/database-tools-connection-summary.js.map +1 -1
  20. package/lib/model/database-tools-connection.d.ts +8 -0
  21. package/lib/model/database-tools-connection.js.map +1 -1
  22. package/lib/model/database-tools-identity-collection.d.ts +26 -0
  23. package/lib/model/database-tools-identity-collection.js +61 -0
  24. package/lib/model/database-tools-identity-collection.js.map +1 -0
  25. package/lib/model/database-tools-identity-lifecycle-state.d.ts +33 -0
  26. package/lib/model/database-tools-identity-lifecycle-state.js +44 -0
  27. package/lib/model/database-tools-identity-lifecycle-state.js.map +1 -0
  28. package/lib/model/database-tools-identity-oracle-database-resource-principal-summary.d.ts +28 -0
  29. package/lib/model/database-tools-identity-oracle-database-resource-principal-summary.js +54 -0
  30. package/lib/model/database-tools-identity-oracle-database-resource-principal-summary.js.map +1 -0
  31. package/lib/model/database-tools-identity-oracle-database-resource-principal.d.ts +28 -0
  32. package/lib/model/database-tools-identity-oracle-database-resource-principal.js +54 -0
  33. package/lib/model/database-tools-identity-oracle-database-resource-principal.js.map +1 -0
  34. package/lib/model/database-tools-identity-status.d.ts +28 -0
  35. package/lib/model/database-tools-identity-status.js +39 -0
  36. package/lib/model/database-tools-identity-status.js.map +1 -0
  37. package/lib/model/database-tools-identity-summary.d.ts +87 -0
  38. package/lib/model/database-tools-identity-summary.js +80 -0
  39. package/lib/model/database-tools-identity-summary.js.map +1 -0
  40. package/lib/model/database-tools-identity.d.ts +87 -0
  41. package/lib/model/database-tools-identity.js +80 -0
  42. package/lib/model/database-tools-identity.js.map +1 -0
  43. package/lib/model/identity-type.d.ts +6 -1
  44. package/lib/model/identity-type.js +5 -0
  45. package/lib/model/identity-type.js.map +1 -1
  46. package/lib/model/index.d.ts +40 -0
  47. package/lib/model/index.js +44 -4
  48. package/lib/model/index.js.map +1 -1
  49. package/lib/model/key-store-type.d.ts +1 -0
  50. package/lib/model/key-store-type.js +1 -0
  51. package/lib/model/key-store-type.js.map +1 -1
  52. package/lib/model/operation-type.d.ts +4 -0
  53. package/lib/model/operation-type.js +4 -0
  54. package/lib/model/operation-type.js.map +1 -1
  55. package/lib/model/refresh-database-tools-identity-credential-details.d.ts +22 -0
  56. package/lib/model/refresh-database-tools-identity-credential-details.js +68 -0
  57. package/lib/model/refresh-database-tools-identity-credential-details.js.map +1 -0
  58. package/lib/model/refresh-database-tools-identity-oracle-database-resource-principal-credential-details.d.ts +24 -0
  59. package/lib/model/refresh-database-tools-identity-oracle-database-resource-principal-credential-details.js +54 -0
  60. package/lib/model/refresh-database-tools-identity-oracle-database-resource-principal-credential-details.js.map +1 -0
  61. package/lib/model/runtime-identity.d.ts +28 -0
  62. package/lib/model/runtime-identity.js +39 -0
  63. package/lib/model/runtime-identity.js.map +1 -0
  64. package/lib/model/update-database-tools-identity-details.d.ts +44 -0
  65. package/lib/model/update-database-tools-identity-details.js +68 -0
  66. package/lib/model/update-database-tools-identity-details.js.map +1 -0
  67. package/lib/model/update-database-tools-identity-oracle-database-resource-principal-details.d.ts +24 -0
  68. package/lib/model/update-database-tools-identity-oracle-database-resource-principal-details.js +54 -0
  69. package/lib/model/update-database-tools-identity-oracle-database-resource-principal-details.js.map +1 -0
  70. package/lib/model/validate-database-tools-connection-oracle-database-result.d.ts +8 -0
  71. package/lib/model/validate-database-tools-connection-oracle-database-result.js +14 -2
  72. package/lib/model/validate-database-tools-connection-oracle-database-result.js.map +1 -1
  73. package/lib/model/validate-database-tools-identity-credential-details.d.ts +22 -0
  74. package/lib/model/validate-database-tools-identity-credential-details.js +68 -0
  75. package/lib/model/validate-database-tools-identity-credential-details.js.map +1 -0
  76. package/lib/model/validate-database-tools-identity-credential-oracle-database-resource-principal-details.d.ts +24 -0
  77. package/lib/model/validate-database-tools-identity-credential-oracle-database-resource-principal-details.js +54 -0
  78. package/lib/model/validate-database-tools-identity-credential-oracle-database-resource-principal-details.js.map +1 -0
  79. package/lib/model/validate-database-tools-identity-credential-oracle-database-resource-principal-result.d.ts +24 -0
  80. package/lib/model/validate-database-tools-identity-credential-oracle-database-resource-principal-result.js +54 -0
  81. package/lib/model/validate-database-tools-identity-credential-oracle-database-resource-principal-result.js.map +1 -0
  82. package/lib/model/validate-database-tools-identity-credential-result.d.ts +38 -0
  83. package/lib/model/validate-database-tools-identity-credential-result.js +68 -0
  84. package/lib/model/validate-database-tools-identity-credential-result.js.map +1 -0
  85. package/lib/model/validation-identity-status.d.ts +34 -0
  86. package/lib/model/validation-identity-status.js +29 -0
  87. package/lib/model/validation-identity-status.js.map +1 -0
  88. package/lib/request/add-database-tools-identity-lock-request.d.ts +40 -0
  89. package/lib/request/add-database-tools-identity-lock-request.js +15 -0
  90. package/lib/request/add-database-tools-identity-lock-request.js.map +1 -0
  91. package/lib/request/change-database-tools-identity-compartment-request.d.ts +44 -0
  92. package/lib/request/change-database-tools-identity-compartment-request.js +15 -0
  93. package/lib/request/change-database-tools-identity-compartment-request.js.map +1 -0
  94. package/lib/request/create-database-tools-identity-request.d.ts +38 -0
  95. package/lib/request/create-database-tools-identity-request.js +15 -0
  96. package/lib/request/create-database-tools-identity-request.js.map +1 -0
  97. package/lib/request/delete-database-tools-identity-request.d.ts +39 -0
  98. package/lib/request/delete-database-tools-identity-request.js +15 -0
  99. package/lib/request/delete-database-tools-identity-request.js.map +1 -0
  100. package/lib/request/get-database-tools-identity-request.d.ts +26 -0
  101. package/lib/request/get-database-tools-identity-request.js +15 -0
  102. package/lib/request/get-database-tools-identity-request.js.map +1 -0
  103. package/lib/request/index.d.ts +20 -0
  104. package/lib/request/index.js +3 -1
  105. package/lib/request/index.js.map +1 -1
  106. package/lib/request/list-database-tools-connections-request.d.ts +4 -0
  107. package/lib/request/list-database-tools-connections-request.js.map +1 -1
  108. package/lib/request/list-database-tools-identities-request.d.ts +66 -0
  109. package/lib/request/list-database-tools-identities-request.js +24 -0
  110. package/lib/request/list-database-tools-identities-request.js.map +1 -0
  111. package/lib/request/refresh-database-tools-identity-credential-request.d.ts +40 -0
  112. package/lib/request/refresh-database-tools-identity-credential-request.js +15 -0
  113. package/lib/request/refresh-database-tools-identity-credential-request.js.map +1 -0
  114. package/lib/request/remove-database-tools-identity-lock-request.d.ts +40 -0
  115. package/lib/request/remove-database-tools-identity-lock-request.js +15 -0
  116. package/lib/request/remove-database-tools-identity-lock-request.js.map +1 -0
  117. package/lib/request/update-database-tools-identity-request.d.ts +44 -0
  118. package/lib/request/update-database-tools-identity-request.js +15 -0
  119. package/lib/request/update-database-tools-identity-request.js.map +1 -0
  120. package/lib/request/validate-database-tools-identity-credential-request.d.ts +40 -0
  121. package/lib/request/validate-database-tools-identity-credential-request.js +15 -0
  122. package/lib/request/validate-database-tools-identity-credential-request.js.map +1 -0
  123. package/lib/response/add-database-tools-identity-lock-response.d.ts +30 -0
  124. package/lib/response/add-database-tools-identity-lock-response.js +15 -0
  125. package/lib/response/add-database-tools-identity-lock-response.js.map +1 -0
  126. package/lib/response/change-database-tools-identity-compartment-response.d.ts +25 -0
  127. package/lib/response/change-database-tools-identity-compartment-response.js +15 -0
  128. package/lib/response/change-database-tools-identity-compartment-response.js.map +1 -0
  129. package/lib/response/create-database-tools-identity-response.d.ts +39 -0
  130. package/lib/response/create-database-tools-identity-response.js +15 -0
  131. package/lib/response/create-database-tools-identity-response.js.map +1 -0
  132. package/lib/response/delete-database-tools-identity-response.d.ts +25 -0
  133. package/lib/response/delete-database-tools-identity-response.js +15 -0
  134. package/lib/response/delete-database-tools-identity-response.js.map +1 -0
  135. package/lib/response/get-database-tools-identity-response.d.ts +30 -0
  136. package/lib/response/get-database-tools-identity-response.js +15 -0
  137. package/lib/response/get-database-tools-identity-response.js.map +1 -0
  138. package/lib/response/index.d.ts +20 -0
  139. package/lib/response/list-database-tools-identities-response.d.ts +32 -0
  140. package/lib/response/list-database-tools-identities-response.js +15 -0
  141. package/lib/response/list-database-tools-identities-response.js.map +1 -0
  142. package/lib/response/refresh-database-tools-identity-credential-response.d.ts +25 -0
  143. package/lib/response/refresh-database-tools-identity-credential-response.js +15 -0
  144. package/lib/response/refresh-database-tools-identity-credential-response.js.map +1 -0
  145. package/lib/response/remove-database-tools-identity-lock-response.d.ts +30 -0
  146. package/lib/response/remove-database-tools-identity-lock-response.js +15 -0
  147. package/lib/response/remove-database-tools-identity-lock-response.js.map +1 -0
  148. package/lib/response/update-database-tools-identity-response.d.ts +25 -0
  149. package/lib/response/update-database-tools-identity-response.js +15 -0
  150. package/lib/response/update-database-tools-identity-response.js.map +1 -0
  151. package/lib/response/validate-database-tools-identity-credential-response.d.ts +25 -0
  152. package/lib/response/validate-database-tools-identity-credential-response.js +15 -0
  153. package/lib/response/validate-database-tools-identity-credential-response.js.map +1 -0
  154. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -272,6 +272,71 @@ class DatabaseToolsClient {
272
272
  }
273
273
  });
274
274
  }
275
+ /**
276
+ * Adds a lock to a DatabaseToolsIdentity resource.
277
+ * This operation does not retry by default if the user has not defined a retry configuration.
278
+ * @param AddDatabaseToolsIdentityLockRequest
279
+ * @return AddDatabaseToolsIdentityLockResponse
280
+ * @throws OciError when an error occurs
281
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/AddDatabaseToolsIdentityLock.ts.html |here} to see how to use AddDatabaseToolsIdentityLock API.
282
+ */
283
+ addDatabaseToolsIdentityLock(addDatabaseToolsIdentityLockRequest) {
284
+ return __awaiter(this, void 0, void 0, function* () {
285
+ if (this.logger)
286
+ this.logger.debug("Calling operation DatabaseToolsClient#addDatabaseToolsIdentityLock.");
287
+ const operationName = "addDatabaseToolsIdentityLock";
288
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock";
289
+ const pathParams = {
290
+ "{databaseToolsIdentityId}": addDatabaseToolsIdentityLockRequest.databaseToolsIdentityId
291
+ };
292
+ const queryParams = {};
293
+ let headerParams = {
294
+ "Content-Type": common.Constants.APPLICATION_JSON,
295
+ "opc-request-id": addDatabaseToolsIdentityLockRequest.opcRequestId,
296
+ "if-match": addDatabaseToolsIdentityLockRequest.ifMatch
297
+ };
298
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
299
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDatabaseToolsIdentityLockRequest.retryConfiguration, specRetryConfiguration);
300
+ if (this.logger)
301
+ retrier.logger = this.logger;
302
+ const request = yield oci_common_1.composeRequest({
303
+ baseEndpoint: this._endpoint,
304
+ defaultHeaders: this._defaultHeaders,
305
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}/actions/addLock",
306
+ method: "POST",
307
+ bodyContent: common.ObjectSerializer.serialize(addDatabaseToolsIdentityLockRequest.addResourceLockDetails, "AddResourceLockDetails", model.AddResourceLockDetails.getJsonObj),
308
+ pathParams: pathParams,
309
+ headerParams: headerParams,
310
+ queryParams: queryParams
311
+ });
312
+ try {
313
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
314
+ const sdkResponse = oci_common_1.composeResponse({
315
+ responseObject: {},
316
+ body: yield response.json(),
317
+ bodyKey: "databaseToolsIdentity",
318
+ bodyModel: model.DatabaseToolsIdentity,
319
+ type: "model.DatabaseToolsIdentity",
320
+ responseHeaders: [
321
+ {
322
+ value: response.headers.get("opc-request-id"),
323
+ key: "opcRequestId",
324
+ dataType: "string"
325
+ },
326
+ {
327
+ value: response.headers.get("etag"),
328
+ key: "etag",
329
+ dataType: "string"
330
+ }
331
+ ]
332
+ });
333
+ return sdkResponse;
334
+ }
335
+ catch (err) {
336
+ throw err;
337
+ }
338
+ });
339
+ }
275
340
  /**
276
341
  * Adds a lock to a DatabaseToolsPrivateEndpoint resource.
277
342
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -403,6 +468,72 @@ class DatabaseToolsClient {
403
468
  }
404
469
  });
405
470
  }
471
+ /**
472
+ * Moves the specified Database Tools identity to a different compartment in the same tenancy.
473
+ * For information about moving resources between compartments, see
474
+ * [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
475
+ *
476
+ * This operation does not retry by default if the user has not defined a retry configuration.
477
+ * @param ChangeDatabaseToolsIdentityCompartmentRequest
478
+ * @return ChangeDatabaseToolsIdentityCompartmentResponse
479
+ * @throws OciError when an error occurs
480
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/ChangeDatabaseToolsIdentityCompartment.ts.html |here} to see how to use ChangeDatabaseToolsIdentityCompartment API.
481
+ */
482
+ changeDatabaseToolsIdentityCompartment(changeDatabaseToolsIdentityCompartmentRequest) {
483
+ return __awaiter(this, void 0, void 0, function* () {
484
+ if (this.logger)
485
+ this.logger.debug("Calling operation DatabaseToolsClient#changeDatabaseToolsIdentityCompartment.");
486
+ const operationName = "changeDatabaseToolsIdentityCompartment";
487
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment";
488
+ const pathParams = {
489
+ "{databaseToolsIdentityId}": changeDatabaseToolsIdentityCompartmentRequest.databaseToolsIdentityId
490
+ };
491
+ const queryParams = {
492
+ "isLockOverride": changeDatabaseToolsIdentityCompartmentRequest.isLockOverride
493
+ };
494
+ let headerParams = {
495
+ "Content-Type": common.Constants.APPLICATION_JSON,
496
+ "if-match": changeDatabaseToolsIdentityCompartmentRequest.ifMatch,
497
+ "opc-request-id": changeDatabaseToolsIdentityCompartmentRequest.opcRequestId
498
+ };
499
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
500
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDatabaseToolsIdentityCompartmentRequest.retryConfiguration, specRetryConfiguration);
501
+ if (this.logger)
502
+ retrier.logger = this.logger;
503
+ const request = yield oci_common_1.composeRequest({
504
+ baseEndpoint: this._endpoint,
505
+ defaultHeaders: this._defaultHeaders,
506
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}/actions/changeCompartment",
507
+ method: "POST",
508
+ bodyContent: common.ObjectSerializer.serialize(changeDatabaseToolsIdentityCompartmentRequest.changeDatabaseToolsIdentityCompartmentDetails, "ChangeDatabaseToolsIdentityCompartmentDetails", model.ChangeDatabaseToolsIdentityCompartmentDetails.getJsonObj),
509
+ pathParams: pathParams,
510
+ headerParams: headerParams,
511
+ queryParams: queryParams
512
+ });
513
+ try {
514
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
515
+ const sdkResponse = oci_common_1.composeResponse({
516
+ responseObject: {},
517
+ responseHeaders: [
518
+ {
519
+ value: response.headers.get("opc-work-request-id"),
520
+ key: "opcWorkRequestId",
521
+ dataType: "string"
522
+ },
523
+ {
524
+ value: response.headers.get("opc-request-id"),
525
+ key: "opcRequestId",
526
+ dataType: "string"
527
+ }
528
+ ]
529
+ });
530
+ return sdkResponse;
531
+ }
532
+ catch (err) {
533
+ throw err;
534
+ }
535
+ });
536
+ }
406
537
  /**
407
538
  * Moves a Database Tools private endpoint into a different compartment in the same tenancy.
408
539
  * For information about moving resources between compartments, see
@@ -543,6 +674,80 @@ class DatabaseToolsClient {
543
674
  }
544
675
  });
545
676
  }
677
+ /**
678
+ * Creates a new Database Tools identity.
679
+ *
680
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
681
+ * @param CreateDatabaseToolsIdentityRequest
682
+ * @return CreateDatabaseToolsIdentityResponse
683
+ * @throws OciError when an error occurs
684
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/CreateDatabaseToolsIdentity.ts.html |here} to see how to use CreateDatabaseToolsIdentity API.
685
+ */
686
+ createDatabaseToolsIdentity(createDatabaseToolsIdentityRequest) {
687
+ return __awaiter(this, void 0, void 0, function* () {
688
+ if (this.logger)
689
+ this.logger.debug("Calling operation DatabaseToolsClient#createDatabaseToolsIdentity.");
690
+ const operationName = "createDatabaseToolsIdentity";
691
+ const apiReferenceLink = "";
692
+ const pathParams = {};
693
+ const queryParams = {};
694
+ let headerParams = {
695
+ "Content-Type": common.Constants.APPLICATION_JSON,
696
+ "opc-retry-token": createDatabaseToolsIdentityRequest.opcRetryToken,
697
+ "opc-request-id": createDatabaseToolsIdentityRequest.opcRequestId
698
+ };
699
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
700
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDatabaseToolsIdentityRequest.retryConfiguration, specRetryConfiguration);
701
+ if (this.logger)
702
+ retrier.logger = this.logger;
703
+ const request = yield oci_common_1.composeRequest({
704
+ baseEndpoint: this._endpoint,
705
+ defaultHeaders: this._defaultHeaders,
706
+ path: "/databaseToolsIdentities",
707
+ method: "POST",
708
+ bodyContent: common.ObjectSerializer.serialize(createDatabaseToolsIdentityRequest.createDatabaseToolsIdentityDetails, "CreateDatabaseToolsIdentityDetails", model.CreateDatabaseToolsIdentityDetails.getJsonObj),
709
+ pathParams: pathParams,
710
+ headerParams: headerParams,
711
+ queryParams: queryParams
712
+ });
713
+ try {
714
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
715
+ const sdkResponse = oci_common_1.composeResponse({
716
+ responseObject: {},
717
+ body: yield response.json(),
718
+ bodyKey: "databaseToolsIdentity",
719
+ bodyModel: model.DatabaseToolsIdentity,
720
+ type: "model.DatabaseToolsIdentity",
721
+ responseHeaders: [
722
+ {
723
+ value: response.headers.get("location"),
724
+ key: "location",
725
+ dataType: "string"
726
+ },
727
+ {
728
+ value: response.headers.get("etag"),
729
+ key: "etag",
730
+ dataType: "string"
731
+ },
732
+ {
733
+ value: response.headers.get("opc-work-request-id"),
734
+ key: "opcWorkRequestId",
735
+ dataType: "string"
736
+ },
737
+ {
738
+ value: response.headers.get("opc-request-id"),
739
+ key: "opcRequestId",
740
+ dataType: "string"
741
+ }
742
+ ]
743
+ });
744
+ return sdkResponse;
745
+ }
746
+ catch (err) {
747
+ throw err;
748
+ }
749
+ });
750
+ }
546
751
  /**
547
752
  * Creates a new Database Tools private endpoint.
548
753
  *
@@ -679,6 +884,68 @@ class DatabaseToolsClient {
679
884
  }
680
885
  });
681
886
  }
887
+ /**
888
+ * Deletes the specified Database Tools identity resource.
889
+ * This operation does not retry by default if the user has not defined a retry configuration.
890
+ * @param DeleteDatabaseToolsIdentityRequest
891
+ * @return DeleteDatabaseToolsIdentityResponse
892
+ * @throws OciError when an error occurs
893
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/DeleteDatabaseToolsIdentity.ts.html |here} to see how to use DeleteDatabaseToolsIdentity API.
894
+ */
895
+ deleteDatabaseToolsIdentity(deleteDatabaseToolsIdentityRequest) {
896
+ return __awaiter(this, void 0, void 0, function* () {
897
+ if (this.logger)
898
+ this.logger.debug("Calling operation DatabaseToolsClient#deleteDatabaseToolsIdentity.");
899
+ const operationName = "deleteDatabaseToolsIdentity";
900
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity";
901
+ const pathParams = {
902
+ "{databaseToolsIdentityId}": deleteDatabaseToolsIdentityRequest.databaseToolsIdentityId
903
+ };
904
+ const queryParams = {
905
+ "isLockOverride": deleteDatabaseToolsIdentityRequest.isLockOverride
906
+ };
907
+ let headerParams = {
908
+ "Content-Type": common.Constants.APPLICATION_JSON,
909
+ "if-match": deleteDatabaseToolsIdentityRequest.ifMatch,
910
+ "opc-request-id": deleteDatabaseToolsIdentityRequest.opcRequestId
911
+ };
912
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
913
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDatabaseToolsIdentityRequest.retryConfiguration, specRetryConfiguration);
914
+ if (this.logger)
915
+ retrier.logger = this.logger;
916
+ const request = yield oci_common_1.composeRequest({
917
+ baseEndpoint: this._endpoint,
918
+ defaultHeaders: this._defaultHeaders,
919
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}",
920
+ method: "DELETE",
921
+ pathParams: pathParams,
922
+ headerParams: headerParams,
923
+ queryParams: queryParams
924
+ });
925
+ try {
926
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
927
+ const sdkResponse = oci_common_1.composeResponse({
928
+ responseObject: {},
929
+ responseHeaders: [
930
+ {
931
+ value: response.headers.get("opc-work-request-id"),
932
+ key: "opcWorkRequestId",
933
+ dataType: "string"
934
+ },
935
+ {
936
+ value: response.headers.get("opc-request-id"),
937
+ key: "opcRequestId",
938
+ dataType: "string"
939
+ }
940
+ ]
941
+ });
942
+ return sdkResponse;
943
+ }
944
+ catch (err) {
945
+ throw err;
946
+ }
947
+ });
948
+ }
682
949
  /**
683
950
  * Deletes the specified Database Tools private endpoint.
684
951
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -867,6 +1134,69 @@ class DatabaseToolsClient {
867
1134
  }
868
1135
  });
869
1136
  }
1137
+ /**
1138
+ * Gets details of the specified Database Tools identity.
1139
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1140
+ * @param GetDatabaseToolsIdentityRequest
1141
+ * @return GetDatabaseToolsIdentityResponse
1142
+ * @throws OciError when an error occurs
1143
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/GetDatabaseToolsIdentity.ts.html |here} to see how to use GetDatabaseToolsIdentity API.
1144
+ */
1145
+ getDatabaseToolsIdentity(getDatabaseToolsIdentityRequest) {
1146
+ return __awaiter(this, void 0, void 0, function* () {
1147
+ if (this.logger)
1148
+ this.logger.debug("Calling operation DatabaseToolsClient#getDatabaseToolsIdentity.");
1149
+ const operationName = "getDatabaseToolsIdentity";
1150
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity";
1151
+ const pathParams = {
1152
+ "{databaseToolsIdentityId}": getDatabaseToolsIdentityRequest.databaseToolsIdentityId
1153
+ };
1154
+ const queryParams = {};
1155
+ let headerParams = {
1156
+ "Content-Type": common.Constants.APPLICATION_JSON,
1157
+ "opc-request-id": getDatabaseToolsIdentityRequest.opcRequestId
1158
+ };
1159
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1160
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseToolsIdentityRequest.retryConfiguration, specRetryConfiguration);
1161
+ if (this.logger)
1162
+ retrier.logger = this.logger;
1163
+ const request = yield oci_common_1.composeRequest({
1164
+ baseEndpoint: this._endpoint,
1165
+ defaultHeaders: this._defaultHeaders,
1166
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}",
1167
+ method: "GET",
1168
+ pathParams: pathParams,
1169
+ headerParams: headerParams,
1170
+ queryParams: queryParams
1171
+ });
1172
+ try {
1173
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1174
+ const sdkResponse = oci_common_1.composeResponse({
1175
+ responseObject: {},
1176
+ body: yield response.json(),
1177
+ bodyKey: "databaseToolsIdentity",
1178
+ bodyModel: model.DatabaseToolsIdentity,
1179
+ type: "model.DatabaseToolsIdentity",
1180
+ responseHeaders: [
1181
+ {
1182
+ value: response.headers.get("etag"),
1183
+ key: "etag",
1184
+ dataType: "string"
1185
+ },
1186
+ {
1187
+ value: response.headers.get("opc-request-id"),
1188
+ key: "opcRequestId",
1189
+ dataType: "string"
1190
+ }
1191
+ ]
1192
+ });
1193
+ return sdkResponse;
1194
+ }
1195
+ catch (err) {
1196
+ throw err;
1197
+ }
1198
+ });
1199
+ }
870
1200
  /**
871
1201
  * Gets details of a specified Database Tools private endpoint.
872
1202
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -1015,6 +1345,7 @@ class DatabaseToolsClient {
1015
1345
  "displayName": listDatabaseToolsConnectionsRequest.displayName,
1016
1346
  "type": listDatabaseToolsConnectionsRequest.type,
1017
1347
  "runtimeSupport": listDatabaseToolsConnectionsRequest.runtimeSupport,
1348
+ "runtimeIdentity": listDatabaseToolsConnectionsRequest.runtimeIdentity,
1018
1349
  "relatedResourceIdentifier": listDatabaseToolsConnectionsRequest.relatedResourceIdentifier,
1019
1350
  "limit": listDatabaseToolsConnectionsRequest.limit,
1020
1351
  "page": listDatabaseToolsConnectionsRequest.page,
@@ -1137,6 +1468,77 @@ class DatabaseToolsClient {
1137
1468
  }
1138
1469
  });
1139
1470
  }
1471
+ /**
1472
+ * Returns a list of Database Tools identities.
1473
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1474
+ * @param ListDatabaseToolsIdentitiesRequest
1475
+ * @return ListDatabaseToolsIdentitiesResponse
1476
+ * @throws OciError when an error occurs
1477
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/ListDatabaseToolsIdentities.ts.html |here} to see how to use ListDatabaseToolsIdentities API.
1478
+ */
1479
+ listDatabaseToolsIdentities(listDatabaseToolsIdentitiesRequest) {
1480
+ return __awaiter(this, void 0, void 0, function* () {
1481
+ if (this.logger)
1482
+ this.logger.debug("Calling operation DatabaseToolsClient#listDatabaseToolsIdentities.");
1483
+ const operationName = "listDatabaseToolsIdentities";
1484
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities";
1485
+ const pathParams = {};
1486
+ const queryParams = {
1487
+ "compartmentId": listDatabaseToolsIdentitiesRequest.compartmentId,
1488
+ "lifecycleState": listDatabaseToolsIdentitiesRequest.lifecycleState,
1489
+ "displayName": listDatabaseToolsIdentitiesRequest.displayName,
1490
+ "databaseToolsConnectionId": listDatabaseToolsIdentitiesRequest.databaseToolsConnectionId,
1491
+ "limit": listDatabaseToolsIdentitiesRequest.limit,
1492
+ "page": listDatabaseToolsIdentitiesRequest.page,
1493
+ "sortOrder": listDatabaseToolsIdentitiesRequest.sortOrder,
1494
+ "sortBy": listDatabaseToolsIdentitiesRequest.sortBy,
1495
+ "type": listDatabaseToolsIdentitiesRequest.type
1496
+ };
1497
+ let headerParams = {
1498
+ "Content-Type": common.Constants.APPLICATION_JSON,
1499
+ "opc-request-id": listDatabaseToolsIdentitiesRequest.opcRequestId
1500
+ };
1501
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1502
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDatabaseToolsIdentitiesRequest.retryConfiguration, specRetryConfiguration);
1503
+ if (this.logger)
1504
+ retrier.logger = this.logger;
1505
+ const request = yield oci_common_1.composeRequest({
1506
+ baseEndpoint: this._endpoint,
1507
+ defaultHeaders: this._defaultHeaders,
1508
+ path: "/databaseToolsIdentities",
1509
+ method: "GET",
1510
+ pathParams: pathParams,
1511
+ headerParams: headerParams,
1512
+ queryParams: queryParams
1513
+ });
1514
+ try {
1515
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1516
+ const sdkResponse = oci_common_1.composeResponse({
1517
+ responseObject: {},
1518
+ body: yield response.json(),
1519
+ bodyKey: "databaseToolsIdentityCollection",
1520
+ bodyModel: model.DatabaseToolsIdentityCollection,
1521
+ type: "model.DatabaseToolsIdentityCollection",
1522
+ responseHeaders: [
1523
+ {
1524
+ value: response.headers.get("opc-request-id"),
1525
+ key: "opcRequestId",
1526
+ dataType: "string"
1527
+ },
1528
+ {
1529
+ value: response.headers.get("opc-next-page"),
1530
+ key: "opcNextPage",
1531
+ dataType: "string"
1532
+ }
1533
+ ]
1534
+ });
1535
+ return sdkResponse;
1536
+ }
1537
+ catch (err) {
1538
+ throw err;
1539
+ }
1540
+ });
1541
+ }
1140
1542
  /**
1141
1543
  * Returns a list of Database Tools private endpoints.
1142
1544
  *
@@ -1416,6 +1818,68 @@ class DatabaseToolsClient {
1416
1818
  }
1417
1819
  });
1418
1820
  }
1821
+ /**
1822
+ * Refresh Database Tools identity credential.
1823
+ *
1824
+ * This operation does not retry by default if the user has not defined a retry configuration.
1825
+ * @param RefreshDatabaseToolsIdentityCredentialRequest
1826
+ * @return RefreshDatabaseToolsIdentityCredentialResponse
1827
+ * @throws OciError when an error occurs
1828
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/RefreshDatabaseToolsIdentityCredential.ts.html |here} to see how to use RefreshDatabaseToolsIdentityCredential API.
1829
+ */
1830
+ refreshDatabaseToolsIdentityCredential(refreshDatabaseToolsIdentityCredentialRequest) {
1831
+ return __awaiter(this, void 0, void 0, function* () {
1832
+ if (this.logger)
1833
+ this.logger.debug("Calling operation DatabaseToolsClient#refreshDatabaseToolsIdentityCredential.");
1834
+ const operationName = "refreshDatabaseToolsIdentityCredential";
1835
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential";
1836
+ const pathParams = {
1837
+ "{databaseToolsIdentityId}": refreshDatabaseToolsIdentityCredentialRequest.databaseToolsIdentityId
1838
+ };
1839
+ const queryParams = {};
1840
+ let headerParams = {
1841
+ "Content-Type": common.Constants.APPLICATION_JSON,
1842
+ "if-match": refreshDatabaseToolsIdentityCredentialRequest.ifMatch,
1843
+ "opc-request-id": refreshDatabaseToolsIdentityCredentialRequest.opcRequestId
1844
+ };
1845
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1846
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshDatabaseToolsIdentityCredentialRequest.retryConfiguration, specRetryConfiguration);
1847
+ if (this.logger)
1848
+ retrier.logger = this.logger;
1849
+ const request = yield oci_common_1.composeRequest({
1850
+ baseEndpoint: this._endpoint,
1851
+ defaultHeaders: this._defaultHeaders,
1852
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}/actions/refreshCredential",
1853
+ method: "POST",
1854
+ bodyContent: common.ObjectSerializer.serialize(refreshDatabaseToolsIdentityCredentialRequest.refreshDatabaseToolsIdentityCredentialDetails, "RefreshDatabaseToolsIdentityCredentialDetails", model.RefreshDatabaseToolsIdentityCredentialDetails.getJsonObj),
1855
+ pathParams: pathParams,
1856
+ headerParams: headerParams,
1857
+ queryParams: queryParams
1858
+ });
1859
+ try {
1860
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1861
+ const sdkResponse = oci_common_1.composeResponse({
1862
+ responseObject: {},
1863
+ responseHeaders: [
1864
+ {
1865
+ value: response.headers.get("opc-work-request-id"),
1866
+ key: "opcWorkRequestId",
1867
+ dataType: "string"
1868
+ },
1869
+ {
1870
+ value: response.headers.get("opc-request-id"),
1871
+ key: "opcRequestId",
1872
+ dataType: "string"
1873
+ }
1874
+ ]
1875
+ });
1876
+ return sdkResponse;
1877
+ }
1878
+ catch (err) {
1879
+ throw err;
1880
+ }
1881
+ });
1882
+ }
1419
1883
  /**
1420
1884
  * Removes a lock from a DatabaseToolsConnection resource.
1421
1885
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1481,6 +1945,71 @@ class DatabaseToolsClient {
1481
1945
  }
1482
1946
  });
1483
1947
  }
1948
+ /**
1949
+ * Removes a lock from a DatabaseToolsIdentity resource.
1950
+ * This operation does not retry by default if the user has not defined a retry configuration.
1951
+ * @param RemoveDatabaseToolsIdentityLockRequest
1952
+ * @return RemoveDatabaseToolsIdentityLockResponse
1953
+ * @throws OciError when an error occurs
1954
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/RemoveDatabaseToolsIdentityLock.ts.html |here} to see how to use RemoveDatabaseToolsIdentityLock API.
1955
+ */
1956
+ removeDatabaseToolsIdentityLock(removeDatabaseToolsIdentityLockRequest) {
1957
+ return __awaiter(this, void 0, void 0, function* () {
1958
+ if (this.logger)
1959
+ this.logger.debug("Calling operation DatabaseToolsClient#removeDatabaseToolsIdentityLock.");
1960
+ const operationName = "removeDatabaseToolsIdentityLock";
1961
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock";
1962
+ const pathParams = {
1963
+ "{databaseToolsIdentityId}": removeDatabaseToolsIdentityLockRequest.databaseToolsIdentityId
1964
+ };
1965
+ const queryParams = {};
1966
+ let headerParams = {
1967
+ "Content-Type": common.Constants.APPLICATION_JSON,
1968
+ "opc-request-id": removeDatabaseToolsIdentityLockRequest.opcRequestId,
1969
+ "if-match": removeDatabaseToolsIdentityLockRequest.ifMatch
1970
+ };
1971
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1972
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeDatabaseToolsIdentityLockRequest.retryConfiguration, specRetryConfiguration);
1973
+ if (this.logger)
1974
+ retrier.logger = this.logger;
1975
+ const request = yield oci_common_1.composeRequest({
1976
+ baseEndpoint: this._endpoint,
1977
+ defaultHeaders: this._defaultHeaders,
1978
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}/actions/removeLock",
1979
+ method: "POST",
1980
+ bodyContent: common.ObjectSerializer.serialize(removeDatabaseToolsIdentityLockRequest.removeResourceLockDetails, "RemoveResourceLockDetails", model.RemoveResourceLockDetails.getJsonObj),
1981
+ pathParams: pathParams,
1982
+ headerParams: headerParams,
1983
+ queryParams: queryParams
1984
+ });
1985
+ try {
1986
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1987
+ const sdkResponse = oci_common_1.composeResponse({
1988
+ responseObject: {},
1989
+ body: yield response.json(),
1990
+ bodyKey: "databaseToolsIdentity",
1991
+ bodyModel: model.DatabaseToolsIdentity,
1992
+ type: "model.DatabaseToolsIdentity",
1993
+ responseHeaders: [
1994
+ {
1995
+ value: response.headers.get("opc-request-id"),
1996
+ key: "opcRequestId",
1997
+ dataType: "string"
1998
+ },
1999
+ {
2000
+ value: response.headers.get("etag"),
2001
+ key: "etag",
2002
+ dataType: "string"
2003
+ }
2004
+ ]
2005
+ });
2006
+ return sdkResponse;
2007
+ }
2008
+ catch (err) {
2009
+ throw err;
2010
+ }
2011
+ });
2012
+ }
1484
2013
  /**
1485
2014
  * Removes a lock from a DatabaseToolsPrivateEndpoint resource.
1486
2015
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1609,6 +2138,69 @@ class DatabaseToolsClient {
1609
2138
  }
1610
2139
  });
1611
2140
  }
2141
+ /**
2142
+ * Updates the specified Database Tools identity.
2143
+ * This operation does not retry by default if the user has not defined a retry configuration.
2144
+ * @param UpdateDatabaseToolsIdentityRequest
2145
+ * @return UpdateDatabaseToolsIdentityResponse
2146
+ * @throws OciError when an error occurs
2147
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/UpdateDatabaseToolsIdentity.ts.html |here} to see how to use UpdateDatabaseToolsIdentity API.
2148
+ */
2149
+ updateDatabaseToolsIdentity(updateDatabaseToolsIdentityRequest) {
2150
+ return __awaiter(this, void 0, void 0, function* () {
2151
+ if (this.logger)
2152
+ this.logger.debug("Calling operation DatabaseToolsClient#updateDatabaseToolsIdentity.");
2153
+ const operationName = "updateDatabaseToolsIdentity";
2154
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity";
2155
+ const pathParams = {
2156
+ "{databaseToolsIdentityId}": updateDatabaseToolsIdentityRequest.databaseToolsIdentityId
2157
+ };
2158
+ const queryParams = {
2159
+ "isLockOverride": updateDatabaseToolsIdentityRequest.isLockOverride
2160
+ };
2161
+ let headerParams = {
2162
+ "Content-Type": common.Constants.APPLICATION_JSON,
2163
+ "if-match": updateDatabaseToolsIdentityRequest.ifMatch,
2164
+ "opc-request-id": updateDatabaseToolsIdentityRequest.opcRequestId
2165
+ };
2166
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2167
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDatabaseToolsIdentityRequest.retryConfiguration, specRetryConfiguration);
2168
+ if (this.logger)
2169
+ retrier.logger = this.logger;
2170
+ const request = yield oci_common_1.composeRequest({
2171
+ baseEndpoint: this._endpoint,
2172
+ defaultHeaders: this._defaultHeaders,
2173
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}",
2174
+ method: "PUT",
2175
+ bodyContent: common.ObjectSerializer.serialize(updateDatabaseToolsIdentityRequest.updateDatabaseToolsIdentityDetails, "UpdateDatabaseToolsIdentityDetails", model.UpdateDatabaseToolsIdentityDetails.getJsonObj),
2176
+ pathParams: pathParams,
2177
+ headerParams: headerParams,
2178
+ queryParams: queryParams
2179
+ });
2180
+ try {
2181
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2182
+ const sdkResponse = oci_common_1.composeResponse({
2183
+ responseObject: {},
2184
+ responseHeaders: [
2185
+ {
2186
+ value: response.headers.get("opc-work-request-id"),
2187
+ key: "opcWorkRequestId",
2188
+ dataType: "string"
2189
+ },
2190
+ {
2191
+ value: response.headers.get("opc-request-id"),
2192
+ key: "opcRequestId",
2193
+ dataType: "string"
2194
+ }
2195
+ ]
2196
+ });
2197
+ return sdkResponse;
2198
+ }
2199
+ catch (err) {
2200
+ throw err;
2201
+ }
2202
+ });
2203
+ }
1612
2204
  /**
1613
2205
  * Updates the specified Database Tools private endpoint.
1614
2206
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -1733,6 +2325,68 @@ class DatabaseToolsClient {
1733
2325
  }
1734
2326
  });
1735
2327
  }
2328
+ /**
2329
+ * Validates the Database Tools identity credentials by establishing a connection to the customer database
2330
+ * and executing the dbms_cloud.send_request to validate the credential.
2331
+ *
2332
+ * This operation does not retry by default if the user has not defined a retry configuration.
2333
+ * @param ValidateDatabaseToolsIdentityCredentialRequest
2334
+ * @return ValidateDatabaseToolsIdentityCredentialResponse
2335
+ * @throws OciError when an error occurs
2336
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasetools/ValidateDatabaseToolsIdentityCredential.ts.html |here} to see how to use ValidateDatabaseToolsIdentityCredential API.
2337
+ */
2338
+ validateDatabaseToolsIdentityCredential(validateDatabaseToolsIdentityCredentialRequest) {
2339
+ return __awaiter(this, void 0, void 0, function* () {
2340
+ if (this.logger)
2341
+ this.logger.debug("Calling operation DatabaseToolsClient#validateDatabaseToolsIdentityCredential.");
2342
+ const operationName = "validateDatabaseToolsIdentityCredential";
2343
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential";
2344
+ const pathParams = {
2345
+ "{databaseToolsIdentityId}": validateDatabaseToolsIdentityCredentialRequest.databaseToolsIdentityId
2346
+ };
2347
+ const queryParams = {};
2348
+ let headerParams = {
2349
+ "Content-Type": common.Constants.APPLICATION_JSON,
2350
+ "if-match": validateDatabaseToolsIdentityCredentialRequest.ifMatch,
2351
+ "opc-request-id": validateDatabaseToolsIdentityCredentialRequest.opcRequestId
2352
+ };
2353
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2354
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateDatabaseToolsIdentityCredentialRequest.retryConfiguration, specRetryConfiguration);
2355
+ if (this.logger)
2356
+ retrier.logger = this.logger;
2357
+ const request = yield oci_common_1.composeRequest({
2358
+ baseEndpoint: this._endpoint,
2359
+ defaultHeaders: this._defaultHeaders,
2360
+ path: "/databaseToolsIdentities/{databaseToolsIdentityId}/actions/validateCredential",
2361
+ method: "POST",
2362
+ bodyContent: common.ObjectSerializer.serialize(validateDatabaseToolsIdentityCredentialRequest.validateDatabaseToolsIdentityCredentialDetails, "ValidateDatabaseToolsIdentityCredentialDetails", model.ValidateDatabaseToolsIdentityCredentialDetails.getJsonObj),
2363
+ pathParams: pathParams,
2364
+ headerParams: headerParams,
2365
+ queryParams: queryParams
2366
+ });
2367
+ try {
2368
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2369
+ const sdkResponse = oci_common_1.composeResponse({
2370
+ responseObject: {},
2371
+ body: yield response.json(),
2372
+ bodyKey: "validateDatabaseToolsIdentityCredentialResult",
2373
+ bodyModel: model.ValidateDatabaseToolsIdentityCredentialResult,
2374
+ type: "model.ValidateDatabaseToolsIdentityCredentialResult",
2375
+ responseHeaders: [
2376
+ {
2377
+ value: response.headers.get("opc-request-id"),
2378
+ key: "opcRequestId",
2379
+ dataType: "string"
2380
+ }
2381
+ ]
2382
+ });
2383
+ return sdkResponse;
2384
+ }
2385
+ catch (err) {
2386
+ throw err;
2387
+ }
2388
+ });
2389
+ }
1736
2390
  }
1737
2391
  exports.DatabaseToolsClient = DatabaseToolsClient;
1738
2392
  DatabaseToolsClient.serviceEndpointTemplate = "https://dbtools.{region}.oci.{secondLevelDomain}";