oci-distributeddatabase 2.109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +31 -0
- package/index.js +54 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +840 -0
- package/lib/client.js +3881 -0
- package/lib/client.js.map +1 -0
- package/lib/distributedautonomousdbservice-waiter.d.ts +29 -0
- package/lib/distributedautonomousdbservice-waiter.js +65 -0
- package/lib/distributedautonomousdbservice-waiter.js.map +1 -0
- package/lib/distributeddbprivateendpointservice-waiter.d.ts +29 -0
- package/lib/distributeddbprivateendpointservice-waiter.js +65 -0
- package/lib/distributeddbprivateendpointservice-waiter.js.map +1 -0
- package/lib/distributeddbservice-waiter.d.ts +29 -0
- package/lib/distributeddbservice-waiter.js +65 -0
- package/lib/distributeddbservice-waiter.js.map +1 -0
- package/lib/distributeddbworkrequestservice-waiter.d.ts +27 -0
- package/lib/distributeddbworkrequestservice-waiter.js +44 -0
- package/lib/distributeddbworkrequestservice-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/add-distributed-autonomous-database-gds-control-node-details.d.ts +30 -0
- package/lib/model/add-distributed-autonomous-database-gds-control-node-details.js +29 -0
- package/lib/model/add-distributed-autonomous-database-gds-control-node-details.js.map +1 -0
- package/lib/model/add-distributed-database-gds-control-node-details.d.ts +30 -0
- package/lib/model/add-distributed-database-gds-control-node-details.js +29 -0
- package/lib/model/add-distributed-database-gds-control-node-details.js.map +1 -0
- package/lib/model/catalog-peer-with-dedicated-infra.d.ts +67 -0
- package/lib/model/catalog-peer-with-dedicated-infra.js +74 -0
- package/lib/model/catalog-peer-with-dedicated-infra.js.map +1 -0
- package/lib/model/catalog-peer-with-exadb-xs.d.ts +67 -0
- package/lib/model/catalog-peer-with-exadb-xs.js +72 -0
- package/lib/model/catalog-peer-with-exadb-xs.js.map +1 -0
- package/lib/model/change-distributed-autonomous-database-compartment-details.d.ts +27 -0
- package/lib/model/change-distributed-autonomous-database-compartment-details.js +29 -0
- package/lib/model/change-distributed-autonomous-database-compartment-details.js.map +1 -0
- package/lib/model/change-distributed-database-compartment-details.d.ts +27 -0
- package/lib/model/change-distributed-database-compartment-details.js +29 -0
- package/lib/model/change-distributed-database-compartment-details.js.map +1 -0
- package/lib/model/change-distributed-database-private-endpoint-compartment-details.d.ts +27 -0
- package/lib/model/change-distributed-database-private-endpoint-compartment-details.js +29 -0
- package/lib/model/change-distributed-database-private-endpoint-compartment-details.js.map +1 -0
- package/lib/model/change-distributed-db-backup-config-details.d.ts +23 -0
- package/lib/model/change-distributed-db-backup-config-details.js +57 -0
- package/lib/model/change-distributed-db-backup-config-details.js.map +1 -0
- package/lib/model/configure-distributed-autonomous-database-gsms-details.d.ts +32 -0
- package/lib/model/configure-distributed-autonomous-database-gsms-details.js +29 -0
- package/lib/model/configure-distributed-autonomous-database-gsms-details.js.map +1 -0
- package/lib/model/configure-distributed-database-gsms-details.d.ts +32 -0
- package/lib/model/configure-distributed-database-gsms-details.js +29 -0
- package/lib/model/configure-distributed-database-gsms-details.js.map +1 -0
- package/lib/model/create-distributed-autonomous-database-catalog-details.d.ts +22 -0
- package/lib/model/create-distributed-autonomous-database-catalog-details.js +68 -0
- package/lib/model/create-distributed-autonomous-database-catalog-details.js.map +1 -0
- package/lib/model/create-distributed-autonomous-database-catalog-with-dedicated-infra-details.d.ts +61 -0
- package/lib/model/create-distributed-autonomous-database-catalog-with-dedicated-infra-details.js +54 -0
- package/lib/model/create-distributed-autonomous-database-catalog-with-dedicated-infra-details.js.map +1 -0
- package/lib/model/create-distributed-autonomous-database-details.d.ts +143 -0
- package/lib/model/create-distributed-autonomous-database-details.js +90 -0
- package/lib/model/create-distributed-autonomous-database-details.js.map +1 -0
- package/lib/model/create-distributed-autonomous-database-shard-details.d.ts +22 -0
- package/lib/model/create-distributed-autonomous-database-shard-details.js +68 -0
- package/lib/model/create-distributed-autonomous-database-shard-details.js.map +1 -0
- package/lib/model/create-distributed-autonomous-database-shard-with-dedicated-infra-details.d.ts +68 -0
- package/lib/model/create-distributed-autonomous-database-shard-with-dedicated-infra-details.js +54 -0
- package/lib/model/create-distributed-autonomous-database-shard-with-dedicated-infra-details.js.map +1 -0
- package/lib/model/create-distributed-database-catalog-details.d.ts +22 -0
- package/lib/model/create-distributed-database-catalog-details.js +68 -0
- package/lib/model/create-distributed-database-catalog-details.js.map +1 -0
- package/lib/model/create-distributed-database-catalog-with-exadb-xs-details.d.ts +55 -0
- package/lib/model/create-distributed-database-catalog-with-exadb-xs-details.js +54 -0
- package/lib/model/create-distributed-database-catalog-with-exadb-xs-details.js.map +1 -0
- package/lib/model/create-distributed-database-details.d.ts +140 -0
- package/lib/model/create-distributed-database-details.js +91 -0
- package/lib/model/create-distributed-database-details.js.map +1 -0
- package/lib/model/create-distributed-database-private-endpoint-details.d.ts +60 -0
- package/lib/model/create-distributed-database-private-endpoint-details.js +29 -0
- package/lib/model/create-distributed-database-private-endpoint-details.js.map +1 -0
- package/lib/model/create-distributed-database-shard-details.d.ts +22 -0
- package/lib/model/create-distributed-database-shard-details.js +68 -0
- package/lib/model/create-distributed-database-shard-details.js.map +1 -0
- package/lib/model/create-distributed-database-shard-with-exadb-xs-details.d.ts +55 -0
- package/lib/model/create-distributed-database-shard-with-exadb-xs-details.js +54 -0
- package/lib/model/create-distributed-database-shard-with-exadb-xs-details.js.map +1 -0
- package/lib/model/distributed-autonomous-database-associated-with-private-endpoint.d.ts +29 -0
- package/lib/model/distributed-autonomous-database-associated-with-private-endpoint.js +29 -0
- package/lib/model/distributed-autonomous-database-associated-with-private-endpoint.js.map +1 -0
- package/lib/model/distributed-autonomous-database-catalog-with-dedicated-infra.d.ts +94 -0
- package/lib/model/distributed-autonomous-database-catalog-with-dedicated-infra.js +89 -0
- package/lib/model/distributed-autonomous-database-catalog-with-dedicated-infra.js.map +1 -0
- package/lib/model/distributed-autonomous-database-catalog.d.ts +34 -0
- package/lib/model/distributed-autonomous-database-catalog.js +68 -0
- package/lib/model/distributed-autonomous-database-catalog.js.map +1 -0
- package/lib/model/distributed-autonomous-database-collection.d.ts +26 -0
- package/lib/model/distributed-autonomous-database-collection.js +61 -0
- package/lib/model/distributed-autonomous-database-collection.js.map +1 -0
- package/lib/model/distributed-autonomous-database-connection-string.d.ts +27 -0
- package/lib/model/distributed-autonomous-database-connection-string.js +29 -0
- package/lib/model/distributed-autonomous-database-connection-string.js.map +1 -0
- package/lib/model/distributed-autonomous-database-gsm-image.d.ts +29 -0
- package/lib/model/distributed-autonomous-database-gsm-image.js +29 -0
- package/lib/model/distributed-autonomous-database-gsm-image.js.map +1 -0
- package/lib/model/distributed-autonomous-database-gsm.d.ts +72 -0
- package/lib/model/distributed-autonomous-database-gsm.js +80 -0
- package/lib/model/distributed-autonomous-database-gsm.js.map +1 -0
- package/lib/model/distributed-autonomous-database-shard-with-dedicated-infra.d.ts +100 -0
- package/lib/model/distributed-autonomous-database-shard-with-dedicated-infra.js +89 -0
- package/lib/model/distributed-autonomous-database-shard-with-dedicated-infra.js.map +1 -0
- package/lib/model/distributed-autonomous-database-shard.d.ts +34 -0
- package/lib/model/distributed-autonomous-database-shard.js +68 -0
- package/lib/model/distributed-autonomous-database-shard.js.map +1 -0
- package/lib/model/distributed-autonomous-database-summary.d.ts +160 -0
- package/lib/model/distributed-autonomous-database-summary.js +72 -0
- package/lib/model/distributed-autonomous-database-summary.js.map +1 -0
- package/lib/model/distributed-autonomous-database.d.ts +215 -0
- package/lib/model/distributed-autonomous-database.js +154 -0
- package/lib/model/distributed-autonomous-database.js.map +1 -0
- package/lib/model/distributed-autonomous-db-metadata.d.ts +27 -0
- package/lib/model/distributed-autonomous-db-metadata.js +29 -0
- package/lib/model/distributed-autonomous-db-metadata.js.map +1 -0
- package/lib/model/distributed-database-associated-with-private-endpoint.d.ts +29 -0
- package/lib/model/distributed-database-associated-with-private-endpoint.js +29 -0
- package/lib/model/distributed-database-associated-with-private-endpoint.js.map +1 -0
- package/lib/model/distributed-database-catalog-with-exadb-xs.d.ts +82 -0
- package/lib/model/distributed-database-catalog-with-exadb-xs.js +87 -0
- package/lib/model/distributed-database-catalog-with-exadb-xs.js.map +1 -0
- package/lib/model/distributed-database-catalog.d.ts +34 -0
- package/lib/model/distributed-database-catalog.js +68 -0
- package/lib/model/distributed-database-catalog.js.map +1 -0
- package/lib/model/distributed-database-collection.d.ts +26 -0
- package/lib/model/distributed-database-collection.js +61 -0
- package/lib/model/distributed-database-collection.js.map +1 -0
- package/lib/model/distributed-database-gsm.d.ts +72 -0
- package/lib/model/distributed-database-gsm.js +78 -0
- package/lib/model/distributed-database-gsm.js.map +1 -0
- package/lib/model/distributed-database-private-endpoint-collection.d.ts +26 -0
- package/lib/model/distributed-database-private-endpoint-collection.js +61 -0
- package/lib/model/distributed-database-private-endpoint-collection.js.map +1 -0
- package/lib/model/distributed-database-private-endpoint-summary.d.ts +94 -0
- package/lib/model/distributed-database-private-endpoint-summary.js +29 -0
- package/lib/model/distributed-database-private-endpoint-summary.js.map +1 -0
- package/lib/model/distributed-database-private-endpoint.d.ts +125 -0
- package/lib/model/distributed-database-private-endpoint.js +86 -0
- package/lib/model/distributed-database-private-endpoint.js.map +1 -0
- package/lib/model/distributed-database-shard-with-exadb-xs.d.ts +88 -0
- package/lib/model/distributed-database-shard-with-exadb-xs.js +87 -0
- package/lib/model/distributed-database-shard-with-exadb-xs.js.map +1 -0
- package/lib/model/distributed-database-shard.d.ts +34 -0
- package/lib/model/distributed-database-shard.js +68 -0
- package/lib/model/distributed-database-shard.js.map +1 -0
- package/lib/model/distributed-database-summary.d.ts +156 -0
- package/lib/model/distributed-database-summary.js +70 -0
- package/lib/model/distributed-database-summary.js.map +1 -0
- package/lib/model/distributed-database.d.ts +207 -0
- package/lib/model/distributed-database.js +148 -0
- package/lib/model/distributed-database.js.map +1 -0
- package/lib/model/distributed-db-backup-config.d.ts +138 -0
- package/lib/model/distributed-db-backup-config.js +126 -0
- package/lib/model/distributed-db-backup-config.js.map +1 -0
- package/lib/model/distributed-db-backup-destination.d.ts +72 -0
- package/lib/model/distributed-db-backup-destination.js +42 -0
- package/lib/model/distributed-db-backup-destination.js.map +1 -0
- package/lib/model/distributed-db-connection-string.d.ts +27 -0
- package/lib/model/distributed-db-connection-string.js +29 -0
- package/lib/model/distributed-db-connection-string.js.map +1 -0
- package/lib/model/distributed-db-gsm-image.d.ts +29 -0
- package/lib/model/distributed-db-gsm-image.js +29 -0
- package/lib/model/distributed-db-gsm-image.js.map +1 -0
- package/lib/model/distributed-db-metadata.d.ts +27 -0
- package/lib/model/distributed-db-metadata.js +29 -0
- package/lib/model/distributed-db-metadata.js.map +1 -0
- package/lib/model/generate-distributed-autonomous-database-wallet-details.d.ts +26 -0
- package/lib/model/generate-distributed-autonomous-database-wallet-details.js +29 -0
- package/lib/model/generate-distributed-autonomous-database-wallet-details.js.map +1 -0
- package/lib/model/generate-distributed-database-wallet-details.d.ts +26 -0
- package/lib/model/generate-distributed-database-wallet-details.js +29 -0
- package/lib/model/generate-distributed-database-wallet-details.js.map +1 -0
- package/lib/model/index.d.ts +168 -0
- package/lib/model/index.js +192 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +58 -0
- package/lib/model/operation-type.js +69 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/patch-distributed-autonomous-database-details.d.ts +30 -0
- package/lib/model/patch-distributed-autonomous-database-details.js +61 -0
- package/lib/model/patch-distributed-autonomous-database-details.js.map +1 -0
- package/lib/model/patch-distributed-database-details.d.ts +30 -0
- package/lib/model/patch-distributed-database-details.js +61 -0
- package/lib/model/patch-distributed-database-details.js.map +1 -0
- package/lib/model/patch-insert-instruction.d.ts +29 -0
- package/lib/model/patch-insert-instruction.js +54 -0
- package/lib/model/patch-insert-instruction.js.map +1 -0
- package/lib/model/patch-instruction.d.ts +29 -0
- package/lib/model/patch-instruction.js +76 -0
- package/lib/model/patch-instruction.js.map +1 -0
- package/lib/model/patch-merge-instruction.d.ts +35 -0
- package/lib/model/patch-merge-instruction.js +54 -0
- package/lib/model/patch-merge-instruction.js.map +1 -0
- package/lib/model/patch-remove-instruction.d.ts +26 -0
- package/lib/model/patch-remove-instruction.js +54 -0
- package/lib/model/patch-remove-instruction.js.map +1 -0
- package/lib/model/shard-peer-with-dedicated-infra.d.ts +67 -0
- package/lib/model/shard-peer-with-dedicated-infra.js +74 -0
- package/lib/model/shard-peer-with-dedicated-infra.js.map +1 -0
- package/lib/model/shard-peer-with-exadb-xs.d.ts +67 -0
- package/lib/model/shard-peer-with-exadb-xs.js +72 -0
- package/lib/model/shard-peer-with-exadb-xs.js.map +1 -0
- package/lib/model/sort-order.d.ts +28 -0
- package/lib/model/sort-order.js +39 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-distributed-autonomous-database-details.d.ts +43 -0
- package/lib/model/update-distributed-autonomous-database-details.js +29 -0
- package/lib/model/update-distributed-autonomous-database-details.js.map +1 -0
- package/lib/model/update-distributed-database-details.d.ts +43 -0
- package/lib/model/update-distributed-database-details.js +29 -0
- package/lib/model/update-distributed-database-details.js.map +1 -0
- package/lib/model/update-distributed-database-private-endpoint-details.d.ts +52 -0
- package/lib/model/update-distributed-database-private-endpoint-details.js +29 -0
- package/lib/model/update-distributed-database-private-endpoint-details.js.map +1 -0
- package/lib/model/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-details.d.ts +27 -0
- package/lib/model/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-details.js +29 -0
- package/lib/model/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-details.js.map +1 -0
- package/lib/model/upload-distributed-database-signed-certificate-and-generate-wallet-details.d.ts +27 -0
- package/lib/model/upload-distributed-database-signed-certificate-and-generate-wallet-details.js +29 -0
- package/lib/model/upload-distributed-database-signed-certificate-and-generate-wallet-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +67 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +67 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/add-distributed-autonomous-database-gds-control-node-request.d.ts +50 -0
- package/lib/request/add-distributed-autonomous-database-gds-control-node-request.js +15 -0
- package/lib/request/add-distributed-autonomous-database-gds-control-node-request.js.map +1 -0
- package/lib/request/add-distributed-database-gds-control-node-request.d.ts +50 -0
- package/lib/request/add-distributed-database-gds-control-node-request.js +15 -0
- package/lib/request/add-distributed-database-gds-control-node-request.js.map +1 -0
- package/lib/request/change-distributed-autonomous-database-compartment-request.d.ts +49 -0
- package/lib/request/change-distributed-autonomous-database-compartment-request.js +15 -0
- package/lib/request/change-distributed-autonomous-database-compartment-request.js.map +1 -0
- package/lib/request/change-distributed-database-compartment-request.d.ts +49 -0
- package/lib/request/change-distributed-database-compartment-request.js +15 -0
- package/lib/request/change-distributed-database-compartment-request.js.map +1 -0
- package/lib/request/change-distributed-database-private-endpoint-compartment-request.d.ts +49 -0
- package/lib/request/change-distributed-database-private-endpoint-compartment-request.js +15 -0
- package/lib/request/change-distributed-database-private-endpoint-compartment-request.js.map +1 -0
- package/lib/request/change-distributed-db-backup-config-request.d.ts +49 -0
- package/lib/request/change-distributed-db-backup-config-request.js +15 -0
- package/lib/request/change-distributed-db-backup-config-request.js.map +1 -0
- package/lib/request/configure-distributed-autonomous-database-gsms-request.d.ts +49 -0
- package/lib/request/configure-distributed-autonomous-database-gsms-request.js +15 -0
- package/lib/request/configure-distributed-autonomous-database-gsms-request.js.map +1 -0
- package/lib/request/configure-distributed-autonomous-database-sharding-request.d.ts +50 -0
- package/lib/request/configure-distributed-autonomous-database-sharding-request.js +15 -0
- package/lib/request/configure-distributed-autonomous-database-sharding-request.js.map +1 -0
- package/lib/request/configure-distributed-database-gsms-request.d.ts +49 -0
- package/lib/request/configure-distributed-database-gsms-request.js +15 -0
- package/lib/request/configure-distributed-database-gsms-request.js.map +1 -0
- package/lib/request/configure-distributed-database-sharding-request.d.ts +50 -0
- package/lib/request/configure-distributed-database-sharding-request.js +15 -0
- package/lib/request/configure-distributed-database-sharding-request.js.map +1 -0
- package/lib/request/create-distributed-autonomous-database-request.d.ts +36 -0
- package/lib/request/create-distributed-autonomous-database-request.js +15 -0
- package/lib/request/create-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/create-distributed-database-private-endpoint-request.d.ts +36 -0
- package/lib/request/create-distributed-database-private-endpoint-request.js +15 -0
- package/lib/request/create-distributed-database-private-endpoint-request.js.map +1 -0
- package/lib/request/create-distributed-database-request.d.ts +36 -0
- package/lib/request/create-distributed-database-request.js +15 -0
- package/lib/request/create-distributed-database-request.js.map +1 -0
- package/lib/request/delete-distributed-autonomous-database-request.d.ts +44 -0
- package/lib/request/delete-distributed-autonomous-database-request.js +15 -0
- package/lib/request/delete-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/delete-distributed-database-private-endpoint-request.d.ts +44 -0
- package/lib/request/delete-distributed-database-private-endpoint-request.js +15 -0
- package/lib/request/delete-distributed-database-private-endpoint-request.js.map +1 -0
- package/lib/request/delete-distributed-database-request.d.ts +44 -0
- package/lib/request/delete-distributed-database-request.js +15 -0
- package/lib/request/delete-distributed-database-request.js.map +1 -0
- package/lib/request/download-distributed-autonomous-database-gsm-certificate-signing-request-request.d.ts +44 -0
- package/lib/request/download-distributed-autonomous-database-gsm-certificate-signing-request-request.js +15 -0
- package/lib/request/download-distributed-autonomous-database-gsm-certificate-signing-request-request.js.map +1 -0
- package/lib/request/download-distributed-database-gsm-certificate-signing-request-request.d.ts +44 -0
- package/lib/request/download-distributed-database-gsm-certificate-signing-request-request.js +15 -0
- package/lib/request/download-distributed-database-gsm-certificate-signing-request-request.js.map +1 -0
- package/lib/request/generate-distributed-autonomous-database-gsm-certificate-signing-request-request.d.ts +48 -0
- package/lib/request/generate-distributed-autonomous-database-gsm-certificate-signing-request-request.js +15 -0
- package/lib/request/generate-distributed-autonomous-database-gsm-certificate-signing-request-request.js.map +1 -0
- package/lib/request/generate-distributed-autonomous-database-wallet-request.d.ts +49 -0
- package/lib/request/generate-distributed-autonomous-database-wallet-request.js +15 -0
- package/lib/request/generate-distributed-autonomous-database-wallet-request.js.map +1 -0
- package/lib/request/generate-distributed-database-gsm-certificate-signing-request-request.d.ts +48 -0
- package/lib/request/generate-distributed-database-gsm-certificate-signing-request-request.js +15 -0
- package/lib/request/generate-distributed-database-gsm-certificate-signing-request-request.js.map +1 -0
- package/lib/request/generate-distributed-database-wallet-request.d.ts +49 -0
- package/lib/request/generate-distributed-database-wallet-request.js +15 -0
- package/lib/request/generate-distributed-database-wallet-request.js.map +1 -0
- package/lib/request/get-distributed-autonomous-database-request.d.ts +40 -0
- package/lib/request/get-distributed-autonomous-database-request.js +15 -0
- package/lib/request/get-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/get-distributed-database-private-endpoint-request.d.ts +35 -0
- package/lib/request/get-distributed-database-private-endpoint-request.js +15 -0
- package/lib/request/get-distributed-database-private-endpoint-request.js.map +1 -0
- package/lib/request/get-distributed-database-request.d.ts +40 -0
- package/lib/request/get-distributed-database-request.js +15 -0
- package/lib/request/get-distributed-database-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 +108 -0
- package/lib/request/index.js +47 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-distributed-autonomous-databases-request.d.ts +67 -0
- package/lib/request/list-distributed-autonomous-databases-request.js +24 -0
- package/lib/request/list-distributed-autonomous-databases-request.js.map +1 -0
- package/lib/request/list-distributed-database-private-endpoints-request.d.ts +58 -0
- package/lib/request/list-distributed-database-private-endpoints-request.js +24 -0
- package/lib/request/list-distributed-database-private-endpoints-request.js.map +1 -0
- package/lib/request/list-distributed-databases-request.d.ts +67 -0
- package/lib/request/list-distributed-databases-request.js +24 -0
- package/lib/request/list-distributed-databases-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-distributed-autonomous-database-request.d.ts +49 -0
- package/lib/request/patch-distributed-autonomous-database-request.js +15 -0
- package/lib/request/patch-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/patch-distributed-database-request.d.ts +49 -0
- package/lib/request/patch-distributed-database-request.js +15 -0
- package/lib/request/patch-distributed-database-request.js.map +1 -0
- package/lib/request/reinstate-proxy-instance-request.d.ts +44 -0
- package/lib/request/reinstate-proxy-instance-request.js +15 -0
- package/lib/request/reinstate-proxy-instance-request.js.map +1 -0
- package/lib/request/rotate-distributed-autonomous-database-passwords-request.d.ts +44 -0
- package/lib/request/rotate-distributed-autonomous-database-passwords-request.js +15 -0
- package/lib/request/rotate-distributed-autonomous-database-passwords-request.js.map +1 -0
- package/lib/request/rotate-distributed-database-passwords-request.d.ts +44 -0
- package/lib/request/rotate-distributed-database-passwords-request.js +15 -0
- package/lib/request/rotate-distributed-database-passwords-request.js.map +1 -0
- package/lib/request/start-distributed-autonomous-database-request.d.ts +44 -0
- package/lib/request/start-distributed-autonomous-database-request.js +15 -0
- package/lib/request/start-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/start-distributed-database-request.d.ts +44 -0
- package/lib/request/start-distributed-database-request.js +15 -0
- package/lib/request/start-distributed-database-request.js.map +1 -0
- package/lib/request/stop-distributed-autonomous-database-request.d.ts +44 -0
- package/lib/request/stop-distributed-autonomous-database-request.js +15 -0
- package/lib/request/stop-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/stop-distributed-database-request.d.ts +44 -0
- package/lib/request/stop-distributed-database-request.js +15 -0
- package/lib/request/stop-distributed-database-request.js.map +1 -0
- package/lib/request/update-distributed-autonomous-database-request.d.ts +40 -0
- package/lib/request/update-distributed-autonomous-database-request.js +15 -0
- package/lib/request/update-distributed-autonomous-database-request.js.map +1 -0
- package/lib/request/update-distributed-database-private-endpoint-request.d.ts +49 -0
- package/lib/request/update-distributed-database-private-endpoint-request.js +15 -0
- package/lib/request/update-distributed-database-private-endpoint-request.js.map +1 -0
- package/lib/request/update-distributed-database-request.d.ts +40 -0
- package/lib/request/update-distributed-database-request.js +15 -0
- package/lib/request/update-distributed-database-request.js.map +1 -0
- package/lib/request/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-request.d.ts +51 -0
- package/lib/request/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-request.js +15 -0
- package/lib/request/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-request.js.map +1 -0
- package/lib/request/upload-distributed-database-signed-certificate-and-generate-wallet-request.d.ts +51 -0
- package/lib/request/upload-distributed-database-signed-certificate-and-generate-wallet-request.js +15 -0
- package/lib/request/upload-distributed-database-signed-certificate-and-generate-wallet-request.js.map +1 -0
- package/lib/request/validate-distributed-autonomous-database-network-request.d.ts +58 -0
- package/lib/request/validate-distributed-autonomous-database-network-request.js +15 -0
- package/lib/request/validate-distributed-autonomous-database-network-request.js.map +1 -0
- package/lib/request/validate-distributed-database-network-request.d.ts +58 -0
- package/lib/request/validate-distributed-database-network-request.js +15 -0
- package/lib/request/validate-distributed-database-network-request.js.map +1 -0
- package/lib/response/add-distributed-autonomous-database-gds-control-node-response.d.ts +25 -0
- package/lib/response/add-distributed-autonomous-database-gds-control-node-response.js +15 -0
- package/lib/response/add-distributed-autonomous-database-gds-control-node-response.js.map +1 -0
- package/lib/response/add-distributed-database-gds-control-node-response.d.ts +25 -0
- package/lib/response/add-distributed-database-gds-control-node-response.js +15 -0
- package/lib/response/add-distributed-database-gds-control-node-response.js.map +1 -0
- package/lib/response/change-distributed-autonomous-database-compartment-response.d.ts +25 -0
- package/lib/response/change-distributed-autonomous-database-compartment-response.js +15 -0
- package/lib/response/change-distributed-autonomous-database-compartment-response.js.map +1 -0
- package/lib/response/change-distributed-database-compartment-response.d.ts +25 -0
- package/lib/response/change-distributed-database-compartment-response.js +15 -0
- package/lib/response/change-distributed-database-compartment-response.js.map +1 -0
- package/lib/response/change-distributed-database-private-endpoint-compartment-response.d.ts +25 -0
- package/lib/response/change-distributed-database-private-endpoint-compartment-response.js +15 -0
- package/lib/response/change-distributed-database-private-endpoint-compartment-response.js.map +1 -0
- package/lib/response/change-distributed-db-backup-config-response.d.ts +25 -0
- package/lib/response/change-distributed-db-backup-config-response.js +15 -0
- package/lib/response/change-distributed-db-backup-config-response.js.map +1 -0
- package/lib/response/configure-distributed-autonomous-database-gsms-response.d.ts +25 -0
- package/lib/response/configure-distributed-autonomous-database-gsms-response.js +15 -0
- package/lib/response/configure-distributed-autonomous-database-gsms-response.js.map +1 -0
- package/lib/response/configure-distributed-autonomous-database-sharding-response.d.ts +25 -0
- package/lib/response/configure-distributed-autonomous-database-sharding-response.js +15 -0
- package/lib/response/configure-distributed-autonomous-database-sharding-response.js.map +1 -0
- package/lib/response/configure-distributed-database-gsms-response.d.ts +25 -0
- package/lib/response/configure-distributed-database-gsms-response.js +15 -0
- package/lib/response/configure-distributed-database-gsms-response.js.map +1 -0
- package/lib/response/configure-distributed-database-sharding-response.d.ts +25 -0
- package/lib/response/configure-distributed-database-sharding-response.js +15 -0
- package/lib/response/configure-distributed-database-sharding-response.js.map +1 -0
- package/lib/response/create-distributed-autonomous-database-response.d.ts +35 -0
- package/lib/response/create-distributed-autonomous-database-response.js +15 -0
- package/lib/response/create-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/create-distributed-database-private-endpoint-response.d.ts +35 -0
- package/lib/response/create-distributed-database-private-endpoint-response.js +15 -0
- package/lib/response/create-distributed-database-private-endpoint-response.js.map +1 -0
- package/lib/response/create-distributed-database-response.d.ts +35 -0
- package/lib/response/create-distributed-database-response.js +15 -0
- package/lib/response/create-distributed-database-response.js.map +1 -0
- package/lib/response/delete-distributed-autonomous-database-response.d.ts +25 -0
- package/lib/response/delete-distributed-autonomous-database-response.js +15 -0
- package/lib/response/delete-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/delete-distributed-database-private-endpoint-response.d.ts +25 -0
- package/lib/response/delete-distributed-database-private-endpoint-response.js +15 -0
- package/lib/response/delete-distributed-database-private-endpoint-response.js.map +1 -0
- package/lib/response/delete-distributed-database-response.d.ts +25 -0
- package/lib/response/delete-distributed-database-response.js +15 -0
- package/lib/response/delete-distributed-database-response.js.map +1 -0
- package/lib/response/download-distributed-autonomous-database-gsm-certificate-signing-request-response.d.ts +39 -0
- package/lib/response/download-distributed-autonomous-database-gsm-certificate-signing-request-response.js +15 -0
- package/lib/response/download-distributed-autonomous-database-gsm-certificate-signing-request-response.js.map +1 -0
- package/lib/response/download-distributed-database-gsm-certificate-signing-request-response.d.ts +39 -0
- package/lib/response/download-distributed-database-gsm-certificate-signing-request-response.js +15 -0
- package/lib/response/download-distributed-database-gsm-certificate-signing-request-response.js.map +1 -0
- package/lib/response/generate-distributed-autonomous-database-gsm-certificate-signing-request-response.d.ts +25 -0
- package/lib/response/generate-distributed-autonomous-database-gsm-certificate-signing-request-response.js +15 -0
- package/lib/response/generate-distributed-autonomous-database-gsm-certificate-signing-request-response.js.map +1 -0
- package/lib/response/generate-distributed-autonomous-database-wallet-response.d.ts +39 -0
- package/lib/response/generate-distributed-autonomous-database-wallet-response.js +15 -0
- package/lib/response/generate-distributed-autonomous-database-wallet-response.js.map +1 -0
- package/lib/response/generate-distributed-database-gsm-certificate-signing-request-response.d.ts +25 -0
- package/lib/response/generate-distributed-database-gsm-certificate-signing-request-response.js +15 -0
- package/lib/response/generate-distributed-database-gsm-certificate-signing-request-response.js.map +1 -0
- package/lib/response/generate-distributed-database-wallet-response.d.ts +39 -0
- package/lib/response/generate-distributed-database-wallet-response.js +15 -0
- package/lib/response/generate-distributed-database-wallet-response.js.map +1 -0
- package/lib/response/get-distributed-autonomous-database-response.d.ts +30 -0
- package/lib/response/get-distributed-autonomous-database-response.js +15 -0
- package/lib/response/get-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/get-distributed-database-private-endpoint-response.d.ts +30 -0
- package/lib/response/get-distributed-database-private-endpoint-response.js +15 -0
- package/lib/response/get-distributed-database-private-endpoint-response.js.map +1 -0
- package/lib/response/get-distributed-database-response.d.ts +30 -0
- package/lib/response/get-distributed-database-response.js +15 -0
- package/lib/response/get-distributed-database-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +29 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +108 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-distributed-autonomous-databases-response.d.ts +32 -0
- package/lib/response/list-distributed-autonomous-databases-response.js +15 -0
- package/lib/response/list-distributed-autonomous-databases-response.js.map +1 -0
- package/lib/response/list-distributed-database-private-endpoints-response.d.ts +32 -0
- package/lib/response/list-distributed-database-private-endpoints-response.js +15 -0
- package/lib/response/list-distributed-database-private-endpoints-response.js.map +1 -0
- package/lib/response/list-distributed-databases-response.d.ts +32 -0
- package/lib/response/list-distributed-databases-response.js +15 -0
- package/lib/response/list-distributed-databases-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/patch-distributed-autonomous-database-response.d.ts +25 -0
- package/lib/response/patch-distributed-autonomous-database-response.js +15 -0
- package/lib/response/patch-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/patch-distributed-database-response.d.ts +25 -0
- package/lib/response/patch-distributed-database-response.js +15 -0
- package/lib/response/patch-distributed-database-response.js.map +1 -0
- package/lib/response/reinstate-proxy-instance-response.d.ts +25 -0
- package/lib/response/reinstate-proxy-instance-response.js +15 -0
- package/lib/response/reinstate-proxy-instance-response.js.map +1 -0
- package/lib/response/rotate-distributed-autonomous-database-passwords-response.d.ts +25 -0
- package/lib/response/rotate-distributed-autonomous-database-passwords-response.js +15 -0
- package/lib/response/rotate-distributed-autonomous-database-passwords-response.js.map +1 -0
- package/lib/response/rotate-distributed-database-passwords-response.d.ts +25 -0
- package/lib/response/rotate-distributed-database-passwords-response.js +15 -0
- package/lib/response/rotate-distributed-database-passwords-response.js.map +1 -0
- package/lib/response/start-distributed-autonomous-database-response.d.ts +25 -0
- package/lib/response/start-distributed-autonomous-database-response.js +15 -0
- package/lib/response/start-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/start-distributed-database-response.d.ts +25 -0
- package/lib/response/start-distributed-database-response.js +15 -0
- package/lib/response/start-distributed-database-response.js.map +1 -0
- package/lib/response/stop-distributed-autonomous-database-response.d.ts +25 -0
- package/lib/response/stop-distributed-autonomous-database-response.js +15 -0
- package/lib/response/stop-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/stop-distributed-database-response.d.ts +25 -0
- package/lib/response/stop-distributed-database-response.js +15 -0
- package/lib/response/stop-distributed-database-response.js.map +1 -0
- package/lib/response/update-distributed-autonomous-database-response.d.ts +30 -0
- package/lib/response/update-distributed-autonomous-database-response.js +15 -0
- package/lib/response/update-distributed-autonomous-database-response.js.map +1 -0
- package/lib/response/update-distributed-database-private-endpoint-response.d.ts +30 -0
- package/lib/response/update-distributed-database-private-endpoint-response.js +15 -0
- package/lib/response/update-distributed-database-private-endpoint-response.js.map +1 -0
- package/lib/response/update-distributed-database-response.d.ts +30 -0
- package/lib/response/update-distributed-database-response.js +15 -0
- package/lib/response/update-distributed-database-response.js.map +1 -0
- package/lib/response/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-response.d.ts +25 -0
- package/lib/response/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-response.js +15 -0
- package/lib/response/upload-distributed-autonomous-database-signed-certificate-and-generate-wallet-response.js.map +1 -0
- package/lib/response/upload-distributed-database-signed-certificate-and-generate-wallet-response.d.ts +25 -0
- package/lib/response/upload-distributed-database-signed-certificate-and-generate-wallet-response.js +15 -0
- package/lib/response/upload-distributed-database-signed-certificate-and-generate-wallet-response.js.map +1 -0
- package/lib/response/validate-distributed-autonomous-database-network-response.d.ts +25 -0
- package/lib/response/validate-distributed-autonomous-database-network-response.js +15 -0
- package/lib/response/validate-distributed-autonomous-database-network-response.js.map +1 -0
- package/lib/response/validate-distributed-database-network-response.d.ts +25 -0
- package/lib/response/validate-distributed-database-network-response.js +15 -0
- package/lib/response/validate-distributed-database-network-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,3881 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Globally Distributed Database
|
|
4
|
+
* Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases.
|
|
5
|
+
* OpenAPI spec version: 20250101
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.DistributedDbWorkRequestServiceClient = exports.DistributedDbWorkRequestServiceApiKeys = exports.DistributedDbServiceClient = exports.DistributedDbServiceApiKeys = exports.DistributedDbPrivateEndpointServiceClient = exports.DistributedDbPrivateEndpointServiceApiKeys = exports.DistributedAutonomousDbServiceClient = exports.DistributedAutonomousDbServiceApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const distributedautonomousdbservice_waiter_1 = require("./distributedautonomousdbservice-waiter");
|
|
47
|
+
const distributeddbprivateendpointservice_waiter_1 = require("./distributeddbprivateendpointservice-waiter");
|
|
48
|
+
const distributeddbservice_waiter_1 = require("./distributeddbservice-waiter");
|
|
49
|
+
const distributeddbworkrequestservice_waiter_1 = require("./distributeddbworkrequestservice-waiter");
|
|
50
|
+
const oci_common_1 = require("oci-common");
|
|
51
|
+
const Breaker = require("opossum");
|
|
52
|
+
// ===============================================
|
|
53
|
+
// This file is autogenerated - Please do not edit
|
|
54
|
+
// ===============================================
|
|
55
|
+
var DistributedAutonomousDbServiceApiKeys;
|
|
56
|
+
(function (DistributedAutonomousDbServiceApiKeys) {
|
|
57
|
+
})(DistributedAutonomousDbServiceApiKeys = exports.DistributedAutonomousDbServiceApiKeys || (exports.DistributedAutonomousDbServiceApiKeys = {}));
|
|
58
|
+
/**
|
|
59
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
60
|
+
*/
|
|
61
|
+
class DistributedAutonomousDbServiceClient {
|
|
62
|
+
constructor(params, clientConfiguration) {
|
|
63
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
64
|
+
this["_endpoint"] = "";
|
|
65
|
+
this["_defaultHeaders"] = {};
|
|
66
|
+
this._circuitBreaker = null;
|
|
67
|
+
this._httpOptions = undefined;
|
|
68
|
+
this._bodyDuplexMode = undefined;
|
|
69
|
+
this.targetService = "DistributedAutonomousDbService";
|
|
70
|
+
this._regionId = "";
|
|
71
|
+
this._lastSetRegionOrRegionId = "";
|
|
72
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
73
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
74
|
+
: null;
|
|
75
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
76
|
+
if (clientConfiguration) {
|
|
77
|
+
this._clientConfiguration = clientConfiguration;
|
|
78
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
79
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
80
|
+
: null;
|
|
81
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
82
|
+
? clientConfiguration.httpOptions
|
|
83
|
+
: undefined;
|
|
84
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
85
|
+
? clientConfiguration.bodyDuplexMode
|
|
86
|
+
: undefined;
|
|
87
|
+
}
|
|
88
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("distributeddatabase")) {
|
|
89
|
+
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 : ";
|
|
90
|
+
throw errmsg.concat("distributeddatabase");
|
|
91
|
+
}
|
|
92
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
93
|
+
const specCircuitBreakerEnabled = true;
|
|
94
|
+
if (!this._circuitBreaker &&
|
|
95
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
96
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
97
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
98
|
+
}
|
|
99
|
+
this._httpClient =
|
|
100
|
+
params.httpClient ||
|
|
101
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
102
|
+
if (params.authenticationDetailsProvider &&
|
|
103
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
104
|
+
const provider = params.authenticationDetailsProvider;
|
|
105
|
+
if (provider.getRegion()) {
|
|
106
|
+
this.region = provider.getRegion();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
112
|
+
*/
|
|
113
|
+
get endpoint() {
|
|
114
|
+
return this._endpoint;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
118
|
+
* @param endpoint The endpoint of the service.
|
|
119
|
+
*/
|
|
120
|
+
set endpoint(endpoint) {
|
|
121
|
+
this._endpoint = endpoint;
|
|
122
|
+
this._endpoint = this._endpoint + "/20250101";
|
|
123
|
+
if (this.logger)
|
|
124
|
+
this.logger.info(`DistributedAutonomousDbServiceClient endpoint set to ${this._endpoint}`);
|
|
125
|
+
}
|
|
126
|
+
get logger() {
|
|
127
|
+
return common.LOG.logger;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
131
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
132
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
133
|
+
*/
|
|
134
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
135
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
136
|
+
if (this.logger)
|
|
137
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
138
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedAutonomousDbServiceClient.serviceEndpointTemplate, this._region, DistributedAutonomousDbServiceClient.endpointServiceName);
|
|
140
|
+
}
|
|
141
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
142
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedAutonomousDbServiceClient.serviceEndpointTemplate, this._regionId, DistributedAutonomousDbServiceClient.endpointServiceName);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
147
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
148
|
+
* @param region The region of the service.
|
|
149
|
+
*/
|
|
150
|
+
set region(region) {
|
|
151
|
+
this._region = region;
|
|
152
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedAutonomousDbServiceClient.serviceEndpointTemplate, region, DistributedAutonomousDbServiceClient.endpointServiceName);
|
|
153
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
157
|
+
*
|
|
158
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
159
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
160
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
161
|
+
* @param regionId The public region ID.
|
|
162
|
+
*/
|
|
163
|
+
set regionId(regionId) {
|
|
164
|
+
this._regionId = regionId;
|
|
165
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedAutonomousDbServiceClient.serviceEndpointTemplate, regionId, DistributedAutonomousDbServiceClient.endpointServiceName);
|
|
166
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates a new DistributedAutonomousDbServiceWaiter for resources for this service.
|
|
170
|
+
*
|
|
171
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
172
|
+
* @return The service waiters.
|
|
173
|
+
*/
|
|
174
|
+
createWaiters(config) {
|
|
175
|
+
this._waiters = new distributedautonomousdbservice_waiter_1.DistributedAutonomousDbServiceWaiter(this, config);
|
|
176
|
+
return this._waiters;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Gets the waiters available for resources for this service.
|
|
180
|
+
*
|
|
181
|
+
* @return The service waiters.
|
|
182
|
+
*/
|
|
183
|
+
getWaiters() {
|
|
184
|
+
if (this._waiters) {
|
|
185
|
+
return this._waiters;
|
|
186
|
+
}
|
|
187
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
191
|
+
*/
|
|
192
|
+
shutdownCircuitBreaker() {
|
|
193
|
+
if (this._circuitBreaker) {
|
|
194
|
+
this._circuitBreaker.shutdown();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
199
|
+
*/
|
|
200
|
+
closeProvider() {
|
|
201
|
+
if (this._authProvider) {
|
|
202
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
203
|
+
(this._authProvider).closeProvider();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Close the client once it is no longer needed
|
|
208
|
+
*/
|
|
209
|
+
close() {
|
|
210
|
+
this.shutdownCircuitBreaker();
|
|
211
|
+
this.closeProvider();
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Add new Global database services control(GDS CTL) node for the Globally distributed autonomous database.
|
|
215
|
+
*
|
|
216
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
217
|
+
* @param AddDistributedAutonomousDatabaseGdsControlNodeRequest
|
|
218
|
+
* @return AddDistributedAutonomousDatabaseGdsControlNodeResponse
|
|
219
|
+
* @throws OciError when an error occurs
|
|
220
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/AddDistributedAutonomousDatabaseGdsControlNode.ts.html |here} to see how to use AddDistributedAutonomousDatabaseGdsControlNode API.
|
|
221
|
+
*/
|
|
222
|
+
addDistributedAutonomousDatabaseGdsControlNode(addDistributedAutonomousDatabaseGdsControlNodeRequest) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
if (this.logger)
|
|
225
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#addDistributedAutonomousDatabaseGdsControlNode.");
|
|
226
|
+
const operationName = "addDistributedAutonomousDatabaseGdsControlNode";
|
|
227
|
+
const apiReferenceLink = "";
|
|
228
|
+
const pathParams = {
|
|
229
|
+
"{distributedAutonomousDatabaseId}": addDistributedAutonomousDatabaseGdsControlNodeRequest.distributedAutonomousDatabaseId
|
|
230
|
+
};
|
|
231
|
+
const queryParams = {};
|
|
232
|
+
let headerParams = {
|
|
233
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
234
|
+
"opc-request-id": addDistributedAutonomousDatabaseGdsControlNodeRequest.opcRequestId,
|
|
235
|
+
"if-match": addDistributedAutonomousDatabaseGdsControlNodeRequest.ifMatch,
|
|
236
|
+
"opc-retry-token": addDistributedAutonomousDatabaseGdsControlNodeRequest.opcRetryToken
|
|
237
|
+
};
|
|
238
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
239
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDistributedAutonomousDatabaseGdsControlNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
240
|
+
if (this.logger)
|
|
241
|
+
retrier.logger = this.logger;
|
|
242
|
+
const request = yield oci_common_1.composeRequest({
|
|
243
|
+
baseEndpoint: this._endpoint,
|
|
244
|
+
defaultHeaders: this._defaultHeaders,
|
|
245
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/addGdsControlNode",
|
|
246
|
+
method: "POST",
|
|
247
|
+
bodyContent: common.ObjectSerializer.serialize(addDistributedAutonomousDatabaseGdsControlNodeRequest.addDistributedAutonomousDatabaseGdsControlNodeDetails, "AddDistributedAutonomousDatabaseGdsControlNodeDetails", model.AddDistributedAutonomousDatabaseGdsControlNodeDetails.getJsonObj),
|
|
248
|
+
pathParams: pathParams,
|
|
249
|
+
headerParams: headerParams,
|
|
250
|
+
queryParams: queryParams
|
|
251
|
+
});
|
|
252
|
+
try {
|
|
253
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
254
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
255
|
+
responseObject: {},
|
|
256
|
+
responseHeaders: [
|
|
257
|
+
{
|
|
258
|
+
value: response.headers.get("opc-work-request-id"),
|
|
259
|
+
key: "opcWorkRequestId",
|
|
260
|
+
dataType: "string"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
value: response.headers.get("opc-request-id"),
|
|
264
|
+
key: "opcRequestId",
|
|
265
|
+
dataType: "string"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
});
|
|
269
|
+
return sdkResponse;
|
|
270
|
+
}
|
|
271
|
+
catch (err) {
|
|
272
|
+
throw err;
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Move the Globally distributed autonomous database and its dependent resources to the specified compartment.
|
|
278
|
+
*
|
|
279
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
280
|
+
* @param ChangeDistributedAutonomousDatabaseCompartmentRequest
|
|
281
|
+
* @return ChangeDistributedAutonomousDatabaseCompartmentResponse
|
|
282
|
+
* @throws OciError when an error occurs
|
|
283
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ChangeDistributedAutonomousDatabaseCompartment.ts.html |here} to see how to use ChangeDistributedAutonomousDatabaseCompartment API.
|
|
284
|
+
*/
|
|
285
|
+
changeDistributedAutonomousDatabaseCompartment(changeDistributedAutonomousDatabaseCompartmentRequest) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
if (this.logger)
|
|
288
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#changeDistributedAutonomousDatabaseCompartment.");
|
|
289
|
+
const operationName = "changeDistributedAutonomousDatabaseCompartment";
|
|
290
|
+
const apiReferenceLink = "";
|
|
291
|
+
const pathParams = {
|
|
292
|
+
"{distributedAutonomousDatabaseId}": changeDistributedAutonomousDatabaseCompartmentRequest.distributedAutonomousDatabaseId
|
|
293
|
+
};
|
|
294
|
+
const queryParams = {};
|
|
295
|
+
let headerParams = {
|
|
296
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
297
|
+
"opc-request-id": changeDistributedAutonomousDatabaseCompartmentRequest.opcRequestId,
|
|
298
|
+
"if-match": changeDistributedAutonomousDatabaseCompartmentRequest.ifMatch,
|
|
299
|
+
"opc-retry-token": changeDistributedAutonomousDatabaseCompartmentRequest.opcRetryToken
|
|
300
|
+
};
|
|
301
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
302
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDistributedAutonomousDatabaseCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
303
|
+
if (this.logger)
|
|
304
|
+
retrier.logger = this.logger;
|
|
305
|
+
const request = yield oci_common_1.composeRequest({
|
|
306
|
+
baseEndpoint: this._endpoint,
|
|
307
|
+
defaultHeaders: this._defaultHeaders,
|
|
308
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/changeCompartment",
|
|
309
|
+
method: "POST",
|
|
310
|
+
bodyContent: common.ObjectSerializer.serialize(changeDistributedAutonomousDatabaseCompartmentRequest.changeDistributedAutonomousDatabaseCompartmentDetails, "ChangeDistributedAutonomousDatabaseCompartmentDetails", model.ChangeDistributedAutonomousDatabaseCompartmentDetails.getJsonObj),
|
|
311
|
+
pathParams: pathParams,
|
|
312
|
+
headerParams: headerParams,
|
|
313
|
+
queryParams: queryParams
|
|
314
|
+
});
|
|
315
|
+
try {
|
|
316
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
317
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
318
|
+
responseObject: {},
|
|
319
|
+
responseHeaders: [
|
|
320
|
+
{
|
|
321
|
+
value: response.headers.get("opc-request-id"),
|
|
322
|
+
key: "opcRequestId",
|
|
323
|
+
dataType: "string"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
value: response.headers.get("opc-work-request-id"),
|
|
327
|
+
key: "opcWorkRequestId",
|
|
328
|
+
dataType: "string"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
});
|
|
332
|
+
return sdkResponse;
|
|
333
|
+
}
|
|
334
|
+
catch (err) {
|
|
335
|
+
throw err;
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Configure new Global Service Manager(GSM aka shard manager) instances for the Globally distributed autonomous database.
|
|
341
|
+
*
|
|
342
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
343
|
+
* @param ConfigureDistributedAutonomousDatabaseGsmsRequest
|
|
344
|
+
* @return ConfigureDistributedAutonomousDatabaseGsmsResponse
|
|
345
|
+
* @throws OciError when an error occurs
|
|
346
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ConfigureDistributedAutonomousDatabaseGsms.ts.html |here} to see how to use ConfigureDistributedAutonomousDatabaseGsms API.
|
|
347
|
+
*/
|
|
348
|
+
configureDistributedAutonomousDatabaseGsms(configureDistributedAutonomousDatabaseGsmsRequest) {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
if (this.logger)
|
|
351
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#configureDistributedAutonomousDatabaseGsms.");
|
|
352
|
+
const operationName = "configureDistributedAutonomousDatabaseGsms";
|
|
353
|
+
const apiReferenceLink = "";
|
|
354
|
+
const pathParams = {
|
|
355
|
+
"{distributedAutonomousDatabaseId}": configureDistributedAutonomousDatabaseGsmsRequest.distributedAutonomousDatabaseId
|
|
356
|
+
};
|
|
357
|
+
const queryParams = {};
|
|
358
|
+
let headerParams = {
|
|
359
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
360
|
+
"opc-retry-token": configureDistributedAutonomousDatabaseGsmsRequest.opcRetryToken,
|
|
361
|
+
"opc-request-id": configureDistributedAutonomousDatabaseGsmsRequest.opcRequestId,
|
|
362
|
+
"if-match": configureDistributedAutonomousDatabaseGsmsRequest.ifMatch
|
|
363
|
+
};
|
|
364
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
365
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureDistributedAutonomousDatabaseGsmsRequest.retryConfiguration, specRetryConfiguration);
|
|
366
|
+
if (this.logger)
|
|
367
|
+
retrier.logger = this.logger;
|
|
368
|
+
const request = yield oci_common_1.composeRequest({
|
|
369
|
+
baseEndpoint: this._endpoint,
|
|
370
|
+
defaultHeaders: this._defaultHeaders,
|
|
371
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/configureGsms",
|
|
372
|
+
method: "POST",
|
|
373
|
+
bodyContent: common.ObjectSerializer.serialize(configureDistributedAutonomousDatabaseGsmsRequest.configureDistributedAutonomousDatabaseGsmsDetails, "ConfigureDistributedAutonomousDatabaseGsmsDetails", model.ConfigureDistributedAutonomousDatabaseGsmsDetails.getJsonObj),
|
|
374
|
+
pathParams: pathParams,
|
|
375
|
+
headerParams: headerParams,
|
|
376
|
+
queryParams: queryParams
|
|
377
|
+
});
|
|
378
|
+
try {
|
|
379
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
380
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
381
|
+
responseObject: {},
|
|
382
|
+
responseHeaders: [
|
|
383
|
+
{
|
|
384
|
+
value: response.headers.get("opc-work-request-id"),
|
|
385
|
+
key: "opcWorkRequestId",
|
|
386
|
+
dataType: "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
value: response.headers.get("opc-request-id"),
|
|
390
|
+
key: "opcRequestId",
|
|
391
|
+
dataType: "string"
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
});
|
|
395
|
+
return sdkResponse;
|
|
396
|
+
}
|
|
397
|
+
catch (err) {
|
|
398
|
+
throw err;
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Once all components of Globally distributed autonomous database are provisioned, and signed GSM certificates are successfully uploaded, this
|
|
404
|
+
* api shall be invoked to configure sharding on the Globally distributed autonomous database. Note that this 'ConfigureSharding' API also needs to be
|
|
405
|
+
* invoked after successfully adding a new shard to the Globally distributed autonomous database using PATCH api. If this API is not
|
|
406
|
+
* invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of
|
|
407
|
+
* the Globally distributed autonomous database.
|
|
408
|
+
*
|
|
409
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
410
|
+
* @param ConfigureDistributedAutonomousDatabaseShardingRequest
|
|
411
|
+
* @return ConfigureDistributedAutonomousDatabaseShardingResponse
|
|
412
|
+
* @throws OciError when an error occurs
|
|
413
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ConfigureDistributedAutonomousDatabaseSharding.ts.html |here} to see how to use ConfigureDistributedAutonomousDatabaseSharding API.
|
|
414
|
+
*/
|
|
415
|
+
configureDistributedAutonomousDatabaseSharding(configureDistributedAutonomousDatabaseShardingRequest) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
if (this.logger)
|
|
418
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#configureDistributedAutonomousDatabaseSharding.");
|
|
419
|
+
const operationName = "configureDistributedAutonomousDatabaseSharding";
|
|
420
|
+
const apiReferenceLink = "";
|
|
421
|
+
const pathParams = {
|
|
422
|
+
"{distributedAutonomousDatabaseId}": configureDistributedAutonomousDatabaseShardingRequest.distributedAutonomousDatabaseId
|
|
423
|
+
};
|
|
424
|
+
const queryParams = {
|
|
425
|
+
"isRebalanceRequired": configureDistributedAutonomousDatabaseShardingRequest.isRebalanceRequired
|
|
426
|
+
};
|
|
427
|
+
let headerParams = {
|
|
428
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
429
|
+
"opc-retry-token": configureDistributedAutonomousDatabaseShardingRequest.opcRetryToken,
|
|
430
|
+
"opc-request-id": configureDistributedAutonomousDatabaseShardingRequest.opcRequestId,
|
|
431
|
+
"if-match": configureDistributedAutonomousDatabaseShardingRequest.ifMatch
|
|
432
|
+
};
|
|
433
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
434
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureDistributedAutonomousDatabaseShardingRequest.retryConfiguration, specRetryConfiguration);
|
|
435
|
+
if (this.logger)
|
|
436
|
+
retrier.logger = this.logger;
|
|
437
|
+
const request = yield oci_common_1.composeRequest({
|
|
438
|
+
baseEndpoint: this._endpoint,
|
|
439
|
+
defaultHeaders: this._defaultHeaders,
|
|
440
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/configureSharding",
|
|
441
|
+
method: "POST",
|
|
442
|
+
pathParams: pathParams,
|
|
443
|
+
headerParams: headerParams,
|
|
444
|
+
queryParams: queryParams
|
|
445
|
+
});
|
|
446
|
+
try {
|
|
447
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
448
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
449
|
+
responseObject: {},
|
|
450
|
+
responseHeaders: [
|
|
451
|
+
{
|
|
452
|
+
value: response.headers.get("opc-work-request-id"),
|
|
453
|
+
key: "opcWorkRequestId",
|
|
454
|
+
dataType: "string"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
value: response.headers.get("opc-request-id"),
|
|
458
|
+
key: "opcRequestId",
|
|
459
|
+
dataType: "string"
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
});
|
|
463
|
+
return sdkResponse;
|
|
464
|
+
}
|
|
465
|
+
catch (err) {
|
|
466
|
+
throw err;
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Creates a Globally distributed autonomous database.
|
|
472
|
+
*
|
|
473
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
474
|
+
* @param CreateDistributedAutonomousDatabaseRequest
|
|
475
|
+
* @return CreateDistributedAutonomousDatabaseResponse
|
|
476
|
+
* @throws OciError when an error occurs
|
|
477
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/CreateDistributedAutonomousDatabase.ts.html |here} to see how to use CreateDistributedAutonomousDatabase API.
|
|
478
|
+
*/
|
|
479
|
+
createDistributedAutonomousDatabase(createDistributedAutonomousDatabaseRequest) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
481
|
+
if (this.logger)
|
|
482
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#createDistributedAutonomousDatabase.");
|
|
483
|
+
const operationName = "createDistributedAutonomousDatabase";
|
|
484
|
+
const apiReferenceLink = "";
|
|
485
|
+
const pathParams = {};
|
|
486
|
+
const queryParams = {};
|
|
487
|
+
let headerParams = {
|
|
488
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
489
|
+
"opc-retry-token": createDistributedAutonomousDatabaseRequest.opcRetryToken,
|
|
490
|
+
"opc-request-id": createDistributedAutonomousDatabaseRequest.opcRequestId
|
|
491
|
+
};
|
|
492
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
493
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
494
|
+
if (this.logger)
|
|
495
|
+
retrier.logger = this.logger;
|
|
496
|
+
const request = yield oci_common_1.composeRequest({
|
|
497
|
+
baseEndpoint: this._endpoint,
|
|
498
|
+
defaultHeaders: this._defaultHeaders,
|
|
499
|
+
path: "/distributedAutonomousDatabases",
|
|
500
|
+
method: "POST",
|
|
501
|
+
bodyContent: common.ObjectSerializer.serialize(createDistributedAutonomousDatabaseRequest.createDistributedAutonomousDatabaseDetails, "CreateDistributedAutonomousDatabaseDetails", model.CreateDistributedAutonomousDatabaseDetails.getJsonObj),
|
|
502
|
+
pathParams: pathParams,
|
|
503
|
+
headerParams: headerParams,
|
|
504
|
+
queryParams: queryParams
|
|
505
|
+
});
|
|
506
|
+
try {
|
|
507
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
508
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
509
|
+
responseObject: {},
|
|
510
|
+
body: yield response.json(),
|
|
511
|
+
bodyKey: "distributedAutonomousDatabase",
|
|
512
|
+
bodyModel: model.DistributedAutonomousDatabase,
|
|
513
|
+
type: "model.DistributedAutonomousDatabase",
|
|
514
|
+
responseHeaders: [
|
|
515
|
+
{
|
|
516
|
+
value: response.headers.get("opc-work-request-id"),
|
|
517
|
+
key: "opcWorkRequestId",
|
|
518
|
+
dataType: "string"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
value: response.headers.get("opc-request-id"),
|
|
522
|
+
key: "opcRequestId",
|
|
523
|
+
dataType: "string"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
value: response.headers.get("etag"),
|
|
527
|
+
key: "etag",
|
|
528
|
+
dataType: "string"
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
});
|
|
532
|
+
return sdkResponse;
|
|
533
|
+
}
|
|
534
|
+
catch (err) {
|
|
535
|
+
throw err;
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Terminate the given Globally distributed autonomous databases.
|
|
541
|
+
*
|
|
542
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
543
|
+
* @param DeleteDistributedAutonomousDatabaseRequest
|
|
544
|
+
* @return DeleteDistributedAutonomousDatabaseResponse
|
|
545
|
+
* @throws OciError when an error occurs
|
|
546
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/DeleteDistributedAutonomousDatabase.ts.html |here} to see how to use DeleteDistributedAutonomousDatabase API.
|
|
547
|
+
*/
|
|
548
|
+
deleteDistributedAutonomousDatabase(deleteDistributedAutonomousDatabaseRequest) {
|
|
549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
if (this.logger)
|
|
551
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#deleteDistributedAutonomousDatabase.");
|
|
552
|
+
const operationName = "deleteDistributedAutonomousDatabase";
|
|
553
|
+
const apiReferenceLink = "";
|
|
554
|
+
const pathParams = {
|
|
555
|
+
"{distributedAutonomousDatabaseId}": deleteDistributedAutonomousDatabaseRequest.distributedAutonomousDatabaseId
|
|
556
|
+
};
|
|
557
|
+
const queryParams = {};
|
|
558
|
+
let headerParams = {
|
|
559
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
560
|
+
"opc-request-id": deleteDistributedAutonomousDatabaseRequest.opcRequestId,
|
|
561
|
+
"opc-retry-token": deleteDistributedAutonomousDatabaseRequest.opcRetryToken,
|
|
562
|
+
"if-match": deleteDistributedAutonomousDatabaseRequest.ifMatch
|
|
563
|
+
};
|
|
564
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
565
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
566
|
+
if (this.logger)
|
|
567
|
+
retrier.logger = this.logger;
|
|
568
|
+
const request = yield oci_common_1.composeRequest({
|
|
569
|
+
baseEndpoint: this._endpoint,
|
|
570
|
+
defaultHeaders: this._defaultHeaders,
|
|
571
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}",
|
|
572
|
+
method: "DELETE",
|
|
573
|
+
pathParams: pathParams,
|
|
574
|
+
headerParams: headerParams,
|
|
575
|
+
queryParams: queryParams
|
|
576
|
+
});
|
|
577
|
+
try {
|
|
578
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
579
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
580
|
+
responseObject: {},
|
|
581
|
+
responseHeaders: [
|
|
582
|
+
{
|
|
583
|
+
value: response.headers.get("opc-work-request-id"),
|
|
584
|
+
key: "opcWorkRequestId",
|
|
585
|
+
dataType: "string"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
value: response.headers.get("opc-request-id"),
|
|
589
|
+
key: "opcRequestId",
|
|
590
|
+
dataType: "string"
|
|
591
|
+
}
|
|
592
|
+
]
|
|
593
|
+
});
|
|
594
|
+
return sdkResponse;
|
|
595
|
+
}
|
|
596
|
+
catch (err) {
|
|
597
|
+
throw err;
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Generate the common certificate signing request for GSMs. Download the <globalautonomousdb-prefix>.csr file from
|
|
603
|
+
* API response. Users can use this .csr file to generate the CA signed certificate, and as a next step
|
|
604
|
+
* use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed certificate to GSM, and
|
|
605
|
+
* generate wallets for the GSM instances of the Globally distributed autonomous database.
|
|
606
|
+
*
|
|
607
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
608
|
+
* @param DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest
|
|
609
|
+
* @return DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse
|
|
610
|
+
* @throws OciError when an error occurs
|
|
611
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest.ts.html |here} to see how to use DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest API.
|
|
612
|
+
*/
|
|
613
|
+
downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest(downloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest) {
|
|
614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
615
|
+
if (this.logger)
|
|
616
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest.");
|
|
617
|
+
const operationName = "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest";
|
|
618
|
+
const apiReferenceLink = "";
|
|
619
|
+
const pathParams = {
|
|
620
|
+
"{distributedAutonomousDatabaseId}": downloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.distributedAutonomousDatabaseId
|
|
621
|
+
};
|
|
622
|
+
const queryParams = {};
|
|
623
|
+
let headerParams = {
|
|
624
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
625
|
+
"opc-request-id": downloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.opcRequestId,
|
|
626
|
+
"if-match": downloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.ifMatch,
|
|
627
|
+
"opc-retry-token": downloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.opcRetryToken
|
|
628
|
+
};
|
|
629
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
630
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
631
|
+
if (this.logger)
|
|
632
|
+
retrier.logger = this.logger;
|
|
633
|
+
const request = yield oci_common_1.composeRequest({
|
|
634
|
+
baseEndpoint: this._endpoint,
|
|
635
|
+
defaultHeaders: this._defaultHeaders,
|
|
636
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/downloadGsmCertificateSigningRequest",
|
|
637
|
+
method: "POST",
|
|
638
|
+
pathParams: pathParams,
|
|
639
|
+
headerParams: headerParams,
|
|
640
|
+
queryParams: queryParams
|
|
641
|
+
});
|
|
642
|
+
try {
|
|
643
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
644
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
645
|
+
responseObject: {},
|
|
646
|
+
body: response.body,
|
|
647
|
+
bodyKey: "value",
|
|
648
|
+
bodyModel: "string",
|
|
649
|
+
responseHeaders: [
|
|
650
|
+
{
|
|
651
|
+
value: response.headers.get("opc-request-id"),
|
|
652
|
+
key: "opcRequestId",
|
|
653
|
+
dataType: "string"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
value: response.headers.get("etag"),
|
|
657
|
+
key: "etag",
|
|
658
|
+
dataType: "string"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
value: response.headers.get("content-length"),
|
|
662
|
+
key: "contentLength",
|
|
663
|
+
dataType: "number"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
value: response.headers.get("last-modified"),
|
|
667
|
+
key: "lastModified",
|
|
668
|
+
dataType: "Date"
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
});
|
|
672
|
+
return sdkResponse;
|
|
673
|
+
}
|
|
674
|
+
catch (err) {
|
|
675
|
+
throw err;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Generate the certificate signing request for GSM instances of the Globally distributed autonomous database. Once certificate signing
|
|
681
|
+
* request is generated, then customers can download the certificate signing request using
|
|
682
|
+
* 'downloadGsmCertificateSigningRequest' api call.
|
|
683
|
+
*
|
|
684
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
685
|
+
* @param GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest
|
|
686
|
+
* @return GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse
|
|
687
|
+
* @throws OciError when an error occurs
|
|
688
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest.ts.html |here} to see how to use GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest API.
|
|
689
|
+
*/
|
|
690
|
+
generateDistributedAutonomousDatabaseGsmCertificateSigningRequest(generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest) {
|
|
691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
692
|
+
if (this.logger)
|
|
693
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#generateDistributedAutonomousDatabaseGsmCertificateSigningRequest.");
|
|
694
|
+
const operationName = "generateDistributedAutonomousDatabaseGsmCertificateSigningRequest";
|
|
695
|
+
const apiReferenceLink = "";
|
|
696
|
+
const pathParams = {
|
|
697
|
+
"{distributedAutonomousDatabaseId}": generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.distributedAutonomousDatabaseId
|
|
698
|
+
};
|
|
699
|
+
const queryParams = {
|
|
700
|
+
"caBundleId": generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.caBundleId
|
|
701
|
+
};
|
|
702
|
+
let headerParams = {
|
|
703
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
704
|
+
"opc-request-id": generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.opcRequestId,
|
|
705
|
+
"if-match": generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.ifMatch,
|
|
706
|
+
"opc-retry-token": generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.opcRetryToken
|
|
707
|
+
};
|
|
708
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
709
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
710
|
+
if (this.logger)
|
|
711
|
+
retrier.logger = this.logger;
|
|
712
|
+
const request = yield oci_common_1.composeRequest({
|
|
713
|
+
baseEndpoint: this._endpoint,
|
|
714
|
+
defaultHeaders: this._defaultHeaders,
|
|
715
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/generateGsmCertificateSigningRequest",
|
|
716
|
+
method: "POST",
|
|
717
|
+
pathParams: pathParams,
|
|
718
|
+
headerParams: headerParams,
|
|
719
|
+
queryParams: queryParams
|
|
720
|
+
});
|
|
721
|
+
try {
|
|
722
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
723
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
724
|
+
responseObject: {},
|
|
725
|
+
responseHeaders: [
|
|
726
|
+
{
|
|
727
|
+
value: response.headers.get("opc-work-request-id"),
|
|
728
|
+
key: "opcWorkRequestId",
|
|
729
|
+
dataType: "string"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
value: response.headers.get("opc-request-id"),
|
|
733
|
+
key: "opcRequestId",
|
|
734
|
+
dataType: "string"
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
});
|
|
738
|
+
return sdkResponse;
|
|
739
|
+
}
|
|
740
|
+
catch (err) {
|
|
741
|
+
throw err;
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Generate the wallet associated with Globally distributed autonomous database.
|
|
747
|
+
*
|
|
748
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
749
|
+
* @param GenerateDistributedAutonomousDatabaseWalletRequest
|
|
750
|
+
* @return GenerateDistributedAutonomousDatabaseWalletResponse
|
|
751
|
+
* @throws OciError when an error occurs
|
|
752
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GenerateDistributedAutonomousDatabaseWallet.ts.html |here} to see how to use GenerateDistributedAutonomousDatabaseWallet API.
|
|
753
|
+
*/
|
|
754
|
+
generateDistributedAutonomousDatabaseWallet(generateDistributedAutonomousDatabaseWalletRequest) {
|
|
755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
756
|
+
if (this.logger)
|
|
757
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#generateDistributedAutonomousDatabaseWallet.");
|
|
758
|
+
const operationName = "generateDistributedAutonomousDatabaseWallet";
|
|
759
|
+
const apiReferenceLink = "";
|
|
760
|
+
const pathParams = {
|
|
761
|
+
"{distributedAutonomousDatabaseId}": generateDistributedAutonomousDatabaseWalletRequest.distributedAutonomousDatabaseId
|
|
762
|
+
};
|
|
763
|
+
const queryParams = {};
|
|
764
|
+
let headerParams = {
|
|
765
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
766
|
+
"opc-request-id": generateDistributedAutonomousDatabaseWalletRequest.opcRequestId,
|
|
767
|
+
"if-match": generateDistributedAutonomousDatabaseWalletRequest.ifMatch,
|
|
768
|
+
"opc-retry-token": generateDistributedAutonomousDatabaseWalletRequest.opcRetryToken
|
|
769
|
+
};
|
|
770
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
771
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDistributedAutonomousDatabaseWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
772
|
+
if (this.logger)
|
|
773
|
+
retrier.logger = this.logger;
|
|
774
|
+
const request = yield oci_common_1.composeRequest({
|
|
775
|
+
baseEndpoint: this._endpoint,
|
|
776
|
+
defaultHeaders: this._defaultHeaders,
|
|
777
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/generateWallet",
|
|
778
|
+
method: "POST",
|
|
779
|
+
bodyContent: common.ObjectSerializer.serialize(generateDistributedAutonomousDatabaseWalletRequest.generateDistributedAutonomousDatabaseWalletDetails, "GenerateDistributedAutonomousDatabaseWalletDetails", model.GenerateDistributedAutonomousDatabaseWalletDetails.getJsonObj),
|
|
780
|
+
pathParams: pathParams,
|
|
781
|
+
headerParams: headerParams,
|
|
782
|
+
queryParams: queryParams
|
|
783
|
+
});
|
|
784
|
+
try {
|
|
785
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
786
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
787
|
+
responseObject: {},
|
|
788
|
+
body: response.body,
|
|
789
|
+
bodyKey: "value",
|
|
790
|
+
bodyModel: "string",
|
|
791
|
+
responseHeaders: [
|
|
792
|
+
{
|
|
793
|
+
value: response.headers.get("opc-request-id"),
|
|
794
|
+
key: "opcRequestId",
|
|
795
|
+
dataType: "string"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
value: response.headers.get("etag"),
|
|
799
|
+
key: "etag",
|
|
800
|
+
dataType: "string"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
value: response.headers.get("content-length"),
|
|
804
|
+
key: "contentLength",
|
|
805
|
+
dataType: "number"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
value: response.headers.get("last-modified"),
|
|
809
|
+
key: "lastModified",
|
|
810
|
+
dataType: "Date"
|
|
811
|
+
}
|
|
812
|
+
]
|
|
813
|
+
});
|
|
814
|
+
return sdkResponse;
|
|
815
|
+
}
|
|
816
|
+
catch (err) {
|
|
817
|
+
throw err;
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Gets the details of the Globally distributed autonomous database identified by given id.
|
|
823
|
+
*
|
|
824
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
825
|
+
* @param GetDistributedAutonomousDatabaseRequest
|
|
826
|
+
* @return GetDistributedAutonomousDatabaseResponse
|
|
827
|
+
* @throws OciError when an error occurs
|
|
828
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GetDistributedAutonomousDatabase.ts.html |here} to see how to use GetDistributedAutonomousDatabase API.
|
|
829
|
+
*/
|
|
830
|
+
getDistributedAutonomousDatabase(getDistributedAutonomousDatabaseRequest) {
|
|
831
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
832
|
+
if (this.logger)
|
|
833
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#getDistributedAutonomousDatabase.");
|
|
834
|
+
const operationName = "getDistributedAutonomousDatabase";
|
|
835
|
+
const apiReferenceLink = "";
|
|
836
|
+
const pathParams = {
|
|
837
|
+
"{distributedAutonomousDatabaseId}": getDistributedAutonomousDatabaseRequest.distributedAutonomousDatabaseId
|
|
838
|
+
};
|
|
839
|
+
const queryParams = {
|
|
840
|
+
"metadata": getDistributedAutonomousDatabaseRequest.metadata
|
|
841
|
+
};
|
|
842
|
+
let headerParams = {
|
|
843
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
844
|
+
"if-none-match": getDistributedAutonomousDatabaseRequest.ifNoneMatch,
|
|
845
|
+
"opc-request-id": getDistributedAutonomousDatabaseRequest.opcRequestId
|
|
846
|
+
};
|
|
847
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
848
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
849
|
+
if (this.logger)
|
|
850
|
+
retrier.logger = this.logger;
|
|
851
|
+
const request = yield oci_common_1.composeRequest({
|
|
852
|
+
baseEndpoint: this._endpoint,
|
|
853
|
+
defaultHeaders: this._defaultHeaders,
|
|
854
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}",
|
|
855
|
+
method: "GET",
|
|
856
|
+
pathParams: pathParams,
|
|
857
|
+
headerParams: headerParams,
|
|
858
|
+
queryParams: queryParams
|
|
859
|
+
});
|
|
860
|
+
try {
|
|
861
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
862
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
863
|
+
responseObject: {},
|
|
864
|
+
body: yield response.json(),
|
|
865
|
+
bodyKey: "distributedAutonomousDatabase",
|
|
866
|
+
bodyModel: model.DistributedAutonomousDatabase,
|
|
867
|
+
type: "model.DistributedAutonomousDatabase",
|
|
868
|
+
responseHeaders: [
|
|
869
|
+
{
|
|
870
|
+
value: response.headers.get("opc-request-id"),
|
|
871
|
+
key: "opcRequestId",
|
|
872
|
+
dataType: "string"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
value: response.headers.get("etag"),
|
|
876
|
+
key: "etag",
|
|
877
|
+
dataType: "string"
|
|
878
|
+
}
|
|
879
|
+
]
|
|
880
|
+
});
|
|
881
|
+
return sdkResponse;
|
|
882
|
+
}
|
|
883
|
+
catch (err) {
|
|
884
|
+
throw err;
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* List of Globally distributed autonomous databases.
|
|
890
|
+
*
|
|
891
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
892
|
+
* @param ListDistributedAutonomousDatabasesRequest
|
|
893
|
+
* @return ListDistributedAutonomousDatabasesResponse
|
|
894
|
+
* @throws OciError when an error occurs
|
|
895
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ListDistributedAutonomousDatabases.ts.html |here} to see how to use ListDistributedAutonomousDatabases API.
|
|
896
|
+
*/
|
|
897
|
+
listDistributedAutonomousDatabases(listDistributedAutonomousDatabasesRequest) {
|
|
898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
899
|
+
if (this.logger)
|
|
900
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#listDistributedAutonomousDatabases.");
|
|
901
|
+
const operationName = "listDistributedAutonomousDatabases";
|
|
902
|
+
const apiReferenceLink = "";
|
|
903
|
+
const pathParams = {};
|
|
904
|
+
const queryParams = {
|
|
905
|
+
"compartmentId": listDistributedAutonomousDatabasesRequest.compartmentId,
|
|
906
|
+
"lifecycleState": listDistributedAutonomousDatabasesRequest.lifecycleState,
|
|
907
|
+
"limit": listDistributedAutonomousDatabasesRequest.limit,
|
|
908
|
+
"page": listDistributedAutonomousDatabasesRequest.page,
|
|
909
|
+
"sortOrder": listDistributedAutonomousDatabasesRequest.sortOrder,
|
|
910
|
+
"sortBy": listDistributedAutonomousDatabasesRequest.sortBy,
|
|
911
|
+
"displayName": listDistributedAutonomousDatabasesRequest.displayName,
|
|
912
|
+
"dbDeploymentType": listDistributedAutonomousDatabasesRequest.dbDeploymentType,
|
|
913
|
+
"metadata": listDistributedAutonomousDatabasesRequest.metadata
|
|
914
|
+
};
|
|
915
|
+
let headerParams = {
|
|
916
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
917
|
+
"opc-request-id": listDistributedAutonomousDatabasesRequest.opcRequestId
|
|
918
|
+
};
|
|
919
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
920
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDistributedAutonomousDatabasesRequest.retryConfiguration, specRetryConfiguration);
|
|
921
|
+
if (this.logger)
|
|
922
|
+
retrier.logger = this.logger;
|
|
923
|
+
const request = yield oci_common_1.composeRequest({
|
|
924
|
+
baseEndpoint: this._endpoint,
|
|
925
|
+
defaultHeaders: this._defaultHeaders,
|
|
926
|
+
path: "/distributedAutonomousDatabases",
|
|
927
|
+
method: "GET",
|
|
928
|
+
pathParams: pathParams,
|
|
929
|
+
headerParams: headerParams,
|
|
930
|
+
queryParams: queryParams
|
|
931
|
+
});
|
|
932
|
+
try {
|
|
933
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
934
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
935
|
+
responseObject: {},
|
|
936
|
+
body: yield response.json(),
|
|
937
|
+
bodyKey: "distributedAutonomousDatabaseCollection",
|
|
938
|
+
bodyModel: model.DistributedAutonomousDatabaseCollection,
|
|
939
|
+
type: "model.DistributedAutonomousDatabaseCollection",
|
|
940
|
+
responseHeaders: [
|
|
941
|
+
{
|
|
942
|
+
value: response.headers.get("opc-request-id"),
|
|
943
|
+
key: "opcRequestId",
|
|
944
|
+
dataType: "string"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
value: response.headers.get("opc-next-page"),
|
|
948
|
+
key: "opcNextPage",
|
|
949
|
+
dataType: "string"
|
|
950
|
+
}
|
|
951
|
+
]
|
|
952
|
+
});
|
|
953
|
+
return sdkResponse;
|
|
954
|
+
}
|
|
955
|
+
catch (err) {
|
|
956
|
+
throw err;
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Patch operation to add, remove or update shards to the Globally distributed autonomous database topology. In single patch
|
|
962
|
+
* operation, multiple shards can be either added, or removed or updated. Combination of inserts, update
|
|
963
|
+
* and remove in single operation is not allowed.
|
|
964
|
+
*
|
|
965
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
966
|
+
* @param PatchDistributedAutonomousDatabaseRequest
|
|
967
|
+
* @return PatchDistributedAutonomousDatabaseResponse
|
|
968
|
+
* @throws OciError when an error occurs
|
|
969
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/PatchDistributedAutonomousDatabase.ts.html |here} to see how to use PatchDistributedAutonomousDatabase API.
|
|
970
|
+
*/
|
|
971
|
+
patchDistributedAutonomousDatabase(patchDistributedAutonomousDatabaseRequest) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
if (this.logger)
|
|
974
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#patchDistributedAutonomousDatabase.");
|
|
975
|
+
const operationName = "patchDistributedAutonomousDatabase";
|
|
976
|
+
const apiReferenceLink = "";
|
|
977
|
+
const pathParams = {
|
|
978
|
+
"{distributedAutonomousDatabaseId}": patchDistributedAutonomousDatabaseRequest.distributedAutonomousDatabaseId
|
|
979
|
+
};
|
|
980
|
+
const queryParams = {};
|
|
981
|
+
let headerParams = {
|
|
982
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
983
|
+
"if-match": patchDistributedAutonomousDatabaseRequest.ifMatch,
|
|
984
|
+
"opc-retry-token": patchDistributedAutonomousDatabaseRequest.opcRetryToken,
|
|
985
|
+
"opc-request-id": patchDistributedAutonomousDatabaseRequest.opcRequestId
|
|
986
|
+
};
|
|
987
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
988
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
989
|
+
if (this.logger)
|
|
990
|
+
retrier.logger = this.logger;
|
|
991
|
+
const request = yield oci_common_1.composeRequest({
|
|
992
|
+
baseEndpoint: this._endpoint,
|
|
993
|
+
defaultHeaders: this._defaultHeaders,
|
|
994
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}",
|
|
995
|
+
method: "PATCH",
|
|
996
|
+
bodyContent: common.ObjectSerializer.serialize(patchDistributedAutonomousDatabaseRequest.patchDistributedAutonomousDatabaseDetails, "PatchDistributedAutonomousDatabaseDetails", model.PatchDistributedAutonomousDatabaseDetails.getJsonObj),
|
|
997
|
+
pathParams: pathParams,
|
|
998
|
+
headerParams: headerParams,
|
|
999
|
+
queryParams: queryParams
|
|
1000
|
+
});
|
|
1001
|
+
try {
|
|
1002
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1003
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1004
|
+
responseObject: {},
|
|
1005
|
+
responseHeaders: [
|
|
1006
|
+
{
|
|
1007
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1008
|
+
key: "opcWorkRequestId",
|
|
1009
|
+
dataType: "string"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
value: response.headers.get("opc-request-id"),
|
|
1013
|
+
key: "opcRequestId",
|
|
1014
|
+
dataType: "string"
|
|
1015
|
+
}
|
|
1016
|
+
]
|
|
1017
|
+
});
|
|
1018
|
+
return sdkResponse;
|
|
1019
|
+
}
|
|
1020
|
+
catch (err) {
|
|
1021
|
+
throw err;
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Rotate passwords for different components of the Globally distributed autonomous database.
|
|
1027
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1028
|
+
* @param RotateDistributedAutonomousDatabasePasswordsRequest
|
|
1029
|
+
* @return RotateDistributedAutonomousDatabasePasswordsResponse
|
|
1030
|
+
* @throws OciError when an error occurs
|
|
1031
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/RotateDistributedAutonomousDatabasePasswords.ts.html |here} to see how to use RotateDistributedAutonomousDatabasePasswords API.
|
|
1032
|
+
*/
|
|
1033
|
+
rotateDistributedAutonomousDatabasePasswords(rotateDistributedAutonomousDatabasePasswordsRequest) {
|
|
1034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1035
|
+
if (this.logger)
|
|
1036
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#rotateDistributedAutonomousDatabasePasswords.");
|
|
1037
|
+
const operationName = "rotateDistributedAutonomousDatabasePasswords";
|
|
1038
|
+
const apiReferenceLink = "";
|
|
1039
|
+
const pathParams = {
|
|
1040
|
+
"{distributedAutonomousDatabaseId}": rotateDistributedAutonomousDatabasePasswordsRequest.distributedAutonomousDatabaseId
|
|
1041
|
+
};
|
|
1042
|
+
const queryParams = {};
|
|
1043
|
+
let headerParams = {
|
|
1044
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1045
|
+
"opc-request-id": rotateDistributedAutonomousDatabasePasswordsRequest.opcRequestId,
|
|
1046
|
+
"if-match": rotateDistributedAutonomousDatabasePasswordsRequest.ifMatch,
|
|
1047
|
+
"opc-retry-token": rotateDistributedAutonomousDatabasePasswordsRequest.opcRetryToken
|
|
1048
|
+
};
|
|
1049
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1050
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, rotateDistributedAutonomousDatabasePasswordsRequest.retryConfiguration, specRetryConfiguration);
|
|
1051
|
+
if (this.logger)
|
|
1052
|
+
retrier.logger = this.logger;
|
|
1053
|
+
const request = yield oci_common_1.composeRequest({
|
|
1054
|
+
baseEndpoint: this._endpoint,
|
|
1055
|
+
defaultHeaders: this._defaultHeaders,
|
|
1056
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/rotateDbPasswords",
|
|
1057
|
+
method: "POST",
|
|
1058
|
+
pathParams: pathParams,
|
|
1059
|
+
headerParams: headerParams,
|
|
1060
|
+
queryParams: queryParams
|
|
1061
|
+
});
|
|
1062
|
+
try {
|
|
1063
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1064
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1065
|
+
responseObject: {},
|
|
1066
|
+
responseHeaders: [
|
|
1067
|
+
{
|
|
1068
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1069
|
+
key: "opcWorkRequestId",
|
|
1070
|
+
dataType: "string"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
value: response.headers.get("opc-request-id"),
|
|
1074
|
+
key: "opcRequestId",
|
|
1075
|
+
dataType: "string"
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1078
|
+
});
|
|
1079
|
+
return sdkResponse;
|
|
1080
|
+
}
|
|
1081
|
+
catch (err) {
|
|
1082
|
+
throw err;
|
|
1083
|
+
}
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Start the shards, catalog and GSMs of Globally distributed autonomous database.
|
|
1088
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1089
|
+
* @param StartDistributedAutonomousDatabaseRequest
|
|
1090
|
+
* @return StartDistributedAutonomousDatabaseResponse
|
|
1091
|
+
* @throws OciError when an error occurs
|
|
1092
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/StartDistributedAutonomousDatabase.ts.html |here} to see how to use StartDistributedAutonomousDatabase API.
|
|
1093
|
+
*/
|
|
1094
|
+
startDistributedAutonomousDatabase(startDistributedAutonomousDatabaseRequest) {
|
|
1095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1096
|
+
if (this.logger)
|
|
1097
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#startDistributedAutonomousDatabase.");
|
|
1098
|
+
const operationName = "startDistributedAutonomousDatabase";
|
|
1099
|
+
const apiReferenceLink = "";
|
|
1100
|
+
const pathParams = {
|
|
1101
|
+
"{distributedAutonomousDatabaseId}": startDistributedAutonomousDatabaseRequest.distributedAutonomousDatabaseId
|
|
1102
|
+
};
|
|
1103
|
+
const queryParams = {};
|
|
1104
|
+
let headerParams = {
|
|
1105
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1106
|
+
"opc-retry-token": startDistributedAutonomousDatabaseRequest.opcRetryToken,
|
|
1107
|
+
"opc-request-id": startDistributedAutonomousDatabaseRequest.opcRequestId,
|
|
1108
|
+
"if-match": startDistributedAutonomousDatabaseRequest.ifMatch
|
|
1109
|
+
};
|
|
1110
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1111
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1112
|
+
if (this.logger)
|
|
1113
|
+
retrier.logger = this.logger;
|
|
1114
|
+
const request = yield oci_common_1.composeRequest({
|
|
1115
|
+
baseEndpoint: this._endpoint,
|
|
1116
|
+
defaultHeaders: this._defaultHeaders,
|
|
1117
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/startDatabase",
|
|
1118
|
+
method: "POST",
|
|
1119
|
+
pathParams: pathParams,
|
|
1120
|
+
headerParams: headerParams,
|
|
1121
|
+
queryParams: queryParams
|
|
1122
|
+
});
|
|
1123
|
+
try {
|
|
1124
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1125
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1126
|
+
responseObject: {},
|
|
1127
|
+
responseHeaders: [
|
|
1128
|
+
{
|
|
1129
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1130
|
+
key: "opcWorkRequestId",
|
|
1131
|
+
dataType: "string"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
value: response.headers.get("opc-request-id"),
|
|
1135
|
+
key: "opcRequestId",
|
|
1136
|
+
dataType: "string"
|
|
1137
|
+
}
|
|
1138
|
+
]
|
|
1139
|
+
});
|
|
1140
|
+
return sdkResponse;
|
|
1141
|
+
}
|
|
1142
|
+
catch (err) {
|
|
1143
|
+
throw err;
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Stop the shards, catalog and GSM instances for the Globally distributed autonomous database.
|
|
1149
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1150
|
+
* @param StopDistributedAutonomousDatabaseRequest
|
|
1151
|
+
* @return StopDistributedAutonomousDatabaseResponse
|
|
1152
|
+
* @throws OciError when an error occurs
|
|
1153
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/StopDistributedAutonomousDatabase.ts.html |here} to see how to use StopDistributedAutonomousDatabase API.
|
|
1154
|
+
*/
|
|
1155
|
+
stopDistributedAutonomousDatabase(stopDistributedAutonomousDatabaseRequest) {
|
|
1156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1157
|
+
if (this.logger)
|
|
1158
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#stopDistributedAutonomousDatabase.");
|
|
1159
|
+
const operationName = "stopDistributedAutonomousDatabase";
|
|
1160
|
+
const apiReferenceLink = "";
|
|
1161
|
+
const pathParams = {
|
|
1162
|
+
"{distributedAutonomousDatabaseId}": stopDistributedAutonomousDatabaseRequest.distributedAutonomousDatabaseId
|
|
1163
|
+
};
|
|
1164
|
+
const queryParams = {};
|
|
1165
|
+
let headerParams = {
|
|
1166
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1167
|
+
"opc-retry-token": stopDistributedAutonomousDatabaseRequest.opcRetryToken,
|
|
1168
|
+
"opc-request-id": stopDistributedAutonomousDatabaseRequest.opcRequestId,
|
|
1169
|
+
"if-match": stopDistributedAutonomousDatabaseRequest.ifMatch
|
|
1170
|
+
};
|
|
1171
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1172
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1173
|
+
if (this.logger)
|
|
1174
|
+
retrier.logger = this.logger;
|
|
1175
|
+
const request = yield oci_common_1.composeRequest({
|
|
1176
|
+
baseEndpoint: this._endpoint,
|
|
1177
|
+
defaultHeaders: this._defaultHeaders,
|
|
1178
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/stopDatabase",
|
|
1179
|
+
method: "POST",
|
|
1180
|
+
pathParams: pathParams,
|
|
1181
|
+
headerParams: headerParams,
|
|
1182
|
+
queryParams: queryParams
|
|
1183
|
+
});
|
|
1184
|
+
try {
|
|
1185
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1186
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1187
|
+
responseObject: {},
|
|
1188
|
+
responseHeaders: [
|
|
1189
|
+
{
|
|
1190
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1191
|
+
key: "opcWorkRequestId",
|
|
1192
|
+
dataType: "string"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
value: response.headers.get("opc-request-id"),
|
|
1196
|
+
key: "opcRequestId",
|
|
1197
|
+
dataType: "string"
|
|
1198
|
+
}
|
|
1199
|
+
]
|
|
1200
|
+
});
|
|
1201
|
+
return sdkResponse;
|
|
1202
|
+
}
|
|
1203
|
+
catch (err) {
|
|
1204
|
+
throw err;
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Updates the configuration of the Globally distributed autonomous database.
|
|
1210
|
+
*
|
|
1211
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1212
|
+
* @param UpdateDistributedAutonomousDatabaseRequest
|
|
1213
|
+
* @return UpdateDistributedAutonomousDatabaseResponse
|
|
1214
|
+
* @throws OciError when an error occurs
|
|
1215
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/UpdateDistributedAutonomousDatabase.ts.html |here} to see how to use UpdateDistributedAutonomousDatabase API.
|
|
1216
|
+
*/
|
|
1217
|
+
updateDistributedAutonomousDatabase(updateDistributedAutonomousDatabaseRequest) {
|
|
1218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1219
|
+
if (this.logger)
|
|
1220
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#updateDistributedAutonomousDatabase.");
|
|
1221
|
+
const operationName = "updateDistributedAutonomousDatabase";
|
|
1222
|
+
const apiReferenceLink = "";
|
|
1223
|
+
const pathParams = {
|
|
1224
|
+
"{distributedAutonomousDatabaseId}": updateDistributedAutonomousDatabaseRequest.distributedAutonomousDatabaseId
|
|
1225
|
+
};
|
|
1226
|
+
const queryParams = {};
|
|
1227
|
+
let headerParams = {
|
|
1228
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1229
|
+
"opc-request-id": updateDistributedAutonomousDatabaseRequest.opcRequestId,
|
|
1230
|
+
"if-match": updateDistributedAutonomousDatabaseRequest.ifMatch
|
|
1231
|
+
};
|
|
1232
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1233
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDistributedAutonomousDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1234
|
+
if (this.logger)
|
|
1235
|
+
retrier.logger = this.logger;
|
|
1236
|
+
const request = yield oci_common_1.composeRequest({
|
|
1237
|
+
baseEndpoint: this._endpoint,
|
|
1238
|
+
defaultHeaders: this._defaultHeaders,
|
|
1239
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}",
|
|
1240
|
+
method: "PUT",
|
|
1241
|
+
bodyContent: common.ObjectSerializer.serialize(updateDistributedAutonomousDatabaseRequest.updateDistributedAutonomousDatabaseDetails, "UpdateDistributedAutonomousDatabaseDetails", model.UpdateDistributedAutonomousDatabaseDetails.getJsonObj),
|
|
1242
|
+
pathParams: pathParams,
|
|
1243
|
+
headerParams: headerParams,
|
|
1244
|
+
queryParams: queryParams
|
|
1245
|
+
});
|
|
1246
|
+
try {
|
|
1247
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1248
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1249
|
+
responseObject: {},
|
|
1250
|
+
body: yield response.json(),
|
|
1251
|
+
bodyKey: "distributedAutonomousDatabase",
|
|
1252
|
+
bodyModel: model.DistributedAutonomousDatabase,
|
|
1253
|
+
type: "model.DistributedAutonomousDatabase",
|
|
1254
|
+
responseHeaders: [
|
|
1255
|
+
{
|
|
1256
|
+
value: response.headers.get("opc-request-id"),
|
|
1257
|
+
key: "opcRequestId",
|
|
1258
|
+
dataType: "string"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
value: response.headers.get("etag"),
|
|
1262
|
+
key: "etag",
|
|
1263
|
+
dataType: "string"
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1266
|
+
});
|
|
1267
|
+
return sdkResponse;
|
|
1268
|
+
}
|
|
1269
|
+
catch (err) {
|
|
1270
|
+
throw err;
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances of the
|
|
1276
|
+
* Globally distributed autonomous database. Customer shall provide the CA signed certificate key details by adding the certificate
|
|
1277
|
+
* in request body.
|
|
1278
|
+
*
|
|
1279
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1280
|
+
* @param UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest
|
|
1281
|
+
* @return UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse
|
|
1282
|
+
* @throws OciError when an error occurs
|
|
1283
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet.ts.html |here} to see how to use UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet API.
|
|
1284
|
+
*/
|
|
1285
|
+
uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet(uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest) {
|
|
1286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1287
|
+
if (this.logger)
|
|
1288
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet.");
|
|
1289
|
+
const operationName = "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet";
|
|
1290
|
+
const apiReferenceLink = "";
|
|
1291
|
+
const pathParams = {
|
|
1292
|
+
"{distributedAutonomousDatabaseId}": uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.distributedAutonomousDatabaseId
|
|
1293
|
+
};
|
|
1294
|
+
const queryParams = {};
|
|
1295
|
+
let headerParams = {
|
|
1296
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1297
|
+
"opc-request-id": uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.opcRequestId,
|
|
1298
|
+
"if-match": uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.ifMatch,
|
|
1299
|
+
"opc-retry-token": uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.opcRetryToken
|
|
1300
|
+
};
|
|
1301
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1302
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
1303
|
+
if (this.logger)
|
|
1304
|
+
retrier.logger = this.logger;
|
|
1305
|
+
const request = yield oci_common_1.composeRequest({
|
|
1306
|
+
baseEndpoint: this._endpoint,
|
|
1307
|
+
defaultHeaders: this._defaultHeaders,
|
|
1308
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/uploadSignedCertificateAndGenerateWallet",
|
|
1309
|
+
method: "POST",
|
|
1310
|
+
bodyContent: common.ObjectSerializer.serialize(uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails, "UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails", model.UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails
|
|
1311
|
+
.getJsonObj),
|
|
1312
|
+
pathParams: pathParams,
|
|
1313
|
+
headerParams: headerParams,
|
|
1314
|
+
queryParams: queryParams
|
|
1315
|
+
});
|
|
1316
|
+
try {
|
|
1317
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1318
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1319
|
+
responseObject: {},
|
|
1320
|
+
responseHeaders: [
|
|
1321
|
+
{
|
|
1322
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1323
|
+
key: "opcWorkRequestId",
|
|
1324
|
+
dataType: "string"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
value: response.headers.get("opc-request-id"),
|
|
1328
|
+
key: "opcRequestId",
|
|
1329
|
+
dataType: "string"
|
|
1330
|
+
}
|
|
1331
|
+
]
|
|
1332
|
+
});
|
|
1333
|
+
return sdkResponse;
|
|
1334
|
+
}
|
|
1335
|
+
catch (err) {
|
|
1336
|
+
throw err;
|
|
1337
|
+
}
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Validate the network connectivity between components of the globally distributed autonomous database.
|
|
1342
|
+
*
|
|
1343
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1344
|
+
* @param ValidateDistributedAutonomousDatabaseNetworkRequest
|
|
1345
|
+
* @return ValidateDistributedAutonomousDatabaseNetworkResponse
|
|
1346
|
+
* @throws OciError when an error occurs
|
|
1347
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ValidateDistributedAutonomousDatabaseNetwork.ts.html |here} to see how to use ValidateDistributedAutonomousDatabaseNetwork API.
|
|
1348
|
+
*/
|
|
1349
|
+
validateDistributedAutonomousDatabaseNetwork(validateDistributedAutonomousDatabaseNetworkRequest) {
|
|
1350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1351
|
+
if (this.logger)
|
|
1352
|
+
this.logger.debug("Calling operation DistributedAutonomousDbServiceClient#validateDistributedAutonomousDatabaseNetwork.");
|
|
1353
|
+
const operationName = "validateDistributedAutonomousDatabaseNetwork";
|
|
1354
|
+
const apiReferenceLink = "";
|
|
1355
|
+
const pathParams = {
|
|
1356
|
+
"{distributedAutonomousDatabaseId}": validateDistributedAutonomousDatabaseNetworkRequest.distributedAutonomousDatabaseId
|
|
1357
|
+
};
|
|
1358
|
+
const queryParams = {
|
|
1359
|
+
"isSurrogate": validateDistributedAutonomousDatabaseNetworkRequest.isSurrogate,
|
|
1360
|
+
"resourceName": validateDistributedAutonomousDatabaseNetworkRequest.resourceName,
|
|
1361
|
+
"shardGroup": validateDistributedAutonomousDatabaseNetworkRequest.shardGroup
|
|
1362
|
+
};
|
|
1363
|
+
let headerParams = {
|
|
1364
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1365
|
+
"if-match": validateDistributedAutonomousDatabaseNetworkRequest.ifMatch,
|
|
1366
|
+
"opc-retry-token": validateDistributedAutonomousDatabaseNetworkRequest.opcRetryToken,
|
|
1367
|
+
"opc-request-id": validateDistributedAutonomousDatabaseNetworkRequest.opcRequestId
|
|
1368
|
+
};
|
|
1369
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1370
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateDistributedAutonomousDatabaseNetworkRequest.retryConfiguration, specRetryConfiguration);
|
|
1371
|
+
if (this.logger)
|
|
1372
|
+
retrier.logger = this.logger;
|
|
1373
|
+
const request = yield oci_common_1.composeRequest({
|
|
1374
|
+
baseEndpoint: this._endpoint,
|
|
1375
|
+
defaultHeaders: this._defaultHeaders,
|
|
1376
|
+
path: "/distributedAutonomousDatabases/{distributedAutonomousDatabaseId}/actions/validateNetwork",
|
|
1377
|
+
method: "POST",
|
|
1378
|
+
pathParams: pathParams,
|
|
1379
|
+
headerParams: headerParams,
|
|
1380
|
+
queryParams: queryParams
|
|
1381
|
+
});
|
|
1382
|
+
try {
|
|
1383
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1384
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1385
|
+
responseObject: {},
|
|
1386
|
+
responseHeaders: [
|
|
1387
|
+
{
|
|
1388
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1389
|
+
key: "opcWorkRequestId",
|
|
1390
|
+
dataType: "string"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
value: response.headers.get("opc-request-id"),
|
|
1394
|
+
key: "opcRequestId",
|
|
1395
|
+
dataType: "string"
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
});
|
|
1399
|
+
return sdkResponse;
|
|
1400
|
+
}
|
|
1401
|
+
catch (err) {
|
|
1402
|
+
throw err;
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
exports.DistributedAutonomousDbServiceClient = DistributedAutonomousDbServiceClient;
|
|
1408
|
+
DistributedAutonomousDbServiceClient.serviceEndpointTemplate = "https://globaldb.{region}.oci.{secondLevelDomain}";
|
|
1409
|
+
DistributedAutonomousDbServiceClient.endpointServiceName = "";
|
|
1410
|
+
var DistributedDbPrivateEndpointServiceApiKeys;
|
|
1411
|
+
(function (DistributedDbPrivateEndpointServiceApiKeys) {
|
|
1412
|
+
})(DistributedDbPrivateEndpointServiceApiKeys = exports.DistributedDbPrivateEndpointServiceApiKeys || (exports.DistributedDbPrivateEndpointServiceApiKeys = {}));
|
|
1413
|
+
/**
|
|
1414
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1415
|
+
*/
|
|
1416
|
+
class DistributedDbPrivateEndpointServiceClient {
|
|
1417
|
+
constructor(params, clientConfiguration) {
|
|
1418
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1419
|
+
this["_endpoint"] = "";
|
|
1420
|
+
this["_defaultHeaders"] = {};
|
|
1421
|
+
this._circuitBreaker = null;
|
|
1422
|
+
this._httpOptions = undefined;
|
|
1423
|
+
this._bodyDuplexMode = undefined;
|
|
1424
|
+
this.targetService = "DistributedDbPrivateEndpointService";
|
|
1425
|
+
this._regionId = "";
|
|
1426
|
+
this._lastSetRegionOrRegionId = "";
|
|
1427
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1428
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1429
|
+
: null;
|
|
1430
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
1431
|
+
if (clientConfiguration) {
|
|
1432
|
+
this._clientConfiguration = clientConfiguration;
|
|
1433
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1434
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1435
|
+
: null;
|
|
1436
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1437
|
+
? clientConfiguration.httpOptions
|
|
1438
|
+
: undefined;
|
|
1439
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1440
|
+
? clientConfiguration.bodyDuplexMode
|
|
1441
|
+
: undefined;
|
|
1442
|
+
}
|
|
1443
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("distributeddatabase")) {
|
|
1444
|
+
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 : ";
|
|
1445
|
+
throw errmsg.concat("distributeddatabase");
|
|
1446
|
+
}
|
|
1447
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1448
|
+
const specCircuitBreakerEnabled = true;
|
|
1449
|
+
if (!this._circuitBreaker &&
|
|
1450
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1451
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1452
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1453
|
+
}
|
|
1454
|
+
this._httpClient =
|
|
1455
|
+
params.httpClient ||
|
|
1456
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
1457
|
+
if (params.authenticationDetailsProvider &&
|
|
1458
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1459
|
+
const provider = params.authenticationDetailsProvider;
|
|
1460
|
+
if (provider.getRegion()) {
|
|
1461
|
+
this.region = provider.getRegion();
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1467
|
+
*/
|
|
1468
|
+
get endpoint() {
|
|
1469
|
+
return this._endpoint;
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1473
|
+
* @param endpoint The endpoint of the service.
|
|
1474
|
+
*/
|
|
1475
|
+
set endpoint(endpoint) {
|
|
1476
|
+
this._endpoint = endpoint;
|
|
1477
|
+
this._endpoint = this._endpoint + "/20250101";
|
|
1478
|
+
if (this.logger)
|
|
1479
|
+
this.logger.info(`DistributedDbPrivateEndpointServiceClient endpoint set to ${this._endpoint}`);
|
|
1480
|
+
}
|
|
1481
|
+
get logger() {
|
|
1482
|
+
return common.LOG.logger;
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1486
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1487
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1488
|
+
*/
|
|
1489
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1490
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1491
|
+
if (this.logger)
|
|
1492
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1493
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1494
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedDbPrivateEndpointServiceClient.serviceEndpointTemplate, this._region, DistributedDbPrivateEndpointServiceClient.endpointServiceName);
|
|
1495
|
+
}
|
|
1496
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1497
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedDbPrivateEndpointServiceClient.serviceEndpointTemplate, this._regionId, DistributedDbPrivateEndpointServiceClient.endpointServiceName);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1502
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1503
|
+
* @param region The region of the service.
|
|
1504
|
+
*/
|
|
1505
|
+
set region(region) {
|
|
1506
|
+
this._region = region;
|
|
1507
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedDbPrivateEndpointServiceClient.serviceEndpointTemplate, region, DistributedDbPrivateEndpointServiceClient.endpointServiceName);
|
|
1508
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1512
|
+
*
|
|
1513
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1514
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1515
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1516
|
+
* @param regionId The public region ID.
|
|
1517
|
+
*/
|
|
1518
|
+
set regionId(regionId) {
|
|
1519
|
+
this._regionId = regionId;
|
|
1520
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedDbPrivateEndpointServiceClient.serviceEndpointTemplate, regionId, DistributedDbPrivateEndpointServiceClient.endpointServiceName);
|
|
1521
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* Creates a new DistributedDbPrivateEndpointServiceWaiter for resources for this service.
|
|
1525
|
+
*
|
|
1526
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1527
|
+
* @return The service waiters.
|
|
1528
|
+
*/
|
|
1529
|
+
createWaiters(config) {
|
|
1530
|
+
this._waiters = new distributeddbprivateendpointservice_waiter_1.DistributedDbPrivateEndpointServiceWaiter(this, config);
|
|
1531
|
+
return this._waiters;
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* Gets the waiters available for resources for this service.
|
|
1535
|
+
*
|
|
1536
|
+
* @return The service waiters.
|
|
1537
|
+
*/
|
|
1538
|
+
getWaiters() {
|
|
1539
|
+
if (this._waiters) {
|
|
1540
|
+
return this._waiters;
|
|
1541
|
+
}
|
|
1542
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1546
|
+
*/
|
|
1547
|
+
shutdownCircuitBreaker() {
|
|
1548
|
+
if (this._circuitBreaker) {
|
|
1549
|
+
this._circuitBreaker.shutdown();
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1554
|
+
*/
|
|
1555
|
+
closeProvider() {
|
|
1556
|
+
if (this._authProvider) {
|
|
1557
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1558
|
+
(this._authProvider).closeProvider();
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Close the client once it is no longer needed
|
|
1563
|
+
*/
|
|
1564
|
+
close() {
|
|
1565
|
+
this.shutdownCircuitBreaker();
|
|
1566
|
+
this.closeProvider();
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Moves the DistributedDatabasePrivateEndpoint to the specified compartment.
|
|
1570
|
+
*
|
|
1571
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1572
|
+
* @param ChangeDistributedDatabasePrivateEndpointCompartmentRequest
|
|
1573
|
+
* @return ChangeDistributedDatabasePrivateEndpointCompartmentResponse
|
|
1574
|
+
* @throws OciError when an error occurs
|
|
1575
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ChangeDistributedDatabasePrivateEndpointCompartment.ts.html |here} to see how to use ChangeDistributedDatabasePrivateEndpointCompartment API.
|
|
1576
|
+
*/
|
|
1577
|
+
changeDistributedDatabasePrivateEndpointCompartment(changeDistributedDatabasePrivateEndpointCompartmentRequest) {
|
|
1578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1579
|
+
if (this.logger)
|
|
1580
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#changeDistributedDatabasePrivateEndpointCompartment.");
|
|
1581
|
+
const operationName = "changeDistributedDatabasePrivateEndpointCompartment";
|
|
1582
|
+
const apiReferenceLink = "";
|
|
1583
|
+
const pathParams = {
|
|
1584
|
+
"{distributedDatabasePrivateEndpointId}": changeDistributedDatabasePrivateEndpointCompartmentRequest.distributedDatabasePrivateEndpointId
|
|
1585
|
+
};
|
|
1586
|
+
const queryParams = {};
|
|
1587
|
+
let headerParams = {
|
|
1588
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1589
|
+
"opc-request-id": changeDistributedDatabasePrivateEndpointCompartmentRequest.opcRequestId,
|
|
1590
|
+
"if-match": changeDistributedDatabasePrivateEndpointCompartmentRequest.ifMatch,
|
|
1591
|
+
"opc-retry-token": changeDistributedDatabasePrivateEndpointCompartmentRequest.opcRetryToken
|
|
1592
|
+
};
|
|
1593
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1594
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDistributedDatabasePrivateEndpointCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1595
|
+
if (this.logger)
|
|
1596
|
+
retrier.logger = this.logger;
|
|
1597
|
+
const request = yield oci_common_1.composeRequest({
|
|
1598
|
+
baseEndpoint: this._endpoint,
|
|
1599
|
+
defaultHeaders: this._defaultHeaders,
|
|
1600
|
+
path: "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}/actions/changeCompartment",
|
|
1601
|
+
method: "POST",
|
|
1602
|
+
bodyContent: common.ObjectSerializer.serialize(changeDistributedDatabasePrivateEndpointCompartmentRequest.changeDistributedDatabasePrivateEndpointCompartmentDetails, "ChangeDistributedDatabasePrivateEndpointCompartmentDetails", model.ChangeDistributedDatabasePrivateEndpointCompartmentDetails.getJsonObj),
|
|
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
|
+
responseHeaders: [
|
|
1612
|
+
{
|
|
1613
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1614
|
+
key: "opcWorkRequestId",
|
|
1615
|
+
dataType: "string"
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
value: response.headers.get("opc-request-id"),
|
|
1619
|
+
key: "opcRequestId",
|
|
1620
|
+
dataType: "string"
|
|
1621
|
+
}
|
|
1622
|
+
]
|
|
1623
|
+
});
|
|
1624
|
+
return sdkResponse;
|
|
1625
|
+
}
|
|
1626
|
+
catch (err) {
|
|
1627
|
+
throw err;
|
|
1628
|
+
}
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
/**
|
|
1632
|
+
* Creates a DistributedDatabasePrivateEndpoint.
|
|
1633
|
+
*
|
|
1634
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1635
|
+
* @param CreateDistributedDatabasePrivateEndpointRequest
|
|
1636
|
+
* @return CreateDistributedDatabasePrivateEndpointResponse
|
|
1637
|
+
* @throws OciError when an error occurs
|
|
1638
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/CreateDistributedDatabasePrivateEndpoint.ts.html |here} to see how to use CreateDistributedDatabasePrivateEndpoint API.
|
|
1639
|
+
*/
|
|
1640
|
+
createDistributedDatabasePrivateEndpoint(createDistributedDatabasePrivateEndpointRequest) {
|
|
1641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1642
|
+
if (this.logger)
|
|
1643
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#createDistributedDatabasePrivateEndpoint.");
|
|
1644
|
+
const operationName = "createDistributedDatabasePrivateEndpoint";
|
|
1645
|
+
const apiReferenceLink = "";
|
|
1646
|
+
const pathParams = {};
|
|
1647
|
+
const queryParams = {};
|
|
1648
|
+
let headerParams = {
|
|
1649
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1650
|
+
"opc-retry-token": createDistributedDatabasePrivateEndpointRequest.opcRetryToken,
|
|
1651
|
+
"opc-request-id": createDistributedDatabasePrivateEndpointRequest.opcRequestId
|
|
1652
|
+
};
|
|
1653
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1654
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDistributedDatabasePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1655
|
+
if (this.logger)
|
|
1656
|
+
retrier.logger = this.logger;
|
|
1657
|
+
const request = yield oci_common_1.composeRequest({
|
|
1658
|
+
baseEndpoint: this._endpoint,
|
|
1659
|
+
defaultHeaders: this._defaultHeaders,
|
|
1660
|
+
path: "/distributedDatabasePrivateEndpoints",
|
|
1661
|
+
method: "POST",
|
|
1662
|
+
bodyContent: common.ObjectSerializer.serialize(createDistributedDatabasePrivateEndpointRequest.createDistributedDatabasePrivateEndpointDetails, "CreateDistributedDatabasePrivateEndpointDetails", model.CreateDistributedDatabasePrivateEndpointDetails.getJsonObj),
|
|
1663
|
+
pathParams: pathParams,
|
|
1664
|
+
headerParams: headerParams,
|
|
1665
|
+
queryParams: queryParams
|
|
1666
|
+
});
|
|
1667
|
+
try {
|
|
1668
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1669
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1670
|
+
responseObject: {},
|
|
1671
|
+
body: yield response.json(),
|
|
1672
|
+
bodyKey: "distributedDatabasePrivateEndpoint",
|
|
1673
|
+
bodyModel: model.DistributedDatabasePrivateEndpoint,
|
|
1674
|
+
type: "model.DistributedDatabasePrivateEndpoint",
|
|
1675
|
+
responseHeaders: [
|
|
1676
|
+
{
|
|
1677
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1678
|
+
key: "opcWorkRequestId",
|
|
1679
|
+
dataType: "string"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
value: response.headers.get("opc-request-id"),
|
|
1683
|
+
key: "opcRequestId",
|
|
1684
|
+
dataType: "string"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
value: response.headers.get("etag"),
|
|
1688
|
+
key: "etag",
|
|
1689
|
+
dataType: "string"
|
|
1690
|
+
}
|
|
1691
|
+
]
|
|
1692
|
+
});
|
|
1693
|
+
return sdkResponse;
|
|
1694
|
+
}
|
|
1695
|
+
catch (err) {
|
|
1696
|
+
throw err;
|
|
1697
|
+
}
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Deletes the given DistributedDatabasePrivateEndpoint.
|
|
1702
|
+
*
|
|
1703
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1704
|
+
* @param DeleteDistributedDatabasePrivateEndpointRequest
|
|
1705
|
+
* @return DeleteDistributedDatabasePrivateEndpointResponse
|
|
1706
|
+
* @throws OciError when an error occurs
|
|
1707
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/DeleteDistributedDatabasePrivateEndpoint.ts.html |here} to see how to use DeleteDistributedDatabasePrivateEndpoint API.
|
|
1708
|
+
*/
|
|
1709
|
+
deleteDistributedDatabasePrivateEndpoint(deleteDistributedDatabasePrivateEndpointRequest) {
|
|
1710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1711
|
+
if (this.logger)
|
|
1712
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#deleteDistributedDatabasePrivateEndpoint.");
|
|
1713
|
+
const operationName = "deleteDistributedDatabasePrivateEndpoint";
|
|
1714
|
+
const apiReferenceLink = "";
|
|
1715
|
+
const pathParams = {
|
|
1716
|
+
"{distributedDatabasePrivateEndpointId}": deleteDistributedDatabasePrivateEndpointRequest.distributedDatabasePrivateEndpointId
|
|
1717
|
+
};
|
|
1718
|
+
const queryParams = {};
|
|
1719
|
+
let headerParams = {
|
|
1720
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1721
|
+
"opc-request-id": deleteDistributedDatabasePrivateEndpointRequest.opcRequestId,
|
|
1722
|
+
"opc-retry-token": deleteDistributedDatabasePrivateEndpointRequest.opcRetryToken,
|
|
1723
|
+
"if-match": deleteDistributedDatabasePrivateEndpointRequest.ifMatch
|
|
1724
|
+
};
|
|
1725
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1726
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDistributedDatabasePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1727
|
+
if (this.logger)
|
|
1728
|
+
retrier.logger = this.logger;
|
|
1729
|
+
const request = yield oci_common_1.composeRequest({
|
|
1730
|
+
baseEndpoint: this._endpoint,
|
|
1731
|
+
defaultHeaders: this._defaultHeaders,
|
|
1732
|
+
path: "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}",
|
|
1733
|
+
method: "DELETE",
|
|
1734
|
+
pathParams: pathParams,
|
|
1735
|
+
headerParams: headerParams,
|
|
1736
|
+
queryParams: queryParams
|
|
1737
|
+
});
|
|
1738
|
+
try {
|
|
1739
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1740
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1741
|
+
responseObject: {},
|
|
1742
|
+
responseHeaders: [
|
|
1743
|
+
{
|
|
1744
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1745
|
+
key: "opcWorkRequestId",
|
|
1746
|
+
dataType: "string"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
value: response.headers.get("opc-request-id"),
|
|
1750
|
+
key: "opcRequestId",
|
|
1751
|
+
dataType: "string"
|
|
1752
|
+
}
|
|
1753
|
+
]
|
|
1754
|
+
});
|
|
1755
|
+
return sdkResponse;
|
|
1756
|
+
}
|
|
1757
|
+
catch (err) {
|
|
1758
|
+
throw err;
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* Get the DistributedDatabasePrivateEndpoint resource.
|
|
1764
|
+
*
|
|
1765
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1766
|
+
* @param GetDistributedDatabasePrivateEndpointRequest
|
|
1767
|
+
* @return GetDistributedDatabasePrivateEndpointResponse
|
|
1768
|
+
* @throws OciError when an error occurs
|
|
1769
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GetDistributedDatabasePrivateEndpoint.ts.html |here} to see how to use GetDistributedDatabasePrivateEndpoint API.
|
|
1770
|
+
*/
|
|
1771
|
+
getDistributedDatabasePrivateEndpoint(getDistributedDatabasePrivateEndpointRequest) {
|
|
1772
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1773
|
+
if (this.logger)
|
|
1774
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#getDistributedDatabasePrivateEndpoint.");
|
|
1775
|
+
const operationName = "getDistributedDatabasePrivateEndpoint";
|
|
1776
|
+
const apiReferenceLink = "";
|
|
1777
|
+
const pathParams = {
|
|
1778
|
+
"{distributedDatabasePrivateEndpointId}": getDistributedDatabasePrivateEndpointRequest.distributedDatabasePrivateEndpointId
|
|
1779
|
+
};
|
|
1780
|
+
const queryParams = {};
|
|
1781
|
+
let headerParams = {
|
|
1782
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1783
|
+
"if-none-match": getDistributedDatabasePrivateEndpointRequest.ifNoneMatch,
|
|
1784
|
+
"opc-request-id": getDistributedDatabasePrivateEndpointRequest.opcRequestId
|
|
1785
|
+
};
|
|
1786
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1787
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDistributedDatabasePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1788
|
+
if (this.logger)
|
|
1789
|
+
retrier.logger = this.logger;
|
|
1790
|
+
const request = yield oci_common_1.composeRequest({
|
|
1791
|
+
baseEndpoint: this._endpoint,
|
|
1792
|
+
defaultHeaders: this._defaultHeaders,
|
|
1793
|
+
path: "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}",
|
|
1794
|
+
method: "GET",
|
|
1795
|
+
pathParams: pathParams,
|
|
1796
|
+
headerParams: headerParams,
|
|
1797
|
+
queryParams: queryParams
|
|
1798
|
+
});
|
|
1799
|
+
try {
|
|
1800
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1801
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1802
|
+
responseObject: {},
|
|
1803
|
+
body: yield response.json(),
|
|
1804
|
+
bodyKey: "distributedDatabasePrivateEndpoint",
|
|
1805
|
+
bodyModel: model.DistributedDatabasePrivateEndpoint,
|
|
1806
|
+
type: "model.DistributedDatabasePrivateEndpoint",
|
|
1807
|
+
responseHeaders: [
|
|
1808
|
+
{
|
|
1809
|
+
value: response.headers.get("opc-request-id"),
|
|
1810
|
+
key: "opcRequestId",
|
|
1811
|
+
dataType: "string"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
value: response.headers.get("etag"),
|
|
1815
|
+
key: "etag",
|
|
1816
|
+
dataType: "string"
|
|
1817
|
+
}
|
|
1818
|
+
]
|
|
1819
|
+
});
|
|
1820
|
+
return sdkResponse;
|
|
1821
|
+
}
|
|
1822
|
+
catch (err) {
|
|
1823
|
+
throw err;
|
|
1824
|
+
}
|
|
1825
|
+
});
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* List of DistributedDatabasePrivateEndpoints.
|
|
1829
|
+
*
|
|
1830
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1831
|
+
* @param ListDistributedDatabasePrivateEndpointsRequest
|
|
1832
|
+
* @return ListDistributedDatabasePrivateEndpointsResponse
|
|
1833
|
+
* @throws OciError when an error occurs
|
|
1834
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ListDistributedDatabasePrivateEndpoints.ts.html |here} to see how to use ListDistributedDatabasePrivateEndpoints API.
|
|
1835
|
+
*/
|
|
1836
|
+
listDistributedDatabasePrivateEndpoints(listDistributedDatabasePrivateEndpointsRequest) {
|
|
1837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1838
|
+
if (this.logger)
|
|
1839
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#listDistributedDatabasePrivateEndpoints.");
|
|
1840
|
+
const operationName = "listDistributedDatabasePrivateEndpoints";
|
|
1841
|
+
const apiReferenceLink = "";
|
|
1842
|
+
const pathParams = {};
|
|
1843
|
+
const queryParams = {
|
|
1844
|
+
"compartmentId": listDistributedDatabasePrivateEndpointsRequest.compartmentId,
|
|
1845
|
+
"lifecycleState": listDistributedDatabasePrivateEndpointsRequest.lifecycleState,
|
|
1846
|
+
"limit": listDistributedDatabasePrivateEndpointsRequest.limit,
|
|
1847
|
+
"page": listDistributedDatabasePrivateEndpointsRequest.page,
|
|
1848
|
+
"sortOrder": listDistributedDatabasePrivateEndpointsRequest.sortOrder,
|
|
1849
|
+
"sortBy": listDistributedDatabasePrivateEndpointsRequest.sortBy,
|
|
1850
|
+
"displayName": listDistributedDatabasePrivateEndpointsRequest.displayName
|
|
1851
|
+
};
|
|
1852
|
+
let headerParams = {
|
|
1853
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1854
|
+
"opc-request-id": listDistributedDatabasePrivateEndpointsRequest.opcRequestId
|
|
1855
|
+
};
|
|
1856
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1857
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDistributedDatabasePrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
1858
|
+
if (this.logger)
|
|
1859
|
+
retrier.logger = this.logger;
|
|
1860
|
+
const request = yield oci_common_1.composeRequest({
|
|
1861
|
+
baseEndpoint: this._endpoint,
|
|
1862
|
+
defaultHeaders: this._defaultHeaders,
|
|
1863
|
+
path: "/distributedDatabasePrivateEndpoints",
|
|
1864
|
+
method: "GET",
|
|
1865
|
+
pathParams: pathParams,
|
|
1866
|
+
headerParams: headerParams,
|
|
1867
|
+
queryParams: queryParams
|
|
1868
|
+
});
|
|
1869
|
+
try {
|
|
1870
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1871
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1872
|
+
responseObject: {},
|
|
1873
|
+
body: yield response.json(),
|
|
1874
|
+
bodyKey: "distributedDatabasePrivateEndpointCollection",
|
|
1875
|
+
bodyModel: model.DistributedDatabasePrivateEndpointCollection,
|
|
1876
|
+
type: "model.DistributedDatabasePrivateEndpointCollection",
|
|
1877
|
+
responseHeaders: [
|
|
1878
|
+
{
|
|
1879
|
+
value: response.headers.get("opc-request-id"),
|
|
1880
|
+
key: "opcRequestId",
|
|
1881
|
+
dataType: "string"
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
value: response.headers.get("opc-next-page"),
|
|
1885
|
+
key: "opcNextPage",
|
|
1886
|
+
dataType: "string"
|
|
1887
|
+
}
|
|
1888
|
+
]
|
|
1889
|
+
});
|
|
1890
|
+
return sdkResponse;
|
|
1891
|
+
}
|
|
1892
|
+
catch (err) {
|
|
1893
|
+
throw err;
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Reinstates the proxy instance associated with the DistributedDatabasePrivateEndpoint.
|
|
1899
|
+
*
|
|
1900
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1901
|
+
* @param ReinstateProxyInstanceRequest
|
|
1902
|
+
* @return ReinstateProxyInstanceResponse
|
|
1903
|
+
* @throws OciError when an error occurs
|
|
1904
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ReinstateProxyInstance.ts.html |here} to see how to use ReinstateProxyInstance API.
|
|
1905
|
+
*/
|
|
1906
|
+
reinstateProxyInstance(reinstateProxyInstanceRequest) {
|
|
1907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1908
|
+
if (this.logger)
|
|
1909
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#reinstateProxyInstance.");
|
|
1910
|
+
const operationName = "reinstateProxyInstance";
|
|
1911
|
+
const apiReferenceLink = "";
|
|
1912
|
+
const pathParams = {
|
|
1913
|
+
"{distributedDatabasePrivateEndpointId}": reinstateProxyInstanceRequest.distributedDatabasePrivateEndpointId
|
|
1914
|
+
};
|
|
1915
|
+
const queryParams = {};
|
|
1916
|
+
let headerParams = {
|
|
1917
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1918
|
+
"opc-request-id": reinstateProxyInstanceRequest.opcRequestId,
|
|
1919
|
+
"if-match": reinstateProxyInstanceRequest.ifMatch,
|
|
1920
|
+
"opc-retry-token": reinstateProxyInstanceRequest.opcRetryToken
|
|
1921
|
+
};
|
|
1922
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1923
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reinstateProxyInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
1924
|
+
if (this.logger)
|
|
1925
|
+
retrier.logger = this.logger;
|
|
1926
|
+
const request = yield oci_common_1.composeRequest({
|
|
1927
|
+
baseEndpoint: this._endpoint,
|
|
1928
|
+
defaultHeaders: this._defaultHeaders,
|
|
1929
|
+
path: "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}/actions/reinstateProxyInstance",
|
|
1930
|
+
method: "POST",
|
|
1931
|
+
pathParams: pathParams,
|
|
1932
|
+
headerParams: headerParams,
|
|
1933
|
+
queryParams: queryParams
|
|
1934
|
+
});
|
|
1935
|
+
try {
|
|
1936
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1937
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1938
|
+
responseObject: {},
|
|
1939
|
+
responseHeaders: [
|
|
1940
|
+
{
|
|
1941
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1942
|
+
key: "opcWorkRequestId",
|
|
1943
|
+
dataType: "string"
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
value: response.headers.get("opc-request-id"),
|
|
1947
|
+
key: "opcRequestId",
|
|
1948
|
+
dataType: "string"
|
|
1949
|
+
}
|
|
1950
|
+
]
|
|
1951
|
+
});
|
|
1952
|
+
return sdkResponse;
|
|
1953
|
+
}
|
|
1954
|
+
catch (err) {
|
|
1955
|
+
throw err;
|
|
1956
|
+
}
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Updates the configuration of DistributedDatabasePrivateEndpoint.
|
|
1961
|
+
*
|
|
1962
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1963
|
+
* @param UpdateDistributedDatabasePrivateEndpointRequest
|
|
1964
|
+
* @return UpdateDistributedDatabasePrivateEndpointResponse
|
|
1965
|
+
* @throws OciError when an error occurs
|
|
1966
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/UpdateDistributedDatabasePrivateEndpoint.ts.html |here} to see how to use UpdateDistributedDatabasePrivateEndpoint API.
|
|
1967
|
+
*/
|
|
1968
|
+
updateDistributedDatabasePrivateEndpoint(updateDistributedDatabasePrivateEndpointRequest) {
|
|
1969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1970
|
+
if (this.logger)
|
|
1971
|
+
this.logger.debug("Calling operation DistributedDbPrivateEndpointServiceClient#updateDistributedDatabasePrivateEndpoint.");
|
|
1972
|
+
const operationName = "updateDistributedDatabasePrivateEndpoint";
|
|
1973
|
+
const apiReferenceLink = "";
|
|
1974
|
+
const pathParams = {
|
|
1975
|
+
"{distributedDatabasePrivateEndpointId}": updateDistributedDatabasePrivateEndpointRequest.distributedDatabasePrivateEndpointId
|
|
1976
|
+
};
|
|
1977
|
+
const queryParams = {};
|
|
1978
|
+
let headerParams = {
|
|
1979
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1980
|
+
"opc-retry-token": updateDistributedDatabasePrivateEndpointRequest.opcRetryToken,
|
|
1981
|
+
"opc-request-id": updateDistributedDatabasePrivateEndpointRequest.opcRequestId,
|
|
1982
|
+
"if-match": updateDistributedDatabasePrivateEndpointRequest.ifMatch
|
|
1983
|
+
};
|
|
1984
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1985
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDistributedDatabasePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1986
|
+
if (this.logger)
|
|
1987
|
+
retrier.logger = this.logger;
|
|
1988
|
+
const request = yield oci_common_1.composeRequest({
|
|
1989
|
+
baseEndpoint: this._endpoint,
|
|
1990
|
+
defaultHeaders: this._defaultHeaders,
|
|
1991
|
+
path: "/distributedDatabasePrivateEndpoints/{distributedDatabasePrivateEndpointId}",
|
|
1992
|
+
method: "PUT",
|
|
1993
|
+
bodyContent: common.ObjectSerializer.serialize(updateDistributedDatabasePrivateEndpointRequest.updateDistributedDatabasePrivateEndpointDetails, "UpdateDistributedDatabasePrivateEndpointDetails", model.UpdateDistributedDatabasePrivateEndpointDetails.getJsonObj),
|
|
1994
|
+
pathParams: pathParams,
|
|
1995
|
+
headerParams: headerParams,
|
|
1996
|
+
queryParams: queryParams
|
|
1997
|
+
});
|
|
1998
|
+
try {
|
|
1999
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2000
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2001
|
+
responseObject: {},
|
|
2002
|
+
body: yield response.json(),
|
|
2003
|
+
bodyKey: "distributedDatabasePrivateEndpoint",
|
|
2004
|
+
bodyModel: model.DistributedDatabasePrivateEndpoint,
|
|
2005
|
+
type: "model.DistributedDatabasePrivateEndpoint",
|
|
2006
|
+
responseHeaders: [
|
|
2007
|
+
{
|
|
2008
|
+
value: response.headers.get("opc-request-id"),
|
|
2009
|
+
key: "opcRequestId",
|
|
2010
|
+
dataType: "string"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
value: response.headers.get("etag"),
|
|
2014
|
+
key: "etag",
|
|
2015
|
+
dataType: "string"
|
|
2016
|
+
}
|
|
2017
|
+
]
|
|
2018
|
+
});
|
|
2019
|
+
return sdkResponse;
|
|
2020
|
+
}
|
|
2021
|
+
catch (err) {
|
|
2022
|
+
throw err;
|
|
2023
|
+
}
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
exports.DistributedDbPrivateEndpointServiceClient = DistributedDbPrivateEndpointServiceClient;
|
|
2028
|
+
DistributedDbPrivateEndpointServiceClient.serviceEndpointTemplate = "https://globaldb.{region}.oci.{secondLevelDomain}";
|
|
2029
|
+
DistributedDbPrivateEndpointServiceClient.endpointServiceName = "";
|
|
2030
|
+
var DistributedDbServiceApiKeys;
|
|
2031
|
+
(function (DistributedDbServiceApiKeys) {
|
|
2032
|
+
})(DistributedDbServiceApiKeys = exports.DistributedDbServiceApiKeys || (exports.DistributedDbServiceApiKeys = {}));
|
|
2033
|
+
/**
|
|
2034
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2035
|
+
*/
|
|
2036
|
+
class DistributedDbServiceClient {
|
|
2037
|
+
constructor(params, clientConfiguration) {
|
|
2038
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
2039
|
+
this["_endpoint"] = "";
|
|
2040
|
+
this["_defaultHeaders"] = {};
|
|
2041
|
+
this._circuitBreaker = null;
|
|
2042
|
+
this._httpOptions = undefined;
|
|
2043
|
+
this._bodyDuplexMode = undefined;
|
|
2044
|
+
this.targetService = "DistributedDbService";
|
|
2045
|
+
this._regionId = "";
|
|
2046
|
+
this._lastSetRegionOrRegionId = "";
|
|
2047
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
2048
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2049
|
+
: null;
|
|
2050
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
2051
|
+
if (clientConfiguration) {
|
|
2052
|
+
this._clientConfiguration = clientConfiguration;
|
|
2053
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2054
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
2055
|
+
: null;
|
|
2056
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2057
|
+
? clientConfiguration.httpOptions
|
|
2058
|
+
: undefined;
|
|
2059
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
2060
|
+
? clientConfiguration.bodyDuplexMode
|
|
2061
|
+
: undefined;
|
|
2062
|
+
}
|
|
2063
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("distributeddatabase")) {
|
|
2064
|
+
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 : ";
|
|
2065
|
+
throw errmsg.concat("distributeddatabase");
|
|
2066
|
+
}
|
|
2067
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2068
|
+
const specCircuitBreakerEnabled = true;
|
|
2069
|
+
if (!this._circuitBreaker &&
|
|
2070
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2071
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2072
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2073
|
+
}
|
|
2074
|
+
this._httpClient =
|
|
2075
|
+
params.httpClient ||
|
|
2076
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
2077
|
+
if (params.authenticationDetailsProvider &&
|
|
2078
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2079
|
+
const provider = params.authenticationDetailsProvider;
|
|
2080
|
+
if (provider.getRegion()) {
|
|
2081
|
+
this.region = provider.getRegion();
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2087
|
+
*/
|
|
2088
|
+
get endpoint() {
|
|
2089
|
+
return this._endpoint;
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2093
|
+
* @param endpoint The endpoint of the service.
|
|
2094
|
+
*/
|
|
2095
|
+
set endpoint(endpoint) {
|
|
2096
|
+
this._endpoint = endpoint;
|
|
2097
|
+
this._endpoint = this._endpoint + "/20250101";
|
|
2098
|
+
if (this.logger)
|
|
2099
|
+
this.logger.info(`DistributedDbServiceClient endpoint set to ${this._endpoint}`);
|
|
2100
|
+
}
|
|
2101
|
+
get logger() {
|
|
2102
|
+
return common.LOG.logger;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2106
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2107
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2108
|
+
*/
|
|
2109
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2110
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2111
|
+
if (this.logger)
|
|
2112
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2113
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2114
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedDbServiceClient.serviceEndpointTemplate, this._region, DistributedDbServiceClient.endpointServiceName);
|
|
2115
|
+
}
|
|
2116
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2117
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedDbServiceClient.serviceEndpointTemplate, this._regionId, DistributedDbServiceClient.endpointServiceName);
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2122
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2123
|
+
* @param region The region of the service.
|
|
2124
|
+
*/
|
|
2125
|
+
set region(region) {
|
|
2126
|
+
this._region = region;
|
|
2127
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedDbServiceClient.serviceEndpointTemplate, region, DistributedDbServiceClient.endpointServiceName);
|
|
2128
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2129
|
+
}
|
|
2130
|
+
/**
|
|
2131
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
2132
|
+
*
|
|
2133
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
2134
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
2135
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
2136
|
+
* @param regionId The public region ID.
|
|
2137
|
+
*/
|
|
2138
|
+
set regionId(regionId) {
|
|
2139
|
+
this._regionId = regionId;
|
|
2140
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedDbServiceClient.serviceEndpointTemplate, regionId, DistributedDbServiceClient.endpointServiceName);
|
|
2141
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
2144
|
+
* Creates a new DistributedDbServiceWaiter for resources for this service.
|
|
2145
|
+
*
|
|
2146
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
2147
|
+
* @return The service waiters.
|
|
2148
|
+
*/
|
|
2149
|
+
createWaiters(config) {
|
|
2150
|
+
this._waiters = new distributeddbservice_waiter_1.DistributedDbServiceWaiter(this, config);
|
|
2151
|
+
return this._waiters;
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* Gets the waiters available for resources for this service.
|
|
2155
|
+
*
|
|
2156
|
+
* @return The service waiters.
|
|
2157
|
+
*/
|
|
2158
|
+
getWaiters() {
|
|
2159
|
+
if (this._waiters) {
|
|
2160
|
+
return this._waiters;
|
|
2161
|
+
}
|
|
2162
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
2166
|
+
*/
|
|
2167
|
+
shutdownCircuitBreaker() {
|
|
2168
|
+
if (this._circuitBreaker) {
|
|
2169
|
+
this._circuitBreaker.shutdown();
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
2174
|
+
*/
|
|
2175
|
+
closeProvider() {
|
|
2176
|
+
if (this._authProvider) {
|
|
2177
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
2178
|
+
(this._authProvider).closeProvider();
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
/**
|
|
2182
|
+
* Close the client once it is no longer needed
|
|
2183
|
+
*/
|
|
2184
|
+
close() {
|
|
2185
|
+
this.shutdownCircuitBreaker();
|
|
2186
|
+
this.closeProvider();
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* Add new Global database services control(GDS CTL) node for the Globally distributed database.
|
|
2190
|
+
*
|
|
2191
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2192
|
+
* @param AddDistributedDatabaseGdsControlNodeRequest
|
|
2193
|
+
* @return AddDistributedDatabaseGdsControlNodeResponse
|
|
2194
|
+
* @throws OciError when an error occurs
|
|
2195
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/AddDistributedDatabaseGdsControlNode.ts.html |here} to see how to use AddDistributedDatabaseGdsControlNode API.
|
|
2196
|
+
*/
|
|
2197
|
+
addDistributedDatabaseGdsControlNode(addDistributedDatabaseGdsControlNodeRequest) {
|
|
2198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2199
|
+
if (this.logger)
|
|
2200
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#addDistributedDatabaseGdsControlNode.");
|
|
2201
|
+
const operationName = "addDistributedDatabaseGdsControlNode";
|
|
2202
|
+
const apiReferenceLink = "";
|
|
2203
|
+
const pathParams = {
|
|
2204
|
+
"{distributedDatabaseId}": addDistributedDatabaseGdsControlNodeRequest.distributedDatabaseId
|
|
2205
|
+
};
|
|
2206
|
+
const queryParams = {};
|
|
2207
|
+
let headerParams = {
|
|
2208
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2209
|
+
"opc-request-id": addDistributedDatabaseGdsControlNodeRequest.opcRequestId,
|
|
2210
|
+
"if-match": addDistributedDatabaseGdsControlNodeRequest.ifMatch,
|
|
2211
|
+
"opc-retry-token": addDistributedDatabaseGdsControlNodeRequest.opcRetryToken
|
|
2212
|
+
};
|
|
2213
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2214
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addDistributedDatabaseGdsControlNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
2215
|
+
if (this.logger)
|
|
2216
|
+
retrier.logger = this.logger;
|
|
2217
|
+
const request = yield oci_common_1.composeRequest({
|
|
2218
|
+
baseEndpoint: this._endpoint,
|
|
2219
|
+
defaultHeaders: this._defaultHeaders,
|
|
2220
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/addGdsControlNode",
|
|
2221
|
+
method: "POST",
|
|
2222
|
+
bodyContent: common.ObjectSerializer.serialize(addDistributedDatabaseGdsControlNodeRequest.addDistributedDatabaseGdsControlNodeDetails, "AddDistributedDatabaseGdsControlNodeDetails", model.AddDistributedDatabaseGdsControlNodeDetails.getJsonObj),
|
|
2223
|
+
pathParams: pathParams,
|
|
2224
|
+
headerParams: headerParams,
|
|
2225
|
+
queryParams: queryParams
|
|
2226
|
+
});
|
|
2227
|
+
try {
|
|
2228
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2229
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2230
|
+
responseObject: {},
|
|
2231
|
+
responseHeaders: [
|
|
2232
|
+
{
|
|
2233
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2234
|
+
key: "opcWorkRequestId",
|
|
2235
|
+
dataType: "string"
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
value: response.headers.get("opc-request-id"),
|
|
2239
|
+
key: "opcRequestId",
|
|
2240
|
+
dataType: "string"
|
|
2241
|
+
}
|
|
2242
|
+
]
|
|
2243
|
+
});
|
|
2244
|
+
return sdkResponse;
|
|
2245
|
+
}
|
|
2246
|
+
catch (err) {
|
|
2247
|
+
throw err;
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* Move the Globally distributed database and its dependent resources to the specified compartment.
|
|
2253
|
+
*
|
|
2254
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2255
|
+
* @param ChangeDistributedDatabaseCompartmentRequest
|
|
2256
|
+
* @return ChangeDistributedDatabaseCompartmentResponse
|
|
2257
|
+
* @throws OciError when an error occurs
|
|
2258
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ChangeDistributedDatabaseCompartment.ts.html |here} to see how to use ChangeDistributedDatabaseCompartment API.
|
|
2259
|
+
*/
|
|
2260
|
+
changeDistributedDatabaseCompartment(changeDistributedDatabaseCompartmentRequest) {
|
|
2261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2262
|
+
if (this.logger)
|
|
2263
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#changeDistributedDatabaseCompartment.");
|
|
2264
|
+
const operationName = "changeDistributedDatabaseCompartment";
|
|
2265
|
+
const apiReferenceLink = "";
|
|
2266
|
+
const pathParams = {
|
|
2267
|
+
"{distributedDatabaseId}": changeDistributedDatabaseCompartmentRequest.distributedDatabaseId
|
|
2268
|
+
};
|
|
2269
|
+
const queryParams = {};
|
|
2270
|
+
let headerParams = {
|
|
2271
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2272
|
+
"opc-request-id": changeDistributedDatabaseCompartmentRequest.opcRequestId,
|
|
2273
|
+
"if-match": changeDistributedDatabaseCompartmentRequest.ifMatch,
|
|
2274
|
+
"opc-retry-token": changeDistributedDatabaseCompartmentRequest.opcRetryToken
|
|
2275
|
+
};
|
|
2276
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2277
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDistributedDatabaseCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2278
|
+
if (this.logger)
|
|
2279
|
+
retrier.logger = this.logger;
|
|
2280
|
+
const request = yield oci_common_1.composeRequest({
|
|
2281
|
+
baseEndpoint: this._endpoint,
|
|
2282
|
+
defaultHeaders: this._defaultHeaders,
|
|
2283
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/changeCompartment",
|
|
2284
|
+
method: "POST",
|
|
2285
|
+
bodyContent: common.ObjectSerializer.serialize(changeDistributedDatabaseCompartmentRequest.changeDistributedDatabaseCompartmentDetails, "ChangeDistributedDatabaseCompartmentDetails", model.ChangeDistributedDatabaseCompartmentDetails.getJsonObj),
|
|
2286
|
+
pathParams: pathParams,
|
|
2287
|
+
headerParams: headerParams,
|
|
2288
|
+
queryParams: queryParams
|
|
2289
|
+
});
|
|
2290
|
+
try {
|
|
2291
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2292
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2293
|
+
responseObject: {},
|
|
2294
|
+
responseHeaders: [
|
|
2295
|
+
{
|
|
2296
|
+
value: response.headers.get("opc-request-id"),
|
|
2297
|
+
key: "opcRequestId",
|
|
2298
|
+
dataType: "string"
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2302
|
+
key: "opcWorkRequestId",
|
|
2303
|
+
dataType: "string"
|
|
2304
|
+
}
|
|
2305
|
+
]
|
|
2306
|
+
});
|
|
2307
|
+
return sdkResponse;
|
|
2308
|
+
}
|
|
2309
|
+
catch (err) {
|
|
2310
|
+
throw err;
|
|
2311
|
+
}
|
|
2312
|
+
});
|
|
2313
|
+
}
|
|
2314
|
+
/**
|
|
2315
|
+
* Change the DbBackupConfig for the Globally distributed database.
|
|
2316
|
+
*
|
|
2317
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2318
|
+
* @param ChangeDistributedDbBackupConfigRequest
|
|
2319
|
+
* @return ChangeDistributedDbBackupConfigResponse
|
|
2320
|
+
* @throws OciError when an error occurs
|
|
2321
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ChangeDistributedDbBackupConfig.ts.html |here} to see how to use ChangeDistributedDbBackupConfig API.
|
|
2322
|
+
*/
|
|
2323
|
+
changeDistributedDbBackupConfig(changeDistributedDbBackupConfigRequest) {
|
|
2324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2325
|
+
if (this.logger)
|
|
2326
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#changeDistributedDbBackupConfig.");
|
|
2327
|
+
const operationName = "changeDistributedDbBackupConfig";
|
|
2328
|
+
const apiReferenceLink = "";
|
|
2329
|
+
const pathParams = {
|
|
2330
|
+
"{distributedDatabaseId}": changeDistributedDbBackupConfigRequest.distributedDatabaseId
|
|
2331
|
+
};
|
|
2332
|
+
const queryParams = {};
|
|
2333
|
+
let headerParams = {
|
|
2334
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2335
|
+
"opc-request-id": changeDistributedDbBackupConfigRequest.opcRequestId,
|
|
2336
|
+
"if-match": changeDistributedDbBackupConfigRequest.ifMatch,
|
|
2337
|
+
"opc-retry-token": changeDistributedDbBackupConfigRequest.opcRetryToken
|
|
2338
|
+
};
|
|
2339
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2340
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDistributedDbBackupConfigRequest.retryConfiguration, specRetryConfiguration);
|
|
2341
|
+
if (this.logger)
|
|
2342
|
+
retrier.logger = this.logger;
|
|
2343
|
+
const request = yield oci_common_1.composeRequest({
|
|
2344
|
+
baseEndpoint: this._endpoint,
|
|
2345
|
+
defaultHeaders: this._defaultHeaders,
|
|
2346
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/changeDbBackupConfig",
|
|
2347
|
+
method: "POST",
|
|
2348
|
+
bodyContent: common.ObjectSerializer.serialize(changeDistributedDbBackupConfigRequest.changeDistributedDbBackupConfigDetails, "ChangeDistributedDbBackupConfigDetails", model.ChangeDistributedDbBackupConfigDetails.getJsonObj),
|
|
2349
|
+
pathParams: pathParams,
|
|
2350
|
+
headerParams: headerParams,
|
|
2351
|
+
queryParams: queryParams
|
|
2352
|
+
});
|
|
2353
|
+
try {
|
|
2354
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2355
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2356
|
+
responseObject: {},
|
|
2357
|
+
responseHeaders: [
|
|
2358
|
+
{
|
|
2359
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2360
|
+
key: "opcWorkRequestId",
|
|
2361
|
+
dataType: "string"
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
value: response.headers.get("opc-request-id"),
|
|
2365
|
+
key: "opcRequestId",
|
|
2366
|
+
dataType: "string"
|
|
2367
|
+
}
|
|
2368
|
+
]
|
|
2369
|
+
});
|
|
2370
|
+
return sdkResponse;
|
|
2371
|
+
}
|
|
2372
|
+
catch (err) {
|
|
2373
|
+
throw err;
|
|
2374
|
+
}
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Configure new Global Service Manager(GSM aka shard manager) instances for the Globally distributed database.
|
|
2379
|
+
*
|
|
2380
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2381
|
+
* @param ConfigureDistributedDatabaseGsmsRequest
|
|
2382
|
+
* @return ConfigureDistributedDatabaseGsmsResponse
|
|
2383
|
+
* @throws OciError when an error occurs
|
|
2384
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ConfigureDistributedDatabaseGsms.ts.html |here} to see how to use ConfigureDistributedDatabaseGsms API.
|
|
2385
|
+
*/
|
|
2386
|
+
configureDistributedDatabaseGsms(configureDistributedDatabaseGsmsRequest) {
|
|
2387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
|
+
if (this.logger)
|
|
2389
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#configureDistributedDatabaseGsms.");
|
|
2390
|
+
const operationName = "configureDistributedDatabaseGsms";
|
|
2391
|
+
const apiReferenceLink = "";
|
|
2392
|
+
const pathParams = {
|
|
2393
|
+
"{distributedDatabaseId}": configureDistributedDatabaseGsmsRequest.distributedDatabaseId
|
|
2394
|
+
};
|
|
2395
|
+
const queryParams = {};
|
|
2396
|
+
let headerParams = {
|
|
2397
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2398
|
+
"opc-retry-token": configureDistributedDatabaseGsmsRequest.opcRetryToken,
|
|
2399
|
+
"opc-request-id": configureDistributedDatabaseGsmsRequest.opcRequestId,
|
|
2400
|
+
"if-match": configureDistributedDatabaseGsmsRequest.ifMatch
|
|
2401
|
+
};
|
|
2402
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2403
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureDistributedDatabaseGsmsRequest.retryConfiguration, specRetryConfiguration);
|
|
2404
|
+
if (this.logger)
|
|
2405
|
+
retrier.logger = this.logger;
|
|
2406
|
+
const request = yield oci_common_1.composeRequest({
|
|
2407
|
+
baseEndpoint: this._endpoint,
|
|
2408
|
+
defaultHeaders: this._defaultHeaders,
|
|
2409
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/configureGsms",
|
|
2410
|
+
method: "POST",
|
|
2411
|
+
bodyContent: common.ObjectSerializer.serialize(configureDistributedDatabaseGsmsRequest.configureDistributedDatabaseGsmsDetails, "ConfigureDistributedDatabaseGsmsDetails", model.ConfigureDistributedDatabaseGsmsDetails.getJsonObj),
|
|
2412
|
+
pathParams: pathParams,
|
|
2413
|
+
headerParams: headerParams,
|
|
2414
|
+
queryParams: queryParams
|
|
2415
|
+
});
|
|
2416
|
+
try {
|
|
2417
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2418
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2419
|
+
responseObject: {},
|
|
2420
|
+
responseHeaders: [
|
|
2421
|
+
{
|
|
2422
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2423
|
+
key: "opcWorkRequestId",
|
|
2424
|
+
dataType: "string"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
value: response.headers.get("opc-request-id"),
|
|
2428
|
+
key: "opcRequestId",
|
|
2429
|
+
dataType: "string"
|
|
2430
|
+
}
|
|
2431
|
+
]
|
|
2432
|
+
});
|
|
2433
|
+
return sdkResponse;
|
|
2434
|
+
}
|
|
2435
|
+
catch (err) {
|
|
2436
|
+
throw err;
|
|
2437
|
+
}
|
|
2438
|
+
});
|
|
2439
|
+
}
|
|
2440
|
+
/**
|
|
2441
|
+
* Once all components of Globally distributed database are provisioned, and signed GSM certificates are successfully uploaded, this
|
|
2442
|
+
* api shall be invoked to configure sharding on the Globally distributed database. Note that this 'ConfigureSharding' API also needs to be
|
|
2443
|
+
* invoked after successfully adding a new shard to the Globally distributed database using PATCH api. If this API is not
|
|
2444
|
+
* invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of
|
|
2445
|
+
* the Globally distributed database.
|
|
2446
|
+
*
|
|
2447
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2448
|
+
* @param ConfigureDistributedDatabaseShardingRequest
|
|
2449
|
+
* @return ConfigureDistributedDatabaseShardingResponse
|
|
2450
|
+
* @throws OciError when an error occurs
|
|
2451
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ConfigureDistributedDatabaseSharding.ts.html |here} to see how to use ConfigureDistributedDatabaseSharding API.
|
|
2452
|
+
*/
|
|
2453
|
+
configureDistributedDatabaseSharding(configureDistributedDatabaseShardingRequest) {
|
|
2454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2455
|
+
if (this.logger)
|
|
2456
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#configureDistributedDatabaseSharding.");
|
|
2457
|
+
const operationName = "configureDistributedDatabaseSharding";
|
|
2458
|
+
const apiReferenceLink = "";
|
|
2459
|
+
const pathParams = {
|
|
2460
|
+
"{distributedDatabaseId}": configureDistributedDatabaseShardingRequest.distributedDatabaseId
|
|
2461
|
+
};
|
|
2462
|
+
const queryParams = {
|
|
2463
|
+
"isRebalanceRequired": configureDistributedDatabaseShardingRequest.isRebalanceRequired
|
|
2464
|
+
};
|
|
2465
|
+
let headerParams = {
|
|
2466
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2467
|
+
"opc-retry-token": configureDistributedDatabaseShardingRequest.opcRetryToken,
|
|
2468
|
+
"opc-request-id": configureDistributedDatabaseShardingRequest.opcRequestId,
|
|
2469
|
+
"if-match": configureDistributedDatabaseShardingRequest.ifMatch
|
|
2470
|
+
};
|
|
2471
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2472
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureDistributedDatabaseShardingRequest.retryConfiguration, specRetryConfiguration);
|
|
2473
|
+
if (this.logger)
|
|
2474
|
+
retrier.logger = this.logger;
|
|
2475
|
+
const request = yield oci_common_1.composeRequest({
|
|
2476
|
+
baseEndpoint: this._endpoint,
|
|
2477
|
+
defaultHeaders: this._defaultHeaders,
|
|
2478
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/configureSharding",
|
|
2479
|
+
method: "POST",
|
|
2480
|
+
pathParams: pathParams,
|
|
2481
|
+
headerParams: headerParams,
|
|
2482
|
+
queryParams: queryParams
|
|
2483
|
+
});
|
|
2484
|
+
try {
|
|
2485
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2486
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2487
|
+
responseObject: {},
|
|
2488
|
+
responseHeaders: [
|
|
2489
|
+
{
|
|
2490
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2491
|
+
key: "opcWorkRequestId",
|
|
2492
|
+
dataType: "string"
|
|
2493
|
+
},
|
|
2494
|
+
{
|
|
2495
|
+
value: response.headers.get("opc-request-id"),
|
|
2496
|
+
key: "opcRequestId",
|
|
2497
|
+
dataType: "string"
|
|
2498
|
+
}
|
|
2499
|
+
]
|
|
2500
|
+
});
|
|
2501
|
+
return sdkResponse;
|
|
2502
|
+
}
|
|
2503
|
+
catch (err) {
|
|
2504
|
+
throw err;
|
|
2505
|
+
}
|
|
2506
|
+
});
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* Creates a Globally distributed database.
|
|
2510
|
+
*
|
|
2511
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2512
|
+
* @param CreateDistributedDatabaseRequest
|
|
2513
|
+
* @return CreateDistributedDatabaseResponse
|
|
2514
|
+
* @throws OciError when an error occurs
|
|
2515
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/CreateDistributedDatabase.ts.html |here} to see how to use CreateDistributedDatabase API.
|
|
2516
|
+
*/
|
|
2517
|
+
createDistributedDatabase(createDistributedDatabaseRequest) {
|
|
2518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2519
|
+
if (this.logger)
|
|
2520
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#createDistributedDatabase.");
|
|
2521
|
+
const operationName = "createDistributedDatabase";
|
|
2522
|
+
const apiReferenceLink = "";
|
|
2523
|
+
const pathParams = {};
|
|
2524
|
+
const queryParams = {};
|
|
2525
|
+
let headerParams = {
|
|
2526
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2527
|
+
"opc-retry-token": createDistributedDatabaseRequest.opcRetryToken,
|
|
2528
|
+
"opc-request-id": createDistributedDatabaseRequest.opcRequestId
|
|
2529
|
+
};
|
|
2530
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2531
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
2532
|
+
if (this.logger)
|
|
2533
|
+
retrier.logger = this.logger;
|
|
2534
|
+
const request = yield oci_common_1.composeRequest({
|
|
2535
|
+
baseEndpoint: this._endpoint,
|
|
2536
|
+
defaultHeaders: this._defaultHeaders,
|
|
2537
|
+
path: "/distributedDatabases",
|
|
2538
|
+
method: "POST",
|
|
2539
|
+
bodyContent: common.ObjectSerializer.serialize(createDistributedDatabaseRequest.createDistributedDatabaseDetails, "CreateDistributedDatabaseDetails", model.CreateDistributedDatabaseDetails.getJsonObj),
|
|
2540
|
+
pathParams: pathParams,
|
|
2541
|
+
headerParams: headerParams,
|
|
2542
|
+
queryParams: queryParams
|
|
2543
|
+
});
|
|
2544
|
+
try {
|
|
2545
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2546
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2547
|
+
responseObject: {},
|
|
2548
|
+
body: yield response.json(),
|
|
2549
|
+
bodyKey: "distributedDatabase",
|
|
2550
|
+
bodyModel: model.DistributedDatabase,
|
|
2551
|
+
type: "model.DistributedDatabase",
|
|
2552
|
+
responseHeaders: [
|
|
2553
|
+
{
|
|
2554
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2555
|
+
key: "opcWorkRequestId",
|
|
2556
|
+
dataType: "string"
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
value: response.headers.get("opc-request-id"),
|
|
2560
|
+
key: "opcRequestId",
|
|
2561
|
+
dataType: "string"
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
value: response.headers.get("etag"),
|
|
2565
|
+
key: "etag",
|
|
2566
|
+
dataType: "string"
|
|
2567
|
+
}
|
|
2568
|
+
]
|
|
2569
|
+
});
|
|
2570
|
+
return sdkResponse;
|
|
2571
|
+
}
|
|
2572
|
+
catch (err) {
|
|
2573
|
+
throw err;
|
|
2574
|
+
}
|
|
2575
|
+
});
|
|
2576
|
+
}
|
|
2577
|
+
/**
|
|
2578
|
+
* Terminate the given Globally distributed databases.
|
|
2579
|
+
*
|
|
2580
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2581
|
+
* @param DeleteDistributedDatabaseRequest
|
|
2582
|
+
* @return DeleteDistributedDatabaseResponse
|
|
2583
|
+
* @throws OciError when an error occurs
|
|
2584
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/DeleteDistributedDatabase.ts.html |here} to see how to use DeleteDistributedDatabase API.
|
|
2585
|
+
*/
|
|
2586
|
+
deleteDistributedDatabase(deleteDistributedDatabaseRequest) {
|
|
2587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2588
|
+
if (this.logger)
|
|
2589
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#deleteDistributedDatabase.");
|
|
2590
|
+
const operationName = "deleteDistributedDatabase";
|
|
2591
|
+
const apiReferenceLink = "";
|
|
2592
|
+
const pathParams = {
|
|
2593
|
+
"{distributedDatabaseId}": deleteDistributedDatabaseRequest.distributedDatabaseId
|
|
2594
|
+
};
|
|
2595
|
+
const queryParams = {};
|
|
2596
|
+
let headerParams = {
|
|
2597
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2598
|
+
"opc-request-id": deleteDistributedDatabaseRequest.opcRequestId,
|
|
2599
|
+
"opc-retry-token": deleteDistributedDatabaseRequest.opcRetryToken,
|
|
2600
|
+
"if-match": deleteDistributedDatabaseRequest.ifMatch
|
|
2601
|
+
};
|
|
2602
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2603
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
2604
|
+
if (this.logger)
|
|
2605
|
+
retrier.logger = this.logger;
|
|
2606
|
+
const request = yield oci_common_1.composeRequest({
|
|
2607
|
+
baseEndpoint: this._endpoint,
|
|
2608
|
+
defaultHeaders: this._defaultHeaders,
|
|
2609
|
+
path: "/distributedDatabases/{distributedDatabaseId}",
|
|
2610
|
+
method: "DELETE",
|
|
2611
|
+
pathParams: pathParams,
|
|
2612
|
+
headerParams: headerParams,
|
|
2613
|
+
queryParams: queryParams
|
|
2614
|
+
});
|
|
2615
|
+
try {
|
|
2616
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2617
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2618
|
+
responseObject: {},
|
|
2619
|
+
responseHeaders: [
|
|
2620
|
+
{
|
|
2621
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2622
|
+
key: "opcWorkRequestId",
|
|
2623
|
+
dataType: "string"
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
value: response.headers.get("opc-request-id"),
|
|
2627
|
+
key: "opcRequestId",
|
|
2628
|
+
dataType: "string"
|
|
2629
|
+
}
|
|
2630
|
+
]
|
|
2631
|
+
});
|
|
2632
|
+
return sdkResponse;
|
|
2633
|
+
}
|
|
2634
|
+
catch (err) {
|
|
2635
|
+
throw err;
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
* Generate the common certificate signing request for GSMs. Download the <globaldb-prefix>.csr file from
|
|
2641
|
+
* API response. Users can use this .csr file to generate the CA signed certificate, and as a next step
|
|
2642
|
+
* use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed certificate to GSM, and
|
|
2643
|
+
* generate wallets for the GSM instances of the Globally distributed database.
|
|
2644
|
+
*
|
|
2645
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2646
|
+
* @param DownloadDistributedDatabaseGsmCertificateSigningRequestRequest
|
|
2647
|
+
* @return DownloadDistributedDatabaseGsmCertificateSigningRequestResponse
|
|
2648
|
+
* @throws OciError when an error occurs
|
|
2649
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/DownloadDistributedDatabaseGsmCertificateSigningRequest.ts.html |here} to see how to use DownloadDistributedDatabaseGsmCertificateSigningRequest API.
|
|
2650
|
+
*/
|
|
2651
|
+
downloadDistributedDatabaseGsmCertificateSigningRequest(downloadDistributedDatabaseGsmCertificateSigningRequestRequest) {
|
|
2652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2653
|
+
if (this.logger)
|
|
2654
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#downloadDistributedDatabaseGsmCertificateSigningRequest.");
|
|
2655
|
+
const operationName = "downloadDistributedDatabaseGsmCertificateSigningRequest";
|
|
2656
|
+
const apiReferenceLink = "";
|
|
2657
|
+
const pathParams = {
|
|
2658
|
+
"{distributedDatabaseId}": downloadDistributedDatabaseGsmCertificateSigningRequestRequest.distributedDatabaseId
|
|
2659
|
+
};
|
|
2660
|
+
const queryParams = {};
|
|
2661
|
+
let headerParams = {
|
|
2662
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2663
|
+
"opc-request-id": downloadDistributedDatabaseGsmCertificateSigningRequestRequest.opcRequestId,
|
|
2664
|
+
"if-match": downloadDistributedDatabaseGsmCertificateSigningRequestRequest.ifMatch,
|
|
2665
|
+
"opc-retry-token": downloadDistributedDatabaseGsmCertificateSigningRequestRequest.opcRetryToken
|
|
2666
|
+
};
|
|
2667
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2668
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadDistributedDatabaseGsmCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2669
|
+
if (this.logger)
|
|
2670
|
+
retrier.logger = this.logger;
|
|
2671
|
+
const request = yield oci_common_1.composeRequest({
|
|
2672
|
+
baseEndpoint: this._endpoint,
|
|
2673
|
+
defaultHeaders: this._defaultHeaders,
|
|
2674
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/downloadGsmCertificateSigningRequest",
|
|
2675
|
+
method: "POST",
|
|
2676
|
+
pathParams: pathParams,
|
|
2677
|
+
headerParams: headerParams,
|
|
2678
|
+
queryParams: queryParams
|
|
2679
|
+
});
|
|
2680
|
+
try {
|
|
2681
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2682
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2683
|
+
responseObject: {},
|
|
2684
|
+
body: response.body,
|
|
2685
|
+
bodyKey: "value",
|
|
2686
|
+
bodyModel: "string",
|
|
2687
|
+
responseHeaders: [
|
|
2688
|
+
{
|
|
2689
|
+
value: response.headers.get("opc-request-id"),
|
|
2690
|
+
key: "opcRequestId",
|
|
2691
|
+
dataType: "string"
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
value: response.headers.get("etag"),
|
|
2695
|
+
key: "etag",
|
|
2696
|
+
dataType: "string"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
value: response.headers.get("content-length"),
|
|
2700
|
+
key: "contentLength",
|
|
2701
|
+
dataType: "number"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
value: response.headers.get("last-modified"),
|
|
2705
|
+
key: "lastModified",
|
|
2706
|
+
dataType: "Date"
|
|
2707
|
+
}
|
|
2708
|
+
]
|
|
2709
|
+
});
|
|
2710
|
+
return sdkResponse;
|
|
2711
|
+
}
|
|
2712
|
+
catch (err) {
|
|
2713
|
+
throw err;
|
|
2714
|
+
}
|
|
2715
|
+
});
|
|
2716
|
+
}
|
|
2717
|
+
/**
|
|
2718
|
+
* Generate the certificate signing request for GSM instances of the Globally distributed database. Once certificate signing
|
|
2719
|
+
* request is generated, then customers can download the certificate signing request using
|
|
2720
|
+
* 'downloadGsmCertificateSigningRequest' api call.
|
|
2721
|
+
*
|
|
2722
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2723
|
+
* @param GenerateDistributedDatabaseGsmCertificateSigningRequestRequest
|
|
2724
|
+
* @return GenerateDistributedDatabaseGsmCertificateSigningRequestResponse
|
|
2725
|
+
* @throws OciError when an error occurs
|
|
2726
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GenerateDistributedDatabaseGsmCertificateSigningRequest.ts.html |here} to see how to use GenerateDistributedDatabaseGsmCertificateSigningRequest API.
|
|
2727
|
+
*/
|
|
2728
|
+
generateDistributedDatabaseGsmCertificateSigningRequest(generateDistributedDatabaseGsmCertificateSigningRequestRequest) {
|
|
2729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2730
|
+
if (this.logger)
|
|
2731
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#generateDistributedDatabaseGsmCertificateSigningRequest.");
|
|
2732
|
+
const operationName = "generateDistributedDatabaseGsmCertificateSigningRequest";
|
|
2733
|
+
const apiReferenceLink = "";
|
|
2734
|
+
const pathParams = {
|
|
2735
|
+
"{distributedDatabaseId}": generateDistributedDatabaseGsmCertificateSigningRequestRequest.distributedDatabaseId
|
|
2736
|
+
};
|
|
2737
|
+
const queryParams = {
|
|
2738
|
+
"caBundleId": generateDistributedDatabaseGsmCertificateSigningRequestRequest.caBundleId
|
|
2739
|
+
};
|
|
2740
|
+
let headerParams = {
|
|
2741
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2742
|
+
"opc-request-id": generateDistributedDatabaseGsmCertificateSigningRequestRequest.opcRequestId,
|
|
2743
|
+
"if-match": generateDistributedDatabaseGsmCertificateSigningRequestRequest.ifMatch,
|
|
2744
|
+
"opc-retry-token": generateDistributedDatabaseGsmCertificateSigningRequestRequest.opcRetryToken
|
|
2745
|
+
};
|
|
2746
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2747
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDistributedDatabaseGsmCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2748
|
+
if (this.logger)
|
|
2749
|
+
retrier.logger = this.logger;
|
|
2750
|
+
const request = yield oci_common_1.composeRequest({
|
|
2751
|
+
baseEndpoint: this._endpoint,
|
|
2752
|
+
defaultHeaders: this._defaultHeaders,
|
|
2753
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/generateGsmCertificateSigningRequest",
|
|
2754
|
+
method: "POST",
|
|
2755
|
+
pathParams: pathParams,
|
|
2756
|
+
headerParams: headerParams,
|
|
2757
|
+
queryParams: queryParams
|
|
2758
|
+
});
|
|
2759
|
+
try {
|
|
2760
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2761
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2762
|
+
responseObject: {},
|
|
2763
|
+
responseHeaders: [
|
|
2764
|
+
{
|
|
2765
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2766
|
+
key: "opcWorkRequestId",
|
|
2767
|
+
dataType: "string"
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
value: response.headers.get("opc-request-id"),
|
|
2771
|
+
key: "opcRequestId",
|
|
2772
|
+
dataType: "string"
|
|
2773
|
+
}
|
|
2774
|
+
]
|
|
2775
|
+
});
|
|
2776
|
+
return sdkResponse;
|
|
2777
|
+
}
|
|
2778
|
+
catch (err) {
|
|
2779
|
+
throw err;
|
|
2780
|
+
}
|
|
2781
|
+
});
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* Generate the wallet associated with Globally distributed database.
|
|
2785
|
+
*
|
|
2786
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2787
|
+
* @param GenerateDistributedDatabaseWalletRequest
|
|
2788
|
+
* @return GenerateDistributedDatabaseWalletResponse
|
|
2789
|
+
* @throws OciError when an error occurs
|
|
2790
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GenerateDistributedDatabaseWallet.ts.html |here} to see how to use GenerateDistributedDatabaseWallet API.
|
|
2791
|
+
*/
|
|
2792
|
+
generateDistributedDatabaseWallet(generateDistributedDatabaseWalletRequest) {
|
|
2793
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2794
|
+
if (this.logger)
|
|
2795
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#generateDistributedDatabaseWallet.");
|
|
2796
|
+
const operationName = "generateDistributedDatabaseWallet";
|
|
2797
|
+
const apiReferenceLink = "";
|
|
2798
|
+
const pathParams = {
|
|
2799
|
+
"{distributedDatabaseId}": generateDistributedDatabaseWalletRequest.distributedDatabaseId
|
|
2800
|
+
};
|
|
2801
|
+
const queryParams = {};
|
|
2802
|
+
let headerParams = {
|
|
2803
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2804
|
+
"opc-request-id": generateDistributedDatabaseWalletRequest.opcRequestId,
|
|
2805
|
+
"if-match": generateDistributedDatabaseWalletRequest.ifMatch,
|
|
2806
|
+
"opc-retry-token": generateDistributedDatabaseWalletRequest.opcRetryToken
|
|
2807
|
+
};
|
|
2808
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2809
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateDistributedDatabaseWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
2810
|
+
if (this.logger)
|
|
2811
|
+
retrier.logger = this.logger;
|
|
2812
|
+
const request = yield oci_common_1.composeRequest({
|
|
2813
|
+
baseEndpoint: this._endpoint,
|
|
2814
|
+
defaultHeaders: this._defaultHeaders,
|
|
2815
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/generateWallet",
|
|
2816
|
+
method: "POST",
|
|
2817
|
+
bodyContent: common.ObjectSerializer.serialize(generateDistributedDatabaseWalletRequest.generateDistributedDatabaseWalletDetails, "GenerateDistributedDatabaseWalletDetails", model.GenerateDistributedDatabaseWalletDetails.getJsonObj),
|
|
2818
|
+
pathParams: pathParams,
|
|
2819
|
+
headerParams: headerParams,
|
|
2820
|
+
queryParams: queryParams
|
|
2821
|
+
});
|
|
2822
|
+
try {
|
|
2823
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2824
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2825
|
+
responseObject: {},
|
|
2826
|
+
body: response.body,
|
|
2827
|
+
bodyKey: "value",
|
|
2828
|
+
bodyModel: "string",
|
|
2829
|
+
responseHeaders: [
|
|
2830
|
+
{
|
|
2831
|
+
value: response.headers.get("opc-request-id"),
|
|
2832
|
+
key: "opcRequestId",
|
|
2833
|
+
dataType: "string"
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
value: response.headers.get("etag"),
|
|
2837
|
+
key: "etag",
|
|
2838
|
+
dataType: "string"
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
value: response.headers.get("content-length"),
|
|
2842
|
+
key: "contentLength",
|
|
2843
|
+
dataType: "number"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
value: response.headers.get("last-modified"),
|
|
2847
|
+
key: "lastModified",
|
|
2848
|
+
dataType: "Date"
|
|
2849
|
+
}
|
|
2850
|
+
]
|
|
2851
|
+
});
|
|
2852
|
+
return sdkResponse;
|
|
2853
|
+
}
|
|
2854
|
+
catch (err) {
|
|
2855
|
+
throw err;
|
|
2856
|
+
}
|
|
2857
|
+
});
|
|
2858
|
+
}
|
|
2859
|
+
/**
|
|
2860
|
+
* Gets the details of the Globally distributed database identified by given id.
|
|
2861
|
+
*
|
|
2862
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2863
|
+
* @param GetDistributedDatabaseRequest
|
|
2864
|
+
* @return GetDistributedDatabaseResponse
|
|
2865
|
+
* @throws OciError when an error occurs
|
|
2866
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GetDistributedDatabase.ts.html |here} to see how to use GetDistributedDatabase API.
|
|
2867
|
+
*/
|
|
2868
|
+
getDistributedDatabase(getDistributedDatabaseRequest) {
|
|
2869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2870
|
+
if (this.logger)
|
|
2871
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#getDistributedDatabase.");
|
|
2872
|
+
const operationName = "getDistributedDatabase";
|
|
2873
|
+
const apiReferenceLink = "";
|
|
2874
|
+
const pathParams = {
|
|
2875
|
+
"{distributedDatabaseId}": getDistributedDatabaseRequest.distributedDatabaseId
|
|
2876
|
+
};
|
|
2877
|
+
const queryParams = {
|
|
2878
|
+
"metadata": getDistributedDatabaseRequest.metadata
|
|
2879
|
+
};
|
|
2880
|
+
let headerParams = {
|
|
2881
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2882
|
+
"if-none-match": getDistributedDatabaseRequest.ifNoneMatch,
|
|
2883
|
+
"opc-request-id": getDistributedDatabaseRequest.opcRequestId
|
|
2884
|
+
};
|
|
2885
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2886
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
2887
|
+
if (this.logger)
|
|
2888
|
+
retrier.logger = this.logger;
|
|
2889
|
+
const request = yield oci_common_1.composeRequest({
|
|
2890
|
+
baseEndpoint: this._endpoint,
|
|
2891
|
+
defaultHeaders: this._defaultHeaders,
|
|
2892
|
+
path: "/distributedDatabases/{distributedDatabaseId}",
|
|
2893
|
+
method: "GET",
|
|
2894
|
+
pathParams: pathParams,
|
|
2895
|
+
headerParams: headerParams,
|
|
2896
|
+
queryParams: queryParams
|
|
2897
|
+
});
|
|
2898
|
+
try {
|
|
2899
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2900
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2901
|
+
responseObject: {},
|
|
2902
|
+
body: yield response.json(),
|
|
2903
|
+
bodyKey: "distributedDatabase",
|
|
2904
|
+
bodyModel: model.DistributedDatabase,
|
|
2905
|
+
type: "model.DistributedDatabase",
|
|
2906
|
+
responseHeaders: [
|
|
2907
|
+
{
|
|
2908
|
+
value: response.headers.get("opc-request-id"),
|
|
2909
|
+
key: "opcRequestId",
|
|
2910
|
+
dataType: "string"
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
value: response.headers.get("etag"),
|
|
2914
|
+
key: "etag",
|
|
2915
|
+
dataType: "string"
|
|
2916
|
+
}
|
|
2917
|
+
]
|
|
2918
|
+
});
|
|
2919
|
+
return sdkResponse;
|
|
2920
|
+
}
|
|
2921
|
+
catch (err) {
|
|
2922
|
+
throw err;
|
|
2923
|
+
}
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
/**
|
|
2927
|
+
* List of Globally distributed databases.
|
|
2928
|
+
*
|
|
2929
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2930
|
+
* @param ListDistributedDatabasesRequest
|
|
2931
|
+
* @return ListDistributedDatabasesResponse
|
|
2932
|
+
* @throws OciError when an error occurs
|
|
2933
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ListDistributedDatabases.ts.html |here} to see how to use ListDistributedDatabases API.
|
|
2934
|
+
*/
|
|
2935
|
+
listDistributedDatabases(listDistributedDatabasesRequest) {
|
|
2936
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2937
|
+
if (this.logger)
|
|
2938
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#listDistributedDatabases.");
|
|
2939
|
+
const operationName = "listDistributedDatabases";
|
|
2940
|
+
const apiReferenceLink = "";
|
|
2941
|
+
const pathParams = {};
|
|
2942
|
+
const queryParams = {
|
|
2943
|
+
"compartmentId": listDistributedDatabasesRequest.compartmentId,
|
|
2944
|
+
"lifecycleState": listDistributedDatabasesRequest.lifecycleState,
|
|
2945
|
+
"limit": listDistributedDatabasesRequest.limit,
|
|
2946
|
+
"page": listDistributedDatabasesRequest.page,
|
|
2947
|
+
"sortOrder": listDistributedDatabasesRequest.sortOrder,
|
|
2948
|
+
"sortBy": listDistributedDatabasesRequest.sortBy,
|
|
2949
|
+
"displayName": listDistributedDatabasesRequest.displayName,
|
|
2950
|
+
"dbDeploymentType": listDistributedDatabasesRequest.dbDeploymentType,
|
|
2951
|
+
"metadata": listDistributedDatabasesRequest.metadata
|
|
2952
|
+
};
|
|
2953
|
+
let headerParams = {
|
|
2954
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2955
|
+
"opc-request-id": listDistributedDatabasesRequest.opcRequestId
|
|
2956
|
+
};
|
|
2957
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2958
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDistributedDatabasesRequest.retryConfiguration, specRetryConfiguration);
|
|
2959
|
+
if (this.logger)
|
|
2960
|
+
retrier.logger = this.logger;
|
|
2961
|
+
const request = yield oci_common_1.composeRequest({
|
|
2962
|
+
baseEndpoint: this._endpoint,
|
|
2963
|
+
defaultHeaders: this._defaultHeaders,
|
|
2964
|
+
path: "/distributedDatabases",
|
|
2965
|
+
method: "GET",
|
|
2966
|
+
pathParams: pathParams,
|
|
2967
|
+
headerParams: headerParams,
|
|
2968
|
+
queryParams: queryParams
|
|
2969
|
+
});
|
|
2970
|
+
try {
|
|
2971
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2972
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2973
|
+
responseObject: {},
|
|
2974
|
+
body: yield response.json(),
|
|
2975
|
+
bodyKey: "distributedDatabaseCollection",
|
|
2976
|
+
bodyModel: model.DistributedDatabaseCollection,
|
|
2977
|
+
type: "model.DistributedDatabaseCollection",
|
|
2978
|
+
responseHeaders: [
|
|
2979
|
+
{
|
|
2980
|
+
value: response.headers.get("opc-request-id"),
|
|
2981
|
+
key: "opcRequestId",
|
|
2982
|
+
dataType: "string"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
value: response.headers.get("opc-next-page"),
|
|
2986
|
+
key: "opcNextPage",
|
|
2987
|
+
dataType: "string"
|
|
2988
|
+
}
|
|
2989
|
+
]
|
|
2990
|
+
});
|
|
2991
|
+
return sdkResponse;
|
|
2992
|
+
}
|
|
2993
|
+
catch (err) {
|
|
2994
|
+
throw err;
|
|
2995
|
+
}
|
|
2996
|
+
});
|
|
2997
|
+
}
|
|
2998
|
+
/**
|
|
2999
|
+
* Patch operation to add, remove or update shards to the Globally distributed database topology. In single patch
|
|
3000
|
+
* operation, multiple shards can be either added, or removed or updated. Combination of inserts, update
|
|
3001
|
+
* and remove in single operation is not allowed.
|
|
3002
|
+
*
|
|
3003
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3004
|
+
* @param PatchDistributedDatabaseRequest
|
|
3005
|
+
* @return PatchDistributedDatabaseResponse
|
|
3006
|
+
* @throws OciError when an error occurs
|
|
3007
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/PatchDistributedDatabase.ts.html |here} to see how to use PatchDistributedDatabase API.
|
|
3008
|
+
*/
|
|
3009
|
+
patchDistributedDatabase(patchDistributedDatabaseRequest) {
|
|
3010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3011
|
+
if (this.logger)
|
|
3012
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#patchDistributedDatabase.");
|
|
3013
|
+
const operationName = "patchDistributedDatabase";
|
|
3014
|
+
const apiReferenceLink = "";
|
|
3015
|
+
const pathParams = {
|
|
3016
|
+
"{distributedDatabaseId}": patchDistributedDatabaseRequest.distributedDatabaseId
|
|
3017
|
+
};
|
|
3018
|
+
const queryParams = {};
|
|
3019
|
+
let headerParams = {
|
|
3020
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3021
|
+
"if-match": patchDistributedDatabaseRequest.ifMatch,
|
|
3022
|
+
"opc-retry-token": patchDistributedDatabaseRequest.opcRetryToken,
|
|
3023
|
+
"opc-request-id": patchDistributedDatabaseRequest.opcRequestId
|
|
3024
|
+
};
|
|
3025
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3026
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
3027
|
+
if (this.logger)
|
|
3028
|
+
retrier.logger = this.logger;
|
|
3029
|
+
const request = yield oci_common_1.composeRequest({
|
|
3030
|
+
baseEndpoint: this._endpoint,
|
|
3031
|
+
defaultHeaders: this._defaultHeaders,
|
|
3032
|
+
path: "/distributedDatabases/{distributedDatabaseId}",
|
|
3033
|
+
method: "PATCH",
|
|
3034
|
+
bodyContent: common.ObjectSerializer.serialize(patchDistributedDatabaseRequest.patchDistributedDatabaseDetails, "PatchDistributedDatabaseDetails", model.PatchDistributedDatabaseDetails.getJsonObj),
|
|
3035
|
+
pathParams: pathParams,
|
|
3036
|
+
headerParams: headerParams,
|
|
3037
|
+
queryParams: queryParams
|
|
3038
|
+
});
|
|
3039
|
+
try {
|
|
3040
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3041
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3042
|
+
responseObject: {},
|
|
3043
|
+
responseHeaders: [
|
|
3044
|
+
{
|
|
3045
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3046
|
+
key: "opcWorkRequestId",
|
|
3047
|
+
dataType: "string"
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
value: response.headers.get("opc-request-id"),
|
|
3051
|
+
key: "opcRequestId",
|
|
3052
|
+
dataType: "string"
|
|
3053
|
+
}
|
|
3054
|
+
]
|
|
3055
|
+
});
|
|
3056
|
+
return sdkResponse;
|
|
3057
|
+
}
|
|
3058
|
+
catch (err) {
|
|
3059
|
+
throw err;
|
|
3060
|
+
}
|
|
3061
|
+
});
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* Rotate passwords for different components of the Globally distributed database.
|
|
3065
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3066
|
+
* @param RotateDistributedDatabasePasswordsRequest
|
|
3067
|
+
* @return RotateDistributedDatabasePasswordsResponse
|
|
3068
|
+
* @throws OciError when an error occurs
|
|
3069
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/RotateDistributedDatabasePasswords.ts.html |here} to see how to use RotateDistributedDatabasePasswords API.
|
|
3070
|
+
*/
|
|
3071
|
+
rotateDistributedDatabasePasswords(rotateDistributedDatabasePasswordsRequest) {
|
|
3072
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3073
|
+
if (this.logger)
|
|
3074
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#rotateDistributedDatabasePasswords.");
|
|
3075
|
+
const operationName = "rotateDistributedDatabasePasswords";
|
|
3076
|
+
const apiReferenceLink = "";
|
|
3077
|
+
const pathParams = {
|
|
3078
|
+
"{distributedDatabaseId}": rotateDistributedDatabasePasswordsRequest.distributedDatabaseId
|
|
3079
|
+
};
|
|
3080
|
+
const queryParams = {};
|
|
3081
|
+
let headerParams = {
|
|
3082
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3083
|
+
"opc-request-id": rotateDistributedDatabasePasswordsRequest.opcRequestId,
|
|
3084
|
+
"if-match": rotateDistributedDatabasePasswordsRequest.ifMatch,
|
|
3085
|
+
"opc-retry-token": rotateDistributedDatabasePasswordsRequest.opcRetryToken
|
|
3086
|
+
};
|
|
3087
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3088
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, rotateDistributedDatabasePasswordsRequest.retryConfiguration, specRetryConfiguration);
|
|
3089
|
+
if (this.logger)
|
|
3090
|
+
retrier.logger = this.logger;
|
|
3091
|
+
const request = yield oci_common_1.composeRequest({
|
|
3092
|
+
baseEndpoint: this._endpoint,
|
|
3093
|
+
defaultHeaders: this._defaultHeaders,
|
|
3094
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/rotateDbPasswords",
|
|
3095
|
+
method: "POST",
|
|
3096
|
+
pathParams: pathParams,
|
|
3097
|
+
headerParams: headerParams,
|
|
3098
|
+
queryParams: queryParams
|
|
3099
|
+
});
|
|
3100
|
+
try {
|
|
3101
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3102
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3103
|
+
responseObject: {},
|
|
3104
|
+
responseHeaders: [
|
|
3105
|
+
{
|
|
3106
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3107
|
+
key: "opcWorkRequestId",
|
|
3108
|
+
dataType: "string"
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
value: response.headers.get("opc-request-id"),
|
|
3112
|
+
key: "opcRequestId",
|
|
3113
|
+
dataType: "string"
|
|
3114
|
+
}
|
|
3115
|
+
]
|
|
3116
|
+
});
|
|
3117
|
+
return sdkResponse;
|
|
3118
|
+
}
|
|
3119
|
+
catch (err) {
|
|
3120
|
+
throw err;
|
|
3121
|
+
}
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* Start the shards, catalog and GSMs of Globally distributed database.
|
|
3126
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3127
|
+
* @param StartDistributedDatabaseRequest
|
|
3128
|
+
* @return StartDistributedDatabaseResponse
|
|
3129
|
+
* @throws OciError when an error occurs
|
|
3130
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/StartDistributedDatabase.ts.html |here} to see how to use StartDistributedDatabase API.
|
|
3131
|
+
*/
|
|
3132
|
+
startDistributedDatabase(startDistributedDatabaseRequest) {
|
|
3133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3134
|
+
if (this.logger)
|
|
3135
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#startDistributedDatabase.");
|
|
3136
|
+
const operationName = "startDistributedDatabase";
|
|
3137
|
+
const apiReferenceLink = "";
|
|
3138
|
+
const pathParams = {
|
|
3139
|
+
"{distributedDatabaseId}": startDistributedDatabaseRequest.distributedDatabaseId
|
|
3140
|
+
};
|
|
3141
|
+
const queryParams = {};
|
|
3142
|
+
let headerParams = {
|
|
3143
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3144
|
+
"opc-retry-token": startDistributedDatabaseRequest.opcRetryToken,
|
|
3145
|
+
"opc-request-id": startDistributedDatabaseRequest.opcRequestId,
|
|
3146
|
+
"if-match": startDistributedDatabaseRequest.ifMatch
|
|
3147
|
+
};
|
|
3148
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3149
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
3150
|
+
if (this.logger)
|
|
3151
|
+
retrier.logger = this.logger;
|
|
3152
|
+
const request = yield oci_common_1.composeRequest({
|
|
3153
|
+
baseEndpoint: this._endpoint,
|
|
3154
|
+
defaultHeaders: this._defaultHeaders,
|
|
3155
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/startDatabase",
|
|
3156
|
+
method: "POST",
|
|
3157
|
+
pathParams: pathParams,
|
|
3158
|
+
headerParams: headerParams,
|
|
3159
|
+
queryParams: queryParams
|
|
3160
|
+
});
|
|
3161
|
+
try {
|
|
3162
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3163
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3164
|
+
responseObject: {},
|
|
3165
|
+
responseHeaders: [
|
|
3166
|
+
{
|
|
3167
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3168
|
+
key: "opcWorkRequestId",
|
|
3169
|
+
dataType: "string"
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
value: response.headers.get("opc-request-id"),
|
|
3173
|
+
key: "opcRequestId",
|
|
3174
|
+
dataType: "string"
|
|
3175
|
+
}
|
|
3176
|
+
]
|
|
3177
|
+
});
|
|
3178
|
+
return sdkResponse;
|
|
3179
|
+
}
|
|
3180
|
+
catch (err) {
|
|
3181
|
+
throw err;
|
|
3182
|
+
}
|
|
3183
|
+
});
|
|
3184
|
+
}
|
|
3185
|
+
/**
|
|
3186
|
+
* Stop the shards, catalog and GSM instances for the Globally distributed database.
|
|
3187
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3188
|
+
* @param StopDistributedDatabaseRequest
|
|
3189
|
+
* @return StopDistributedDatabaseResponse
|
|
3190
|
+
* @throws OciError when an error occurs
|
|
3191
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/StopDistributedDatabase.ts.html |here} to see how to use StopDistributedDatabase API.
|
|
3192
|
+
*/
|
|
3193
|
+
stopDistributedDatabase(stopDistributedDatabaseRequest) {
|
|
3194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3195
|
+
if (this.logger)
|
|
3196
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#stopDistributedDatabase.");
|
|
3197
|
+
const operationName = "stopDistributedDatabase";
|
|
3198
|
+
const apiReferenceLink = "";
|
|
3199
|
+
const pathParams = {
|
|
3200
|
+
"{distributedDatabaseId}": stopDistributedDatabaseRequest.distributedDatabaseId
|
|
3201
|
+
};
|
|
3202
|
+
const queryParams = {};
|
|
3203
|
+
let headerParams = {
|
|
3204
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3205
|
+
"opc-retry-token": stopDistributedDatabaseRequest.opcRetryToken,
|
|
3206
|
+
"opc-request-id": stopDistributedDatabaseRequest.opcRequestId,
|
|
3207
|
+
"if-match": stopDistributedDatabaseRequest.ifMatch
|
|
3208
|
+
};
|
|
3209
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3210
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
3211
|
+
if (this.logger)
|
|
3212
|
+
retrier.logger = this.logger;
|
|
3213
|
+
const request = yield oci_common_1.composeRequest({
|
|
3214
|
+
baseEndpoint: this._endpoint,
|
|
3215
|
+
defaultHeaders: this._defaultHeaders,
|
|
3216
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/stopDatabase",
|
|
3217
|
+
method: "POST",
|
|
3218
|
+
pathParams: pathParams,
|
|
3219
|
+
headerParams: headerParams,
|
|
3220
|
+
queryParams: queryParams
|
|
3221
|
+
});
|
|
3222
|
+
try {
|
|
3223
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3224
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3225
|
+
responseObject: {},
|
|
3226
|
+
responseHeaders: [
|
|
3227
|
+
{
|
|
3228
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3229
|
+
key: "opcWorkRequestId",
|
|
3230
|
+
dataType: "string"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
value: response.headers.get("opc-request-id"),
|
|
3234
|
+
key: "opcRequestId",
|
|
3235
|
+
dataType: "string"
|
|
3236
|
+
}
|
|
3237
|
+
]
|
|
3238
|
+
});
|
|
3239
|
+
return sdkResponse;
|
|
3240
|
+
}
|
|
3241
|
+
catch (err) {
|
|
3242
|
+
throw err;
|
|
3243
|
+
}
|
|
3244
|
+
});
|
|
3245
|
+
}
|
|
3246
|
+
/**
|
|
3247
|
+
* Updates the configuration of the Globally distributed database.
|
|
3248
|
+
*
|
|
3249
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3250
|
+
* @param UpdateDistributedDatabaseRequest
|
|
3251
|
+
* @return UpdateDistributedDatabaseResponse
|
|
3252
|
+
* @throws OciError when an error occurs
|
|
3253
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/UpdateDistributedDatabase.ts.html |here} to see how to use UpdateDistributedDatabase API.
|
|
3254
|
+
*/
|
|
3255
|
+
updateDistributedDatabase(updateDistributedDatabaseRequest) {
|
|
3256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3257
|
+
if (this.logger)
|
|
3258
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#updateDistributedDatabase.");
|
|
3259
|
+
const operationName = "updateDistributedDatabase";
|
|
3260
|
+
const apiReferenceLink = "";
|
|
3261
|
+
const pathParams = {
|
|
3262
|
+
"{distributedDatabaseId}": updateDistributedDatabaseRequest.distributedDatabaseId
|
|
3263
|
+
};
|
|
3264
|
+
const queryParams = {};
|
|
3265
|
+
let headerParams = {
|
|
3266
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3267
|
+
"opc-request-id": updateDistributedDatabaseRequest.opcRequestId,
|
|
3268
|
+
"if-match": updateDistributedDatabaseRequest.ifMatch
|
|
3269
|
+
};
|
|
3270
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3271
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDistributedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
3272
|
+
if (this.logger)
|
|
3273
|
+
retrier.logger = this.logger;
|
|
3274
|
+
const request = yield oci_common_1.composeRequest({
|
|
3275
|
+
baseEndpoint: this._endpoint,
|
|
3276
|
+
defaultHeaders: this._defaultHeaders,
|
|
3277
|
+
path: "/distributedDatabases/{distributedDatabaseId}",
|
|
3278
|
+
method: "PUT",
|
|
3279
|
+
bodyContent: common.ObjectSerializer.serialize(updateDistributedDatabaseRequest.updateDistributedDatabaseDetails, "UpdateDistributedDatabaseDetails", model.UpdateDistributedDatabaseDetails.getJsonObj),
|
|
3280
|
+
pathParams: pathParams,
|
|
3281
|
+
headerParams: headerParams,
|
|
3282
|
+
queryParams: queryParams
|
|
3283
|
+
});
|
|
3284
|
+
try {
|
|
3285
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3286
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3287
|
+
responseObject: {},
|
|
3288
|
+
body: yield response.json(),
|
|
3289
|
+
bodyKey: "distributedDatabase",
|
|
3290
|
+
bodyModel: model.DistributedDatabase,
|
|
3291
|
+
type: "model.DistributedDatabase",
|
|
3292
|
+
responseHeaders: [
|
|
3293
|
+
{
|
|
3294
|
+
value: response.headers.get("opc-request-id"),
|
|
3295
|
+
key: "opcRequestId",
|
|
3296
|
+
dataType: "string"
|
|
3297
|
+
},
|
|
3298
|
+
{
|
|
3299
|
+
value: response.headers.get("etag"),
|
|
3300
|
+
key: "etag",
|
|
3301
|
+
dataType: "string"
|
|
3302
|
+
}
|
|
3303
|
+
]
|
|
3304
|
+
});
|
|
3305
|
+
return sdkResponse;
|
|
3306
|
+
}
|
|
3307
|
+
catch (err) {
|
|
3308
|
+
throw err;
|
|
3309
|
+
}
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances of the
|
|
3314
|
+
* Globally distributed database. Customer shall provide the CA signed certificate key details by adding the certificate
|
|
3315
|
+
* in request body.
|
|
3316
|
+
*
|
|
3317
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3318
|
+
* @param UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest
|
|
3319
|
+
* @return UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse
|
|
3320
|
+
* @throws OciError when an error occurs
|
|
3321
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/UploadDistributedDatabaseSignedCertificateAndGenerateWallet.ts.html |here} to see how to use UploadDistributedDatabaseSignedCertificateAndGenerateWallet API.
|
|
3322
|
+
*/
|
|
3323
|
+
uploadDistributedDatabaseSignedCertificateAndGenerateWallet(uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest) {
|
|
3324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3325
|
+
if (this.logger)
|
|
3326
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#uploadDistributedDatabaseSignedCertificateAndGenerateWallet.");
|
|
3327
|
+
const operationName = "uploadDistributedDatabaseSignedCertificateAndGenerateWallet";
|
|
3328
|
+
const apiReferenceLink = "";
|
|
3329
|
+
const pathParams = {
|
|
3330
|
+
"{distributedDatabaseId}": uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.distributedDatabaseId
|
|
3331
|
+
};
|
|
3332
|
+
const queryParams = {};
|
|
3333
|
+
let headerParams = {
|
|
3334
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3335
|
+
"opc-request-id": uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.opcRequestId,
|
|
3336
|
+
"if-match": uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.ifMatch,
|
|
3337
|
+
"opc-retry-token": uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.opcRetryToken
|
|
3338
|
+
};
|
|
3339
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3340
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
3341
|
+
if (this.logger)
|
|
3342
|
+
retrier.logger = this.logger;
|
|
3343
|
+
const request = yield oci_common_1.composeRequest({
|
|
3344
|
+
baseEndpoint: this._endpoint,
|
|
3345
|
+
defaultHeaders: this._defaultHeaders,
|
|
3346
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/uploadSignedCertificateAndGenerateWallet",
|
|
3347
|
+
method: "POST",
|
|
3348
|
+
bodyContent: common.ObjectSerializer.serialize(uploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails, "UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails", model.UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.getJsonObj),
|
|
3349
|
+
pathParams: pathParams,
|
|
3350
|
+
headerParams: headerParams,
|
|
3351
|
+
queryParams: queryParams
|
|
3352
|
+
});
|
|
3353
|
+
try {
|
|
3354
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3355
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3356
|
+
responseObject: {},
|
|
3357
|
+
responseHeaders: [
|
|
3358
|
+
{
|
|
3359
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3360
|
+
key: "opcWorkRequestId",
|
|
3361
|
+
dataType: "string"
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
value: response.headers.get("opc-request-id"),
|
|
3365
|
+
key: "opcRequestId",
|
|
3366
|
+
dataType: "string"
|
|
3367
|
+
}
|
|
3368
|
+
]
|
|
3369
|
+
});
|
|
3370
|
+
return sdkResponse;
|
|
3371
|
+
}
|
|
3372
|
+
catch (err) {
|
|
3373
|
+
throw err;
|
|
3374
|
+
}
|
|
3375
|
+
});
|
|
3376
|
+
}
|
|
3377
|
+
/**
|
|
3378
|
+
* Validate the network connectivity between components of the globally distributed database.
|
|
3379
|
+
*
|
|
3380
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3381
|
+
* @param ValidateDistributedDatabaseNetworkRequest
|
|
3382
|
+
* @return ValidateDistributedDatabaseNetworkResponse
|
|
3383
|
+
* @throws OciError when an error occurs
|
|
3384
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ValidateDistributedDatabaseNetwork.ts.html |here} to see how to use ValidateDistributedDatabaseNetwork API.
|
|
3385
|
+
*/
|
|
3386
|
+
validateDistributedDatabaseNetwork(validateDistributedDatabaseNetworkRequest) {
|
|
3387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3388
|
+
if (this.logger)
|
|
3389
|
+
this.logger.debug("Calling operation DistributedDbServiceClient#validateDistributedDatabaseNetwork.");
|
|
3390
|
+
const operationName = "validateDistributedDatabaseNetwork";
|
|
3391
|
+
const apiReferenceLink = "";
|
|
3392
|
+
const pathParams = {
|
|
3393
|
+
"{distributedDatabaseId}": validateDistributedDatabaseNetworkRequest.distributedDatabaseId
|
|
3394
|
+
};
|
|
3395
|
+
const queryParams = {
|
|
3396
|
+
"isSurrogate": validateDistributedDatabaseNetworkRequest.isSurrogate,
|
|
3397
|
+
"resourceName": validateDistributedDatabaseNetworkRequest.resourceName,
|
|
3398
|
+
"shardGroup": validateDistributedDatabaseNetworkRequest.shardGroup
|
|
3399
|
+
};
|
|
3400
|
+
let headerParams = {
|
|
3401
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3402
|
+
"if-match": validateDistributedDatabaseNetworkRequest.ifMatch,
|
|
3403
|
+
"opc-retry-token": validateDistributedDatabaseNetworkRequest.opcRetryToken,
|
|
3404
|
+
"opc-request-id": validateDistributedDatabaseNetworkRequest.opcRequestId
|
|
3405
|
+
};
|
|
3406
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3407
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateDistributedDatabaseNetworkRequest.retryConfiguration, specRetryConfiguration);
|
|
3408
|
+
if (this.logger)
|
|
3409
|
+
retrier.logger = this.logger;
|
|
3410
|
+
const request = yield oci_common_1.composeRequest({
|
|
3411
|
+
baseEndpoint: this._endpoint,
|
|
3412
|
+
defaultHeaders: this._defaultHeaders,
|
|
3413
|
+
path: "/distributedDatabases/{distributedDatabaseId}/actions/validateNetwork",
|
|
3414
|
+
method: "POST",
|
|
3415
|
+
pathParams: pathParams,
|
|
3416
|
+
headerParams: headerParams,
|
|
3417
|
+
queryParams: queryParams
|
|
3418
|
+
});
|
|
3419
|
+
try {
|
|
3420
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3421
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3422
|
+
responseObject: {},
|
|
3423
|
+
responseHeaders: [
|
|
3424
|
+
{
|
|
3425
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3426
|
+
key: "opcWorkRequestId",
|
|
3427
|
+
dataType: "string"
|
|
3428
|
+
},
|
|
3429
|
+
{
|
|
3430
|
+
value: response.headers.get("opc-request-id"),
|
|
3431
|
+
key: "opcRequestId",
|
|
3432
|
+
dataType: "string"
|
|
3433
|
+
}
|
|
3434
|
+
]
|
|
3435
|
+
});
|
|
3436
|
+
return sdkResponse;
|
|
3437
|
+
}
|
|
3438
|
+
catch (err) {
|
|
3439
|
+
throw err;
|
|
3440
|
+
}
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
exports.DistributedDbServiceClient = DistributedDbServiceClient;
|
|
3445
|
+
DistributedDbServiceClient.serviceEndpointTemplate = "https://globaldb.{region}.oci.{secondLevelDomain}";
|
|
3446
|
+
DistributedDbServiceClient.endpointServiceName = "";
|
|
3447
|
+
var DistributedDbWorkRequestServiceApiKeys;
|
|
3448
|
+
(function (DistributedDbWorkRequestServiceApiKeys) {
|
|
3449
|
+
})(DistributedDbWorkRequestServiceApiKeys = exports.DistributedDbWorkRequestServiceApiKeys || (exports.DistributedDbWorkRequestServiceApiKeys = {}));
|
|
3450
|
+
/**
|
|
3451
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
3452
|
+
*/
|
|
3453
|
+
class DistributedDbWorkRequestServiceClient {
|
|
3454
|
+
constructor(params, clientConfiguration) {
|
|
3455
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
3456
|
+
this["_endpoint"] = "";
|
|
3457
|
+
this["_defaultHeaders"] = {};
|
|
3458
|
+
this._circuitBreaker = null;
|
|
3459
|
+
this._httpOptions = undefined;
|
|
3460
|
+
this._bodyDuplexMode = undefined;
|
|
3461
|
+
this.targetService = "DistributedDbWorkRequestService";
|
|
3462
|
+
this._regionId = "";
|
|
3463
|
+
this._lastSetRegionOrRegionId = "";
|
|
3464
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
3465
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
3466
|
+
: null;
|
|
3467
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
3468
|
+
if (clientConfiguration) {
|
|
3469
|
+
this._clientConfiguration = clientConfiguration;
|
|
3470
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
3471
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
3472
|
+
: null;
|
|
3473
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
3474
|
+
? clientConfiguration.httpOptions
|
|
3475
|
+
: undefined;
|
|
3476
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
3477
|
+
? clientConfiguration.bodyDuplexMode
|
|
3478
|
+
: undefined;
|
|
3479
|
+
}
|
|
3480
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("distributeddatabase")) {
|
|
3481
|
+
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 : ";
|
|
3482
|
+
throw errmsg.concat("distributeddatabase");
|
|
3483
|
+
}
|
|
3484
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
3485
|
+
const specCircuitBreakerEnabled = true;
|
|
3486
|
+
if (!this._circuitBreaker &&
|
|
3487
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
3488
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
3489
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
3490
|
+
}
|
|
3491
|
+
this._httpClient =
|
|
3492
|
+
params.httpClient ||
|
|
3493
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
3494
|
+
if (params.authenticationDetailsProvider &&
|
|
3495
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
3496
|
+
const provider = params.authenticationDetailsProvider;
|
|
3497
|
+
if (provider.getRegion()) {
|
|
3498
|
+
this.region = provider.getRegion();
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
/**
|
|
3503
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
3504
|
+
*/
|
|
3505
|
+
get endpoint() {
|
|
3506
|
+
return this._endpoint;
|
|
3507
|
+
}
|
|
3508
|
+
/**
|
|
3509
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
3510
|
+
* @param endpoint The endpoint of the service.
|
|
3511
|
+
*/
|
|
3512
|
+
set endpoint(endpoint) {
|
|
3513
|
+
this._endpoint = endpoint;
|
|
3514
|
+
this._endpoint = this._endpoint + "/20250101";
|
|
3515
|
+
if (this.logger)
|
|
3516
|
+
this.logger.info(`DistributedDbWorkRequestServiceClient endpoint set to ${this._endpoint}`);
|
|
3517
|
+
}
|
|
3518
|
+
get logger() {
|
|
3519
|
+
return common.LOG.logger;
|
|
3520
|
+
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
3523
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
3524
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
3525
|
+
*/
|
|
3526
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3527
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3528
|
+
if (this.logger)
|
|
3529
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3530
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3531
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedDbWorkRequestServiceClient.serviceEndpointTemplate, this._region, DistributedDbWorkRequestServiceClient.endpointServiceName);
|
|
3532
|
+
}
|
|
3533
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
3534
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedDbWorkRequestServiceClient.serviceEndpointTemplate, this._regionId, DistributedDbWorkRequestServiceClient.endpointServiceName);
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
/**
|
|
3538
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3539
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3540
|
+
* @param region The region of the service.
|
|
3541
|
+
*/
|
|
3542
|
+
set region(region) {
|
|
3543
|
+
this._region = region;
|
|
3544
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DistributedDbWorkRequestServiceClient.serviceEndpointTemplate, region, DistributedDbWorkRequestServiceClient.endpointServiceName);
|
|
3545
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3546
|
+
}
|
|
3547
|
+
/**
|
|
3548
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
3549
|
+
*
|
|
3550
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
3551
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
3552
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
3553
|
+
* @param regionId The public region ID.
|
|
3554
|
+
*/
|
|
3555
|
+
set regionId(regionId) {
|
|
3556
|
+
this._regionId = regionId;
|
|
3557
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DistributedDbWorkRequestServiceClient.serviceEndpointTemplate, regionId, DistributedDbWorkRequestServiceClient.endpointServiceName);
|
|
3558
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3559
|
+
}
|
|
3560
|
+
/**
|
|
3561
|
+
* Creates a new DistributedDbWorkRequestServiceWaiter for resources for this service.
|
|
3562
|
+
*
|
|
3563
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
3564
|
+
* @return The service waiters.
|
|
3565
|
+
*/
|
|
3566
|
+
createWaiters(config) {
|
|
3567
|
+
this._waiters = new distributeddbworkrequestservice_waiter_1.DistributedDbWorkRequestServiceWaiter(this, config);
|
|
3568
|
+
return this._waiters;
|
|
3569
|
+
}
|
|
3570
|
+
/**
|
|
3571
|
+
* Gets the waiters available for resources for this service.
|
|
3572
|
+
*
|
|
3573
|
+
* @return The service waiters.
|
|
3574
|
+
*/
|
|
3575
|
+
getWaiters() {
|
|
3576
|
+
if (this._waiters) {
|
|
3577
|
+
return this._waiters;
|
|
3578
|
+
}
|
|
3579
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
3580
|
+
}
|
|
3581
|
+
/**
|
|
3582
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
3583
|
+
*/
|
|
3584
|
+
shutdownCircuitBreaker() {
|
|
3585
|
+
if (this._circuitBreaker) {
|
|
3586
|
+
this._circuitBreaker.shutdown();
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
/**
|
|
3590
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
3591
|
+
*/
|
|
3592
|
+
closeProvider() {
|
|
3593
|
+
if (this._authProvider) {
|
|
3594
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
3595
|
+
(this._authProvider).closeProvider();
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
/**
|
|
3599
|
+
* Close the client once it is no longer needed
|
|
3600
|
+
*/
|
|
3601
|
+
close() {
|
|
3602
|
+
this.shutdownCircuitBreaker();
|
|
3603
|
+
this.closeProvider();
|
|
3604
|
+
}
|
|
3605
|
+
/**
|
|
3606
|
+
* Gets details of the work request with the given ID.
|
|
3607
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3608
|
+
* @param GetWorkRequestRequest
|
|
3609
|
+
* @return GetWorkRequestResponse
|
|
3610
|
+
* @throws OciError when an error occurs
|
|
3611
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
3612
|
+
*/
|
|
3613
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
3614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3615
|
+
if (this.logger)
|
|
3616
|
+
this.logger.debug("Calling operation DistributedDbWorkRequestServiceClient#getWorkRequest.");
|
|
3617
|
+
const operationName = "getWorkRequest";
|
|
3618
|
+
const apiReferenceLink = "";
|
|
3619
|
+
const pathParams = {
|
|
3620
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
3621
|
+
};
|
|
3622
|
+
const queryParams = {};
|
|
3623
|
+
let headerParams = {
|
|
3624
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3625
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
3626
|
+
};
|
|
3627
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3628
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
3629
|
+
if (this.logger)
|
|
3630
|
+
retrier.logger = this.logger;
|
|
3631
|
+
const request = yield oci_common_1.composeRequest({
|
|
3632
|
+
baseEndpoint: this._endpoint,
|
|
3633
|
+
defaultHeaders: this._defaultHeaders,
|
|
3634
|
+
path: "/workRequests/{workRequestId}",
|
|
3635
|
+
method: "GET",
|
|
3636
|
+
pathParams: pathParams,
|
|
3637
|
+
headerParams: headerParams,
|
|
3638
|
+
queryParams: queryParams
|
|
3639
|
+
});
|
|
3640
|
+
try {
|
|
3641
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3642
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3643
|
+
responseObject: {},
|
|
3644
|
+
body: yield response.json(),
|
|
3645
|
+
bodyKey: "workRequest",
|
|
3646
|
+
bodyModel: model.WorkRequest,
|
|
3647
|
+
type: "model.WorkRequest",
|
|
3648
|
+
responseHeaders: [
|
|
3649
|
+
{
|
|
3650
|
+
value: response.headers.get("opc-request-id"),
|
|
3651
|
+
key: "opcRequestId",
|
|
3652
|
+
dataType: "string"
|
|
3653
|
+
},
|
|
3654
|
+
{
|
|
3655
|
+
value: response.headers.get("retry-after"),
|
|
3656
|
+
key: "retryAfter",
|
|
3657
|
+
dataType: "number"
|
|
3658
|
+
}
|
|
3659
|
+
]
|
|
3660
|
+
});
|
|
3661
|
+
return sdkResponse;
|
|
3662
|
+
}
|
|
3663
|
+
catch (err) {
|
|
3664
|
+
throw err;
|
|
3665
|
+
}
|
|
3666
|
+
});
|
|
3667
|
+
}
|
|
3668
|
+
/**
|
|
3669
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
3670
|
+
*
|
|
3671
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3672
|
+
* @param ListWorkRequestErrorsRequest
|
|
3673
|
+
* @return ListWorkRequestErrorsResponse
|
|
3674
|
+
* @throws OciError when an error occurs
|
|
3675
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
3676
|
+
*/
|
|
3677
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
3678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3679
|
+
if (this.logger)
|
|
3680
|
+
this.logger.debug("Calling operation DistributedDbWorkRequestServiceClient#listWorkRequestErrors.");
|
|
3681
|
+
const operationName = "listWorkRequestErrors";
|
|
3682
|
+
const apiReferenceLink = "";
|
|
3683
|
+
const pathParams = {
|
|
3684
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
3685
|
+
};
|
|
3686
|
+
const queryParams = {
|
|
3687
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
3688
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
3689
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
3690
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
3691
|
+
};
|
|
3692
|
+
let headerParams = {
|
|
3693
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3694
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
3695
|
+
};
|
|
3696
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3697
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
3698
|
+
if (this.logger)
|
|
3699
|
+
retrier.logger = this.logger;
|
|
3700
|
+
const request = yield oci_common_1.composeRequest({
|
|
3701
|
+
baseEndpoint: this._endpoint,
|
|
3702
|
+
defaultHeaders: this._defaultHeaders,
|
|
3703
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
3704
|
+
method: "GET",
|
|
3705
|
+
pathParams: pathParams,
|
|
3706
|
+
headerParams: headerParams,
|
|
3707
|
+
queryParams: queryParams
|
|
3708
|
+
});
|
|
3709
|
+
try {
|
|
3710
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3711
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3712
|
+
responseObject: {},
|
|
3713
|
+
body: yield response.json(),
|
|
3714
|
+
bodyKey: "workRequestErrorCollection",
|
|
3715
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
3716
|
+
type: "model.WorkRequestErrorCollection",
|
|
3717
|
+
responseHeaders: [
|
|
3718
|
+
{
|
|
3719
|
+
value: response.headers.get("opc-next-page"),
|
|
3720
|
+
key: "opcNextPage",
|
|
3721
|
+
dataType: "string"
|
|
3722
|
+
},
|
|
3723
|
+
{
|
|
3724
|
+
value: response.headers.get("opc-request-id"),
|
|
3725
|
+
key: "opcRequestId",
|
|
3726
|
+
dataType: "string"
|
|
3727
|
+
}
|
|
3728
|
+
]
|
|
3729
|
+
});
|
|
3730
|
+
return sdkResponse;
|
|
3731
|
+
}
|
|
3732
|
+
catch (err) {
|
|
3733
|
+
throw err;
|
|
3734
|
+
}
|
|
3735
|
+
});
|
|
3736
|
+
}
|
|
3737
|
+
/**
|
|
3738
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
3739
|
+
*
|
|
3740
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3741
|
+
* @param ListWorkRequestLogsRequest
|
|
3742
|
+
* @return ListWorkRequestLogsResponse
|
|
3743
|
+
* @throws OciError when an error occurs
|
|
3744
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3745
|
+
*/
|
|
3746
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3748
|
+
if (this.logger)
|
|
3749
|
+
this.logger.debug("Calling operation DistributedDbWorkRequestServiceClient#listWorkRequestLogs.");
|
|
3750
|
+
const operationName = "listWorkRequestLogs";
|
|
3751
|
+
const apiReferenceLink = "";
|
|
3752
|
+
const pathParams = {
|
|
3753
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
3754
|
+
};
|
|
3755
|
+
const queryParams = {
|
|
3756
|
+
"page": listWorkRequestLogsRequest.page,
|
|
3757
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
3758
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
3759
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
3760
|
+
};
|
|
3761
|
+
let headerParams = {
|
|
3762
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3763
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
3764
|
+
};
|
|
3765
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3766
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
3767
|
+
if (this.logger)
|
|
3768
|
+
retrier.logger = this.logger;
|
|
3769
|
+
const request = yield oci_common_1.composeRequest({
|
|
3770
|
+
baseEndpoint: this._endpoint,
|
|
3771
|
+
defaultHeaders: this._defaultHeaders,
|
|
3772
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
3773
|
+
method: "GET",
|
|
3774
|
+
pathParams: pathParams,
|
|
3775
|
+
headerParams: headerParams,
|
|
3776
|
+
queryParams: queryParams
|
|
3777
|
+
});
|
|
3778
|
+
try {
|
|
3779
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3780
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3781
|
+
responseObject: {},
|
|
3782
|
+
body: yield response.json(),
|
|
3783
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
3784
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
3785
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
3786
|
+
responseHeaders: [
|
|
3787
|
+
{
|
|
3788
|
+
value: response.headers.get("opc-next-page"),
|
|
3789
|
+
key: "opcNextPage",
|
|
3790
|
+
dataType: "string"
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
value: response.headers.get("opc-request-id"),
|
|
3794
|
+
key: "opcRequestId",
|
|
3795
|
+
dataType: "string"
|
|
3796
|
+
}
|
|
3797
|
+
]
|
|
3798
|
+
});
|
|
3799
|
+
return sdkResponse;
|
|
3800
|
+
}
|
|
3801
|
+
catch (err) {
|
|
3802
|
+
throw err;
|
|
3803
|
+
}
|
|
3804
|
+
});
|
|
3805
|
+
}
|
|
3806
|
+
/**
|
|
3807
|
+
* Lists the work requests in a compartment.
|
|
3808
|
+
*
|
|
3809
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3810
|
+
* @param ListWorkRequestsRequest
|
|
3811
|
+
* @return ListWorkRequestsResponse
|
|
3812
|
+
* @throws OciError when an error occurs
|
|
3813
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/distributeddatabase/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
3814
|
+
*/
|
|
3815
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
3816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3817
|
+
if (this.logger)
|
|
3818
|
+
this.logger.debug("Calling operation DistributedDbWorkRequestServiceClient#listWorkRequests.");
|
|
3819
|
+
const operationName = "listWorkRequests";
|
|
3820
|
+
const apiReferenceLink = "";
|
|
3821
|
+
const pathParams = {};
|
|
3822
|
+
const queryParams = {
|
|
3823
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
3824
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
3825
|
+
"status": listWorkRequestsRequest.status,
|
|
3826
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
3827
|
+
"page": listWorkRequestsRequest.page,
|
|
3828
|
+
"limit": listWorkRequestsRequest.limit,
|
|
3829
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
3830
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
3831
|
+
};
|
|
3832
|
+
let headerParams = {
|
|
3833
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3834
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
3835
|
+
};
|
|
3836
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3837
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
3838
|
+
if (this.logger)
|
|
3839
|
+
retrier.logger = this.logger;
|
|
3840
|
+
const request = yield oci_common_1.composeRequest({
|
|
3841
|
+
baseEndpoint: this._endpoint,
|
|
3842
|
+
defaultHeaders: this._defaultHeaders,
|
|
3843
|
+
path: "/workRequests",
|
|
3844
|
+
method: "GET",
|
|
3845
|
+
pathParams: pathParams,
|
|
3846
|
+
headerParams: headerParams,
|
|
3847
|
+
queryParams: queryParams
|
|
3848
|
+
});
|
|
3849
|
+
try {
|
|
3850
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3851
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3852
|
+
responseObject: {},
|
|
3853
|
+
body: yield response.json(),
|
|
3854
|
+
bodyKey: "workRequestSummaryCollection",
|
|
3855
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
3856
|
+
type: "model.WorkRequestSummaryCollection",
|
|
3857
|
+
responseHeaders: [
|
|
3858
|
+
{
|
|
3859
|
+
value: response.headers.get("opc-request-id"),
|
|
3860
|
+
key: "opcRequestId",
|
|
3861
|
+
dataType: "string"
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
value: response.headers.get("opc-next-page"),
|
|
3865
|
+
key: "opcNextPage",
|
|
3866
|
+
dataType: "string"
|
|
3867
|
+
}
|
|
3868
|
+
]
|
|
3869
|
+
});
|
|
3870
|
+
return sdkResponse;
|
|
3871
|
+
}
|
|
3872
|
+
catch (err) {
|
|
3873
|
+
throw err;
|
|
3874
|
+
}
|
|
3875
|
+
});
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
exports.DistributedDbWorkRequestServiceClient = DistributedDbWorkRequestServiceClient;
|
|
3879
|
+
DistributedDbWorkRequestServiceClient.serviceEndpointTemplate = "https://globaldb.{region}.oci.{secondLevelDomain}";
|
|
3880
|
+
DistributedDbWorkRequestServiceClient.endpointServiceName = "";
|
|
3881
|
+
//# sourceMappingURL=client.js.map
|