oci-databasetools 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +1521 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +255 -0
- package/lib/client.js +1366 -0
- package/lib/client.js.map +1 -0
- package/lib/databasetools-waiter.d.ts +52 -0
- package/lib/databasetools-waiter.js +100 -0
- package/lib/databasetools-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +31 -0
- package/lib/model/action-type.js +42 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/change-database-tools-connection-compartment-details.d.ts +25 -0
- package/lib/model/change-database-tools-connection-compartment-details.js +29 -0
- package/lib/model/change-database-tools-connection-compartment-details.js.map +1 -0
- package/lib/model/change-database-tools-private-endpoint-compartment-details.d.ts +25 -0
- package/lib/model/change-database-tools-private-endpoint-compartment-details.js +29 -0
- package/lib/model/change-database-tools-private-endpoint-compartment-details.js.map +1 -0
- package/lib/model/connection-type.d.ts +27 -0
- package/lib/model/connection-type.js +38 -0
- package/lib/model/connection-type.js.map +1 -0
- package/lib/model/create-database-tools-connection-details.d.ts +48 -0
- package/lib/model/create-database-tools-connection-details.js +65 -0
- package/lib/model/create-database-tools-connection-details.js.map +1 -0
- package/lib/model/create-database-tools-connection-oracle-database-details.d.ts +50 -0
- package/lib/model/create-database-tools-connection-oracle-database-details.js +78 -0
- package/lib/model/create-database-tools-connection-oracle-database-details.js.map +1 -0
- package/lib/model/create-database-tools-private-endpoint-details.d.ts +70 -0
- package/lib/model/create-database-tools-private-endpoint-details.js +29 -0
- package/lib/model/create-database-tools-private-endpoint-details.js.map +1 -0
- package/lib/model/create-database-tools-related-resource-details.d.ts +30 -0
- package/lib/model/create-database-tools-related-resource-details.js +29 -0
- package/lib/model/create-database-tools-related-resource-details.js.map +1 -0
- package/lib/model/database-tools-allowed-network-sources.d.ts +34 -0
- package/lib/model/database-tools-allowed-network-sources.js +61 -0
- package/lib/model/database-tools-allowed-network-sources.js.map +1 -0
- package/lib/model/database-tools-connection-collection.d.ts +26 -0
- package/lib/model/database-tools-connection-collection.js +61 -0
- package/lib/model/database-tools-connection-collection.js.map +1 -0
- package/lib/model/database-tools-connection-oracle-database-summary.d.ts +50 -0
- package/lib/model/database-tools-connection-oracle-database-summary.js +78 -0
- package/lib/model/database-tools-connection-oracle-database-summary.js.map +1 -0
- package/lib/model/database-tools-connection-oracle-database.d.ts +50 -0
- package/lib/model/database-tools-connection-oracle-database.js +78 -0
- package/lib/model/database-tools-connection-oracle-database.js.map +1 -0
- package/lib/model/database-tools-connection-summary.d.ts +79 -0
- package/lib/model/database-tools-connection-summary.js +65 -0
- package/lib/model/database-tools-connection-summary.js.map +1 -0
- package/lib/model/database-tools-connection.d.ts +79 -0
- package/lib/model/database-tools-connection.js +65 -0
- package/lib/model/database-tools-connection.js.map +1 -0
- package/lib/model/database-tools-endpoint-service-collection.d.ts +26 -0
- package/lib/model/database-tools-endpoint-service-collection.js +61 -0
- package/lib/model/database-tools-endpoint-service-collection.js.map +1 -0
- package/lib/model/database-tools-endpoint-service-summary.d.ts +86 -0
- package/lib/model/database-tools-endpoint-service-summary.js +29 -0
- package/lib/model/database-tools-endpoint-service-summary.js.map +1 -0
- package/lib/model/database-tools-endpoint-service.d.ts +86 -0
- package/lib/model/database-tools-endpoint-service.js +29 -0
- package/lib/model/database-tools-endpoint-service.js.map +1 -0
- package/lib/model/database-tools-key-store-content-details.d.ts +22 -0
- package/lib/model/database-tools-key-store-content-details.js +65 -0
- package/lib/model/database-tools-key-store-content-details.js.map +1 -0
- package/lib/model/database-tools-key-store-content-secret-id-details.d.ts +28 -0
- package/lib/model/database-tools-key-store-content-secret-id-details.js +54 -0
- package/lib/model/database-tools-key-store-content-secret-id-details.js.map +1 -0
- package/lib/model/database-tools-key-store-content-secret-id-summary.d.ts +28 -0
- package/lib/model/database-tools-key-store-content-secret-id-summary.js +54 -0
- package/lib/model/database-tools-key-store-content-secret-id-summary.js.map +1 -0
- package/lib/model/database-tools-key-store-content-secret-id.d.ts +28 -0
- package/lib/model/database-tools-key-store-content-secret-id.js +54 -0
- package/lib/model/database-tools-key-store-content-secret-id.js.map +1 -0
- package/lib/model/database-tools-key-store-content-summary.d.ts +22 -0
- package/lib/model/database-tools-key-store-content-summary.js +65 -0
- package/lib/model/database-tools-key-store-content-summary.js.map +1 -0
- package/lib/model/database-tools-key-store-content.d.ts +22 -0
- package/lib/model/database-tools-key-store-content.js +65 -0
- package/lib/model/database-tools-key-store-content.js.map +1 -0
- package/lib/model/database-tools-key-store-details.d.ts +28 -0
- package/lib/model/database-tools-key-store-details.js +63 -0
- package/lib/model/database-tools-key-store-details.js.map +1 -0
- package/lib/model/database-tools-key-store-password-details.d.ts +22 -0
- package/lib/model/database-tools-key-store-password-details.js +65 -0
- package/lib/model/database-tools-key-store-password-details.js.map +1 -0
- package/lib/model/database-tools-key-store-password-secret-id-details.d.ts +28 -0
- package/lib/model/database-tools-key-store-password-secret-id-details.js +54 -0
- package/lib/model/database-tools-key-store-password-secret-id-details.js.map +1 -0
- package/lib/model/database-tools-key-store-password-secret-id-summary.d.ts +28 -0
- package/lib/model/database-tools-key-store-password-secret-id-summary.js +54 -0
- package/lib/model/database-tools-key-store-password-secret-id-summary.js.map +1 -0
- package/lib/model/database-tools-key-store-password-secret-id.d.ts +28 -0
- package/lib/model/database-tools-key-store-password-secret-id.js +54 -0
- package/lib/model/database-tools-key-store-password-secret-id.js.map +1 -0
- package/lib/model/database-tools-key-store-password-summary.d.ts +22 -0
- package/lib/model/database-tools-key-store-password-summary.js +65 -0
- package/lib/model/database-tools-key-store-password-summary.js.map +1 -0
- package/lib/model/database-tools-key-store-password.d.ts +22 -0
- package/lib/model/database-tools-key-store-password.js +65 -0
- package/lib/model/database-tools-key-store-password.js.map +1 -0
- package/lib/model/database-tools-key-store-summary.d.ts +28 -0
- package/lib/model/database-tools-key-store-summary.js +63 -0
- package/lib/model/database-tools-key-store-summary.js.map +1 -0
- package/lib/model/database-tools-key-store.d.ts +28 -0
- package/lib/model/database-tools-key-store.js +63 -0
- package/lib/model/database-tools-key-store.js.map +1 -0
- package/lib/model/database-tools-private-endpoint-collection.d.ts +26 -0
- package/lib/model/database-tools-private-endpoint-collection.js +61 -0
- package/lib/model/database-tools-private-endpoint-collection.js.map +1 -0
- package/lib/model/database-tools-private-endpoint-reverse-connection-configuration.d.ts +28 -0
- package/lib/model/database-tools-private-endpoint-reverse-connection-configuration.js +61 -0
- package/lib/model/database-tools-private-endpoint-reverse-connection-configuration.js.map +1 -0
- package/lib/model/database-tools-private-endpoint-reverse-connections-source-ip.d.ts +27 -0
- package/lib/model/database-tools-private-endpoint-reverse-connections-source-ip.js +29 -0
- package/lib/model/database-tools-private-endpoint-reverse-connections-source-ip.js.map +1 -0
- package/lib/model/database-tools-private-endpoint-summary.d.ts +118 -0
- package/lib/model/database-tools-private-endpoint-summary.js +57 -0
- package/lib/model/database-tools-private-endpoint-summary.js.map +1 -0
- package/lib/model/database-tools-private-endpoint.d.ts +118 -0
- package/lib/model/database-tools-private-endpoint.js +57 -0
- package/lib/model/database-tools-private-endpoint.js.map +1 -0
- package/lib/model/database-tools-related-resource.d.ts +30 -0
- package/lib/model/database-tools-related-resource.js +29 -0
- package/lib/model/database-tools-related-resource.js.map +1 -0
- package/lib/model/database-tools-user-password-details.d.ts +22 -0
- package/lib/model/database-tools-user-password-details.js +65 -0
- package/lib/model/database-tools-user-password-details.js.map +1 -0
- package/lib/model/database-tools-user-password-secret-id-details.d.ts +28 -0
- package/lib/model/database-tools-user-password-secret-id-details.js +54 -0
- package/lib/model/database-tools-user-password-secret-id-details.js.map +1 -0
- package/lib/model/database-tools-user-password-secret-id-summary.d.ts +28 -0
- package/lib/model/database-tools-user-password-secret-id-summary.js +54 -0
- package/lib/model/database-tools-user-password-secret-id-summary.js.map +1 -0
- package/lib/model/database-tools-user-password-secret-id.d.ts +28 -0
- package/lib/model/database-tools-user-password-secret-id.js +54 -0
- package/lib/model/database-tools-user-password-secret-id.js.map +1 -0
- package/lib/model/database-tools-user-password-summary.d.ts +22 -0
- package/lib/model/database-tools-user-password-summary.js +65 -0
- package/lib/model/database-tools-user-password-summary.js.map +1 -0
- package/lib/model/database-tools-user-password.d.ts +22 -0
- package/lib/model/database-tools-user-password.js +65 -0
- package/lib/model/database-tools-user-password.js.map +1 -0
- package/lib/model/database-tools-virtual-source.d.ts +29 -0
- package/lib/model/database-tools-virtual-source.js +29 -0
- package/lib/model/database-tools-virtual-source.js.map +1 -0
- package/lib/model/index.d.ts +148 -0
- package/lib/model/index.js +172 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/key-store-type.d.ts +30 -0
- package/lib/model/key-store-type.js +41 -0
- package/lib/model/key-store-type.js.map +1 -0
- package/lib/model/lifecycle-state.d.ts +32 -0
- package/lib/model/lifecycle-state.js +43 -0
- package/lib/model/lifecycle-state.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +35 -0
- package/lib/model/operation-type.js +46 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/related-resource-entity-type.d.ts +29 -0
- package/lib/model/related-resource-entity-type.js +40 -0
- package/lib/model/related-resource-entity-type.js.map +1 -0
- package/lib/model/service-capability.d.ts +22 -0
- package/lib/model/service-capability.js +33 -0
- package/lib/model/service-capability.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-database-tools-connection-details.d.ts +44 -0
- package/lib/model/update-database-tools-connection-details.js +65 -0
- package/lib/model/update-database-tools-connection-details.js.map +1 -0
- package/lib/model/update-database-tools-connection-oracle-database-details.d.ts +50 -0
- package/lib/model/update-database-tools-connection-oracle-database-details.js +78 -0
- package/lib/model/update-database-tools-connection-oracle-database-details.js.map +1 -0
- package/lib/model/update-database-tools-private-endpoint-details.d.ts +54 -0
- package/lib/model/update-database-tools-private-endpoint-details.js +29 -0
- package/lib/model/update-database-tools-private-endpoint-details.js.map +1 -0
- package/lib/model/update-database-tools-related-resource-details.d.ts +30 -0
- package/lib/model/update-database-tools-related-resource-details.js +29 -0
- package/lib/model/update-database-tools-related-resource-details.js.map +1 -0
- package/lib/model/validate-database-tools-connection-details.d.ts +22 -0
- package/lib/model/validate-database-tools-connection-details.js +65 -0
- package/lib/model/validate-database-tools-connection-details.js.map +1 -0
- package/lib/model/validate-database-tools-connection-oracle-database-details.d.ts +24 -0
- package/lib/model/validate-database-tools-connection-oracle-database-details.js +54 -0
- package/lib/model/validate-database-tools-connection-oracle-database-details.js.map +1 -0
- package/lib/model/validate-database-tools-connection-oracle-database-result.d.ts +32 -0
- package/lib/model/validate-database-tools-connection-oracle-database-result.js +54 -0
- package/lib/model/validate-database-tools-connection-oracle-database-result.js.map +1 -0
- package/lib/model/validate-database-tools-connection-result.d.ts +38 -0
- package/lib/model/validate-database-tools-connection-result.js +65 -0
- package/lib/model/validate-database-tools-connection-result.js.map +1 -0
- package/lib/model/work-request-collection.d.ts +26 -0
- package/lib/model/work-request-collection.js +61 -0
- package/lib/model/work-request-collection.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +42 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +62 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +62 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/change-database-tools-connection-compartment-request.d.ts +49 -0
- package/lib/request/change-database-tools-connection-compartment-request.js +15 -0
- package/lib/request/change-database-tools-connection-compartment-request.js.map +1 -0
- package/lib/request/change-database-tools-private-endpoint-compartment-request.d.ts +49 -0
- package/lib/request/change-database-tools-private-endpoint-compartment-request.js +15 -0
- package/lib/request/change-database-tools-private-endpoint-compartment-request.js.map +1 -0
- package/lib/request/create-database-tools-connection-request.d.ts +36 -0
- package/lib/request/create-database-tools-connection-request.js +15 -0
- package/lib/request/create-database-tools-connection-request.js.map +1 -0
- package/lib/request/create-database-tools-private-endpoint-request.d.ts +36 -0
- package/lib/request/create-database-tools-private-endpoint-request.js +15 -0
- package/lib/request/create-database-tools-private-endpoint-request.js.map +1 -0
- package/lib/request/delete-database-tools-connection-request.d.ts +35 -0
- package/lib/request/delete-database-tools-connection-request.js +15 -0
- package/lib/request/delete-database-tools-connection-request.js.map +1 -0
- package/lib/request/delete-database-tools-private-endpoint-request.d.ts +35 -0
- package/lib/request/delete-database-tools-private-endpoint-request.js +15 -0
- package/lib/request/delete-database-tools-private-endpoint-request.js.map +1 -0
- package/lib/request/get-database-tools-connection-request.d.ts +26 -0
- package/lib/request/get-database-tools-connection-request.js +15 -0
- package/lib/request/get-database-tools-connection-request.js.map +1 -0
- package/lib/request/get-database-tools-endpoint-service-request.d.ts +26 -0
- package/lib/request/get-database-tools-endpoint-service-request.js +15 -0
- package/lib/request/get-database-tools-endpoint-service-request.js.map +1 -0
- package/lib/request/get-database-tools-private-endpoint-request.d.ts +26 -0
- package/lib/request/get-database-tools-private-endpoint-request.js +15 -0
- package/lib/request/get-database-tools-private-endpoint-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +50 -0
- package/lib/request/index.js +47 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-database-tools-connections-request.d.ts +62 -0
- package/lib/request/list-database-tools-connections-request.js +24 -0
- package/lib/request/list-database-tools-connections-request.js.map +1 -0
- package/lib/request/list-database-tools-endpoint-services-request.d.ts +62 -0
- package/lib/request/list-database-tools-endpoint-services-request.js +24 -0
- package/lib/request/list-database-tools-endpoint-services-request.js.map +1 -0
- package/lib/request/list-database-tools-private-endpoints-request.d.ts +66 -0
- package/lib/request/list-database-tools-private-endpoints-request.js +24 -0
- package/lib/request/list-database-tools-private-endpoints-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +50 -0
- package/lib/request/list-work-request-errors-request.js +24 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +50 -0
- package/lib/request/list-work-request-logs-request.js +24 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +53 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-database-tools-connection-request.d.ts +40 -0
- package/lib/request/update-database-tools-connection-request.js +15 -0
- package/lib/request/update-database-tools-connection-request.js.map +1 -0
- package/lib/request/update-database-tools-private-endpoint-request.d.ts +40 -0
- package/lib/request/update-database-tools-private-endpoint-request.js +15 -0
- package/lib/request/update-database-tools-private-endpoint-request.js.map +1 -0
- package/lib/request/validate-database-tools-connection-request.d.ts +40 -0
- package/lib/request/validate-database-tools-connection-request.js +15 -0
- package/lib/request/validate-database-tools-connection-request.js.map +1 -0
- package/lib/response/change-database-tools-connection-compartment-response.d.ts +25 -0
- package/lib/response/change-database-tools-connection-compartment-response.js +15 -0
- package/lib/response/change-database-tools-connection-compartment-response.js.map +1 -0
- package/lib/response/change-database-tools-private-endpoint-compartment-response.d.ts +25 -0
- package/lib/response/change-database-tools-private-endpoint-compartment-response.js +15 -0
- package/lib/response/change-database-tools-private-endpoint-compartment-response.js.map +1 -0
- package/lib/response/create-database-tools-connection-response.d.ts +39 -0
- package/lib/response/create-database-tools-connection-response.js +15 -0
- package/lib/response/create-database-tools-connection-response.js.map +1 -0
- package/lib/response/create-database-tools-private-endpoint-response.d.ts +39 -0
- package/lib/response/create-database-tools-private-endpoint-response.js +15 -0
- package/lib/response/create-database-tools-private-endpoint-response.js.map +1 -0
- package/lib/response/delete-database-tools-connection-response.d.ts +25 -0
- package/lib/response/delete-database-tools-connection-response.js +15 -0
- package/lib/response/delete-database-tools-connection-response.js.map +1 -0
- package/lib/response/delete-database-tools-private-endpoint-response.d.ts +25 -0
- package/lib/response/delete-database-tools-private-endpoint-response.js +15 -0
- package/lib/response/delete-database-tools-private-endpoint-response.js.map +1 -0
- package/lib/response/get-database-tools-connection-response.d.ts +30 -0
- package/lib/response/get-database-tools-connection-response.js +15 -0
- package/lib/response/get-database-tools-connection-response.js.map +1 -0
- package/lib/response/get-database-tools-endpoint-service-response.d.ts +30 -0
- package/lib/response/get-database-tools-endpoint-service-response.js +15 -0
- package/lib/response/get-database-tools-endpoint-service-response.js.map +1 -0
- package/lib/response/get-database-tools-private-endpoint-response.d.ts +30 -0
- package/lib/response/get-database-tools-private-endpoint-response.js +15 -0
- package/lib/response/get-database-tools-private-endpoint-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +29 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +50 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-database-tools-connections-response.d.ts +32 -0
- package/lib/response/list-database-tools-connections-response.js +15 -0
- package/lib/response/list-database-tools-connections-response.js.map +1 -0
- package/lib/response/list-database-tools-endpoint-services-response.d.ts +32 -0
- package/lib/response/list-database-tools-endpoint-services-response.js +15 -0
- package/lib/response/list-database-tools-endpoint-services-response.js.map +1 -0
- package/lib/response/list-database-tools-private-endpoints-response.d.ts +32 -0
- package/lib/response/list-database-tools-private-endpoints-response.js +15 -0
- package/lib/response/list-database-tools-private-endpoints-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-database-tools-connection-response.d.ts +25 -0
- package/lib/response/update-database-tools-connection-response.js +15 -0
- package/lib/response/update-database-tools-connection-response.js.map +1 -0
- package/lib/response/update-database-tools-private-endpoint-response.d.ts +25 -0
- package/lib/response/update-database-tools-private-endpoint-response.js +15 -0
- package/lib/response/update-database-tools-private-endpoint-response.js.map +1 -0
- package/lib/response/validate-database-tools-connection-response.d.ts +25 -0
- package/lib/response/validate-database-tools-connection-response.js +15 -0
- package/lib/response/validate-database-tools-connection-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Database Tools
|
|
4
|
+
* Database Tools APIs to manage Connections and Private Endpoints.
|
|
5
|
+
* OpenAPI spec version: 20201005
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.DatabaseToolsClient = exports.DatabaseToolsApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const databasetools_waiter_1 = require("./databasetools-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
var DatabaseToolsApiKeys;
|
|
52
|
+
(function (DatabaseToolsApiKeys) {
|
|
53
|
+
})(DatabaseToolsApiKeys = exports.DatabaseToolsApiKeys || (exports.DatabaseToolsApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
56
|
+
*/
|
|
57
|
+
class DatabaseToolsClient {
|
|
58
|
+
constructor(params, clientConfiguration) {
|
|
59
|
+
this["_endpoint"] = "";
|
|
60
|
+
this["_defaultHeaders"] = {};
|
|
61
|
+
this._circuitBreaker = null;
|
|
62
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
63
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
64
|
+
: null;
|
|
65
|
+
if (clientConfiguration) {
|
|
66
|
+
this._clientConfiguration = clientConfiguration;
|
|
67
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
68
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
69
|
+
: null;
|
|
70
|
+
}
|
|
71
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
72
|
+
const specCircuitBreakerEnabled = false;
|
|
73
|
+
if (!this._circuitBreaker &&
|
|
74
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
75
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
76
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
77
|
+
}
|
|
78
|
+
this._httpClient =
|
|
79
|
+
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
80
|
+
if (params.authenticationDetailsProvider &&
|
|
81
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
82
|
+
const provider = params.authenticationDetailsProvider;
|
|
83
|
+
if (provider.getRegion()) {
|
|
84
|
+
this.region = provider.getRegion();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
90
|
+
*/
|
|
91
|
+
get endpoint() {
|
|
92
|
+
return this._endpoint;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
96
|
+
* @param endpoint The endpoint of the service.
|
|
97
|
+
*/
|
|
98
|
+
set endpoint(endpoint) {
|
|
99
|
+
this._endpoint = endpoint;
|
|
100
|
+
this._endpoint = this._endpoint + "/20201005";
|
|
101
|
+
if (this.logger)
|
|
102
|
+
this.logger.info(`DatabaseToolsClient endpoint set to ${this._endpoint}`);
|
|
103
|
+
}
|
|
104
|
+
get logger() {
|
|
105
|
+
return common.LOG.logger;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
109
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
110
|
+
* @param region The region of the service.
|
|
111
|
+
*/
|
|
112
|
+
set region(region) {
|
|
113
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DatabaseToolsClient.serviceEndpointTemplate, region);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
117
|
+
*
|
|
118
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
119
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
120
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
121
|
+
* @param regionId The public region ID.
|
|
122
|
+
*/
|
|
123
|
+
set regionId(regionId) {
|
|
124
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DatabaseToolsClient.serviceEndpointTemplate, regionId);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new DatabaseToolsWaiter for resources for this service.
|
|
128
|
+
*
|
|
129
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
130
|
+
* @return The service waiters.
|
|
131
|
+
*/
|
|
132
|
+
createWaiters(config) {
|
|
133
|
+
this._waiters = new databasetools_waiter_1.DatabaseToolsWaiter(this, config);
|
|
134
|
+
return this._waiters;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Gets the waiters available for resources for this service.
|
|
138
|
+
*
|
|
139
|
+
* @return The service waiters.
|
|
140
|
+
*/
|
|
141
|
+
getWaiters() {
|
|
142
|
+
if (this._waiters) {
|
|
143
|
+
return this._waiters;
|
|
144
|
+
}
|
|
145
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Moves a DatabaseToolsConnection into a different compartment within the same tenancy.
|
|
149
|
+
* For information about moving resources between compartments, see
|
|
150
|
+
* [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
151
|
+
*
|
|
152
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
153
|
+
* @param ChangeDatabaseToolsConnectionCompartmentRequest
|
|
154
|
+
* @return ChangeDatabaseToolsConnectionCompartmentResponse
|
|
155
|
+
* @throws OciError when an error occurs
|
|
156
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ChangeDatabaseToolsConnectionCompartment.ts.html |here} to see how to use ChangeDatabaseToolsConnectionCompartment API.
|
|
157
|
+
*/
|
|
158
|
+
changeDatabaseToolsConnectionCompartment(changeDatabaseToolsConnectionCompartmentRequest) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (this.logger)
|
|
161
|
+
this.logger.debug("Calling operation DatabaseToolsClient#changeDatabaseToolsConnectionCompartment.");
|
|
162
|
+
const pathParams = {
|
|
163
|
+
"{databaseToolsConnectionId}": changeDatabaseToolsConnectionCompartmentRequest.databaseToolsConnectionId
|
|
164
|
+
};
|
|
165
|
+
const queryParams = {};
|
|
166
|
+
let headerParams = {
|
|
167
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
168
|
+
"if-match": changeDatabaseToolsConnectionCompartmentRequest.ifMatch,
|
|
169
|
+
"opc-request-id": changeDatabaseToolsConnectionCompartmentRequest.opcRequestId,
|
|
170
|
+
"opc-retry-token": changeDatabaseToolsConnectionCompartmentRequest.opcRetryToken
|
|
171
|
+
};
|
|
172
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
173
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDatabaseToolsConnectionCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
174
|
+
if (this.logger)
|
|
175
|
+
retrier.logger = this.logger;
|
|
176
|
+
const request = yield oci_common_1.composeRequest({
|
|
177
|
+
baseEndpoint: this._endpoint,
|
|
178
|
+
defaultHeaders: this._defaultHeaders,
|
|
179
|
+
path: "/databaseToolsConnections/{databaseToolsConnectionId}/actions/changeCompartment",
|
|
180
|
+
method: "POST",
|
|
181
|
+
bodyContent: common.ObjectSerializer.serialize(changeDatabaseToolsConnectionCompartmentRequest.changeDatabaseToolsConnectionCompartmentDetails, "ChangeDatabaseToolsConnectionCompartmentDetails", model.ChangeDatabaseToolsConnectionCompartmentDetails.getJsonObj),
|
|
182
|
+
pathParams: pathParams,
|
|
183
|
+
headerParams: headerParams,
|
|
184
|
+
queryParams: queryParams
|
|
185
|
+
});
|
|
186
|
+
try {
|
|
187
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
188
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
189
|
+
responseObject: {},
|
|
190
|
+
responseHeaders: [
|
|
191
|
+
{
|
|
192
|
+
value: response.headers.get("opc-work-request-id"),
|
|
193
|
+
key: "opcWorkRequestId",
|
|
194
|
+
dataType: "string"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
value: response.headers.get("opc-request-id"),
|
|
198
|
+
key: "opcRequestId",
|
|
199
|
+
dataType: "string"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
});
|
|
203
|
+
return sdkResponse;
|
|
204
|
+
}
|
|
205
|
+
catch (err) {
|
|
206
|
+
throw err;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Moves a DatabaseToolsPrivateEndpoint into a different compartment within the same tenancy.
|
|
212
|
+
* For information about moving resources between compartments, see
|
|
213
|
+
* [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
214
|
+
*
|
|
215
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
216
|
+
* @param ChangeDatabaseToolsPrivateEndpointCompartmentRequest
|
|
217
|
+
* @return ChangeDatabaseToolsPrivateEndpointCompartmentResponse
|
|
218
|
+
* @throws OciError when an error occurs
|
|
219
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ChangeDatabaseToolsPrivateEndpointCompartment.ts.html |here} to see how to use ChangeDatabaseToolsPrivateEndpointCompartment API.
|
|
220
|
+
*/
|
|
221
|
+
changeDatabaseToolsPrivateEndpointCompartment(changeDatabaseToolsPrivateEndpointCompartmentRequest) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
if (this.logger)
|
|
224
|
+
this.logger.debug("Calling operation DatabaseToolsClient#changeDatabaseToolsPrivateEndpointCompartment.");
|
|
225
|
+
const pathParams = {
|
|
226
|
+
"{databaseToolsPrivateEndpointId}": changeDatabaseToolsPrivateEndpointCompartmentRequest.databaseToolsPrivateEndpointId
|
|
227
|
+
};
|
|
228
|
+
const queryParams = {};
|
|
229
|
+
let headerParams = {
|
|
230
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
231
|
+
"if-match": changeDatabaseToolsPrivateEndpointCompartmentRequest.ifMatch,
|
|
232
|
+
"opc-request-id": changeDatabaseToolsPrivateEndpointCompartmentRequest.opcRequestId,
|
|
233
|
+
"opc-retry-token": changeDatabaseToolsPrivateEndpointCompartmentRequest.opcRetryToken
|
|
234
|
+
};
|
|
235
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
236
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDatabaseToolsPrivateEndpointCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
237
|
+
if (this.logger)
|
|
238
|
+
retrier.logger = this.logger;
|
|
239
|
+
const request = yield oci_common_1.composeRequest({
|
|
240
|
+
baseEndpoint: this._endpoint,
|
|
241
|
+
defaultHeaders: this._defaultHeaders,
|
|
242
|
+
path: "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}/actions/changeCompartment",
|
|
243
|
+
method: "POST",
|
|
244
|
+
bodyContent: common.ObjectSerializer.serialize(changeDatabaseToolsPrivateEndpointCompartmentRequest.changeDatabaseToolsPrivateEndpointCompartmentDetails, "ChangeDatabaseToolsPrivateEndpointCompartmentDetails", model.ChangeDatabaseToolsPrivateEndpointCompartmentDetails.getJsonObj),
|
|
245
|
+
pathParams: pathParams,
|
|
246
|
+
headerParams: headerParams,
|
|
247
|
+
queryParams: queryParams
|
|
248
|
+
});
|
|
249
|
+
try {
|
|
250
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
251
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
252
|
+
responseObject: {},
|
|
253
|
+
responseHeaders: [
|
|
254
|
+
{
|
|
255
|
+
value: response.headers.get("opc-work-request-id"),
|
|
256
|
+
key: "opcWorkRequestId",
|
|
257
|
+
dataType: "string"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
value: response.headers.get("opc-request-id"),
|
|
261
|
+
key: "opcRequestId",
|
|
262
|
+
dataType: "string"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
});
|
|
266
|
+
return sdkResponse;
|
|
267
|
+
}
|
|
268
|
+
catch (err) {
|
|
269
|
+
throw err;
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Creates a new DatabaseToolsConnection.
|
|
275
|
+
*
|
|
276
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
277
|
+
* @param CreateDatabaseToolsConnectionRequest
|
|
278
|
+
* @return CreateDatabaseToolsConnectionResponse
|
|
279
|
+
* @throws OciError when an error occurs
|
|
280
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/CreateDatabaseToolsConnection.ts.html |here} to see how to use CreateDatabaseToolsConnection API.
|
|
281
|
+
*/
|
|
282
|
+
createDatabaseToolsConnection(createDatabaseToolsConnectionRequest) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
if (this.logger)
|
|
285
|
+
this.logger.debug("Calling operation DatabaseToolsClient#createDatabaseToolsConnection.");
|
|
286
|
+
const pathParams = {};
|
|
287
|
+
const queryParams = {};
|
|
288
|
+
let headerParams = {
|
|
289
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
290
|
+
"opc-retry-token": createDatabaseToolsConnectionRequest.opcRetryToken,
|
|
291
|
+
"opc-request-id": createDatabaseToolsConnectionRequest.opcRequestId
|
|
292
|
+
};
|
|
293
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
294
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDatabaseToolsConnectionRequest.retryConfiguration, specRetryConfiguration);
|
|
295
|
+
if (this.logger)
|
|
296
|
+
retrier.logger = this.logger;
|
|
297
|
+
const request = yield oci_common_1.composeRequest({
|
|
298
|
+
baseEndpoint: this._endpoint,
|
|
299
|
+
defaultHeaders: this._defaultHeaders,
|
|
300
|
+
path: "/databaseToolsConnections",
|
|
301
|
+
method: "POST",
|
|
302
|
+
bodyContent: common.ObjectSerializer.serialize(createDatabaseToolsConnectionRequest.createDatabaseToolsConnectionDetails, "CreateDatabaseToolsConnectionDetails", model.CreateDatabaseToolsConnectionDetails.getJsonObj),
|
|
303
|
+
pathParams: pathParams,
|
|
304
|
+
headerParams: headerParams,
|
|
305
|
+
queryParams: queryParams
|
|
306
|
+
});
|
|
307
|
+
try {
|
|
308
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
309
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
310
|
+
responseObject: {},
|
|
311
|
+
body: yield response.json(),
|
|
312
|
+
bodyKey: "databaseToolsConnection",
|
|
313
|
+
bodyModel: model.DatabaseToolsConnection,
|
|
314
|
+
type: "model.DatabaseToolsConnection",
|
|
315
|
+
responseHeaders: [
|
|
316
|
+
{
|
|
317
|
+
value: response.headers.get("location"),
|
|
318
|
+
key: "location",
|
|
319
|
+
dataType: "string"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
value: response.headers.get("etag"),
|
|
323
|
+
key: "etag",
|
|
324
|
+
dataType: "string"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
value: response.headers.get("opc-work-request-id"),
|
|
328
|
+
key: "opcWorkRequestId",
|
|
329
|
+
dataType: "string"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
value: response.headers.get("opc-request-id"),
|
|
333
|
+
key: "opcRequestId",
|
|
334
|
+
dataType: "string"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
});
|
|
338
|
+
return sdkResponse;
|
|
339
|
+
}
|
|
340
|
+
catch (err) {
|
|
341
|
+
throw err;
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Creates a new DatabaseToolsPrivateEndpoint.
|
|
347
|
+
*
|
|
348
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
349
|
+
* @param CreateDatabaseToolsPrivateEndpointRequest
|
|
350
|
+
* @return CreateDatabaseToolsPrivateEndpointResponse
|
|
351
|
+
* @throws OciError when an error occurs
|
|
352
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/CreateDatabaseToolsPrivateEndpoint.ts.html |here} to see how to use CreateDatabaseToolsPrivateEndpoint API.
|
|
353
|
+
*/
|
|
354
|
+
createDatabaseToolsPrivateEndpoint(createDatabaseToolsPrivateEndpointRequest) {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
if (this.logger)
|
|
357
|
+
this.logger.debug("Calling operation DatabaseToolsClient#createDatabaseToolsPrivateEndpoint.");
|
|
358
|
+
const pathParams = {};
|
|
359
|
+
const queryParams = {};
|
|
360
|
+
let headerParams = {
|
|
361
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
362
|
+
"opc-retry-token": createDatabaseToolsPrivateEndpointRequest.opcRetryToken,
|
|
363
|
+
"opc-request-id": createDatabaseToolsPrivateEndpointRequest.opcRequestId
|
|
364
|
+
};
|
|
365
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
366
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDatabaseToolsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
367
|
+
if (this.logger)
|
|
368
|
+
retrier.logger = this.logger;
|
|
369
|
+
const request = yield oci_common_1.composeRequest({
|
|
370
|
+
baseEndpoint: this._endpoint,
|
|
371
|
+
defaultHeaders: this._defaultHeaders,
|
|
372
|
+
path: "/databaseToolsPrivateEndpoints",
|
|
373
|
+
method: "POST",
|
|
374
|
+
bodyContent: common.ObjectSerializer.serialize(createDatabaseToolsPrivateEndpointRequest.createDatabaseToolsPrivateEndpointDetails, "CreateDatabaseToolsPrivateEndpointDetails", model.CreateDatabaseToolsPrivateEndpointDetails.getJsonObj),
|
|
375
|
+
pathParams: pathParams,
|
|
376
|
+
headerParams: headerParams,
|
|
377
|
+
queryParams: queryParams
|
|
378
|
+
});
|
|
379
|
+
try {
|
|
380
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
381
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
382
|
+
responseObject: {},
|
|
383
|
+
body: yield response.json(),
|
|
384
|
+
bodyKey: "databaseToolsPrivateEndpoint",
|
|
385
|
+
bodyModel: model.DatabaseToolsPrivateEndpoint,
|
|
386
|
+
type: "model.DatabaseToolsPrivateEndpoint",
|
|
387
|
+
responseHeaders: [
|
|
388
|
+
{
|
|
389
|
+
value: response.headers.get("location"),
|
|
390
|
+
key: "location",
|
|
391
|
+
dataType: "string"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
value: response.headers.get("etag"),
|
|
395
|
+
key: "etag",
|
|
396
|
+
dataType: "string"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
value: response.headers.get("opc-work-request-id"),
|
|
400
|
+
key: "opcWorkRequestId",
|
|
401
|
+
dataType: "string"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
value: response.headers.get("opc-request-id"),
|
|
405
|
+
key: "opcRequestId",
|
|
406
|
+
dataType: "string"
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
return sdkResponse;
|
|
411
|
+
}
|
|
412
|
+
catch (err) {
|
|
413
|
+
throw err;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Deletes a DatabaseToolsConnection resource by identifier
|
|
419
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
420
|
+
* @param DeleteDatabaseToolsConnectionRequest
|
|
421
|
+
* @return DeleteDatabaseToolsConnectionResponse
|
|
422
|
+
* @throws OciError when an error occurs
|
|
423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/DeleteDatabaseToolsConnection.ts.html |here} to see how to use DeleteDatabaseToolsConnection API.
|
|
424
|
+
*/
|
|
425
|
+
deleteDatabaseToolsConnection(deleteDatabaseToolsConnectionRequest) {
|
|
426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
+
if (this.logger)
|
|
428
|
+
this.logger.debug("Calling operation DatabaseToolsClient#deleteDatabaseToolsConnection.");
|
|
429
|
+
const pathParams = {
|
|
430
|
+
"{databaseToolsConnectionId}": deleteDatabaseToolsConnectionRequest.databaseToolsConnectionId
|
|
431
|
+
};
|
|
432
|
+
const queryParams = {};
|
|
433
|
+
let headerParams = {
|
|
434
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
435
|
+
"if-match": deleteDatabaseToolsConnectionRequest.ifMatch,
|
|
436
|
+
"opc-request-id": deleteDatabaseToolsConnectionRequest.opcRequestId
|
|
437
|
+
};
|
|
438
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
439
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDatabaseToolsConnectionRequest.retryConfiguration, specRetryConfiguration);
|
|
440
|
+
if (this.logger)
|
|
441
|
+
retrier.logger = this.logger;
|
|
442
|
+
const request = yield oci_common_1.composeRequest({
|
|
443
|
+
baseEndpoint: this._endpoint,
|
|
444
|
+
defaultHeaders: this._defaultHeaders,
|
|
445
|
+
path: "/databaseToolsConnections/{databaseToolsConnectionId}",
|
|
446
|
+
method: "DELETE",
|
|
447
|
+
pathParams: pathParams,
|
|
448
|
+
headerParams: headerParams,
|
|
449
|
+
queryParams: queryParams
|
|
450
|
+
});
|
|
451
|
+
try {
|
|
452
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
453
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
454
|
+
responseObject: {},
|
|
455
|
+
responseHeaders: [
|
|
456
|
+
{
|
|
457
|
+
value: response.headers.get("opc-work-request-id"),
|
|
458
|
+
key: "opcWorkRequestId",
|
|
459
|
+
dataType: "string"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
value: response.headers.get("opc-request-id"),
|
|
463
|
+
key: "opcRequestId",
|
|
464
|
+
dataType: "string"
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
});
|
|
468
|
+
return sdkResponse;
|
|
469
|
+
}
|
|
470
|
+
catch (err) {
|
|
471
|
+
throw err;
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Deletes a DatabaseToolsPrivateEndpoint resource by identifier
|
|
477
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
478
|
+
* @param DeleteDatabaseToolsPrivateEndpointRequest
|
|
479
|
+
* @return DeleteDatabaseToolsPrivateEndpointResponse
|
|
480
|
+
* @throws OciError when an error occurs
|
|
481
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/DeleteDatabaseToolsPrivateEndpoint.ts.html |here} to see how to use DeleteDatabaseToolsPrivateEndpoint API.
|
|
482
|
+
*/
|
|
483
|
+
deleteDatabaseToolsPrivateEndpoint(deleteDatabaseToolsPrivateEndpointRequest) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
if (this.logger)
|
|
486
|
+
this.logger.debug("Calling operation DatabaseToolsClient#deleteDatabaseToolsPrivateEndpoint.");
|
|
487
|
+
const pathParams = {
|
|
488
|
+
"{databaseToolsPrivateEndpointId}": deleteDatabaseToolsPrivateEndpointRequest.databaseToolsPrivateEndpointId
|
|
489
|
+
};
|
|
490
|
+
const queryParams = {};
|
|
491
|
+
let headerParams = {
|
|
492
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
493
|
+
"if-match": deleteDatabaseToolsPrivateEndpointRequest.ifMatch,
|
|
494
|
+
"opc-request-id": deleteDatabaseToolsPrivateEndpointRequest.opcRequestId
|
|
495
|
+
};
|
|
496
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
497
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDatabaseToolsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
498
|
+
if (this.logger)
|
|
499
|
+
retrier.logger = this.logger;
|
|
500
|
+
const request = yield oci_common_1.composeRequest({
|
|
501
|
+
baseEndpoint: this._endpoint,
|
|
502
|
+
defaultHeaders: this._defaultHeaders,
|
|
503
|
+
path: "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}",
|
|
504
|
+
method: "DELETE",
|
|
505
|
+
pathParams: pathParams,
|
|
506
|
+
headerParams: headerParams,
|
|
507
|
+
queryParams: queryParams
|
|
508
|
+
});
|
|
509
|
+
try {
|
|
510
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
511
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
512
|
+
responseObject: {},
|
|
513
|
+
responseHeaders: [
|
|
514
|
+
{
|
|
515
|
+
value: response.headers.get("opc-work-request-id"),
|
|
516
|
+
key: "opcWorkRequestId",
|
|
517
|
+
dataType: "string"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
value: response.headers.get("opc-request-id"),
|
|
521
|
+
key: "opcRequestId",
|
|
522
|
+
dataType: "string"
|
|
523
|
+
}
|
|
524
|
+
]
|
|
525
|
+
});
|
|
526
|
+
return sdkResponse;
|
|
527
|
+
}
|
|
528
|
+
catch (err) {
|
|
529
|
+
throw err;
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Gets a DatabaseToolsConnection by identifier
|
|
535
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
536
|
+
* @param GetDatabaseToolsConnectionRequest
|
|
537
|
+
* @return GetDatabaseToolsConnectionResponse
|
|
538
|
+
* @throws OciError when an error occurs
|
|
539
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/GetDatabaseToolsConnection.ts.html |here} to see how to use GetDatabaseToolsConnection API.
|
|
540
|
+
*/
|
|
541
|
+
getDatabaseToolsConnection(getDatabaseToolsConnectionRequest) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
if (this.logger)
|
|
544
|
+
this.logger.debug("Calling operation DatabaseToolsClient#getDatabaseToolsConnection.");
|
|
545
|
+
const pathParams = {
|
|
546
|
+
"{databaseToolsConnectionId}": getDatabaseToolsConnectionRequest.databaseToolsConnectionId
|
|
547
|
+
};
|
|
548
|
+
const queryParams = {};
|
|
549
|
+
let headerParams = {
|
|
550
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
551
|
+
"opc-request-id": getDatabaseToolsConnectionRequest.opcRequestId
|
|
552
|
+
};
|
|
553
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
554
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseToolsConnectionRequest.retryConfiguration, specRetryConfiguration);
|
|
555
|
+
if (this.logger)
|
|
556
|
+
retrier.logger = this.logger;
|
|
557
|
+
const request = yield oci_common_1.composeRequest({
|
|
558
|
+
baseEndpoint: this._endpoint,
|
|
559
|
+
defaultHeaders: this._defaultHeaders,
|
|
560
|
+
path: "/databaseToolsConnections/{databaseToolsConnectionId}",
|
|
561
|
+
method: "GET",
|
|
562
|
+
pathParams: pathParams,
|
|
563
|
+
headerParams: headerParams,
|
|
564
|
+
queryParams: queryParams
|
|
565
|
+
});
|
|
566
|
+
try {
|
|
567
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
568
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
569
|
+
responseObject: {},
|
|
570
|
+
body: yield response.json(),
|
|
571
|
+
bodyKey: "databaseToolsConnection",
|
|
572
|
+
bodyModel: model.DatabaseToolsConnection,
|
|
573
|
+
type: "model.DatabaseToolsConnection",
|
|
574
|
+
responseHeaders: [
|
|
575
|
+
{
|
|
576
|
+
value: response.headers.get("etag"),
|
|
577
|
+
key: "etag",
|
|
578
|
+
dataType: "string"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
value: response.headers.get("opc-request-id"),
|
|
582
|
+
key: "opcRequestId",
|
|
583
|
+
dataType: "string"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
});
|
|
587
|
+
return sdkResponse;
|
|
588
|
+
}
|
|
589
|
+
catch (err) {
|
|
590
|
+
throw err;
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Gets a DatabaseToolsEndpointService by identifier
|
|
596
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
597
|
+
* @param GetDatabaseToolsEndpointServiceRequest
|
|
598
|
+
* @return GetDatabaseToolsEndpointServiceResponse
|
|
599
|
+
* @throws OciError when an error occurs
|
|
600
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/GetDatabaseToolsEndpointService.ts.html |here} to see how to use GetDatabaseToolsEndpointService API.
|
|
601
|
+
*/
|
|
602
|
+
getDatabaseToolsEndpointService(getDatabaseToolsEndpointServiceRequest) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
+
if (this.logger)
|
|
605
|
+
this.logger.debug("Calling operation DatabaseToolsClient#getDatabaseToolsEndpointService.");
|
|
606
|
+
const pathParams = {
|
|
607
|
+
"{databaseToolsEndpointServiceId}": getDatabaseToolsEndpointServiceRequest.databaseToolsEndpointServiceId
|
|
608
|
+
};
|
|
609
|
+
const queryParams = {};
|
|
610
|
+
let headerParams = {
|
|
611
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
612
|
+
"opc-request-id": getDatabaseToolsEndpointServiceRequest.opcRequestId
|
|
613
|
+
};
|
|
614
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
615
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseToolsEndpointServiceRequest.retryConfiguration, specRetryConfiguration);
|
|
616
|
+
if (this.logger)
|
|
617
|
+
retrier.logger = this.logger;
|
|
618
|
+
const request = yield oci_common_1.composeRequest({
|
|
619
|
+
baseEndpoint: this._endpoint,
|
|
620
|
+
defaultHeaders: this._defaultHeaders,
|
|
621
|
+
path: "/databaseToolsEndpointServices/{databaseToolsEndpointServiceId}",
|
|
622
|
+
method: "GET",
|
|
623
|
+
pathParams: pathParams,
|
|
624
|
+
headerParams: headerParams,
|
|
625
|
+
queryParams: queryParams
|
|
626
|
+
});
|
|
627
|
+
try {
|
|
628
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
629
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
630
|
+
responseObject: {},
|
|
631
|
+
body: yield response.json(),
|
|
632
|
+
bodyKey: "databaseToolsEndpointService",
|
|
633
|
+
bodyModel: model.DatabaseToolsEndpointService,
|
|
634
|
+
type: "model.DatabaseToolsEndpointService",
|
|
635
|
+
responseHeaders: [
|
|
636
|
+
{
|
|
637
|
+
value: response.headers.get("etag"),
|
|
638
|
+
key: "etag",
|
|
639
|
+
dataType: "string"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
value: response.headers.get("opc-request-id"),
|
|
643
|
+
key: "opcRequestId",
|
|
644
|
+
dataType: "string"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
});
|
|
648
|
+
return sdkResponse;
|
|
649
|
+
}
|
|
650
|
+
catch (err) {
|
|
651
|
+
throw err;
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Gets a DatabaseToolsPrivateEndpoint by identifier
|
|
657
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
658
|
+
* @param GetDatabaseToolsPrivateEndpointRequest
|
|
659
|
+
* @return GetDatabaseToolsPrivateEndpointResponse
|
|
660
|
+
* @throws OciError when an error occurs
|
|
661
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/GetDatabaseToolsPrivateEndpoint.ts.html |here} to see how to use GetDatabaseToolsPrivateEndpoint API.
|
|
662
|
+
*/
|
|
663
|
+
getDatabaseToolsPrivateEndpoint(getDatabaseToolsPrivateEndpointRequest) {
|
|
664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
665
|
+
if (this.logger)
|
|
666
|
+
this.logger.debug("Calling operation DatabaseToolsClient#getDatabaseToolsPrivateEndpoint.");
|
|
667
|
+
const pathParams = {
|
|
668
|
+
"{databaseToolsPrivateEndpointId}": getDatabaseToolsPrivateEndpointRequest.databaseToolsPrivateEndpointId
|
|
669
|
+
};
|
|
670
|
+
const queryParams = {};
|
|
671
|
+
let headerParams = {
|
|
672
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
673
|
+
"opc-request-id": getDatabaseToolsPrivateEndpointRequest.opcRequestId
|
|
674
|
+
};
|
|
675
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
676
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseToolsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
677
|
+
if (this.logger)
|
|
678
|
+
retrier.logger = this.logger;
|
|
679
|
+
const request = yield oci_common_1.composeRequest({
|
|
680
|
+
baseEndpoint: this._endpoint,
|
|
681
|
+
defaultHeaders: this._defaultHeaders,
|
|
682
|
+
path: "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}",
|
|
683
|
+
method: "GET",
|
|
684
|
+
pathParams: pathParams,
|
|
685
|
+
headerParams: headerParams,
|
|
686
|
+
queryParams: queryParams
|
|
687
|
+
});
|
|
688
|
+
try {
|
|
689
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
690
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
691
|
+
responseObject: {},
|
|
692
|
+
body: yield response.json(),
|
|
693
|
+
bodyKey: "databaseToolsPrivateEndpoint",
|
|
694
|
+
bodyModel: model.DatabaseToolsPrivateEndpoint,
|
|
695
|
+
type: "model.DatabaseToolsPrivateEndpoint",
|
|
696
|
+
responseHeaders: [
|
|
697
|
+
{
|
|
698
|
+
value: response.headers.get("etag"),
|
|
699
|
+
key: "etag",
|
|
700
|
+
dataType: "string"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
value: response.headers.get("opc-request-id"),
|
|
704
|
+
key: "opcRequestId",
|
|
705
|
+
dataType: "string"
|
|
706
|
+
}
|
|
707
|
+
]
|
|
708
|
+
});
|
|
709
|
+
return sdkResponse;
|
|
710
|
+
}
|
|
711
|
+
catch (err) {
|
|
712
|
+
throw err;
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Gets the status of the work request with the given ID.
|
|
718
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
719
|
+
* @param GetWorkRequestRequest
|
|
720
|
+
* @return GetWorkRequestResponse
|
|
721
|
+
* @throws OciError when an error occurs
|
|
722
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
723
|
+
*/
|
|
724
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
726
|
+
if (this.logger)
|
|
727
|
+
this.logger.debug("Calling operation DatabaseToolsClient#getWorkRequest.");
|
|
728
|
+
const pathParams = {
|
|
729
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
730
|
+
};
|
|
731
|
+
const queryParams = {};
|
|
732
|
+
let headerParams = {
|
|
733
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
734
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
735
|
+
};
|
|
736
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
737
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
738
|
+
if (this.logger)
|
|
739
|
+
retrier.logger = this.logger;
|
|
740
|
+
const request = yield oci_common_1.composeRequest({
|
|
741
|
+
baseEndpoint: this._endpoint,
|
|
742
|
+
defaultHeaders: this._defaultHeaders,
|
|
743
|
+
path: "/workRequests/{workRequestId}",
|
|
744
|
+
method: "GET",
|
|
745
|
+
pathParams: pathParams,
|
|
746
|
+
headerParams: headerParams,
|
|
747
|
+
queryParams: queryParams
|
|
748
|
+
});
|
|
749
|
+
try {
|
|
750
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
751
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
752
|
+
responseObject: {},
|
|
753
|
+
body: yield response.json(),
|
|
754
|
+
bodyKey: "workRequest",
|
|
755
|
+
bodyModel: model.WorkRequest,
|
|
756
|
+
type: "model.WorkRequest",
|
|
757
|
+
responseHeaders: [
|
|
758
|
+
{
|
|
759
|
+
value: response.headers.get("opc-request-id"),
|
|
760
|
+
key: "opcRequestId",
|
|
761
|
+
dataType: "string"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
value: response.headers.get("retry-after"),
|
|
765
|
+
key: "retryAfter",
|
|
766
|
+
dataType: "number"
|
|
767
|
+
}
|
|
768
|
+
]
|
|
769
|
+
});
|
|
770
|
+
return sdkResponse;
|
|
771
|
+
}
|
|
772
|
+
catch (err) {
|
|
773
|
+
throw err;
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Returns a list of DatabaseToolsConnections.
|
|
779
|
+
*
|
|
780
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
781
|
+
* @param ListDatabaseToolsConnectionsRequest
|
|
782
|
+
* @return ListDatabaseToolsConnectionsResponse
|
|
783
|
+
* @throws OciError when an error occurs
|
|
784
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ListDatabaseToolsConnections.ts.html |here} to see how to use ListDatabaseToolsConnections API.
|
|
785
|
+
*/
|
|
786
|
+
listDatabaseToolsConnections(listDatabaseToolsConnectionsRequest) {
|
|
787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
788
|
+
if (this.logger)
|
|
789
|
+
this.logger.debug("Calling operation DatabaseToolsClient#listDatabaseToolsConnections.");
|
|
790
|
+
const pathParams = {};
|
|
791
|
+
const queryParams = {
|
|
792
|
+
"compartmentId": listDatabaseToolsConnectionsRequest.compartmentId,
|
|
793
|
+
"lifecycleState": listDatabaseToolsConnectionsRequest.lifecycleState,
|
|
794
|
+
"displayName": listDatabaseToolsConnectionsRequest.displayName,
|
|
795
|
+
"type": listDatabaseToolsConnectionsRequest.type,
|
|
796
|
+
"limit": listDatabaseToolsConnectionsRequest.limit,
|
|
797
|
+
"page": listDatabaseToolsConnectionsRequest.page,
|
|
798
|
+
"sortOrder": listDatabaseToolsConnectionsRequest.sortOrder,
|
|
799
|
+
"sortBy": listDatabaseToolsConnectionsRequest.sortBy
|
|
800
|
+
};
|
|
801
|
+
let headerParams = {
|
|
802
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
803
|
+
"opc-request-id": listDatabaseToolsConnectionsRequest.opcRequestId
|
|
804
|
+
};
|
|
805
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
806
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDatabaseToolsConnectionsRequest.retryConfiguration, specRetryConfiguration);
|
|
807
|
+
if (this.logger)
|
|
808
|
+
retrier.logger = this.logger;
|
|
809
|
+
const request = yield oci_common_1.composeRequest({
|
|
810
|
+
baseEndpoint: this._endpoint,
|
|
811
|
+
defaultHeaders: this._defaultHeaders,
|
|
812
|
+
path: "/databaseToolsConnections",
|
|
813
|
+
method: "GET",
|
|
814
|
+
pathParams: pathParams,
|
|
815
|
+
headerParams: headerParams,
|
|
816
|
+
queryParams: queryParams
|
|
817
|
+
});
|
|
818
|
+
try {
|
|
819
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
820
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
821
|
+
responseObject: {},
|
|
822
|
+
body: yield response.json(),
|
|
823
|
+
bodyKey: "databaseToolsConnectionCollection",
|
|
824
|
+
bodyModel: model.DatabaseToolsConnectionCollection,
|
|
825
|
+
type: "model.DatabaseToolsConnectionCollection",
|
|
826
|
+
responseHeaders: [
|
|
827
|
+
{
|
|
828
|
+
value: response.headers.get("opc-request-id"),
|
|
829
|
+
key: "opcRequestId",
|
|
830
|
+
dataType: "string"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
value: response.headers.get("opc-next-page"),
|
|
834
|
+
key: "opcNextPage",
|
|
835
|
+
dataType: "string"
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
});
|
|
839
|
+
return sdkResponse;
|
|
840
|
+
}
|
|
841
|
+
catch (err) {
|
|
842
|
+
throw err;
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Returns a list of DatabaseToolsEndpointServices.
|
|
848
|
+
*
|
|
849
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
850
|
+
* @param ListDatabaseToolsEndpointServicesRequest
|
|
851
|
+
* @return ListDatabaseToolsEndpointServicesResponse
|
|
852
|
+
* @throws OciError when an error occurs
|
|
853
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ListDatabaseToolsEndpointServices.ts.html |here} to see how to use ListDatabaseToolsEndpointServices API.
|
|
854
|
+
*/
|
|
855
|
+
listDatabaseToolsEndpointServices(listDatabaseToolsEndpointServicesRequest) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
+
if (this.logger)
|
|
858
|
+
this.logger.debug("Calling operation DatabaseToolsClient#listDatabaseToolsEndpointServices.");
|
|
859
|
+
const pathParams = {};
|
|
860
|
+
const queryParams = {
|
|
861
|
+
"compartmentId": listDatabaseToolsEndpointServicesRequest.compartmentId,
|
|
862
|
+
"limit": listDatabaseToolsEndpointServicesRequest.limit,
|
|
863
|
+
"page": listDatabaseToolsEndpointServicesRequest.page,
|
|
864
|
+
"sortOrder": listDatabaseToolsEndpointServicesRequest.sortOrder,
|
|
865
|
+
"sortBy": listDatabaseToolsEndpointServicesRequest.sortBy,
|
|
866
|
+
"lifecycleState": listDatabaseToolsEndpointServicesRequest.lifecycleState,
|
|
867
|
+
"displayName": listDatabaseToolsEndpointServicesRequest.displayName,
|
|
868
|
+
"name": listDatabaseToolsEndpointServicesRequest.name
|
|
869
|
+
};
|
|
870
|
+
let headerParams = {
|
|
871
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
872
|
+
"opc-request-id": listDatabaseToolsEndpointServicesRequest.opcRequestId
|
|
873
|
+
};
|
|
874
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
875
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDatabaseToolsEndpointServicesRequest.retryConfiguration, specRetryConfiguration);
|
|
876
|
+
if (this.logger)
|
|
877
|
+
retrier.logger = this.logger;
|
|
878
|
+
const request = yield oci_common_1.composeRequest({
|
|
879
|
+
baseEndpoint: this._endpoint,
|
|
880
|
+
defaultHeaders: this._defaultHeaders,
|
|
881
|
+
path: "/databaseToolsEndpointServices",
|
|
882
|
+
method: "GET",
|
|
883
|
+
pathParams: pathParams,
|
|
884
|
+
headerParams: headerParams,
|
|
885
|
+
queryParams: queryParams
|
|
886
|
+
});
|
|
887
|
+
try {
|
|
888
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
889
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
890
|
+
responseObject: {},
|
|
891
|
+
body: yield response.json(),
|
|
892
|
+
bodyKey: "databaseToolsEndpointServiceCollection",
|
|
893
|
+
bodyModel: model.DatabaseToolsEndpointServiceCollection,
|
|
894
|
+
type: "model.DatabaseToolsEndpointServiceCollection",
|
|
895
|
+
responseHeaders: [
|
|
896
|
+
{
|
|
897
|
+
value: response.headers.get("opc-request-id"),
|
|
898
|
+
key: "opcRequestId",
|
|
899
|
+
dataType: "string"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
value: response.headers.get("opc-next-page"),
|
|
903
|
+
key: "opcNextPage",
|
|
904
|
+
dataType: "string"
|
|
905
|
+
}
|
|
906
|
+
]
|
|
907
|
+
});
|
|
908
|
+
return sdkResponse;
|
|
909
|
+
}
|
|
910
|
+
catch (err) {
|
|
911
|
+
throw err;
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Returns a list of DatabaseToolsPrivateEndpoints.
|
|
917
|
+
*
|
|
918
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
919
|
+
* @param ListDatabaseToolsPrivateEndpointsRequest
|
|
920
|
+
* @return ListDatabaseToolsPrivateEndpointsResponse
|
|
921
|
+
* @throws OciError when an error occurs
|
|
922
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ListDatabaseToolsPrivateEndpoints.ts.html |here} to see how to use ListDatabaseToolsPrivateEndpoints API.
|
|
923
|
+
*/
|
|
924
|
+
listDatabaseToolsPrivateEndpoints(listDatabaseToolsPrivateEndpointsRequest) {
|
|
925
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
926
|
+
if (this.logger)
|
|
927
|
+
this.logger.debug("Calling operation DatabaseToolsClient#listDatabaseToolsPrivateEndpoints.");
|
|
928
|
+
const pathParams = {};
|
|
929
|
+
const queryParams = {
|
|
930
|
+
"compartmentId": listDatabaseToolsPrivateEndpointsRequest.compartmentId,
|
|
931
|
+
"subnetId": listDatabaseToolsPrivateEndpointsRequest.subnetId,
|
|
932
|
+
"limit": listDatabaseToolsPrivateEndpointsRequest.limit,
|
|
933
|
+
"page": listDatabaseToolsPrivateEndpointsRequest.page,
|
|
934
|
+
"sortOrder": listDatabaseToolsPrivateEndpointsRequest.sortOrder,
|
|
935
|
+
"sortBy": listDatabaseToolsPrivateEndpointsRequest.sortBy,
|
|
936
|
+
"endpointServiceId": listDatabaseToolsPrivateEndpointsRequest.endpointServiceId,
|
|
937
|
+
"lifecycleState": listDatabaseToolsPrivateEndpointsRequest.lifecycleState,
|
|
938
|
+
"displayName": listDatabaseToolsPrivateEndpointsRequest.displayName
|
|
939
|
+
};
|
|
940
|
+
let headerParams = {
|
|
941
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
942
|
+
"opc-request-id": listDatabaseToolsPrivateEndpointsRequest.opcRequestId
|
|
943
|
+
};
|
|
944
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
945
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDatabaseToolsPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
946
|
+
if (this.logger)
|
|
947
|
+
retrier.logger = this.logger;
|
|
948
|
+
const request = yield oci_common_1.composeRequest({
|
|
949
|
+
baseEndpoint: this._endpoint,
|
|
950
|
+
defaultHeaders: this._defaultHeaders,
|
|
951
|
+
path: "/databaseToolsPrivateEndpoints",
|
|
952
|
+
method: "GET",
|
|
953
|
+
pathParams: pathParams,
|
|
954
|
+
headerParams: headerParams,
|
|
955
|
+
queryParams: queryParams
|
|
956
|
+
});
|
|
957
|
+
try {
|
|
958
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
959
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
960
|
+
responseObject: {},
|
|
961
|
+
body: yield response.json(),
|
|
962
|
+
bodyKey: "databaseToolsPrivateEndpointCollection",
|
|
963
|
+
bodyModel: model.DatabaseToolsPrivateEndpointCollection,
|
|
964
|
+
type: "model.DatabaseToolsPrivateEndpointCollection",
|
|
965
|
+
responseHeaders: [
|
|
966
|
+
{
|
|
967
|
+
value: response.headers.get("opc-request-id"),
|
|
968
|
+
key: "opcRequestId",
|
|
969
|
+
dataType: "string"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
value: response.headers.get("opc-next-page"),
|
|
973
|
+
key: "opcNextPage",
|
|
974
|
+
dataType: "string"
|
|
975
|
+
}
|
|
976
|
+
]
|
|
977
|
+
});
|
|
978
|
+
return sdkResponse;
|
|
979
|
+
}
|
|
980
|
+
catch (err) {
|
|
981
|
+
throw err;
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Return a (paginated) list of errors for a given work request.
|
|
987
|
+
*
|
|
988
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
989
|
+
* @param ListWorkRequestErrorsRequest
|
|
990
|
+
* @return ListWorkRequestErrorsResponse
|
|
991
|
+
* @throws OciError when an error occurs
|
|
992
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
993
|
+
*/
|
|
994
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
995
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
996
|
+
if (this.logger)
|
|
997
|
+
this.logger.debug("Calling operation DatabaseToolsClient#listWorkRequestErrors.");
|
|
998
|
+
const pathParams = {
|
|
999
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1000
|
+
};
|
|
1001
|
+
const queryParams = {
|
|
1002
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder,
|
|
1003
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1004
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1005
|
+
"limit": listWorkRequestErrorsRequest.limit
|
|
1006
|
+
};
|
|
1007
|
+
let headerParams = {
|
|
1008
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1009
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1010
|
+
};
|
|
1011
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1012
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1013
|
+
if (this.logger)
|
|
1014
|
+
retrier.logger = this.logger;
|
|
1015
|
+
const request = yield oci_common_1.composeRequest({
|
|
1016
|
+
baseEndpoint: this._endpoint,
|
|
1017
|
+
defaultHeaders: this._defaultHeaders,
|
|
1018
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1019
|
+
method: "GET",
|
|
1020
|
+
pathParams: pathParams,
|
|
1021
|
+
headerParams: headerParams,
|
|
1022
|
+
queryParams: queryParams
|
|
1023
|
+
});
|
|
1024
|
+
try {
|
|
1025
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1026
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1027
|
+
responseObject: {},
|
|
1028
|
+
body: yield response.json(),
|
|
1029
|
+
bodyKey: "workRequestErrorCollection",
|
|
1030
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1031
|
+
type: "model.WorkRequestErrorCollection",
|
|
1032
|
+
responseHeaders: [
|
|
1033
|
+
{
|
|
1034
|
+
value: response.headers.get("opc-next-page"),
|
|
1035
|
+
key: "opcNextPage",
|
|
1036
|
+
dataType: "string"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
value: response.headers.get("opc-request-id"),
|
|
1040
|
+
key: "opcRequestId",
|
|
1041
|
+
dataType: "string"
|
|
1042
|
+
}
|
|
1043
|
+
]
|
|
1044
|
+
});
|
|
1045
|
+
return sdkResponse;
|
|
1046
|
+
}
|
|
1047
|
+
catch (err) {
|
|
1048
|
+
throw err;
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* Return a (paginated) list of logs for a given work request.
|
|
1054
|
+
*
|
|
1055
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1056
|
+
* @param ListWorkRequestLogsRequest
|
|
1057
|
+
* @return ListWorkRequestLogsResponse
|
|
1058
|
+
* @throws OciError when an error occurs
|
|
1059
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1060
|
+
*/
|
|
1061
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1062
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1063
|
+
if (this.logger)
|
|
1064
|
+
this.logger.debug("Calling operation DatabaseToolsClient#listWorkRequestLogs.");
|
|
1065
|
+
const pathParams = {
|
|
1066
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1067
|
+
};
|
|
1068
|
+
const queryParams = {
|
|
1069
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder,
|
|
1070
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1071
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1072
|
+
"limit": listWorkRequestLogsRequest.limit
|
|
1073
|
+
};
|
|
1074
|
+
let headerParams = {
|
|
1075
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1076
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1077
|
+
};
|
|
1078
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1079
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1080
|
+
if (this.logger)
|
|
1081
|
+
retrier.logger = this.logger;
|
|
1082
|
+
const request = yield oci_common_1.composeRequest({
|
|
1083
|
+
baseEndpoint: this._endpoint,
|
|
1084
|
+
defaultHeaders: this._defaultHeaders,
|
|
1085
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1086
|
+
method: "GET",
|
|
1087
|
+
pathParams: pathParams,
|
|
1088
|
+
headerParams: headerParams,
|
|
1089
|
+
queryParams: queryParams
|
|
1090
|
+
});
|
|
1091
|
+
try {
|
|
1092
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1093
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1094
|
+
responseObject: {},
|
|
1095
|
+
body: yield response.json(),
|
|
1096
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1097
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1098
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1099
|
+
responseHeaders: [
|
|
1100
|
+
{
|
|
1101
|
+
value: response.headers.get("opc-next-page"),
|
|
1102
|
+
key: "opcNextPage",
|
|
1103
|
+
dataType: "string"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
value: response.headers.get("opc-request-id"),
|
|
1107
|
+
key: "opcRequestId",
|
|
1108
|
+
dataType: "string"
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
});
|
|
1112
|
+
return sdkResponse;
|
|
1113
|
+
}
|
|
1114
|
+
catch (err) {
|
|
1115
|
+
throw err;
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Lists the work requests in a compartment.
|
|
1121
|
+
*
|
|
1122
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1123
|
+
* @param ListWorkRequestsRequest
|
|
1124
|
+
* @return ListWorkRequestsResponse
|
|
1125
|
+
* @throws OciError when an error occurs
|
|
1126
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1127
|
+
*/
|
|
1128
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1130
|
+
if (this.logger)
|
|
1131
|
+
this.logger.debug("Calling operation DatabaseToolsClient#listWorkRequests.");
|
|
1132
|
+
const pathParams = {};
|
|
1133
|
+
const queryParams = {
|
|
1134
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1135
|
+
"resourceIdentifier": listWorkRequestsRequest.resourceIdentifier,
|
|
1136
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1137
|
+
"sortBy": listWorkRequestsRequest.sortBy,
|
|
1138
|
+
"page": listWorkRequestsRequest.page,
|
|
1139
|
+
"limit": listWorkRequestsRequest.limit
|
|
1140
|
+
};
|
|
1141
|
+
let headerParams = {
|
|
1142
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1143
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1144
|
+
};
|
|
1145
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1146
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1147
|
+
if (this.logger)
|
|
1148
|
+
retrier.logger = this.logger;
|
|
1149
|
+
const request = yield oci_common_1.composeRequest({
|
|
1150
|
+
baseEndpoint: this._endpoint,
|
|
1151
|
+
defaultHeaders: this._defaultHeaders,
|
|
1152
|
+
path: "/workRequests",
|
|
1153
|
+
method: "GET",
|
|
1154
|
+
pathParams: pathParams,
|
|
1155
|
+
headerParams: headerParams,
|
|
1156
|
+
queryParams: queryParams
|
|
1157
|
+
});
|
|
1158
|
+
try {
|
|
1159
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1160
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1161
|
+
responseObject: {},
|
|
1162
|
+
body: yield response.json(),
|
|
1163
|
+
bodyKey: "workRequestCollection",
|
|
1164
|
+
bodyModel: model.WorkRequestCollection,
|
|
1165
|
+
type: "model.WorkRequestCollection",
|
|
1166
|
+
responseHeaders: [
|
|
1167
|
+
{
|
|
1168
|
+
value: response.headers.get("opc-request-id"),
|
|
1169
|
+
key: "opcRequestId",
|
|
1170
|
+
dataType: "string"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
value: response.headers.get("opc-next-page"),
|
|
1174
|
+
key: "opcNextPage",
|
|
1175
|
+
dataType: "string"
|
|
1176
|
+
}
|
|
1177
|
+
]
|
|
1178
|
+
});
|
|
1179
|
+
return sdkResponse;
|
|
1180
|
+
}
|
|
1181
|
+
catch (err) {
|
|
1182
|
+
throw err;
|
|
1183
|
+
}
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Updates the DatabaseToolsConnection
|
|
1188
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1189
|
+
* @param UpdateDatabaseToolsConnectionRequest
|
|
1190
|
+
* @return UpdateDatabaseToolsConnectionResponse
|
|
1191
|
+
* @throws OciError when an error occurs
|
|
1192
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/UpdateDatabaseToolsConnection.ts.html |here} to see how to use UpdateDatabaseToolsConnection API.
|
|
1193
|
+
*/
|
|
1194
|
+
updateDatabaseToolsConnection(updateDatabaseToolsConnectionRequest) {
|
|
1195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1196
|
+
if (this.logger)
|
|
1197
|
+
this.logger.debug("Calling operation DatabaseToolsClient#updateDatabaseToolsConnection.");
|
|
1198
|
+
const pathParams = {
|
|
1199
|
+
"{databaseToolsConnectionId}": updateDatabaseToolsConnectionRequest.databaseToolsConnectionId
|
|
1200
|
+
};
|
|
1201
|
+
const queryParams = {};
|
|
1202
|
+
let headerParams = {
|
|
1203
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1204
|
+
"if-match": updateDatabaseToolsConnectionRequest.ifMatch,
|
|
1205
|
+
"opc-request-id": updateDatabaseToolsConnectionRequest.opcRequestId
|
|
1206
|
+
};
|
|
1207
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1208
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDatabaseToolsConnectionRequest.retryConfiguration, specRetryConfiguration);
|
|
1209
|
+
if (this.logger)
|
|
1210
|
+
retrier.logger = this.logger;
|
|
1211
|
+
const request = yield oci_common_1.composeRequest({
|
|
1212
|
+
baseEndpoint: this._endpoint,
|
|
1213
|
+
defaultHeaders: this._defaultHeaders,
|
|
1214
|
+
path: "/databaseToolsConnections/{databaseToolsConnectionId}",
|
|
1215
|
+
method: "PUT",
|
|
1216
|
+
bodyContent: common.ObjectSerializer.serialize(updateDatabaseToolsConnectionRequest.updateDatabaseToolsConnectionDetails, "UpdateDatabaseToolsConnectionDetails", model.UpdateDatabaseToolsConnectionDetails.getJsonObj),
|
|
1217
|
+
pathParams: pathParams,
|
|
1218
|
+
headerParams: headerParams,
|
|
1219
|
+
queryParams: queryParams
|
|
1220
|
+
});
|
|
1221
|
+
try {
|
|
1222
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1223
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1224
|
+
responseObject: {},
|
|
1225
|
+
responseHeaders: [
|
|
1226
|
+
{
|
|
1227
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1228
|
+
key: "opcWorkRequestId",
|
|
1229
|
+
dataType: "string"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
value: response.headers.get("opc-request-id"),
|
|
1233
|
+
key: "opcRequestId",
|
|
1234
|
+
dataType: "string"
|
|
1235
|
+
}
|
|
1236
|
+
]
|
|
1237
|
+
});
|
|
1238
|
+
return sdkResponse;
|
|
1239
|
+
}
|
|
1240
|
+
catch (err) {
|
|
1241
|
+
throw err;
|
|
1242
|
+
}
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Updates the DatabaseToolsPrivateEndpoint
|
|
1247
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1248
|
+
* @param UpdateDatabaseToolsPrivateEndpointRequest
|
|
1249
|
+
* @return UpdateDatabaseToolsPrivateEndpointResponse
|
|
1250
|
+
* @throws OciError when an error occurs
|
|
1251
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/UpdateDatabaseToolsPrivateEndpoint.ts.html |here} to see how to use UpdateDatabaseToolsPrivateEndpoint API.
|
|
1252
|
+
*/
|
|
1253
|
+
updateDatabaseToolsPrivateEndpoint(updateDatabaseToolsPrivateEndpointRequest) {
|
|
1254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1255
|
+
if (this.logger)
|
|
1256
|
+
this.logger.debug("Calling operation DatabaseToolsClient#updateDatabaseToolsPrivateEndpoint.");
|
|
1257
|
+
const pathParams = {
|
|
1258
|
+
"{databaseToolsPrivateEndpointId}": updateDatabaseToolsPrivateEndpointRequest.databaseToolsPrivateEndpointId
|
|
1259
|
+
};
|
|
1260
|
+
const queryParams = {};
|
|
1261
|
+
let headerParams = {
|
|
1262
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1263
|
+
"if-match": updateDatabaseToolsPrivateEndpointRequest.ifMatch,
|
|
1264
|
+
"opc-request-id": updateDatabaseToolsPrivateEndpointRequest.opcRequestId
|
|
1265
|
+
};
|
|
1266
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1267
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDatabaseToolsPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1268
|
+
if (this.logger)
|
|
1269
|
+
retrier.logger = this.logger;
|
|
1270
|
+
const request = yield oci_common_1.composeRequest({
|
|
1271
|
+
baseEndpoint: this._endpoint,
|
|
1272
|
+
defaultHeaders: this._defaultHeaders,
|
|
1273
|
+
path: "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}",
|
|
1274
|
+
method: "PUT",
|
|
1275
|
+
bodyContent: common.ObjectSerializer.serialize(updateDatabaseToolsPrivateEndpointRequest.updateDatabaseToolsPrivateEndpointDetails, "UpdateDatabaseToolsPrivateEndpointDetails", model.UpdateDatabaseToolsPrivateEndpointDetails.getJsonObj),
|
|
1276
|
+
pathParams: pathParams,
|
|
1277
|
+
headerParams: headerParams,
|
|
1278
|
+
queryParams: queryParams
|
|
1279
|
+
});
|
|
1280
|
+
try {
|
|
1281
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1282
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1283
|
+
responseObject: {},
|
|
1284
|
+
responseHeaders: [
|
|
1285
|
+
{
|
|
1286
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1287
|
+
key: "opcWorkRequestId",
|
|
1288
|
+
dataType: "string"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
value: response.headers.get("opc-request-id"),
|
|
1292
|
+
key: "opcRequestId",
|
|
1293
|
+
dataType: "string"
|
|
1294
|
+
}
|
|
1295
|
+
]
|
|
1296
|
+
});
|
|
1297
|
+
return sdkResponse;
|
|
1298
|
+
}
|
|
1299
|
+
catch (err) {
|
|
1300
|
+
throw err;
|
|
1301
|
+
}
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Validate the DatabaseToolsConnection information details by establishing a connection to the database.
|
|
1306
|
+
*
|
|
1307
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1308
|
+
* @param ValidateDatabaseToolsConnectionRequest
|
|
1309
|
+
* @return ValidateDatabaseToolsConnectionResponse
|
|
1310
|
+
* @throws OciError when an error occurs
|
|
1311
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.1/databasetools/ValidateDatabaseToolsConnection.ts.html |here} to see how to use ValidateDatabaseToolsConnection API.
|
|
1312
|
+
*/
|
|
1313
|
+
validateDatabaseToolsConnection(validateDatabaseToolsConnectionRequest) {
|
|
1314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1315
|
+
if (this.logger)
|
|
1316
|
+
this.logger.debug("Calling operation DatabaseToolsClient#validateDatabaseToolsConnection.");
|
|
1317
|
+
const pathParams = {
|
|
1318
|
+
"{databaseToolsConnectionId}": validateDatabaseToolsConnectionRequest.databaseToolsConnectionId
|
|
1319
|
+
};
|
|
1320
|
+
const queryParams = {};
|
|
1321
|
+
let headerParams = {
|
|
1322
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1323
|
+
"if-match": validateDatabaseToolsConnectionRequest.ifMatch,
|
|
1324
|
+
"opc-request-id": validateDatabaseToolsConnectionRequest.opcRequestId
|
|
1325
|
+
};
|
|
1326
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1327
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateDatabaseToolsConnectionRequest.retryConfiguration, specRetryConfiguration);
|
|
1328
|
+
if (this.logger)
|
|
1329
|
+
retrier.logger = this.logger;
|
|
1330
|
+
const request = yield oci_common_1.composeRequest({
|
|
1331
|
+
baseEndpoint: this._endpoint,
|
|
1332
|
+
defaultHeaders: this._defaultHeaders,
|
|
1333
|
+
path: "/databaseToolsConnections/{databaseToolsConnectionId}/actions/validateConnection",
|
|
1334
|
+
method: "POST",
|
|
1335
|
+
bodyContent: common.ObjectSerializer.serialize(validateDatabaseToolsConnectionRequest.validateDatabaseToolsConnectionDetails, "ValidateDatabaseToolsConnectionDetails", model.ValidateDatabaseToolsConnectionDetails.getJsonObj),
|
|
1336
|
+
pathParams: pathParams,
|
|
1337
|
+
headerParams: headerParams,
|
|
1338
|
+
queryParams: queryParams
|
|
1339
|
+
});
|
|
1340
|
+
try {
|
|
1341
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1342
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1343
|
+
responseObject: {},
|
|
1344
|
+
body: yield response.json(),
|
|
1345
|
+
bodyKey: "validateDatabaseToolsConnectionResult",
|
|
1346
|
+
bodyModel: model.ValidateDatabaseToolsConnectionResult,
|
|
1347
|
+
type: "model.ValidateDatabaseToolsConnectionResult",
|
|
1348
|
+
responseHeaders: [
|
|
1349
|
+
{
|
|
1350
|
+
value: response.headers.get("opc-request-id"),
|
|
1351
|
+
key: "opcRequestId",
|
|
1352
|
+
dataType: "string"
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1355
|
+
});
|
|
1356
|
+
return sdkResponse;
|
|
1357
|
+
}
|
|
1358
|
+
catch (err) {
|
|
1359
|
+
throw err;
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
exports.DatabaseToolsClient = DatabaseToolsClient;
|
|
1365
|
+
DatabaseToolsClient.serviceEndpointTemplate = "https://dbtools.{region}.oci.{secondLevelDomain}";
|
|
1366
|
+
//# sourceMappingURL=client.js.map
|