oci-dbmulticloud 2.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +53 -0
- package/index.js +76 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +1129 -0
- package/lib/client.js +4459 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +42 -0
- package/lib/model/action-type.js +53 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/arc-agent-nodes.d.ts +63 -0
- package/lib/model/arc-agent-nodes.js +50 -0
- package/lib/model/arc-agent-nodes.js.map +1 -0
- package/lib/model/change-multi-cloud-resource-discovery-compartment-details.d.ts +68 -0
- package/lib/model/change-multi-cloud-resource-discovery-compartment-details.js +39 -0
- package/lib/model/change-multi-cloud-resource-discovery-compartment-details.js.map +1 -0
- package/lib/model/change-oracle-db-azure-blob-container-compartment-details.d.ts +68 -0
- package/lib/model/change-oracle-db-azure-blob-container-compartment-details.js +39 -0
- package/lib/model/change-oracle-db-azure-blob-container-compartment-details.js.map +1 -0
- package/lib/model/change-oracle-db-azure-blob-mount-compartment-details.d.ts +68 -0
- package/lib/model/change-oracle-db-azure-blob-mount-compartment-details.js +39 -0
- package/lib/model/change-oracle-db-azure-blob-mount-compartment-details.js.map +1 -0
- package/lib/model/change-oracle-db-azure-connector-compartment-details.d.ts +68 -0
- package/lib/model/change-oracle-db-azure-connector-compartment-details.js +39 -0
- package/lib/model/change-oracle-db-azure-connector-compartment-details.js.map +1 -0
- package/lib/model/change-oracle-db-azure-vault-association-compartment-details.d.ts +68 -0
- package/lib/model/change-oracle-db-azure-vault-association-compartment-details.js +39 -0
- package/lib/model/change-oracle-db-azure-vault-association-compartment-details.js.map +1 -0
- package/lib/model/change-oracle-db-azure-vault-compartment-details.d.ts +68 -0
- package/lib/model/change-oracle-db-azure-vault-compartment-details.js +39 -0
- package/lib/model/change-oracle-db-azure-vault-compartment-details.js.map +1 -0
- package/lib/model/create-multi-cloud-resource-discovery-details.d.ts +70 -0
- package/lib/model/create-multi-cloud-resource-discovery-details.js +39 -0
- package/lib/model/create-multi-cloud-resource-discovery-details.js.map +1 -0
- package/lib/model/create-oracle-db-azure-blob-container-details.d.ts +78 -0
- package/lib/model/create-oracle-db-azure-blob-container-details.js +39 -0
- package/lib/model/create-oracle-db-azure-blob-container-details.js.map +1 -0
- package/lib/model/create-oracle-db-azure-blob-mount-details.d.ts +70 -0
- package/lib/model/create-oracle-db-azure-blob-mount-details.js +39 -0
- package/lib/model/create-oracle-db-azure-blob-mount-details.js.map +1 -0
- package/lib/model/create-oracle-db-azure-connector-details.d.ts +94 -0
- package/lib/model/create-oracle-db-azure-connector-details.js +39 -0
- package/lib/model/create-oracle-db-azure-connector-details.js.map +1 -0
- package/lib/model/create-oracle-db-azure-vault-association-details.d.ts +70 -0
- package/lib/model/create-oracle-db-azure-vault-association-details.js +39 -0
- package/lib/model/create-oracle-db-azure-vault-association-details.js.map +1 -0
- package/lib/model/create-oracle-db-azure-vault-details.d.ts +88 -0
- package/lib/model/create-oracle-db-azure-vault-details.js +39 -0
- package/lib/model/create-oracle-db-azure-vault-details.js.map +1 -0
- package/lib/model/index.d.ts +132 -0
- package/lib/model/index.js +156 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/multi-cloud-resource-discovery-summary-collection.d.ts +36 -0
- package/lib/model/multi-cloud-resource-discovery-summary-collection.js +71 -0
- package/lib/model/multi-cloud-resource-discovery-summary-collection.js.map +1 -0
- package/lib/model/multi-cloud-resource-discovery-summary.d.ts +112 -0
- package/lib/model/multi-cloud-resource-discovery-summary.js +71 -0
- package/lib/model/multi-cloud-resource-discovery-summary.js.map +1 -0
- package/lib/model/multi-cloud-resource-discovery.d.ts +137 -0
- package/lib/model/multi-cloud-resource-discovery.js +98 -0
- package/lib/model/multi-cloud-resource-discovery.js.map +1 -0
- package/lib/model/operation-status.d.ts +44 -0
- package/lib/model/operation-status.js +55 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +63 -0
- package/lib/model/operation-type.js +74 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/oracle-db-azure-blob-container-summary-collection.d.ts +36 -0
- package/lib/model/oracle-db-azure-blob-container-summary-collection.js +71 -0
- package/lib/model/oracle-db-azure-blob-container-summary-collection.js.map +1 -0
- package/lib/model/oracle-db-azure-blob-container-summary.d.ts +115 -0
- package/lib/model/oracle-db-azure-blob-container-summary.js +39 -0
- package/lib/model/oracle-db-azure-blob-container-summary.js.map +1 -0
- package/lib/model/oracle-db-azure-blob-container.d.ts +128 -0
- package/lib/model/oracle-db-azure-blob-container.js +53 -0
- package/lib/model/oracle-db-azure-blob-container.js.map +1 -0
- package/lib/model/oracle-db-azure-blob-mount-summary-collection.d.ts +36 -0
- package/lib/model/oracle-db-azure-blob-mount-summary-collection.js +71 -0
- package/lib/model/oracle-db-azure-blob-mount-summary-collection.js.map +1 -0
- package/lib/model/oracle-db-azure-blob-mount-summary.d.ts +111 -0
- package/lib/model/oracle-db-azure-blob-mount-summary.js +39 -0
- package/lib/model/oracle-db-azure-blob-mount-summary.js.map +1 -0
- package/lib/model/oracle-db-azure-blob-mount.d.ts +124 -0
- package/lib/model/oracle-db-azure-blob-mount.js +53 -0
- package/lib/model/oracle-db-azure-blob-mount.js.map +1 -0
- package/lib/model/oracle-db-azure-connector-summary-collection.d.ts +36 -0
- package/lib/model/oracle-db-azure-connector-summary-collection.js +71 -0
- package/lib/model/oracle-db-azure-connector-summary-collection.js.map +1 -0
- package/lib/model/oracle-db-azure-connector-summary.d.ts +131 -0
- package/lib/model/oracle-db-azure-connector-summary.js +71 -0
- package/lib/model/oracle-db-azure-connector-summary.js.map +1 -0
- package/lib/model/oracle-db-azure-connector.d.ts +158 -0
- package/lib/model/oracle-db-azure-connector.js +95 -0
- package/lib/model/oracle-db-azure-connector.js.map +1 -0
- package/lib/model/oracle-db-azure-key-summary-collection.d.ts +36 -0
- package/lib/model/oracle-db-azure-key-summary-collection.js +71 -0
- package/lib/model/oracle-db-azure-key-summary-collection.js.map +1 -0
- package/lib/model/oracle-db-azure-key-summary.d.ts +107 -0
- package/lib/model/oracle-db-azure-key-summary.js +39 -0
- package/lib/model/oracle-db-azure-key-summary.js.map +1 -0
- package/lib/model/oracle-db-azure-key.d.ts +120 -0
- package/lib/model/oracle-db-azure-key.js +53 -0
- package/lib/model/oracle-db-azure-key.js.map +1 -0
- package/lib/model/oracle-db-azure-vault-association-summary-collection.d.ts +36 -0
- package/lib/model/oracle-db-azure-vault-association-summary-collection.js +71 -0
- package/lib/model/oracle-db-azure-vault-association-summary-collection.js.map +1 -0
- package/lib/model/oracle-db-azure-vault-association-summary.d.ts +111 -0
- package/lib/model/oracle-db-azure-vault-association-summary.js +39 -0
- package/lib/model/oracle-db-azure-vault-association-summary.js.map +1 -0
- package/lib/model/oracle-db-azure-vault-association.d.ts +124 -0
- package/lib/model/oracle-db-azure-vault-association.js +53 -0
- package/lib/model/oracle-db-azure-vault-association.js.map +1 -0
- package/lib/model/oracle-db-azure-vault-summary-collection.d.ts +36 -0
- package/lib/model/oracle-db-azure-vault-summary-collection.js +71 -0
- package/lib/model/oracle-db-azure-vault-summary-collection.js.map +1 -0
- package/lib/model/oracle-db-azure-vault-summary.d.ts +125 -0
- package/lib/model/oracle-db-azure-vault-summary.js +39 -0
- package/lib/model/oracle-db-azure-vault-summary.js.map +1 -0
- package/lib/model/oracle-db-azure-vault.d.ts +138 -0
- package/lib/model/oracle-db-azure-vault.js +53 -0
- package/lib/model/oracle-db-azure-vault.js.map +1 -0
- package/lib/model/patch-oracle-db-azure-connector-details.d.ts +68 -0
- package/lib/model/patch-oracle-db-azure-connector-details.js +39 -0
- package/lib/model/patch-oracle-db-azure-connector-details.js.map +1 -0
- package/lib/model/resources.d.ts +58 -0
- package/lib/model/resources.js +39 -0
- package/lib/model/resources.js.map +1 -0
- package/lib/model/sort-order.d.ts +40 -0
- package/lib/model/sort-order.js +51 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-multi-cloud-resource-discovery-details.d.ts +70 -0
- package/lib/model/update-multi-cloud-resource-discovery-details.js +39 -0
- package/lib/model/update-multi-cloud-resource-discovery-details.js.map +1 -0
- package/lib/model/update-oracle-db-azure-blob-container-details.d.ts +78 -0
- package/lib/model/update-oracle-db-azure-blob-container-details.js +39 -0
- package/lib/model/update-oracle-db-azure-blob-container-details.js.map +1 -0
- package/lib/model/update-oracle-db-azure-blob-mount-details.d.ts +70 -0
- package/lib/model/update-oracle-db-azure-blob-mount-details.js +39 -0
- package/lib/model/update-oracle-db-azure-blob-mount-details.js.map +1 -0
- package/lib/model/update-oracle-db-azure-connector-details.d.ts +94 -0
- package/lib/model/update-oracle-db-azure-connector-details.js +39 -0
- package/lib/model/update-oracle-db-azure-connector-details.js.map +1 -0
- package/lib/model/update-oracle-db-azure-vault-association-details.d.ts +70 -0
- package/lib/model/update-oracle-db-azure-vault-association-details.js +39 -0
- package/lib/model/update-oracle-db-azure-vault-association-details.js.map +1 -0
- package/lib/model/update-oracle-db-azure-vault-details.d.ts +88 -0
- package/lib/model/update-oracle-db-azure-vault-details.js +39 -0
- package/lib/model/update-oracle-db-azure-vault-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +36 -0
- package/lib/model/work-request-error-collection.js +71 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +45 -0
- package/lib/model/work-request-error.js +39 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +36 -0
- package/lib/model/work-request-log-entry-collection.js +71 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +39 -0
- package/lib/model/work-request-log-entry.js +39 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +41 -0
- package/lib/model/work-request-resource-metadata-key.js +52 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +58 -0
- package/lib/model/work-request-resource.js +39 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +36 -0
- package/lib/model/work-request-summary-collection.js +71 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +77 -0
- package/lib/model/work-request-summary.js +71 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +77 -0
- package/lib/model/work-request.js +71 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/multicloudresourcediscovery-waiter.d.ts +39 -0
- package/lib/multicloudresourcediscovery-waiter.js +55 -0
- package/lib/multicloudresourcediscovery-waiter.js.map +1 -0
- package/lib/oracledbazureblobcontainer-waiter.d.ts +39 -0
- package/lib/oracledbazureblobcontainer-waiter.js +75 -0
- package/lib/oracledbazureblobcontainer-waiter.js.map +1 -0
- package/lib/oracledbazureblobmount-waiter.d.ts +39 -0
- package/lib/oracledbazureblobmount-waiter.js +75 -0
- package/lib/oracledbazureblobmount-waiter.js.map +1 -0
- package/lib/oracledbazureconnector-waiter.d.ts +39 -0
- package/lib/oracledbazureconnector-waiter.js +75 -0
- package/lib/oracledbazureconnector-waiter.js.map +1 -0
- package/lib/oracledbazurekey-waiter.d.ts +39 -0
- package/lib/oracledbazurekey-waiter.js +75 -0
- package/lib/oracledbazurekey-waiter.js.map +1 -0
- package/lib/oracledbazurevault-waiter.d.ts +39 -0
- package/lib/oracledbazurevault-waiter.js +75 -0
- package/lib/oracledbazurevault-waiter.js.map +1 -0
- package/lib/oracledbazurevaultassociation-waiter.d.ts +39 -0
- package/lib/oracledbazurevaultassociation-waiter.js +75 -0
- package/lib/oracledbazurevaultassociation-waiter.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/cascading-delete-oracle-db-azure-vault-association-request.d.ts +44 -0
- package/lib/request/cascading-delete-oracle-db-azure-vault-association-request.js +15 -0
- package/lib/request/cascading-delete-oracle-db-azure-vault-association-request.js.map +1 -0
- package/lib/request/change-multi-cloud-resource-discovery-compartment-request.d.ts +49 -0
- package/lib/request/change-multi-cloud-resource-discovery-compartment-request.js +15 -0
- package/lib/request/change-multi-cloud-resource-discovery-compartment-request.js.map +1 -0
- package/lib/request/change-oracle-db-azure-blob-container-compartment-request.d.ts +49 -0
- package/lib/request/change-oracle-db-azure-blob-container-compartment-request.js +15 -0
- package/lib/request/change-oracle-db-azure-blob-container-compartment-request.js.map +1 -0
- package/lib/request/change-oracle-db-azure-blob-mount-compartment-request.d.ts +49 -0
- package/lib/request/change-oracle-db-azure-blob-mount-compartment-request.js +15 -0
- package/lib/request/change-oracle-db-azure-blob-mount-compartment-request.js.map +1 -0
- package/lib/request/change-oracle-db-azure-connector-compartment-request.d.ts +49 -0
- package/lib/request/change-oracle-db-azure-connector-compartment-request.js +15 -0
- package/lib/request/change-oracle-db-azure-connector-compartment-request.js.map +1 -0
- package/lib/request/change-oracle-db-azure-vault-association-compartment-request.d.ts +49 -0
- package/lib/request/change-oracle-db-azure-vault-association-compartment-request.js +15 -0
- package/lib/request/change-oracle-db-azure-vault-association-compartment-request.js.map +1 -0
- package/lib/request/change-oracle-db-azure-vault-compartment-request.d.ts +49 -0
- package/lib/request/change-oracle-db-azure-vault-compartment-request.js +15 -0
- package/lib/request/change-oracle-db-azure-vault-compartment-request.js.map +1 -0
- package/lib/request/create-multi-cloud-resource-discovery-request.d.ts +45 -0
- package/lib/request/create-multi-cloud-resource-discovery-request.js +15 -0
- package/lib/request/create-multi-cloud-resource-discovery-request.js.map +1 -0
- package/lib/request/create-oracle-db-azure-blob-container-request.d.ts +45 -0
- package/lib/request/create-oracle-db-azure-blob-container-request.js +15 -0
- package/lib/request/create-oracle-db-azure-blob-container-request.js.map +1 -0
- package/lib/request/create-oracle-db-azure-blob-mount-request.d.ts +45 -0
- package/lib/request/create-oracle-db-azure-blob-mount-request.js +15 -0
- package/lib/request/create-oracle-db-azure-blob-mount-request.js.map +1 -0
- package/lib/request/create-oracle-db-azure-connector-request.d.ts +38 -0
- package/lib/request/create-oracle-db-azure-connector-request.js +15 -0
- package/lib/request/create-oracle-db-azure-connector-request.js.map +1 -0
- package/lib/request/create-oracle-db-azure-vault-association-request.d.ts +45 -0
- package/lib/request/create-oracle-db-azure-vault-association-request.js +15 -0
- package/lib/request/create-oracle-db-azure-vault-association-request.js.map +1 -0
- package/lib/request/create-oracle-db-azure-vault-request.d.ts +45 -0
- package/lib/request/create-oracle-db-azure-vault-request.js +15 -0
- package/lib/request/create-oracle-db-azure-vault-request.js.map +1 -0
- package/lib/request/delete-multi-cloud-resource-discovery-request.d.ts +35 -0
- package/lib/request/delete-multi-cloud-resource-discovery-request.js +15 -0
- package/lib/request/delete-multi-cloud-resource-discovery-request.js.map +1 -0
- package/lib/request/delete-oracle-db-azure-blob-container-request.d.ts +35 -0
- package/lib/request/delete-oracle-db-azure-blob-container-request.js +15 -0
- package/lib/request/delete-oracle-db-azure-blob-container-request.js.map +1 -0
- package/lib/request/delete-oracle-db-azure-blob-mount-request.d.ts +35 -0
- package/lib/request/delete-oracle-db-azure-blob-mount-request.js +15 -0
- package/lib/request/delete-oracle-db-azure-blob-mount-request.js.map +1 -0
- package/lib/request/delete-oracle-db-azure-connector-request.d.ts +35 -0
- package/lib/request/delete-oracle-db-azure-connector-request.js +15 -0
- package/lib/request/delete-oracle-db-azure-connector-request.js.map +1 -0
- package/lib/request/delete-oracle-db-azure-vault-association-request.d.ts +35 -0
- package/lib/request/delete-oracle-db-azure-vault-association-request.js +15 -0
- package/lib/request/delete-oracle-db-azure-vault-association-request.js.map +1 -0
- package/lib/request/delete-oracle-db-azure-vault-request.d.ts +35 -0
- package/lib/request/delete-oracle-db-azure-vault-request.js +15 -0
- package/lib/request/delete-oracle-db-azure-vault-request.js.map +1 -0
- package/lib/request/get-multi-cloud-resource-discovery-request.d.ts +39 -0
- package/lib/request/get-multi-cloud-resource-discovery-request.js +15 -0
- package/lib/request/get-multi-cloud-resource-discovery-request.js.map +1 -0
- package/lib/request/get-oracle-db-azure-blob-container-request.d.ts +39 -0
- package/lib/request/get-oracle-db-azure-blob-container-request.js +15 -0
- package/lib/request/get-oracle-db-azure-blob-container-request.js.map +1 -0
- package/lib/request/get-oracle-db-azure-blob-mount-request.d.ts +39 -0
- package/lib/request/get-oracle-db-azure-blob-mount-request.js +15 -0
- package/lib/request/get-oracle-db-azure-blob-mount-request.js.map +1 -0
- package/lib/request/get-oracle-db-azure-connector-request.d.ts +39 -0
- package/lib/request/get-oracle-db-azure-connector-request.js +15 -0
- package/lib/request/get-oracle-db-azure-connector-request.js.map +1 -0
- package/lib/request/get-oracle-db-azure-key-request.d.ts +39 -0
- package/lib/request/get-oracle-db-azure-key-request.js +15 -0
- package/lib/request/get-oracle-db-azure-key-request.js.map +1 -0
- package/lib/request/get-oracle-db-azure-vault-association-request.d.ts +39 -0
- package/lib/request/get-oracle-db-azure-vault-association-request.js +15 -0
- package/lib/request/get-oracle-db-azure-vault-association-request.js.map +1 -0
- package/lib/request/get-oracle-db-azure-vault-request.d.ts +39 -0
- package/lib/request/get-oracle-db-azure-vault-request.js +15 -0
- package/lib/request/get-oracle-db-azure-vault-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 +114 -0
- package/lib/request/index.js +65 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-multi-cloud-resource-discoveries-request.d.ts +72 -0
- package/lib/request/list-multi-cloud-resource-discoveries-request.js +24 -0
- package/lib/request/list-multi-cloud-resource-discoveries-request.js.map +1 -0
- package/lib/request/list-oracle-db-azure-blob-containers-request.d.ts +72 -0
- package/lib/request/list-oracle-db-azure-blob-containers-request.js +24 -0
- package/lib/request/list-oracle-db-azure-blob-containers-request.js.map +1 -0
- package/lib/request/list-oracle-db-azure-blob-mounts-request.d.ts +72 -0
- package/lib/request/list-oracle-db-azure-blob-mounts-request.js +24 -0
- package/lib/request/list-oracle-db-azure-blob-mounts-request.js.map +1 -0
- package/lib/request/list-oracle-db-azure-connectors-request.d.ts +68 -0
- package/lib/request/list-oracle-db-azure-connectors-request.js +24 -0
- package/lib/request/list-oracle-db-azure-connectors-request.js.map +1 -0
- package/lib/request/list-oracle-db-azure-keys-request.d.ts +68 -0
- package/lib/request/list-oracle-db-azure-keys-request.js +24 -0
- package/lib/request/list-oracle-db-azure-keys-request.js.map +1 -0
- package/lib/request/list-oracle-db-azure-vault-associations-request.d.ts +72 -0
- package/lib/request/list-oracle-db-azure-vault-associations-request.js +24 -0
- package/lib/request/list-oracle-db-azure-vault-associations-request.js.map +1 -0
- package/lib/request/list-oracle-db-azure-vaults-request.d.ts +72 -0
- package/lib/request/list-oracle-db-azure-vaults-request.js +24 -0
- package/lib/request/list-oracle-db-azure-vaults-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -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/patch-oracle-db-azure-connector-request.d.ts +40 -0
- package/lib/request/patch-oracle-db-azure-connector-request.js +15 -0
- package/lib/request/patch-oracle-db-azure-connector-request.js.map +1 -0
- package/lib/request/refresh-oracle-db-azure-vault-request.d.ts +44 -0
- package/lib/request/refresh-oracle-db-azure-vault-request.js +15 -0
- package/lib/request/refresh-oracle-db-azure-vault-request.js.map +1 -0
- package/lib/request/update-multi-cloud-resource-discovery-request.d.ts +40 -0
- package/lib/request/update-multi-cloud-resource-discovery-request.js +15 -0
- package/lib/request/update-multi-cloud-resource-discovery-request.js.map +1 -0
- package/lib/request/update-oracle-db-azure-blob-container-request.d.ts +40 -0
- package/lib/request/update-oracle-db-azure-blob-container-request.js +15 -0
- package/lib/request/update-oracle-db-azure-blob-container-request.js.map +1 -0
- package/lib/request/update-oracle-db-azure-blob-mount-request.d.ts +40 -0
- package/lib/request/update-oracle-db-azure-blob-mount-request.js +15 -0
- package/lib/request/update-oracle-db-azure-blob-mount-request.js.map +1 -0
- package/lib/request/update-oracle-db-azure-connector-request.d.ts +40 -0
- package/lib/request/update-oracle-db-azure-connector-request.js +15 -0
- package/lib/request/update-oracle-db-azure-connector-request.js.map +1 -0
- package/lib/request/update-oracle-db-azure-vault-association-request.d.ts +40 -0
- package/lib/request/update-oracle-db-azure-vault-association-request.js +15 -0
- package/lib/request/update-oracle-db-azure-vault-association-request.js.map +1 -0
- package/lib/request/update-oracle-db-azure-vault-request.d.ts +40 -0
- package/lib/request/update-oracle-db-azure-vault-request.js +15 -0
- package/lib/request/update-oracle-db-azure-vault-request.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/cascading-delete-oracle-db-azure-vault-association-response.d.ts +26 -0
- package/lib/response/cascading-delete-oracle-db-azure-vault-association-response.js +15 -0
- package/lib/response/cascading-delete-oracle-db-azure-vault-association-response.js.map +1 -0
- package/lib/response/change-multi-cloud-resource-discovery-compartment-response.d.ts +26 -0
- package/lib/response/change-multi-cloud-resource-discovery-compartment-response.js +15 -0
- package/lib/response/change-multi-cloud-resource-discovery-compartment-response.js.map +1 -0
- package/lib/response/change-oracle-db-azure-blob-container-compartment-response.d.ts +26 -0
- package/lib/response/change-oracle-db-azure-blob-container-compartment-response.js +15 -0
- package/lib/response/change-oracle-db-azure-blob-container-compartment-response.js.map +1 -0
- package/lib/response/change-oracle-db-azure-blob-mount-compartment-response.d.ts +26 -0
- package/lib/response/change-oracle-db-azure-blob-mount-compartment-response.js +15 -0
- package/lib/response/change-oracle-db-azure-blob-mount-compartment-response.js.map +1 -0
- package/lib/response/change-oracle-db-azure-connector-compartment-response.d.ts +26 -0
- package/lib/response/change-oracle-db-azure-connector-compartment-response.js +15 -0
- package/lib/response/change-oracle-db-azure-connector-compartment-response.js.map +1 -0
- package/lib/response/change-oracle-db-azure-vault-association-compartment-response.d.ts +26 -0
- package/lib/response/change-oracle-db-azure-vault-association-compartment-response.js +15 -0
- package/lib/response/change-oracle-db-azure-vault-association-compartment-response.js.map +1 -0
- package/lib/response/change-oracle-db-azure-vault-compartment-response.d.ts +26 -0
- package/lib/response/change-oracle-db-azure-vault-compartment-response.js +15 -0
- package/lib/response/change-oracle-db-azure-vault-compartment-response.js.map +1 -0
- package/lib/response/create-multi-cloud-resource-discovery-response.d.ts +44 -0
- package/lib/response/create-multi-cloud-resource-discovery-response.js +15 -0
- package/lib/response/create-multi-cloud-resource-discovery-response.js.map +1 -0
- package/lib/response/create-oracle-db-azure-blob-container-response.d.ts +44 -0
- package/lib/response/create-oracle-db-azure-blob-container-response.js +15 -0
- package/lib/response/create-oracle-db-azure-blob-container-response.js.map +1 -0
- package/lib/response/create-oracle-db-azure-blob-mount-response.d.ts +44 -0
- package/lib/response/create-oracle-db-azure-blob-mount-response.js +15 -0
- package/lib/response/create-oracle-db-azure-blob-mount-response.js.map +1 -0
- package/lib/response/create-oracle-db-azure-connector-response.d.ts +44 -0
- package/lib/response/create-oracle-db-azure-connector-response.js +15 -0
- package/lib/response/create-oracle-db-azure-connector-response.js.map +1 -0
- package/lib/response/create-oracle-db-azure-vault-association-response.d.ts +44 -0
- package/lib/response/create-oracle-db-azure-vault-association-response.js +15 -0
- package/lib/response/create-oracle-db-azure-vault-association-response.js.map +1 -0
- package/lib/response/create-oracle-db-azure-vault-response.d.ts +44 -0
- package/lib/response/create-oracle-db-azure-vault-response.js +15 -0
- package/lib/response/create-oracle-db-azure-vault-response.js.map +1 -0
- package/lib/response/delete-multi-cloud-resource-discovery-response.d.ts +26 -0
- package/lib/response/delete-multi-cloud-resource-discovery-response.js +15 -0
- package/lib/response/delete-multi-cloud-resource-discovery-response.js.map +1 -0
- package/lib/response/delete-oracle-db-azure-blob-container-response.d.ts +26 -0
- package/lib/response/delete-oracle-db-azure-blob-container-response.js +15 -0
- package/lib/response/delete-oracle-db-azure-blob-container-response.js.map +1 -0
- package/lib/response/delete-oracle-db-azure-blob-mount-response.d.ts +26 -0
- package/lib/response/delete-oracle-db-azure-blob-mount-response.js +15 -0
- package/lib/response/delete-oracle-db-azure-blob-mount-response.js.map +1 -0
- package/lib/response/delete-oracle-db-azure-connector-response.d.ts +26 -0
- package/lib/response/delete-oracle-db-azure-connector-response.js +15 -0
- package/lib/response/delete-oracle-db-azure-connector-response.js.map +1 -0
- package/lib/response/delete-oracle-db-azure-vault-association-response.d.ts +26 -0
- package/lib/response/delete-oracle-db-azure-vault-association-response.js +15 -0
- package/lib/response/delete-oracle-db-azure-vault-association-response.js.map +1 -0
- package/lib/response/delete-oracle-db-azure-vault-response.d.ts +26 -0
- package/lib/response/delete-oracle-db-azure-vault-response.js +15 -0
- package/lib/response/delete-oracle-db-azure-vault-response.js.map +1 -0
- package/lib/response/get-multi-cloud-resource-discovery-response.d.ts +30 -0
- package/lib/response/get-multi-cloud-resource-discovery-response.js +15 -0
- package/lib/response/get-multi-cloud-resource-discovery-response.js.map +1 -0
- package/lib/response/get-oracle-db-azure-blob-container-response.d.ts +30 -0
- package/lib/response/get-oracle-db-azure-blob-container-response.js +15 -0
- package/lib/response/get-oracle-db-azure-blob-container-response.js.map +1 -0
- package/lib/response/get-oracle-db-azure-blob-mount-response.d.ts +30 -0
- package/lib/response/get-oracle-db-azure-blob-mount-response.js +15 -0
- package/lib/response/get-oracle-db-azure-blob-mount-response.js.map +1 -0
- package/lib/response/get-oracle-db-azure-connector-response.d.ts +30 -0
- package/lib/response/get-oracle-db-azure-connector-response.js +15 -0
- package/lib/response/get-oracle-db-azure-connector-response.js.map +1 -0
- package/lib/response/get-oracle-db-azure-key-response.d.ts +30 -0
- package/lib/response/get-oracle-db-azure-key-response.js +15 -0
- package/lib/response/get-oracle-db-azure-key-response.js.map +1 -0
- package/lib/response/get-oracle-db-azure-vault-association-response.d.ts +30 -0
- package/lib/response/get-oracle-db-azure-vault-association-response.js +15 -0
- package/lib/response/get-oracle-db-azure-vault-association-response.js.map +1 -0
- package/lib/response/get-oracle-db-azure-vault-response.d.ts +30 -0
- package/lib/response/get-oracle-db-azure-vault-response.js +15 -0
- package/lib/response/get-oracle-db-azure-vault-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -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 +114 -0
- package/lib/response/index.js +25 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-multi-cloud-resource-discoveries-response.d.ts +31 -0
- package/lib/response/list-multi-cloud-resource-discoveries-response.js +15 -0
- package/lib/response/list-multi-cloud-resource-discoveries-response.js.map +1 -0
- package/lib/response/list-oracle-db-azure-blob-containers-response.d.ts +31 -0
- package/lib/response/list-oracle-db-azure-blob-containers-response.js +15 -0
- package/lib/response/list-oracle-db-azure-blob-containers-response.js.map +1 -0
- package/lib/response/list-oracle-db-azure-blob-mounts-response.d.ts +31 -0
- package/lib/response/list-oracle-db-azure-blob-mounts-response.js +15 -0
- package/lib/response/list-oracle-db-azure-blob-mounts-response.js.map +1 -0
- package/lib/response/list-oracle-db-azure-connectors-response.d.ts +31 -0
- package/lib/response/list-oracle-db-azure-connectors-response.js +15 -0
- package/lib/response/list-oracle-db-azure-connectors-response.js.map +1 -0
- package/lib/response/list-oracle-db-azure-keys-response.d.ts +31 -0
- package/lib/response/list-oracle-db-azure-keys-response.js +15 -0
- package/lib/response/list-oracle-db-azure-keys-response.js.map +1 -0
- package/lib/response/list-oracle-db-azure-vault-associations-response.d.ts +31 -0
- package/lib/response/list-oracle-db-azure-vault-associations-response.js +15 -0
- package/lib/response/list-oracle-db-azure-vault-associations-response.js.map +1 -0
- package/lib/response/list-oracle-db-azure-vaults-response.d.ts +31 -0
- package/lib/response/list-oracle-db-azure-vaults-response.js +15 -0
- package/lib/response/list-oracle-db-azure-vaults-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +31 -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 +31 -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 +31 -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/patch-oracle-db-azure-connector-response.d.ts +26 -0
- package/lib/response/patch-oracle-db-azure-connector-response.js +15 -0
- package/lib/response/patch-oracle-db-azure-connector-response.js.map +1 -0
- package/lib/response/refresh-oracle-db-azure-vault-response.d.ts +26 -0
- package/lib/response/refresh-oracle-db-azure-vault-response.js +15 -0
- package/lib/response/refresh-oracle-db-azure-vault-response.js.map +1 -0
- package/lib/response/update-multi-cloud-resource-discovery-response.d.ts +26 -0
- package/lib/response/update-multi-cloud-resource-discovery-response.js +15 -0
- package/lib/response/update-multi-cloud-resource-discovery-response.js.map +1 -0
- package/lib/response/update-oracle-db-azure-blob-container-response.d.ts +26 -0
- package/lib/response/update-oracle-db-azure-blob-container-response.js +15 -0
- package/lib/response/update-oracle-db-azure-blob-container-response.js.map +1 -0
- package/lib/response/update-oracle-db-azure-blob-mount-response.d.ts +26 -0
- package/lib/response/update-oracle-db-azure-blob-mount-response.js +15 -0
- package/lib/response/update-oracle-db-azure-blob-mount-response.js.map +1 -0
- package/lib/response/update-oracle-db-azure-connector-response.d.ts +26 -0
- package/lib/response/update-oracle-db-azure-connector-response.js +15 -0
- package/lib/response/update-oracle-db-azure-connector-response.js.map +1 -0
- package/lib/response/update-oracle-db-azure-vault-association-response.d.ts +26 -0
- package/lib/response/update-oracle-db-azure-vault-association-response.js +15 -0
- package/lib/response/update-oracle-db-azure-vault-association-response.js.map +1 -0
- package/lib/response/update-oracle-db-azure-vault-response.d.ts +26 -0
- package/lib/response/update-oracle-db-azure-vault-response.js +15 -0
- package/lib/response/update-oracle-db-azure-vault-response.js.map +1 -0
- package/lib/workrequest-waiter.d.ts +37 -0
- package/lib/workrequest-waiter.js +54 -0
- package/lib/workrequest-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,4459 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Oracle Database MultiCloud Data plane Integration
|
|
4
|
+
* 1. Oracle Azure Connector Resource: This is for installing Azure Arc Server in ExaCS VM Cluster.
|
|
5
|
+
There are two way to install Azure Arc Server (Azure Identity) in ExaCS VMCluster.
|
|
6
|
+
a. Using Bearer Access Token or
|
|
7
|
+
b. By providing Authentication token
|
|
8
|
+
|
|
9
|
+
2. Oracle Azure Blob Container Resource: This is for to capture Azure Container details
|
|
10
|
+
and same will be used in multiple ExaCS VMCluster to mount the Azure Container.
|
|
11
|
+
|
|
12
|
+
3. Oracle Azure Blob Mount Resource: This is for to mount Azure Container in ExaCS VMCluster
|
|
13
|
+
using Oracle Azure Connector and Oracle Azure Blob Container Resource.
|
|
14
|
+
|
|
15
|
+
* OpenAPI spec version: 20240501
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
22
|
+
* 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.
|
|
23
|
+
*/
|
|
24
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
44
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
45
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
46
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
47
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
48
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
49
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.OracleDbAzureVaultAssociationClient = exports.OracleDbAzureVaultAssociationApiKeys = exports.OracleDbAzureVaultClient = exports.OracleDbAzureVaultApiKeys = exports.OracleDbAzureKeyClient = exports.OracleDbAzureKeyApiKeys = exports.OracleDBAzureConnectorClient = exports.OracleDBAzureConnectorApiKeys = exports.OracleDBAzureBlobMountClient = exports.OracleDBAzureBlobMountApiKeys = exports.OracleDBAzureBlobContainerClient = exports.OracleDBAzureBlobContainerApiKeys = exports.MultiCloudResourceDiscoveryClient = exports.MultiCloudResourceDiscoveryApiKeys = void 0;
|
|
54
|
+
const common = require("oci-common");
|
|
55
|
+
const model = __importStar(require("./model"));
|
|
56
|
+
const multicloudresourcediscovery_waiter_1 = require("./multicloudresourcediscovery-waiter");
|
|
57
|
+
const oracledbazureblobcontainer_waiter_1 = require("./oracledbazureblobcontainer-waiter");
|
|
58
|
+
const oracledbazureblobmount_waiter_1 = require("./oracledbazureblobmount-waiter");
|
|
59
|
+
const oracledbazureconnector_waiter_1 = require("./oracledbazureconnector-waiter");
|
|
60
|
+
const oracledbazurekey_waiter_1 = require("./oracledbazurekey-waiter");
|
|
61
|
+
const oracledbazurevault_waiter_1 = require("./oracledbazurevault-waiter");
|
|
62
|
+
const oracledbazurevaultassociation_waiter_1 = require("./oracledbazurevaultassociation-waiter");
|
|
63
|
+
const workrequest_waiter_1 = require("./workrequest-waiter");
|
|
64
|
+
const oci_common_1 = require("oci-common");
|
|
65
|
+
const Breaker = require("opossum");
|
|
66
|
+
// ===============================================
|
|
67
|
+
// This file is autogenerated - Please do not edit
|
|
68
|
+
// ===============================================
|
|
69
|
+
var MultiCloudResourceDiscoveryApiKeys;
|
|
70
|
+
(function (MultiCloudResourceDiscoveryApiKeys) {
|
|
71
|
+
})(MultiCloudResourceDiscoveryApiKeys = exports.MultiCloudResourceDiscoveryApiKeys || (exports.MultiCloudResourceDiscoveryApiKeys = {}));
|
|
72
|
+
/**
|
|
73
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
74
|
+
*/
|
|
75
|
+
class MultiCloudResourceDiscoveryClient {
|
|
76
|
+
constructor(params, clientConfiguration) {
|
|
77
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
78
|
+
this["_endpoint"] = "";
|
|
79
|
+
this["_defaultHeaders"] = {};
|
|
80
|
+
this._circuitBreaker = null;
|
|
81
|
+
this._httpOptions = undefined;
|
|
82
|
+
this._bodyDuplexMode = undefined;
|
|
83
|
+
this.targetService = "MultiCloudResourceDiscovery";
|
|
84
|
+
this._regionId = "";
|
|
85
|
+
this._lastSetRegionOrRegionId = "";
|
|
86
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
87
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
88
|
+
: null;
|
|
89
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
90
|
+
if (clientConfiguration) {
|
|
91
|
+
this._clientConfiguration = clientConfiguration;
|
|
92
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
93
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
94
|
+
: null;
|
|
95
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
96
|
+
? clientConfiguration.httpOptions
|
|
97
|
+
: undefined;
|
|
98
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
99
|
+
? clientConfiguration.bodyDuplexMode
|
|
100
|
+
: undefined;
|
|
101
|
+
}
|
|
102
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
103
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
104
|
+
throw errmsg.concat("dbmulticloud");
|
|
105
|
+
}
|
|
106
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
107
|
+
const specCircuitBreakerEnabled = true;
|
|
108
|
+
if (!this._circuitBreaker &&
|
|
109
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
110
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
111
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
112
|
+
}
|
|
113
|
+
this._httpClient =
|
|
114
|
+
params.httpClient ||
|
|
115
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
116
|
+
if (params.authenticationDetailsProvider &&
|
|
117
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
118
|
+
const provider = params.authenticationDetailsProvider;
|
|
119
|
+
if (provider.getRegion()) {
|
|
120
|
+
this.region = provider.getRegion();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
126
|
+
*/
|
|
127
|
+
get endpoint() {
|
|
128
|
+
return this._endpoint;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
132
|
+
* @param endpoint The endpoint of the service.
|
|
133
|
+
*/
|
|
134
|
+
set endpoint(endpoint) {
|
|
135
|
+
this._endpoint = endpoint;
|
|
136
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
137
|
+
if (this.logger)
|
|
138
|
+
this.logger.info(`MultiCloudResourceDiscoveryClient endpoint set to ${this._endpoint}`);
|
|
139
|
+
}
|
|
140
|
+
get logger() {
|
|
141
|
+
return common.LOG.logger;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
145
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
146
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
147
|
+
*/
|
|
148
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
149
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
150
|
+
if (this.logger)
|
|
151
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
152
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
153
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MultiCloudResourceDiscoveryClient.serviceEndpointTemplate, this._region, MultiCloudResourceDiscoveryClient.endpointServiceName);
|
|
154
|
+
}
|
|
155
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
156
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MultiCloudResourceDiscoveryClient.serviceEndpointTemplate, this._regionId, MultiCloudResourceDiscoveryClient.endpointServiceName);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
161
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
162
|
+
* @param region The region of the service.
|
|
163
|
+
*/
|
|
164
|
+
set region(region) {
|
|
165
|
+
this._region = region;
|
|
166
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MultiCloudResourceDiscoveryClient.serviceEndpointTemplate, region, MultiCloudResourceDiscoveryClient.endpointServiceName);
|
|
167
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
171
|
+
*
|
|
172
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
173
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
174
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
175
|
+
* @param regionId The public region ID.
|
|
176
|
+
*/
|
|
177
|
+
set regionId(regionId) {
|
|
178
|
+
this._regionId = regionId;
|
|
179
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MultiCloudResourceDiscoveryClient.serviceEndpointTemplate, regionId, MultiCloudResourceDiscoveryClient.endpointServiceName);
|
|
180
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Creates a new MultiCloudResourceDiscoveryWaiter for resources for this service.
|
|
184
|
+
*
|
|
185
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
186
|
+
* @return The service waiters.
|
|
187
|
+
*/
|
|
188
|
+
createWaiters(config) {
|
|
189
|
+
this._waiters = new multicloudresourcediscovery_waiter_1.MultiCloudResourceDiscoveryWaiter(this, config);
|
|
190
|
+
return this._waiters;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Gets the waiters available for resources for this service.
|
|
194
|
+
*
|
|
195
|
+
* @return The service waiters.
|
|
196
|
+
*/
|
|
197
|
+
getWaiters() {
|
|
198
|
+
if (this._waiters) {
|
|
199
|
+
return this._waiters;
|
|
200
|
+
}
|
|
201
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
205
|
+
*/
|
|
206
|
+
shutdownCircuitBreaker() {
|
|
207
|
+
if (this._circuitBreaker) {
|
|
208
|
+
this._circuitBreaker.shutdown();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
213
|
+
*/
|
|
214
|
+
closeProvider() {
|
|
215
|
+
if (this._authProvider) {
|
|
216
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
217
|
+
(this._authProvider).closeProvider();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Close the client once it is no longer needed
|
|
222
|
+
*/
|
|
223
|
+
close() {
|
|
224
|
+
this.shutdownCircuitBreaker();
|
|
225
|
+
this.closeProvider();
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Moves the Oracle Azure Vault resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
229
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
230
|
+
* @param ChangeMultiCloudResourceDiscoveryCompartmentRequest
|
|
231
|
+
* @return ChangeMultiCloudResourceDiscoveryCompartmentResponse
|
|
232
|
+
* @throws OciError when an error occurs
|
|
233
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ChangeMultiCloudResourceDiscoveryCompartment.ts.html |here} to see how to use ChangeMultiCloudResourceDiscoveryCompartment API.
|
|
234
|
+
*/
|
|
235
|
+
changeMultiCloudResourceDiscoveryCompartment(changeMultiCloudResourceDiscoveryCompartmentRequest) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
if (this.logger)
|
|
238
|
+
this.logger.debug("Calling operation MultiCloudResourceDiscoveryClient#changeMultiCloudResourceDiscoveryCompartment.");
|
|
239
|
+
const operationName = "changeMultiCloudResourceDiscoveryCompartment";
|
|
240
|
+
const apiReferenceLink = "";
|
|
241
|
+
const pathParams = {
|
|
242
|
+
"{multiCloudResourceDiscoveryId}": changeMultiCloudResourceDiscoveryCompartmentRequest.multiCloudResourceDiscoveryId
|
|
243
|
+
};
|
|
244
|
+
const queryParams = {};
|
|
245
|
+
let headerParams = {
|
|
246
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
247
|
+
"opc-retry-token": changeMultiCloudResourceDiscoveryCompartmentRequest.opcRetryToken,
|
|
248
|
+
"if-match": changeMultiCloudResourceDiscoveryCompartmentRequest.ifMatch,
|
|
249
|
+
"opc-request-id": changeMultiCloudResourceDiscoveryCompartmentRequest.opcRequestId
|
|
250
|
+
};
|
|
251
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
252
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeMultiCloudResourceDiscoveryCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
253
|
+
if (this.logger)
|
|
254
|
+
retrier.logger = this.logger;
|
|
255
|
+
const request = yield oci_common_1.composeRequest({
|
|
256
|
+
baseEndpoint: this._endpoint,
|
|
257
|
+
defaultHeaders: this._defaultHeaders,
|
|
258
|
+
path: "/multiCloudResourceDiscovery/{multiCloudResourceDiscoveryId}/actions/changeCompartment",
|
|
259
|
+
method: "POST",
|
|
260
|
+
bodyContent: common.ObjectSerializer.serialize(changeMultiCloudResourceDiscoveryCompartmentRequest.changeMultiCloudResourceDiscoveryCompartmentDetails, "ChangeMultiCloudResourceDiscoveryCompartmentDetails", model.ChangeMultiCloudResourceDiscoveryCompartmentDetails.getJsonObj),
|
|
261
|
+
pathParams: pathParams,
|
|
262
|
+
headerParams: headerParams,
|
|
263
|
+
queryParams: queryParams
|
|
264
|
+
});
|
|
265
|
+
try {
|
|
266
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
267
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
268
|
+
responseObject: {},
|
|
269
|
+
responseHeaders: [
|
|
270
|
+
{
|
|
271
|
+
value: response.headers.get("opc-request-id"),
|
|
272
|
+
key: "opcRequestId",
|
|
273
|
+
dataType: "string"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
value: response.headers.get("opc-work-request-id"),
|
|
277
|
+
key: "opcWorkRequestId",
|
|
278
|
+
dataType: "string"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
});
|
|
282
|
+
return sdkResponse;
|
|
283
|
+
}
|
|
284
|
+
catch (err) {
|
|
285
|
+
throw err;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Discover Azure Vaults and Keys based on the provided information.
|
|
291
|
+
*
|
|
292
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
293
|
+
* @param CreateMultiCloudResourceDiscoveryRequest
|
|
294
|
+
* @return CreateMultiCloudResourceDiscoveryResponse
|
|
295
|
+
* @throws OciError when an error occurs
|
|
296
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CreateMultiCloudResourceDiscovery.ts.html |here} to see how to use CreateMultiCloudResourceDiscovery API.
|
|
297
|
+
*/
|
|
298
|
+
createMultiCloudResourceDiscovery(createMultiCloudResourceDiscoveryRequest) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
if (this.logger)
|
|
301
|
+
this.logger.debug("Calling operation MultiCloudResourceDiscoveryClient#createMultiCloudResourceDiscovery.");
|
|
302
|
+
const operationName = "createMultiCloudResourceDiscovery";
|
|
303
|
+
const apiReferenceLink = "";
|
|
304
|
+
const pathParams = {};
|
|
305
|
+
const queryParams = {};
|
|
306
|
+
let headerParams = {
|
|
307
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
308
|
+
"opc-retry-token": createMultiCloudResourceDiscoveryRequest.opcRetryToken,
|
|
309
|
+
"if-match": createMultiCloudResourceDiscoveryRequest.ifMatch,
|
|
310
|
+
"opc-request-id": createMultiCloudResourceDiscoveryRequest.opcRequestId
|
|
311
|
+
};
|
|
312
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
313
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMultiCloudResourceDiscoveryRequest.retryConfiguration, specRetryConfiguration);
|
|
314
|
+
if (this.logger)
|
|
315
|
+
retrier.logger = this.logger;
|
|
316
|
+
const request = yield oci_common_1.composeRequest({
|
|
317
|
+
baseEndpoint: this._endpoint,
|
|
318
|
+
defaultHeaders: this._defaultHeaders,
|
|
319
|
+
path: "/multiCloudResourceDiscovery",
|
|
320
|
+
method: "POST",
|
|
321
|
+
bodyContent: common.ObjectSerializer.serialize(createMultiCloudResourceDiscoveryRequest.createMultiCloudResourceDiscoveryDetails, "CreateMultiCloudResourceDiscoveryDetails", model.CreateMultiCloudResourceDiscoveryDetails.getJsonObj),
|
|
322
|
+
pathParams: pathParams,
|
|
323
|
+
headerParams: headerParams,
|
|
324
|
+
queryParams: queryParams
|
|
325
|
+
});
|
|
326
|
+
try {
|
|
327
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
328
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
329
|
+
responseObject: {},
|
|
330
|
+
body: yield response.json(),
|
|
331
|
+
bodyKey: "multiCloudResourceDiscovery",
|
|
332
|
+
bodyModel: model.MultiCloudResourceDiscovery,
|
|
333
|
+
type: "model.MultiCloudResourceDiscovery",
|
|
334
|
+
responseHeaders: [
|
|
335
|
+
{
|
|
336
|
+
value: response.headers.get("opc-work-request-id"),
|
|
337
|
+
key: "opcWorkRequestId",
|
|
338
|
+
dataType: "string"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
value: response.headers.get("opc-request-id"),
|
|
342
|
+
key: "opcRequestId",
|
|
343
|
+
dataType: "string"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
value: response.headers.get("location"),
|
|
347
|
+
key: "location",
|
|
348
|
+
dataType: "string"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
value: response.headers.get("content-location"),
|
|
352
|
+
key: "contentLocation",
|
|
353
|
+
dataType: "string"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
value: response.headers.get("etag"),
|
|
357
|
+
key: "etag",
|
|
358
|
+
dataType: "string"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
});
|
|
362
|
+
return sdkResponse;
|
|
363
|
+
}
|
|
364
|
+
catch (err) {
|
|
365
|
+
throw err;
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Delete Multi Cloud Discovery resource.
|
|
371
|
+
*
|
|
372
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
373
|
+
* @param DeleteMultiCloudResourceDiscoveryRequest
|
|
374
|
+
* @return DeleteMultiCloudResourceDiscoveryResponse
|
|
375
|
+
* @throws OciError when an error occurs
|
|
376
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/DeleteMultiCloudResourceDiscovery.ts.html |here} to see how to use DeleteMultiCloudResourceDiscovery API.
|
|
377
|
+
*/
|
|
378
|
+
deleteMultiCloudResourceDiscovery(deleteMultiCloudResourceDiscoveryRequest) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
if (this.logger)
|
|
381
|
+
this.logger.debug("Calling operation MultiCloudResourceDiscoveryClient#deleteMultiCloudResourceDiscovery.");
|
|
382
|
+
const operationName = "deleteMultiCloudResourceDiscovery";
|
|
383
|
+
const apiReferenceLink = "";
|
|
384
|
+
const pathParams = {
|
|
385
|
+
"{multiCloudResourceDiscoveryId}": deleteMultiCloudResourceDiscoveryRequest.multiCloudResourceDiscoveryId
|
|
386
|
+
};
|
|
387
|
+
const queryParams = {};
|
|
388
|
+
let headerParams = {
|
|
389
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
390
|
+
"if-match": deleteMultiCloudResourceDiscoveryRequest.ifMatch,
|
|
391
|
+
"opc-request-id": deleteMultiCloudResourceDiscoveryRequest.opcRequestId
|
|
392
|
+
};
|
|
393
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
394
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMultiCloudResourceDiscoveryRequest.retryConfiguration, specRetryConfiguration);
|
|
395
|
+
if (this.logger)
|
|
396
|
+
retrier.logger = this.logger;
|
|
397
|
+
const request = yield oci_common_1.composeRequest({
|
|
398
|
+
baseEndpoint: this._endpoint,
|
|
399
|
+
defaultHeaders: this._defaultHeaders,
|
|
400
|
+
path: "/multiCloudResourceDiscovery/{multiCloudResourceDiscoveryId}",
|
|
401
|
+
method: "DELETE",
|
|
402
|
+
pathParams: pathParams,
|
|
403
|
+
headerParams: headerParams,
|
|
404
|
+
queryParams: queryParams
|
|
405
|
+
});
|
|
406
|
+
try {
|
|
407
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
408
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
409
|
+
responseObject: {},
|
|
410
|
+
responseHeaders: [
|
|
411
|
+
{
|
|
412
|
+
value: response.headers.get("opc-request-id"),
|
|
413
|
+
key: "opcRequestId",
|
|
414
|
+
dataType: "string"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
value: response.headers.get("opc-work-request-id"),
|
|
418
|
+
key: "opcWorkRequestId",
|
|
419
|
+
dataType: "string"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
});
|
|
423
|
+
return sdkResponse;
|
|
424
|
+
}
|
|
425
|
+
catch (err) {
|
|
426
|
+
throw err;
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Get Multi Cloud Discovered Resource Details form a particular resource ID.
|
|
432
|
+
*
|
|
433
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
434
|
+
* @param GetMultiCloudResourceDiscoveryRequest
|
|
435
|
+
* @return GetMultiCloudResourceDiscoveryResponse
|
|
436
|
+
* @throws OciError when an error occurs
|
|
437
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetMultiCloudResourceDiscovery.ts.html |here} to see how to use GetMultiCloudResourceDiscovery API.
|
|
438
|
+
*/
|
|
439
|
+
getMultiCloudResourceDiscovery(getMultiCloudResourceDiscoveryRequest) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
if (this.logger)
|
|
442
|
+
this.logger.debug("Calling operation MultiCloudResourceDiscoveryClient#getMultiCloudResourceDiscovery.");
|
|
443
|
+
const operationName = "getMultiCloudResourceDiscovery";
|
|
444
|
+
const apiReferenceLink = "";
|
|
445
|
+
const pathParams = {
|
|
446
|
+
"{multiCloudResourceDiscoveryId}": getMultiCloudResourceDiscoveryRequest.multiCloudResourceDiscoveryId
|
|
447
|
+
};
|
|
448
|
+
const queryParams = {
|
|
449
|
+
"limit": getMultiCloudResourceDiscoveryRequest.limit,
|
|
450
|
+
"page": getMultiCloudResourceDiscoveryRequest.page,
|
|
451
|
+
"sortOrder": getMultiCloudResourceDiscoveryRequest.sortOrder
|
|
452
|
+
};
|
|
453
|
+
let headerParams = {
|
|
454
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
455
|
+
"opc-request-id": getMultiCloudResourceDiscoveryRequest.opcRequestId
|
|
456
|
+
};
|
|
457
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
458
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMultiCloudResourceDiscoveryRequest.retryConfiguration, specRetryConfiguration);
|
|
459
|
+
if (this.logger)
|
|
460
|
+
retrier.logger = this.logger;
|
|
461
|
+
const request = yield oci_common_1.composeRequest({
|
|
462
|
+
baseEndpoint: this._endpoint,
|
|
463
|
+
defaultHeaders: this._defaultHeaders,
|
|
464
|
+
path: "/multiCloudResourceDiscovery/{multiCloudResourceDiscoveryId}",
|
|
465
|
+
method: "GET",
|
|
466
|
+
pathParams: pathParams,
|
|
467
|
+
headerParams: headerParams,
|
|
468
|
+
queryParams: queryParams
|
|
469
|
+
});
|
|
470
|
+
try {
|
|
471
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
472
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
473
|
+
responseObject: {},
|
|
474
|
+
body: yield response.json(),
|
|
475
|
+
bodyKey: "multiCloudResourceDiscovery",
|
|
476
|
+
bodyModel: model.MultiCloudResourceDiscovery,
|
|
477
|
+
type: "model.MultiCloudResourceDiscovery",
|
|
478
|
+
responseHeaders: [
|
|
479
|
+
{
|
|
480
|
+
value: response.headers.get("etag"),
|
|
481
|
+
key: "etag",
|
|
482
|
+
dataType: "string"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
value: response.headers.get("opc-request-id"),
|
|
486
|
+
key: "opcRequestId",
|
|
487
|
+
dataType: "string"
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
});
|
|
491
|
+
return sdkResponse;
|
|
492
|
+
}
|
|
493
|
+
catch (err) {
|
|
494
|
+
throw err;
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Lists the all Multi Cloud Resource Discovery based on filters.
|
|
500
|
+
*
|
|
501
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
502
|
+
* @param ListMultiCloudResourceDiscoveriesRequest
|
|
503
|
+
* @return ListMultiCloudResourceDiscoveriesResponse
|
|
504
|
+
* @throws OciError when an error occurs
|
|
505
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListMultiCloudResourceDiscoveries.ts.html |here} to see how to use ListMultiCloudResourceDiscoveries API.
|
|
506
|
+
*/
|
|
507
|
+
listMultiCloudResourceDiscoveries(listMultiCloudResourceDiscoveriesRequest) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
if (this.logger)
|
|
510
|
+
this.logger.debug("Calling operation MultiCloudResourceDiscoveryClient#listMultiCloudResourceDiscoveries.");
|
|
511
|
+
const operationName = "listMultiCloudResourceDiscoveries";
|
|
512
|
+
const apiReferenceLink = "";
|
|
513
|
+
const pathParams = {};
|
|
514
|
+
const queryParams = {
|
|
515
|
+
"compartmentId": listMultiCloudResourceDiscoveriesRequest.compartmentId,
|
|
516
|
+
"displayName": listMultiCloudResourceDiscoveriesRequest.displayName,
|
|
517
|
+
"multiCloudResourceDiscoveryId": listMultiCloudResourceDiscoveriesRequest.multiCloudResourceDiscoveryId,
|
|
518
|
+
"lifecycleState": listMultiCloudResourceDiscoveriesRequest.lifecycleState,
|
|
519
|
+
"oracleDbAzureConnectorId": listMultiCloudResourceDiscoveriesRequest.oracleDbAzureConnectorId,
|
|
520
|
+
"resourceType": listMultiCloudResourceDiscoveriesRequest.resourceType,
|
|
521
|
+
"limit": listMultiCloudResourceDiscoveriesRequest.limit,
|
|
522
|
+
"page": listMultiCloudResourceDiscoveriesRequest.page,
|
|
523
|
+
"sortOrder": listMultiCloudResourceDiscoveriesRequest.sortOrder,
|
|
524
|
+
"sortBy": listMultiCloudResourceDiscoveriesRequest.sortBy
|
|
525
|
+
};
|
|
526
|
+
let headerParams = {
|
|
527
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
528
|
+
"opc-request-id": listMultiCloudResourceDiscoveriesRequest.opcRequestId
|
|
529
|
+
};
|
|
530
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
531
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultiCloudResourceDiscoveriesRequest.retryConfiguration, specRetryConfiguration);
|
|
532
|
+
if (this.logger)
|
|
533
|
+
retrier.logger = this.logger;
|
|
534
|
+
const request = yield oci_common_1.composeRequest({
|
|
535
|
+
baseEndpoint: this._endpoint,
|
|
536
|
+
defaultHeaders: this._defaultHeaders,
|
|
537
|
+
path: "/multiCloudResourceDiscovery",
|
|
538
|
+
method: "GET",
|
|
539
|
+
pathParams: pathParams,
|
|
540
|
+
headerParams: headerParams,
|
|
541
|
+
queryParams: queryParams
|
|
542
|
+
});
|
|
543
|
+
try {
|
|
544
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
545
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
546
|
+
responseObject: {},
|
|
547
|
+
body: yield response.json(),
|
|
548
|
+
bodyKey: "multiCloudResourceDiscoverySummaryCollection",
|
|
549
|
+
bodyModel: model.MultiCloudResourceDiscoverySummaryCollection,
|
|
550
|
+
type: "model.MultiCloudResourceDiscoverySummaryCollection",
|
|
551
|
+
responseHeaders: [
|
|
552
|
+
{
|
|
553
|
+
value: response.headers.get("opc-request-id"),
|
|
554
|
+
key: "opcRequestId",
|
|
555
|
+
dataType: "string"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
value: response.headers.get("opc-next-page"),
|
|
559
|
+
key: "opcNextPage",
|
|
560
|
+
dataType: "string"
|
|
561
|
+
}
|
|
562
|
+
]
|
|
563
|
+
});
|
|
564
|
+
return sdkResponse;
|
|
565
|
+
}
|
|
566
|
+
catch (err) {
|
|
567
|
+
throw err;
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Modifies the existing Azure Discovered Resource for a given ID.
|
|
573
|
+
*
|
|
574
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
575
|
+
* @param UpdateMultiCloudResourceDiscoveryRequest
|
|
576
|
+
* @return UpdateMultiCloudResourceDiscoveryResponse
|
|
577
|
+
* @throws OciError when an error occurs
|
|
578
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/UpdateMultiCloudResourceDiscovery.ts.html |here} to see how to use UpdateMultiCloudResourceDiscovery API.
|
|
579
|
+
*/
|
|
580
|
+
updateMultiCloudResourceDiscovery(updateMultiCloudResourceDiscoveryRequest) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
+
if (this.logger)
|
|
583
|
+
this.logger.debug("Calling operation MultiCloudResourceDiscoveryClient#updateMultiCloudResourceDiscovery.");
|
|
584
|
+
const operationName = "updateMultiCloudResourceDiscovery";
|
|
585
|
+
const apiReferenceLink = "";
|
|
586
|
+
const pathParams = {
|
|
587
|
+
"{multiCloudResourceDiscoveryId}": updateMultiCloudResourceDiscoveryRequest.multiCloudResourceDiscoveryId
|
|
588
|
+
};
|
|
589
|
+
const queryParams = {};
|
|
590
|
+
let headerParams = {
|
|
591
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
592
|
+
"if-match": updateMultiCloudResourceDiscoveryRequest.ifMatch,
|
|
593
|
+
"opc-request-id": updateMultiCloudResourceDiscoveryRequest.opcRequestId
|
|
594
|
+
};
|
|
595
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
596
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMultiCloudResourceDiscoveryRequest.retryConfiguration, specRetryConfiguration);
|
|
597
|
+
if (this.logger)
|
|
598
|
+
retrier.logger = this.logger;
|
|
599
|
+
const request = yield oci_common_1.composeRequest({
|
|
600
|
+
baseEndpoint: this._endpoint,
|
|
601
|
+
defaultHeaders: this._defaultHeaders,
|
|
602
|
+
path: "/multiCloudResourceDiscovery/{multiCloudResourceDiscoveryId}",
|
|
603
|
+
method: "PUT",
|
|
604
|
+
bodyContent: common.ObjectSerializer.serialize(updateMultiCloudResourceDiscoveryRequest.updateMultiCloudResourceDiscoveryDetails, "UpdateMultiCloudResourceDiscoveryDetails", model.UpdateMultiCloudResourceDiscoveryDetails.getJsonObj),
|
|
605
|
+
pathParams: pathParams,
|
|
606
|
+
headerParams: headerParams,
|
|
607
|
+
queryParams: queryParams
|
|
608
|
+
});
|
|
609
|
+
try {
|
|
610
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
611
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
612
|
+
responseObject: {},
|
|
613
|
+
responseHeaders: [
|
|
614
|
+
{
|
|
615
|
+
value: response.headers.get("opc-work-request-id"),
|
|
616
|
+
key: "opcWorkRequestId",
|
|
617
|
+
dataType: "string"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
value: response.headers.get("opc-request-id"),
|
|
621
|
+
key: "opcRequestId",
|
|
622
|
+
dataType: "string"
|
|
623
|
+
}
|
|
624
|
+
]
|
|
625
|
+
});
|
|
626
|
+
return sdkResponse;
|
|
627
|
+
}
|
|
628
|
+
catch (err) {
|
|
629
|
+
throw err;
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
exports.MultiCloudResourceDiscoveryClient = MultiCloudResourceDiscoveryClient;
|
|
635
|
+
MultiCloudResourceDiscoveryClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
636
|
+
MultiCloudResourceDiscoveryClient.endpointServiceName = "";
|
|
637
|
+
var OracleDBAzureBlobContainerApiKeys;
|
|
638
|
+
(function (OracleDBAzureBlobContainerApiKeys) {
|
|
639
|
+
})(OracleDBAzureBlobContainerApiKeys = exports.OracleDBAzureBlobContainerApiKeys || (exports.OracleDBAzureBlobContainerApiKeys = {}));
|
|
640
|
+
/**
|
|
641
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
642
|
+
*/
|
|
643
|
+
class OracleDBAzureBlobContainerClient {
|
|
644
|
+
constructor(params, clientConfiguration) {
|
|
645
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
646
|
+
this["_endpoint"] = "";
|
|
647
|
+
this["_defaultHeaders"] = {};
|
|
648
|
+
this._circuitBreaker = null;
|
|
649
|
+
this._httpOptions = undefined;
|
|
650
|
+
this._bodyDuplexMode = undefined;
|
|
651
|
+
this.targetService = "OracleDBAzureBlobContainer";
|
|
652
|
+
this._regionId = "";
|
|
653
|
+
this._lastSetRegionOrRegionId = "";
|
|
654
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
655
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
656
|
+
: null;
|
|
657
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
658
|
+
if (clientConfiguration) {
|
|
659
|
+
this._clientConfiguration = clientConfiguration;
|
|
660
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
661
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
662
|
+
: null;
|
|
663
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
664
|
+
? clientConfiguration.httpOptions
|
|
665
|
+
: undefined;
|
|
666
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
667
|
+
? clientConfiguration.bodyDuplexMode
|
|
668
|
+
: undefined;
|
|
669
|
+
}
|
|
670
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
671
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
672
|
+
throw errmsg.concat("dbmulticloud");
|
|
673
|
+
}
|
|
674
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
675
|
+
const specCircuitBreakerEnabled = true;
|
|
676
|
+
if (!this._circuitBreaker &&
|
|
677
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
678
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
679
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
680
|
+
}
|
|
681
|
+
this._httpClient =
|
|
682
|
+
params.httpClient ||
|
|
683
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
684
|
+
if (params.authenticationDetailsProvider &&
|
|
685
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
686
|
+
const provider = params.authenticationDetailsProvider;
|
|
687
|
+
if (provider.getRegion()) {
|
|
688
|
+
this.region = provider.getRegion();
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
694
|
+
*/
|
|
695
|
+
get endpoint() {
|
|
696
|
+
return this._endpoint;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
700
|
+
* @param endpoint The endpoint of the service.
|
|
701
|
+
*/
|
|
702
|
+
set endpoint(endpoint) {
|
|
703
|
+
this._endpoint = endpoint;
|
|
704
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
705
|
+
if (this.logger)
|
|
706
|
+
this.logger.info(`OracleDBAzureBlobContainerClient endpoint set to ${this._endpoint}`);
|
|
707
|
+
}
|
|
708
|
+
get logger() {
|
|
709
|
+
return common.LOG.logger;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
713
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
714
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
715
|
+
*/
|
|
716
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
717
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
718
|
+
if (this.logger)
|
|
719
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
720
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
721
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDBAzureBlobContainerClient.serviceEndpointTemplate, this._region, OracleDBAzureBlobContainerClient.endpointServiceName);
|
|
722
|
+
}
|
|
723
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
724
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDBAzureBlobContainerClient.serviceEndpointTemplate, this._regionId, OracleDBAzureBlobContainerClient.endpointServiceName);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
729
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
730
|
+
* @param region The region of the service.
|
|
731
|
+
*/
|
|
732
|
+
set region(region) {
|
|
733
|
+
this._region = region;
|
|
734
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDBAzureBlobContainerClient.serviceEndpointTemplate, region, OracleDBAzureBlobContainerClient.endpointServiceName);
|
|
735
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
739
|
+
*
|
|
740
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
741
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
742
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
743
|
+
* @param regionId The public region ID.
|
|
744
|
+
*/
|
|
745
|
+
set regionId(regionId) {
|
|
746
|
+
this._regionId = regionId;
|
|
747
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDBAzureBlobContainerClient.serviceEndpointTemplate, regionId, OracleDBAzureBlobContainerClient.endpointServiceName);
|
|
748
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Creates a new OracleDBAzureBlobContainerWaiter for resources for this service.
|
|
752
|
+
*
|
|
753
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
754
|
+
* @return The service waiters.
|
|
755
|
+
*/
|
|
756
|
+
createWaiters(config) {
|
|
757
|
+
this._waiters = new oracledbazureblobcontainer_waiter_1.OracleDBAzureBlobContainerWaiter(this, config);
|
|
758
|
+
return this._waiters;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Gets the waiters available for resources for this service.
|
|
762
|
+
*
|
|
763
|
+
* @return The service waiters.
|
|
764
|
+
*/
|
|
765
|
+
getWaiters() {
|
|
766
|
+
if (this._waiters) {
|
|
767
|
+
return this._waiters;
|
|
768
|
+
}
|
|
769
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
773
|
+
*/
|
|
774
|
+
shutdownCircuitBreaker() {
|
|
775
|
+
if (this._circuitBreaker) {
|
|
776
|
+
this._circuitBreaker.shutdown();
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
781
|
+
*/
|
|
782
|
+
closeProvider() {
|
|
783
|
+
if (this._authProvider) {
|
|
784
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
785
|
+
(this._authProvider).closeProvider();
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Close the client once it is no longer needed
|
|
790
|
+
*/
|
|
791
|
+
close() {
|
|
792
|
+
this.shutdownCircuitBreaker();
|
|
793
|
+
this.closeProvider();
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Moves the Oracle DB Azure Blob Container resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
797
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
798
|
+
* @param ChangeOracleDbAzureBlobContainerCompartmentRequest
|
|
799
|
+
* @return ChangeOracleDbAzureBlobContainerCompartmentResponse
|
|
800
|
+
* @throws OciError when an error occurs
|
|
801
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ChangeOracleDbAzureBlobContainerCompartment.ts.html |here} to see how to use ChangeOracleDbAzureBlobContainerCompartment API.
|
|
802
|
+
*/
|
|
803
|
+
changeOracleDbAzureBlobContainerCompartment(changeOracleDbAzureBlobContainerCompartmentRequest) {
|
|
804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
805
|
+
if (this.logger)
|
|
806
|
+
this.logger.debug("Calling operation OracleDBAzureBlobContainerClient#changeOracleDbAzureBlobContainerCompartment.");
|
|
807
|
+
const operationName = "changeOracleDbAzureBlobContainerCompartment";
|
|
808
|
+
const apiReferenceLink = "";
|
|
809
|
+
const pathParams = {
|
|
810
|
+
"{oracleDbAzureBlobContainerId}": changeOracleDbAzureBlobContainerCompartmentRequest.oracleDbAzureBlobContainerId
|
|
811
|
+
};
|
|
812
|
+
const queryParams = {};
|
|
813
|
+
let headerParams = {
|
|
814
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
815
|
+
"opc-retry-token": changeOracleDbAzureBlobContainerCompartmentRequest.opcRetryToken,
|
|
816
|
+
"if-match": changeOracleDbAzureBlobContainerCompartmentRequest.ifMatch,
|
|
817
|
+
"opc-request-id": changeOracleDbAzureBlobContainerCompartmentRequest.opcRequestId
|
|
818
|
+
};
|
|
819
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
820
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOracleDbAzureBlobContainerCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
821
|
+
if (this.logger)
|
|
822
|
+
retrier.logger = this.logger;
|
|
823
|
+
const request = yield oci_common_1.composeRequest({
|
|
824
|
+
baseEndpoint: this._endpoint,
|
|
825
|
+
defaultHeaders: this._defaultHeaders,
|
|
826
|
+
path: "/oracleDbAzureBlobContainer/{oracleDbAzureBlobContainerId}/actions/changeCompartment",
|
|
827
|
+
method: "POST",
|
|
828
|
+
bodyContent: common.ObjectSerializer.serialize(changeOracleDbAzureBlobContainerCompartmentRequest.changeOracleDbAzureBlobContainerCompartmentDetails, "ChangeOracleDbAzureBlobContainerCompartmentDetails", model.ChangeOracleDbAzureBlobContainerCompartmentDetails.getJsonObj),
|
|
829
|
+
pathParams: pathParams,
|
|
830
|
+
headerParams: headerParams,
|
|
831
|
+
queryParams: queryParams
|
|
832
|
+
});
|
|
833
|
+
try {
|
|
834
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
835
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
836
|
+
responseObject: {},
|
|
837
|
+
responseHeaders: [
|
|
838
|
+
{
|
|
839
|
+
value: response.headers.get("opc-request-id"),
|
|
840
|
+
key: "opcRequestId",
|
|
841
|
+
dataType: "string"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
value: response.headers.get("opc-work-request-id"),
|
|
845
|
+
key: "opcWorkRequestId",
|
|
846
|
+
dataType: "string"
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
});
|
|
850
|
+
return sdkResponse;
|
|
851
|
+
}
|
|
852
|
+
catch (err) {
|
|
853
|
+
throw err;
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Capture Azure Container details for mounting Azure Container on multiple OCI Database Resource.
|
|
859
|
+
*
|
|
860
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
861
|
+
* @param CreateOracleDbAzureBlobContainerRequest
|
|
862
|
+
* @return CreateOracleDbAzureBlobContainerResponse
|
|
863
|
+
* @throws OciError when an error occurs
|
|
864
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CreateOracleDbAzureBlobContainer.ts.html |here} to see how to use CreateOracleDbAzureBlobContainer API.
|
|
865
|
+
*/
|
|
866
|
+
createOracleDbAzureBlobContainer(createOracleDbAzureBlobContainerRequest) {
|
|
867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
868
|
+
if (this.logger)
|
|
869
|
+
this.logger.debug("Calling operation OracleDBAzureBlobContainerClient#createOracleDbAzureBlobContainer.");
|
|
870
|
+
const operationName = "createOracleDbAzureBlobContainer";
|
|
871
|
+
const apiReferenceLink = "";
|
|
872
|
+
const pathParams = {};
|
|
873
|
+
const queryParams = {};
|
|
874
|
+
let headerParams = {
|
|
875
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
876
|
+
"opc-retry-token": createOracleDbAzureBlobContainerRequest.opcRetryToken,
|
|
877
|
+
"if-match": createOracleDbAzureBlobContainerRequest.ifMatch,
|
|
878
|
+
"opc-request-id": createOracleDbAzureBlobContainerRequest.opcRequestId
|
|
879
|
+
};
|
|
880
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
881
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOracleDbAzureBlobContainerRequest.retryConfiguration, specRetryConfiguration);
|
|
882
|
+
if (this.logger)
|
|
883
|
+
retrier.logger = this.logger;
|
|
884
|
+
const request = yield oci_common_1.composeRequest({
|
|
885
|
+
baseEndpoint: this._endpoint,
|
|
886
|
+
defaultHeaders: this._defaultHeaders,
|
|
887
|
+
path: "/oracleDbAzureBlobContainer",
|
|
888
|
+
method: "POST",
|
|
889
|
+
bodyContent: common.ObjectSerializer.serialize(createOracleDbAzureBlobContainerRequest.createOracleDbAzureBlobContainerDetails, "CreateOracleDbAzureBlobContainerDetails", model.CreateOracleDbAzureBlobContainerDetails.getJsonObj),
|
|
890
|
+
pathParams: pathParams,
|
|
891
|
+
headerParams: headerParams,
|
|
892
|
+
queryParams: queryParams
|
|
893
|
+
});
|
|
894
|
+
try {
|
|
895
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
896
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
897
|
+
responseObject: {},
|
|
898
|
+
body: yield response.json(),
|
|
899
|
+
bodyKey: "oracleDbAzureBlobContainer",
|
|
900
|
+
bodyModel: model.OracleDbAzureBlobContainer,
|
|
901
|
+
type: "model.OracleDbAzureBlobContainer",
|
|
902
|
+
responseHeaders: [
|
|
903
|
+
{
|
|
904
|
+
value: response.headers.get("opc-work-request-id"),
|
|
905
|
+
key: "opcWorkRequestId",
|
|
906
|
+
dataType: "string"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
value: response.headers.get("opc-request-id"),
|
|
910
|
+
key: "opcRequestId",
|
|
911
|
+
dataType: "string"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
value: response.headers.get("location"),
|
|
915
|
+
key: "location",
|
|
916
|
+
dataType: "string"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
value: response.headers.get("content-location"),
|
|
920
|
+
key: "contentLocation",
|
|
921
|
+
dataType: "string"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
value: response.headers.get("etag"),
|
|
925
|
+
key: "etag",
|
|
926
|
+
dataType: "string"
|
|
927
|
+
}
|
|
928
|
+
]
|
|
929
|
+
});
|
|
930
|
+
return sdkResponse;
|
|
931
|
+
}
|
|
932
|
+
catch (err) {
|
|
933
|
+
throw err;
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Delete Oracle DB Azure Blob Container details.
|
|
939
|
+
*
|
|
940
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
941
|
+
* @param DeleteOracleDbAzureBlobContainerRequest
|
|
942
|
+
* @return DeleteOracleDbAzureBlobContainerResponse
|
|
943
|
+
* @throws OciError when an error occurs
|
|
944
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/DeleteOracleDbAzureBlobContainer.ts.html |here} to see how to use DeleteOracleDbAzureBlobContainer API.
|
|
945
|
+
*/
|
|
946
|
+
deleteOracleDbAzureBlobContainer(deleteOracleDbAzureBlobContainerRequest) {
|
|
947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
948
|
+
if (this.logger)
|
|
949
|
+
this.logger.debug("Calling operation OracleDBAzureBlobContainerClient#deleteOracleDbAzureBlobContainer.");
|
|
950
|
+
const operationName = "deleteOracleDbAzureBlobContainer";
|
|
951
|
+
const apiReferenceLink = "";
|
|
952
|
+
const pathParams = {
|
|
953
|
+
"{oracleDbAzureBlobContainerId}": deleteOracleDbAzureBlobContainerRequest.oracleDbAzureBlobContainerId
|
|
954
|
+
};
|
|
955
|
+
const queryParams = {};
|
|
956
|
+
let headerParams = {
|
|
957
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
958
|
+
"if-match": deleteOracleDbAzureBlobContainerRequest.ifMatch,
|
|
959
|
+
"opc-request-id": deleteOracleDbAzureBlobContainerRequest.opcRequestId
|
|
960
|
+
};
|
|
961
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
962
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOracleDbAzureBlobContainerRequest.retryConfiguration, specRetryConfiguration);
|
|
963
|
+
if (this.logger)
|
|
964
|
+
retrier.logger = this.logger;
|
|
965
|
+
const request = yield oci_common_1.composeRequest({
|
|
966
|
+
baseEndpoint: this._endpoint,
|
|
967
|
+
defaultHeaders: this._defaultHeaders,
|
|
968
|
+
path: "/oracleDbAzureBlobContainer/{oracleDbAzureBlobContainerId}",
|
|
969
|
+
method: "DELETE",
|
|
970
|
+
pathParams: pathParams,
|
|
971
|
+
headerParams: headerParams,
|
|
972
|
+
queryParams: queryParams
|
|
973
|
+
});
|
|
974
|
+
try {
|
|
975
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
976
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
977
|
+
responseObject: {},
|
|
978
|
+
responseHeaders: [
|
|
979
|
+
{
|
|
980
|
+
value: response.headers.get("opc-request-id"),
|
|
981
|
+
key: "opcRequestId",
|
|
982
|
+
dataType: "string"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
value: response.headers.get("opc-work-request-id"),
|
|
986
|
+
key: "opcWorkRequestId",
|
|
987
|
+
dataType: "string"
|
|
988
|
+
}
|
|
989
|
+
]
|
|
990
|
+
});
|
|
991
|
+
return sdkResponse;
|
|
992
|
+
}
|
|
993
|
+
catch (err) {
|
|
994
|
+
throw err;
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Get Oracle DB Azure Blob Container Details form a particular Container Resource ID.
|
|
1000
|
+
*
|
|
1001
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1002
|
+
* @param GetOracleDbAzureBlobContainerRequest
|
|
1003
|
+
* @return GetOracleDbAzureBlobContainerResponse
|
|
1004
|
+
* @throws OciError when an error occurs
|
|
1005
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetOracleDbAzureBlobContainer.ts.html |here} to see how to use GetOracleDbAzureBlobContainer API.
|
|
1006
|
+
*/
|
|
1007
|
+
getOracleDbAzureBlobContainer(getOracleDbAzureBlobContainerRequest) {
|
|
1008
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1009
|
+
if (this.logger)
|
|
1010
|
+
this.logger.debug("Calling operation OracleDBAzureBlobContainerClient#getOracleDbAzureBlobContainer.");
|
|
1011
|
+
const operationName = "getOracleDbAzureBlobContainer";
|
|
1012
|
+
const apiReferenceLink = "";
|
|
1013
|
+
const pathParams = {
|
|
1014
|
+
"{oracleDbAzureBlobContainerId}": getOracleDbAzureBlobContainerRequest.oracleDbAzureBlobContainerId
|
|
1015
|
+
};
|
|
1016
|
+
const queryParams = {
|
|
1017
|
+
"limit": getOracleDbAzureBlobContainerRequest.limit,
|
|
1018
|
+
"page": getOracleDbAzureBlobContainerRequest.page,
|
|
1019
|
+
"sortOrder": getOracleDbAzureBlobContainerRequest.sortOrder
|
|
1020
|
+
};
|
|
1021
|
+
let headerParams = {
|
|
1022
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1023
|
+
"opc-request-id": getOracleDbAzureBlobContainerRequest.opcRequestId
|
|
1024
|
+
};
|
|
1025
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1026
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOracleDbAzureBlobContainerRequest.retryConfiguration, specRetryConfiguration);
|
|
1027
|
+
if (this.logger)
|
|
1028
|
+
retrier.logger = this.logger;
|
|
1029
|
+
const request = yield oci_common_1.composeRequest({
|
|
1030
|
+
baseEndpoint: this._endpoint,
|
|
1031
|
+
defaultHeaders: this._defaultHeaders,
|
|
1032
|
+
path: "/oracleDbAzureBlobContainer/{oracleDbAzureBlobContainerId}",
|
|
1033
|
+
method: "GET",
|
|
1034
|
+
pathParams: pathParams,
|
|
1035
|
+
headerParams: headerParams,
|
|
1036
|
+
queryParams: queryParams
|
|
1037
|
+
});
|
|
1038
|
+
try {
|
|
1039
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1040
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1041
|
+
responseObject: {},
|
|
1042
|
+
body: yield response.json(),
|
|
1043
|
+
bodyKey: "oracleDbAzureBlobContainer",
|
|
1044
|
+
bodyModel: model.OracleDbAzureBlobContainer,
|
|
1045
|
+
type: "model.OracleDbAzureBlobContainer",
|
|
1046
|
+
responseHeaders: [
|
|
1047
|
+
{
|
|
1048
|
+
value: response.headers.get("etag"),
|
|
1049
|
+
key: "etag",
|
|
1050
|
+
dataType: "string"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
value: response.headers.get("opc-request-id"),
|
|
1054
|
+
key: "opcRequestId",
|
|
1055
|
+
dataType: "string"
|
|
1056
|
+
}
|
|
1057
|
+
]
|
|
1058
|
+
});
|
|
1059
|
+
return sdkResponse;
|
|
1060
|
+
}
|
|
1061
|
+
catch (err) {
|
|
1062
|
+
throw err;
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* Lists the all Oracle DB Azure Blob Container based on filter.
|
|
1068
|
+
*
|
|
1069
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1070
|
+
* @param ListOracleDbAzureBlobContainersRequest
|
|
1071
|
+
* @return ListOracleDbAzureBlobContainersResponse
|
|
1072
|
+
* @throws OciError when an error occurs
|
|
1073
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListOracleDbAzureBlobContainers.ts.html |here} to see how to use ListOracleDbAzureBlobContainers API.
|
|
1074
|
+
*/
|
|
1075
|
+
listOracleDbAzureBlobContainers(listOracleDbAzureBlobContainersRequest) {
|
|
1076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1077
|
+
if (this.logger)
|
|
1078
|
+
this.logger.debug("Calling operation OracleDBAzureBlobContainerClient#listOracleDbAzureBlobContainers.");
|
|
1079
|
+
const operationName = "listOracleDbAzureBlobContainers";
|
|
1080
|
+
const apiReferenceLink = "";
|
|
1081
|
+
const pathParams = {};
|
|
1082
|
+
const queryParams = {
|
|
1083
|
+
"compartmentId": listOracleDbAzureBlobContainersRequest.compartmentId,
|
|
1084
|
+
"displayName": listOracleDbAzureBlobContainersRequest.displayName,
|
|
1085
|
+
"oracleDbAzureBlobContainerId": listOracleDbAzureBlobContainersRequest.oracleDbAzureBlobContainerId,
|
|
1086
|
+
"lifecycleState": listOracleDbAzureBlobContainersRequest.lifecycleState,
|
|
1087
|
+
"azureStorageAccountName": listOracleDbAzureBlobContainersRequest.azureStorageAccountName,
|
|
1088
|
+
"azureStorageContainerName": listOracleDbAzureBlobContainersRequest.azureStorageContainerName,
|
|
1089
|
+
"limit": listOracleDbAzureBlobContainersRequest.limit,
|
|
1090
|
+
"page": listOracleDbAzureBlobContainersRequest.page,
|
|
1091
|
+
"sortOrder": listOracleDbAzureBlobContainersRequest.sortOrder,
|
|
1092
|
+
"sortBy": listOracleDbAzureBlobContainersRequest.sortBy
|
|
1093
|
+
};
|
|
1094
|
+
let headerParams = {
|
|
1095
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1096
|
+
"opc-request-id": listOracleDbAzureBlobContainersRequest.opcRequestId
|
|
1097
|
+
};
|
|
1098
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1099
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOracleDbAzureBlobContainersRequest.retryConfiguration, specRetryConfiguration);
|
|
1100
|
+
if (this.logger)
|
|
1101
|
+
retrier.logger = this.logger;
|
|
1102
|
+
const request = yield oci_common_1.composeRequest({
|
|
1103
|
+
baseEndpoint: this._endpoint,
|
|
1104
|
+
defaultHeaders: this._defaultHeaders,
|
|
1105
|
+
path: "/oracleDbAzureBlobContainer",
|
|
1106
|
+
method: "GET",
|
|
1107
|
+
pathParams: pathParams,
|
|
1108
|
+
headerParams: headerParams,
|
|
1109
|
+
queryParams: queryParams
|
|
1110
|
+
});
|
|
1111
|
+
try {
|
|
1112
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1113
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1114
|
+
responseObject: {},
|
|
1115
|
+
body: yield response.json(),
|
|
1116
|
+
bodyKey: "oracleDbAzureBlobContainerSummaryCollection",
|
|
1117
|
+
bodyModel: model.OracleDbAzureBlobContainerSummaryCollection,
|
|
1118
|
+
type: "model.OracleDbAzureBlobContainerSummaryCollection",
|
|
1119
|
+
responseHeaders: [
|
|
1120
|
+
{
|
|
1121
|
+
value: response.headers.get("opc-request-id"),
|
|
1122
|
+
key: "opcRequestId",
|
|
1123
|
+
dataType: "string"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
value: response.headers.get("opc-next-page"),
|
|
1127
|
+
key: "opcNextPage",
|
|
1128
|
+
dataType: "string"
|
|
1129
|
+
}
|
|
1130
|
+
]
|
|
1131
|
+
});
|
|
1132
|
+
return sdkResponse;
|
|
1133
|
+
}
|
|
1134
|
+
catch (err) {
|
|
1135
|
+
throw err;
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Modifies the existing Oracle DB Azure Blob Container for a given ID.
|
|
1141
|
+
*
|
|
1142
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1143
|
+
* @param UpdateOracleDbAzureBlobContainerRequest
|
|
1144
|
+
* @return UpdateOracleDbAzureBlobContainerResponse
|
|
1145
|
+
* @throws OciError when an error occurs
|
|
1146
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/UpdateOracleDbAzureBlobContainer.ts.html |here} to see how to use UpdateOracleDbAzureBlobContainer API.
|
|
1147
|
+
*/
|
|
1148
|
+
updateOracleDbAzureBlobContainer(updateOracleDbAzureBlobContainerRequest) {
|
|
1149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1150
|
+
if (this.logger)
|
|
1151
|
+
this.logger.debug("Calling operation OracleDBAzureBlobContainerClient#updateOracleDbAzureBlobContainer.");
|
|
1152
|
+
const operationName = "updateOracleDbAzureBlobContainer";
|
|
1153
|
+
const apiReferenceLink = "";
|
|
1154
|
+
const pathParams = {
|
|
1155
|
+
"{oracleDbAzureBlobContainerId}": updateOracleDbAzureBlobContainerRequest.oracleDbAzureBlobContainerId
|
|
1156
|
+
};
|
|
1157
|
+
const queryParams = {};
|
|
1158
|
+
let headerParams = {
|
|
1159
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1160
|
+
"if-match": updateOracleDbAzureBlobContainerRequest.ifMatch,
|
|
1161
|
+
"opc-request-id": updateOracleDbAzureBlobContainerRequest.opcRequestId
|
|
1162
|
+
};
|
|
1163
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1164
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOracleDbAzureBlobContainerRequest.retryConfiguration, specRetryConfiguration);
|
|
1165
|
+
if (this.logger)
|
|
1166
|
+
retrier.logger = this.logger;
|
|
1167
|
+
const request = yield oci_common_1.composeRequest({
|
|
1168
|
+
baseEndpoint: this._endpoint,
|
|
1169
|
+
defaultHeaders: this._defaultHeaders,
|
|
1170
|
+
path: "/oracleDbAzureBlobContainer/{oracleDbAzureBlobContainerId}",
|
|
1171
|
+
method: "PUT",
|
|
1172
|
+
bodyContent: common.ObjectSerializer.serialize(updateOracleDbAzureBlobContainerRequest.updateOracleDbAzureBlobContainerDetails, "UpdateOracleDbAzureBlobContainerDetails", model.UpdateOracleDbAzureBlobContainerDetails.getJsonObj),
|
|
1173
|
+
pathParams: pathParams,
|
|
1174
|
+
headerParams: headerParams,
|
|
1175
|
+
queryParams: queryParams
|
|
1176
|
+
});
|
|
1177
|
+
try {
|
|
1178
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1179
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1180
|
+
responseObject: {},
|
|
1181
|
+
responseHeaders: [
|
|
1182
|
+
{
|
|
1183
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1184
|
+
key: "opcWorkRequestId",
|
|
1185
|
+
dataType: "string"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
value: response.headers.get("opc-request-id"),
|
|
1189
|
+
key: "opcRequestId",
|
|
1190
|
+
dataType: "string"
|
|
1191
|
+
}
|
|
1192
|
+
]
|
|
1193
|
+
});
|
|
1194
|
+
return sdkResponse;
|
|
1195
|
+
}
|
|
1196
|
+
catch (err) {
|
|
1197
|
+
throw err;
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
exports.OracleDBAzureBlobContainerClient = OracleDBAzureBlobContainerClient;
|
|
1203
|
+
OracleDBAzureBlobContainerClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
1204
|
+
OracleDBAzureBlobContainerClient.endpointServiceName = "";
|
|
1205
|
+
var OracleDBAzureBlobMountApiKeys;
|
|
1206
|
+
(function (OracleDBAzureBlobMountApiKeys) {
|
|
1207
|
+
})(OracleDBAzureBlobMountApiKeys = exports.OracleDBAzureBlobMountApiKeys || (exports.OracleDBAzureBlobMountApiKeys = {}));
|
|
1208
|
+
/**
|
|
1209
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1210
|
+
*/
|
|
1211
|
+
class OracleDBAzureBlobMountClient {
|
|
1212
|
+
constructor(params, clientConfiguration) {
|
|
1213
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1214
|
+
this["_endpoint"] = "";
|
|
1215
|
+
this["_defaultHeaders"] = {};
|
|
1216
|
+
this._circuitBreaker = null;
|
|
1217
|
+
this._httpOptions = undefined;
|
|
1218
|
+
this._bodyDuplexMode = undefined;
|
|
1219
|
+
this.targetService = "OracleDBAzureBlobMount";
|
|
1220
|
+
this._regionId = "";
|
|
1221
|
+
this._lastSetRegionOrRegionId = "";
|
|
1222
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1223
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1224
|
+
: null;
|
|
1225
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
1226
|
+
if (clientConfiguration) {
|
|
1227
|
+
this._clientConfiguration = clientConfiguration;
|
|
1228
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1229
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1230
|
+
: null;
|
|
1231
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1232
|
+
? clientConfiguration.httpOptions
|
|
1233
|
+
: undefined;
|
|
1234
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1235
|
+
? clientConfiguration.bodyDuplexMode
|
|
1236
|
+
: undefined;
|
|
1237
|
+
}
|
|
1238
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
1239
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
1240
|
+
throw errmsg.concat("dbmulticloud");
|
|
1241
|
+
}
|
|
1242
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1243
|
+
const specCircuitBreakerEnabled = true;
|
|
1244
|
+
if (!this._circuitBreaker &&
|
|
1245
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1246
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1247
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1248
|
+
}
|
|
1249
|
+
this._httpClient =
|
|
1250
|
+
params.httpClient ||
|
|
1251
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
1252
|
+
if (params.authenticationDetailsProvider &&
|
|
1253
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1254
|
+
const provider = params.authenticationDetailsProvider;
|
|
1255
|
+
if (provider.getRegion()) {
|
|
1256
|
+
this.region = provider.getRegion();
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1262
|
+
*/
|
|
1263
|
+
get endpoint() {
|
|
1264
|
+
return this._endpoint;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1268
|
+
* @param endpoint The endpoint of the service.
|
|
1269
|
+
*/
|
|
1270
|
+
set endpoint(endpoint) {
|
|
1271
|
+
this._endpoint = endpoint;
|
|
1272
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
1273
|
+
if (this.logger)
|
|
1274
|
+
this.logger.info(`OracleDBAzureBlobMountClient endpoint set to ${this._endpoint}`);
|
|
1275
|
+
}
|
|
1276
|
+
get logger() {
|
|
1277
|
+
return common.LOG.logger;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1281
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1282
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1283
|
+
*/
|
|
1284
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1285
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1286
|
+
if (this.logger)
|
|
1287
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1288
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1289
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDBAzureBlobMountClient.serviceEndpointTemplate, this._region, OracleDBAzureBlobMountClient.endpointServiceName);
|
|
1290
|
+
}
|
|
1291
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1292
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDBAzureBlobMountClient.serviceEndpointTemplate, this._regionId, OracleDBAzureBlobMountClient.endpointServiceName);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1297
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1298
|
+
* @param region The region of the service.
|
|
1299
|
+
*/
|
|
1300
|
+
set region(region) {
|
|
1301
|
+
this._region = region;
|
|
1302
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDBAzureBlobMountClient.serviceEndpointTemplate, region, OracleDBAzureBlobMountClient.endpointServiceName);
|
|
1303
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1307
|
+
*
|
|
1308
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1309
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1310
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1311
|
+
* @param regionId The public region ID.
|
|
1312
|
+
*/
|
|
1313
|
+
set regionId(regionId) {
|
|
1314
|
+
this._regionId = regionId;
|
|
1315
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDBAzureBlobMountClient.serviceEndpointTemplate, regionId, OracleDBAzureBlobMountClient.endpointServiceName);
|
|
1316
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Creates a new OracleDBAzureBlobMountWaiter for resources for this service.
|
|
1320
|
+
*
|
|
1321
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1322
|
+
* @return The service waiters.
|
|
1323
|
+
*/
|
|
1324
|
+
createWaiters(config) {
|
|
1325
|
+
this._waiters = new oracledbazureblobmount_waiter_1.OracleDBAzureBlobMountWaiter(this, config);
|
|
1326
|
+
return this._waiters;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Gets the waiters available for resources for this service.
|
|
1330
|
+
*
|
|
1331
|
+
* @return The service waiters.
|
|
1332
|
+
*/
|
|
1333
|
+
getWaiters() {
|
|
1334
|
+
if (this._waiters) {
|
|
1335
|
+
return this._waiters;
|
|
1336
|
+
}
|
|
1337
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1341
|
+
*/
|
|
1342
|
+
shutdownCircuitBreaker() {
|
|
1343
|
+
if (this._circuitBreaker) {
|
|
1344
|
+
this._circuitBreaker.shutdown();
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1349
|
+
*/
|
|
1350
|
+
closeProvider() {
|
|
1351
|
+
if (this._authProvider) {
|
|
1352
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1353
|
+
(this._authProvider).closeProvider();
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Close the client once it is no longer needed
|
|
1358
|
+
*/
|
|
1359
|
+
close() {
|
|
1360
|
+
this.shutdownCircuitBreaker();
|
|
1361
|
+
this.closeProvider();
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Moves the Oracle DbAzure Blob Mount resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
1365
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1366
|
+
* @param ChangeOracleDbAzureBlobMountCompartmentRequest
|
|
1367
|
+
* @return ChangeOracleDbAzureBlobMountCompartmentResponse
|
|
1368
|
+
* @throws OciError when an error occurs
|
|
1369
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ChangeOracleDbAzureBlobMountCompartment.ts.html |here} to see how to use ChangeOracleDbAzureBlobMountCompartment API.
|
|
1370
|
+
*/
|
|
1371
|
+
changeOracleDbAzureBlobMountCompartment(changeOracleDbAzureBlobMountCompartmentRequest) {
|
|
1372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1373
|
+
if (this.logger)
|
|
1374
|
+
this.logger.debug("Calling operation OracleDBAzureBlobMountClient#changeOracleDbAzureBlobMountCompartment.");
|
|
1375
|
+
const operationName = "changeOracleDbAzureBlobMountCompartment";
|
|
1376
|
+
const apiReferenceLink = "";
|
|
1377
|
+
const pathParams = {
|
|
1378
|
+
"{oracleDbAzureBlobMountId}": changeOracleDbAzureBlobMountCompartmentRequest.oracleDbAzureBlobMountId
|
|
1379
|
+
};
|
|
1380
|
+
const queryParams = {};
|
|
1381
|
+
let headerParams = {
|
|
1382
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1383
|
+
"opc-retry-token": changeOracleDbAzureBlobMountCompartmentRequest.opcRetryToken,
|
|
1384
|
+
"if-match": changeOracleDbAzureBlobMountCompartmentRequest.ifMatch,
|
|
1385
|
+
"opc-request-id": changeOracleDbAzureBlobMountCompartmentRequest.opcRequestId
|
|
1386
|
+
};
|
|
1387
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1388
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOracleDbAzureBlobMountCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1389
|
+
if (this.logger)
|
|
1390
|
+
retrier.logger = this.logger;
|
|
1391
|
+
const request = yield oci_common_1.composeRequest({
|
|
1392
|
+
baseEndpoint: this._endpoint,
|
|
1393
|
+
defaultHeaders: this._defaultHeaders,
|
|
1394
|
+
path: "/oracleDbAzureBlobMount/{oracleDbAzureBlobMountId}/actions/changeCompartment",
|
|
1395
|
+
method: "POST",
|
|
1396
|
+
bodyContent: common.ObjectSerializer.serialize(changeOracleDbAzureBlobMountCompartmentRequest.changeOracleDbAzureBlobMountCompartmentDetails, "ChangeOracleDbAzureBlobMountCompartmentDetails", model.ChangeOracleDbAzureBlobMountCompartmentDetails.getJsonObj),
|
|
1397
|
+
pathParams: pathParams,
|
|
1398
|
+
headerParams: headerParams,
|
|
1399
|
+
queryParams: queryParams
|
|
1400
|
+
});
|
|
1401
|
+
try {
|
|
1402
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1403
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1404
|
+
responseObject: {},
|
|
1405
|
+
responseHeaders: [
|
|
1406
|
+
{
|
|
1407
|
+
value: response.headers.get("opc-request-id"),
|
|
1408
|
+
key: "opcRequestId",
|
|
1409
|
+
dataType: "string"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1413
|
+
key: "opcWorkRequestId",
|
|
1414
|
+
dataType: "string"
|
|
1415
|
+
}
|
|
1416
|
+
]
|
|
1417
|
+
});
|
|
1418
|
+
return sdkResponse;
|
|
1419
|
+
}
|
|
1420
|
+
catch (err) {
|
|
1421
|
+
throw err;
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Creates Oracle DB Azure Blob Mount resource and mounts Azure Container in OCI Database Resource,
|
|
1427
|
+
* based on provided Azure Container details and Database Resource ID.
|
|
1428
|
+
*
|
|
1429
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1430
|
+
* @param CreateOracleDbAzureBlobMountRequest
|
|
1431
|
+
* @return CreateOracleDbAzureBlobMountResponse
|
|
1432
|
+
* @throws OciError when an error occurs
|
|
1433
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CreateOracleDbAzureBlobMount.ts.html |here} to see how to use CreateOracleDbAzureBlobMount API.
|
|
1434
|
+
*/
|
|
1435
|
+
createOracleDbAzureBlobMount(createOracleDbAzureBlobMountRequest) {
|
|
1436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1437
|
+
if (this.logger)
|
|
1438
|
+
this.logger.debug("Calling operation OracleDBAzureBlobMountClient#createOracleDbAzureBlobMount.");
|
|
1439
|
+
const operationName = "createOracleDbAzureBlobMount";
|
|
1440
|
+
const apiReferenceLink = "";
|
|
1441
|
+
const pathParams = {};
|
|
1442
|
+
const queryParams = {};
|
|
1443
|
+
let headerParams = {
|
|
1444
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1445
|
+
"opc-retry-token": createOracleDbAzureBlobMountRequest.opcRetryToken,
|
|
1446
|
+
"if-match": createOracleDbAzureBlobMountRequest.ifMatch,
|
|
1447
|
+
"opc-request-id": createOracleDbAzureBlobMountRequest.opcRequestId
|
|
1448
|
+
};
|
|
1449
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1450
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOracleDbAzureBlobMountRequest.retryConfiguration, specRetryConfiguration);
|
|
1451
|
+
if (this.logger)
|
|
1452
|
+
retrier.logger = this.logger;
|
|
1453
|
+
const request = yield oci_common_1.composeRequest({
|
|
1454
|
+
baseEndpoint: this._endpoint,
|
|
1455
|
+
defaultHeaders: this._defaultHeaders,
|
|
1456
|
+
path: "/oracleDbAzureBlobMount",
|
|
1457
|
+
method: "POST",
|
|
1458
|
+
bodyContent: common.ObjectSerializer.serialize(createOracleDbAzureBlobMountRequest.createOracleDbAzureBlobMountDetails, "CreateOracleDbAzureBlobMountDetails", model.CreateOracleDbAzureBlobMountDetails.getJsonObj),
|
|
1459
|
+
pathParams: pathParams,
|
|
1460
|
+
headerParams: headerParams,
|
|
1461
|
+
queryParams: queryParams
|
|
1462
|
+
});
|
|
1463
|
+
try {
|
|
1464
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1465
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1466
|
+
responseObject: {},
|
|
1467
|
+
body: yield response.json(),
|
|
1468
|
+
bodyKey: "oracleDbAzureBlobMount",
|
|
1469
|
+
bodyModel: model.OracleDbAzureBlobMount,
|
|
1470
|
+
type: "model.OracleDbAzureBlobMount",
|
|
1471
|
+
responseHeaders: [
|
|
1472
|
+
{
|
|
1473
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1474
|
+
key: "opcWorkRequestId",
|
|
1475
|
+
dataType: "string"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
value: response.headers.get("opc-request-id"),
|
|
1479
|
+
key: "opcRequestId",
|
|
1480
|
+
dataType: "string"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
value: response.headers.get("location"),
|
|
1484
|
+
key: "location",
|
|
1485
|
+
dataType: "string"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
value: response.headers.get("content-location"),
|
|
1489
|
+
key: "contentLocation",
|
|
1490
|
+
dataType: "string"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
value: response.headers.get("etag"),
|
|
1494
|
+
key: "etag",
|
|
1495
|
+
dataType: "string"
|
|
1496
|
+
}
|
|
1497
|
+
]
|
|
1498
|
+
});
|
|
1499
|
+
return sdkResponse;
|
|
1500
|
+
}
|
|
1501
|
+
catch (err) {
|
|
1502
|
+
throw err;
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Unmount Azure Container Resource from ExaCS VM Cluster and Delete resource.
|
|
1508
|
+
*
|
|
1509
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1510
|
+
* @param DeleteOracleDbAzureBlobMountRequest
|
|
1511
|
+
* @return DeleteOracleDbAzureBlobMountResponse
|
|
1512
|
+
* @throws OciError when an error occurs
|
|
1513
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/DeleteOracleDbAzureBlobMount.ts.html |here} to see how to use DeleteOracleDbAzureBlobMount API.
|
|
1514
|
+
*/
|
|
1515
|
+
deleteOracleDbAzureBlobMount(deleteOracleDbAzureBlobMountRequest) {
|
|
1516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1517
|
+
if (this.logger)
|
|
1518
|
+
this.logger.debug("Calling operation OracleDBAzureBlobMountClient#deleteOracleDbAzureBlobMount.");
|
|
1519
|
+
const operationName = "deleteOracleDbAzureBlobMount";
|
|
1520
|
+
const apiReferenceLink = "";
|
|
1521
|
+
const pathParams = {
|
|
1522
|
+
"{oracleDbAzureBlobMountId}": deleteOracleDbAzureBlobMountRequest.oracleDbAzureBlobMountId
|
|
1523
|
+
};
|
|
1524
|
+
const queryParams = {};
|
|
1525
|
+
let headerParams = {
|
|
1526
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1527
|
+
"if-match": deleteOracleDbAzureBlobMountRequest.ifMatch,
|
|
1528
|
+
"opc-request-id": deleteOracleDbAzureBlobMountRequest.opcRequestId
|
|
1529
|
+
};
|
|
1530
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1531
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOracleDbAzureBlobMountRequest.retryConfiguration, specRetryConfiguration);
|
|
1532
|
+
if (this.logger)
|
|
1533
|
+
retrier.logger = this.logger;
|
|
1534
|
+
const request = yield oci_common_1.composeRequest({
|
|
1535
|
+
baseEndpoint: this._endpoint,
|
|
1536
|
+
defaultHeaders: this._defaultHeaders,
|
|
1537
|
+
path: "/oracleDbAzureBlobMount/{oracleDbAzureBlobMountId}",
|
|
1538
|
+
method: "DELETE",
|
|
1539
|
+
pathParams: pathParams,
|
|
1540
|
+
headerParams: headerParams,
|
|
1541
|
+
queryParams: queryParams
|
|
1542
|
+
});
|
|
1543
|
+
try {
|
|
1544
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1545
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1546
|
+
responseObject: {},
|
|
1547
|
+
responseHeaders: [
|
|
1548
|
+
{
|
|
1549
|
+
value: response.headers.get("opc-request-id"),
|
|
1550
|
+
key: "opcRequestId",
|
|
1551
|
+
dataType: "string"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1555
|
+
key: "opcWorkRequestId",
|
|
1556
|
+
dataType: "string"
|
|
1557
|
+
}
|
|
1558
|
+
]
|
|
1559
|
+
});
|
|
1560
|
+
return sdkResponse;
|
|
1561
|
+
}
|
|
1562
|
+
catch (err) {
|
|
1563
|
+
throw err;
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* Get Oracle DB Azure Blob Mount Details form a particular Container Resource ID.
|
|
1569
|
+
*
|
|
1570
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1571
|
+
* @param GetOracleDbAzureBlobMountRequest
|
|
1572
|
+
* @return GetOracleDbAzureBlobMountResponse
|
|
1573
|
+
* @throws OciError when an error occurs
|
|
1574
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetOracleDbAzureBlobMount.ts.html |here} to see how to use GetOracleDbAzureBlobMount API.
|
|
1575
|
+
*/
|
|
1576
|
+
getOracleDbAzureBlobMount(getOracleDbAzureBlobMountRequest) {
|
|
1577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1578
|
+
if (this.logger)
|
|
1579
|
+
this.logger.debug("Calling operation OracleDBAzureBlobMountClient#getOracleDbAzureBlobMount.");
|
|
1580
|
+
const operationName = "getOracleDbAzureBlobMount";
|
|
1581
|
+
const apiReferenceLink = "";
|
|
1582
|
+
const pathParams = {
|
|
1583
|
+
"{oracleDbAzureBlobMountId}": getOracleDbAzureBlobMountRequest.oracleDbAzureBlobMountId
|
|
1584
|
+
};
|
|
1585
|
+
const queryParams = {
|
|
1586
|
+
"limit": getOracleDbAzureBlobMountRequest.limit,
|
|
1587
|
+
"page": getOracleDbAzureBlobMountRequest.page,
|
|
1588
|
+
"sortOrder": getOracleDbAzureBlobMountRequest.sortOrder
|
|
1589
|
+
};
|
|
1590
|
+
let headerParams = {
|
|
1591
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1592
|
+
"opc-request-id": getOracleDbAzureBlobMountRequest.opcRequestId
|
|
1593
|
+
};
|
|
1594
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1595
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOracleDbAzureBlobMountRequest.retryConfiguration, specRetryConfiguration);
|
|
1596
|
+
if (this.logger)
|
|
1597
|
+
retrier.logger = this.logger;
|
|
1598
|
+
const request = yield oci_common_1.composeRequest({
|
|
1599
|
+
baseEndpoint: this._endpoint,
|
|
1600
|
+
defaultHeaders: this._defaultHeaders,
|
|
1601
|
+
path: "/oracleDbAzureBlobMount/{oracleDbAzureBlobMountId}",
|
|
1602
|
+
method: "GET",
|
|
1603
|
+
pathParams: pathParams,
|
|
1604
|
+
headerParams: headerParams,
|
|
1605
|
+
queryParams: queryParams
|
|
1606
|
+
});
|
|
1607
|
+
try {
|
|
1608
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1609
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1610
|
+
responseObject: {},
|
|
1611
|
+
body: yield response.json(),
|
|
1612
|
+
bodyKey: "oracleDbAzureBlobMount",
|
|
1613
|
+
bodyModel: model.OracleDbAzureBlobMount,
|
|
1614
|
+
type: "model.OracleDbAzureBlobMount",
|
|
1615
|
+
responseHeaders: [
|
|
1616
|
+
{
|
|
1617
|
+
value: response.headers.get("etag"),
|
|
1618
|
+
key: "etag",
|
|
1619
|
+
dataType: "string"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
value: response.headers.get("opc-request-id"),
|
|
1623
|
+
key: "opcRequestId",
|
|
1624
|
+
dataType: "string"
|
|
1625
|
+
}
|
|
1626
|
+
]
|
|
1627
|
+
});
|
|
1628
|
+
return sdkResponse;
|
|
1629
|
+
}
|
|
1630
|
+
catch (err) {
|
|
1631
|
+
throw err;
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Lists the all Oracle DB Azure Blob Mounts based on filters.
|
|
1637
|
+
*
|
|
1638
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1639
|
+
* @param ListOracleDbAzureBlobMountsRequest
|
|
1640
|
+
* @return ListOracleDbAzureBlobMountsResponse
|
|
1641
|
+
* @throws OciError when an error occurs
|
|
1642
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListOracleDbAzureBlobMounts.ts.html |here} to see how to use ListOracleDbAzureBlobMounts API.
|
|
1643
|
+
*/
|
|
1644
|
+
listOracleDbAzureBlobMounts(listOracleDbAzureBlobMountsRequest) {
|
|
1645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1646
|
+
if (this.logger)
|
|
1647
|
+
this.logger.debug("Calling operation OracleDBAzureBlobMountClient#listOracleDbAzureBlobMounts.");
|
|
1648
|
+
const operationName = "listOracleDbAzureBlobMounts";
|
|
1649
|
+
const apiReferenceLink = "";
|
|
1650
|
+
const pathParams = {};
|
|
1651
|
+
const queryParams = {
|
|
1652
|
+
"compartmentId": listOracleDbAzureBlobMountsRequest.compartmentId,
|
|
1653
|
+
"displayName": listOracleDbAzureBlobMountsRequest.displayName,
|
|
1654
|
+
"oracleDbAzureBlobMountId": listOracleDbAzureBlobMountsRequest.oracleDbAzureBlobMountId,
|
|
1655
|
+
"lifecycleState": listOracleDbAzureBlobMountsRequest.lifecycleState,
|
|
1656
|
+
"oracleDbAzureBlobContainerId": listOracleDbAzureBlobMountsRequest.oracleDbAzureBlobContainerId,
|
|
1657
|
+
"oracleDbAzureConnectorId": listOracleDbAzureBlobMountsRequest.oracleDbAzureConnectorId,
|
|
1658
|
+
"limit": listOracleDbAzureBlobMountsRequest.limit,
|
|
1659
|
+
"page": listOracleDbAzureBlobMountsRequest.page,
|
|
1660
|
+
"sortOrder": listOracleDbAzureBlobMountsRequest.sortOrder,
|
|
1661
|
+
"sortBy": listOracleDbAzureBlobMountsRequest.sortBy
|
|
1662
|
+
};
|
|
1663
|
+
let headerParams = {
|
|
1664
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1665
|
+
"opc-request-id": listOracleDbAzureBlobMountsRequest.opcRequestId
|
|
1666
|
+
};
|
|
1667
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1668
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOracleDbAzureBlobMountsRequest.retryConfiguration, specRetryConfiguration);
|
|
1669
|
+
if (this.logger)
|
|
1670
|
+
retrier.logger = this.logger;
|
|
1671
|
+
const request = yield oci_common_1.composeRequest({
|
|
1672
|
+
baseEndpoint: this._endpoint,
|
|
1673
|
+
defaultHeaders: this._defaultHeaders,
|
|
1674
|
+
path: "/oracleDbAzureBlobMount",
|
|
1675
|
+
method: "GET",
|
|
1676
|
+
pathParams: pathParams,
|
|
1677
|
+
headerParams: headerParams,
|
|
1678
|
+
queryParams: queryParams
|
|
1679
|
+
});
|
|
1680
|
+
try {
|
|
1681
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1682
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1683
|
+
responseObject: {},
|
|
1684
|
+
body: yield response.json(),
|
|
1685
|
+
bodyKey: "oracleDbAzureBlobMountSummaryCollection",
|
|
1686
|
+
bodyModel: model.OracleDbAzureBlobMountSummaryCollection,
|
|
1687
|
+
type: "model.OracleDbAzureBlobMountSummaryCollection",
|
|
1688
|
+
responseHeaders: [
|
|
1689
|
+
{
|
|
1690
|
+
value: response.headers.get("opc-request-id"),
|
|
1691
|
+
key: "opcRequestId",
|
|
1692
|
+
dataType: "string"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
value: response.headers.get("opc-next-page"),
|
|
1696
|
+
key: "opcNextPage",
|
|
1697
|
+
dataType: "string"
|
|
1698
|
+
}
|
|
1699
|
+
]
|
|
1700
|
+
});
|
|
1701
|
+
return sdkResponse;
|
|
1702
|
+
}
|
|
1703
|
+
catch (err) {
|
|
1704
|
+
throw err;
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* Modifies the existing Oracle DB Azure Blob Mount resource for a given ID.
|
|
1710
|
+
*
|
|
1711
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1712
|
+
* @param UpdateOracleDbAzureBlobMountRequest
|
|
1713
|
+
* @return UpdateOracleDbAzureBlobMountResponse
|
|
1714
|
+
* @throws OciError when an error occurs
|
|
1715
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/UpdateOracleDbAzureBlobMount.ts.html |here} to see how to use UpdateOracleDbAzureBlobMount API.
|
|
1716
|
+
*/
|
|
1717
|
+
updateOracleDbAzureBlobMount(updateOracleDbAzureBlobMountRequest) {
|
|
1718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1719
|
+
if (this.logger)
|
|
1720
|
+
this.logger.debug("Calling operation OracleDBAzureBlobMountClient#updateOracleDbAzureBlobMount.");
|
|
1721
|
+
const operationName = "updateOracleDbAzureBlobMount";
|
|
1722
|
+
const apiReferenceLink = "";
|
|
1723
|
+
const pathParams = {
|
|
1724
|
+
"{oracleDbAzureBlobMountId}": updateOracleDbAzureBlobMountRequest.oracleDbAzureBlobMountId
|
|
1725
|
+
};
|
|
1726
|
+
const queryParams = {};
|
|
1727
|
+
let headerParams = {
|
|
1728
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1729
|
+
"if-match": updateOracleDbAzureBlobMountRequest.ifMatch,
|
|
1730
|
+
"opc-request-id": updateOracleDbAzureBlobMountRequest.opcRequestId
|
|
1731
|
+
};
|
|
1732
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1733
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOracleDbAzureBlobMountRequest.retryConfiguration, specRetryConfiguration);
|
|
1734
|
+
if (this.logger)
|
|
1735
|
+
retrier.logger = this.logger;
|
|
1736
|
+
const request = yield oci_common_1.composeRequest({
|
|
1737
|
+
baseEndpoint: this._endpoint,
|
|
1738
|
+
defaultHeaders: this._defaultHeaders,
|
|
1739
|
+
path: "/oracleDbAzureBlobMount/{oracleDbAzureBlobMountId}",
|
|
1740
|
+
method: "PUT",
|
|
1741
|
+
bodyContent: common.ObjectSerializer.serialize(updateOracleDbAzureBlobMountRequest.updateOracleDbAzureBlobMountDetails, "UpdateOracleDbAzureBlobMountDetails", model.UpdateOracleDbAzureBlobMountDetails.getJsonObj),
|
|
1742
|
+
pathParams: pathParams,
|
|
1743
|
+
headerParams: headerParams,
|
|
1744
|
+
queryParams: queryParams
|
|
1745
|
+
});
|
|
1746
|
+
try {
|
|
1747
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1748
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1749
|
+
responseObject: {},
|
|
1750
|
+
responseHeaders: [
|
|
1751
|
+
{
|
|
1752
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1753
|
+
key: "opcWorkRequestId",
|
|
1754
|
+
dataType: "string"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
value: response.headers.get("opc-request-id"),
|
|
1758
|
+
key: "opcRequestId",
|
|
1759
|
+
dataType: "string"
|
|
1760
|
+
}
|
|
1761
|
+
]
|
|
1762
|
+
});
|
|
1763
|
+
return sdkResponse;
|
|
1764
|
+
}
|
|
1765
|
+
catch (err) {
|
|
1766
|
+
throw err;
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
exports.OracleDBAzureBlobMountClient = OracleDBAzureBlobMountClient;
|
|
1772
|
+
OracleDBAzureBlobMountClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
1773
|
+
OracleDBAzureBlobMountClient.endpointServiceName = "";
|
|
1774
|
+
var OracleDBAzureConnectorApiKeys;
|
|
1775
|
+
(function (OracleDBAzureConnectorApiKeys) {
|
|
1776
|
+
})(OracleDBAzureConnectorApiKeys = exports.OracleDBAzureConnectorApiKeys || (exports.OracleDBAzureConnectorApiKeys = {}));
|
|
1777
|
+
/**
|
|
1778
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1779
|
+
*/
|
|
1780
|
+
class OracleDBAzureConnectorClient {
|
|
1781
|
+
constructor(params, clientConfiguration) {
|
|
1782
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1783
|
+
this["_endpoint"] = "";
|
|
1784
|
+
this["_defaultHeaders"] = {};
|
|
1785
|
+
this._circuitBreaker = null;
|
|
1786
|
+
this._httpOptions = undefined;
|
|
1787
|
+
this._bodyDuplexMode = undefined;
|
|
1788
|
+
this.targetService = "OracleDBAzureConnector";
|
|
1789
|
+
this._regionId = "";
|
|
1790
|
+
this._lastSetRegionOrRegionId = "";
|
|
1791
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1792
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1793
|
+
: null;
|
|
1794
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
1795
|
+
if (clientConfiguration) {
|
|
1796
|
+
this._clientConfiguration = clientConfiguration;
|
|
1797
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1798
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1799
|
+
: null;
|
|
1800
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1801
|
+
? clientConfiguration.httpOptions
|
|
1802
|
+
: undefined;
|
|
1803
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1804
|
+
? clientConfiguration.bodyDuplexMode
|
|
1805
|
+
: undefined;
|
|
1806
|
+
}
|
|
1807
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
1808
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
1809
|
+
throw errmsg.concat("dbmulticloud");
|
|
1810
|
+
}
|
|
1811
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1812
|
+
const specCircuitBreakerEnabled = true;
|
|
1813
|
+
if (!this._circuitBreaker &&
|
|
1814
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1815
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1816
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1817
|
+
}
|
|
1818
|
+
this._httpClient =
|
|
1819
|
+
params.httpClient ||
|
|
1820
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
1821
|
+
if (params.authenticationDetailsProvider &&
|
|
1822
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1823
|
+
const provider = params.authenticationDetailsProvider;
|
|
1824
|
+
if (provider.getRegion()) {
|
|
1825
|
+
this.region = provider.getRegion();
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1831
|
+
*/
|
|
1832
|
+
get endpoint() {
|
|
1833
|
+
return this._endpoint;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1837
|
+
* @param endpoint The endpoint of the service.
|
|
1838
|
+
*/
|
|
1839
|
+
set endpoint(endpoint) {
|
|
1840
|
+
this._endpoint = endpoint;
|
|
1841
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
1842
|
+
if (this.logger)
|
|
1843
|
+
this.logger.info(`OracleDBAzureConnectorClient endpoint set to ${this._endpoint}`);
|
|
1844
|
+
}
|
|
1845
|
+
get logger() {
|
|
1846
|
+
return common.LOG.logger;
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1850
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1851
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1852
|
+
*/
|
|
1853
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1854
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1855
|
+
if (this.logger)
|
|
1856
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1857
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1858
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDBAzureConnectorClient.serviceEndpointTemplate, this._region, OracleDBAzureConnectorClient.endpointServiceName);
|
|
1859
|
+
}
|
|
1860
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1861
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDBAzureConnectorClient.serviceEndpointTemplate, this._regionId, OracleDBAzureConnectorClient.endpointServiceName);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
/**
|
|
1865
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1866
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1867
|
+
* @param region The region of the service.
|
|
1868
|
+
*/
|
|
1869
|
+
set region(region) {
|
|
1870
|
+
this._region = region;
|
|
1871
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDBAzureConnectorClient.serviceEndpointTemplate, region, OracleDBAzureConnectorClient.endpointServiceName);
|
|
1872
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1876
|
+
*
|
|
1877
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1878
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1879
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1880
|
+
* @param regionId The public region ID.
|
|
1881
|
+
*/
|
|
1882
|
+
set regionId(regionId) {
|
|
1883
|
+
this._regionId = regionId;
|
|
1884
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDBAzureConnectorClient.serviceEndpointTemplate, regionId, OracleDBAzureConnectorClient.endpointServiceName);
|
|
1885
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Creates a new OracleDBAzureConnectorWaiter for resources for this service.
|
|
1889
|
+
*
|
|
1890
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1891
|
+
* @return The service waiters.
|
|
1892
|
+
*/
|
|
1893
|
+
createWaiters(config) {
|
|
1894
|
+
this._waiters = new oracledbazureconnector_waiter_1.OracleDBAzureConnectorWaiter(this, config);
|
|
1895
|
+
return this._waiters;
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Gets the waiters available for resources for this service.
|
|
1899
|
+
*
|
|
1900
|
+
* @return The service waiters.
|
|
1901
|
+
*/
|
|
1902
|
+
getWaiters() {
|
|
1903
|
+
if (this._waiters) {
|
|
1904
|
+
return this._waiters;
|
|
1905
|
+
}
|
|
1906
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1910
|
+
*/
|
|
1911
|
+
shutdownCircuitBreaker() {
|
|
1912
|
+
if (this._circuitBreaker) {
|
|
1913
|
+
this._circuitBreaker.shutdown();
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1918
|
+
*/
|
|
1919
|
+
closeProvider() {
|
|
1920
|
+
if (this._authProvider) {
|
|
1921
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1922
|
+
(this._authProvider).closeProvider();
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Close the client once it is no longer needed
|
|
1927
|
+
*/
|
|
1928
|
+
close() {
|
|
1929
|
+
this.shutdownCircuitBreaker();
|
|
1930
|
+
this.closeProvider();
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Moves the Oracle DB Azure Connector Resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
1934
|
+
*
|
|
1935
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1936
|
+
* @param ChangeOracleDbAzureConnectorCompartmentRequest
|
|
1937
|
+
* @return ChangeOracleDbAzureConnectorCompartmentResponse
|
|
1938
|
+
* @throws OciError when an error occurs
|
|
1939
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ChangeOracleDbAzureConnectorCompartment.ts.html |here} to see how to use ChangeOracleDbAzureConnectorCompartment API.
|
|
1940
|
+
*/
|
|
1941
|
+
changeOracleDbAzureConnectorCompartment(changeOracleDbAzureConnectorCompartmentRequest) {
|
|
1942
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1943
|
+
if (this.logger)
|
|
1944
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#changeOracleDbAzureConnectorCompartment.");
|
|
1945
|
+
const operationName = "changeOracleDbAzureConnectorCompartment";
|
|
1946
|
+
const apiReferenceLink = "";
|
|
1947
|
+
const pathParams = {
|
|
1948
|
+
"{oracleDbAzureConnectorId}": changeOracleDbAzureConnectorCompartmentRequest.oracleDbAzureConnectorId
|
|
1949
|
+
};
|
|
1950
|
+
const queryParams = {};
|
|
1951
|
+
let headerParams = {
|
|
1952
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1953
|
+
"opc-retry-token": changeOracleDbAzureConnectorCompartmentRequest.opcRetryToken,
|
|
1954
|
+
"if-match": changeOracleDbAzureConnectorCompartmentRequest.ifMatch,
|
|
1955
|
+
"opc-request-id": changeOracleDbAzureConnectorCompartmentRequest.opcRequestId
|
|
1956
|
+
};
|
|
1957
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1958
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOracleDbAzureConnectorCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1959
|
+
if (this.logger)
|
|
1960
|
+
retrier.logger = this.logger;
|
|
1961
|
+
const request = yield oci_common_1.composeRequest({
|
|
1962
|
+
baseEndpoint: this._endpoint,
|
|
1963
|
+
defaultHeaders: this._defaultHeaders,
|
|
1964
|
+
path: "/oracleDbAzureConnector/{oracleDbAzureConnectorId}/actions/changeCompartment",
|
|
1965
|
+
method: "POST",
|
|
1966
|
+
bodyContent: common.ObjectSerializer.serialize(changeOracleDbAzureConnectorCompartmentRequest.changeOracleDbAzureConnectorCompartmentDetails, "ChangeOracleDbAzureConnectorCompartmentDetails", model.ChangeOracleDbAzureConnectorCompartmentDetails.getJsonObj),
|
|
1967
|
+
pathParams: pathParams,
|
|
1968
|
+
headerParams: headerParams,
|
|
1969
|
+
queryParams: queryParams
|
|
1970
|
+
});
|
|
1971
|
+
try {
|
|
1972
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1973
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1974
|
+
responseObject: {},
|
|
1975
|
+
responseHeaders: [
|
|
1976
|
+
{
|
|
1977
|
+
value: response.headers.get("opc-request-id"),
|
|
1978
|
+
key: "opcRequestId",
|
|
1979
|
+
dataType: "string"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1983
|
+
key: "opcWorkRequestId",
|
|
1984
|
+
dataType: "string"
|
|
1985
|
+
}
|
|
1986
|
+
]
|
|
1987
|
+
});
|
|
1988
|
+
return sdkResponse;
|
|
1989
|
+
}
|
|
1990
|
+
catch (err) {
|
|
1991
|
+
throw err;
|
|
1992
|
+
}
|
|
1993
|
+
});
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Creates Oracle DB Azure Connector Resource and configured Azure Identity in OCI Database Resource.
|
|
1997
|
+
*
|
|
1998
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1999
|
+
* @param CreateOracleDbAzureConnectorRequest
|
|
2000
|
+
* @return CreateOracleDbAzureConnectorResponse
|
|
2001
|
+
* @throws OciError when an error occurs
|
|
2002
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CreateOracleDbAzureConnector.ts.html |here} to see how to use CreateOracleDbAzureConnector API.
|
|
2003
|
+
*/
|
|
2004
|
+
createOracleDbAzureConnector(createOracleDbAzureConnectorRequest) {
|
|
2005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2006
|
+
if (this.logger)
|
|
2007
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#createOracleDbAzureConnector.");
|
|
2008
|
+
const operationName = "createOracleDbAzureConnector";
|
|
2009
|
+
const apiReferenceLink = "";
|
|
2010
|
+
const pathParams = {};
|
|
2011
|
+
const queryParams = {};
|
|
2012
|
+
let headerParams = {
|
|
2013
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2014
|
+
"opc-retry-token": createOracleDbAzureConnectorRequest.opcRetryToken,
|
|
2015
|
+
"opc-request-id": createOracleDbAzureConnectorRequest.opcRequestId
|
|
2016
|
+
};
|
|
2017
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2018
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOracleDbAzureConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
2019
|
+
if (this.logger)
|
|
2020
|
+
retrier.logger = this.logger;
|
|
2021
|
+
const request = yield oci_common_1.composeRequest({
|
|
2022
|
+
baseEndpoint: this._endpoint,
|
|
2023
|
+
defaultHeaders: this._defaultHeaders,
|
|
2024
|
+
path: "/oracleDbAzureConnector",
|
|
2025
|
+
method: "POST",
|
|
2026
|
+
bodyContent: common.ObjectSerializer.serialize(createOracleDbAzureConnectorRequest.createOracleDbAzureConnectorDetails, "CreateOracleDbAzureConnectorDetails", model.CreateOracleDbAzureConnectorDetails.getJsonObj),
|
|
2027
|
+
pathParams: pathParams,
|
|
2028
|
+
headerParams: headerParams,
|
|
2029
|
+
queryParams: queryParams
|
|
2030
|
+
});
|
|
2031
|
+
try {
|
|
2032
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2033
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2034
|
+
responseObject: {},
|
|
2035
|
+
body: yield response.json(),
|
|
2036
|
+
bodyKey: "oracleDbAzureConnector",
|
|
2037
|
+
bodyModel: model.OracleDbAzureConnector,
|
|
2038
|
+
type: "model.OracleDbAzureConnector",
|
|
2039
|
+
responseHeaders: [
|
|
2040
|
+
{
|
|
2041
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2042
|
+
key: "opcWorkRequestId",
|
|
2043
|
+
dataType: "string"
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
value: response.headers.get("opc-request-id"),
|
|
2047
|
+
key: "opcRequestId",
|
|
2048
|
+
dataType: "string"
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
value: response.headers.get("location"),
|
|
2052
|
+
key: "location",
|
|
2053
|
+
dataType: "string"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
value: response.headers.get("content-location"),
|
|
2057
|
+
key: "contentLocation",
|
|
2058
|
+
dataType: "string"
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
value: response.headers.get("etag"),
|
|
2062
|
+
key: "etag",
|
|
2063
|
+
dataType: "string"
|
|
2064
|
+
}
|
|
2065
|
+
]
|
|
2066
|
+
});
|
|
2067
|
+
return sdkResponse;
|
|
2068
|
+
}
|
|
2069
|
+
catch (err) {
|
|
2070
|
+
throw err;
|
|
2071
|
+
}
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* Delete Oracle DB Azure Connector Resource and delete Azure Arc Identity too from Database Resource.
|
|
2076
|
+
*
|
|
2077
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2078
|
+
* @param DeleteOracleDbAzureConnectorRequest
|
|
2079
|
+
* @return DeleteOracleDbAzureConnectorResponse
|
|
2080
|
+
* @throws OciError when an error occurs
|
|
2081
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/DeleteOracleDbAzureConnector.ts.html |here} to see how to use DeleteOracleDbAzureConnector API.
|
|
2082
|
+
*/
|
|
2083
|
+
deleteOracleDbAzureConnector(deleteOracleDbAzureConnectorRequest) {
|
|
2084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2085
|
+
if (this.logger)
|
|
2086
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#deleteOracleDbAzureConnector.");
|
|
2087
|
+
const operationName = "deleteOracleDbAzureConnector";
|
|
2088
|
+
const apiReferenceLink = "";
|
|
2089
|
+
const pathParams = {
|
|
2090
|
+
"{oracleDbAzureConnectorId}": deleteOracleDbAzureConnectorRequest.oracleDbAzureConnectorId
|
|
2091
|
+
};
|
|
2092
|
+
const queryParams = {};
|
|
2093
|
+
let headerParams = {
|
|
2094
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2095
|
+
"if-match": deleteOracleDbAzureConnectorRequest.ifMatch,
|
|
2096
|
+
"opc-request-id": deleteOracleDbAzureConnectorRequest.opcRequestId
|
|
2097
|
+
};
|
|
2098
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2099
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOracleDbAzureConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
2100
|
+
if (this.logger)
|
|
2101
|
+
retrier.logger = this.logger;
|
|
2102
|
+
const request = yield oci_common_1.composeRequest({
|
|
2103
|
+
baseEndpoint: this._endpoint,
|
|
2104
|
+
defaultHeaders: this._defaultHeaders,
|
|
2105
|
+
path: "/oracleDbAzureConnector/{oracleDbAzureConnectorId}",
|
|
2106
|
+
method: "DELETE",
|
|
2107
|
+
pathParams: pathParams,
|
|
2108
|
+
headerParams: headerParams,
|
|
2109
|
+
queryParams: queryParams
|
|
2110
|
+
});
|
|
2111
|
+
try {
|
|
2112
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2113
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2114
|
+
responseObject: {},
|
|
2115
|
+
responseHeaders: [
|
|
2116
|
+
{
|
|
2117
|
+
value: response.headers.get("opc-request-id"),
|
|
2118
|
+
key: "opcRequestId",
|
|
2119
|
+
dataType: "string"
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2123
|
+
key: "opcWorkRequestId",
|
|
2124
|
+
dataType: "string"
|
|
2125
|
+
}
|
|
2126
|
+
]
|
|
2127
|
+
});
|
|
2128
|
+
return sdkResponse;
|
|
2129
|
+
}
|
|
2130
|
+
catch (err) {
|
|
2131
|
+
throw err;
|
|
2132
|
+
}
|
|
2133
|
+
});
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* Get Oracle DB Azure Connector Resource form a particular Resource ID.
|
|
2137
|
+
*
|
|
2138
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2139
|
+
* @param GetOracleDbAzureConnectorRequest
|
|
2140
|
+
* @return GetOracleDbAzureConnectorResponse
|
|
2141
|
+
* @throws OciError when an error occurs
|
|
2142
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetOracleDbAzureConnector.ts.html |here} to see how to use GetOracleDbAzureConnector API.
|
|
2143
|
+
*/
|
|
2144
|
+
getOracleDbAzureConnector(getOracleDbAzureConnectorRequest) {
|
|
2145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2146
|
+
if (this.logger)
|
|
2147
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#getOracleDbAzureConnector.");
|
|
2148
|
+
const operationName = "getOracleDbAzureConnector";
|
|
2149
|
+
const apiReferenceLink = "";
|
|
2150
|
+
const pathParams = {
|
|
2151
|
+
"{oracleDbAzureConnectorId}": getOracleDbAzureConnectorRequest.oracleDbAzureConnectorId
|
|
2152
|
+
};
|
|
2153
|
+
const queryParams = {
|
|
2154
|
+
"limit": getOracleDbAzureConnectorRequest.limit,
|
|
2155
|
+
"page": getOracleDbAzureConnectorRequest.page,
|
|
2156
|
+
"sortOrder": getOracleDbAzureConnectorRequest.sortOrder
|
|
2157
|
+
};
|
|
2158
|
+
let headerParams = {
|
|
2159
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2160
|
+
"opc-request-id": getOracleDbAzureConnectorRequest.opcRequestId
|
|
2161
|
+
};
|
|
2162
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2163
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOracleDbAzureConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
2164
|
+
if (this.logger)
|
|
2165
|
+
retrier.logger = this.logger;
|
|
2166
|
+
const request = yield oci_common_1.composeRequest({
|
|
2167
|
+
baseEndpoint: this._endpoint,
|
|
2168
|
+
defaultHeaders: this._defaultHeaders,
|
|
2169
|
+
path: "/oracleDbAzureConnector/{oracleDbAzureConnectorId}",
|
|
2170
|
+
method: "GET",
|
|
2171
|
+
pathParams: pathParams,
|
|
2172
|
+
headerParams: headerParams,
|
|
2173
|
+
queryParams: queryParams
|
|
2174
|
+
});
|
|
2175
|
+
try {
|
|
2176
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2177
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2178
|
+
responseObject: {},
|
|
2179
|
+
body: yield response.json(),
|
|
2180
|
+
bodyKey: "oracleDbAzureConnector",
|
|
2181
|
+
bodyModel: model.OracleDbAzureConnector,
|
|
2182
|
+
type: "model.OracleDbAzureConnector",
|
|
2183
|
+
responseHeaders: [
|
|
2184
|
+
{
|
|
2185
|
+
value: response.headers.get("etag"),
|
|
2186
|
+
key: "etag",
|
|
2187
|
+
dataType: "string"
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
value: response.headers.get("opc-request-id"),
|
|
2191
|
+
key: "opcRequestId",
|
|
2192
|
+
dataType: "string"
|
|
2193
|
+
}
|
|
2194
|
+
]
|
|
2195
|
+
});
|
|
2196
|
+
return sdkResponse;
|
|
2197
|
+
}
|
|
2198
|
+
catch (err) {
|
|
2199
|
+
throw err;
|
|
2200
|
+
}
|
|
2201
|
+
});
|
|
2202
|
+
}
|
|
2203
|
+
/**
|
|
2204
|
+
* Lists the all Oracle DB Azure Connector Resource based on filters.
|
|
2205
|
+
*
|
|
2206
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2207
|
+
* @param ListOracleDbAzureConnectorsRequest
|
|
2208
|
+
* @return ListOracleDbAzureConnectorsResponse
|
|
2209
|
+
* @throws OciError when an error occurs
|
|
2210
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListOracleDbAzureConnectors.ts.html |here} to see how to use ListOracleDbAzureConnectors API.
|
|
2211
|
+
*/
|
|
2212
|
+
listOracleDbAzureConnectors(listOracleDbAzureConnectorsRequest) {
|
|
2213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2214
|
+
if (this.logger)
|
|
2215
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#listOracleDbAzureConnectors.");
|
|
2216
|
+
const operationName = "listOracleDbAzureConnectors";
|
|
2217
|
+
const apiReferenceLink = "";
|
|
2218
|
+
const pathParams = {};
|
|
2219
|
+
const queryParams = {
|
|
2220
|
+
"compartmentId": listOracleDbAzureConnectorsRequest.compartmentId,
|
|
2221
|
+
"displayName": listOracleDbAzureConnectorsRequest.displayName,
|
|
2222
|
+
"oracleDbAzureConnectorId": listOracleDbAzureConnectorsRequest.oracleDbAzureConnectorId,
|
|
2223
|
+
"lifecycleState": listOracleDbAzureConnectorsRequest.lifecycleState,
|
|
2224
|
+
"dbClusterResourceId": listOracleDbAzureConnectorsRequest.dbClusterResourceId,
|
|
2225
|
+
"limit": listOracleDbAzureConnectorsRequest.limit,
|
|
2226
|
+
"page": listOracleDbAzureConnectorsRequest.page,
|
|
2227
|
+
"sortOrder": listOracleDbAzureConnectorsRequest.sortOrder,
|
|
2228
|
+
"sortBy": listOracleDbAzureConnectorsRequest.sortBy
|
|
2229
|
+
};
|
|
2230
|
+
let headerParams = {
|
|
2231
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2232
|
+
"opc-request-id": listOracleDbAzureConnectorsRequest.opcRequestId
|
|
2233
|
+
};
|
|
2234
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2235
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOracleDbAzureConnectorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2236
|
+
if (this.logger)
|
|
2237
|
+
retrier.logger = this.logger;
|
|
2238
|
+
const request = yield oci_common_1.composeRequest({
|
|
2239
|
+
baseEndpoint: this._endpoint,
|
|
2240
|
+
defaultHeaders: this._defaultHeaders,
|
|
2241
|
+
path: "/oracleDbAzureConnector",
|
|
2242
|
+
method: "GET",
|
|
2243
|
+
pathParams: pathParams,
|
|
2244
|
+
headerParams: headerParams,
|
|
2245
|
+
queryParams: queryParams
|
|
2246
|
+
});
|
|
2247
|
+
try {
|
|
2248
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2249
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2250
|
+
responseObject: {},
|
|
2251
|
+
body: yield response.json(),
|
|
2252
|
+
bodyKey: "oracleDbAzureConnectorSummaryCollection",
|
|
2253
|
+
bodyModel: model.OracleDbAzureConnectorSummaryCollection,
|
|
2254
|
+
type: "model.OracleDbAzureConnectorSummaryCollection",
|
|
2255
|
+
responseHeaders: [
|
|
2256
|
+
{
|
|
2257
|
+
value: response.headers.get("opc-request-id"),
|
|
2258
|
+
key: "opcRequestId",
|
|
2259
|
+
dataType: "string"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
value: response.headers.get("opc-next-page"),
|
|
2263
|
+
key: "opcNextPage",
|
|
2264
|
+
dataType: "string"
|
|
2265
|
+
}
|
|
2266
|
+
]
|
|
2267
|
+
});
|
|
2268
|
+
return sdkResponse;
|
|
2269
|
+
}
|
|
2270
|
+
catch (err) {
|
|
2271
|
+
throw err;
|
|
2272
|
+
}
|
|
2273
|
+
});
|
|
2274
|
+
}
|
|
2275
|
+
/**
|
|
2276
|
+
* Patch Azure Arc Agent on VM Cluster with new version.
|
|
2277
|
+
*
|
|
2278
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2279
|
+
* @param PatchOracleDbAzureConnectorRequest
|
|
2280
|
+
* @return PatchOracleDbAzureConnectorResponse
|
|
2281
|
+
* @throws OciError when an error occurs
|
|
2282
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/PatchOracleDbAzureConnector.ts.html |here} to see how to use PatchOracleDbAzureConnector API.
|
|
2283
|
+
*/
|
|
2284
|
+
patchOracleDbAzureConnector(patchOracleDbAzureConnectorRequest) {
|
|
2285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2286
|
+
if (this.logger)
|
|
2287
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#patchOracleDbAzureConnector.");
|
|
2288
|
+
const operationName = "patchOracleDbAzureConnector";
|
|
2289
|
+
const apiReferenceLink = "";
|
|
2290
|
+
const pathParams = {
|
|
2291
|
+
"{oracleDbAzureConnectorId}": patchOracleDbAzureConnectorRequest.oracleDbAzureConnectorId
|
|
2292
|
+
};
|
|
2293
|
+
const queryParams = {};
|
|
2294
|
+
let headerParams = {
|
|
2295
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2296
|
+
"if-match": patchOracleDbAzureConnectorRequest.ifMatch,
|
|
2297
|
+
"opc-request-id": patchOracleDbAzureConnectorRequest.opcRequestId
|
|
2298
|
+
};
|
|
2299
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2300
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchOracleDbAzureConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
2301
|
+
if (this.logger)
|
|
2302
|
+
retrier.logger = this.logger;
|
|
2303
|
+
const request = yield oci_common_1.composeRequest({
|
|
2304
|
+
baseEndpoint: this._endpoint,
|
|
2305
|
+
defaultHeaders: this._defaultHeaders,
|
|
2306
|
+
path: "/oracleDbAzureConnector/{oracleDbAzureConnectorId}",
|
|
2307
|
+
method: "PATCH",
|
|
2308
|
+
bodyContent: common.ObjectSerializer.serialize(patchOracleDbAzureConnectorRequest.patchOracleDbAzureConnectorDetails, "PatchOracleDbAzureConnectorDetails", model.PatchOracleDbAzureConnectorDetails.getJsonObj),
|
|
2309
|
+
pathParams: pathParams,
|
|
2310
|
+
headerParams: headerParams,
|
|
2311
|
+
queryParams: queryParams
|
|
2312
|
+
});
|
|
2313
|
+
try {
|
|
2314
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2315
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2316
|
+
responseObject: {},
|
|
2317
|
+
responseHeaders: [
|
|
2318
|
+
{
|
|
2319
|
+
value: response.headers.get("opc-request-id"),
|
|
2320
|
+
key: "opcRequestId",
|
|
2321
|
+
dataType: "string"
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2325
|
+
key: "opcWorkRequestId",
|
|
2326
|
+
dataType: "string"
|
|
2327
|
+
}
|
|
2328
|
+
]
|
|
2329
|
+
});
|
|
2330
|
+
return sdkResponse;
|
|
2331
|
+
}
|
|
2332
|
+
catch (err) {
|
|
2333
|
+
throw err;
|
|
2334
|
+
}
|
|
2335
|
+
});
|
|
2336
|
+
}
|
|
2337
|
+
/**
|
|
2338
|
+
* Modifies the existing Oracle DB Azure Connector Resource for a given ID.
|
|
2339
|
+
*
|
|
2340
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2341
|
+
* @param UpdateOracleDbAzureConnectorRequest
|
|
2342
|
+
* @return UpdateOracleDbAzureConnectorResponse
|
|
2343
|
+
* @throws OciError when an error occurs
|
|
2344
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/UpdateOracleDbAzureConnector.ts.html |here} to see how to use UpdateOracleDbAzureConnector API.
|
|
2345
|
+
*/
|
|
2346
|
+
updateOracleDbAzureConnector(updateOracleDbAzureConnectorRequest) {
|
|
2347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2348
|
+
if (this.logger)
|
|
2349
|
+
this.logger.debug("Calling operation OracleDBAzureConnectorClient#updateOracleDbAzureConnector.");
|
|
2350
|
+
const operationName = "updateOracleDbAzureConnector";
|
|
2351
|
+
const apiReferenceLink = "";
|
|
2352
|
+
const pathParams = {
|
|
2353
|
+
"{oracleDbAzureConnectorId}": updateOracleDbAzureConnectorRequest.oracleDbAzureConnectorId
|
|
2354
|
+
};
|
|
2355
|
+
const queryParams = {};
|
|
2356
|
+
let headerParams = {
|
|
2357
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2358
|
+
"if-match": updateOracleDbAzureConnectorRequest.ifMatch,
|
|
2359
|
+
"opc-request-id": updateOracleDbAzureConnectorRequest.opcRequestId
|
|
2360
|
+
};
|
|
2361
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2362
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOracleDbAzureConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
2363
|
+
if (this.logger)
|
|
2364
|
+
retrier.logger = this.logger;
|
|
2365
|
+
const request = yield oci_common_1.composeRequest({
|
|
2366
|
+
baseEndpoint: this._endpoint,
|
|
2367
|
+
defaultHeaders: this._defaultHeaders,
|
|
2368
|
+
path: "/oracleDbAzureConnector/{oracleDbAzureConnectorId}",
|
|
2369
|
+
method: "PUT",
|
|
2370
|
+
bodyContent: common.ObjectSerializer.serialize(updateOracleDbAzureConnectorRequest.updateOracleDbAzureConnectorDetails, "UpdateOracleDbAzureConnectorDetails", model.UpdateOracleDbAzureConnectorDetails.getJsonObj),
|
|
2371
|
+
pathParams: pathParams,
|
|
2372
|
+
headerParams: headerParams,
|
|
2373
|
+
queryParams: queryParams
|
|
2374
|
+
});
|
|
2375
|
+
try {
|
|
2376
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2377
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2378
|
+
responseObject: {},
|
|
2379
|
+
responseHeaders: [
|
|
2380
|
+
{
|
|
2381
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2382
|
+
key: "opcWorkRequestId",
|
|
2383
|
+
dataType: "string"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
value: response.headers.get("opc-request-id"),
|
|
2387
|
+
key: "opcRequestId",
|
|
2388
|
+
dataType: "string"
|
|
2389
|
+
}
|
|
2390
|
+
]
|
|
2391
|
+
});
|
|
2392
|
+
return sdkResponse;
|
|
2393
|
+
}
|
|
2394
|
+
catch (err) {
|
|
2395
|
+
throw err;
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
exports.OracleDBAzureConnectorClient = OracleDBAzureConnectorClient;
|
|
2401
|
+
OracleDBAzureConnectorClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
2402
|
+
OracleDBAzureConnectorClient.endpointServiceName = "";
|
|
2403
|
+
var OracleDbAzureKeyApiKeys;
|
|
2404
|
+
(function (OracleDbAzureKeyApiKeys) {
|
|
2405
|
+
})(OracleDbAzureKeyApiKeys = exports.OracleDbAzureKeyApiKeys || (exports.OracleDbAzureKeyApiKeys = {}));
|
|
2406
|
+
/**
|
|
2407
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2408
|
+
*/
|
|
2409
|
+
class OracleDbAzureKeyClient {
|
|
2410
|
+
constructor(params, clientConfiguration) {
|
|
2411
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
2412
|
+
this["_endpoint"] = "";
|
|
2413
|
+
this["_defaultHeaders"] = {};
|
|
2414
|
+
this._circuitBreaker = null;
|
|
2415
|
+
this._httpOptions = undefined;
|
|
2416
|
+
this._bodyDuplexMode = undefined;
|
|
2417
|
+
this.targetService = "OracleDbAzureKey";
|
|
2418
|
+
this._regionId = "";
|
|
2419
|
+
this._lastSetRegionOrRegionId = "";
|
|
2420
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
2421
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2422
|
+
: null;
|
|
2423
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
2424
|
+
if (clientConfiguration) {
|
|
2425
|
+
this._clientConfiguration = clientConfiguration;
|
|
2426
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2427
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
2428
|
+
: null;
|
|
2429
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2430
|
+
? clientConfiguration.httpOptions
|
|
2431
|
+
: undefined;
|
|
2432
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
2433
|
+
? clientConfiguration.bodyDuplexMode
|
|
2434
|
+
: undefined;
|
|
2435
|
+
}
|
|
2436
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
2437
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
2438
|
+
throw errmsg.concat("dbmulticloud");
|
|
2439
|
+
}
|
|
2440
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2441
|
+
const specCircuitBreakerEnabled = true;
|
|
2442
|
+
if (!this._circuitBreaker &&
|
|
2443
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2444
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2445
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2446
|
+
}
|
|
2447
|
+
this._httpClient =
|
|
2448
|
+
params.httpClient ||
|
|
2449
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
2450
|
+
if (params.authenticationDetailsProvider &&
|
|
2451
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2452
|
+
const provider = params.authenticationDetailsProvider;
|
|
2453
|
+
if (provider.getRegion()) {
|
|
2454
|
+
this.region = provider.getRegion();
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
/**
|
|
2459
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2460
|
+
*/
|
|
2461
|
+
get endpoint() {
|
|
2462
|
+
return this._endpoint;
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2466
|
+
* @param endpoint The endpoint of the service.
|
|
2467
|
+
*/
|
|
2468
|
+
set endpoint(endpoint) {
|
|
2469
|
+
this._endpoint = endpoint;
|
|
2470
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
2471
|
+
if (this.logger)
|
|
2472
|
+
this.logger.info(`OracleDbAzureKeyClient endpoint set to ${this._endpoint}`);
|
|
2473
|
+
}
|
|
2474
|
+
get logger() {
|
|
2475
|
+
return common.LOG.logger;
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2479
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2480
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2481
|
+
*/
|
|
2482
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2483
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2484
|
+
if (this.logger)
|
|
2485
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2486
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2487
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDbAzureKeyClient.serviceEndpointTemplate, this._region, OracleDbAzureKeyClient.endpointServiceName);
|
|
2488
|
+
}
|
|
2489
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2490
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDbAzureKeyClient.serviceEndpointTemplate, this._regionId, OracleDbAzureKeyClient.endpointServiceName);
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2495
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2496
|
+
* @param region The region of the service.
|
|
2497
|
+
*/
|
|
2498
|
+
set region(region) {
|
|
2499
|
+
this._region = region;
|
|
2500
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDbAzureKeyClient.serviceEndpointTemplate, region, OracleDbAzureKeyClient.endpointServiceName);
|
|
2501
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2502
|
+
}
|
|
2503
|
+
/**
|
|
2504
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
2505
|
+
*
|
|
2506
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
2507
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
2508
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
2509
|
+
* @param regionId The public region ID.
|
|
2510
|
+
*/
|
|
2511
|
+
set regionId(regionId) {
|
|
2512
|
+
this._regionId = regionId;
|
|
2513
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDbAzureKeyClient.serviceEndpointTemplate, regionId, OracleDbAzureKeyClient.endpointServiceName);
|
|
2514
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2515
|
+
}
|
|
2516
|
+
/**
|
|
2517
|
+
* Creates a new OracleDbAzureKeyWaiter for resources for this service.
|
|
2518
|
+
*
|
|
2519
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
2520
|
+
* @return The service waiters.
|
|
2521
|
+
*/
|
|
2522
|
+
createWaiters(config) {
|
|
2523
|
+
this._waiters = new oracledbazurekey_waiter_1.OracleDbAzureKeyWaiter(this, config);
|
|
2524
|
+
return this._waiters;
|
|
2525
|
+
}
|
|
2526
|
+
/**
|
|
2527
|
+
* Gets the waiters available for resources for this service.
|
|
2528
|
+
*
|
|
2529
|
+
* @return The service waiters.
|
|
2530
|
+
*/
|
|
2531
|
+
getWaiters() {
|
|
2532
|
+
if (this._waiters) {
|
|
2533
|
+
return this._waiters;
|
|
2534
|
+
}
|
|
2535
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
2536
|
+
}
|
|
2537
|
+
/**
|
|
2538
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
2539
|
+
*/
|
|
2540
|
+
shutdownCircuitBreaker() {
|
|
2541
|
+
if (this._circuitBreaker) {
|
|
2542
|
+
this._circuitBreaker.shutdown();
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
2547
|
+
*/
|
|
2548
|
+
closeProvider() {
|
|
2549
|
+
if (this._authProvider) {
|
|
2550
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
2551
|
+
(this._authProvider).closeProvider();
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* Close the client once it is no longer needed
|
|
2556
|
+
*/
|
|
2557
|
+
close() {
|
|
2558
|
+
this.shutdownCircuitBreaker();
|
|
2559
|
+
this.closeProvider();
|
|
2560
|
+
}
|
|
2561
|
+
/**
|
|
2562
|
+
* Get Oracle DB Azure Key Details form a particular Container Resource ID.
|
|
2563
|
+
*
|
|
2564
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2565
|
+
* @param GetOracleDbAzureKeyRequest
|
|
2566
|
+
* @return GetOracleDbAzureKeyResponse
|
|
2567
|
+
* @throws OciError when an error occurs
|
|
2568
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetOracleDbAzureKey.ts.html |here} to see how to use GetOracleDbAzureKey API.
|
|
2569
|
+
*/
|
|
2570
|
+
getOracleDbAzureKey(getOracleDbAzureKeyRequest) {
|
|
2571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2572
|
+
if (this.logger)
|
|
2573
|
+
this.logger.debug("Calling operation OracleDbAzureKeyClient#getOracleDbAzureKey.");
|
|
2574
|
+
const operationName = "getOracleDbAzureKey";
|
|
2575
|
+
const apiReferenceLink = "";
|
|
2576
|
+
const pathParams = {
|
|
2577
|
+
"{oracleDbAzureKeyId}": getOracleDbAzureKeyRequest.oracleDbAzureKeyId
|
|
2578
|
+
};
|
|
2579
|
+
const queryParams = {
|
|
2580
|
+
"limit": getOracleDbAzureKeyRequest.limit,
|
|
2581
|
+
"page": getOracleDbAzureKeyRequest.page,
|
|
2582
|
+
"sortOrder": getOracleDbAzureKeyRequest.sortOrder
|
|
2583
|
+
};
|
|
2584
|
+
let headerParams = {
|
|
2585
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2586
|
+
"opc-request-id": getOracleDbAzureKeyRequest.opcRequestId
|
|
2587
|
+
};
|
|
2588
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2589
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOracleDbAzureKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2590
|
+
if (this.logger)
|
|
2591
|
+
retrier.logger = this.logger;
|
|
2592
|
+
const request = yield oci_common_1.composeRequest({
|
|
2593
|
+
baseEndpoint: this._endpoint,
|
|
2594
|
+
defaultHeaders: this._defaultHeaders,
|
|
2595
|
+
path: "/oracleDbAzureKey/{oracleDbAzureKeyId}",
|
|
2596
|
+
method: "GET",
|
|
2597
|
+
pathParams: pathParams,
|
|
2598
|
+
headerParams: headerParams,
|
|
2599
|
+
queryParams: queryParams
|
|
2600
|
+
});
|
|
2601
|
+
try {
|
|
2602
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2603
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2604
|
+
responseObject: {},
|
|
2605
|
+
body: yield response.json(),
|
|
2606
|
+
bodyKey: "oracleDbAzureKey",
|
|
2607
|
+
bodyModel: model.OracleDbAzureKey,
|
|
2608
|
+
type: "model.OracleDbAzureKey",
|
|
2609
|
+
responseHeaders: [
|
|
2610
|
+
{
|
|
2611
|
+
value: response.headers.get("etag"),
|
|
2612
|
+
key: "etag",
|
|
2613
|
+
dataType: "string"
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
value: response.headers.get("opc-request-id"),
|
|
2617
|
+
key: "opcRequestId",
|
|
2618
|
+
dataType: "string"
|
|
2619
|
+
}
|
|
2620
|
+
]
|
|
2621
|
+
});
|
|
2622
|
+
return sdkResponse;
|
|
2623
|
+
}
|
|
2624
|
+
catch (err) {
|
|
2625
|
+
throw err;
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Lists the all Oracle DB Azure Keys based on filters.
|
|
2631
|
+
*
|
|
2632
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2633
|
+
* @param ListOracleDbAzureKeysRequest
|
|
2634
|
+
* @return ListOracleDbAzureKeysResponse
|
|
2635
|
+
* @throws OciError when an error occurs
|
|
2636
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListOracleDbAzureKeys.ts.html |here} to see how to use ListOracleDbAzureKeys API.
|
|
2637
|
+
*/
|
|
2638
|
+
listOracleDbAzureKeys(listOracleDbAzureKeysRequest) {
|
|
2639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2640
|
+
if (this.logger)
|
|
2641
|
+
this.logger.debug("Calling operation OracleDbAzureKeyClient#listOracleDbAzureKeys.");
|
|
2642
|
+
const operationName = "listOracleDbAzureKeys";
|
|
2643
|
+
const apiReferenceLink = "";
|
|
2644
|
+
const pathParams = {};
|
|
2645
|
+
const queryParams = {
|
|
2646
|
+
"compartmentId": listOracleDbAzureKeysRequest.compartmentId,
|
|
2647
|
+
"displayName": listOracleDbAzureKeysRequest.displayName,
|
|
2648
|
+
"oracleDbAzureVaultId": listOracleDbAzureKeysRequest.oracleDbAzureVaultId,
|
|
2649
|
+
"oracleDbAzureKeyId": listOracleDbAzureKeysRequest.oracleDbAzureKeyId,
|
|
2650
|
+
"lifecycleState": listOracleDbAzureKeysRequest.lifecycleState,
|
|
2651
|
+
"limit": listOracleDbAzureKeysRequest.limit,
|
|
2652
|
+
"page": listOracleDbAzureKeysRequest.page,
|
|
2653
|
+
"sortOrder": listOracleDbAzureKeysRequest.sortOrder,
|
|
2654
|
+
"sortBy": listOracleDbAzureKeysRequest.sortBy
|
|
2655
|
+
};
|
|
2656
|
+
let headerParams = {
|
|
2657
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2658
|
+
"opc-request-id": listOracleDbAzureKeysRequest.opcRequestId
|
|
2659
|
+
};
|
|
2660
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2661
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOracleDbAzureKeysRequest.retryConfiguration, specRetryConfiguration);
|
|
2662
|
+
if (this.logger)
|
|
2663
|
+
retrier.logger = this.logger;
|
|
2664
|
+
const request = yield oci_common_1.composeRequest({
|
|
2665
|
+
baseEndpoint: this._endpoint,
|
|
2666
|
+
defaultHeaders: this._defaultHeaders,
|
|
2667
|
+
path: "/oracleDbAzureKey",
|
|
2668
|
+
method: "GET",
|
|
2669
|
+
pathParams: pathParams,
|
|
2670
|
+
headerParams: headerParams,
|
|
2671
|
+
queryParams: queryParams
|
|
2672
|
+
});
|
|
2673
|
+
try {
|
|
2674
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2675
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2676
|
+
responseObject: {},
|
|
2677
|
+
body: yield response.json(),
|
|
2678
|
+
bodyKey: "oracleDbAzureKeySummaryCollection",
|
|
2679
|
+
bodyModel: model.OracleDbAzureKeySummaryCollection,
|
|
2680
|
+
type: "model.OracleDbAzureKeySummaryCollection",
|
|
2681
|
+
responseHeaders: [
|
|
2682
|
+
{
|
|
2683
|
+
value: response.headers.get("opc-request-id"),
|
|
2684
|
+
key: "opcRequestId",
|
|
2685
|
+
dataType: "string"
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
value: response.headers.get("opc-next-page"),
|
|
2689
|
+
key: "opcNextPage",
|
|
2690
|
+
dataType: "string"
|
|
2691
|
+
}
|
|
2692
|
+
]
|
|
2693
|
+
});
|
|
2694
|
+
return sdkResponse;
|
|
2695
|
+
}
|
|
2696
|
+
catch (err) {
|
|
2697
|
+
throw err;
|
|
2698
|
+
}
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
exports.OracleDbAzureKeyClient = OracleDbAzureKeyClient;
|
|
2703
|
+
OracleDbAzureKeyClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
2704
|
+
OracleDbAzureKeyClient.endpointServiceName = "";
|
|
2705
|
+
var OracleDbAzureVaultApiKeys;
|
|
2706
|
+
(function (OracleDbAzureVaultApiKeys) {
|
|
2707
|
+
})(OracleDbAzureVaultApiKeys = exports.OracleDbAzureVaultApiKeys || (exports.OracleDbAzureVaultApiKeys = {}));
|
|
2708
|
+
/**
|
|
2709
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2710
|
+
*/
|
|
2711
|
+
class OracleDbAzureVaultClient {
|
|
2712
|
+
constructor(params, clientConfiguration) {
|
|
2713
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
2714
|
+
this["_endpoint"] = "";
|
|
2715
|
+
this["_defaultHeaders"] = {};
|
|
2716
|
+
this._circuitBreaker = null;
|
|
2717
|
+
this._httpOptions = undefined;
|
|
2718
|
+
this._bodyDuplexMode = undefined;
|
|
2719
|
+
this.targetService = "OracleDbAzureVault";
|
|
2720
|
+
this._regionId = "";
|
|
2721
|
+
this._lastSetRegionOrRegionId = "";
|
|
2722
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
2723
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2724
|
+
: null;
|
|
2725
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
2726
|
+
if (clientConfiguration) {
|
|
2727
|
+
this._clientConfiguration = clientConfiguration;
|
|
2728
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2729
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
2730
|
+
: null;
|
|
2731
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2732
|
+
? clientConfiguration.httpOptions
|
|
2733
|
+
: undefined;
|
|
2734
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
2735
|
+
? clientConfiguration.bodyDuplexMode
|
|
2736
|
+
: undefined;
|
|
2737
|
+
}
|
|
2738
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
2739
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
2740
|
+
throw errmsg.concat("dbmulticloud");
|
|
2741
|
+
}
|
|
2742
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2743
|
+
const specCircuitBreakerEnabled = true;
|
|
2744
|
+
if (!this._circuitBreaker &&
|
|
2745
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2746
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2747
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2748
|
+
}
|
|
2749
|
+
this._httpClient =
|
|
2750
|
+
params.httpClient ||
|
|
2751
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
2752
|
+
if (params.authenticationDetailsProvider &&
|
|
2753
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2754
|
+
const provider = params.authenticationDetailsProvider;
|
|
2755
|
+
if (provider.getRegion()) {
|
|
2756
|
+
this.region = provider.getRegion();
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
/**
|
|
2761
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2762
|
+
*/
|
|
2763
|
+
get endpoint() {
|
|
2764
|
+
return this._endpoint;
|
|
2765
|
+
}
|
|
2766
|
+
/**
|
|
2767
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2768
|
+
* @param endpoint The endpoint of the service.
|
|
2769
|
+
*/
|
|
2770
|
+
set endpoint(endpoint) {
|
|
2771
|
+
this._endpoint = endpoint;
|
|
2772
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
2773
|
+
if (this.logger)
|
|
2774
|
+
this.logger.info(`OracleDbAzureVaultClient endpoint set to ${this._endpoint}`);
|
|
2775
|
+
}
|
|
2776
|
+
get logger() {
|
|
2777
|
+
return common.LOG.logger;
|
|
2778
|
+
}
|
|
2779
|
+
/**
|
|
2780
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2781
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2782
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2783
|
+
*/
|
|
2784
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2785
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2786
|
+
if (this.logger)
|
|
2787
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2788
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2789
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDbAzureVaultClient.serviceEndpointTemplate, this._region, OracleDbAzureVaultClient.endpointServiceName);
|
|
2790
|
+
}
|
|
2791
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2792
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDbAzureVaultClient.serviceEndpointTemplate, this._regionId, OracleDbAzureVaultClient.endpointServiceName);
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
/**
|
|
2796
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2797
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2798
|
+
* @param region The region of the service.
|
|
2799
|
+
*/
|
|
2800
|
+
set region(region) {
|
|
2801
|
+
this._region = region;
|
|
2802
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDbAzureVaultClient.serviceEndpointTemplate, region, OracleDbAzureVaultClient.endpointServiceName);
|
|
2803
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2804
|
+
}
|
|
2805
|
+
/**
|
|
2806
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
2807
|
+
*
|
|
2808
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
2809
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
2810
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
2811
|
+
* @param regionId The public region ID.
|
|
2812
|
+
*/
|
|
2813
|
+
set regionId(regionId) {
|
|
2814
|
+
this._regionId = regionId;
|
|
2815
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDbAzureVaultClient.serviceEndpointTemplate, regionId, OracleDbAzureVaultClient.endpointServiceName);
|
|
2816
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* Creates a new OracleDbAzureVaultWaiter for resources for this service.
|
|
2820
|
+
*
|
|
2821
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
2822
|
+
* @return The service waiters.
|
|
2823
|
+
*/
|
|
2824
|
+
createWaiters(config) {
|
|
2825
|
+
this._waiters = new oracledbazurevault_waiter_1.OracleDbAzureVaultWaiter(this, config);
|
|
2826
|
+
return this._waiters;
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* Gets the waiters available for resources for this service.
|
|
2830
|
+
*
|
|
2831
|
+
* @return The service waiters.
|
|
2832
|
+
*/
|
|
2833
|
+
getWaiters() {
|
|
2834
|
+
if (this._waiters) {
|
|
2835
|
+
return this._waiters;
|
|
2836
|
+
}
|
|
2837
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
2841
|
+
*/
|
|
2842
|
+
shutdownCircuitBreaker() {
|
|
2843
|
+
if (this._circuitBreaker) {
|
|
2844
|
+
this._circuitBreaker.shutdown();
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
/**
|
|
2848
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
2849
|
+
*/
|
|
2850
|
+
closeProvider() {
|
|
2851
|
+
if (this._authProvider) {
|
|
2852
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
2853
|
+
(this._authProvider).closeProvider();
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
/**
|
|
2857
|
+
* Close the client once it is no longer needed
|
|
2858
|
+
*/
|
|
2859
|
+
close() {
|
|
2860
|
+
this.shutdownCircuitBreaker();
|
|
2861
|
+
this.closeProvider();
|
|
2862
|
+
}
|
|
2863
|
+
/**
|
|
2864
|
+
* Moves the DB Azure Vault resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
2865
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2866
|
+
* @param ChangeOracleDbAzureVaultCompartmentRequest
|
|
2867
|
+
* @return ChangeOracleDbAzureVaultCompartmentResponse
|
|
2868
|
+
* @throws OciError when an error occurs
|
|
2869
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ChangeOracleDbAzureVaultCompartment.ts.html |here} to see how to use ChangeOracleDbAzureVaultCompartment API.
|
|
2870
|
+
*/
|
|
2871
|
+
changeOracleDbAzureVaultCompartment(changeOracleDbAzureVaultCompartmentRequest) {
|
|
2872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2873
|
+
if (this.logger)
|
|
2874
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#changeOracleDbAzureVaultCompartment.");
|
|
2875
|
+
const operationName = "changeOracleDbAzureVaultCompartment";
|
|
2876
|
+
const apiReferenceLink = "";
|
|
2877
|
+
const pathParams = {
|
|
2878
|
+
"{oracleDbAzureVaultId}": changeOracleDbAzureVaultCompartmentRequest.oracleDbAzureVaultId
|
|
2879
|
+
};
|
|
2880
|
+
const queryParams = {};
|
|
2881
|
+
let headerParams = {
|
|
2882
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2883
|
+
"opc-retry-token": changeOracleDbAzureVaultCompartmentRequest.opcRetryToken,
|
|
2884
|
+
"if-match": changeOracleDbAzureVaultCompartmentRequest.ifMatch,
|
|
2885
|
+
"opc-request-id": changeOracleDbAzureVaultCompartmentRequest.opcRequestId
|
|
2886
|
+
};
|
|
2887
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2888
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOracleDbAzureVaultCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2889
|
+
if (this.logger)
|
|
2890
|
+
retrier.logger = this.logger;
|
|
2891
|
+
const request = yield oci_common_1.composeRequest({
|
|
2892
|
+
baseEndpoint: this._endpoint,
|
|
2893
|
+
defaultHeaders: this._defaultHeaders,
|
|
2894
|
+
path: "/oracleDbAzureVault/{oracleDbAzureVaultId}/actions/changeCompartment",
|
|
2895
|
+
method: "POST",
|
|
2896
|
+
bodyContent: common.ObjectSerializer.serialize(changeOracleDbAzureVaultCompartmentRequest.changeOracleDbAzureVaultCompartmentDetails, "ChangeOracleDbAzureVaultCompartmentDetails", model.ChangeOracleDbAzureVaultCompartmentDetails.getJsonObj),
|
|
2897
|
+
pathParams: pathParams,
|
|
2898
|
+
headerParams: headerParams,
|
|
2899
|
+
queryParams: queryParams
|
|
2900
|
+
});
|
|
2901
|
+
try {
|
|
2902
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2903
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2904
|
+
responseObject: {},
|
|
2905
|
+
responseHeaders: [
|
|
2906
|
+
{
|
|
2907
|
+
value: response.headers.get("opc-request-id"),
|
|
2908
|
+
key: "opcRequestId",
|
|
2909
|
+
dataType: "string"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2913
|
+
key: "opcWorkRequestId",
|
|
2914
|
+
dataType: "string"
|
|
2915
|
+
}
|
|
2916
|
+
]
|
|
2917
|
+
});
|
|
2918
|
+
return sdkResponse;
|
|
2919
|
+
}
|
|
2920
|
+
catch (err) {
|
|
2921
|
+
throw err;
|
|
2922
|
+
}
|
|
2923
|
+
});
|
|
2924
|
+
}
|
|
2925
|
+
/**
|
|
2926
|
+
* Create DB Azure Vaults based on the provided information, this will fetch Keys related to Azure Vaults.
|
|
2927
|
+
*
|
|
2928
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2929
|
+
* @param CreateOracleDbAzureVaultRequest
|
|
2930
|
+
* @return CreateOracleDbAzureVaultResponse
|
|
2931
|
+
* @throws OciError when an error occurs
|
|
2932
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CreateOracleDbAzureVault.ts.html |here} to see how to use CreateOracleDbAzureVault API.
|
|
2933
|
+
*/
|
|
2934
|
+
createOracleDbAzureVault(createOracleDbAzureVaultRequest) {
|
|
2935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2936
|
+
if (this.logger)
|
|
2937
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#createOracleDbAzureVault.");
|
|
2938
|
+
const operationName = "createOracleDbAzureVault";
|
|
2939
|
+
const apiReferenceLink = "";
|
|
2940
|
+
const pathParams = {};
|
|
2941
|
+
const queryParams = {};
|
|
2942
|
+
let headerParams = {
|
|
2943
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2944
|
+
"opc-retry-token": createOracleDbAzureVaultRequest.opcRetryToken,
|
|
2945
|
+
"if-match": createOracleDbAzureVaultRequest.ifMatch,
|
|
2946
|
+
"opc-request-id": createOracleDbAzureVaultRequest.opcRequestId
|
|
2947
|
+
};
|
|
2948
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2949
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOracleDbAzureVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
2950
|
+
if (this.logger)
|
|
2951
|
+
retrier.logger = this.logger;
|
|
2952
|
+
const request = yield oci_common_1.composeRequest({
|
|
2953
|
+
baseEndpoint: this._endpoint,
|
|
2954
|
+
defaultHeaders: this._defaultHeaders,
|
|
2955
|
+
path: "/oracleDbAzureVault",
|
|
2956
|
+
method: "POST",
|
|
2957
|
+
bodyContent: common.ObjectSerializer.serialize(createOracleDbAzureVaultRequest.createOracleDbAzureVaultDetails, "CreateOracleDbAzureVaultDetails", model.CreateOracleDbAzureVaultDetails.getJsonObj),
|
|
2958
|
+
pathParams: pathParams,
|
|
2959
|
+
headerParams: headerParams,
|
|
2960
|
+
queryParams: queryParams
|
|
2961
|
+
});
|
|
2962
|
+
try {
|
|
2963
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2964
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2965
|
+
responseObject: {},
|
|
2966
|
+
body: yield response.json(),
|
|
2967
|
+
bodyKey: "oracleDbAzureVault",
|
|
2968
|
+
bodyModel: model.OracleDbAzureVault,
|
|
2969
|
+
type: "model.OracleDbAzureVault",
|
|
2970
|
+
responseHeaders: [
|
|
2971
|
+
{
|
|
2972
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2973
|
+
key: "opcWorkRequestId",
|
|
2974
|
+
dataType: "string"
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
value: response.headers.get("opc-request-id"),
|
|
2978
|
+
key: "opcRequestId",
|
|
2979
|
+
dataType: "string"
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
value: response.headers.get("location"),
|
|
2983
|
+
key: "location",
|
|
2984
|
+
dataType: "string"
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
value: response.headers.get("content-location"),
|
|
2988
|
+
key: "contentLocation",
|
|
2989
|
+
dataType: "string"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
value: response.headers.get("etag"),
|
|
2993
|
+
key: "etag",
|
|
2994
|
+
dataType: "string"
|
|
2995
|
+
}
|
|
2996
|
+
]
|
|
2997
|
+
});
|
|
2998
|
+
return sdkResponse;
|
|
2999
|
+
}
|
|
3000
|
+
catch (err) {
|
|
3001
|
+
throw err;
|
|
3002
|
+
}
|
|
3003
|
+
});
|
|
3004
|
+
}
|
|
3005
|
+
/**
|
|
3006
|
+
* Delete DB Azure Vault details.
|
|
3007
|
+
*
|
|
3008
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3009
|
+
* @param DeleteOracleDbAzureVaultRequest
|
|
3010
|
+
* @return DeleteOracleDbAzureVaultResponse
|
|
3011
|
+
* @throws OciError when an error occurs
|
|
3012
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/DeleteOracleDbAzureVault.ts.html |here} to see how to use DeleteOracleDbAzureVault API.
|
|
3013
|
+
*/
|
|
3014
|
+
deleteOracleDbAzureVault(deleteOracleDbAzureVaultRequest) {
|
|
3015
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3016
|
+
if (this.logger)
|
|
3017
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#deleteOracleDbAzureVault.");
|
|
3018
|
+
const operationName = "deleteOracleDbAzureVault";
|
|
3019
|
+
const apiReferenceLink = "";
|
|
3020
|
+
const pathParams = {
|
|
3021
|
+
"{oracleDbAzureVaultId}": deleteOracleDbAzureVaultRequest.oracleDbAzureVaultId
|
|
3022
|
+
};
|
|
3023
|
+
const queryParams = {};
|
|
3024
|
+
let headerParams = {
|
|
3025
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3026
|
+
"if-match": deleteOracleDbAzureVaultRequest.ifMatch,
|
|
3027
|
+
"opc-request-id": deleteOracleDbAzureVaultRequest.opcRequestId
|
|
3028
|
+
};
|
|
3029
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3030
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOracleDbAzureVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3031
|
+
if (this.logger)
|
|
3032
|
+
retrier.logger = this.logger;
|
|
3033
|
+
const request = yield oci_common_1.composeRequest({
|
|
3034
|
+
baseEndpoint: this._endpoint,
|
|
3035
|
+
defaultHeaders: this._defaultHeaders,
|
|
3036
|
+
path: "/oracleDbAzureVault/{oracleDbAzureVaultId}",
|
|
3037
|
+
method: "DELETE",
|
|
3038
|
+
pathParams: pathParams,
|
|
3039
|
+
headerParams: headerParams,
|
|
3040
|
+
queryParams: queryParams
|
|
3041
|
+
});
|
|
3042
|
+
try {
|
|
3043
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3044
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3045
|
+
responseObject: {},
|
|
3046
|
+
responseHeaders: [
|
|
3047
|
+
{
|
|
3048
|
+
value: response.headers.get("opc-request-id"),
|
|
3049
|
+
key: "opcRequestId",
|
|
3050
|
+
dataType: "string"
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3054
|
+
key: "opcWorkRequestId",
|
|
3055
|
+
dataType: "string"
|
|
3056
|
+
}
|
|
3057
|
+
]
|
|
3058
|
+
});
|
|
3059
|
+
return sdkResponse;
|
|
3060
|
+
}
|
|
3061
|
+
catch (err) {
|
|
3062
|
+
throw err;
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3065
|
+
}
|
|
3066
|
+
/**
|
|
3067
|
+
* Get Oracle DB Azure Vault Details form a particular Container Resource ID.
|
|
3068
|
+
*
|
|
3069
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3070
|
+
* @param GetOracleDbAzureVaultRequest
|
|
3071
|
+
* @return GetOracleDbAzureVaultResponse
|
|
3072
|
+
* @throws OciError when an error occurs
|
|
3073
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetOracleDbAzureVault.ts.html |here} to see how to use GetOracleDbAzureVault API.
|
|
3074
|
+
*/
|
|
3075
|
+
getOracleDbAzureVault(getOracleDbAzureVaultRequest) {
|
|
3076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3077
|
+
if (this.logger)
|
|
3078
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#getOracleDbAzureVault.");
|
|
3079
|
+
const operationName = "getOracleDbAzureVault";
|
|
3080
|
+
const apiReferenceLink = "";
|
|
3081
|
+
const pathParams = {
|
|
3082
|
+
"{oracleDbAzureVaultId}": getOracleDbAzureVaultRequest.oracleDbAzureVaultId
|
|
3083
|
+
};
|
|
3084
|
+
const queryParams = {
|
|
3085
|
+
"limit": getOracleDbAzureVaultRequest.limit,
|
|
3086
|
+
"page": getOracleDbAzureVaultRequest.page,
|
|
3087
|
+
"sortOrder": getOracleDbAzureVaultRequest.sortOrder
|
|
3088
|
+
};
|
|
3089
|
+
let headerParams = {
|
|
3090
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3091
|
+
"opc-request-id": getOracleDbAzureVaultRequest.opcRequestId
|
|
3092
|
+
};
|
|
3093
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3094
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOracleDbAzureVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3095
|
+
if (this.logger)
|
|
3096
|
+
retrier.logger = this.logger;
|
|
3097
|
+
const request = yield oci_common_1.composeRequest({
|
|
3098
|
+
baseEndpoint: this._endpoint,
|
|
3099
|
+
defaultHeaders: this._defaultHeaders,
|
|
3100
|
+
path: "/oracleDbAzureVault/{oracleDbAzureVaultId}",
|
|
3101
|
+
method: "GET",
|
|
3102
|
+
pathParams: pathParams,
|
|
3103
|
+
headerParams: headerParams,
|
|
3104
|
+
queryParams: queryParams
|
|
3105
|
+
});
|
|
3106
|
+
try {
|
|
3107
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3108
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3109
|
+
responseObject: {},
|
|
3110
|
+
body: yield response.json(),
|
|
3111
|
+
bodyKey: "oracleDbAzureVault",
|
|
3112
|
+
bodyModel: model.OracleDbAzureVault,
|
|
3113
|
+
type: "model.OracleDbAzureVault",
|
|
3114
|
+
responseHeaders: [
|
|
3115
|
+
{
|
|
3116
|
+
value: response.headers.get("etag"),
|
|
3117
|
+
key: "etag",
|
|
3118
|
+
dataType: "string"
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
value: response.headers.get("opc-request-id"),
|
|
3122
|
+
key: "opcRequestId",
|
|
3123
|
+
dataType: "string"
|
|
3124
|
+
}
|
|
3125
|
+
]
|
|
3126
|
+
});
|
|
3127
|
+
return sdkResponse;
|
|
3128
|
+
}
|
|
3129
|
+
catch (err) {
|
|
3130
|
+
throw err;
|
|
3131
|
+
}
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
/**
|
|
3135
|
+
* Lists the all DB Azure Vaults based on filters.
|
|
3136
|
+
*
|
|
3137
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3138
|
+
* @param ListOracleDbAzureVaultsRequest
|
|
3139
|
+
* @return ListOracleDbAzureVaultsResponse
|
|
3140
|
+
* @throws OciError when an error occurs
|
|
3141
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListOracleDbAzureVaults.ts.html |here} to see how to use ListOracleDbAzureVaults API.
|
|
3142
|
+
*/
|
|
3143
|
+
listOracleDbAzureVaults(listOracleDbAzureVaultsRequest) {
|
|
3144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3145
|
+
if (this.logger)
|
|
3146
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#listOracleDbAzureVaults.");
|
|
3147
|
+
const operationName = "listOracleDbAzureVaults";
|
|
3148
|
+
const apiReferenceLink = "";
|
|
3149
|
+
const pathParams = {};
|
|
3150
|
+
const queryParams = {
|
|
3151
|
+
"compartmentId": listOracleDbAzureVaultsRequest.compartmentId,
|
|
3152
|
+
"displayName": listOracleDbAzureVaultsRequest.displayName,
|
|
3153
|
+
"oracleDbAzureVaultId": listOracleDbAzureVaultsRequest.oracleDbAzureVaultId,
|
|
3154
|
+
"lifecycleState": listOracleDbAzureVaultsRequest.lifecycleState,
|
|
3155
|
+
"oracleDbAzureResourceGroup": listOracleDbAzureVaultsRequest.oracleDbAzureResourceGroup,
|
|
3156
|
+
"oracleDbAzureConnectorId": listOracleDbAzureVaultsRequest.oracleDbAzureConnectorId,
|
|
3157
|
+
"limit": listOracleDbAzureVaultsRequest.limit,
|
|
3158
|
+
"page": listOracleDbAzureVaultsRequest.page,
|
|
3159
|
+
"sortOrder": listOracleDbAzureVaultsRequest.sortOrder,
|
|
3160
|
+
"sortBy": listOracleDbAzureVaultsRequest.sortBy
|
|
3161
|
+
};
|
|
3162
|
+
let headerParams = {
|
|
3163
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3164
|
+
"opc-request-id": listOracleDbAzureVaultsRequest.opcRequestId
|
|
3165
|
+
};
|
|
3166
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3167
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOracleDbAzureVaultsRequest.retryConfiguration, specRetryConfiguration);
|
|
3168
|
+
if (this.logger)
|
|
3169
|
+
retrier.logger = this.logger;
|
|
3170
|
+
const request = yield oci_common_1.composeRequest({
|
|
3171
|
+
baseEndpoint: this._endpoint,
|
|
3172
|
+
defaultHeaders: this._defaultHeaders,
|
|
3173
|
+
path: "/oracleDbAzureVault",
|
|
3174
|
+
method: "GET",
|
|
3175
|
+
pathParams: pathParams,
|
|
3176
|
+
headerParams: headerParams,
|
|
3177
|
+
queryParams: queryParams
|
|
3178
|
+
});
|
|
3179
|
+
try {
|
|
3180
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3181
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3182
|
+
responseObject: {},
|
|
3183
|
+
body: yield response.json(),
|
|
3184
|
+
bodyKey: "oracleDbAzureVaultSummaryCollection",
|
|
3185
|
+
bodyModel: model.OracleDbAzureVaultSummaryCollection,
|
|
3186
|
+
type: "model.OracleDbAzureVaultSummaryCollection",
|
|
3187
|
+
responseHeaders: [
|
|
3188
|
+
{
|
|
3189
|
+
value: response.headers.get("opc-request-id"),
|
|
3190
|
+
key: "opcRequestId",
|
|
3191
|
+
dataType: "string"
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
value: response.headers.get("opc-next-page"),
|
|
3195
|
+
key: "opcNextPage",
|
|
3196
|
+
dataType: "string"
|
|
3197
|
+
}
|
|
3198
|
+
]
|
|
3199
|
+
});
|
|
3200
|
+
return sdkResponse;
|
|
3201
|
+
}
|
|
3202
|
+
catch (err) {
|
|
3203
|
+
throw err;
|
|
3204
|
+
}
|
|
3205
|
+
});
|
|
3206
|
+
}
|
|
3207
|
+
/**
|
|
3208
|
+
* Refresh Oracle DB Azure Vault details from backend.
|
|
3209
|
+
*
|
|
3210
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3211
|
+
* @param RefreshOracleDbAzureVaultRequest
|
|
3212
|
+
* @return RefreshOracleDbAzureVaultResponse
|
|
3213
|
+
* @throws OciError when an error occurs
|
|
3214
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/RefreshOracleDbAzureVault.ts.html |here} to see how to use RefreshOracleDbAzureVault API.
|
|
3215
|
+
*/
|
|
3216
|
+
refreshOracleDbAzureVault(refreshOracleDbAzureVaultRequest) {
|
|
3217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3218
|
+
if (this.logger)
|
|
3219
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#refreshOracleDbAzureVault.");
|
|
3220
|
+
const operationName = "refreshOracleDbAzureVault";
|
|
3221
|
+
const apiReferenceLink = "";
|
|
3222
|
+
const pathParams = {
|
|
3223
|
+
"{oracleDbAzureVaultId}": refreshOracleDbAzureVaultRequest.oracleDbAzureVaultId
|
|
3224
|
+
};
|
|
3225
|
+
const queryParams = {};
|
|
3226
|
+
let headerParams = {
|
|
3227
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3228
|
+
"opc-retry-token": refreshOracleDbAzureVaultRequest.opcRetryToken,
|
|
3229
|
+
"if-match": refreshOracleDbAzureVaultRequest.ifMatch,
|
|
3230
|
+
"opc-request-id": refreshOracleDbAzureVaultRequest.opcRequestId
|
|
3231
|
+
};
|
|
3232
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3233
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshOracleDbAzureVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3234
|
+
if (this.logger)
|
|
3235
|
+
retrier.logger = this.logger;
|
|
3236
|
+
const request = yield oci_common_1.composeRequest({
|
|
3237
|
+
baseEndpoint: this._endpoint,
|
|
3238
|
+
defaultHeaders: this._defaultHeaders,
|
|
3239
|
+
path: "/oracleDbAzureVault/{oracleDbAzureVaultId}/actions/refresh",
|
|
3240
|
+
method: "POST",
|
|
3241
|
+
pathParams: pathParams,
|
|
3242
|
+
headerParams: headerParams,
|
|
3243
|
+
queryParams: queryParams
|
|
3244
|
+
});
|
|
3245
|
+
try {
|
|
3246
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3247
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3248
|
+
responseObject: {},
|
|
3249
|
+
responseHeaders: [
|
|
3250
|
+
{
|
|
3251
|
+
value: response.headers.get("opc-request-id"),
|
|
3252
|
+
key: "opcRequestId",
|
|
3253
|
+
dataType: "string"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3257
|
+
key: "opcWorkRequestId",
|
|
3258
|
+
dataType: "string"
|
|
3259
|
+
}
|
|
3260
|
+
]
|
|
3261
|
+
});
|
|
3262
|
+
return sdkResponse;
|
|
3263
|
+
}
|
|
3264
|
+
catch (err) {
|
|
3265
|
+
throw err;
|
|
3266
|
+
}
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
/**
|
|
3270
|
+
* Modifies the existing Oracle DB Azure Vault Details for a given ID.
|
|
3271
|
+
*
|
|
3272
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3273
|
+
* @param UpdateOracleDbAzureVaultRequest
|
|
3274
|
+
* @return UpdateOracleDbAzureVaultResponse
|
|
3275
|
+
* @throws OciError when an error occurs
|
|
3276
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/UpdateOracleDbAzureVault.ts.html |here} to see how to use UpdateOracleDbAzureVault API.
|
|
3277
|
+
*/
|
|
3278
|
+
updateOracleDbAzureVault(updateOracleDbAzureVaultRequest) {
|
|
3279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3280
|
+
if (this.logger)
|
|
3281
|
+
this.logger.debug("Calling operation OracleDbAzureVaultClient#updateOracleDbAzureVault.");
|
|
3282
|
+
const operationName = "updateOracleDbAzureVault";
|
|
3283
|
+
const apiReferenceLink = "";
|
|
3284
|
+
const pathParams = {
|
|
3285
|
+
"{oracleDbAzureVaultId}": updateOracleDbAzureVaultRequest.oracleDbAzureVaultId
|
|
3286
|
+
};
|
|
3287
|
+
const queryParams = {};
|
|
3288
|
+
let headerParams = {
|
|
3289
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3290
|
+
"if-match": updateOracleDbAzureVaultRequest.ifMatch,
|
|
3291
|
+
"opc-request-id": updateOracleDbAzureVaultRequest.opcRequestId
|
|
3292
|
+
};
|
|
3293
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3294
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOracleDbAzureVaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3295
|
+
if (this.logger)
|
|
3296
|
+
retrier.logger = this.logger;
|
|
3297
|
+
const request = yield oci_common_1.composeRequest({
|
|
3298
|
+
baseEndpoint: this._endpoint,
|
|
3299
|
+
defaultHeaders: this._defaultHeaders,
|
|
3300
|
+
path: "/oracleDbAzureVault/{oracleDbAzureVaultId}",
|
|
3301
|
+
method: "PUT",
|
|
3302
|
+
bodyContent: common.ObjectSerializer.serialize(updateOracleDbAzureVaultRequest.updateOracleDbAzureVaultDetails, "UpdateOracleDbAzureVaultDetails", model.UpdateOracleDbAzureVaultDetails.getJsonObj),
|
|
3303
|
+
pathParams: pathParams,
|
|
3304
|
+
headerParams: headerParams,
|
|
3305
|
+
queryParams: queryParams
|
|
3306
|
+
});
|
|
3307
|
+
try {
|
|
3308
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3309
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3310
|
+
responseObject: {},
|
|
3311
|
+
responseHeaders: [
|
|
3312
|
+
{
|
|
3313
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3314
|
+
key: "opcWorkRequestId",
|
|
3315
|
+
dataType: "string"
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
value: response.headers.get("opc-request-id"),
|
|
3319
|
+
key: "opcRequestId",
|
|
3320
|
+
dataType: "string"
|
|
3321
|
+
}
|
|
3322
|
+
]
|
|
3323
|
+
});
|
|
3324
|
+
return sdkResponse;
|
|
3325
|
+
}
|
|
3326
|
+
catch (err) {
|
|
3327
|
+
throw err;
|
|
3328
|
+
}
|
|
3329
|
+
});
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
exports.OracleDbAzureVaultClient = OracleDbAzureVaultClient;
|
|
3333
|
+
OracleDbAzureVaultClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
3334
|
+
OracleDbAzureVaultClient.endpointServiceName = "";
|
|
3335
|
+
var OracleDbAzureVaultAssociationApiKeys;
|
|
3336
|
+
(function (OracleDbAzureVaultAssociationApiKeys) {
|
|
3337
|
+
})(OracleDbAzureVaultAssociationApiKeys = exports.OracleDbAzureVaultAssociationApiKeys || (exports.OracleDbAzureVaultAssociationApiKeys = {}));
|
|
3338
|
+
/**
|
|
3339
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
3340
|
+
*/
|
|
3341
|
+
class OracleDbAzureVaultAssociationClient {
|
|
3342
|
+
constructor(params, clientConfiguration) {
|
|
3343
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
3344
|
+
this["_endpoint"] = "";
|
|
3345
|
+
this["_defaultHeaders"] = {};
|
|
3346
|
+
this._circuitBreaker = null;
|
|
3347
|
+
this._httpOptions = undefined;
|
|
3348
|
+
this._bodyDuplexMode = undefined;
|
|
3349
|
+
this.targetService = "OracleDbAzureVaultAssociation";
|
|
3350
|
+
this._regionId = "";
|
|
3351
|
+
this._lastSetRegionOrRegionId = "";
|
|
3352
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
3353
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
3354
|
+
: null;
|
|
3355
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
3356
|
+
if (clientConfiguration) {
|
|
3357
|
+
this._clientConfiguration = clientConfiguration;
|
|
3358
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
3359
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
3360
|
+
: null;
|
|
3361
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
3362
|
+
? clientConfiguration.httpOptions
|
|
3363
|
+
: undefined;
|
|
3364
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
3365
|
+
? clientConfiguration.bodyDuplexMode
|
|
3366
|
+
: undefined;
|
|
3367
|
+
}
|
|
3368
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
3369
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
3370
|
+
throw errmsg.concat("dbmulticloud");
|
|
3371
|
+
}
|
|
3372
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
3373
|
+
const specCircuitBreakerEnabled = true;
|
|
3374
|
+
if (!this._circuitBreaker &&
|
|
3375
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
3376
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
3377
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
3378
|
+
}
|
|
3379
|
+
this._httpClient =
|
|
3380
|
+
params.httpClient ||
|
|
3381
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
3382
|
+
if (params.authenticationDetailsProvider &&
|
|
3383
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
3384
|
+
const provider = params.authenticationDetailsProvider;
|
|
3385
|
+
if (provider.getRegion()) {
|
|
3386
|
+
this.region = provider.getRegion();
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
3392
|
+
*/
|
|
3393
|
+
get endpoint() {
|
|
3394
|
+
return this._endpoint;
|
|
3395
|
+
}
|
|
3396
|
+
/**
|
|
3397
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
3398
|
+
* @param endpoint The endpoint of the service.
|
|
3399
|
+
*/
|
|
3400
|
+
set endpoint(endpoint) {
|
|
3401
|
+
this._endpoint = endpoint;
|
|
3402
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
3403
|
+
if (this.logger)
|
|
3404
|
+
this.logger.info(`OracleDbAzureVaultAssociationClient endpoint set to ${this._endpoint}`);
|
|
3405
|
+
}
|
|
3406
|
+
get logger() {
|
|
3407
|
+
return common.LOG.logger;
|
|
3408
|
+
}
|
|
3409
|
+
/**
|
|
3410
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
3411
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
3412
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
3413
|
+
*/
|
|
3414
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3415
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3416
|
+
if (this.logger)
|
|
3417
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3418
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3419
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDbAzureVaultAssociationClient.serviceEndpointTemplate, this._region, OracleDbAzureVaultAssociationClient.endpointServiceName);
|
|
3420
|
+
}
|
|
3421
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
3422
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDbAzureVaultAssociationClient.serviceEndpointTemplate, this._regionId, OracleDbAzureVaultAssociationClient.endpointServiceName);
|
|
3423
|
+
}
|
|
3424
|
+
}
|
|
3425
|
+
/**
|
|
3426
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3427
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3428
|
+
* @param region The region of the service.
|
|
3429
|
+
*/
|
|
3430
|
+
set region(region) {
|
|
3431
|
+
this._region = region;
|
|
3432
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OracleDbAzureVaultAssociationClient.serviceEndpointTemplate, region, OracleDbAzureVaultAssociationClient.endpointServiceName);
|
|
3433
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3434
|
+
}
|
|
3435
|
+
/**
|
|
3436
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
3437
|
+
*
|
|
3438
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
3439
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
3440
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
3441
|
+
* @param regionId The public region ID.
|
|
3442
|
+
*/
|
|
3443
|
+
set regionId(regionId) {
|
|
3444
|
+
this._regionId = regionId;
|
|
3445
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OracleDbAzureVaultAssociationClient.serviceEndpointTemplate, regionId, OracleDbAzureVaultAssociationClient.endpointServiceName);
|
|
3446
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3447
|
+
}
|
|
3448
|
+
/**
|
|
3449
|
+
* Creates a new OracleDbAzureVaultAssociationWaiter for resources for this service.
|
|
3450
|
+
*
|
|
3451
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
3452
|
+
* @return The service waiters.
|
|
3453
|
+
*/
|
|
3454
|
+
createWaiters(config) {
|
|
3455
|
+
this._waiters = new oracledbazurevaultassociation_waiter_1.OracleDbAzureVaultAssociationWaiter(this, config);
|
|
3456
|
+
return this._waiters;
|
|
3457
|
+
}
|
|
3458
|
+
/**
|
|
3459
|
+
* Gets the waiters available for resources for this service.
|
|
3460
|
+
*
|
|
3461
|
+
* @return The service waiters.
|
|
3462
|
+
*/
|
|
3463
|
+
getWaiters() {
|
|
3464
|
+
if (this._waiters) {
|
|
3465
|
+
return this._waiters;
|
|
3466
|
+
}
|
|
3467
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
3468
|
+
}
|
|
3469
|
+
/**
|
|
3470
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
3471
|
+
*/
|
|
3472
|
+
shutdownCircuitBreaker() {
|
|
3473
|
+
if (this._circuitBreaker) {
|
|
3474
|
+
this._circuitBreaker.shutdown();
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
/**
|
|
3478
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
3479
|
+
*/
|
|
3480
|
+
closeProvider() {
|
|
3481
|
+
if (this._authProvider) {
|
|
3482
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
3483
|
+
(this._authProvider).closeProvider();
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
/**
|
|
3487
|
+
* Close the client once it is no longer needed
|
|
3488
|
+
*/
|
|
3489
|
+
close() {
|
|
3490
|
+
this.shutdownCircuitBreaker();
|
|
3491
|
+
this.closeProvider();
|
|
3492
|
+
}
|
|
3493
|
+
/**
|
|
3494
|
+
* Delete Oracle DB Azure Vault Association details.
|
|
3495
|
+
*
|
|
3496
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3497
|
+
* @param CascadingDeleteOracleDbAzureVaultAssociationRequest
|
|
3498
|
+
* @return CascadingDeleteOracleDbAzureVaultAssociationResponse
|
|
3499
|
+
* @throws OciError when an error occurs
|
|
3500
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CascadingDeleteOracleDbAzureVaultAssociation.ts.html |here} to see how to use CascadingDeleteOracleDbAzureVaultAssociation API.
|
|
3501
|
+
*/
|
|
3502
|
+
cascadingDeleteOracleDbAzureVaultAssociation(cascadingDeleteOracleDbAzureVaultAssociationRequest) {
|
|
3503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3504
|
+
if (this.logger)
|
|
3505
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#cascadingDeleteOracleDbAzureVaultAssociation.");
|
|
3506
|
+
const operationName = "cascadingDeleteOracleDbAzureVaultAssociation";
|
|
3507
|
+
const apiReferenceLink = "";
|
|
3508
|
+
const pathParams = {
|
|
3509
|
+
"{oracleDbAzureVaultAssociationId}": cascadingDeleteOracleDbAzureVaultAssociationRequest.oracleDbAzureVaultAssociationId
|
|
3510
|
+
};
|
|
3511
|
+
const queryParams = {};
|
|
3512
|
+
let headerParams = {
|
|
3513
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3514
|
+
"opc-retry-token": cascadingDeleteOracleDbAzureVaultAssociationRequest.opcRetryToken,
|
|
3515
|
+
"if-match": cascadingDeleteOracleDbAzureVaultAssociationRequest.ifMatch,
|
|
3516
|
+
"opc-request-id": cascadingDeleteOracleDbAzureVaultAssociationRequest.opcRequestId
|
|
3517
|
+
};
|
|
3518
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3519
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cascadingDeleteOracleDbAzureVaultAssociationRequest.retryConfiguration, specRetryConfiguration);
|
|
3520
|
+
if (this.logger)
|
|
3521
|
+
retrier.logger = this.logger;
|
|
3522
|
+
const request = yield oci_common_1.composeRequest({
|
|
3523
|
+
baseEndpoint: this._endpoint,
|
|
3524
|
+
defaultHeaders: this._defaultHeaders,
|
|
3525
|
+
path: "/oracleDbAzureVaultAssociation/{oracleDbAzureVaultAssociationId}/actions/cascadingDelete",
|
|
3526
|
+
method: "POST",
|
|
3527
|
+
pathParams: pathParams,
|
|
3528
|
+
headerParams: headerParams,
|
|
3529
|
+
queryParams: queryParams
|
|
3530
|
+
});
|
|
3531
|
+
try {
|
|
3532
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3533
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3534
|
+
responseObject: {},
|
|
3535
|
+
responseHeaders: [
|
|
3536
|
+
{
|
|
3537
|
+
value: response.headers.get("opc-request-id"),
|
|
3538
|
+
key: "opcRequestId",
|
|
3539
|
+
dataType: "string"
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3543
|
+
key: "opcWorkRequestId",
|
|
3544
|
+
dataType: "string"
|
|
3545
|
+
}
|
|
3546
|
+
]
|
|
3547
|
+
});
|
|
3548
|
+
return sdkResponse;
|
|
3549
|
+
}
|
|
3550
|
+
catch (err) {
|
|
3551
|
+
throw err;
|
|
3552
|
+
}
|
|
3553
|
+
});
|
|
3554
|
+
}
|
|
3555
|
+
/**
|
|
3556
|
+
* Moves the Oracle DB Azure Vault Association resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
3557
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3558
|
+
* @param ChangeOracleDbAzureVaultAssociationCompartmentRequest
|
|
3559
|
+
* @return ChangeOracleDbAzureVaultAssociationCompartmentResponse
|
|
3560
|
+
* @throws OciError when an error occurs
|
|
3561
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ChangeOracleDbAzureVaultAssociationCompartment.ts.html |here} to see how to use ChangeOracleDbAzureVaultAssociationCompartment API.
|
|
3562
|
+
*/
|
|
3563
|
+
changeOracleDbAzureVaultAssociationCompartment(changeOracleDbAzureVaultAssociationCompartmentRequest) {
|
|
3564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3565
|
+
if (this.logger)
|
|
3566
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#changeOracleDbAzureVaultAssociationCompartment.");
|
|
3567
|
+
const operationName = "changeOracleDbAzureVaultAssociationCompartment";
|
|
3568
|
+
const apiReferenceLink = "";
|
|
3569
|
+
const pathParams = {
|
|
3570
|
+
"{oracleDbAzureVaultAssociationId}": changeOracleDbAzureVaultAssociationCompartmentRequest.oracleDbAzureVaultAssociationId
|
|
3571
|
+
};
|
|
3572
|
+
const queryParams = {};
|
|
3573
|
+
let headerParams = {
|
|
3574
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3575
|
+
"opc-retry-token": changeOracleDbAzureVaultAssociationCompartmentRequest.opcRetryToken,
|
|
3576
|
+
"if-match": changeOracleDbAzureVaultAssociationCompartmentRequest.ifMatch,
|
|
3577
|
+
"opc-request-id": changeOracleDbAzureVaultAssociationCompartmentRequest.opcRequestId
|
|
3578
|
+
};
|
|
3579
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3580
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOracleDbAzureVaultAssociationCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
3581
|
+
if (this.logger)
|
|
3582
|
+
retrier.logger = this.logger;
|
|
3583
|
+
const request = yield oci_common_1.composeRequest({
|
|
3584
|
+
baseEndpoint: this._endpoint,
|
|
3585
|
+
defaultHeaders: this._defaultHeaders,
|
|
3586
|
+
path: "/oracleDbAzureVaultAssociation/{oracleDbAzureVaultAssociationId}/actions/changeCompartment",
|
|
3587
|
+
method: "POST",
|
|
3588
|
+
bodyContent: common.ObjectSerializer.serialize(changeOracleDbAzureVaultAssociationCompartmentRequest.changeOracleDbAzureVaultAssociationCompartmentDetails, "ChangeOracleDbAzureVaultAssociationCompartmentDetails", model.ChangeOracleDbAzureVaultAssociationCompartmentDetails.getJsonObj),
|
|
3589
|
+
pathParams: pathParams,
|
|
3590
|
+
headerParams: headerParams,
|
|
3591
|
+
queryParams: queryParams
|
|
3592
|
+
});
|
|
3593
|
+
try {
|
|
3594
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3595
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3596
|
+
responseObject: {},
|
|
3597
|
+
responseHeaders: [
|
|
3598
|
+
{
|
|
3599
|
+
value: response.headers.get("opc-request-id"),
|
|
3600
|
+
key: "opcRequestId",
|
|
3601
|
+
dataType: "string"
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3605
|
+
key: "opcWorkRequestId",
|
|
3606
|
+
dataType: "string"
|
|
3607
|
+
}
|
|
3608
|
+
]
|
|
3609
|
+
});
|
|
3610
|
+
return sdkResponse;
|
|
3611
|
+
}
|
|
3612
|
+
catch (err) {
|
|
3613
|
+
throw err;
|
|
3614
|
+
}
|
|
3615
|
+
});
|
|
3616
|
+
}
|
|
3617
|
+
/**
|
|
3618
|
+
* Create Oracle DB Azure Vault Association based on the provided information.
|
|
3619
|
+
*
|
|
3620
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3621
|
+
* @param CreateOracleDbAzureVaultAssociationRequest
|
|
3622
|
+
* @return CreateOracleDbAzureVaultAssociationResponse
|
|
3623
|
+
* @throws OciError when an error occurs
|
|
3624
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CreateOracleDbAzureVaultAssociation.ts.html |here} to see how to use CreateOracleDbAzureVaultAssociation API.
|
|
3625
|
+
*/
|
|
3626
|
+
createOracleDbAzureVaultAssociation(createOracleDbAzureVaultAssociationRequest) {
|
|
3627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3628
|
+
if (this.logger)
|
|
3629
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#createOracleDbAzureVaultAssociation.");
|
|
3630
|
+
const operationName = "createOracleDbAzureVaultAssociation";
|
|
3631
|
+
const apiReferenceLink = "";
|
|
3632
|
+
const pathParams = {};
|
|
3633
|
+
const queryParams = {};
|
|
3634
|
+
let headerParams = {
|
|
3635
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3636
|
+
"opc-retry-token": createOracleDbAzureVaultAssociationRequest.opcRetryToken,
|
|
3637
|
+
"if-match": createOracleDbAzureVaultAssociationRequest.ifMatch,
|
|
3638
|
+
"opc-request-id": createOracleDbAzureVaultAssociationRequest.opcRequestId
|
|
3639
|
+
};
|
|
3640
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3641
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOracleDbAzureVaultAssociationRequest.retryConfiguration, specRetryConfiguration);
|
|
3642
|
+
if (this.logger)
|
|
3643
|
+
retrier.logger = this.logger;
|
|
3644
|
+
const request = yield oci_common_1.composeRequest({
|
|
3645
|
+
baseEndpoint: this._endpoint,
|
|
3646
|
+
defaultHeaders: this._defaultHeaders,
|
|
3647
|
+
path: "/oracleDbAzureVaultAssociation",
|
|
3648
|
+
method: "POST",
|
|
3649
|
+
bodyContent: common.ObjectSerializer.serialize(createOracleDbAzureVaultAssociationRequest.createOracleDbAzureVaultAssociationDetails, "CreateOracleDbAzureVaultAssociationDetails", model.CreateOracleDbAzureVaultAssociationDetails.getJsonObj),
|
|
3650
|
+
pathParams: pathParams,
|
|
3651
|
+
headerParams: headerParams,
|
|
3652
|
+
queryParams: queryParams
|
|
3653
|
+
});
|
|
3654
|
+
try {
|
|
3655
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3656
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3657
|
+
responseObject: {},
|
|
3658
|
+
body: yield response.json(),
|
|
3659
|
+
bodyKey: "oracleDbAzureVaultAssociation",
|
|
3660
|
+
bodyModel: model.OracleDbAzureVaultAssociation,
|
|
3661
|
+
type: "model.OracleDbAzureVaultAssociation",
|
|
3662
|
+
responseHeaders: [
|
|
3663
|
+
{
|
|
3664
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3665
|
+
key: "opcWorkRequestId",
|
|
3666
|
+
dataType: "string"
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
value: response.headers.get("opc-request-id"),
|
|
3670
|
+
key: "opcRequestId",
|
|
3671
|
+
dataType: "string"
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
value: response.headers.get("location"),
|
|
3675
|
+
key: "location",
|
|
3676
|
+
dataType: "string"
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
value: response.headers.get("content-location"),
|
|
3680
|
+
key: "contentLocation",
|
|
3681
|
+
dataType: "string"
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
value: response.headers.get("etag"),
|
|
3685
|
+
key: "etag",
|
|
3686
|
+
dataType: "string"
|
|
3687
|
+
}
|
|
3688
|
+
]
|
|
3689
|
+
});
|
|
3690
|
+
return sdkResponse;
|
|
3691
|
+
}
|
|
3692
|
+
catch (err) {
|
|
3693
|
+
throw err;
|
|
3694
|
+
}
|
|
3695
|
+
});
|
|
3696
|
+
}
|
|
3697
|
+
/**
|
|
3698
|
+
* Delete Oracle DB Azure Vault Association details.
|
|
3699
|
+
*
|
|
3700
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3701
|
+
* @param DeleteOracleDbAzureVaultAssociationRequest
|
|
3702
|
+
* @return DeleteOracleDbAzureVaultAssociationResponse
|
|
3703
|
+
* @throws OciError when an error occurs
|
|
3704
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/DeleteOracleDbAzureVaultAssociation.ts.html |here} to see how to use DeleteOracleDbAzureVaultAssociation API.
|
|
3705
|
+
*/
|
|
3706
|
+
deleteOracleDbAzureVaultAssociation(deleteOracleDbAzureVaultAssociationRequest) {
|
|
3707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3708
|
+
if (this.logger)
|
|
3709
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#deleteOracleDbAzureVaultAssociation.");
|
|
3710
|
+
const operationName = "deleteOracleDbAzureVaultAssociation";
|
|
3711
|
+
const apiReferenceLink = "";
|
|
3712
|
+
const pathParams = {
|
|
3713
|
+
"{oracleDbAzureVaultAssociationId}": deleteOracleDbAzureVaultAssociationRequest.oracleDbAzureVaultAssociationId
|
|
3714
|
+
};
|
|
3715
|
+
const queryParams = {};
|
|
3716
|
+
let headerParams = {
|
|
3717
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3718
|
+
"if-match": deleteOracleDbAzureVaultAssociationRequest.ifMatch,
|
|
3719
|
+
"opc-request-id": deleteOracleDbAzureVaultAssociationRequest.opcRequestId
|
|
3720
|
+
};
|
|
3721
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3722
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOracleDbAzureVaultAssociationRequest.retryConfiguration, specRetryConfiguration);
|
|
3723
|
+
if (this.logger)
|
|
3724
|
+
retrier.logger = this.logger;
|
|
3725
|
+
const request = yield oci_common_1.composeRequest({
|
|
3726
|
+
baseEndpoint: this._endpoint,
|
|
3727
|
+
defaultHeaders: this._defaultHeaders,
|
|
3728
|
+
path: "/oracleDbAzureVaultAssociation/{oracleDbAzureVaultAssociationId}",
|
|
3729
|
+
method: "DELETE",
|
|
3730
|
+
pathParams: pathParams,
|
|
3731
|
+
headerParams: headerParams,
|
|
3732
|
+
queryParams: queryParams
|
|
3733
|
+
});
|
|
3734
|
+
try {
|
|
3735
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3736
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3737
|
+
responseObject: {},
|
|
3738
|
+
responseHeaders: [
|
|
3739
|
+
{
|
|
3740
|
+
value: response.headers.get("opc-request-id"),
|
|
3741
|
+
key: "opcRequestId",
|
|
3742
|
+
dataType: "string"
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3746
|
+
key: "opcWorkRequestId",
|
|
3747
|
+
dataType: "string"
|
|
3748
|
+
}
|
|
3749
|
+
]
|
|
3750
|
+
});
|
|
3751
|
+
return sdkResponse;
|
|
3752
|
+
}
|
|
3753
|
+
catch (err) {
|
|
3754
|
+
throw err;
|
|
3755
|
+
}
|
|
3756
|
+
});
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* Get Oracle DB Azure Vault Details Association form a particular Container Resource ID.
|
|
3760
|
+
*
|
|
3761
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3762
|
+
* @param GetOracleDbAzureVaultAssociationRequest
|
|
3763
|
+
* @return GetOracleDbAzureVaultAssociationResponse
|
|
3764
|
+
* @throws OciError when an error occurs
|
|
3765
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetOracleDbAzureVaultAssociation.ts.html |here} to see how to use GetOracleDbAzureVaultAssociation API.
|
|
3766
|
+
*/
|
|
3767
|
+
getOracleDbAzureVaultAssociation(getOracleDbAzureVaultAssociationRequest) {
|
|
3768
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3769
|
+
if (this.logger)
|
|
3770
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#getOracleDbAzureVaultAssociation.");
|
|
3771
|
+
const operationName = "getOracleDbAzureVaultAssociation";
|
|
3772
|
+
const apiReferenceLink = "";
|
|
3773
|
+
const pathParams = {
|
|
3774
|
+
"{oracleDbAzureVaultAssociationId}": getOracleDbAzureVaultAssociationRequest.oracleDbAzureVaultAssociationId
|
|
3775
|
+
};
|
|
3776
|
+
const queryParams = {
|
|
3777
|
+
"limit": getOracleDbAzureVaultAssociationRequest.limit,
|
|
3778
|
+
"page": getOracleDbAzureVaultAssociationRequest.page,
|
|
3779
|
+
"sortOrder": getOracleDbAzureVaultAssociationRequest.sortOrder
|
|
3780
|
+
};
|
|
3781
|
+
let headerParams = {
|
|
3782
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3783
|
+
"opc-request-id": getOracleDbAzureVaultAssociationRequest.opcRequestId
|
|
3784
|
+
};
|
|
3785
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3786
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOracleDbAzureVaultAssociationRequest.retryConfiguration, specRetryConfiguration);
|
|
3787
|
+
if (this.logger)
|
|
3788
|
+
retrier.logger = this.logger;
|
|
3789
|
+
const request = yield oci_common_1.composeRequest({
|
|
3790
|
+
baseEndpoint: this._endpoint,
|
|
3791
|
+
defaultHeaders: this._defaultHeaders,
|
|
3792
|
+
path: "/oracleDbAzureVaultAssociation/{oracleDbAzureVaultAssociationId}",
|
|
3793
|
+
method: "GET",
|
|
3794
|
+
pathParams: pathParams,
|
|
3795
|
+
headerParams: headerParams,
|
|
3796
|
+
queryParams: queryParams
|
|
3797
|
+
});
|
|
3798
|
+
try {
|
|
3799
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3800
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3801
|
+
responseObject: {},
|
|
3802
|
+
body: yield response.json(),
|
|
3803
|
+
bodyKey: "oracleDbAzureVaultAssociation",
|
|
3804
|
+
bodyModel: model.OracleDbAzureVaultAssociation,
|
|
3805
|
+
type: "model.OracleDbAzureVaultAssociation",
|
|
3806
|
+
responseHeaders: [
|
|
3807
|
+
{
|
|
3808
|
+
value: response.headers.get("etag"),
|
|
3809
|
+
key: "etag",
|
|
3810
|
+
dataType: "string"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
value: response.headers.get("opc-request-id"),
|
|
3814
|
+
key: "opcRequestId",
|
|
3815
|
+
dataType: "string"
|
|
3816
|
+
}
|
|
3817
|
+
]
|
|
3818
|
+
});
|
|
3819
|
+
return sdkResponse;
|
|
3820
|
+
}
|
|
3821
|
+
catch (err) {
|
|
3822
|
+
throw err;
|
|
3823
|
+
}
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
/**
|
|
3827
|
+
* Lists the all Oracle DB Azure Associations based on filters.
|
|
3828
|
+
*
|
|
3829
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3830
|
+
* @param ListOracleDbAzureVaultAssociationsRequest
|
|
3831
|
+
* @return ListOracleDbAzureVaultAssociationsResponse
|
|
3832
|
+
* @throws OciError when an error occurs
|
|
3833
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListOracleDbAzureVaultAssociations.ts.html |here} to see how to use ListOracleDbAzureVaultAssociations API.
|
|
3834
|
+
*/
|
|
3835
|
+
listOracleDbAzureVaultAssociations(listOracleDbAzureVaultAssociationsRequest) {
|
|
3836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3837
|
+
if (this.logger)
|
|
3838
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#listOracleDbAzureVaultAssociations.");
|
|
3839
|
+
const operationName = "listOracleDbAzureVaultAssociations";
|
|
3840
|
+
const apiReferenceLink = "";
|
|
3841
|
+
const pathParams = {};
|
|
3842
|
+
const queryParams = {
|
|
3843
|
+
"compartmentId": listOracleDbAzureVaultAssociationsRequest.compartmentId,
|
|
3844
|
+
"oracleDbAzureVaultId": listOracleDbAzureVaultAssociationsRequest.oracleDbAzureVaultId,
|
|
3845
|
+
"displayName": listOracleDbAzureVaultAssociationsRequest.displayName,
|
|
3846
|
+
"oracleDbAzureVaultAssociationId": listOracleDbAzureVaultAssociationsRequest.oracleDbAzureVaultAssociationId,
|
|
3847
|
+
"lifecycleState": listOracleDbAzureVaultAssociationsRequest.lifecycleState,
|
|
3848
|
+
"oracleDbAzureConnectorId": listOracleDbAzureVaultAssociationsRequest.oracleDbAzureConnectorId,
|
|
3849
|
+
"limit": listOracleDbAzureVaultAssociationsRequest.limit,
|
|
3850
|
+
"page": listOracleDbAzureVaultAssociationsRequest.page,
|
|
3851
|
+
"sortOrder": listOracleDbAzureVaultAssociationsRequest.sortOrder,
|
|
3852
|
+
"sortBy": listOracleDbAzureVaultAssociationsRequest.sortBy
|
|
3853
|
+
};
|
|
3854
|
+
let headerParams = {
|
|
3855
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3856
|
+
"opc-request-id": listOracleDbAzureVaultAssociationsRequest.opcRequestId
|
|
3857
|
+
};
|
|
3858
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3859
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOracleDbAzureVaultAssociationsRequest.retryConfiguration, specRetryConfiguration);
|
|
3860
|
+
if (this.logger)
|
|
3861
|
+
retrier.logger = this.logger;
|
|
3862
|
+
const request = yield oci_common_1.composeRequest({
|
|
3863
|
+
baseEndpoint: this._endpoint,
|
|
3864
|
+
defaultHeaders: this._defaultHeaders,
|
|
3865
|
+
path: "/oracleDbAzureVaultAssociation",
|
|
3866
|
+
method: "GET",
|
|
3867
|
+
pathParams: pathParams,
|
|
3868
|
+
headerParams: headerParams,
|
|
3869
|
+
queryParams: queryParams
|
|
3870
|
+
});
|
|
3871
|
+
try {
|
|
3872
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3873
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3874
|
+
responseObject: {},
|
|
3875
|
+
body: yield response.json(),
|
|
3876
|
+
bodyKey: "oracleDbAzureVaultAssociationSummaryCollection",
|
|
3877
|
+
bodyModel: model.OracleDbAzureVaultAssociationSummaryCollection,
|
|
3878
|
+
type: "model.OracleDbAzureVaultAssociationSummaryCollection",
|
|
3879
|
+
responseHeaders: [
|
|
3880
|
+
{
|
|
3881
|
+
value: response.headers.get("opc-request-id"),
|
|
3882
|
+
key: "opcRequestId",
|
|
3883
|
+
dataType: "string"
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
value: response.headers.get("opc-next-page"),
|
|
3887
|
+
key: "opcNextPage",
|
|
3888
|
+
dataType: "string"
|
|
3889
|
+
}
|
|
3890
|
+
]
|
|
3891
|
+
});
|
|
3892
|
+
return sdkResponse;
|
|
3893
|
+
}
|
|
3894
|
+
catch (err) {
|
|
3895
|
+
throw err;
|
|
3896
|
+
}
|
|
3897
|
+
});
|
|
3898
|
+
}
|
|
3899
|
+
/**
|
|
3900
|
+
* Modifies the existing Oracle DB Azure Vault Association Details for a given ID.
|
|
3901
|
+
*
|
|
3902
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3903
|
+
* @param UpdateOracleDbAzureVaultAssociationRequest
|
|
3904
|
+
* @return UpdateOracleDbAzureVaultAssociationResponse
|
|
3905
|
+
* @throws OciError when an error occurs
|
|
3906
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/UpdateOracleDbAzureVaultAssociation.ts.html |here} to see how to use UpdateOracleDbAzureVaultAssociation API.
|
|
3907
|
+
*/
|
|
3908
|
+
updateOracleDbAzureVaultAssociation(updateOracleDbAzureVaultAssociationRequest) {
|
|
3909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3910
|
+
if (this.logger)
|
|
3911
|
+
this.logger.debug("Calling operation OracleDbAzureVaultAssociationClient#updateOracleDbAzureVaultAssociation.");
|
|
3912
|
+
const operationName = "updateOracleDbAzureVaultAssociation";
|
|
3913
|
+
const apiReferenceLink = "";
|
|
3914
|
+
const pathParams = {
|
|
3915
|
+
"{oracleDbAzureVaultAssociationId}": updateOracleDbAzureVaultAssociationRequest.oracleDbAzureVaultAssociationId
|
|
3916
|
+
};
|
|
3917
|
+
const queryParams = {};
|
|
3918
|
+
let headerParams = {
|
|
3919
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3920
|
+
"if-match": updateOracleDbAzureVaultAssociationRequest.ifMatch,
|
|
3921
|
+
"opc-request-id": updateOracleDbAzureVaultAssociationRequest.opcRequestId
|
|
3922
|
+
};
|
|
3923
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3924
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOracleDbAzureVaultAssociationRequest.retryConfiguration, specRetryConfiguration);
|
|
3925
|
+
if (this.logger)
|
|
3926
|
+
retrier.logger = this.logger;
|
|
3927
|
+
const request = yield oci_common_1.composeRequest({
|
|
3928
|
+
baseEndpoint: this._endpoint,
|
|
3929
|
+
defaultHeaders: this._defaultHeaders,
|
|
3930
|
+
path: "/oracleDbAzureVaultAssociation/{oracleDbAzureVaultAssociationId}",
|
|
3931
|
+
method: "PUT",
|
|
3932
|
+
bodyContent: common.ObjectSerializer.serialize(updateOracleDbAzureVaultAssociationRequest.updateOracleDbAzureVaultAssociationDetails, "UpdateOracleDbAzureVaultAssociationDetails", model.UpdateOracleDbAzureVaultAssociationDetails.getJsonObj),
|
|
3933
|
+
pathParams: pathParams,
|
|
3934
|
+
headerParams: headerParams,
|
|
3935
|
+
queryParams: queryParams
|
|
3936
|
+
});
|
|
3937
|
+
try {
|
|
3938
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3939
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3940
|
+
responseObject: {},
|
|
3941
|
+
responseHeaders: [
|
|
3942
|
+
{
|
|
3943
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3944
|
+
key: "opcWorkRequestId",
|
|
3945
|
+
dataType: "string"
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
value: response.headers.get("opc-request-id"),
|
|
3949
|
+
key: "opcRequestId",
|
|
3950
|
+
dataType: "string"
|
|
3951
|
+
}
|
|
3952
|
+
]
|
|
3953
|
+
});
|
|
3954
|
+
return sdkResponse;
|
|
3955
|
+
}
|
|
3956
|
+
catch (err) {
|
|
3957
|
+
throw err;
|
|
3958
|
+
}
|
|
3959
|
+
});
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
exports.OracleDbAzureVaultAssociationClient = OracleDbAzureVaultAssociationClient;
|
|
3963
|
+
OracleDbAzureVaultAssociationClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
3964
|
+
OracleDbAzureVaultAssociationClient.endpointServiceName = "";
|
|
3965
|
+
var WorkRequestApiKeys;
|
|
3966
|
+
(function (WorkRequestApiKeys) {
|
|
3967
|
+
})(WorkRequestApiKeys = exports.WorkRequestApiKeys || (exports.WorkRequestApiKeys = {}));
|
|
3968
|
+
/**
|
|
3969
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
3970
|
+
*/
|
|
3971
|
+
class WorkRequestClient {
|
|
3972
|
+
constructor(params, clientConfiguration) {
|
|
3973
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
3974
|
+
this["_endpoint"] = "";
|
|
3975
|
+
this["_defaultHeaders"] = {};
|
|
3976
|
+
this._circuitBreaker = null;
|
|
3977
|
+
this._httpOptions = undefined;
|
|
3978
|
+
this._bodyDuplexMode = undefined;
|
|
3979
|
+
this.targetService = "WorkRequest";
|
|
3980
|
+
this._regionId = "";
|
|
3981
|
+
this._lastSetRegionOrRegionId = "";
|
|
3982
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
3983
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
3984
|
+
: null;
|
|
3985
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
3986
|
+
if (clientConfiguration) {
|
|
3987
|
+
this._clientConfiguration = clientConfiguration;
|
|
3988
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
3989
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
3990
|
+
: null;
|
|
3991
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
3992
|
+
? clientConfiguration.httpOptions
|
|
3993
|
+
: undefined;
|
|
3994
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
3995
|
+
? clientConfiguration.bodyDuplexMode
|
|
3996
|
+
: undefined;
|
|
3997
|
+
}
|
|
3998
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dbmulticloud")) {
|
|
3999
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
4000
|
+
throw errmsg.concat("dbmulticloud");
|
|
4001
|
+
}
|
|
4002
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
4003
|
+
const specCircuitBreakerEnabled = true;
|
|
4004
|
+
if (!this._circuitBreaker &&
|
|
4005
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
4006
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
4007
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
4008
|
+
}
|
|
4009
|
+
this._httpClient =
|
|
4010
|
+
params.httpClient ||
|
|
4011
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
4012
|
+
if (params.authenticationDetailsProvider &&
|
|
4013
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
4014
|
+
const provider = params.authenticationDetailsProvider;
|
|
4015
|
+
if (provider.getRegion()) {
|
|
4016
|
+
this.region = provider.getRegion();
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
/**
|
|
4021
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
4022
|
+
*/
|
|
4023
|
+
get endpoint() {
|
|
4024
|
+
return this._endpoint;
|
|
4025
|
+
}
|
|
4026
|
+
/**
|
|
4027
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
4028
|
+
* @param endpoint The endpoint of the service.
|
|
4029
|
+
*/
|
|
4030
|
+
set endpoint(endpoint) {
|
|
4031
|
+
this._endpoint = endpoint;
|
|
4032
|
+
this._endpoint = this._endpoint + "/20240501";
|
|
4033
|
+
if (this.logger)
|
|
4034
|
+
this.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
|
|
4035
|
+
}
|
|
4036
|
+
get logger() {
|
|
4037
|
+
return common.LOG.logger;
|
|
4038
|
+
}
|
|
4039
|
+
/**
|
|
4040
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
4041
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
4042
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
4043
|
+
*/
|
|
4044
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
4045
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
4046
|
+
if (this.logger)
|
|
4047
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
4048
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
4049
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, this._region, WorkRequestClient.endpointServiceName);
|
|
4050
|
+
}
|
|
4051
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
4052
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, this._regionId, WorkRequestClient.endpointServiceName);
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
4057
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
4058
|
+
* @param region The region of the service.
|
|
4059
|
+
*/
|
|
4060
|
+
set region(region) {
|
|
4061
|
+
this._region = region;
|
|
4062
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, region, WorkRequestClient.endpointServiceName);
|
|
4063
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
4064
|
+
}
|
|
4065
|
+
/**
|
|
4066
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
4067
|
+
*
|
|
4068
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
4069
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
4070
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
4071
|
+
* @param regionId The public region ID.
|
|
4072
|
+
*/
|
|
4073
|
+
set regionId(regionId) {
|
|
4074
|
+
this._regionId = regionId;
|
|
4075
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, regionId, WorkRequestClient.endpointServiceName);
|
|
4076
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
4077
|
+
}
|
|
4078
|
+
/**
|
|
4079
|
+
* Creates a new WorkRequestWaiter for resources for this service.
|
|
4080
|
+
*
|
|
4081
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
4082
|
+
* @return The service waiters.
|
|
4083
|
+
*/
|
|
4084
|
+
createWaiters(config) {
|
|
4085
|
+
this._waiters = new workrequest_waiter_1.WorkRequestWaiter(this, config);
|
|
4086
|
+
return this._waiters;
|
|
4087
|
+
}
|
|
4088
|
+
/**
|
|
4089
|
+
* Gets the waiters available for resources for this service.
|
|
4090
|
+
*
|
|
4091
|
+
* @return The service waiters.
|
|
4092
|
+
*/
|
|
4093
|
+
getWaiters() {
|
|
4094
|
+
if (this._waiters) {
|
|
4095
|
+
return this._waiters;
|
|
4096
|
+
}
|
|
4097
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
4098
|
+
}
|
|
4099
|
+
/**
|
|
4100
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
4101
|
+
*/
|
|
4102
|
+
shutdownCircuitBreaker() {
|
|
4103
|
+
if (this._circuitBreaker) {
|
|
4104
|
+
this._circuitBreaker.shutdown();
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4107
|
+
/**
|
|
4108
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
4109
|
+
*/
|
|
4110
|
+
closeProvider() {
|
|
4111
|
+
if (this._authProvider) {
|
|
4112
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
4113
|
+
(this._authProvider).closeProvider();
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
/**
|
|
4117
|
+
* Close the client once it is no longer needed
|
|
4118
|
+
*/
|
|
4119
|
+
close() {
|
|
4120
|
+
this.shutdownCircuitBreaker();
|
|
4121
|
+
this.closeProvider();
|
|
4122
|
+
}
|
|
4123
|
+
/**
|
|
4124
|
+
* Cancels a work request.
|
|
4125
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4126
|
+
* @param CancelWorkRequestRequest
|
|
4127
|
+
* @return CancelWorkRequestResponse
|
|
4128
|
+
* @throws OciError when an error occurs
|
|
4129
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
4130
|
+
*/
|
|
4131
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
4132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4133
|
+
if (this.logger)
|
|
4134
|
+
this.logger.debug("Calling operation WorkRequestClient#cancelWorkRequest.");
|
|
4135
|
+
const operationName = "cancelWorkRequest";
|
|
4136
|
+
const apiReferenceLink = "";
|
|
4137
|
+
const pathParams = {
|
|
4138
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
4139
|
+
};
|
|
4140
|
+
const queryParams = {};
|
|
4141
|
+
let headerParams = {
|
|
4142
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4143
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
4144
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
4145
|
+
};
|
|
4146
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4147
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
4148
|
+
if (this.logger)
|
|
4149
|
+
retrier.logger = this.logger;
|
|
4150
|
+
const request = yield oci_common_1.composeRequest({
|
|
4151
|
+
baseEndpoint: this._endpoint,
|
|
4152
|
+
defaultHeaders: this._defaultHeaders,
|
|
4153
|
+
path: "/workRequests/{workRequestId}",
|
|
4154
|
+
method: "DELETE",
|
|
4155
|
+
pathParams: pathParams,
|
|
4156
|
+
headerParams: headerParams,
|
|
4157
|
+
queryParams: queryParams
|
|
4158
|
+
});
|
|
4159
|
+
try {
|
|
4160
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4161
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4162
|
+
responseObject: {},
|
|
4163
|
+
responseHeaders: [
|
|
4164
|
+
{
|
|
4165
|
+
value: response.headers.get("opc-request-id"),
|
|
4166
|
+
key: "opcRequestId",
|
|
4167
|
+
dataType: "string"
|
|
4168
|
+
}
|
|
4169
|
+
]
|
|
4170
|
+
});
|
|
4171
|
+
return sdkResponse;
|
|
4172
|
+
}
|
|
4173
|
+
catch (err) {
|
|
4174
|
+
throw err;
|
|
4175
|
+
}
|
|
4176
|
+
});
|
|
4177
|
+
}
|
|
4178
|
+
/**
|
|
4179
|
+
* Gets details of the work request with the given ID.
|
|
4180
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4181
|
+
* @param GetWorkRequestRequest
|
|
4182
|
+
* @return GetWorkRequestResponse
|
|
4183
|
+
* @throws OciError when an error occurs
|
|
4184
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
4185
|
+
*/
|
|
4186
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
4187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4188
|
+
if (this.logger)
|
|
4189
|
+
this.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
|
|
4190
|
+
const operationName = "getWorkRequest";
|
|
4191
|
+
const apiReferenceLink = "";
|
|
4192
|
+
const pathParams = {
|
|
4193
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
4194
|
+
};
|
|
4195
|
+
const queryParams = {};
|
|
4196
|
+
let headerParams = {
|
|
4197
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4198
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
4199
|
+
};
|
|
4200
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4201
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
4202
|
+
if (this.logger)
|
|
4203
|
+
retrier.logger = this.logger;
|
|
4204
|
+
const request = yield oci_common_1.composeRequest({
|
|
4205
|
+
baseEndpoint: this._endpoint,
|
|
4206
|
+
defaultHeaders: this._defaultHeaders,
|
|
4207
|
+
path: "/workRequests/{workRequestId}",
|
|
4208
|
+
method: "GET",
|
|
4209
|
+
pathParams: pathParams,
|
|
4210
|
+
headerParams: headerParams,
|
|
4211
|
+
queryParams: queryParams
|
|
4212
|
+
});
|
|
4213
|
+
try {
|
|
4214
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4215
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4216
|
+
responseObject: {},
|
|
4217
|
+
body: yield response.json(),
|
|
4218
|
+
bodyKey: "workRequest",
|
|
4219
|
+
bodyModel: model.WorkRequest,
|
|
4220
|
+
type: "model.WorkRequest",
|
|
4221
|
+
responseHeaders: [
|
|
4222
|
+
{
|
|
4223
|
+
value: response.headers.get("etag"),
|
|
4224
|
+
key: "etag",
|
|
4225
|
+
dataType: "string"
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
value: response.headers.get("opc-request-id"),
|
|
4229
|
+
key: "opcRequestId",
|
|
4230
|
+
dataType: "string"
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
value: response.headers.get("retry-after"),
|
|
4234
|
+
key: "retryAfter",
|
|
4235
|
+
dataType: "number"
|
|
4236
|
+
}
|
|
4237
|
+
]
|
|
4238
|
+
});
|
|
4239
|
+
return sdkResponse;
|
|
4240
|
+
}
|
|
4241
|
+
catch (err) {
|
|
4242
|
+
throw err;
|
|
4243
|
+
}
|
|
4244
|
+
});
|
|
4245
|
+
}
|
|
4246
|
+
/**
|
|
4247
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
4248
|
+
*
|
|
4249
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4250
|
+
* @param ListWorkRequestErrorsRequest
|
|
4251
|
+
* @return ListWorkRequestErrorsResponse
|
|
4252
|
+
* @throws OciError when an error occurs
|
|
4253
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
4254
|
+
*/
|
|
4255
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
4256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4257
|
+
if (this.logger)
|
|
4258
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
|
|
4259
|
+
const operationName = "listWorkRequestErrors";
|
|
4260
|
+
const apiReferenceLink = "";
|
|
4261
|
+
const pathParams = {
|
|
4262
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
4263
|
+
};
|
|
4264
|
+
const queryParams = {
|
|
4265
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
4266
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
4267
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
4268
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
4269
|
+
};
|
|
4270
|
+
let headerParams = {
|
|
4271
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4272
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
4273
|
+
};
|
|
4274
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4275
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
4276
|
+
if (this.logger)
|
|
4277
|
+
retrier.logger = this.logger;
|
|
4278
|
+
const request = yield oci_common_1.composeRequest({
|
|
4279
|
+
baseEndpoint: this._endpoint,
|
|
4280
|
+
defaultHeaders: this._defaultHeaders,
|
|
4281
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
4282
|
+
method: "GET",
|
|
4283
|
+
pathParams: pathParams,
|
|
4284
|
+
headerParams: headerParams,
|
|
4285
|
+
queryParams: queryParams
|
|
4286
|
+
});
|
|
4287
|
+
try {
|
|
4288
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4289
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4290
|
+
responseObject: {},
|
|
4291
|
+
body: yield response.json(),
|
|
4292
|
+
bodyKey: "workRequestErrorCollection",
|
|
4293
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
4294
|
+
type: "model.WorkRequestErrorCollection",
|
|
4295
|
+
responseHeaders: [
|
|
4296
|
+
{
|
|
4297
|
+
value: response.headers.get("opc-next-page"),
|
|
4298
|
+
key: "opcNextPage",
|
|
4299
|
+
dataType: "string"
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
value: response.headers.get("opc-request-id"),
|
|
4303
|
+
key: "opcRequestId",
|
|
4304
|
+
dataType: "string"
|
|
4305
|
+
}
|
|
4306
|
+
]
|
|
4307
|
+
});
|
|
4308
|
+
return sdkResponse;
|
|
4309
|
+
}
|
|
4310
|
+
catch (err) {
|
|
4311
|
+
throw err;
|
|
4312
|
+
}
|
|
4313
|
+
});
|
|
4314
|
+
}
|
|
4315
|
+
/**
|
|
4316
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
4317
|
+
*
|
|
4318
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4319
|
+
* @param ListWorkRequestLogsRequest
|
|
4320
|
+
* @return ListWorkRequestLogsResponse
|
|
4321
|
+
* @throws OciError when an error occurs
|
|
4322
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
4323
|
+
*/
|
|
4324
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
4325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4326
|
+
if (this.logger)
|
|
4327
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
|
|
4328
|
+
const operationName = "listWorkRequestLogs";
|
|
4329
|
+
const apiReferenceLink = "";
|
|
4330
|
+
const pathParams = {
|
|
4331
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
4332
|
+
};
|
|
4333
|
+
const queryParams = {
|
|
4334
|
+
"page": listWorkRequestLogsRequest.page,
|
|
4335
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
4336
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
4337
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
4338
|
+
};
|
|
4339
|
+
let headerParams = {
|
|
4340
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4341
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
4342
|
+
};
|
|
4343
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4344
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
4345
|
+
if (this.logger)
|
|
4346
|
+
retrier.logger = this.logger;
|
|
4347
|
+
const request = yield oci_common_1.composeRequest({
|
|
4348
|
+
baseEndpoint: this._endpoint,
|
|
4349
|
+
defaultHeaders: this._defaultHeaders,
|
|
4350
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
4351
|
+
method: "GET",
|
|
4352
|
+
pathParams: pathParams,
|
|
4353
|
+
headerParams: headerParams,
|
|
4354
|
+
queryParams: queryParams
|
|
4355
|
+
});
|
|
4356
|
+
try {
|
|
4357
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4358
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4359
|
+
responseObject: {},
|
|
4360
|
+
body: yield response.json(),
|
|
4361
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
4362
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
4363
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
4364
|
+
responseHeaders: [
|
|
4365
|
+
{
|
|
4366
|
+
value: response.headers.get("opc-next-page"),
|
|
4367
|
+
key: "opcNextPage",
|
|
4368
|
+
dataType: "string"
|
|
4369
|
+
},
|
|
4370
|
+
{
|
|
4371
|
+
value: response.headers.get("opc-request-id"),
|
|
4372
|
+
key: "opcRequestId",
|
|
4373
|
+
dataType: "string"
|
|
4374
|
+
}
|
|
4375
|
+
]
|
|
4376
|
+
});
|
|
4377
|
+
return sdkResponse;
|
|
4378
|
+
}
|
|
4379
|
+
catch (err) {
|
|
4380
|
+
throw err;
|
|
4381
|
+
}
|
|
4382
|
+
});
|
|
4383
|
+
}
|
|
4384
|
+
/**
|
|
4385
|
+
* Lists the work requests in a compartment.
|
|
4386
|
+
*
|
|
4387
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4388
|
+
* @param ListWorkRequestsRequest
|
|
4389
|
+
* @return ListWorkRequestsResponse
|
|
4390
|
+
* @throws OciError when an error occurs
|
|
4391
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dbmulticloud/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
4392
|
+
*/
|
|
4393
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
4394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4395
|
+
if (this.logger)
|
|
4396
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
|
|
4397
|
+
const operationName = "listWorkRequests";
|
|
4398
|
+
const apiReferenceLink = "";
|
|
4399
|
+
const pathParams = {};
|
|
4400
|
+
const queryParams = {
|
|
4401
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
4402
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
4403
|
+
"status": listWorkRequestsRequest.status,
|
|
4404
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
4405
|
+
"page": listWorkRequestsRequest.page,
|
|
4406
|
+
"limit": listWorkRequestsRequest.limit,
|
|
4407
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
4408
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
4409
|
+
};
|
|
4410
|
+
let headerParams = {
|
|
4411
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4412
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
4413
|
+
};
|
|
4414
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4415
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
4416
|
+
if (this.logger)
|
|
4417
|
+
retrier.logger = this.logger;
|
|
4418
|
+
const request = yield oci_common_1.composeRequest({
|
|
4419
|
+
baseEndpoint: this._endpoint,
|
|
4420
|
+
defaultHeaders: this._defaultHeaders,
|
|
4421
|
+
path: "/workRequests",
|
|
4422
|
+
method: "GET",
|
|
4423
|
+
pathParams: pathParams,
|
|
4424
|
+
headerParams: headerParams,
|
|
4425
|
+
queryParams: queryParams
|
|
4426
|
+
});
|
|
4427
|
+
try {
|
|
4428
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4429
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4430
|
+
responseObject: {},
|
|
4431
|
+
body: yield response.json(),
|
|
4432
|
+
bodyKey: "workRequestSummaryCollection",
|
|
4433
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
4434
|
+
type: "model.WorkRequestSummaryCollection",
|
|
4435
|
+
responseHeaders: [
|
|
4436
|
+
{
|
|
4437
|
+
value: response.headers.get("opc-request-id"),
|
|
4438
|
+
key: "opcRequestId",
|
|
4439
|
+
dataType: "string"
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
value: response.headers.get("opc-next-page"),
|
|
4443
|
+
key: "opcNextPage",
|
|
4444
|
+
dataType: "string"
|
|
4445
|
+
}
|
|
4446
|
+
]
|
|
4447
|
+
});
|
|
4448
|
+
return sdkResponse;
|
|
4449
|
+
}
|
|
4450
|
+
catch (err) {
|
|
4451
|
+
throw err;
|
|
4452
|
+
}
|
|
4453
|
+
});
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4456
|
+
exports.WorkRequestClient = WorkRequestClient;
|
|
4457
|
+
WorkRequestClient.serviceEndpointTemplate = "https://dbmulticloud.{region}.oci.{secondLevelDomain}";
|
|
4458
|
+
WorkRequestClient.endpointServiceName = "";
|
|
4459
|
+
//# sourceMappingURL=client.js.map
|