oci-globallydistributeddatabase 2.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +392 -0
- package/lib/client.js +2115 -0
- package/lib/client.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/change-private-endpoint-compartment-details.d.ts +27 -0
- package/lib/model/change-private-endpoint-compartment-details.js +29 -0
- package/lib/model/change-private-endpoint-compartment-details.js.map +1 -0
- package/lib/model/change-sharded-database-compartment-details.d.ts +27 -0
- package/lib/model/change-sharded-database-compartment-details.js +29 -0
- package/lib/model/change-sharded-database-compartment-details.js.map +1 -0
- package/lib/model/configure-sharded-database-gsms-details.d.ts +32 -0
- package/lib/model/configure-sharded-database-gsms-details.js +29 -0
- package/lib/model/configure-sharded-database-gsms-details.js.map +1 -0
- package/lib/model/connection-string.d.ts +27 -0
- package/lib/model/connection-string.js +29 -0
- package/lib/model/connection-string.js.map +1 -0
- package/lib/model/create-dedicated-catalog-detail.d.ts +47 -0
- package/lib/model/create-dedicated-catalog-detail.js +57 -0
- package/lib/model/create-dedicated-catalog-detail.js.map +1 -0
- package/lib/model/create-dedicated-shard-detail.d.ts +54 -0
- package/lib/model/create-dedicated-shard-detail.js +57 -0
- package/lib/model/create-dedicated-shard-detail.js.map +1 -0
- package/lib/model/create-dedicated-sharded-database.d.ts +101 -0
- package/lib/model/create-dedicated-sharded-database.js +86 -0
- package/lib/model/create-dedicated-sharded-database.js.map +1 -0
- package/lib/model/create-private-endpoint-details.d.ts +60 -0
- package/lib/model/create-private-endpoint-details.js +29 -0
- package/lib/model/create-private-endpoint-details.js.map +1 -0
- package/lib/model/create-sharded-database-details.d.ts +48 -0
- package/lib/model/create-sharded-database-details.js +68 -0
- package/lib/model/create-sharded-database-details.js.map +1 -0
- package/lib/model/dedicated-catalog-details.d.ts +106 -0
- package/lib/model/dedicated-catalog-details.js +74 -0
- package/lib/model/dedicated-catalog-details.js.map +1 -0
- package/lib/model/dedicated-shard-details.d.ts +110 -0
- package/lib/model/dedicated-shard-details.js +74 -0
- package/lib/model/dedicated-shard-details.js.map +1 -0
- package/lib/model/dedicated-shard-or-catalog-encryption-key-details.d.ts +47 -0
- package/lib/model/dedicated-shard-or-catalog-encryption-key-details.js +29 -0
- package/lib/model/dedicated-shard-or-catalog-encryption-key-details.js.map +1 -0
- package/lib/model/dedicated-sharded-database-summary.d.ts +103 -0
- package/lib/model/dedicated-sharded-database-summary.js +74 -0
- package/lib/model/dedicated-sharded-database-summary.js.map +1 -0
- package/lib/model/dedicated-sharded-database.d.ts +116 -0
- package/lib/model/dedicated-sharded-database.js +112 -0
- package/lib/model/dedicated-sharded-database.js.map +1 -0
- package/lib/model/fetch-shardable-cloud-autonomous-vm-clusters-details.d.ts +56 -0
- package/lib/model/fetch-shardable-cloud-autonomous-vm-clusters-details.js +41 -0
- package/lib/model/fetch-shardable-cloud-autonomous-vm-clusters-details.js.map +1 -0
- package/lib/model/generate-wallet-details.d.ts +26 -0
- package/lib/model/generate-wallet-details.js +29 -0
- package/lib/model/generate-wallet-details.js.map +1 -0
- package/lib/model/gsm-details.d.ts +76 -0
- package/lib/model/gsm-details.js +46 -0
- package/lib/model/gsm-details.js.map +1 -0
- package/lib/model/index.d.ts +114 -0
- package/lib/model/index.js +138 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +44 -0
- package/lib/model/operation-type.js +55 -0
- package/lib/model/operation-type.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/patch-sharded-database-details.d.ts +30 -0
- package/lib/model/patch-sharded-database-details.js +61 -0
- package/lib/model/patch-sharded-database-details.js.map +1 -0
- package/lib/model/prevalidate-create-payload.d.ts +26 -0
- package/lib/model/prevalidate-create-payload.js +62 -0
- package/lib/model/prevalidate-create-payload.js.map +1 -0
- package/lib/model/prevalidate-patch-payload.d.ts +30 -0
- package/lib/model/prevalidate-patch-payload.js +62 -0
- package/lib/model/prevalidate-patch-payload.js.map +1 -0
- package/lib/model/prevalidate-payload.d.ts +22 -0
- package/lib/model/prevalidate-payload.js +72 -0
- package/lib/model/prevalidate-payload.js.map +1 -0
- package/lib/model/prevalidate-sharded-database-details.d.ts +24 -0
- package/lib/model/prevalidate-sharded-database-details.js +57 -0
- package/lib/model/prevalidate-sharded-database-details.js.map +1 -0
- package/lib/model/prevalidate-sharded-database-result.d.ts +27 -0
- package/lib/model/prevalidate-sharded-database-result.js +29 -0
- package/lib/model/prevalidate-sharded-database-result.js.map +1 -0
- package/lib/model/private-endpoint-collection.d.ts +26 -0
- package/lib/model/private-endpoint-collection.js +61 -0
- package/lib/model/private-endpoint-collection.js.map +1 -0
- package/lib/model/private-endpoint-summary.d.ts +94 -0
- package/lib/model/private-endpoint-summary.js +29 -0
- package/lib/model/private-endpoint-summary.js.map +1 -0
- package/lib/model/private-endpoint.d.ts +116 -0
- package/lib/model/private-endpoint.js +44 -0
- package/lib/model/private-endpoint.js.map +1 -0
- package/lib/model/shardable-cloud-autonomous-vm-cluster-summary.d.ts +157 -0
- package/lib/model/shardable-cloud-autonomous-vm-cluster-summary.js +46 -0
- package/lib/model/shardable-cloud-autonomous-vm-cluster-summary.js.map +1 -0
- package/lib/model/shardable-cloud-autonomous-vm-clusters.d.ts +26 -0
- package/lib/model/shardable-cloud-autonomous-vm-clusters.js +61 -0
- package/lib/model/shardable-cloud-autonomous-vm-clusters.js.map +1 -0
- package/lib/model/sharded-database-collection.d.ts +26 -0
- package/lib/model/sharded-database-collection.js +61 -0
- package/lib/model/sharded-database-collection.js.map +1 -0
- package/lib/model/sharded-database-summary.d.ts +78 -0
- package/lib/model/sharded-database-summary.js +68 -0
- package/lib/model/sharded-database-summary.js.map +1 -0
- package/lib/model/sharded-database.d.ts +94 -0
- package/lib/model/sharded-database.js +85 -0
- package/lib/model/sharded-database.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-private-endpoint-details.d.ts +52 -0
- package/lib/model/update-private-endpoint-details.js +29 -0
- package/lib/model/update-private-endpoint-details.js.map +1 -0
- package/lib/model/update-sharded-database-details.d.ts +43 -0
- package/lib/model/update-sharded-database-details.js +29 -0
- package/lib/model/update-sharded-database-details.js.map +1 -0
- package/lib/model/upload-signed-certificate-and-generate-wallet-details.d.ts +27 -0
- package/lib/model/upload-signed-certificate-and-generate-wallet-details.js +29 -0
- package/lib/model/upload-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/change-private-endpoint-compartment-request.d.ts +49 -0
- package/lib/request/change-private-endpoint-compartment-request.js +15 -0
- package/lib/request/change-private-endpoint-compartment-request.js.map +1 -0
- package/lib/request/change-sharded-database-compartment-request.d.ts +49 -0
- package/lib/request/change-sharded-database-compartment-request.js +15 -0
- package/lib/request/change-sharded-database-compartment-request.js.map +1 -0
- package/lib/request/configure-sharded-database-gsms-request.d.ts +49 -0
- package/lib/request/configure-sharded-database-gsms-request.js +15 -0
- package/lib/request/configure-sharded-database-gsms-request.js.map +1 -0
- package/lib/request/configure-sharding-request.d.ts +50 -0
- package/lib/request/configure-sharding-request.js +15 -0
- package/lib/request/configure-sharding-request.js.map +1 -0
- package/lib/request/create-private-endpoint-request.d.ts +36 -0
- package/lib/request/create-private-endpoint-request.js +15 -0
- package/lib/request/create-private-endpoint-request.js.map +1 -0
- package/lib/request/create-sharded-database-request.d.ts +36 -0
- package/lib/request/create-sharded-database-request.js +15 -0
- package/lib/request/create-sharded-database-request.js.map +1 -0
- package/lib/request/delete-private-endpoint-request.d.ts +44 -0
- package/lib/request/delete-private-endpoint-request.js +15 -0
- package/lib/request/delete-private-endpoint-request.js.map +1 -0
- package/lib/request/delete-sharded-database-request.d.ts +44 -0
- package/lib/request/delete-sharded-database-request.js +15 -0
- package/lib/request/delete-sharded-database-request.js.map +1 -0
- package/lib/request/download-gsm-certificate-signing-request-request.d.ts +44 -0
- package/lib/request/download-gsm-certificate-signing-request-request.js +15 -0
- package/lib/request/download-gsm-certificate-signing-request-request.js.map +1 -0
- package/lib/request/fetch-connection-string-request.d.ts +44 -0
- package/lib/request/fetch-connection-string-request.js +15 -0
- package/lib/request/fetch-connection-string-request.js.map +1 -0
- package/lib/request/fetch-shardable-cloud-autonomous-vm-clusters-request.d.ts +36 -0
- package/lib/request/fetch-shardable-cloud-autonomous-vm-clusters-request.js +15 -0
- package/lib/request/fetch-shardable-cloud-autonomous-vm-clusters-request.js.map +1 -0
- package/lib/request/generate-gsm-certificate-signing-request-request.d.ts +44 -0
- package/lib/request/generate-gsm-certificate-signing-request-request.js +15 -0
- package/lib/request/generate-gsm-certificate-signing-request-request.js.map +1 -0
- package/lib/request/generate-wallet-request.d.ts +49 -0
- package/lib/request/generate-wallet-request.js +15 -0
- package/lib/request/generate-wallet-request.js.map +1 -0
- package/lib/request/get-private-endpoint-request.d.ts +26 -0
- package/lib/request/get-private-endpoint-request.js +15 -0
- package/lib/request/get-private-endpoint-request.js.map +1 -0
- package/lib/request/get-sharded-database-request.d.ts +32 -0
- package/lib/request/get-sharded-database-request.js +15 -0
- package/lib/request/get-sharded-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 +70 -0
- package/lib/request/index.js +45 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-private-endpoints-request.d.ts +58 -0
- package/lib/request/list-private-endpoints-request.js +24 -0
- package/lib/request/list-private-endpoints-request.js.map +1 -0
- package/lib/request/list-sharded-databases-request.d.ts +58 -0
- package/lib/request/list-sharded-databases-request.js +24 -0
- package/lib/request/list-sharded-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-sharded-database-request.d.ts +40 -0
- package/lib/request/patch-sharded-database-request.js +15 -0
- package/lib/request/patch-sharded-database-request.js.map +1 -0
- package/lib/request/prevalidate-sharded-database-request.d.ts +40 -0
- package/lib/request/prevalidate-sharded-database-request.js +15 -0
- package/lib/request/prevalidate-sharded-database-request.js.map +1 -0
- package/lib/request/start-sharded-database-request.d.ts +44 -0
- package/lib/request/start-sharded-database-request.js +15 -0
- package/lib/request/start-sharded-database-request.js.map +1 -0
- package/lib/request/stop-sharded-database-request.d.ts +44 -0
- package/lib/request/stop-sharded-database-request.js +15 -0
- package/lib/request/stop-sharded-database-request.js.map +1 -0
- package/lib/request/update-private-endpoint-request.d.ts +49 -0
- package/lib/request/update-private-endpoint-request.js +15 -0
- package/lib/request/update-private-endpoint-request.js.map +1 -0
- package/lib/request/update-sharded-database-request.d.ts +40 -0
- package/lib/request/update-sharded-database-request.js +15 -0
- package/lib/request/update-sharded-database-request.js.map +1 -0
- package/lib/request/upload-signed-certificate-and-generate-wallet-request.d.ts +51 -0
- package/lib/request/upload-signed-certificate-and-generate-wallet-request.js +15 -0
- package/lib/request/upload-signed-certificate-and-generate-wallet-request.js.map +1 -0
- package/lib/request/validate-network-request.d.ts +58 -0
- package/lib/request/validate-network-request.js +15 -0
- package/lib/request/validate-network-request.js.map +1 -0
- package/lib/response/change-private-endpoint-compartment-response.d.ts +25 -0
- package/lib/response/change-private-endpoint-compartment-response.js +15 -0
- package/lib/response/change-private-endpoint-compartment-response.js.map +1 -0
- package/lib/response/change-sharded-database-compartment-response.d.ts +25 -0
- package/lib/response/change-sharded-database-compartment-response.js +15 -0
- package/lib/response/change-sharded-database-compartment-response.js.map +1 -0
- package/lib/response/configure-sharded-database-gsms-response.d.ts +25 -0
- package/lib/response/configure-sharded-database-gsms-response.js +15 -0
- package/lib/response/configure-sharded-database-gsms-response.js.map +1 -0
- package/lib/response/configure-sharding-response.d.ts +25 -0
- package/lib/response/configure-sharding-response.js +15 -0
- package/lib/response/configure-sharding-response.js.map +1 -0
- package/lib/response/create-private-endpoint-response.d.ts +35 -0
- package/lib/response/create-private-endpoint-response.js +15 -0
- package/lib/response/create-private-endpoint-response.js.map +1 -0
- package/lib/response/create-sharded-database-response.d.ts +35 -0
- package/lib/response/create-sharded-database-response.js +15 -0
- package/lib/response/create-sharded-database-response.js.map +1 -0
- package/lib/response/delete-private-endpoint-response.d.ts +25 -0
- package/lib/response/delete-private-endpoint-response.js +15 -0
- package/lib/response/delete-private-endpoint-response.js.map +1 -0
- package/lib/response/delete-sharded-database-response.d.ts +25 -0
- package/lib/response/delete-sharded-database-response.js +15 -0
- package/lib/response/delete-sharded-database-response.js.map +1 -0
- package/lib/response/download-gsm-certificate-signing-request-response.d.ts +39 -0
- package/lib/response/download-gsm-certificate-signing-request-response.js +15 -0
- package/lib/response/download-gsm-certificate-signing-request-response.js.map +1 -0
- package/lib/response/fetch-connection-string-response.d.ts +30 -0
- package/lib/response/fetch-connection-string-response.js +15 -0
- package/lib/response/fetch-connection-string-response.js.map +1 -0
- package/lib/response/fetch-shardable-cloud-autonomous-vm-clusters-response.d.ts +25 -0
- package/lib/response/fetch-shardable-cloud-autonomous-vm-clusters-response.js +15 -0
- package/lib/response/fetch-shardable-cloud-autonomous-vm-clusters-response.js.map +1 -0
- package/lib/response/generate-gsm-certificate-signing-request-response.d.ts +25 -0
- package/lib/response/generate-gsm-certificate-signing-request-response.js +15 -0
- package/lib/response/generate-gsm-certificate-signing-request-response.js.map +1 -0
- package/lib/response/generate-wallet-response.d.ts +39 -0
- package/lib/response/generate-wallet-response.js +15 -0
- package/lib/response/generate-wallet-response.js.map +1 -0
- package/lib/response/get-private-endpoint-response.d.ts +30 -0
- package/lib/response/get-private-endpoint-response.js +15 -0
- package/lib/response/get-private-endpoint-response.js.map +1 -0
- package/lib/response/get-sharded-database-response.d.ts +30 -0
- package/lib/response/get-sharded-database-response.js +15 -0
- package/lib/response/get-sharded-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 +70 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-private-endpoints-response.d.ts +32 -0
- package/lib/response/list-private-endpoints-response.js +15 -0
- package/lib/response/list-private-endpoints-response.js.map +1 -0
- package/lib/response/list-sharded-databases-response.d.ts +32 -0
- package/lib/response/list-sharded-databases-response.js +15 -0
- package/lib/response/list-sharded-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-sharded-database-response.d.ts +25 -0
- package/lib/response/patch-sharded-database-response.js +15 -0
- package/lib/response/patch-sharded-database-response.js.map +1 -0
- package/lib/response/prevalidate-sharded-database-response.d.ts +25 -0
- package/lib/response/prevalidate-sharded-database-response.js +15 -0
- package/lib/response/prevalidate-sharded-database-response.js.map +1 -0
- package/lib/response/start-sharded-database-response.d.ts +25 -0
- package/lib/response/start-sharded-database-response.js +15 -0
- package/lib/response/start-sharded-database-response.js.map +1 -0
- package/lib/response/stop-sharded-database-response.d.ts +25 -0
- package/lib/response/stop-sharded-database-response.js +15 -0
- package/lib/response/stop-sharded-database-response.js.map +1 -0
- package/lib/response/update-private-endpoint-response.d.ts +30 -0
- package/lib/response/update-private-endpoint-response.js +15 -0
- package/lib/response/update-private-endpoint-response.js.map +1 -0
- package/lib/response/update-sharded-database-response.d.ts +30 -0
- package/lib/response/update-sharded-database-response.js +15 -0
- package/lib/response/update-sharded-database-response.js.map +1 -0
- package/lib/response/upload-signed-certificate-and-generate-wallet-response.d.ts +25 -0
- package/lib/response/upload-signed-certificate-and-generate-wallet-response.js +15 -0
- package/lib/response/upload-signed-certificate-and-generate-wallet-response.js.map +1 -0
- package/lib/response/validate-network-response.d.ts +25 -0
- package/lib/response/validate-network-response.js +15 -0
- package/lib/response/validate-network-response.js.map +1 -0
- package/lib/shardeddatabaseservice-waiter.d.ts +44 -0
- package/lib/shardeddatabaseservice-waiter.js +88 -0
- package/lib/shardeddatabaseservice-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,2115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Globally Distributed Database
|
|
4
|
+
* Use the Globally Distributed Database service APIs to create and manage distributed databases.
|
|
5
|
+
* OpenAPI spec version: 20230301
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, 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.ShardedDatabaseServiceClient = exports.ShardedDatabaseServiceApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const shardeddatabaseservice_waiter_1 = require("./shardeddatabaseservice-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
const Breaker = require("opossum");
|
|
49
|
+
// ===============================================
|
|
50
|
+
// This file is autogenerated - Please do not edit
|
|
51
|
+
// ===============================================
|
|
52
|
+
var ShardedDatabaseServiceApiKeys;
|
|
53
|
+
(function (ShardedDatabaseServiceApiKeys) {
|
|
54
|
+
})(ShardedDatabaseServiceApiKeys = exports.ShardedDatabaseServiceApiKeys || (exports.ShardedDatabaseServiceApiKeys = {}));
|
|
55
|
+
/**
|
|
56
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
57
|
+
*/
|
|
58
|
+
class ShardedDatabaseServiceClient {
|
|
59
|
+
constructor(params, clientConfiguration) {
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
61
|
+
this["_endpoint"] = "";
|
|
62
|
+
this["_defaultHeaders"] = {};
|
|
63
|
+
this._circuitBreaker = null;
|
|
64
|
+
this._httpOptions = undefined;
|
|
65
|
+
this._bodyDuplexMode = undefined;
|
|
66
|
+
this.targetService = "ShardedDatabaseService";
|
|
67
|
+
this._regionId = "";
|
|
68
|
+
this._lastSetRegionOrRegionId = "";
|
|
69
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
70
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
71
|
+
: null;
|
|
72
|
+
if (clientConfiguration) {
|
|
73
|
+
this._clientConfiguration = clientConfiguration;
|
|
74
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
75
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
76
|
+
: null;
|
|
77
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
78
|
+
? clientConfiguration.httpOptions
|
|
79
|
+
: undefined;
|
|
80
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
81
|
+
? clientConfiguration.bodyDuplexMode
|
|
82
|
+
: undefined;
|
|
83
|
+
}
|
|
84
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("globallydistributeddatabase")) {
|
|
85
|
+
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 : ";
|
|
86
|
+
throw errmsg.concat("globallydistributeddatabase");
|
|
87
|
+
}
|
|
88
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
89
|
+
const specCircuitBreakerEnabled = true;
|
|
90
|
+
if (!this._circuitBreaker &&
|
|
91
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
92
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
93
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
94
|
+
}
|
|
95
|
+
this._httpClient =
|
|
96
|
+
params.httpClient ||
|
|
97
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
98
|
+
if (params.authenticationDetailsProvider &&
|
|
99
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
100
|
+
const provider = params.authenticationDetailsProvider;
|
|
101
|
+
if (provider.getRegion()) {
|
|
102
|
+
this.region = provider.getRegion();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
108
|
+
*/
|
|
109
|
+
get endpoint() {
|
|
110
|
+
return this._endpoint;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
114
|
+
* @param endpoint The endpoint of the service.
|
|
115
|
+
*/
|
|
116
|
+
set endpoint(endpoint) {
|
|
117
|
+
this._endpoint = endpoint;
|
|
118
|
+
this._endpoint = this._endpoint + "/20230301";
|
|
119
|
+
if (this.logger)
|
|
120
|
+
this.logger.info(`ShardedDatabaseServiceClient endpoint set to ${this._endpoint}`);
|
|
121
|
+
}
|
|
122
|
+
get logger() {
|
|
123
|
+
return common.LOG.logger;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
127
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
128
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
129
|
+
*/
|
|
130
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
131
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
132
|
+
if (this.logger)
|
|
133
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
134
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
135
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShardedDatabaseServiceClient.serviceEndpointTemplate, this._region, ShardedDatabaseServiceClient.endpointServiceName);
|
|
136
|
+
}
|
|
137
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
138
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShardedDatabaseServiceClient.serviceEndpointTemplate, this._regionId, ShardedDatabaseServiceClient.endpointServiceName);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
143
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
144
|
+
* @param region The region of the service.
|
|
145
|
+
*/
|
|
146
|
+
set region(region) {
|
|
147
|
+
this._region = region;
|
|
148
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShardedDatabaseServiceClient.serviceEndpointTemplate, region, ShardedDatabaseServiceClient.endpointServiceName);
|
|
149
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
153
|
+
*
|
|
154
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
155
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
156
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
157
|
+
* @param regionId The public region ID.
|
|
158
|
+
*/
|
|
159
|
+
set regionId(regionId) {
|
|
160
|
+
this._regionId = regionId;
|
|
161
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShardedDatabaseServiceClient.serviceEndpointTemplate, regionId, ShardedDatabaseServiceClient.endpointServiceName);
|
|
162
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new ShardedDatabaseServiceWaiter for resources for this service.
|
|
166
|
+
*
|
|
167
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
168
|
+
* @return The service waiters.
|
|
169
|
+
*/
|
|
170
|
+
createWaiters(config) {
|
|
171
|
+
this._waiters = new shardeddatabaseservice_waiter_1.ShardedDatabaseServiceWaiter(this, config);
|
|
172
|
+
return this._waiters;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Gets the waiters available for resources for this service.
|
|
176
|
+
*
|
|
177
|
+
* @return The service waiters.
|
|
178
|
+
*/
|
|
179
|
+
getWaiters() {
|
|
180
|
+
if (this._waiters) {
|
|
181
|
+
return this._waiters;
|
|
182
|
+
}
|
|
183
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
187
|
+
*/
|
|
188
|
+
shutdownCircuitBreaker() {
|
|
189
|
+
if (this._circuitBreaker) {
|
|
190
|
+
this._circuitBreaker.shutdown();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Move the private endpoint to the specified compartment.
|
|
195
|
+
*
|
|
196
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
197
|
+
* @param ChangePrivateEndpointCompartmentRequest
|
|
198
|
+
* @return ChangePrivateEndpointCompartmentResponse
|
|
199
|
+
* @throws OciError when an error occurs
|
|
200
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ChangePrivateEndpointCompartment.ts.html |here} to see how to use ChangePrivateEndpointCompartment API.
|
|
201
|
+
*/
|
|
202
|
+
changePrivateEndpointCompartment(changePrivateEndpointCompartmentRequest) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
if (this.logger)
|
|
205
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#changePrivateEndpointCompartment.");
|
|
206
|
+
const operationName = "changePrivateEndpointCompartment";
|
|
207
|
+
const apiReferenceLink = "";
|
|
208
|
+
const pathParams = {
|
|
209
|
+
"{privateEndpointId}": changePrivateEndpointCompartmentRequest.privateEndpointId
|
|
210
|
+
};
|
|
211
|
+
const queryParams = {};
|
|
212
|
+
let headerParams = {
|
|
213
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
214
|
+
"opc-request-id": changePrivateEndpointCompartmentRequest.opcRequestId,
|
|
215
|
+
"if-match": changePrivateEndpointCompartmentRequest.ifMatch,
|
|
216
|
+
"opc-retry-token": changePrivateEndpointCompartmentRequest.opcRetryToken
|
|
217
|
+
};
|
|
218
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
219
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changePrivateEndpointCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
220
|
+
if (this.logger)
|
|
221
|
+
retrier.logger = this.logger;
|
|
222
|
+
const request = yield oci_common_1.composeRequest({
|
|
223
|
+
baseEndpoint: this._endpoint,
|
|
224
|
+
defaultHeaders: this._defaultHeaders,
|
|
225
|
+
path: "/privateEndpoints/{privateEndpointId}/actions/changeCompartment",
|
|
226
|
+
method: "POST",
|
|
227
|
+
bodyContent: common.ObjectSerializer.serialize(changePrivateEndpointCompartmentRequest.changePrivateEndpointCompartmentDetails, "ChangePrivateEndpointCompartmentDetails", model.ChangePrivateEndpointCompartmentDetails.getJsonObj),
|
|
228
|
+
pathParams: pathParams,
|
|
229
|
+
headerParams: headerParams,
|
|
230
|
+
queryParams: queryParams
|
|
231
|
+
});
|
|
232
|
+
try {
|
|
233
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
234
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
235
|
+
responseObject: {},
|
|
236
|
+
responseHeaders: [
|
|
237
|
+
{
|
|
238
|
+
value: response.headers.get("opc-work-request-id"),
|
|
239
|
+
key: "opcWorkRequestId",
|
|
240
|
+
dataType: "string"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
value: response.headers.get("opc-request-id"),
|
|
244
|
+
key: "opcRequestId",
|
|
245
|
+
dataType: "string"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
});
|
|
249
|
+
return sdkResponse;
|
|
250
|
+
}
|
|
251
|
+
catch (err) {
|
|
252
|
+
throw err;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Move the sharded database database and its dependent resources to the specified compartment.
|
|
258
|
+
*
|
|
259
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
260
|
+
* @param ChangeShardedDatabaseCompartmentRequest
|
|
261
|
+
* @return ChangeShardedDatabaseCompartmentResponse
|
|
262
|
+
* @throws OciError when an error occurs
|
|
263
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ChangeShardedDatabaseCompartment.ts.html |here} to see how to use ChangeShardedDatabaseCompartment API.
|
|
264
|
+
*/
|
|
265
|
+
changeShardedDatabaseCompartment(changeShardedDatabaseCompartmentRequest) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
if (this.logger)
|
|
268
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#changeShardedDatabaseCompartment.");
|
|
269
|
+
const operationName = "changeShardedDatabaseCompartment";
|
|
270
|
+
const apiReferenceLink = "";
|
|
271
|
+
const pathParams = {
|
|
272
|
+
"{shardedDatabaseId}": changeShardedDatabaseCompartmentRequest.shardedDatabaseId
|
|
273
|
+
};
|
|
274
|
+
const queryParams = {};
|
|
275
|
+
let headerParams = {
|
|
276
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
277
|
+
"opc-request-id": changeShardedDatabaseCompartmentRequest.opcRequestId,
|
|
278
|
+
"if-match": changeShardedDatabaseCompartmentRequest.ifMatch,
|
|
279
|
+
"opc-retry-token": changeShardedDatabaseCompartmentRequest.opcRetryToken
|
|
280
|
+
};
|
|
281
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
282
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeShardedDatabaseCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
283
|
+
if (this.logger)
|
|
284
|
+
retrier.logger = this.logger;
|
|
285
|
+
const request = yield oci_common_1.composeRequest({
|
|
286
|
+
baseEndpoint: this._endpoint,
|
|
287
|
+
defaultHeaders: this._defaultHeaders,
|
|
288
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/changeCompartment",
|
|
289
|
+
method: "POST",
|
|
290
|
+
bodyContent: common.ObjectSerializer.serialize(changeShardedDatabaseCompartmentRequest.changeShardedDatabaseCompartmentDetails, "ChangeShardedDatabaseCompartmentDetails", model.ChangeShardedDatabaseCompartmentDetails.getJsonObj),
|
|
291
|
+
pathParams: pathParams,
|
|
292
|
+
headerParams: headerParams,
|
|
293
|
+
queryParams: queryParams
|
|
294
|
+
});
|
|
295
|
+
try {
|
|
296
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
297
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
298
|
+
responseObject: {},
|
|
299
|
+
responseHeaders: [
|
|
300
|
+
{
|
|
301
|
+
value: response.headers.get("opc-request-id"),
|
|
302
|
+
key: "opcRequestId",
|
|
303
|
+
dataType: "string"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
value: response.headers.get("opc-work-request-id"),
|
|
307
|
+
key: "opcWorkRequestId",
|
|
308
|
+
dataType: "string"
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
});
|
|
312
|
+
return sdkResponse;
|
|
313
|
+
}
|
|
314
|
+
catch (err) {
|
|
315
|
+
throw err;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Configure new Global Service Manager(GSM aka shard manager) instances for the sharded database. Specify the names
|
|
321
|
+
* of old GSM instances that need to be replaced via parameter oldGsmNames in the request payload. Also specify
|
|
322
|
+
* whether rotated GSM instances shall be provisioned with latest image of GSM software or the image used by
|
|
323
|
+
* existing GSM instances shall be used.
|
|
324
|
+
*
|
|
325
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
326
|
+
* @param ConfigureShardedDatabaseGsmsRequest
|
|
327
|
+
* @return ConfigureShardedDatabaseGsmsResponse
|
|
328
|
+
* @throws OciError when an error occurs
|
|
329
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ConfigureShardedDatabaseGsms.ts.html |here} to see how to use ConfigureShardedDatabaseGsms API.
|
|
330
|
+
*/
|
|
331
|
+
configureShardedDatabaseGsms(configureShardedDatabaseGsmsRequest) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
if (this.logger)
|
|
334
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#configureShardedDatabaseGsms.");
|
|
335
|
+
const operationName = "configureShardedDatabaseGsms";
|
|
336
|
+
const apiReferenceLink = "";
|
|
337
|
+
const pathParams = {
|
|
338
|
+
"{shardedDatabaseId}": configureShardedDatabaseGsmsRequest.shardedDatabaseId
|
|
339
|
+
};
|
|
340
|
+
const queryParams = {};
|
|
341
|
+
let headerParams = {
|
|
342
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
343
|
+
"opc-retry-token": configureShardedDatabaseGsmsRequest.opcRetryToken,
|
|
344
|
+
"opc-request-id": configureShardedDatabaseGsmsRequest.opcRequestId,
|
|
345
|
+
"if-match": configureShardedDatabaseGsmsRequest.ifMatch
|
|
346
|
+
};
|
|
347
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
348
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureShardedDatabaseGsmsRequest.retryConfiguration, specRetryConfiguration);
|
|
349
|
+
if (this.logger)
|
|
350
|
+
retrier.logger = this.logger;
|
|
351
|
+
const request = yield oci_common_1.composeRequest({
|
|
352
|
+
baseEndpoint: this._endpoint,
|
|
353
|
+
defaultHeaders: this._defaultHeaders,
|
|
354
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/configureGsms",
|
|
355
|
+
method: "POST",
|
|
356
|
+
bodyContent: common.ObjectSerializer.serialize(configureShardedDatabaseGsmsRequest.configureShardedDatabaseGsmsDetails, "ConfigureShardedDatabaseGsmsDetails", model.ConfigureShardedDatabaseGsmsDetails.getJsonObj),
|
|
357
|
+
pathParams: pathParams,
|
|
358
|
+
headerParams: headerParams,
|
|
359
|
+
queryParams: queryParams
|
|
360
|
+
});
|
|
361
|
+
try {
|
|
362
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
363
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
364
|
+
responseObject: {},
|
|
365
|
+
responseHeaders: [
|
|
366
|
+
{
|
|
367
|
+
value: response.headers.get("opc-work-request-id"),
|
|
368
|
+
key: "opcWorkRequestId",
|
|
369
|
+
dataType: "string"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
value: response.headers.get("opc-request-id"),
|
|
373
|
+
key: "opcRequestId",
|
|
374
|
+
dataType: "string"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
});
|
|
378
|
+
return sdkResponse;
|
|
379
|
+
}
|
|
380
|
+
catch (err) {
|
|
381
|
+
throw err;
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Once all components of sharded database are provisioned, and signed GSM certificates are successfully uploaded, this
|
|
387
|
+
* api shall be invoked to configure sharding on the sharded database. Note that this 'ConfigureSharding' API also needs to be
|
|
388
|
+
* invoked after successfully adding a new shard to the sharded database using PATCH api. If this API is not
|
|
389
|
+
* invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of
|
|
390
|
+
* the sharded database.
|
|
391
|
+
*
|
|
392
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
393
|
+
* @param ConfigureShardingRequest
|
|
394
|
+
* @return ConfigureShardingResponse
|
|
395
|
+
* @throws OciError when an error occurs
|
|
396
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ConfigureSharding.ts.html |here} to see how to use ConfigureSharding API.
|
|
397
|
+
*/
|
|
398
|
+
configureSharding(configureShardingRequest) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
400
|
+
if (this.logger)
|
|
401
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#configureSharding.");
|
|
402
|
+
const operationName = "configureSharding";
|
|
403
|
+
const apiReferenceLink = "";
|
|
404
|
+
const pathParams = {
|
|
405
|
+
"{shardedDatabaseId}": configureShardingRequest.shardedDatabaseId
|
|
406
|
+
};
|
|
407
|
+
const queryParams = {
|
|
408
|
+
"isRebalanceRequired": configureShardingRequest.isRebalanceRequired
|
|
409
|
+
};
|
|
410
|
+
let headerParams = {
|
|
411
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
412
|
+
"opc-retry-token": configureShardingRequest.opcRetryToken,
|
|
413
|
+
"opc-request-id": configureShardingRequest.opcRequestId,
|
|
414
|
+
"if-match": configureShardingRequest.ifMatch
|
|
415
|
+
};
|
|
416
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
417
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureShardingRequest.retryConfiguration, specRetryConfiguration);
|
|
418
|
+
if (this.logger)
|
|
419
|
+
retrier.logger = this.logger;
|
|
420
|
+
const request = yield oci_common_1.composeRequest({
|
|
421
|
+
baseEndpoint: this._endpoint,
|
|
422
|
+
defaultHeaders: this._defaultHeaders,
|
|
423
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/configureSharding",
|
|
424
|
+
method: "POST",
|
|
425
|
+
pathParams: pathParams,
|
|
426
|
+
headerParams: headerParams,
|
|
427
|
+
queryParams: queryParams
|
|
428
|
+
});
|
|
429
|
+
try {
|
|
430
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
431
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
432
|
+
responseObject: {},
|
|
433
|
+
responseHeaders: [
|
|
434
|
+
{
|
|
435
|
+
value: response.headers.get("opc-work-request-id"),
|
|
436
|
+
key: "opcWorkRequestId",
|
|
437
|
+
dataType: "string"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
value: response.headers.get("opc-request-id"),
|
|
441
|
+
key: "opcRequestId",
|
|
442
|
+
dataType: "string"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
});
|
|
446
|
+
return sdkResponse;
|
|
447
|
+
}
|
|
448
|
+
catch (err) {
|
|
449
|
+
throw err;
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Creates a PrivateEndpoint.
|
|
455
|
+
*
|
|
456
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
457
|
+
* @param CreatePrivateEndpointRequest
|
|
458
|
+
* @return CreatePrivateEndpointResponse
|
|
459
|
+
* @throws OciError when an error occurs
|
|
460
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/CreatePrivateEndpoint.ts.html |here} to see how to use CreatePrivateEndpoint API.
|
|
461
|
+
*/
|
|
462
|
+
createPrivateEndpoint(createPrivateEndpointRequest) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
+
if (this.logger)
|
|
465
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#createPrivateEndpoint.");
|
|
466
|
+
const operationName = "createPrivateEndpoint";
|
|
467
|
+
const apiReferenceLink = "";
|
|
468
|
+
const pathParams = {};
|
|
469
|
+
const queryParams = {};
|
|
470
|
+
let headerParams = {
|
|
471
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
472
|
+
"opc-retry-token": createPrivateEndpointRequest.opcRetryToken,
|
|
473
|
+
"opc-request-id": createPrivateEndpointRequest.opcRequestId
|
|
474
|
+
};
|
|
475
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
476
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
477
|
+
if (this.logger)
|
|
478
|
+
retrier.logger = this.logger;
|
|
479
|
+
const request = yield oci_common_1.composeRequest({
|
|
480
|
+
baseEndpoint: this._endpoint,
|
|
481
|
+
defaultHeaders: this._defaultHeaders,
|
|
482
|
+
path: "/privateEndpoints",
|
|
483
|
+
method: "POST",
|
|
484
|
+
bodyContent: common.ObjectSerializer.serialize(createPrivateEndpointRequest.createPrivateEndpointDetails, "CreatePrivateEndpointDetails", model.CreatePrivateEndpointDetails.getJsonObj),
|
|
485
|
+
pathParams: pathParams,
|
|
486
|
+
headerParams: headerParams,
|
|
487
|
+
queryParams: queryParams
|
|
488
|
+
});
|
|
489
|
+
try {
|
|
490
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
491
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
492
|
+
responseObject: {},
|
|
493
|
+
body: yield response.json(),
|
|
494
|
+
bodyKey: "privateEndpoint",
|
|
495
|
+
bodyModel: model.PrivateEndpoint,
|
|
496
|
+
type: "model.PrivateEndpoint",
|
|
497
|
+
responseHeaders: [
|
|
498
|
+
{
|
|
499
|
+
value: response.headers.get("opc-work-request-id"),
|
|
500
|
+
key: "opcWorkRequestId",
|
|
501
|
+
dataType: "string"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
value: response.headers.get("opc-request-id"),
|
|
505
|
+
key: "opcRequestId",
|
|
506
|
+
dataType: "string"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
value: response.headers.get("etag"),
|
|
510
|
+
key: "etag",
|
|
511
|
+
dataType: "string"
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
});
|
|
515
|
+
return sdkResponse;
|
|
516
|
+
}
|
|
517
|
+
catch (err) {
|
|
518
|
+
throw err;
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Creates a Sharded Database.
|
|
524
|
+
*
|
|
525
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
526
|
+
* @param CreateShardedDatabaseRequest
|
|
527
|
+
* @return CreateShardedDatabaseResponse
|
|
528
|
+
* @throws OciError when an error occurs
|
|
529
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/CreateShardedDatabase.ts.html |here} to see how to use CreateShardedDatabase API.
|
|
530
|
+
*/
|
|
531
|
+
createShardedDatabase(createShardedDatabaseRequest) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
+
if (this.logger)
|
|
534
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#createShardedDatabase.");
|
|
535
|
+
const operationName = "createShardedDatabase";
|
|
536
|
+
const apiReferenceLink = "";
|
|
537
|
+
const pathParams = {};
|
|
538
|
+
const queryParams = {};
|
|
539
|
+
let headerParams = {
|
|
540
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
541
|
+
"opc-retry-token": createShardedDatabaseRequest.opcRetryToken,
|
|
542
|
+
"opc-request-id": createShardedDatabaseRequest.opcRequestId
|
|
543
|
+
};
|
|
544
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
545
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
546
|
+
if (this.logger)
|
|
547
|
+
retrier.logger = this.logger;
|
|
548
|
+
const request = yield oci_common_1.composeRequest({
|
|
549
|
+
baseEndpoint: this._endpoint,
|
|
550
|
+
defaultHeaders: this._defaultHeaders,
|
|
551
|
+
path: "/shardedDatabases",
|
|
552
|
+
method: "POST",
|
|
553
|
+
bodyContent: common.ObjectSerializer.serialize(createShardedDatabaseRequest.createShardedDatabaseDetails, "CreateShardedDatabaseDetails", model.CreateShardedDatabaseDetails.getJsonObj),
|
|
554
|
+
pathParams: pathParams,
|
|
555
|
+
headerParams: headerParams,
|
|
556
|
+
queryParams: queryParams
|
|
557
|
+
});
|
|
558
|
+
try {
|
|
559
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
560
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
561
|
+
responseObject: {},
|
|
562
|
+
body: yield response.json(),
|
|
563
|
+
bodyKey: "shardedDatabase",
|
|
564
|
+
bodyModel: model.ShardedDatabase,
|
|
565
|
+
type: "model.ShardedDatabase",
|
|
566
|
+
responseHeaders: [
|
|
567
|
+
{
|
|
568
|
+
value: response.headers.get("opc-work-request-id"),
|
|
569
|
+
key: "opcWorkRequestId",
|
|
570
|
+
dataType: "string"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
value: response.headers.get("opc-request-id"),
|
|
574
|
+
key: "opcRequestId",
|
|
575
|
+
dataType: "string"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
value: response.headers.get("etag"),
|
|
579
|
+
key: "etag",
|
|
580
|
+
dataType: "string"
|
|
581
|
+
}
|
|
582
|
+
]
|
|
583
|
+
});
|
|
584
|
+
return sdkResponse;
|
|
585
|
+
}
|
|
586
|
+
catch (err) {
|
|
587
|
+
throw err;
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Delete the given private endpoint.
|
|
593
|
+
*
|
|
594
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
595
|
+
* @param DeletePrivateEndpointRequest
|
|
596
|
+
* @return DeletePrivateEndpointResponse
|
|
597
|
+
* @throws OciError when an error occurs
|
|
598
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/DeletePrivateEndpoint.ts.html |here} to see how to use DeletePrivateEndpoint API.
|
|
599
|
+
*/
|
|
600
|
+
deletePrivateEndpoint(deletePrivateEndpointRequest) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
if (this.logger)
|
|
603
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#deletePrivateEndpoint.");
|
|
604
|
+
const operationName = "deletePrivateEndpoint";
|
|
605
|
+
const apiReferenceLink = "";
|
|
606
|
+
const pathParams = {
|
|
607
|
+
"{privateEndpointId}": deletePrivateEndpointRequest.privateEndpointId
|
|
608
|
+
};
|
|
609
|
+
const queryParams = {};
|
|
610
|
+
let headerParams = {
|
|
611
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
612
|
+
"opc-request-id": deletePrivateEndpointRequest.opcRequestId,
|
|
613
|
+
"opc-retry-token": deletePrivateEndpointRequest.opcRetryToken,
|
|
614
|
+
"if-match": deletePrivateEndpointRequest.ifMatch
|
|
615
|
+
};
|
|
616
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
617
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
618
|
+
if (this.logger)
|
|
619
|
+
retrier.logger = this.logger;
|
|
620
|
+
const request = yield oci_common_1.composeRequest({
|
|
621
|
+
baseEndpoint: this._endpoint,
|
|
622
|
+
defaultHeaders: this._defaultHeaders,
|
|
623
|
+
path: "/privateEndpoints/{privateEndpointId}",
|
|
624
|
+
method: "DELETE",
|
|
625
|
+
pathParams: pathParams,
|
|
626
|
+
headerParams: headerParams,
|
|
627
|
+
queryParams: queryParams
|
|
628
|
+
});
|
|
629
|
+
try {
|
|
630
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
631
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
632
|
+
responseObject: {},
|
|
633
|
+
responseHeaders: [
|
|
634
|
+
{
|
|
635
|
+
value: response.headers.get("opc-work-request-id"),
|
|
636
|
+
key: "opcWorkRequestId",
|
|
637
|
+
dataType: "string"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
value: response.headers.get("opc-request-id"),
|
|
641
|
+
key: "opcRequestId",
|
|
642
|
+
dataType: "string"
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
});
|
|
646
|
+
return sdkResponse;
|
|
647
|
+
}
|
|
648
|
+
catch (err) {
|
|
649
|
+
throw err;
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Terminate the given sharded databases.
|
|
655
|
+
*
|
|
656
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
657
|
+
* @param DeleteShardedDatabaseRequest
|
|
658
|
+
* @return DeleteShardedDatabaseResponse
|
|
659
|
+
* @throws OciError when an error occurs
|
|
660
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/DeleteShardedDatabase.ts.html |here} to see how to use DeleteShardedDatabase API.
|
|
661
|
+
*/
|
|
662
|
+
deleteShardedDatabase(deleteShardedDatabaseRequest) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
+
if (this.logger)
|
|
665
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#deleteShardedDatabase.");
|
|
666
|
+
const operationName = "deleteShardedDatabase";
|
|
667
|
+
const apiReferenceLink = "";
|
|
668
|
+
const pathParams = {
|
|
669
|
+
"{shardedDatabaseId}": deleteShardedDatabaseRequest.shardedDatabaseId
|
|
670
|
+
};
|
|
671
|
+
const queryParams = {};
|
|
672
|
+
let headerParams = {
|
|
673
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
674
|
+
"opc-request-id": deleteShardedDatabaseRequest.opcRequestId,
|
|
675
|
+
"opc-retry-token": deleteShardedDatabaseRequest.opcRetryToken,
|
|
676
|
+
"if-match": deleteShardedDatabaseRequest.ifMatch
|
|
677
|
+
};
|
|
678
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
679
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
680
|
+
if (this.logger)
|
|
681
|
+
retrier.logger = this.logger;
|
|
682
|
+
const request = yield oci_common_1.composeRequest({
|
|
683
|
+
baseEndpoint: this._endpoint,
|
|
684
|
+
defaultHeaders: this._defaultHeaders,
|
|
685
|
+
path: "/shardedDatabases/{shardedDatabaseId}",
|
|
686
|
+
method: "DELETE",
|
|
687
|
+
pathParams: pathParams,
|
|
688
|
+
headerParams: headerParams,
|
|
689
|
+
queryParams: queryParams
|
|
690
|
+
});
|
|
691
|
+
try {
|
|
692
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
693
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
694
|
+
responseObject: {},
|
|
695
|
+
responseHeaders: [
|
|
696
|
+
{
|
|
697
|
+
value: response.headers.get("opc-work-request-id"),
|
|
698
|
+
key: "opcWorkRequestId",
|
|
699
|
+
dataType: "string"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
value: response.headers.get("opc-request-id"),
|
|
703
|
+
key: "opcRequestId",
|
|
704
|
+
dataType: "string"
|
|
705
|
+
}
|
|
706
|
+
]
|
|
707
|
+
});
|
|
708
|
+
return sdkResponse;
|
|
709
|
+
}
|
|
710
|
+
catch (err) {
|
|
711
|
+
throw err;
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Generate the common certificate signing request for GSMs. Download the <sdb-prefix>.csr file from
|
|
717
|
+
* API response. Users can use this .csr file to generate the CA signed certificate, and as a next step
|
|
718
|
+
* use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed certificate to GSM, and
|
|
719
|
+
* generate wallets for the GSM instances of the sharded database.
|
|
720
|
+
*
|
|
721
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
722
|
+
* @param DownloadGsmCertificateSigningRequestRequest
|
|
723
|
+
* @return DownloadGsmCertificateSigningRequestResponse
|
|
724
|
+
* @throws OciError when an error occurs
|
|
725
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/DownloadGsmCertificateSigningRequest.ts.html |here} to see how to use DownloadGsmCertificateSigningRequest API.
|
|
726
|
+
*/
|
|
727
|
+
downloadGsmCertificateSigningRequest(downloadGsmCertificateSigningRequestRequest) {
|
|
728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
729
|
+
if (this.logger)
|
|
730
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#downloadGsmCertificateSigningRequest.");
|
|
731
|
+
const operationName = "downloadGsmCertificateSigningRequest";
|
|
732
|
+
const apiReferenceLink = "";
|
|
733
|
+
const pathParams = {
|
|
734
|
+
"{shardedDatabaseId}": downloadGsmCertificateSigningRequestRequest.shardedDatabaseId
|
|
735
|
+
};
|
|
736
|
+
const queryParams = {};
|
|
737
|
+
let headerParams = {
|
|
738
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
739
|
+
"opc-request-id": downloadGsmCertificateSigningRequestRequest.opcRequestId,
|
|
740
|
+
"if-match": downloadGsmCertificateSigningRequestRequest.ifMatch,
|
|
741
|
+
"opc-retry-token": downloadGsmCertificateSigningRequestRequest.opcRetryToken
|
|
742
|
+
};
|
|
743
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
744
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadGsmCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
745
|
+
if (this.logger)
|
|
746
|
+
retrier.logger = this.logger;
|
|
747
|
+
const request = yield oci_common_1.composeRequest({
|
|
748
|
+
baseEndpoint: this._endpoint,
|
|
749
|
+
defaultHeaders: this._defaultHeaders,
|
|
750
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/downloadGsmCertificateSigningRequest",
|
|
751
|
+
method: "POST",
|
|
752
|
+
pathParams: pathParams,
|
|
753
|
+
headerParams: headerParams,
|
|
754
|
+
queryParams: queryParams
|
|
755
|
+
});
|
|
756
|
+
try {
|
|
757
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
758
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
759
|
+
responseObject: {},
|
|
760
|
+
body: response.body,
|
|
761
|
+
bodyKey: "value",
|
|
762
|
+
bodyModel: "string",
|
|
763
|
+
responseHeaders: [
|
|
764
|
+
{
|
|
765
|
+
value: response.headers.get("opc-request-id"),
|
|
766
|
+
key: "opcRequestId",
|
|
767
|
+
dataType: "string"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
value: response.headers.get("etag"),
|
|
771
|
+
key: "etag",
|
|
772
|
+
dataType: "string"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
value: response.headers.get("content-length"),
|
|
776
|
+
key: "contentLength",
|
|
777
|
+
dataType: "number"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
value: response.headers.get("last-modified"),
|
|
781
|
+
key: "lastModified",
|
|
782
|
+
dataType: "Date"
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
});
|
|
786
|
+
return sdkResponse;
|
|
787
|
+
}
|
|
788
|
+
catch (err) {
|
|
789
|
+
throw err;
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Gets the Sharded Database Connection Strings.
|
|
795
|
+
*
|
|
796
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
797
|
+
* @param FetchConnectionStringRequest
|
|
798
|
+
* @return FetchConnectionStringResponse
|
|
799
|
+
* @throws OciError when an error occurs
|
|
800
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/FetchConnectionString.ts.html |here} to see how to use FetchConnectionString API.
|
|
801
|
+
*/
|
|
802
|
+
fetchConnectionString(fetchConnectionStringRequest) {
|
|
803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
804
|
+
if (this.logger)
|
|
805
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#fetchConnectionString.");
|
|
806
|
+
const operationName = "fetchConnectionString";
|
|
807
|
+
const apiReferenceLink = "";
|
|
808
|
+
const pathParams = {
|
|
809
|
+
"{shardedDatabaseId}": fetchConnectionStringRequest.shardedDatabaseId
|
|
810
|
+
};
|
|
811
|
+
const queryParams = {};
|
|
812
|
+
let headerParams = {
|
|
813
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
814
|
+
"opc-retry-token": fetchConnectionStringRequest.opcRetryToken,
|
|
815
|
+
"opc-request-id": fetchConnectionStringRequest.opcRequestId,
|
|
816
|
+
"if-match": fetchConnectionStringRequest.ifMatch
|
|
817
|
+
};
|
|
818
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
819
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, fetchConnectionStringRequest.retryConfiguration, specRetryConfiguration);
|
|
820
|
+
if (this.logger)
|
|
821
|
+
retrier.logger = this.logger;
|
|
822
|
+
const request = yield oci_common_1.composeRequest({
|
|
823
|
+
baseEndpoint: this._endpoint,
|
|
824
|
+
defaultHeaders: this._defaultHeaders,
|
|
825
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/getConnectionString",
|
|
826
|
+
method: "POST",
|
|
827
|
+
pathParams: pathParams,
|
|
828
|
+
headerParams: headerParams,
|
|
829
|
+
queryParams: queryParams
|
|
830
|
+
});
|
|
831
|
+
try {
|
|
832
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
833
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
834
|
+
responseObject: {},
|
|
835
|
+
body: yield response.json(),
|
|
836
|
+
bodyKey: "connectionString",
|
|
837
|
+
bodyModel: model.ConnectionString,
|
|
838
|
+
type: "model.ConnectionString",
|
|
839
|
+
responseHeaders: [
|
|
840
|
+
{
|
|
841
|
+
value: response.headers.get("opc-request-id"),
|
|
842
|
+
key: "opcRequestId",
|
|
843
|
+
dataType: "string"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
value: response.headers.get("etag"),
|
|
847
|
+
key: "etag",
|
|
848
|
+
dataType: "string"
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
});
|
|
852
|
+
return sdkResponse;
|
|
853
|
+
}
|
|
854
|
+
catch (err) {
|
|
855
|
+
throw err;
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* List of cloudAutonomousVMClusters for the given tenancy, that can be sharded.
|
|
861
|
+
*
|
|
862
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
863
|
+
* @param FetchShardableCloudAutonomousVmClustersRequest
|
|
864
|
+
* @return FetchShardableCloudAutonomousVmClustersResponse
|
|
865
|
+
* @throws OciError when an error occurs
|
|
866
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/FetchShardableCloudAutonomousVmClusters.ts.html |here} to see how to use FetchShardableCloudAutonomousVmClusters API.
|
|
867
|
+
*/
|
|
868
|
+
fetchShardableCloudAutonomousVmClusters(fetchShardableCloudAutonomousVmClustersRequest) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
if (this.logger)
|
|
871
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#fetchShardableCloudAutonomousVmClusters.");
|
|
872
|
+
const operationName = "fetchShardableCloudAutonomousVmClusters";
|
|
873
|
+
const apiReferenceLink = "";
|
|
874
|
+
const pathParams = {};
|
|
875
|
+
const queryParams = {};
|
|
876
|
+
let headerParams = {
|
|
877
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
878
|
+
"opc-retry-token": fetchShardableCloudAutonomousVmClustersRequest.opcRetryToken,
|
|
879
|
+
"opc-request-id": fetchShardableCloudAutonomousVmClustersRequest.opcRequestId
|
|
880
|
+
};
|
|
881
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
882
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, fetchShardableCloudAutonomousVmClustersRequest.retryConfiguration, specRetryConfiguration);
|
|
883
|
+
if (this.logger)
|
|
884
|
+
retrier.logger = this.logger;
|
|
885
|
+
const request = yield oci_common_1.composeRequest({
|
|
886
|
+
baseEndpoint: this._endpoint,
|
|
887
|
+
defaultHeaders: this._defaultHeaders,
|
|
888
|
+
path: "/shardedDatabases/actions/listShardableCloudAutonomousVmClusters",
|
|
889
|
+
method: "POST",
|
|
890
|
+
bodyContent: common.ObjectSerializer.serialize(fetchShardableCloudAutonomousVmClustersRequest.fetchShardableCloudAutonomousVmClustersDetails, "FetchShardableCloudAutonomousVmClustersDetails", model.FetchShardableCloudAutonomousVmClustersDetails.getJsonObj),
|
|
891
|
+
pathParams: pathParams,
|
|
892
|
+
headerParams: headerParams,
|
|
893
|
+
queryParams: queryParams
|
|
894
|
+
});
|
|
895
|
+
try {
|
|
896
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
897
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
898
|
+
responseObject: {},
|
|
899
|
+
body: yield response.json(),
|
|
900
|
+
bodyKey: "shardableCloudAutonomousVmClusters",
|
|
901
|
+
bodyModel: model.ShardableCloudAutonomousVmClusters,
|
|
902
|
+
type: "model.ShardableCloudAutonomousVmClusters",
|
|
903
|
+
responseHeaders: [
|
|
904
|
+
{
|
|
905
|
+
value: response.headers.get("opc-request-id"),
|
|
906
|
+
key: "opcRequestId",
|
|
907
|
+
dataType: "string"
|
|
908
|
+
}
|
|
909
|
+
]
|
|
910
|
+
});
|
|
911
|
+
return sdkResponse;
|
|
912
|
+
}
|
|
913
|
+
catch (err) {
|
|
914
|
+
throw err;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Generate the certificate signing request for GSM instances of the sharded database. Once certificate signing
|
|
920
|
+
* request is generated, then customers can download the certificate signing request using
|
|
921
|
+
* 'downloadGsmCertificateSigningRequest' api call.
|
|
922
|
+
*
|
|
923
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
924
|
+
* @param GenerateGsmCertificateSigningRequestRequest
|
|
925
|
+
* @return GenerateGsmCertificateSigningRequestResponse
|
|
926
|
+
* @throws OciError when an error occurs
|
|
927
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/GenerateGsmCertificateSigningRequest.ts.html |here} to see how to use GenerateGsmCertificateSigningRequest API.
|
|
928
|
+
*/
|
|
929
|
+
generateGsmCertificateSigningRequest(generateGsmCertificateSigningRequestRequest) {
|
|
930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
931
|
+
if (this.logger)
|
|
932
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#generateGsmCertificateSigningRequest.");
|
|
933
|
+
const operationName = "generateGsmCertificateSigningRequest";
|
|
934
|
+
const apiReferenceLink = "";
|
|
935
|
+
const pathParams = {
|
|
936
|
+
"{shardedDatabaseId}": generateGsmCertificateSigningRequestRequest.shardedDatabaseId
|
|
937
|
+
};
|
|
938
|
+
const queryParams = {};
|
|
939
|
+
let headerParams = {
|
|
940
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
941
|
+
"opc-request-id": generateGsmCertificateSigningRequestRequest.opcRequestId,
|
|
942
|
+
"if-match": generateGsmCertificateSigningRequestRequest.ifMatch,
|
|
943
|
+
"opc-retry-token": generateGsmCertificateSigningRequestRequest.opcRetryToken
|
|
944
|
+
};
|
|
945
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
946
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateGsmCertificateSigningRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
947
|
+
if (this.logger)
|
|
948
|
+
retrier.logger = this.logger;
|
|
949
|
+
const request = yield oci_common_1.composeRequest({
|
|
950
|
+
baseEndpoint: this._endpoint,
|
|
951
|
+
defaultHeaders: this._defaultHeaders,
|
|
952
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/generateGsmCertificateSigningRequest",
|
|
953
|
+
method: "POST",
|
|
954
|
+
pathParams: pathParams,
|
|
955
|
+
headerParams: headerParams,
|
|
956
|
+
queryParams: queryParams
|
|
957
|
+
});
|
|
958
|
+
try {
|
|
959
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
960
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
961
|
+
responseObject: {},
|
|
962
|
+
responseHeaders: [
|
|
963
|
+
{
|
|
964
|
+
value: response.headers.get("opc-work-request-id"),
|
|
965
|
+
key: "opcWorkRequestId",
|
|
966
|
+
dataType: "string"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
value: response.headers.get("opc-request-id"),
|
|
970
|
+
key: "opcRequestId",
|
|
971
|
+
dataType: "string"
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
});
|
|
975
|
+
return sdkResponse;
|
|
976
|
+
}
|
|
977
|
+
catch (err) {
|
|
978
|
+
throw err;
|
|
979
|
+
}
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* Generate the wallet associated with sharded database.
|
|
984
|
+
*
|
|
985
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
986
|
+
* @param GenerateWalletRequest
|
|
987
|
+
* @return GenerateWalletResponse
|
|
988
|
+
* @throws OciError when an error occurs
|
|
989
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/GenerateWallet.ts.html |here} to see how to use GenerateWallet API.
|
|
990
|
+
*/
|
|
991
|
+
generateWallet(generateWalletRequest) {
|
|
992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
993
|
+
if (this.logger)
|
|
994
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#generateWallet.");
|
|
995
|
+
const operationName = "generateWallet";
|
|
996
|
+
const apiReferenceLink = "";
|
|
997
|
+
const pathParams = {
|
|
998
|
+
"{shardedDatabaseId}": generateWalletRequest.shardedDatabaseId
|
|
999
|
+
};
|
|
1000
|
+
const queryParams = {};
|
|
1001
|
+
let headerParams = {
|
|
1002
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1003
|
+
"opc-request-id": generateWalletRequest.opcRequestId,
|
|
1004
|
+
"if-match": generateWalletRequest.ifMatch,
|
|
1005
|
+
"opc-retry-token": generateWalletRequest.opcRetryToken
|
|
1006
|
+
};
|
|
1007
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1008
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
1009
|
+
if (this.logger)
|
|
1010
|
+
retrier.logger = this.logger;
|
|
1011
|
+
const request = yield oci_common_1.composeRequest({
|
|
1012
|
+
baseEndpoint: this._endpoint,
|
|
1013
|
+
defaultHeaders: this._defaultHeaders,
|
|
1014
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/generateWallet",
|
|
1015
|
+
method: "POST",
|
|
1016
|
+
bodyContent: common.ObjectSerializer.serialize(generateWalletRequest.generateWalletDetails, "GenerateWalletDetails", model.GenerateWalletDetails.getJsonObj),
|
|
1017
|
+
pathParams: pathParams,
|
|
1018
|
+
headerParams: headerParams,
|
|
1019
|
+
queryParams: queryParams
|
|
1020
|
+
});
|
|
1021
|
+
try {
|
|
1022
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1023
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1024
|
+
responseObject: {},
|
|
1025
|
+
body: response.body,
|
|
1026
|
+
bodyKey: "value",
|
|
1027
|
+
bodyModel: "string",
|
|
1028
|
+
responseHeaders: [
|
|
1029
|
+
{
|
|
1030
|
+
value: response.headers.get("opc-request-id"),
|
|
1031
|
+
key: "opcRequestId",
|
|
1032
|
+
dataType: "string"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
value: response.headers.get("etag"),
|
|
1036
|
+
key: "etag",
|
|
1037
|
+
dataType: "string"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
value: response.headers.get("content-length"),
|
|
1041
|
+
key: "contentLength",
|
|
1042
|
+
dataType: "number"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
value: response.headers.get("last-modified"),
|
|
1046
|
+
key: "lastModified",
|
|
1047
|
+
dataType: "Date"
|
|
1048
|
+
}
|
|
1049
|
+
]
|
|
1050
|
+
});
|
|
1051
|
+
return sdkResponse;
|
|
1052
|
+
}
|
|
1053
|
+
catch (err) {
|
|
1054
|
+
throw err;
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Get the PrivateEndpoint resource.
|
|
1060
|
+
*
|
|
1061
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1062
|
+
* @param GetPrivateEndpointRequest
|
|
1063
|
+
* @return GetPrivateEndpointResponse
|
|
1064
|
+
* @throws OciError when an error occurs
|
|
1065
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/GetPrivateEndpoint.ts.html |here} to see how to use GetPrivateEndpoint API.
|
|
1066
|
+
*/
|
|
1067
|
+
getPrivateEndpoint(getPrivateEndpointRequest) {
|
|
1068
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1069
|
+
if (this.logger)
|
|
1070
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#getPrivateEndpoint.");
|
|
1071
|
+
const operationName = "getPrivateEndpoint";
|
|
1072
|
+
const apiReferenceLink = "";
|
|
1073
|
+
const pathParams = {
|
|
1074
|
+
"{privateEndpointId}": getPrivateEndpointRequest.privateEndpointId
|
|
1075
|
+
};
|
|
1076
|
+
const queryParams = {};
|
|
1077
|
+
let headerParams = {
|
|
1078
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1079
|
+
"opc-request-id": getPrivateEndpointRequest.opcRequestId
|
|
1080
|
+
};
|
|
1081
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1082
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1083
|
+
if (this.logger)
|
|
1084
|
+
retrier.logger = this.logger;
|
|
1085
|
+
const request = yield oci_common_1.composeRequest({
|
|
1086
|
+
baseEndpoint: this._endpoint,
|
|
1087
|
+
defaultHeaders: this._defaultHeaders,
|
|
1088
|
+
path: "/privateEndpoints/{privateEndpointId}",
|
|
1089
|
+
method: "GET",
|
|
1090
|
+
pathParams: pathParams,
|
|
1091
|
+
headerParams: headerParams,
|
|
1092
|
+
queryParams: queryParams
|
|
1093
|
+
});
|
|
1094
|
+
try {
|
|
1095
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1096
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1097
|
+
responseObject: {},
|
|
1098
|
+
body: yield response.json(),
|
|
1099
|
+
bodyKey: "privateEndpoint",
|
|
1100
|
+
bodyModel: model.PrivateEndpoint,
|
|
1101
|
+
type: "model.PrivateEndpoint",
|
|
1102
|
+
responseHeaders: [
|
|
1103
|
+
{
|
|
1104
|
+
value: response.headers.get("opc-request-id"),
|
|
1105
|
+
key: "opcRequestId",
|
|
1106
|
+
dataType: "string"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
value: response.headers.get("etag"),
|
|
1110
|
+
key: "etag",
|
|
1111
|
+
dataType: "string"
|
|
1112
|
+
}
|
|
1113
|
+
]
|
|
1114
|
+
});
|
|
1115
|
+
return sdkResponse;
|
|
1116
|
+
}
|
|
1117
|
+
catch (err) {
|
|
1118
|
+
throw err;
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Gets the details of the Sharded database identified by given id.
|
|
1124
|
+
*
|
|
1125
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1126
|
+
* @param GetShardedDatabaseRequest
|
|
1127
|
+
* @return GetShardedDatabaseResponse
|
|
1128
|
+
* @throws OciError when an error occurs
|
|
1129
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/GetShardedDatabase.ts.html |here} to see how to use GetShardedDatabase API.
|
|
1130
|
+
*/
|
|
1131
|
+
getShardedDatabase(getShardedDatabaseRequest) {
|
|
1132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1133
|
+
if (this.logger)
|
|
1134
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#getShardedDatabase.");
|
|
1135
|
+
const operationName = "getShardedDatabase";
|
|
1136
|
+
const apiReferenceLink = "";
|
|
1137
|
+
const pathParams = {
|
|
1138
|
+
"{shardedDatabaseId}": getShardedDatabaseRequest.shardedDatabaseId
|
|
1139
|
+
};
|
|
1140
|
+
const queryParams = {
|
|
1141
|
+
"metadata": getShardedDatabaseRequest.metadata
|
|
1142
|
+
};
|
|
1143
|
+
let headerParams = {
|
|
1144
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1145
|
+
"opc-request-id": getShardedDatabaseRequest.opcRequestId
|
|
1146
|
+
};
|
|
1147
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1148
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1149
|
+
if (this.logger)
|
|
1150
|
+
retrier.logger = this.logger;
|
|
1151
|
+
const request = yield oci_common_1.composeRequest({
|
|
1152
|
+
baseEndpoint: this._endpoint,
|
|
1153
|
+
defaultHeaders: this._defaultHeaders,
|
|
1154
|
+
path: "/shardedDatabases/{shardedDatabaseId}",
|
|
1155
|
+
method: "GET",
|
|
1156
|
+
pathParams: pathParams,
|
|
1157
|
+
headerParams: headerParams,
|
|
1158
|
+
queryParams: queryParams
|
|
1159
|
+
});
|
|
1160
|
+
try {
|
|
1161
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1162
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1163
|
+
responseObject: {},
|
|
1164
|
+
body: yield response.json(),
|
|
1165
|
+
bodyKey: "shardedDatabase",
|
|
1166
|
+
bodyModel: model.ShardedDatabase,
|
|
1167
|
+
type: "model.ShardedDatabase",
|
|
1168
|
+
responseHeaders: [
|
|
1169
|
+
{
|
|
1170
|
+
value: response.headers.get("opc-request-id"),
|
|
1171
|
+
key: "opcRequestId",
|
|
1172
|
+
dataType: "string"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
value: response.headers.get("etag"),
|
|
1176
|
+
key: "etag",
|
|
1177
|
+
dataType: "string"
|
|
1178
|
+
}
|
|
1179
|
+
]
|
|
1180
|
+
});
|
|
1181
|
+
return sdkResponse;
|
|
1182
|
+
}
|
|
1183
|
+
catch (err) {
|
|
1184
|
+
throw err;
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Gets details of the work request with the given ID.
|
|
1190
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1191
|
+
* @param GetWorkRequestRequest
|
|
1192
|
+
* @return GetWorkRequestResponse
|
|
1193
|
+
* @throws OciError when an error occurs
|
|
1194
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1195
|
+
*/
|
|
1196
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1198
|
+
if (this.logger)
|
|
1199
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#getWorkRequest.");
|
|
1200
|
+
const operationName = "getWorkRequest";
|
|
1201
|
+
const apiReferenceLink = "";
|
|
1202
|
+
const pathParams = {
|
|
1203
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1204
|
+
};
|
|
1205
|
+
const queryParams = {};
|
|
1206
|
+
let headerParams = {
|
|
1207
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1208
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1209
|
+
};
|
|
1210
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1211
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1212
|
+
if (this.logger)
|
|
1213
|
+
retrier.logger = this.logger;
|
|
1214
|
+
const request = yield oci_common_1.composeRequest({
|
|
1215
|
+
baseEndpoint: this._endpoint,
|
|
1216
|
+
defaultHeaders: this._defaultHeaders,
|
|
1217
|
+
path: "/workRequests/{workRequestId}",
|
|
1218
|
+
method: "GET",
|
|
1219
|
+
pathParams: pathParams,
|
|
1220
|
+
headerParams: headerParams,
|
|
1221
|
+
queryParams: queryParams
|
|
1222
|
+
});
|
|
1223
|
+
try {
|
|
1224
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1225
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1226
|
+
responseObject: {},
|
|
1227
|
+
body: yield response.json(),
|
|
1228
|
+
bodyKey: "workRequest",
|
|
1229
|
+
bodyModel: model.WorkRequest,
|
|
1230
|
+
type: "model.WorkRequest",
|
|
1231
|
+
responseHeaders: [
|
|
1232
|
+
{
|
|
1233
|
+
value: response.headers.get("opc-request-id"),
|
|
1234
|
+
key: "opcRequestId",
|
|
1235
|
+
dataType: "string"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
value: response.headers.get("retry-after"),
|
|
1239
|
+
key: "retryAfter",
|
|
1240
|
+
dataType: "number"
|
|
1241
|
+
}
|
|
1242
|
+
]
|
|
1243
|
+
});
|
|
1244
|
+
return sdkResponse;
|
|
1245
|
+
}
|
|
1246
|
+
catch (err) {
|
|
1247
|
+
throw err;
|
|
1248
|
+
}
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* List of PrivateEndpoints.
|
|
1253
|
+
*
|
|
1254
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1255
|
+
* @param ListPrivateEndpointsRequest
|
|
1256
|
+
* @return ListPrivateEndpointsResponse
|
|
1257
|
+
* @throws OciError when an error occurs
|
|
1258
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ListPrivateEndpoints.ts.html |here} to see how to use ListPrivateEndpoints API.
|
|
1259
|
+
*/
|
|
1260
|
+
listPrivateEndpoints(listPrivateEndpointsRequest) {
|
|
1261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1262
|
+
if (this.logger)
|
|
1263
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#listPrivateEndpoints.");
|
|
1264
|
+
const operationName = "listPrivateEndpoints";
|
|
1265
|
+
const apiReferenceLink = "";
|
|
1266
|
+
const pathParams = {};
|
|
1267
|
+
const queryParams = {
|
|
1268
|
+
"compartmentId": listPrivateEndpointsRequest.compartmentId,
|
|
1269
|
+
"lifecycleState": listPrivateEndpointsRequest.lifecycleState,
|
|
1270
|
+
"limit": listPrivateEndpointsRequest.limit,
|
|
1271
|
+
"page": listPrivateEndpointsRequest.page,
|
|
1272
|
+
"sortOrder": listPrivateEndpointsRequest.sortOrder,
|
|
1273
|
+
"sortBy": listPrivateEndpointsRequest.sortBy,
|
|
1274
|
+
"displayName": listPrivateEndpointsRequest.displayName
|
|
1275
|
+
};
|
|
1276
|
+
let headerParams = {
|
|
1277
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1278
|
+
"opc-request-id": listPrivateEndpointsRequest.opcRequestId
|
|
1279
|
+
};
|
|
1280
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1281
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
1282
|
+
if (this.logger)
|
|
1283
|
+
retrier.logger = this.logger;
|
|
1284
|
+
const request = yield oci_common_1.composeRequest({
|
|
1285
|
+
baseEndpoint: this._endpoint,
|
|
1286
|
+
defaultHeaders: this._defaultHeaders,
|
|
1287
|
+
path: "/privateEndpoints",
|
|
1288
|
+
method: "GET",
|
|
1289
|
+
pathParams: pathParams,
|
|
1290
|
+
headerParams: headerParams,
|
|
1291
|
+
queryParams: queryParams
|
|
1292
|
+
});
|
|
1293
|
+
try {
|
|
1294
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1295
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1296
|
+
responseObject: {},
|
|
1297
|
+
body: yield response.json(),
|
|
1298
|
+
bodyKey: "privateEndpointCollection",
|
|
1299
|
+
bodyModel: model.PrivateEndpointCollection,
|
|
1300
|
+
type: "model.PrivateEndpointCollection",
|
|
1301
|
+
responseHeaders: [
|
|
1302
|
+
{
|
|
1303
|
+
value: response.headers.get("opc-request-id"),
|
|
1304
|
+
key: "opcRequestId",
|
|
1305
|
+
dataType: "string"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
value: response.headers.get("opc-next-page"),
|
|
1309
|
+
key: "opcNextPage",
|
|
1310
|
+
dataType: "string"
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
});
|
|
1314
|
+
return sdkResponse;
|
|
1315
|
+
}
|
|
1316
|
+
catch (err) {
|
|
1317
|
+
throw err;
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* List of Sharded databases.
|
|
1323
|
+
*
|
|
1324
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1325
|
+
* @param ListShardedDatabasesRequest
|
|
1326
|
+
* @return ListShardedDatabasesResponse
|
|
1327
|
+
* @throws OciError when an error occurs
|
|
1328
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ListShardedDatabases.ts.html |here} to see how to use ListShardedDatabases API.
|
|
1329
|
+
*/
|
|
1330
|
+
listShardedDatabases(listShardedDatabasesRequest) {
|
|
1331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1332
|
+
if (this.logger)
|
|
1333
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#listShardedDatabases.");
|
|
1334
|
+
const operationName = "listShardedDatabases";
|
|
1335
|
+
const apiReferenceLink = "";
|
|
1336
|
+
const pathParams = {};
|
|
1337
|
+
const queryParams = {
|
|
1338
|
+
"compartmentId": listShardedDatabasesRequest.compartmentId,
|
|
1339
|
+
"lifecycleState": listShardedDatabasesRequest.lifecycleState,
|
|
1340
|
+
"limit": listShardedDatabasesRequest.limit,
|
|
1341
|
+
"page": listShardedDatabasesRequest.page,
|
|
1342
|
+
"sortOrder": listShardedDatabasesRequest.sortOrder,
|
|
1343
|
+
"sortBy": listShardedDatabasesRequest.sortBy,
|
|
1344
|
+
"displayName": listShardedDatabasesRequest.displayName
|
|
1345
|
+
};
|
|
1346
|
+
let headerParams = {
|
|
1347
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1348
|
+
"opc-request-id": listShardedDatabasesRequest.opcRequestId
|
|
1349
|
+
};
|
|
1350
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1351
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listShardedDatabasesRequest.retryConfiguration, specRetryConfiguration);
|
|
1352
|
+
if (this.logger)
|
|
1353
|
+
retrier.logger = this.logger;
|
|
1354
|
+
const request = yield oci_common_1.composeRequest({
|
|
1355
|
+
baseEndpoint: this._endpoint,
|
|
1356
|
+
defaultHeaders: this._defaultHeaders,
|
|
1357
|
+
path: "/shardedDatabases",
|
|
1358
|
+
method: "GET",
|
|
1359
|
+
pathParams: pathParams,
|
|
1360
|
+
headerParams: headerParams,
|
|
1361
|
+
queryParams: queryParams
|
|
1362
|
+
});
|
|
1363
|
+
try {
|
|
1364
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1365
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1366
|
+
responseObject: {},
|
|
1367
|
+
body: yield response.json(),
|
|
1368
|
+
bodyKey: "shardedDatabaseCollection",
|
|
1369
|
+
bodyModel: model.ShardedDatabaseCollection,
|
|
1370
|
+
type: "model.ShardedDatabaseCollection",
|
|
1371
|
+
responseHeaders: [
|
|
1372
|
+
{
|
|
1373
|
+
value: response.headers.get("opc-request-id"),
|
|
1374
|
+
key: "opcRequestId",
|
|
1375
|
+
dataType: "string"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
value: response.headers.get("opc-next-page"),
|
|
1379
|
+
key: "opcNextPage",
|
|
1380
|
+
dataType: "string"
|
|
1381
|
+
}
|
|
1382
|
+
]
|
|
1383
|
+
});
|
|
1384
|
+
return sdkResponse;
|
|
1385
|
+
}
|
|
1386
|
+
catch (err) {
|
|
1387
|
+
throw err;
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
1393
|
+
*
|
|
1394
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1395
|
+
* @param ListWorkRequestErrorsRequest
|
|
1396
|
+
* @return ListWorkRequestErrorsResponse
|
|
1397
|
+
* @throws OciError when an error occurs
|
|
1398
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1399
|
+
*/
|
|
1400
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
if (this.logger)
|
|
1403
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#listWorkRequestErrors.");
|
|
1404
|
+
const operationName = "listWorkRequestErrors";
|
|
1405
|
+
const apiReferenceLink = "";
|
|
1406
|
+
const pathParams = {
|
|
1407
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1408
|
+
};
|
|
1409
|
+
const queryParams = {
|
|
1410
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1411
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1412
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1413
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1414
|
+
};
|
|
1415
|
+
let headerParams = {
|
|
1416
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1417
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1418
|
+
};
|
|
1419
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1420
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1421
|
+
if (this.logger)
|
|
1422
|
+
retrier.logger = this.logger;
|
|
1423
|
+
const request = yield oci_common_1.composeRequest({
|
|
1424
|
+
baseEndpoint: this._endpoint,
|
|
1425
|
+
defaultHeaders: this._defaultHeaders,
|
|
1426
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1427
|
+
method: "GET",
|
|
1428
|
+
pathParams: pathParams,
|
|
1429
|
+
headerParams: headerParams,
|
|
1430
|
+
queryParams: queryParams
|
|
1431
|
+
});
|
|
1432
|
+
try {
|
|
1433
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1434
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1435
|
+
responseObject: {},
|
|
1436
|
+
body: yield response.json(),
|
|
1437
|
+
bodyKey: "workRequestErrorCollection",
|
|
1438
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1439
|
+
type: "model.WorkRequestErrorCollection",
|
|
1440
|
+
responseHeaders: [
|
|
1441
|
+
{
|
|
1442
|
+
value: response.headers.get("opc-next-page"),
|
|
1443
|
+
key: "opcNextPage",
|
|
1444
|
+
dataType: "string"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
value: response.headers.get("opc-request-id"),
|
|
1448
|
+
key: "opcRequestId",
|
|
1449
|
+
dataType: "string"
|
|
1450
|
+
}
|
|
1451
|
+
]
|
|
1452
|
+
});
|
|
1453
|
+
return sdkResponse;
|
|
1454
|
+
}
|
|
1455
|
+
catch (err) {
|
|
1456
|
+
throw err;
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
1462
|
+
*
|
|
1463
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1464
|
+
* @param ListWorkRequestLogsRequest
|
|
1465
|
+
* @return ListWorkRequestLogsResponse
|
|
1466
|
+
* @throws OciError when an error occurs
|
|
1467
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1468
|
+
*/
|
|
1469
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
if (this.logger)
|
|
1472
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#listWorkRequestLogs.");
|
|
1473
|
+
const operationName = "listWorkRequestLogs";
|
|
1474
|
+
const apiReferenceLink = "";
|
|
1475
|
+
const pathParams = {
|
|
1476
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1477
|
+
};
|
|
1478
|
+
const queryParams = {
|
|
1479
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1480
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1481
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1482
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1483
|
+
};
|
|
1484
|
+
let headerParams = {
|
|
1485
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1486
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1487
|
+
};
|
|
1488
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1489
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1490
|
+
if (this.logger)
|
|
1491
|
+
retrier.logger = this.logger;
|
|
1492
|
+
const request = yield oci_common_1.composeRequest({
|
|
1493
|
+
baseEndpoint: this._endpoint,
|
|
1494
|
+
defaultHeaders: this._defaultHeaders,
|
|
1495
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1496
|
+
method: "GET",
|
|
1497
|
+
pathParams: pathParams,
|
|
1498
|
+
headerParams: headerParams,
|
|
1499
|
+
queryParams: queryParams
|
|
1500
|
+
});
|
|
1501
|
+
try {
|
|
1502
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1503
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1504
|
+
responseObject: {},
|
|
1505
|
+
body: yield response.json(),
|
|
1506
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1507
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1508
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1509
|
+
responseHeaders: [
|
|
1510
|
+
{
|
|
1511
|
+
value: response.headers.get("opc-next-page"),
|
|
1512
|
+
key: "opcNextPage",
|
|
1513
|
+
dataType: "string"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
value: response.headers.get("opc-request-id"),
|
|
1517
|
+
key: "opcRequestId",
|
|
1518
|
+
dataType: "string"
|
|
1519
|
+
}
|
|
1520
|
+
]
|
|
1521
|
+
});
|
|
1522
|
+
return sdkResponse;
|
|
1523
|
+
}
|
|
1524
|
+
catch (err) {
|
|
1525
|
+
throw err;
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Lists the work requests in a compartment.
|
|
1531
|
+
*
|
|
1532
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1533
|
+
* @param ListWorkRequestsRequest
|
|
1534
|
+
* @return ListWorkRequestsResponse
|
|
1535
|
+
* @throws OciError when an error occurs
|
|
1536
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1537
|
+
*/
|
|
1538
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1540
|
+
if (this.logger)
|
|
1541
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#listWorkRequests.");
|
|
1542
|
+
const operationName = "listWorkRequests";
|
|
1543
|
+
const apiReferenceLink = "";
|
|
1544
|
+
const pathParams = {};
|
|
1545
|
+
const queryParams = {
|
|
1546
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1547
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1548
|
+
"status": listWorkRequestsRequest.status,
|
|
1549
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1550
|
+
"page": listWorkRequestsRequest.page,
|
|
1551
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1552
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1553
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1554
|
+
};
|
|
1555
|
+
let headerParams = {
|
|
1556
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1557
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1558
|
+
};
|
|
1559
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1560
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1561
|
+
if (this.logger)
|
|
1562
|
+
retrier.logger = this.logger;
|
|
1563
|
+
const request = yield oci_common_1.composeRequest({
|
|
1564
|
+
baseEndpoint: this._endpoint,
|
|
1565
|
+
defaultHeaders: this._defaultHeaders,
|
|
1566
|
+
path: "/workRequests",
|
|
1567
|
+
method: "GET",
|
|
1568
|
+
pathParams: pathParams,
|
|
1569
|
+
headerParams: headerParams,
|
|
1570
|
+
queryParams: queryParams
|
|
1571
|
+
});
|
|
1572
|
+
try {
|
|
1573
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1574
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1575
|
+
responseObject: {},
|
|
1576
|
+
body: yield response.json(),
|
|
1577
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1578
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1579
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1580
|
+
responseHeaders: [
|
|
1581
|
+
{
|
|
1582
|
+
value: response.headers.get("opc-request-id"),
|
|
1583
|
+
key: "opcRequestId",
|
|
1584
|
+
dataType: "string"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
value: response.headers.get("opc-next-page"),
|
|
1588
|
+
key: "opcNextPage",
|
|
1589
|
+
dataType: "string"
|
|
1590
|
+
}
|
|
1591
|
+
]
|
|
1592
|
+
});
|
|
1593
|
+
return sdkResponse;
|
|
1594
|
+
}
|
|
1595
|
+
catch (err) {
|
|
1596
|
+
throw err;
|
|
1597
|
+
}
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Patch operation to add, remove or update shards to the sharded database topology. In single patch
|
|
1602
|
+
* operation, multiple shards can be either added, or removed or updated. Combination of inserts, update
|
|
1603
|
+
* and remove in single operation is not allowed.
|
|
1604
|
+
*
|
|
1605
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1606
|
+
* @param PatchShardedDatabaseRequest
|
|
1607
|
+
* @return PatchShardedDatabaseResponse
|
|
1608
|
+
* @throws OciError when an error occurs
|
|
1609
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/PatchShardedDatabase.ts.html |here} to see how to use PatchShardedDatabase API.
|
|
1610
|
+
*/
|
|
1611
|
+
patchShardedDatabase(patchShardedDatabaseRequest) {
|
|
1612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1613
|
+
if (this.logger)
|
|
1614
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#patchShardedDatabase.");
|
|
1615
|
+
const operationName = "patchShardedDatabase";
|
|
1616
|
+
const apiReferenceLink = "";
|
|
1617
|
+
const pathParams = {
|
|
1618
|
+
"{shardedDatabaseId}": patchShardedDatabaseRequest.shardedDatabaseId
|
|
1619
|
+
};
|
|
1620
|
+
const queryParams = {};
|
|
1621
|
+
let headerParams = {
|
|
1622
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1623
|
+
"if-match": patchShardedDatabaseRequest.ifMatch,
|
|
1624
|
+
"opc-request-id": patchShardedDatabaseRequest.opcRequestId
|
|
1625
|
+
};
|
|
1626
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1627
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1628
|
+
if (this.logger)
|
|
1629
|
+
retrier.logger = this.logger;
|
|
1630
|
+
const request = yield oci_common_1.composeRequest({
|
|
1631
|
+
baseEndpoint: this._endpoint,
|
|
1632
|
+
defaultHeaders: this._defaultHeaders,
|
|
1633
|
+
path: "/shardedDatabases/{shardedDatabaseId}",
|
|
1634
|
+
method: "PATCH",
|
|
1635
|
+
bodyContent: common.ObjectSerializer.serialize(patchShardedDatabaseRequest.patchShardedDatabaseDetails, "PatchShardedDatabaseDetails", model.PatchShardedDatabaseDetails.getJsonObj),
|
|
1636
|
+
pathParams: pathParams,
|
|
1637
|
+
headerParams: headerParams,
|
|
1638
|
+
queryParams: queryParams
|
|
1639
|
+
});
|
|
1640
|
+
try {
|
|
1641
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1642
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1643
|
+
responseObject: {},
|
|
1644
|
+
responseHeaders: [
|
|
1645
|
+
{
|
|
1646
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1647
|
+
key: "opcWorkRequestId",
|
|
1648
|
+
dataType: "string"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
value: response.headers.get("opc-request-id"),
|
|
1652
|
+
key: "opcRequestId",
|
|
1653
|
+
dataType: "string"
|
|
1654
|
+
}
|
|
1655
|
+
]
|
|
1656
|
+
});
|
|
1657
|
+
return sdkResponse;
|
|
1658
|
+
}
|
|
1659
|
+
catch (err) {
|
|
1660
|
+
throw err;
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
* Sharded database pre-validation request.
|
|
1666
|
+
*
|
|
1667
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1668
|
+
* @param PrevalidateShardedDatabaseRequest
|
|
1669
|
+
* @return PrevalidateShardedDatabaseResponse
|
|
1670
|
+
* @throws OciError when an error occurs
|
|
1671
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/PrevalidateShardedDatabase.ts.html |here} to see how to use PrevalidateShardedDatabase API.
|
|
1672
|
+
*/
|
|
1673
|
+
prevalidateShardedDatabase(prevalidateShardedDatabaseRequest) {
|
|
1674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1675
|
+
if (this.logger)
|
|
1676
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#prevalidateShardedDatabase.");
|
|
1677
|
+
const operationName = "prevalidateShardedDatabase";
|
|
1678
|
+
const apiReferenceLink = "";
|
|
1679
|
+
const pathParams = {};
|
|
1680
|
+
const queryParams = {
|
|
1681
|
+
"compartmentId": prevalidateShardedDatabaseRequest.compartmentId
|
|
1682
|
+
};
|
|
1683
|
+
let headerParams = {
|
|
1684
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1685
|
+
"opc-retry-token": prevalidateShardedDatabaseRequest.opcRetryToken,
|
|
1686
|
+
"opc-request-id": prevalidateShardedDatabaseRequest.opcRequestId
|
|
1687
|
+
};
|
|
1688
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1689
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, prevalidateShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1690
|
+
if (this.logger)
|
|
1691
|
+
retrier.logger = this.logger;
|
|
1692
|
+
const request = yield oci_common_1.composeRequest({
|
|
1693
|
+
baseEndpoint: this._endpoint,
|
|
1694
|
+
defaultHeaders: this._defaultHeaders,
|
|
1695
|
+
path: "/shardedDatabases/actions/prevalidate",
|
|
1696
|
+
method: "POST",
|
|
1697
|
+
bodyContent: common.ObjectSerializer.serialize(prevalidateShardedDatabaseRequest.prevalidateShardedDatabaseDetails, "PrevalidateShardedDatabaseDetails", model.PrevalidateShardedDatabaseDetails.getJsonObj),
|
|
1698
|
+
pathParams: pathParams,
|
|
1699
|
+
headerParams: headerParams,
|
|
1700
|
+
queryParams: queryParams
|
|
1701
|
+
});
|
|
1702
|
+
try {
|
|
1703
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1704
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1705
|
+
responseObject: {},
|
|
1706
|
+
body: yield response.json(),
|
|
1707
|
+
bodyKey: "prevalidateShardedDatabaseResult",
|
|
1708
|
+
bodyModel: model.PrevalidateShardedDatabaseResult,
|
|
1709
|
+
type: "model.PrevalidateShardedDatabaseResult",
|
|
1710
|
+
responseHeaders: [
|
|
1711
|
+
{
|
|
1712
|
+
value: response.headers.get("opc-request-id"),
|
|
1713
|
+
key: "opcRequestId",
|
|
1714
|
+
dataType: "string"
|
|
1715
|
+
}
|
|
1716
|
+
]
|
|
1717
|
+
});
|
|
1718
|
+
return sdkResponse;
|
|
1719
|
+
}
|
|
1720
|
+
catch (err) {
|
|
1721
|
+
throw err;
|
|
1722
|
+
}
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Start the shards, catalog and GSMs of Sharded Database.
|
|
1727
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1728
|
+
* @param StartShardedDatabaseRequest
|
|
1729
|
+
* @return StartShardedDatabaseResponse
|
|
1730
|
+
* @throws OciError when an error occurs
|
|
1731
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/StartShardedDatabase.ts.html |here} to see how to use StartShardedDatabase API.
|
|
1732
|
+
*/
|
|
1733
|
+
startShardedDatabase(startShardedDatabaseRequest) {
|
|
1734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1735
|
+
if (this.logger)
|
|
1736
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#startShardedDatabase.");
|
|
1737
|
+
const operationName = "startShardedDatabase";
|
|
1738
|
+
const apiReferenceLink = "";
|
|
1739
|
+
const pathParams = {
|
|
1740
|
+
"{shardedDatabaseId}": startShardedDatabaseRequest.shardedDatabaseId
|
|
1741
|
+
};
|
|
1742
|
+
const queryParams = {};
|
|
1743
|
+
let headerParams = {
|
|
1744
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1745
|
+
"opc-retry-token": startShardedDatabaseRequest.opcRetryToken,
|
|
1746
|
+
"opc-request-id": startShardedDatabaseRequest.opcRequestId,
|
|
1747
|
+
"if-match": startShardedDatabaseRequest.ifMatch
|
|
1748
|
+
};
|
|
1749
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1750
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1751
|
+
if (this.logger)
|
|
1752
|
+
retrier.logger = this.logger;
|
|
1753
|
+
const request = yield oci_common_1.composeRequest({
|
|
1754
|
+
baseEndpoint: this._endpoint,
|
|
1755
|
+
defaultHeaders: this._defaultHeaders,
|
|
1756
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/startDatabase",
|
|
1757
|
+
method: "POST",
|
|
1758
|
+
pathParams: pathParams,
|
|
1759
|
+
headerParams: headerParams,
|
|
1760
|
+
queryParams: queryParams
|
|
1761
|
+
});
|
|
1762
|
+
try {
|
|
1763
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1764
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1765
|
+
responseObject: {},
|
|
1766
|
+
responseHeaders: [
|
|
1767
|
+
{
|
|
1768
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1769
|
+
key: "opcWorkRequestId",
|
|
1770
|
+
dataType: "string"
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
value: response.headers.get("opc-request-id"),
|
|
1774
|
+
key: "opcRequestId",
|
|
1775
|
+
dataType: "string"
|
|
1776
|
+
}
|
|
1777
|
+
]
|
|
1778
|
+
});
|
|
1779
|
+
return sdkResponse;
|
|
1780
|
+
}
|
|
1781
|
+
catch (err) {
|
|
1782
|
+
throw err;
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Stop the shards, catalog and GSM instances for the sharded database.
|
|
1788
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1789
|
+
* @param StopShardedDatabaseRequest
|
|
1790
|
+
* @return StopShardedDatabaseResponse
|
|
1791
|
+
* @throws OciError when an error occurs
|
|
1792
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/StopShardedDatabase.ts.html |here} to see how to use StopShardedDatabase API.
|
|
1793
|
+
*/
|
|
1794
|
+
stopShardedDatabase(stopShardedDatabaseRequest) {
|
|
1795
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1796
|
+
if (this.logger)
|
|
1797
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#stopShardedDatabase.");
|
|
1798
|
+
const operationName = "stopShardedDatabase";
|
|
1799
|
+
const apiReferenceLink = "";
|
|
1800
|
+
const pathParams = {
|
|
1801
|
+
"{shardedDatabaseId}": stopShardedDatabaseRequest.shardedDatabaseId
|
|
1802
|
+
};
|
|
1803
|
+
const queryParams = {};
|
|
1804
|
+
let headerParams = {
|
|
1805
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1806
|
+
"opc-retry-token": stopShardedDatabaseRequest.opcRetryToken,
|
|
1807
|
+
"opc-request-id": stopShardedDatabaseRequest.opcRequestId,
|
|
1808
|
+
"if-match": stopShardedDatabaseRequest.ifMatch
|
|
1809
|
+
};
|
|
1810
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1811
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1812
|
+
if (this.logger)
|
|
1813
|
+
retrier.logger = this.logger;
|
|
1814
|
+
const request = yield oci_common_1.composeRequest({
|
|
1815
|
+
baseEndpoint: this._endpoint,
|
|
1816
|
+
defaultHeaders: this._defaultHeaders,
|
|
1817
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/stopDatabase",
|
|
1818
|
+
method: "POST",
|
|
1819
|
+
pathParams: pathParams,
|
|
1820
|
+
headerParams: headerParams,
|
|
1821
|
+
queryParams: queryParams
|
|
1822
|
+
});
|
|
1823
|
+
try {
|
|
1824
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1825
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1826
|
+
responseObject: {},
|
|
1827
|
+
responseHeaders: [
|
|
1828
|
+
{
|
|
1829
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1830
|
+
key: "opcWorkRequestId",
|
|
1831
|
+
dataType: "string"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
value: response.headers.get("opc-request-id"),
|
|
1835
|
+
key: "opcRequestId",
|
|
1836
|
+
dataType: "string"
|
|
1837
|
+
}
|
|
1838
|
+
]
|
|
1839
|
+
});
|
|
1840
|
+
return sdkResponse;
|
|
1841
|
+
}
|
|
1842
|
+
catch (err) {
|
|
1843
|
+
throw err;
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Updates the configuration of privateendpoint.
|
|
1849
|
+
*
|
|
1850
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1851
|
+
* @param UpdatePrivateEndpointRequest
|
|
1852
|
+
* @return UpdatePrivateEndpointResponse
|
|
1853
|
+
* @throws OciError when an error occurs
|
|
1854
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/UpdatePrivateEndpoint.ts.html |here} to see how to use UpdatePrivateEndpoint API.
|
|
1855
|
+
*/
|
|
1856
|
+
updatePrivateEndpoint(updatePrivateEndpointRequest) {
|
|
1857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1858
|
+
if (this.logger)
|
|
1859
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#updatePrivateEndpoint.");
|
|
1860
|
+
const operationName = "updatePrivateEndpoint";
|
|
1861
|
+
const apiReferenceLink = "";
|
|
1862
|
+
const pathParams = {
|
|
1863
|
+
"{privateEndpointId}": updatePrivateEndpointRequest.privateEndpointId
|
|
1864
|
+
};
|
|
1865
|
+
const queryParams = {};
|
|
1866
|
+
let headerParams = {
|
|
1867
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1868
|
+
"opc-retry-token": updatePrivateEndpointRequest.opcRetryToken,
|
|
1869
|
+
"opc-request-id": updatePrivateEndpointRequest.opcRequestId,
|
|
1870
|
+
"if-match": updatePrivateEndpointRequest.ifMatch
|
|
1871
|
+
};
|
|
1872
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1873
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updatePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1874
|
+
if (this.logger)
|
|
1875
|
+
retrier.logger = this.logger;
|
|
1876
|
+
const request = yield oci_common_1.composeRequest({
|
|
1877
|
+
baseEndpoint: this._endpoint,
|
|
1878
|
+
defaultHeaders: this._defaultHeaders,
|
|
1879
|
+
path: "/privateEndpoints/{privateEndpointId}",
|
|
1880
|
+
method: "PUT",
|
|
1881
|
+
bodyContent: common.ObjectSerializer.serialize(updatePrivateEndpointRequest.updatePrivateEndpointDetails, "UpdatePrivateEndpointDetails", model.UpdatePrivateEndpointDetails.getJsonObj),
|
|
1882
|
+
pathParams: pathParams,
|
|
1883
|
+
headerParams: headerParams,
|
|
1884
|
+
queryParams: queryParams
|
|
1885
|
+
});
|
|
1886
|
+
try {
|
|
1887
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1888
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1889
|
+
responseObject: {},
|
|
1890
|
+
body: yield response.json(),
|
|
1891
|
+
bodyKey: "privateEndpoint",
|
|
1892
|
+
bodyModel: model.PrivateEndpoint,
|
|
1893
|
+
type: "model.PrivateEndpoint",
|
|
1894
|
+
responseHeaders: [
|
|
1895
|
+
{
|
|
1896
|
+
value: response.headers.get("opc-request-id"),
|
|
1897
|
+
key: "opcRequestId",
|
|
1898
|
+
dataType: "string"
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
value: response.headers.get("etag"),
|
|
1902
|
+
key: "etag",
|
|
1903
|
+
dataType: "string"
|
|
1904
|
+
}
|
|
1905
|
+
]
|
|
1906
|
+
});
|
|
1907
|
+
return sdkResponse;
|
|
1908
|
+
}
|
|
1909
|
+
catch (err) {
|
|
1910
|
+
throw err;
|
|
1911
|
+
}
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* Updates the configuration of sharded database.
|
|
1916
|
+
*
|
|
1917
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1918
|
+
* @param UpdateShardedDatabaseRequest
|
|
1919
|
+
* @return UpdateShardedDatabaseResponse
|
|
1920
|
+
* @throws OciError when an error occurs
|
|
1921
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/UpdateShardedDatabase.ts.html |here} to see how to use UpdateShardedDatabase API.
|
|
1922
|
+
*/
|
|
1923
|
+
updateShardedDatabase(updateShardedDatabaseRequest) {
|
|
1924
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1925
|
+
if (this.logger)
|
|
1926
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#updateShardedDatabase.");
|
|
1927
|
+
const operationName = "updateShardedDatabase";
|
|
1928
|
+
const apiReferenceLink = "";
|
|
1929
|
+
const pathParams = {
|
|
1930
|
+
"{shardedDatabaseId}": updateShardedDatabaseRequest.shardedDatabaseId
|
|
1931
|
+
};
|
|
1932
|
+
const queryParams = {};
|
|
1933
|
+
let headerParams = {
|
|
1934
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1935
|
+
"opc-request-id": updateShardedDatabaseRequest.opcRequestId,
|
|
1936
|
+
"if-match": updateShardedDatabaseRequest.ifMatch
|
|
1937
|
+
};
|
|
1938
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1939
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateShardedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1940
|
+
if (this.logger)
|
|
1941
|
+
retrier.logger = this.logger;
|
|
1942
|
+
const request = yield oci_common_1.composeRequest({
|
|
1943
|
+
baseEndpoint: this._endpoint,
|
|
1944
|
+
defaultHeaders: this._defaultHeaders,
|
|
1945
|
+
path: "/shardedDatabases/{shardedDatabaseId}",
|
|
1946
|
+
method: "PUT",
|
|
1947
|
+
bodyContent: common.ObjectSerializer.serialize(updateShardedDatabaseRequest.updateShardedDatabaseDetails, "UpdateShardedDatabaseDetails", model.UpdateShardedDatabaseDetails.getJsonObj),
|
|
1948
|
+
pathParams: pathParams,
|
|
1949
|
+
headerParams: headerParams,
|
|
1950
|
+
queryParams: queryParams
|
|
1951
|
+
});
|
|
1952
|
+
try {
|
|
1953
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1954
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1955
|
+
responseObject: {},
|
|
1956
|
+
body: yield response.json(),
|
|
1957
|
+
bodyKey: "shardedDatabase",
|
|
1958
|
+
bodyModel: model.ShardedDatabase,
|
|
1959
|
+
type: "model.ShardedDatabase",
|
|
1960
|
+
responseHeaders: [
|
|
1961
|
+
{
|
|
1962
|
+
value: response.headers.get("opc-request-id"),
|
|
1963
|
+
key: "opcRequestId",
|
|
1964
|
+
dataType: "string"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
value: response.headers.get("etag"),
|
|
1968
|
+
key: "etag",
|
|
1969
|
+
dataType: "string"
|
|
1970
|
+
}
|
|
1971
|
+
]
|
|
1972
|
+
});
|
|
1973
|
+
return sdkResponse;
|
|
1974
|
+
}
|
|
1975
|
+
catch (err) {
|
|
1976
|
+
throw err;
|
|
1977
|
+
}
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances of the
|
|
1982
|
+
* sharded database. Customer shall provide the CA signed certificate key details by adding the certificate
|
|
1983
|
+
* in request body.
|
|
1984
|
+
*
|
|
1985
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1986
|
+
* @param UploadSignedCertificateAndGenerateWalletRequest
|
|
1987
|
+
* @return UploadSignedCertificateAndGenerateWalletResponse
|
|
1988
|
+
* @throws OciError when an error occurs
|
|
1989
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/UploadSignedCertificateAndGenerateWallet.ts.html |here} to see how to use UploadSignedCertificateAndGenerateWallet API.
|
|
1990
|
+
*/
|
|
1991
|
+
uploadSignedCertificateAndGenerateWallet(uploadSignedCertificateAndGenerateWalletRequest) {
|
|
1992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1993
|
+
if (this.logger)
|
|
1994
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#uploadSignedCertificateAndGenerateWallet.");
|
|
1995
|
+
const operationName = "uploadSignedCertificateAndGenerateWallet";
|
|
1996
|
+
const apiReferenceLink = "";
|
|
1997
|
+
const pathParams = {
|
|
1998
|
+
"{shardedDatabaseId}": uploadSignedCertificateAndGenerateWalletRequest.shardedDatabaseId
|
|
1999
|
+
};
|
|
2000
|
+
const queryParams = {};
|
|
2001
|
+
let headerParams = {
|
|
2002
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2003
|
+
"opc-request-id": uploadSignedCertificateAndGenerateWalletRequest.opcRequestId,
|
|
2004
|
+
"if-match": uploadSignedCertificateAndGenerateWalletRequest.ifMatch,
|
|
2005
|
+
"opc-retry-token": uploadSignedCertificateAndGenerateWalletRequest.opcRetryToken
|
|
2006
|
+
};
|
|
2007
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2008
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadSignedCertificateAndGenerateWalletRequest.retryConfiguration, specRetryConfiguration);
|
|
2009
|
+
if (this.logger)
|
|
2010
|
+
retrier.logger = this.logger;
|
|
2011
|
+
const request = yield oci_common_1.composeRequest({
|
|
2012
|
+
baseEndpoint: this._endpoint,
|
|
2013
|
+
defaultHeaders: this._defaultHeaders,
|
|
2014
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/uploadSignedCertificateAndGenerateWallet",
|
|
2015
|
+
method: "POST",
|
|
2016
|
+
bodyContent: common.ObjectSerializer.serialize(uploadSignedCertificateAndGenerateWalletRequest.uploadSignedCertificateAndGenerateWalletDetails, "UploadSignedCertificateAndGenerateWalletDetails", model.UploadSignedCertificateAndGenerateWalletDetails.getJsonObj),
|
|
2017
|
+
pathParams: pathParams,
|
|
2018
|
+
headerParams: headerParams,
|
|
2019
|
+
queryParams: queryParams
|
|
2020
|
+
});
|
|
2021
|
+
try {
|
|
2022
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2023
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2024
|
+
responseObject: {},
|
|
2025
|
+
responseHeaders: [
|
|
2026
|
+
{
|
|
2027
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2028
|
+
key: "opcWorkRequestId",
|
|
2029
|
+
dataType: "string"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
value: response.headers.get("opc-request-id"),
|
|
2033
|
+
key: "opcRequestId",
|
|
2034
|
+
dataType: "string"
|
|
2035
|
+
}
|
|
2036
|
+
]
|
|
2037
|
+
});
|
|
2038
|
+
return sdkResponse;
|
|
2039
|
+
}
|
|
2040
|
+
catch (err) {
|
|
2041
|
+
throw err;
|
|
2042
|
+
}
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* Validate the network connectivity between components of sharded database.
|
|
2047
|
+
*
|
|
2048
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2049
|
+
* @param ValidateNetworkRequest
|
|
2050
|
+
* @return ValidateNetworkResponse
|
|
2051
|
+
* @throws OciError when an error occurs
|
|
2052
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/globallydistributeddatabase/ValidateNetwork.ts.html |here} to see how to use ValidateNetwork API.
|
|
2053
|
+
*/
|
|
2054
|
+
validateNetwork(validateNetworkRequest) {
|
|
2055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2056
|
+
if (this.logger)
|
|
2057
|
+
this.logger.debug("Calling operation ShardedDatabaseServiceClient#validateNetwork.");
|
|
2058
|
+
const operationName = "validateNetwork";
|
|
2059
|
+
const apiReferenceLink = "";
|
|
2060
|
+
const pathParams = {
|
|
2061
|
+
"{shardedDatabaseId}": validateNetworkRequest.shardedDatabaseId
|
|
2062
|
+
};
|
|
2063
|
+
const queryParams = {
|
|
2064
|
+
"isSurrogate": validateNetworkRequest.isSurrogate,
|
|
2065
|
+
"resourceName": validateNetworkRequest.resourceName,
|
|
2066
|
+
"isPrimary": validateNetworkRequest.isPrimary
|
|
2067
|
+
};
|
|
2068
|
+
let headerParams = {
|
|
2069
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2070
|
+
"if-match": validateNetworkRequest.ifMatch,
|
|
2071
|
+
"opc-retry-token": validateNetworkRequest.opcRetryToken,
|
|
2072
|
+
"opc-request-id": validateNetworkRequest.opcRequestId
|
|
2073
|
+
};
|
|
2074
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2075
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateNetworkRequest.retryConfiguration, specRetryConfiguration);
|
|
2076
|
+
if (this.logger)
|
|
2077
|
+
retrier.logger = this.logger;
|
|
2078
|
+
const request = yield oci_common_1.composeRequest({
|
|
2079
|
+
baseEndpoint: this._endpoint,
|
|
2080
|
+
defaultHeaders: this._defaultHeaders,
|
|
2081
|
+
path: "/shardedDatabases/{shardedDatabaseId}/actions/validateNetwork",
|
|
2082
|
+
method: "POST",
|
|
2083
|
+
pathParams: pathParams,
|
|
2084
|
+
headerParams: headerParams,
|
|
2085
|
+
queryParams: queryParams
|
|
2086
|
+
});
|
|
2087
|
+
try {
|
|
2088
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2089
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2090
|
+
responseObject: {},
|
|
2091
|
+
responseHeaders: [
|
|
2092
|
+
{
|
|
2093
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2094
|
+
key: "opcWorkRequestId",
|
|
2095
|
+
dataType: "string"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
value: response.headers.get("opc-request-id"),
|
|
2099
|
+
key: "opcRequestId",
|
|
2100
|
+
dataType: "string"
|
|
2101
|
+
}
|
|
2102
|
+
]
|
|
2103
|
+
});
|
|
2104
|
+
return sdkResponse;
|
|
2105
|
+
}
|
|
2106
|
+
catch (err) {
|
|
2107
|
+
throw err;
|
|
2108
|
+
}
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
exports.ShardedDatabaseServiceClient = ShardedDatabaseServiceClient;
|
|
2113
|
+
ShardedDatabaseServiceClient.serviceEndpointTemplate = "https://globaldb.{region}.oci.{secondLevelDomain}";
|
|
2114
|
+
ShardedDatabaseServiceClient.endpointServiceName = "";
|
|
2115
|
+
//# sourceMappingURL=client.js.map
|