oci-psql 2.74.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 +391 -0
- package/lib/client.js +2323 -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/backup-collection.d.ts +26 -0
- package/lib/model/backup-collection.js +61 -0
- package/lib/model/backup-collection.js.map +1 -0
- package/lib/model/backup-policy.d.ts +26 -0
- package/lib/model/backup-policy.js +80 -0
- package/lib/model/backup-policy.js.map +1 -0
- package/lib/model/backup-source-details.d.ts +33 -0
- package/lib/model/backup-source-details.js +52 -0
- package/lib/model/backup-source-details.js.map +1 -0
- package/lib/model/backup-summary.d.ts +93 -0
- package/lib/model/backup-summary.js +29 -0
- package/lib/model/backup-summary.js.map +1 -0
- package/lib/model/backup.d.ts +128 -0
- package/lib/model/backup.js +80 -0
- package/lib/model/backup.js.map +1 -0
- package/lib/model/change-backup-compartment-details.d.ts +27 -0
- package/lib/model/change-backup-compartment-details.js +29 -0
- package/lib/model/change-backup-compartment-details.js.map +1 -0
- package/lib/model/change-configuration-compartment-details.d.ts +27 -0
- package/lib/model/change-configuration-compartment-details.js +29 -0
- package/lib/model/change-configuration-compartment-details.js.map +1 -0
- package/lib/model/change-db-system-compartment-details.d.ts +27 -0
- package/lib/model/change-db-system-compartment-details.js +29 -0
- package/lib/model/change-db-system-compartment-details.js.map +1 -0
- package/lib/model/config-overrides.d.ts +29 -0
- package/lib/model/config-overrides.js +29 -0
- package/lib/model/config-overrides.js.map +1 -0
- package/lib/model/config-params.d.ts +53 -0
- package/lib/model/config-params.js +29 -0
- package/lib/model/config-params.js.map +1 -0
- package/lib/model/configuration-collection.d.ts +26 -0
- package/lib/model/configuration-collection.js +61 -0
- package/lib/model/configuration-collection.js.map +1 -0
- package/lib/model/configuration-details.d.ts +26 -0
- package/lib/model/configuration-details.js +61 -0
- package/lib/model/configuration-details.js.map +1 -0
- package/lib/model/configuration-summary.d.ts +91 -0
- package/lib/model/configuration-summary.js +29 -0
- package/lib/model/configuration-summary.js.map +1 -0
- package/lib/model/configuration.d.ts +108 -0
- package/lib/model/configuration.js +69 -0
- package/lib/model/configuration.js.map +1 -0
- package/lib/model/connection-details.d.ts +35 -0
- package/lib/model/connection-details.js +67 -0
- package/lib/model/connection-details.js.map +1 -0
- package/lib/model/create-backup-details.d.ts +59 -0
- package/lib/model/create-backup-details.js +29 -0
- package/lib/model/create-backup-details.js.map +1 -0
- package/lib/model/create-configuration-details.d.ts +81 -0
- package/lib/model/create-configuration-details.js +57 -0
- package/lib/model/create-configuration-details.js.map +1 -0
- package/lib/model/create-db-instance-details.d.ts +35 -0
- package/lib/model/create-db-instance-details.js +29 -0
- package/lib/model/create-db-instance-details.js.map +1 -0
- package/lib/model/create-db-system-details.d.ts +92 -0
- package/lib/model/create-db-system-details.js +85 -0
- package/lib/model/create-db-system-details.js.map +1 -0
- package/lib/model/credentials.d.ts +29 -0
- package/lib/model/credentials.js +57 -0
- package/lib/model/credentials.js.map +1 -0
- package/lib/model/daily-backup-policy.d.ts +28 -0
- package/lib/model/daily-backup-policy.js +52 -0
- package/lib/model/daily-backup-policy.js.map +1 -0
- package/lib/model/db-configuration-override-collection.d.ts +26 -0
- package/lib/model/db-configuration-override-collection.js +61 -0
- package/lib/model/db-configuration-override-collection.js.map +1 -0
- package/lib/model/db-instance-endpoint.d.ts +27 -0
- package/lib/model/db-instance-endpoint.js +53 -0
- package/lib/model/db-instance-endpoint.js.map +1 -0
- package/lib/model/db-instance.d.ts +67 -0
- package/lib/model/db-instance.js +44 -0
- package/lib/model/db-instance.js.map +1 -0
- package/lib/model/db-system-collection.d.ts +26 -0
- package/lib/model/db-system-collection.js +61 -0
- package/lib/model/db-system-collection.js.map +1 -0
- package/lib/model/db-system-details.d.ts +29 -0
- package/lib/model/db-system-details.js +29 -0
- package/lib/model/db-system-details.js.map +1 -0
- package/lib/model/db-system-summary.d.ts +105 -0
- package/lib/model/db-system-summary.js +29 -0
- package/lib/model/db-system-summary.js.map +1 -0
- package/lib/model/db-system.d.ts +145 -0
- package/lib/model/db-system.js +106 -0
- package/lib/model/db-system.js.map +1 -0
- package/lib/model/default-config-params.d.ts +49 -0
- package/lib/model/default-config-params.js +29 -0
- package/lib/model/default-config-params.js.map +1 -0
- package/lib/model/default-configuration-collection.d.ts +26 -0
- package/lib/model/default-configuration-collection.js +61 -0
- package/lib/model/default-configuration-collection.js.map +1 -0
- package/lib/model/default-configuration-details.d.ts +26 -0
- package/lib/model/default-configuration-details.js +61 -0
- package/lib/model/default-configuration-details.js.map +1 -0
- package/lib/model/default-configuration-summary.d.ts +59 -0
- package/lib/model/default-configuration-summary.js +29 -0
- package/lib/model/default-configuration-summary.js.map +1 -0
- package/lib/model/default-configuration.d.ts +77 -0
- package/lib/model/default-configuration.js +70 -0
- package/lib/model/default-configuration.js.map +1 -0
- package/lib/model/endpoint.d.ts +33 -0
- package/lib/model/endpoint.js +29 -0
- package/lib/model/endpoint.js.map +1 -0
- package/lib/model/failover-db-system-details.d.ts +33 -0
- package/lib/model/failover-db-system-details.js +29 -0
- package/lib/model/failover-db-system-details.js.map +1 -0
- package/lib/model/index.d.ts +176 -0
- package/lib/model/index.js +200 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/management-policy-details.d.ts +28 -0
- package/lib/model/management-policy-details.js +57 -0
- package/lib/model/management-policy-details.js.map +1 -0
- package/lib/model/management-policy.d.ts +28 -0
- package/lib/model/management-policy.js +57 -0
- package/lib/model/management-policy.js.map +1 -0
- package/lib/model/monthly-backup-policy.d.ts +34 -0
- package/lib/model/monthly-backup-policy.js +52 -0
- package/lib/model/monthly-backup-policy.js.map +1 -0
- package/lib/model/network-details.d.ts +35 -0
- package/lib/model/network-details.js +29 -0
- package/lib/model/network-details.js.map +1 -0
- package/lib/model/none-backup-policy.d.ts +24 -0
- package/lib/model/none-backup-policy.js +52 -0
- package/lib/model/none-backup-policy.js.map +1 -0
- package/lib/model/none-source-details.d.ts +25 -0
- package/lib/model/none-source-details.js +52 -0
- package/lib/model/none-source-details.js.map +1 -0
- package/lib/model/oci-optimized-storage-details.d.ts +28 -0
- package/lib/model/oci-optimized-storage-details.js +54 -0
- package/lib/model/oci-optimized-storage-details.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 +34 -0
- package/lib/model/operation-type.js +45 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/password-details.d.ts +24 -0
- package/lib/model/password-details.js +72 -0
- package/lib/model/password-details.js.map +1 -0
- package/lib/model/patch-db-system-details.d.ts +29 -0
- package/lib/model/patch-db-system-details.js +61 -0
- package/lib/model/patch-db-system-details.js.map +1 -0
- package/lib/model/patch-insert-instruction.d.ts +44 -0
- package/lib/model/patch-insert-instruction.js +59 -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 +92 -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-move-instruction.d.ts +44 -0
- package/lib/model/patch-move-instruction.js +58 -0
- package/lib/model/patch-move-instruction.js.map +1 -0
- package/lib/model/patch-prohibit-instruction.d.ts +35 -0
- package/lib/model/patch-prohibit-instruction.js +54 -0
- package/lib/model/patch-prohibit-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-replace-instruction.d.ts +32 -0
- package/lib/model/patch-replace-instruction.js +54 -0
- package/lib/model/patch-replace-instruction.js.map +1 -0
- package/lib/model/patch-require-instruction.d.ts +34 -0
- package/lib/model/patch-require-instruction.js +54 -0
- package/lib/model/patch-require-instruction.js.map +1 -0
- package/lib/model/plain-text-password-details.d.ts +28 -0
- package/lib/model/plain-text-password-details.js +54 -0
- package/lib/model/plain-text-password-details.js.map +1 -0
- package/lib/model/primary-db-instance-details.d.ts +25 -0
- package/lib/model/primary-db-instance-details.js +29 -0
- package/lib/model/primary-db-instance-details.js.map +1 -0
- package/lib/model/reset-master-user-password-details.d.ts +25 -0
- package/lib/model/reset-master-user-password-details.js +57 -0
- package/lib/model/reset-master-user-password-details.js.map +1 -0
- package/lib/model/restart-db-instance-in-db-system-details.d.ts +33 -0
- package/lib/model/restart-db-instance-in-db-system-details.js +34 -0
- package/lib/model/restart-db-instance-in-db-system-details.js.map +1 -0
- package/lib/model/restore-db-system-details.d.ts +31 -0
- package/lib/model/restore-db-system-details.js +29 -0
- package/lib/model/restore-db-system-details.js.map +1 -0
- package/lib/model/shape-collection.d.ts +26 -0
- package/lib/model/shape-collection.js +61 -0
- package/lib/model/shape-collection.js.map +1 -0
- package/lib/model/shape-summary.d.ts +37 -0
- package/lib/model/shape-summary.js +29 -0
- package/lib/model/shape-summary.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/source-details.d.ts +22 -0
- package/lib/model/source-details.js +72 -0
- package/lib/model/source-details.js.map +1 -0
- package/lib/model/storage-details.d.ts +37 -0
- package/lib/model/storage-details.js +68 -0
- package/lib/model/storage-details.js.map +1 -0
- package/lib/model/update-backup-details.d.ts +51 -0
- package/lib/model/update-backup-details.js +29 -0
- package/lib/model/update-backup-details.js.map +1 -0
- package/lib/model/update-configuration-details.d.ts +29 -0
- package/lib/model/update-configuration-details.js +29 -0
- package/lib/model/update-configuration-details.js.map +1 -0
- package/lib/model/update-db-config-params.d.ts +35 -0
- package/lib/model/update-db-config-params.js +34 -0
- package/lib/model/update-db-config-params.js.map +1 -0
- package/lib/model/update-db-system-db-instance-details.d.ts +29 -0
- package/lib/model/update-db-system-db-instance-details.js +29 -0
- package/lib/model/update-db-system-db-instance-details.js.map +1 -0
- package/lib/model/update-db-system-details.d.ts +51 -0
- package/lib/model/update-db-system-details.js +69 -0
- package/lib/model/update-db-system-details.js.map +1 -0
- package/lib/model/update-storage-details-params.d.ts +27 -0
- package/lib/model/update-storage-details-params.js +29 -0
- package/lib/model/update-storage-details-params.js.map +1 -0
- package/lib/model/vault-secret-password-details.d.ts +32 -0
- package/lib/model/vault-secret-password-details.js +54 -0
- package/lib/model/vault-secret-password-details.js.map +1 -0
- package/lib/model/weekly-backup-policy.d.ts +46 -0
- package/lib/model/weekly-backup-policy.js +67 -0
- package/lib/model/weekly-backup-policy.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 +45 -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 +64 -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 +64 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/postgresql-waiter.d.ts +60 -0
- package/lib/postgresql-waiter.js +112 -0
- package/lib/postgresql-waiter.js.map +1 -0
- package/lib/request/change-backup-compartment-request.d.ts +41 -0
- package/lib/request/change-backup-compartment-request.js +15 -0
- package/lib/request/change-backup-compartment-request.js.map +1 -0
- package/lib/request/change-configuration-compartment-request.d.ts +41 -0
- package/lib/request/change-configuration-compartment-request.js +15 -0
- package/lib/request/change-configuration-compartment-request.js.map +1 -0
- package/lib/request/change-db-system-compartment-request.d.ts +41 -0
- package/lib/request/change-db-system-compartment-request.js +15 -0
- package/lib/request/change-db-system-compartment-request.js.map +1 -0
- package/lib/request/create-backup-request.d.ts +32 -0
- package/lib/request/create-backup-request.js +15 -0
- package/lib/request/create-backup-request.js.map +1 -0
- package/lib/request/create-configuration-request.d.ts +32 -0
- package/lib/request/create-configuration-request.js +15 -0
- package/lib/request/create-configuration-request.js.map +1 -0
- package/lib/request/create-db-system-request.d.ts +32 -0
- package/lib/request/create-db-system-request.js +15 -0
- package/lib/request/create-db-system-request.js.map +1 -0
- package/lib/request/delete-backup-request.d.ts +31 -0
- package/lib/request/delete-backup-request.js +15 -0
- package/lib/request/delete-backup-request.js.map +1 -0
- package/lib/request/delete-configuration-request.d.ts +31 -0
- package/lib/request/delete-configuration-request.js +15 -0
- package/lib/request/delete-configuration-request.js.map +1 -0
- package/lib/request/delete-db-system-request.d.ts +31 -0
- package/lib/request/delete-db-system-request.js +15 -0
- package/lib/request/delete-db-system-request.js.map +1 -0
- package/lib/request/failover-db-system-request.d.ts +41 -0
- package/lib/request/failover-db-system-request.js +15 -0
- package/lib/request/failover-db-system-request.js.map +1 -0
- package/lib/request/get-backup-request.d.ts +26 -0
- package/lib/request/get-backup-request.js +15 -0
- package/lib/request/get-backup-request.js.map +1 -0
- package/lib/request/get-configuration-request.d.ts +26 -0
- package/lib/request/get-configuration-request.js +15 -0
- package/lib/request/get-configuration-request.js.map +1 -0
- package/lib/request/get-connection-details-request.d.ts +26 -0
- package/lib/request/get-connection-details-request.js +15 -0
- package/lib/request/get-connection-details-request.js.map +1 -0
- package/lib/request/get-db-system-request.d.ts +35 -0
- package/lib/request/get-db-system-request.js +23 -0
- package/lib/request/get-db-system-request.js.map +1 -0
- package/lib/request/get-default-configuration-request.d.ts +26 -0
- package/lib/request/get-default-configuration-request.js +15 -0
- package/lib/request/get-default-configuration-request.js.map +1 -0
- package/lib/request/get-primary-db-instance-request.d.ts +26 -0
- package/lib/request/get-primary-db-instance-request.js +15 -0
- package/lib/request/get-primary-db-instance-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 +78 -0
- package/lib/request/index.js +53 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-backups-request.d.ts +74 -0
- package/lib/request/list-backups-request.js +24 -0
- package/lib/request/list-backups-request.js.map +1 -0
- package/lib/request/list-configurations-request.d.ts +70 -0
- package/lib/request/list-configurations-request.js +24 -0
- package/lib/request/list-configurations-request.js.map +1 -0
- package/lib/request/list-db-systems-request.d.ts +62 -0
- package/lib/request/list-db-systems-request.js +24 -0
- package/lib/request/list-db-systems-request.js.map +1 -0
- package/lib/request/list-default-configurations-request.d.ts +66 -0
- package/lib/request/list-default-configurations-request.js +24 -0
- package/lib/request/list-default-configurations-request.js.map +1 -0
- package/lib/request/list-shapes-request.d.ts +54 -0
- package/lib/request/list-shapes-request.js +24 -0
- package/lib/request/list-shapes-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-db-system-request.d.ts +36 -0
- package/lib/request/patch-db-system-request.js +15 -0
- package/lib/request/patch-db-system-request.js.map +1 -0
- package/lib/request/reset-master-user-password-request.d.ts +41 -0
- package/lib/request/reset-master-user-password-request.js +15 -0
- package/lib/request/reset-master-user-password-request.js.map +1 -0
- package/lib/request/restart-db-instance-in-db-system-request.d.ts +41 -0
- package/lib/request/restart-db-instance-in-db-system-request.js +15 -0
- package/lib/request/restart-db-instance-in-db-system-request.js.map +1 -0
- package/lib/request/restore-db-system-request.d.ts +41 -0
- package/lib/request/restore-db-system-request.js +15 -0
- package/lib/request/restore-db-system-request.js.map +1 -0
- package/lib/request/update-backup-request.d.ts +36 -0
- package/lib/request/update-backup-request.js +15 -0
- package/lib/request/update-backup-request.js.map +1 -0
- package/lib/request/update-configuration-request.d.ts +41 -0
- package/lib/request/update-configuration-request.js +15 -0
- package/lib/request/update-configuration-request.js.map +1 -0
- package/lib/request/update-db-system-db-instance-request.d.ts +45 -0
- package/lib/request/update-db-system-db-instance-request.js +15 -0
- package/lib/request/update-db-system-db-instance-request.js.map +1 -0
- package/lib/request/update-db-system-request.d.ts +41 -0
- package/lib/request/update-db-system-request.js +15 -0
- package/lib/request/update-db-system-request.js.map +1 -0
- package/lib/response/change-backup-compartment-response.d.ts +25 -0
- package/lib/response/change-backup-compartment-response.js +15 -0
- package/lib/response/change-backup-compartment-response.js.map +1 -0
- package/lib/response/change-configuration-compartment-response.d.ts +30 -0
- package/lib/response/change-configuration-compartment-response.js +15 -0
- package/lib/response/change-configuration-compartment-response.js.map +1 -0
- package/lib/response/change-db-system-compartment-response.d.ts +25 -0
- package/lib/response/change-db-system-compartment-response.js +15 -0
- package/lib/response/change-db-system-compartment-response.js.map +1 -0
- package/lib/response/create-backup-response.d.ts +25 -0
- package/lib/response/create-backup-response.js +15 -0
- package/lib/response/create-backup-response.js.map +1 -0
- package/lib/response/create-configuration-response.d.ts +30 -0
- package/lib/response/create-configuration-response.js +15 -0
- package/lib/response/create-configuration-response.js.map +1 -0
- package/lib/response/create-db-system-response.d.ts +35 -0
- package/lib/response/create-db-system-response.js +15 -0
- package/lib/response/create-db-system-response.js.map +1 -0
- package/lib/response/delete-backup-response.d.ts +25 -0
- package/lib/response/delete-backup-response.js +15 -0
- package/lib/response/delete-backup-response.js.map +1 -0
- package/lib/response/delete-configuration-response.d.ts +20 -0
- package/lib/response/delete-configuration-response.js +15 -0
- package/lib/response/delete-configuration-response.js.map +1 -0
- package/lib/response/delete-db-system-response.d.ts +25 -0
- package/lib/response/delete-db-system-response.js +15 -0
- package/lib/response/delete-db-system-response.js.map +1 -0
- package/lib/response/failover-db-system-response.d.ts +25 -0
- package/lib/response/failover-db-system-response.js +15 -0
- package/lib/response/failover-db-system-response.js.map +1 -0
- package/lib/response/get-backup-response.d.ts +30 -0
- package/lib/response/get-backup-response.js +15 -0
- package/lib/response/get-backup-response.js.map +1 -0
- package/lib/response/get-configuration-response.d.ts +30 -0
- package/lib/response/get-configuration-response.js +15 -0
- package/lib/response/get-configuration-response.js.map +1 -0
- package/lib/response/get-connection-details-response.d.ts +30 -0
- package/lib/response/get-connection-details-response.js +15 -0
- package/lib/response/get-connection-details-response.js.map +1 -0
- package/lib/response/get-db-system-response.d.ts +30 -0
- package/lib/response/get-db-system-response.js +15 -0
- package/lib/response/get-db-system-response.js.map +1 -0
- package/lib/response/get-default-configuration-response.d.ts +30 -0
- package/lib/response/get-default-configuration-response.js +15 -0
- package/lib/response/get-default-configuration-response.js.map +1 -0
- package/lib/response/get-primary-db-instance-response.d.ts +30 -0
- package/lib/response/get-primary-db-instance-response.js +15 -0
- package/lib/response/get-primary-db-instance-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +78 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-backups-response.d.ts +30 -0
- package/lib/response/list-backups-response.js +15 -0
- package/lib/response/list-backups-response.js.map +1 -0
- package/lib/response/list-configurations-response.d.ts +30 -0
- package/lib/response/list-configurations-response.js +15 -0
- package/lib/response/list-configurations-response.js.map +1 -0
- package/lib/response/list-db-systems-response.d.ts +30 -0
- package/lib/response/list-db-systems-response.js +15 -0
- package/lib/response/list-db-systems-response.js.map +1 -0
- package/lib/response/list-default-configurations-response.d.ts +30 -0
- package/lib/response/list-default-configurations-response.js +15 -0
- package/lib/response/list-default-configurations-response.js.map +1 -0
- package/lib/response/list-shapes-response.d.ts +30 -0
- package/lib/response/list-shapes-response.js +15 -0
- package/lib/response/list-shapes-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +30 -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 +30 -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 +30 -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-db-system-response.d.ts +25 -0
- package/lib/response/patch-db-system-response.js +15 -0
- package/lib/response/patch-db-system-response.js.map +1 -0
- package/lib/response/reset-master-user-password-response.d.ts +25 -0
- package/lib/response/reset-master-user-password-response.js +15 -0
- package/lib/response/reset-master-user-password-response.js.map +1 -0
- package/lib/response/restart-db-instance-in-db-system-response.d.ts +25 -0
- package/lib/response/restart-db-instance-in-db-system-response.js +15 -0
- package/lib/response/restart-db-instance-in-db-system-response.js.map +1 -0
- package/lib/response/restore-db-system-response.d.ts +25 -0
- package/lib/response/restore-db-system-response.js +15 -0
- package/lib/response/restore-db-system-response.js.map +1 -0
- package/lib/response/update-backup-response.d.ts +30 -0
- package/lib/response/update-backup-response.js +15 -0
- package/lib/response/update-backup-response.js.map +1 -0
- package/lib/response/update-configuration-response.d.ts +30 -0
- package/lib/response/update-configuration-response.js +15 -0
- package/lib/response/update-configuration-response.js.map +1 -0
- package/lib/response/update-db-system-db-instance-response.d.ts +25 -0
- package/lib/response/update-db-system-db-instance-response.js +15 -0
- package/lib/response/update-db-system-db-instance-response.js.map +1 -0
- package/lib/response/update-db-system-response.d.ts +25 -0
- package/lib/response/update-db-system-response.js +15 -0
- package/lib/response/update-db-system-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,2323 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* PGSQL Control Plane API
|
|
4
|
+
* A description of the PGSQL Control Plane API
|
|
5
|
+
* OpenAPI spec version: 20220915
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, 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.PostgresqlClient = exports.PostgresqlApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const postgresql_waiter_1 = require("./postgresql-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
var PostgresqlApiKeys;
|
|
52
|
+
(function (PostgresqlApiKeys) {
|
|
53
|
+
})(PostgresqlApiKeys = exports.PostgresqlApiKeys || (exports.PostgresqlApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
56
|
+
*/
|
|
57
|
+
class PostgresqlClient {
|
|
58
|
+
constructor(params, clientConfiguration) {
|
|
59
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
60
|
+
this["_endpoint"] = "";
|
|
61
|
+
this["_defaultHeaders"] = {};
|
|
62
|
+
this._circuitBreaker = null;
|
|
63
|
+
this._httpOptions = undefined;
|
|
64
|
+
this._bodyDuplexMode = undefined;
|
|
65
|
+
this.targetService = "Postgresql";
|
|
66
|
+
this._regionId = "";
|
|
67
|
+
this._lastSetRegionOrRegionId = "";
|
|
68
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
69
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
70
|
+
: null;
|
|
71
|
+
if (clientConfiguration) {
|
|
72
|
+
this._clientConfiguration = clientConfiguration;
|
|
73
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
74
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
75
|
+
: null;
|
|
76
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
77
|
+
? clientConfiguration.httpOptions
|
|
78
|
+
: undefined;
|
|
79
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
80
|
+
? clientConfiguration.bodyDuplexMode
|
|
81
|
+
: undefined;
|
|
82
|
+
}
|
|
83
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
84
|
+
const specCircuitBreakerEnabled = true;
|
|
85
|
+
if (!this._circuitBreaker &&
|
|
86
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
87
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
88
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
89
|
+
}
|
|
90
|
+
this._httpClient =
|
|
91
|
+
params.httpClient ||
|
|
92
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
93
|
+
if (params.authenticationDetailsProvider &&
|
|
94
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
95
|
+
const provider = params.authenticationDetailsProvider;
|
|
96
|
+
if (provider.getRegion()) {
|
|
97
|
+
this.region = provider.getRegion();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
103
|
+
*/
|
|
104
|
+
get endpoint() {
|
|
105
|
+
return this._endpoint;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
109
|
+
* @param endpoint The endpoint of the service.
|
|
110
|
+
*/
|
|
111
|
+
set endpoint(endpoint) {
|
|
112
|
+
this._endpoint = endpoint;
|
|
113
|
+
this._endpoint = this._endpoint + "/20220915";
|
|
114
|
+
if (this.logger)
|
|
115
|
+
this.logger.info(`PostgresqlClient endpoint set to ${this._endpoint}`);
|
|
116
|
+
}
|
|
117
|
+
get logger() {
|
|
118
|
+
return common.LOG.logger;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
122
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
123
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
124
|
+
*/
|
|
125
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
126
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
127
|
+
if (this.logger)
|
|
128
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
129
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
130
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(PostgresqlClient.serviceEndpointTemplate, this._region, PostgresqlClient.endpointServiceName);
|
|
131
|
+
}
|
|
132
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
133
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(PostgresqlClient.serviceEndpointTemplate, this._regionId, PostgresqlClient.endpointServiceName);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
138
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
139
|
+
* @param region The region of the service.
|
|
140
|
+
*/
|
|
141
|
+
set region(region) {
|
|
142
|
+
this._region = region;
|
|
143
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(PostgresqlClient.serviceEndpointTemplate, region, PostgresqlClient.endpointServiceName);
|
|
144
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
148
|
+
*
|
|
149
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
150
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
151
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
152
|
+
* @param regionId The public region ID.
|
|
153
|
+
*/
|
|
154
|
+
set regionId(regionId) {
|
|
155
|
+
this._regionId = regionId;
|
|
156
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(PostgresqlClient.serviceEndpointTemplate, regionId, PostgresqlClient.endpointServiceName);
|
|
157
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new PostgresqlWaiter for resources for this service.
|
|
161
|
+
*
|
|
162
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
163
|
+
* @return The service waiters.
|
|
164
|
+
*/
|
|
165
|
+
createWaiters(config) {
|
|
166
|
+
this._waiters = new postgresql_waiter_1.PostgresqlWaiter(this, config);
|
|
167
|
+
return this._waiters;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Gets the waiters available for resources for this service.
|
|
171
|
+
*
|
|
172
|
+
* @return The service waiters.
|
|
173
|
+
*/
|
|
174
|
+
getWaiters() {
|
|
175
|
+
if (this._waiters) {
|
|
176
|
+
return this._waiters;
|
|
177
|
+
}
|
|
178
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Moves a Backup resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
182
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
183
|
+
* @param ChangeBackupCompartmentRequest
|
|
184
|
+
* @return ChangeBackupCompartmentResponse
|
|
185
|
+
* @throws OciError when an error occurs
|
|
186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ChangeBackupCompartment.ts.html |here} to see how to use ChangeBackupCompartment API.
|
|
187
|
+
*/
|
|
188
|
+
changeBackupCompartment(changeBackupCompartmentRequest) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (this.logger)
|
|
191
|
+
this.logger.debug("Calling operation PostgresqlClient#changeBackupCompartment.");
|
|
192
|
+
const operationName = "changeBackupCompartment";
|
|
193
|
+
const apiReferenceLink = "";
|
|
194
|
+
const pathParams = {
|
|
195
|
+
"{backupId}": changeBackupCompartmentRequest.backupId
|
|
196
|
+
};
|
|
197
|
+
const queryParams = {};
|
|
198
|
+
let headerParams = {
|
|
199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
200
|
+
"if-match": changeBackupCompartmentRequest.ifMatch,
|
|
201
|
+
"opc-request-id": changeBackupCompartmentRequest.opcRequestId,
|
|
202
|
+
"opc-retry-token": changeBackupCompartmentRequest.opcRetryToken
|
|
203
|
+
};
|
|
204
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
205
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBackupCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
206
|
+
if (this.logger)
|
|
207
|
+
retrier.logger = this.logger;
|
|
208
|
+
const request = yield oci_common_1.composeRequest({
|
|
209
|
+
baseEndpoint: this._endpoint,
|
|
210
|
+
defaultHeaders: this._defaultHeaders,
|
|
211
|
+
path: "/backups/{backupId}/actions/changeCompartment",
|
|
212
|
+
method: "POST",
|
|
213
|
+
bodyContent: common.ObjectSerializer.serialize(changeBackupCompartmentRequest.changeBackupCompartmentDetails, "ChangeBackupCompartmentDetails", model.ChangeBackupCompartmentDetails.getJsonObj),
|
|
214
|
+
pathParams: pathParams,
|
|
215
|
+
headerParams: headerParams,
|
|
216
|
+
queryParams: queryParams
|
|
217
|
+
});
|
|
218
|
+
try {
|
|
219
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
220
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
221
|
+
responseObject: {},
|
|
222
|
+
responseHeaders: [
|
|
223
|
+
{
|
|
224
|
+
value: response.headers.get("opc-work-request-id"),
|
|
225
|
+
key: "opcWorkRequestId",
|
|
226
|
+
dataType: "string"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
value: response.headers.get("opc-request-id"),
|
|
230
|
+
key: "opcRequestId",
|
|
231
|
+
dataType: "string"
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
});
|
|
235
|
+
return sdkResponse;
|
|
236
|
+
}
|
|
237
|
+
catch (err) {
|
|
238
|
+
throw err;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Moves a Configuration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
244
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
245
|
+
* @param ChangeConfigurationCompartmentRequest
|
|
246
|
+
* @return ChangeConfigurationCompartmentResponse
|
|
247
|
+
* @throws OciError when an error occurs
|
|
248
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ChangeConfigurationCompartment.ts.html |here} to see how to use ChangeConfigurationCompartment API.
|
|
249
|
+
*/
|
|
250
|
+
changeConfigurationCompartment(changeConfigurationCompartmentRequest) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
if (this.logger)
|
|
253
|
+
this.logger.debug("Calling operation PostgresqlClient#changeConfigurationCompartment.");
|
|
254
|
+
const operationName = "changeConfigurationCompartment";
|
|
255
|
+
const apiReferenceLink = "";
|
|
256
|
+
const pathParams = {
|
|
257
|
+
"{configurationId}": changeConfigurationCompartmentRequest.configurationId
|
|
258
|
+
};
|
|
259
|
+
const queryParams = {};
|
|
260
|
+
let headerParams = {
|
|
261
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
262
|
+
"if-match": changeConfigurationCompartmentRequest.ifMatch,
|
|
263
|
+
"opc-request-id": changeConfigurationCompartmentRequest.opcRequestId,
|
|
264
|
+
"opc-retry-token": changeConfigurationCompartmentRequest.opcRetryToken
|
|
265
|
+
};
|
|
266
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
267
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeConfigurationCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
268
|
+
if (this.logger)
|
|
269
|
+
retrier.logger = this.logger;
|
|
270
|
+
const request = yield oci_common_1.composeRequest({
|
|
271
|
+
baseEndpoint: this._endpoint,
|
|
272
|
+
defaultHeaders: this._defaultHeaders,
|
|
273
|
+
path: "/configurations/{configurationId}/actions/changeCompartment",
|
|
274
|
+
method: "POST",
|
|
275
|
+
bodyContent: common.ObjectSerializer.serialize(changeConfigurationCompartmentRequest.changeConfigurationCompartmentDetails, "ChangeConfigurationCompartmentDetails", model.ChangeConfigurationCompartmentDetails.getJsonObj),
|
|
276
|
+
pathParams: pathParams,
|
|
277
|
+
headerParams: headerParams,
|
|
278
|
+
queryParams: queryParams
|
|
279
|
+
});
|
|
280
|
+
try {
|
|
281
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
282
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
283
|
+
responseObject: {},
|
|
284
|
+
body: yield response.json(),
|
|
285
|
+
bodyKey: "configuration",
|
|
286
|
+
bodyModel: model.Configuration,
|
|
287
|
+
type: "model.Configuration",
|
|
288
|
+
responseHeaders: [
|
|
289
|
+
{
|
|
290
|
+
value: response.headers.get("etag"),
|
|
291
|
+
key: "etag",
|
|
292
|
+
dataType: "string"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
value: response.headers.get("opc-request-id"),
|
|
296
|
+
key: "opcRequestId",
|
|
297
|
+
dataType: "string"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
});
|
|
301
|
+
return sdkResponse;
|
|
302
|
+
}
|
|
303
|
+
catch (err) {
|
|
304
|
+
throw err;
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Moves a DbSystem resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
310
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
311
|
+
* @param ChangeDbSystemCompartmentRequest
|
|
312
|
+
* @return ChangeDbSystemCompartmentResponse
|
|
313
|
+
* @throws OciError when an error occurs
|
|
314
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ChangeDbSystemCompartment.ts.html |here} to see how to use ChangeDbSystemCompartment API.
|
|
315
|
+
*/
|
|
316
|
+
changeDbSystemCompartment(changeDbSystemCompartmentRequest) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
if (this.logger)
|
|
319
|
+
this.logger.debug("Calling operation PostgresqlClient#changeDbSystemCompartment.");
|
|
320
|
+
const operationName = "changeDbSystemCompartment";
|
|
321
|
+
const apiReferenceLink = "";
|
|
322
|
+
const pathParams = {
|
|
323
|
+
"{dbSystemId}": changeDbSystemCompartmentRequest.dbSystemId
|
|
324
|
+
};
|
|
325
|
+
const queryParams = {};
|
|
326
|
+
let headerParams = {
|
|
327
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
328
|
+
"if-match": changeDbSystemCompartmentRequest.ifMatch,
|
|
329
|
+
"opc-request-id": changeDbSystemCompartmentRequest.opcRequestId,
|
|
330
|
+
"opc-retry-token": changeDbSystemCompartmentRequest.opcRetryToken
|
|
331
|
+
};
|
|
332
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
333
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDbSystemCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
334
|
+
if (this.logger)
|
|
335
|
+
retrier.logger = this.logger;
|
|
336
|
+
const request = yield oci_common_1.composeRequest({
|
|
337
|
+
baseEndpoint: this._endpoint,
|
|
338
|
+
defaultHeaders: this._defaultHeaders,
|
|
339
|
+
path: "/dbSystems/{dbSystemId}/actions/changeCompartment",
|
|
340
|
+
method: "POST",
|
|
341
|
+
bodyContent: common.ObjectSerializer.serialize(changeDbSystemCompartmentRequest.changeDbSystemCompartmentDetails, "ChangeDbSystemCompartmentDetails", model.ChangeDbSystemCompartmentDetails.getJsonObj),
|
|
342
|
+
pathParams: pathParams,
|
|
343
|
+
headerParams: headerParams,
|
|
344
|
+
queryParams: queryParams
|
|
345
|
+
});
|
|
346
|
+
try {
|
|
347
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
348
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
349
|
+
responseObject: {},
|
|
350
|
+
responseHeaders: [
|
|
351
|
+
{
|
|
352
|
+
value: response.headers.get("opc-work-request-id"),
|
|
353
|
+
key: "opcWorkRequestId",
|
|
354
|
+
dataType: "string"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
value: response.headers.get("opc-request-id"),
|
|
358
|
+
key: "opcRequestId",
|
|
359
|
+
dataType: "string"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
});
|
|
363
|
+
return sdkResponse;
|
|
364
|
+
}
|
|
365
|
+
catch (err) {
|
|
366
|
+
throw err;
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Creates a new Backup.
|
|
372
|
+
*
|
|
373
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
374
|
+
* @param CreateBackupRequest
|
|
375
|
+
* @return CreateBackupResponse
|
|
376
|
+
* @throws OciError when an error occurs
|
|
377
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/CreateBackup.ts.html |here} to see how to use CreateBackup API.
|
|
378
|
+
*/
|
|
379
|
+
createBackup(createBackupRequest) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
if (this.logger)
|
|
382
|
+
this.logger.debug("Calling operation PostgresqlClient#createBackup.");
|
|
383
|
+
const operationName = "createBackup";
|
|
384
|
+
const apiReferenceLink = "";
|
|
385
|
+
const pathParams = {};
|
|
386
|
+
const queryParams = {};
|
|
387
|
+
let headerParams = {
|
|
388
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
389
|
+
"opc-retry-token": createBackupRequest.opcRetryToken,
|
|
390
|
+
"opc-request-id": createBackupRequest.opcRequestId
|
|
391
|
+
};
|
|
392
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
393
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
394
|
+
if (this.logger)
|
|
395
|
+
retrier.logger = this.logger;
|
|
396
|
+
const request = yield oci_common_1.composeRequest({
|
|
397
|
+
baseEndpoint: this._endpoint,
|
|
398
|
+
defaultHeaders: this._defaultHeaders,
|
|
399
|
+
path: "/backups",
|
|
400
|
+
method: "POST",
|
|
401
|
+
bodyContent: common.ObjectSerializer.serialize(createBackupRequest.createBackupDetails, "CreateBackupDetails", model.CreateBackupDetails.getJsonObj),
|
|
402
|
+
pathParams: pathParams,
|
|
403
|
+
headerParams: headerParams,
|
|
404
|
+
queryParams: queryParams
|
|
405
|
+
});
|
|
406
|
+
try {
|
|
407
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
408
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
409
|
+
responseObject: {},
|
|
410
|
+
responseHeaders: [
|
|
411
|
+
{
|
|
412
|
+
value: response.headers.get("opc-work-request-id"),
|
|
413
|
+
key: "opcWorkRequestId",
|
|
414
|
+
dataType: "string"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
value: response.headers.get("opc-request-id"),
|
|
418
|
+
key: "opcRequestId",
|
|
419
|
+
dataType: "string"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
});
|
|
423
|
+
return sdkResponse;
|
|
424
|
+
}
|
|
425
|
+
catch (err) {
|
|
426
|
+
throw err;
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Creates a new Configuration Set.
|
|
432
|
+
*
|
|
433
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
434
|
+
* @param CreateConfigurationRequest
|
|
435
|
+
* @return CreateConfigurationResponse
|
|
436
|
+
* @throws OciError when an error occurs
|
|
437
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/CreateConfiguration.ts.html |here} to see how to use CreateConfiguration API.
|
|
438
|
+
*/
|
|
439
|
+
createConfiguration(createConfigurationRequest) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
if (this.logger)
|
|
442
|
+
this.logger.debug("Calling operation PostgresqlClient#createConfiguration.");
|
|
443
|
+
const operationName = "createConfiguration";
|
|
444
|
+
const apiReferenceLink = "";
|
|
445
|
+
const pathParams = {};
|
|
446
|
+
const queryParams = {};
|
|
447
|
+
let headerParams = {
|
|
448
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
449
|
+
"opc-retry-token": createConfigurationRequest.opcRetryToken,
|
|
450
|
+
"opc-request-id": createConfigurationRequest.opcRequestId
|
|
451
|
+
};
|
|
452
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
453
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
454
|
+
if (this.logger)
|
|
455
|
+
retrier.logger = this.logger;
|
|
456
|
+
const request = yield oci_common_1.composeRequest({
|
|
457
|
+
baseEndpoint: this._endpoint,
|
|
458
|
+
defaultHeaders: this._defaultHeaders,
|
|
459
|
+
path: "/configurations",
|
|
460
|
+
method: "POST",
|
|
461
|
+
bodyContent: common.ObjectSerializer.serialize(createConfigurationRequest.createConfigurationDetails, "CreateConfigurationDetails", model.CreateConfigurationDetails.getJsonObj),
|
|
462
|
+
pathParams: pathParams,
|
|
463
|
+
headerParams: headerParams,
|
|
464
|
+
queryParams: queryParams
|
|
465
|
+
});
|
|
466
|
+
try {
|
|
467
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
468
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
469
|
+
responseObject: {},
|
|
470
|
+
body: yield response.json(),
|
|
471
|
+
bodyKey: "configuration",
|
|
472
|
+
bodyModel: model.Configuration,
|
|
473
|
+
type: "model.Configuration",
|
|
474
|
+
responseHeaders: [
|
|
475
|
+
{
|
|
476
|
+
value: response.headers.get("opc-request-id"),
|
|
477
|
+
key: "opcRequestId",
|
|
478
|
+
dataType: "string"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
value: response.headers.get("etag"),
|
|
482
|
+
key: "etag",
|
|
483
|
+
dataType: "string"
|
|
484
|
+
}
|
|
485
|
+
]
|
|
486
|
+
});
|
|
487
|
+
return sdkResponse;
|
|
488
|
+
}
|
|
489
|
+
catch (err) {
|
|
490
|
+
throw err;
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Creates a new DbSystem.
|
|
496
|
+
*
|
|
497
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
498
|
+
* @param CreateDbSystemRequest
|
|
499
|
+
* @return CreateDbSystemResponse
|
|
500
|
+
* @throws OciError when an error occurs
|
|
501
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/CreateDbSystem.ts.html |here} to see how to use CreateDbSystem API.
|
|
502
|
+
*/
|
|
503
|
+
createDbSystem(createDbSystemRequest) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
+
if (this.logger)
|
|
506
|
+
this.logger.debug("Calling operation PostgresqlClient#createDbSystem.");
|
|
507
|
+
const operationName = "createDbSystem";
|
|
508
|
+
const apiReferenceLink = "";
|
|
509
|
+
const pathParams = {};
|
|
510
|
+
const queryParams = {};
|
|
511
|
+
let headerParams = {
|
|
512
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
513
|
+
"opc-retry-token": createDbSystemRequest.opcRetryToken,
|
|
514
|
+
"opc-request-id": createDbSystemRequest.opcRequestId
|
|
515
|
+
};
|
|
516
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
517
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
518
|
+
if (this.logger)
|
|
519
|
+
retrier.logger = this.logger;
|
|
520
|
+
const request = yield oci_common_1.composeRequest({
|
|
521
|
+
baseEndpoint: this._endpoint,
|
|
522
|
+
defaultHeaders: this._defaultHeaders,
|
|
523
|
+
path: "/dbSystems",
|
|
524
|
+
method: "POST",
|
|
525
|
+
bodyContent: common.ObjectSerializer.serialize(createDbSystemRequest.createDbSystemDetails, "CreateDbSystemDetails", model.CreateDbSystemDetails.getJsonObj),
|
|
526
|
+
pathParams: pathParams,
|
|
527
|
+
headerParams: headerParams,
|
|
528
|
+
queryParams: queryParams
|
|
529
|
+
});
|
|
530
|
+
try {
|
|
531
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
532
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
533
|
+
responseObject: {},
|
|
534
|
+
body: yield response.json(),
|
|
535
|
+
bodyKey: "dbSystem",
|
|
536
|
+
bodyModel: model.DbSystem,
|
|
537
|
+
type: "model.DbSystem",
|
|
538
|
+
responseHeaders: [
|
|
539
|
+
{
|
|
540
|
+
value: response.headers.get("etag"),
|
|
541
|
+
key: "etag",
|
|
542
|
+
dataType: "string"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
value: response.headers.get("opc-work-request-id"),
|
|
546
|
+
key: "opcWorkRequestId",
|
|
547
|
+
dataType: "string"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
value: response.headers.get("opc-request-id"),
|
|
551
|
+
key: "opcRequestId",
|
|
552
|
+
dataType: "string"
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
});
|
|
556
|
+
return sdkResponse;
|
|
557
|
+
}
|
|
558
|
+
catch (err) {
|
|
559
|
+
throw err;
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Deletes a Backup resource by identifier
|
|
565
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
566
|
+
* @param DeleteBackupRequest
|
|
567
|
+
* @return DeleteBackupResponse
|
|
568
|
+
* @throws OciError when an error occurs
|
|
569
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/DeleteBackup.ts.html |here} to see how to use DeleteBackup API.
|
|
570
|
+
*/
|
|
571
|
+
deleteBackup(deleteBackupRequest) {
|
|
572
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
573
|
+
if (this.logger)
|
|
574
|
+
this.logger.debug("Calling operation PostgresqlClient#deleteBackup.");
|
|
575
|
+
const operationName = "deleteBackup";
|
|
576
|
+
const apiReferenceLink = "";
|
|
577
|
+
const pathParams = {
|
|
578
|
+
"{backupId}": deleteBackupRequest.backupId
|
|
579
|
+
};
|
|
580
|
+
const queryParams = {};
|
|
581
|
+
let headerParams = {
|
|
582
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
583
|
+
"if-match": deleteBackupRequest.ifMatch,
|
|
584
|
+
"opc-request-id": deleteBackupRequest.opcRequestId
|
|
585
|
+
};
|
|
586
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
587
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
588
|
+
if (this.logger)
|
|
589
|
+
retrier.logger = this.logger;
|
|
590
|
+
const request = yield oci_common_1.composeRequest({
|
|
591
|
+
baseEndpoint: this._endpoint,
|
|
592
|
+
defaultHeaders: this._defaultHeaders,
|
|
593
|
+
path: "/backups/{backupId}",
|
|
594
|
+
method: "DELETE",
|
|
595
|
+
pathParams: pathParams,
|
|
596
|
+
headerParams: headerParams,
|
|
597
|
+
queryParams: queryParams
|
|
598
|
+
});
|
|
599
|
+
try {
|
|
600
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
601
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
602
|
+
responseObject: {},
|
|
603
|
+
responseHeaders: [
|
|
604
|
+
{
|
|
605
|
+
value: response.headers.get("opc-work-request-id"),
|
|
606
|
+
key: "opcWorkRequestId",
|
|
607
|
+
dataType: "string"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
value: response.headers.get("opc-request-id"),
|
|
611
|
+
key: "opcRequestId",
|
|
612
|
+
dataType: "string"
|
|
613
|
+
}
|
|
614
|
+
]
|
|
615
|
+
});
|
|
616
|
+
return sdkResponse;
|
|
617
|
+
}
|
|
618
|
+
catch (err) {
|
|
619
|
+
throw err;
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Deletes a Cofniguration resource by identifier
|
|
625
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
626
|
+
* @param DeleteConfigurationRequest
|
|
627
|
+
* @return DeleteConfigurationResponse
|
|
628
|
+
* @throws OciError when an error occurs
|
|
629
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/DeleteConfiguration.ts.html |here} to see how to use DeleteConfiguration API.
|
|
630
|
+
*/
|
|
631
|
+
deleteConfiguration(deleteConfigurationRequest) {
|
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
if (this.logger)
|
|
634
|
+
this.logger.debug("Calling operation PostgresqlClient#deleteConfiguration.");
|
|
635
|
+
const operationName = "deleteConfiguration";
|
|
636
|
+
const apiReferenceLink = "";
|
|
637
|
+
const pathParams = {
|
|
638
|
+
"{configurationId}": deleteConfigurationRequest.configurationId
|
|
639
|
+
};
|
|
640
|
+
const queryParams = {};
|
|
641
|
+
let headerParams = {
|
|
642
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
643
|
+
"if-match": deleteConfigurationRequest.ifMatch,
|
|
644
|
+
"opc-request-id": deleteConfigurationRequest.opcRequestId
|
|
645
|
+
};
|
|
646
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
647
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
648
|
+
if (this.logger)
|
|
649
|
+
retrier.logger = this.logger;
|
|
650
|
+
const request = yield oci_common_1.composeRequest({
|
|
651
|
+
baseEndpoint: this._endpoint,
|
|
652
|
+
defaultHeaders: this._defaultHeaders,
|
|
653
|
+
path: "/configurations/{configurationId}",
|
|
654
|
+
method: "DELETE",
|
|
655
|
+
pathParams: pathParams,
|
|
656
|
+
headerParams: headerParams,
|
|
657
|
+
queryParams: queryParams
|
|
658
|
+
});
|
|
659
|
+
try {
|
|
660
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
661
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
662
|
+
responseObject: {},
|
|
663
|
+
responseHeaders: [
|
|
664
|
+
{
|
|
665
|
+
value: response.headers.get("opc-request-id"),
|
|
666
|
+
key: "opcRequestId",
|
|
667
|
+
dataType: "string"
|
|
668
|
+
}
|
|
669
|
+
]
|
|
670
|
+
});
|
|
671
|
+
return sdkResponse;
|
|
672
|
+
}
|
|
673
|
+
catch (err) {
|
|
674
|
+
throw err;
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Deletes a DbSystem resource by identifier
|
|
680
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
681
|
+
* @param DeleteDbSystemRequest
|
|
682
|
+
* @return DeleteDbSystemResponse
|
|
683
|
+
* @throws OciError when an error occurs
|
|
684
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/DeleteDbSystem.ts.html |here} to see how to use DeleteDbSystem API.
|
|
685
|
+
*/
|
|
686
|
+
deleteDbSystem(deleteDbSystemRequest) {
|
|
687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
+
if (this.logger)
|
|
689
|
+
this.logger.debug("Calling operation PostgresqlClient#deleteDbSystem.");
|
|
690
|
+
const operationName = "deleteDbSystem";
|
|
691
|
+
const apiReferenceLink = "";
|
|
692
|
+
const pathParams = {
|
|
693
|
+
"{dbSystemId}": deleteDbSystemRequest.dbSystemId
|
|
694
|
+
};
|
|
695
|
+
const queryParams = {};
|
|
696
|
+
let headerParams = {
|
|
697
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
698
|
+
"if-match": deleteDbSystemRequest.ifMatch,
|
|
699
|
+
"opc-request-id": deleteDbSystemRequest.opcRequestId
|
|
700
|
+
};
|
|
701
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
702
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
703
|
+
if (this.logger)
|
|
704
|
+
retrier.logger = this.logger;
|
|
705
|
+
const request = yield oci_common_1.composeRequest({
|
|
706
|
+
baseEndpoint: this._endpoint,
|
|
707
|
+
defaultHeaders: this._defaultHeaders,
|
|
708
|
+
path: "/dbSystems/{dbSystemId}",
|
|
709
|
+
method: "DELETE",
|
|
710
|
+
pathParams: pathParams,
|
|
711
|
+
headerParams: headerParams,
|
|
712
|
+
queryParams: queryParams
|
|
713
|
+
});
|
|
714
|
+
try {
|
|
715
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
716
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
717
|
+
responseObject: {},
|
|
718
|
+
responseHeaders: [
|
|
719
|
+
{
|
|
720
|
+
value: response.headers.get("opc-work-request-id"),
|
|
721
|
+
key: "opcWorkRequestId",
|
|
722
|
+
dataType: "string"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
value: response.headers.get("opc-request-id"),
|
|
726
|
+
key: "opcRequestId",
|
|
727
|
+
dataType: "string"
|
|
728
|
+
}
|
|
729
|
+
]
|
|
730
|
+
});
|
|
731
|
+
return sdkResponse;
|
|
732
|
+
}
|
|
733
|
+
catch (err) {
|
|
734
|
+
throw err;
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Runs a failover operation. Optionally user can specify the desired AD for 3AD regions.
|
|
740
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
741
|
+
* @param FailoverDbSystemRequest
|
|
742
|
+
* @return FailoverDbSystemResponse
|
|
743
|
+
* @throws OciError when an error occurs
|
|
744
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/FailoverDbSystem.ts.html |here} to see how to use FailoverDbSystem API.
|
|
745
|
+
*/
|
|
746
|
+
failoverDbSystem(failoverDbSystemRequest) {
|
|
747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
748
|
+
if (this.logger)
|
|
749
|
+
this.logger.debug("Calling operation PostgresqlClient#failoverDbSystem.");
|
|
750
|
+
const operationName = "failoverDbSystem";
|
|
751
|
+
const apiReferenceLink = "";
|
|
752
|
+
const pathParams = {
|
|
753
|
+
"{dbSystemId}": failoverDbSystemRequest.dbSystemId
|
|
754
|
+
};
|
|
755
|
+
const queryParams = {};
|
|
756
|
+
let headerParams = {
|
|
757
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
758
|
+
"if-match": failoverDbSystemRequest.ifMatch,
|
|
759
|
+
"opc-request-id": failoverDbSystemRequest.opcRequestId,
|
|
760
|
+
"opc-retry-token": failoverDbSystemRequest.opcRetryToken
|
|
761
|
+
};
|
|
762
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
763
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, failoverDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
764
|
+
if (this.logger)
|
|
765
|
+
retrier.logger = this.logger;
|
|
766
|
+
const request = yield oci_common_1.composeRequest({
|
|
767
|
+
baseEndpoint: this._endpoint,
|
|
768
|
+
defaultHeaders: this._defaultHeaders,
|
|
769
|
+
path: "/dbSystems/{dbSystemId}/actions/failover",
|
|
770
|
+
method: "POST",
|
|
771
|
+
bodyContent: common.ObjectSerializer.serialize(failoverDbSystemRequest.failoverDbSystemDetails, "FailoverDbSystemDetails", model.FailoverDbSystemDetails.getJsonObj),
|
|
772
|
+
pathParams: pathParams,
|
|
773
|
+
headerParams: headerParams,
|
|
774
|
+
queryParams: queryParams
|
|
775
|
+
});
|
|
776
|
+
try {
|
|
777
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
778
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
779
|
+
responseObject: {},
|
|
780
|
+
responseHeaders: [
|
|
781
|
+
{
|
|
782
|
+
value: response.headers.get("opc-work-request-id"),
|
|
783
|
+
key: "opcWorkRequestId",
|
|
784
|
+
dataType: "string"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
value: response.headers.get("opc-request-id"),
|
|
788
|
+
key: "opcRequestId",
|
|
789
|
+
dataType: "string"
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
});
|
|
793
|
+
return sdkResponse;
|
|
794
|
+
}
|
|
795
|
+
catch (err) {
|
|
796
|
+
throw err;
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Gets a Backup by identifier
|
|
802
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
803
|
+
* @param GetBackupRequest
|
|
804
|
+
* @return GetBackupResponse
|
|
805
|
+
* @throws OciError when an error occurs
|
|
806
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetBackup.ts.html |here} to see how to use GetBackup API.
|
|
807
|
+
*/
|
|
808
|
+
getBackup(getBackupRequest) {
|
|
809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
if (this.logger)
|
|
811
|
+
this.logger.debug("Calling operation PostgresqlClient#getBackup.");
|
|
812
|
+
const operationName = "getBackup";
|
|
813
|
+
const apiReferenceLink = "";
|
|
814
|
+
const pathParams = {
|
|
815
|
+
"{backupId}": getBackupRequest.backupId
|
|
816
|
+
};
|
|
817
|
+
const queryParams = {};
|
|
818
|
+
let headerParams = {
|
|
819
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
820
|
+
"opc-request-id": getBackupRequest.opcRequestId
|
|
821
|
+
};
|
|
822
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
823
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
824
|
+
if (this.logger)
|
|
825
|
+
retrier.logger = this.logger;
|
|
826
|
+
const request = yield oci_common_1.composeRequest({
|
|
827
|
+
baseEndpoint: this._endpoint,
|
|
828
|
+
defaultHeaders: this._defaultHeaders,
|
|
829
|
+
path: "/backups/{backupId}",
|
|
830
|
+
method: "GET",
|
|
831
|
+
pathParams: pathParams,
|
|
832
|
+
headerParams: headerParams,
|
|
833
|
+
queryParams: queryParams
|
|
834
|
+
});
|
|
835
|
+
try {
|
|
836
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
837
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
838
|
+
responseObject: {},
|
|
839
|
+
body: yield response.json(),
|
|
840
|
+
bodyKey: "backup",
|
|
841
|
+
bodyModel: model.Backup,
|
|
842
|
+
type: "model.Backup",
|
|
843
|
+
responseHeaders: [
|
|
844
|
+
{
|
|
845
|
+
value: response.headers.get("etag"),
|
|
846
|
+
key: "etag",
|
|
847
|
+
dataType: "string"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
value: response.headers.get("opc-request-id"),
|
|
851
|
+
key: "opcRequestId",
|
|
852
|
+
dataType: "string"
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
});
|
|
856
|
+
return sdkResponse;
|
|
857
|
+
}
|
|
858
|
+
catch (err) {
|
|
859
|
+
throw err;
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Gets a Configuration by identifier
|
|
865
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
866
|
+
* @param GetConfigurationRequest
|
|
867
|
+
* @return GetConfigurationResponse
|
|
868
|
+
* @throws OciError when an error occurs
|
|
869
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
|
|
870
|
+
*/
|
|
871
|
+
getConfiguration(getConfigurationRequest) {
|
|
872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
873
|
+
if (this.logger)
|
|
874
|
+
this.logger.debug("Calling operation PostgresqlClient#getConfiguration.");
|
|
875
|
+
const operationName = "getConfiguration";
|
|
876
|
+
const apiReferenceLink = "";
|
|
877
|
+
const pathParams = {
|
|
878
|
+
"{configurationId}": getConfigurationRequest.configurationId
|
|
879
|
+
};
|
|
880
|
+
const queryParams = {};
|
|
881
|
+
let headerParams = {
|
|
882
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
883
|
+
"opc-request-id": getConfigurationRequest.opcRequestId
|
|
884
|
+
};
|
|
885
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
886
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
887
|
+
if (this.logger)
|
|
888
|
+
retrier.logger = this.logger;
|
|
889
|
+
const request = yield oci_common_1.composeRequest({
|
|
890
|
+
baseEndpoint: this._endpoint,
|
|
891
|
+
defaultHeaders: this._defaultHeaders,
|
|
892
|
+
path: "/configurations/{configurationId}",
|
|
893
|
+
method: "GET",
|
|
894
|
+
pathParams: pathParams,
|
|
895
|
+
headerParams: headerParams,
|
|
896
|
+
queryParams: queryParams
|
|
897
|
+
});
|
|
898
|
+
try {
|
|
899
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
900
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
901
|
+
responseObject: {},
|
|
902
|
+
body: yield response.json(),
|
|
903
|
+
bodyKey: "configuration",
|
|
904
|
+
bodyModel: model.Configuration,
|
|
905
|
+
type: "model.Configuration",
|
|
906
|
+
responseHeaders: [
|
|
907
|
+
{
|
|
908
|
+
value: response.headers.get("etag"),
|
|
909
|
+
key: "etag",
|
|
910
|
+
dataType: "string"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
value: response.headers.get("opc-request-id"),
|
|
914
|
+
key: "opcRequestId",
|
|
915
|
+
dataType: "string"
|
|
916
|
+
}
|
|
917
|
+
]
|
|
918
|
+
});
|
|
919
|
+
return sdkResponse;
|
|
920
|
+
}
|
|
921
|
+
catch (err) {
|
|
922
|
+
throw err;
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Gets the DbSystem connection details.
|
|
928
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
929
|
+
* @param GetConnectionDetailsRequest
|
|
930
|
+
* @return GetConnectionDetailsResponse
|
|
931
|
+
* @throws OciError when an error occurs
|
|
932
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetConnectionDetails.ts.html |here} to see how to use GetConnectionDetails API.
|
|
933
|
+
*/
|
|
934
|
+
getConnectionDetails(getConnectionDetailsRequest) {
|
|
935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
936
|
+
if (this.logger)
|
|
937
|
+
this.logger.debug("Calling operation PostgresqlClient#getConnectionDetails.");
|
|
938
|
+
const operationName = "getConnectionDetails";
|
|
939
|
+
const apiReferenceLink = "";
|
|
940
|
+
const pathParams = {
|
|
941
|
+
"{dbSystemId}": getConnectionDetailsRequest.dbSystemId
|
|
942
|
+
};
|
|
943
|
+
const queryParams = {};
|
|
944
|
+
let headerParams = {
|
|
945
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
946
|
+
"opc-request-id": getConnectionDetailsRequest.opcRequestId
|
|
947
|
+
};
|
|
948
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
949
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getConnectionDetailsRequest.retryConfiguration, specRetryConfiguration);
|
|
950
|
+
if (this.logger)
|
|
951
|
+
retrier.logger = this.logger;
|
|
952
|
+
const request = yield oci_common_1.composeRequest({
|
|
953
|
+
baseEndpoint: this._endpoint,
|
|
954
|
+
defaultHeaders: this._defaultHeaders,
|
|
955
|
+
path: "/dbSystems/{dbSystemId}/connectionDetails",
|
|
956
|
+
method: "GET",
|
|
957
|
+
pathParams: pathParams,
|
|
958
|
+
headerParams: headerParams,
|
|
959
|
+
queryParams: queryParams
|
|
960
|
+
});
|
|
961
|
+
try {
|
|
962
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
963
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
964
|
+
responseObject: {},
|
|
965
|
+
body: yield response.json(),
|
|
966
|
+
bodyKey: "connectionDetails",
|
|
967
|
+
bodyModel: model.ConnectionDetails,
|
|
968
|
+
type: "model.ConnectionDetails",
|
|
969
|
+
responseHeaders: [
|
|
970
|
+
{
|
|
971
|
+
value: response.headers.get("etag"),
|
|
972
|
+
key: "etag",
|
|
973
|
+
dataType: "string"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
value: response.headers.get("opc-request-id"),
|
|
977
|
+
key: "opcRequestId",
|
|
978
|
+
dataType: "string"
|
|
979
|
+
}
|
|
980
|
+
]
|
|
981
|
+
});
|
|
982
|
+
return sdkResponse;
|
|
983
|
+
}
|
|
984
|
+
catch (err) {
|
|
985
|
+
throw err;
|
|
986
|
+
}
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Gets a DbSystem by identifier
|
|
991
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
992
|
+
* @param GetDbSystemRequest
|
|
993
|
+
* @return GetDbSystemResponse
|
|
994
|
+
* @throws OciError when an error occurs
|
|
995
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetDbSystem.ts.html |here} to see how to use GetDbSystem API.
|
|
996
|
+
*/
|
|
997
|
+
getDbSystem(getDbSystemRequest) {
|
|
998
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
999
|
+
if (this.logger)
|
|
1000
|
+
this.logger.debug("Calling operation PostgresqlClient#getDbSystem.");
|
|
1001
|
+
const operationName = "getDbSystem";
|
|
1002
|
+
const apiReferenceLink = "";
|
|
1003
|
+
const pathParams = {
|
|
1004
|
+
"{dbSystemId}": getDbSystemRequest.dbSystemId
|
|
1005
|
+
};
|
|
1006
|
+
const queryParams = {
|
|
1007
|
+
"excludedFields": getDbSystemRequest.excludedFields
|
|
1008
|
+
};
|
|
1009
|
+
let headerParams = {
|
|
1010
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1011
|
+
"opc-request-id": getDbSystemRequest.opcRequestId
|
|
1012
|
+
};
|
|
1013
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1014
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1015
|
+
if (this.logger)
|
|
1016
|
+
retrier.logger = this.logger;
|
|
1017
|
+
const request = yield oci_common_1.composeRequest({
|
|
1018
|
+
baseEndpoint: this._endpoint,
|
|
1019
|
+
defaultHeaders: this._defaultHeaders,
|
|
1020
|
+
path: "/dbSystems/{dbSystemId}",
|
|
1021
|
+
method: "GET",
|
|
1022
|
+
pathParams: pathParams,
|
|
1023
|
+
headerParams: headerParams,
|
|
1024
|
+
queryParams: queryParams
|
|
1025
|
+
});
|
|
1026
|
+
try {
|
|
1027
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1028
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1029
|
+
responseObject: {},
|
|
1030
|
+
body: yield response.json(),
|
|
1031
|
+
bodyKey: "dbSystem",
|
|
1032
|
+
bodyModel: model.DbSystem,
|
|
1033
|
+
type: "model.DbSystem",
|
|
1034
|
+
responseHeaders: [
|
|
1035
|
+
{
|
|
1036
|
+
value: response.headers.get("etag"),
|
|
1037
|
+
key: "etag",
|
|
1038
|
+
dataType: "string"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
value: response.headers.get("opc-request-id"),
|
|
1042
|
+
key: "opcRequestId",
|
|
1043
|
+
dataType: "string"
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
});
|
|
1047
|
+
return sdkResponse;
|
|
1048
|
+
}
|
|
1049
|
+
catch (err) {
|
|
1050
|
+
throw err;
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Gets a Default Configuration by identifier
|
|
1056
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1057
|
+
* @param GetDefaultConfigurationRequest
|
|
1058
|
+
* @return GetDefaultConfigurationResponse
|
|
1059
|
+
* @throws OciError when an error occurs
|
|
1060
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetDefaultConfiguration.ts.html |here} to see how to use GetDefaultConfiguration API.
|
|
1061
|
+
*/
|
|
1062
|
+
getDefaultConfiguration(getDefaultConfigurationRequest) {
|
|
1063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
|
+
if (this.logger)
|
|
1065
|
+
this.logger.debug("Calling operation PostgresqlClient#getDefaultConfiguration.");
|
|
1066
|
+
const operationName = "getDefaultConfiguration";
|
|
1067
|
+
const apiReferenceLink = "";
|
|
1068
|
+
const pathParams = {
|
|
1069
|
+
"{defaultConfigurationId}": getDefaultConfigurationRequest.defaultConfigurationId
|
|
1070
|
+
};
|
|
1071
|
+
const queryParams = {};
|
|
1072
|
+
let headerParams = {
|
|
1073
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1074
|
+
"opc-request-id": getDefaultConfigurationRequest.opcRequestId
|
|
1075
|
+
};
|
|
1076
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1077
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDefaultConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
1078
|
+
if (this.logger)
|
|
1079
|
+
retrier.logger = this.logger;
|
|
1080
|
+
const request = yield oci_common_1.composeRequest({
|
|
1081
|
+
baseEndpoint: this._endpoint,
|
|
1082
|
+
defaultHeaders: this._defaultHeaders,
|
|
1083
|
+
path: "/defaultConfigurations/{defaultConfigurationId}",
|
|
1084
|
+
method: "GET",
|
|
1085
|
+
pathParams: pathParams,
|
|
1086
|
+
headerParams: headerParams,
|
|
1087
|
+
queryParams: queryParams
|
|
1088
|
+
});
|
|
1089
|
+
try {
|
|
1090
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1091
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1092
|
+
responseObject: {},
|
|
1093
|
+
body: yield response.json(),
|
|
1094
|
+
bodyKey: "defaultConfiguration",
|
|
1095
|
+
bodyModel: model.DefaultConfiguration,
|
|
1096
|
+
type: "model.DefaultConfiguration",
|
|
1097
|
+
responseHeaders: [
|
|
1098
|
+
{
|
|
1099
|
+
value: response.headers.get("etag"),
|
|
1100
|
+
key: "etag",
|
|
1101
|
+
dataType: "string"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
value: response.headers.get("opc-request-id"),
|
|
1105
|
+
key: "opcRequestId",
|
|
1106
|
+
dataType: "string"
|
|
1107
|
+
}
|
|
1108
|
+
]
|
|
1109
|
+
});
|
|
1110
|
+
return sdkResponse;
|
|
1111
|
+
}
|
|
1112
|
+
catch (err) {
|
|
1113
|
+
throw err;
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Gets the primary DbInstance details.
|
|
1119
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1120
|
+
* @param GetPrimaryDbInstanceRequest
|
|
1121
|
+
* @return GetPrimaryDbInstanceResponse
|
|
1122
|
+
* @throws OciError when an error occurs
|
|
1123
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetPrimaryDbInstance.ts.html |here} to see how to use GetPrimaryDbInstance API.
|
|
1124
|
+
*/
|
|
1125
|
+
getPrimaryDbInstance(getPrimaryDbInstanceRequest) {
|
|
1126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1127
|
+
if (this.logger)
|
|
1128
|
+
this.logger.debug("Calling operation PostgresqlClient#getPrimaryDbInstance.");
|
|
1129
|
+
const operationName = "getPrimaryDbInstance";
|
|
1130
|
+
const apiReferenceLink = "";
|
|
1131
|
+
const pathParams = {
|
|
1132
|
+
"{dbSystemId}": getPrimaryDbInstanceRequest.dbSystemId
|
|
1133
|
+
};
|
|
1134
|
+
const queryParams = {};
|
|
1135
|
+
let headerParams = {
|
|
1136
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1137
|
+
"opc-request-id": getPrimaryDbInstanceRequest.opcRequestId
|
|
1138
|
+
};
|
|
1139
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1140
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPrimaryDbInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
1141
|
+
if (this.logger)
|
|
1142
|
+
retrier.logger = this.logger;
|
|
1143
|
+
const request = yield oci_common_1.composeRequest({
|
|
1144
|
+
baseEndpoint: this._endpoint,
|
|
1145
|
+
defaultHeaders: this._defaultHeaders,
|
|
1146
|
+
path: "/dbSystems/{dbSystemId}/primaryDbInstance",
|
|
1147
|
+
method: "GET",
|
|
1148
|
+
pathParams: pathParams,
|
|
1149
|
+
headerParams: headerParams,
|
|
1150
|
+
queryParams: queryParams
|
|
1151
|
+
});
|
|
1152
|
+
try {
|
|
1153
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1154
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1155
|
+
responseObject: {},
|
|
1156
|
+
body: yield response.json(),
|
|
1157
|
+
bodyKey: "primaryDbInstanceDetails",
|
|
1158
|
+
bodyModel: model.PrimaryDbInstanceDetails,
|
|
1159
|
+
type: "model.PrimaryDbInstanceDetails",
|
|
1160
|
+
responseHeaders: [
|
|
1161
|
+
{
|
|
1162
|
+
value: response.headers.get("etag"),
|
|
1163
|
+
key: "etag",
|
|
1164
|
+
dataType: "string"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
value: response.headers.get("opc-request-id"),
|
|
1168
|
+
key: "opcRequestId",
|
|
1169
|
+
dataType: "string"
|
|
1170
|
+
}
|
|
1171
|
+
]
|
|
1172
|
+
});
|
|
1173
|
+
return sdkResponse;
|
|
1174
|
+
}
|
|
1175
|
+
catch (err) {
|
|
1176
|
+
throw err;
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Gets details of the work request with the given ID.
|
|
1182
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1183
|
+
* @param GetWorkRequestRequest
|
|
1184
|
+
* @return GetWorkRequestResponse
|
|
1185
|
+
* @throws OciError when an error occurs
|
|
1186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1187
|
+
*/
|
|
1188
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1190
|
+
if (this.logger)
|
|
1191
|
+
this.logger.debug("Calling operation PostgresqlClient#getWorkRequest.");
|
|
1192
|
+
const operationName = "getWorkRequest";
|
|
1193
|
+
const apiReferenceLink = "";
|
|
1194
|
+
const pathParams = {
|
|
1195
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1196
|
+
};
|
|
1197
|
+
const queryParams = {};
|
|
1198
|
+
let headerParams = {
|
|
1199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1200
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1201
|
+
};
|
|
1202
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1203
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1204
|
+
if (this.logger)
|
|
1205
|
+
retrier.logger = this.logger;
|
|
1206
|
+
const request = yield oci_common_1.composeRequest({
|
|
1207
|
+
baseEndpoint: this._endpoint,
|
|
1208
|
+
defaultHeaders: this._defaultHeaders,
|
|
1209
|
+
path: "/workRequests/{workRequestId}",
|
|
1210
|
+
method: "GET",
|
|
1211
|
+
pathParams: pathParams,
|
|
1212
|
+
headerParams: headerParams,
|
|
1213
|
+
queryParams: queryParams
|
|
1214
|
+
});
|
|
1215
|
+
try {
|
|
1216
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1217
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1218
|
+
responseObject: {},
|
|
1219
|
+
body: yield response.json(),
|
|
1220
|
+
bodyKey: "workRequest",
|
|
1221
|
+
bodyModel: model.WorkRequest,
|
|
1222
|
+
type: "model.WorkRequest",
|
|
1223
|
+
responseHeaders: [
|
|
1224
|
+
{
|
|
1225
|
+
value: response.headers.get("etag"),
|
|
1226
|
+
key: "etag",
|
|
1227
|
+
dataType: "string"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
value: response.headers.get("opc-request-id"),
|
|
1231
|
+
key: "opcRequestId",
|
|
1232
|
+
dataType: "string"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
value: response.headers.get("retry-after"),
|
|
1236
|
+
key: "retryAfter",
|
|
1237
|
+
dataType: "number"
|
|
1238
|
+
}
|
|
1239
|
+
]
|
|
1240
|
+
});
|
|
1241
|
+
return sdkResponse;
|
|
1242
|
+
}
|
|
1243
|
+
catch (err) {
|
|
1244
|
+
throw err;
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Returns a list of Backup.
|
|
1250
|
+
*
|
|
1251
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1252
|
+
* @param ListBackupsRequest
|
|
1253
|
+
* @return ListBackupsResponse
|
|
1254
|
+
* @throws OciError when an error occurs
|
|
1255
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListBackups.ts.html |here} to see how to use ListBackups API.
|
|
1256
|
+
*/
|
|
1257
|
+
listBackups(listBackupsRequest) {
|
|
1258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1259
|
+
if (this.logger)
|
|
1260
|
+
this.logger.debug("Calling operation PostgresqlClient#listBackups.");
|
|
1261
|
+
const operationName = "listBackups";
|
|
1262
|
+
const apiReferenceLink = "";
|
|
1263
|
+
const pathParams = {};
|
|
1264
|
+
const queryParams = {
|
|
1265
|
+
"compartmentId": listBackupsRequest.compartmentId,
|
|
1266
|
+
"timeStarted": listBackupsRequest.timeStarted,
|
|
1267
|
+
"timeEnded": listBackupsRequest.timeEnded,
|
|
1268
|
+
"lifecycleState": listBackupsRequest.lifecycleState,
|
|
1269
|
+
"displayName": listBackupsRequest.displayName,
|
|
1270
|
+
"backupId": listBackupsRequest.backupId,
|
|
1271
|
+
"id": listBackupsRequest.id,
|
|
1272
|
+
"limit": listBackupsRequest.limit,
|
|
1273
|
+
"page": listBackupsRequest.page,
|
|
1274
|
+
"sortOrder": listBackupsRequest.sortOrder,
|
|
1275
|
+
"sortBy": listBackupsRequest.sortBy
|
|
1276
|
+
};
|
|
1277
|
+
let headerParams = {
|
|
1278
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1279
|
+
"opc-request-id": listBackupsRequest.opcRequestId
|
|
1280
|
+
};
|
|
1281
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1282
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBackupsRequest.retryConfiguration, specRetryConfiguration);
|
|
1283
|
+
if (this.logger)
|
|
1284
|
+
retrier.logger = this.logger;
|
|
1285
|
+
const request = yield oci_common_1.composeRequest({
|
|
1286
|
+
baseEndpoint: this._endpoint,
|
|
1287
|
+
defaultHeaders: this._defaultHeaders,
|
|
1288
|
+
path: "/backups",
|
|
1289
|
+
method: "GET",
|
|
1290
|
+
pathParams: pathParams,
|
|
1291
|
+
headerParams: headerParams,
|
|
1292
|
+
queryParams: queryParams
|
|
1293
|
+
});
|
|
1294
|
+
try {
|
|
1295
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1296
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1297
|
+
responseObject: {},
|
|
1298
|
+
body: yield response.json(),
|
|
1299
|
+
bodyKey: "backupCollection",
|
|
1300
|
+
bodyModel: model.BackupCollection,
|
|
1301
|
+
type: "model.BackupCollection",
|
|
1302
|
+
responseHeaders: [
|
|
1303
|
+
{
|
|
1304
|
+
value: response.headers.get("opc-request-id"),
|
|
1305
|
+
key: "opcRequestId",
|
|
1306
|
+
dataType: "string"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
value: response.headers.get("opc-next-page"),
|
|
1310
|
+
key: "opcNextPage",
|
|
1311
|
+
dataType: "string"
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
});
|
|
1315
|
+
return sdkResponse;
|
|
1316
|
+
}
|
|
1317
|
+
catch (err) {
|
|
1318
|
+
throw err;
|
|
1319
|
+
}
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Returns a list of Configurations.
|
|
1324
|
+
*
|
|
1325
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1326
|
+
* @param ListConfigurationsRequest
|
|
1327
|
+
* @return ListConfigurationsResponse
|
|
1328
|
+
* @throws OciError when an error occurs
|
|
1329
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListConfigurations.ts.html |here} to see how to use ListConfigurations API.
|
|
1330
|
+
*/
|
|
1331
|
+
listConfigurations(listConfigurationsRequest) {
|
|
1332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1333
|
+
if (this.logger)
|
|
1334
|
+
this.logger.debug("Calling operation PostgresqlClient#listConfigurations.");
|
|
1335
|
+
const operationName = "listConfigurations";
|
|
1336
|
+
const apiReferenceLink = "";
|
|
1337
|
+
const pathParams = {};
|
|
1338
|
+
const queryParams = {
|
|
1339
|
+
"compartmentId": listConfigurationsRequest.compartmentId,
|
|
1340
|
+
"lifecycleState": listConfigurationsRequest.lifecycleState,
|
|
1341
|
+
"displayName": listConfigurationsRequest.displayName,
|
|
1342
|
+
"dbVersion": listConfigurationsRequest.dbVersion,
|
|
1343
|
+
"shape": listConfigurationsRequest.shape,
|
|
1344
|
+
"configurationId": listConfigurationsRequest.configurationId,
|
|
1345
|
+
"limit": listConfigurationsRequest.limit,
|
|
1346
|
+
"page": listConfigurationsRequest.page,
|
|
1347
|
+
"sortOrder": listConfigurationsRequest.sortOrder,
|
|
1348
|
+
"sortBy": listConfigurationsRequest.sortBy
|
|
1349
|
+
};
|
|
1350
|
+
let headerParams = {
|
|
1351
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1352
|
+
"opc-request-id": listConfigurationsRequest.opcRequestId
|
|
1353
|
+
};
|
|
1354
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1355
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listConfigurationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1356
|
+
if (this.logger)
|
|
1357
|
+
retrier.logger = this.logger;
|
|
1358
|
+
const request = yield oci_common_1.composeRequest({
|
|
1359
|
+
baseEndpoint: this._endpoint,
|
|
1360
|
+
defaultHeaders: this._defaultHeaders,
|
|
1361
|
+
path: "/configurations",
|
|
1362
|
+
method: "GET",
|
|
1363
|
+
pathParams: pathParams,
|
|
1364
|
+
headerParams: headerParams,
|
|
1365
|
+
queryParams: queryParams
|
|
1366
|
+
});
|
|
1367
|
+
try {
|
|
1368
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1369
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1370
|
+
responseObject: {},
|
|
1371
|
+
body: yield response.json(),
|
|
1372
|
+
bodyKey: "configurationCollection",
|
|
1373
|
+
bodyModel: model.ConfigurationCollection,
|
|
1374
|
+
type: "model.ConfigurationCollection",
|
|
1375
|
+
responseHeaders: [
|
|
1376
|
+
{
|
|
1377
|
+
value: response.headers.get("opc-request-id"),
|
|
1378
|
+
key: "opcRequestId",
|
|
1379
|
+
dataType: "string"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
value: response.headers.get("opc-next-page"),
|
|
1383
|
+
key: "opcNextPage",
|
|
1384
|
+
dataType: "string"
|
|
1385
|
+
}
|
|
1386
|
+
]
|
|
1387
|
+
});
|
|
1388
|
+
return sdkResponse;
|
|
1389
|
+
}
|
|
1390
|
+
catch (err) {
|
|
1391
|
+
throw err;
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Returns a list of DbSystems.
|
|
1397
|
+
*
|
|
1398
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1399
|
+
* @param ListDbSystemsRequest
|
|
1400
|
+
* @return ListDbSystemsResponse
|
|
1401
|
+
* @throws OciError when an error occurs
|
|
1402
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListDbSystems.ts.html |here} to see how to use ListDbSystems API.
|
|
1403
|
+
*/
|
|
1404
|
+
listDbSystems(listDbSystemsRequest) {
|
|
1405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1406
|
+
if (this.logger)
|
|
1407
|
+
this.logger.debug("Calling operation PostgresqlClient#listDbSystems.");
|
|
1408
|
+
const operationName = "listDbSystems";
|
|
1409
|
+
const apiReferenceLink = "";
|
|
1410
|
+
const pathParams = {};
|
|
1411
|
+
const queryParams = {
|
|
1412
|
+
"compartmentId": listDbSystemsRequest.compartmentId,
|
|
1413
|
+
"lifecycleState": listDbSystemsRequest.lifecycleState,
|
|
1414
|
+
"displayName": listDbSystemsRequest.displayName,
|
|
1415
|
+
"id": listDbSystemsRequest.id,
|
|
1416
|
+
"limit": listDbSystemsRequest.limit,
|
|
1417
|
+
"page": listDbSystemsRequest.page,
|
|
1418
|
+
"sortOrder": listDbSystemsRequest.sortOrder,
|
|
1419
|
+
"sortBy": listDbSystemsRequest.sortBy
|
|
1420
|
+
};
|
|
1421
|
+
let headerParams = {
|
|
1422
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1423
|
+
"opc-request-id": listDbSystemsRequest.opcRequestId
|
|
1424
|
+
};
|
|
1425
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1426
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDbSystemsRequest.retryConfiguration, specRetryConfiguration);
|
|
1427
|
+
if (this.logger)
|
|
1428
|
+
retrier.logger = this.logger;
|
|
1429
|
+
const request = yield oci_common_1.composeRequest({
|
|
1430
|
+
baseEndpoint: this._endpoint,
|
|
1431
|
+
defaultHeaders: this._defaultHeaders,
|
|
1432
|
+
path: "/dbSystems",
|
|
1433
|
+
method: "GET",
|
|
1434
|
+
pathParams: pathParams,
|
|
1435
|
+
headerParams: headerParams,
|
|
1436
|
+
queryParams: queryParams
|
|
1437
|
+
});
|
|
1438
|
+
try {
|
|
1439
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1440
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1441
|
+
responseObject: {},
|
|
1442
|
+
body: yield response.json(),
|
|
1443
|
+
bodyKey: "dbSystemCollection",
|
|
1444
|
+
bodyModel: model.DbSystemCollection,
|
|
1445
|
+
type: "model.DbSystemCollection",
|
|
1446
|
+
responseHeaders: [
|
|
1447
|
+
{
|
|
1448
|
+
value: response.headers.get("opc-request-id"),
|
|
1449
|
+
key: "opcRequestId",
|
|
1450
|
+
dataType: "string"
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
value: response.headers.get("opc-next-page"),
|
|
1454
|
+
key: "opcNextPage",
|
|
1455
|
+
dataType: "string"
|
|
1456
|
+
}
|
|
1457
|
+
]
|
|
1458
|
+
});
|
|
1459
|
+
return sdkResponse;
|
|
1460
|
+
}
|
|
1461
|
+
catch (err) {
|
|
1462
|
+
throw err;
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Returns a list of Default Configurations.
|
|
1468
|
+
*
|
|
1469
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1470
|
+
* @param ListDefaultConfigurationsRequest
|
|
1471
|
+
* @return ListDefaultConfigurationsResponse
|
|
1472
|
+
* @throws OciError when an error occurs
|
|
1473
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListDefaultConfigurations.ts.html |here} to see how to use ListDefaultConfigurations API.
|
|
1474
|
+
*/
|
|
1475
|
+
listDefaultConfigurations(listDefaultConfigurationsRequest) {
|
|
1476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1477
|
+
if (this.logger)
|
|
1478
|
+
this.logger.debug("Calling operation PostgresqlClient#listDefaultConfigurations.");
|
|
1479
|
+
const operationName = "listDefaultConfigurations";
|
|
1480
|
+
const apiReferenceLink = "";
|
|
1481
|
+
const pathParams = {};
|
|
1482
|
+
const queryParams = {
|
|
1483
|
+
"lifecycleState": listDefaultConfigurationsRequest.lifecycleState,
|
|
1484
|
+
"displayName": listDefaultConfigurationsRequest.displayName,
|
|
1485
|
+
"dbVersion": listDefaultConfigurationsRequest.dbVersion,
|
|
1486
|
+
"shape": listDefaultConfigurationsRequest.shape,
|
|
1487
|
+
"configurationId": listDefaultConfigurationsRequest.configurationId,
|
|
1488
|
+
"limit": listDefaultConfigurationsRequest.limit,
|
|
1489
|
+
"page": listDefaultConfigurationsRequest.page,
|
|
1490
|
+
"sortOrder": listDefaultConfigurationsRequest.sortOrder,
|
|
1491
|
+
"sortBy": listDefaultConfigurationsRequest.sortBy
|
|
1492
|
+
};
|
|
1493
|
+
let headerParams = {
|
|
1494
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1495
|
+
"opc-request-id": listDefaultConfigurationsRequest.opcRequestId
|
|
1496
|
+
};
|
|
1497
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1498
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDefaultConfigurationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1499
|
+
if (this.logger)
|
|
1500
|
+
retrier.logger = this.logger;
|
|
1501
|
+
const request = yield oci_common_1.composeRequest({
|
|
1502
|
+
baseEndpoint: this._endpoint,
|
|
1503
|
+
defaultHeaders: this._defaultHeaders,
|
|
1504
|
+
path: "/defaultConfigurations",
|
|
1505
|
+
method: "GET",
|
|
1506
|
+
pathParams: pathParams,
|
|
1507
|
+
headerParams: headerParams,
|
|
1508
|
+
queryParams: queryParams
|
|
1509
|
+
});
|
|
1510
|
+
try {
|
|
1511
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1512
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1513
|
+
responseObject: {},
|
|
1514
|
+
body: yield response.json(),
|
|
1515
|
+
bodyKey: "defaultConfigurationCollection",
|
|
1516
|
+
bodyModel: model.DefaultConfigurationCollection,
|
|
1517
|
+
type: "model.DefaultConfigurationCollection",
|
|
1518
|
+
responseHeaders: [
|
|
1519
|
+
{
|
|
1520
|
+
value: response.headers.get("opc-request-id"),
|
|
1521
|
+
key: "opcRequestId",
|
|
1522
|
+
dataType: "string"
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
value: response.headers.get("opc-next-page"),
|
|
1526
|
+
key: "opcNextPage",
|
|
1527
|
+
dataType: "string"
|
|
1528
|
+
}
|
|
1529
|
+
]
|
|
1530
|
+
});
|
|
1531
|
+
return sdkResponse;
|
|
1532
|
+
}
|
|
1533
|
+
catch (err) {
|
|
1534
|
+
throw err;
|
|
1535
|
+
}
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* Returns the list of shapes allowed in the region.
|
|
1540
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1541
|
+
* @param ListShapesRequest
|
|
1542
|
+
* @return ListShapesResponse
|
|
1543
|
+
* @throws OciError when an error occurs
|
|
1544
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListShapes.ts.html |here} to see how to use ListShapes API.
|
|
1545
|
+
*/
|
|
1546
|
+
listShapes(listShapesRequest) {
|
|
1547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1548
|
+
if (this.logger)
|
|
1549
|
+
this.logger.debug("Calling operation PostgresqlClient#listShapes.");
|
|
1550
|
+
const operationName = "listShapes";
|
|
1551
|
+
const apiReferenceLink = "";
|
|
1552
|
+
const pathParams = {};
|
|
1553
|
+
const queryParams = {
|
|
1554
|
+
"compartmentId": listShapesRequest.compartmentId,
|
|
1555
|
+
"id": listShapesRequest.id,
|
|
1556
|
+
"limit": listShapesRequest.limit,
|
|
1557
|
+
"page": listShapesRequest.page,
|
|
1558
|
+
"sortOrder": listShapesRequest.sortOrder,
|
|
1559
|
+
"sortBy": listShapesRequest.sortBy
|
|
1560
|
+
};
|
|
1561
|
+
let headerParams = {
|
|
1562
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1563
|
+
"opc-request-id": listShapesRequest.opcRequestId
|
|
1564
|
+
};
|
|
1565
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1566
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listShapesRequest.retryConfiguration, specRetryConfiguration);
|
|
1567
|
+
if (this.logger)
|
|
1568
|
+
retrier.logger = this.logger;
|
|
1569
|
+
const request = yield oci_common_1.composeRequest({
|
|
1570
|
+
baseEndpoint: this._endpoint,
|
|
1571
|
+
defaultHeaders: this._defaultHeaders,
|
|
1572
|
+
path: "/shapes",
|
|
1573
|
+
method: "GET",
|
|
1574
|
+
pathParams: pathParams,
|
|
1575
|
+
headerParams: headerParams,
|
|
1576
|
+
queryParams: queryParams
|
|
1577
|
+
});
|
|
1578
|
+
try {
|
|
1579
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1580
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1581
|
+
responseObject: {},
|
|
1582
|
+
body: yield response.json(),
|
|
1583
|
+
bodyKey: "shapeCollection",
|
|
1584
|
+
bodyModel: model.ShapeCollection,
|
|
1585
|
+
type: "model.ShapeCollection",
|
|
1586
|
+
responseHeaders: [
|
|
1587
|
+
{
|
|
1588
|
+
value: response.headers.get("opc-request-id"),
|
|
1589
|
+
key: "opcRequestId",
|
|
1590
|
+
dataType: "string"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
value: response.headers.get("opc-next-page"),
|
|
1594
|
+
key: "opcNextPage",
|
|
1595
|
+
dataType: "string"
|
|
1596
|
+
}
|
|
1597
|
+
]
|
|
1598
|
+
});
|
|
1599
|
+
return sdkResponse;
|
|
1600
|
+
}
|
|
1601
|
+
catch (err) {
|
|
1602
|
+
throw err;
|
|
1603
|
+
}
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
1608
|
+
*
|
|
1609
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1610
|
+
* @param ListWorkRequestErrorsRequest
|
|
1611
|
+
* @return ListWorkRequestErrorsResponse
|
|
1612
|
+
* @throws OciError when an error occurs
|
|
1613
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1614
|
+
*/
|
|
1615
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1616
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1617
|
+
if (this.logger)
|
|
1618
|
+
this.logger.debug("Calling operation PostgresqlClient#listWorkRequestErrors.");
|
|
1619
|
+
const operationName = "listWorkRequestErrors";
|
|
1620
|
+
const apiReferenceLink = "";
|
|
1621
|
+
const pathParams = {
|
|
1622
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1623
|
+
};
|
|
1624
|
+
const queryParams = {
|
|
1625
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1626
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1627
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1628
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1629
|
+
};
|
|
1630
|
+
let headerParams = {
|
|
1631
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1632
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1633
|
+
};
|
|
1634
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1635
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1636
|
+
if (this.logger)
|
|
1637
|
+
retrier.logger = this.logger;
|
|
1638
|
+
const request = yield oci_common_1.composeRequest({
|
|
1639
|
+
baseEndpoint: this._endpoint,
|
|
1640
|
+
defaultHeaders: this._defaultHeaders,
|
|
1641
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1642
|
+
method: "GET",
|
|
1643
|
+
pathParams: pathParams,
|
|
1644
|
+
headerParams: headerParams,
|
|
1645
|
+
queryParams: queryParams
|
|
1646
|
+
});
|
|
1647
|
+
try {
|
|
1648
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1649
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1650
|
+
responseObject: {},
|
|
1651
|
+
body: yield response.json(),
|
|
1652
|
+
bodyKey: "workRequestErrorCollection",
|
|
1653
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1654
|
+
type: "model.WorkRequestErrorCollection",
|
|
1655
|
+
responseHeaders: [
|
|
1656
|
+
{
|
|
1657
|
+
value: response.headers.get("opc-next-page"),
|
|
1658
|
+
key: "opcNextPage",
|
|
1659
|
+
dataType: "string"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
value: response.headers.get("opc-request-id"),
|
|
1663
|
+
key: "opcRequestId",
|
|
1664
|
+
dataType: "string"
|
|
1665
|
+
}
|
|
1666
|
+
]
|
|
1667
|
+
});
|
|
1668
|
+
return sdkResponse;
|
|
1669
|
+
}
|
|
1670
|
+
catch (err) {
|
|
1671
|
+
throw err;
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
1677
|
+
*
|
|
1678
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1679
|
+
* @param ListWorkRequestLogsRequest
|
|
1680
|
+
* @return ListWorkRequestLogsResponse
|
|
1681
|
+
* @throws OciError when an error occurs
|
|
1682
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1683
|
+
*/
|
|
1684
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1686
|
+
if (this.logger)
|
|
1687
|
+
this.logger.debug("Calling operation PostgresqlClient#listWorkRequestLogs.");
|
|
1688
|
+
const operationName = "listWorkRequestLogs";
|
|
1689
|
+
const apiReferenceLink = "";
|
|
1690
|
+
const pathParams = {
|
|
1691
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1692
|
+
};
|
|
1693
|
+
const queryParams = {
|
|
1694
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1695
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1696
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1697
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1698
|
+
};
|
|
1699
|
+
let headerParams = {
|
|
1700
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1701
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1702
|
+
};
|
|
1703
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1704
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1705
|
+
if (this.logger)
|
|
1706
|
+
retrier.logger = this.logger;
|
|
1707
|
+
const request = yield oci_common_1.composeRequest({
|
|
1708
|
+
baseEndpoint: this._endpoint,
|
|
1709
|
+
defaultHeaders: this._defaultHeaders,
|
|
1710
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1711
|
+
method: "GET",
|
|
1712
|
+
pathParams: pathParams,
|
|
1713
|
+
headerParams: headerParams,
|
|
1714
|
+
queryParams: queryParams
|
|
1715
|
+
});
|
|
1716
|
+
try {
|
|
1717
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1718
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1719
|
+
responseObject: {},
|
|
1720
|
+
body: yield response.json(),
|
|
1721
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1722
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1723
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1724
|
+
responseHeaders: [
|
|
1725
|
+
{
|
|
1726
|
+
value: response.headers.get("opc-next-page"),
|
|
1727
|
+
key: "opcNextPage",
|
|
1728
|
+
dataType: "string"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
value: response.headers.get("opc-request-id"),
|
|
1732
|
+
key: "opcRequestId",
|
|
1733
|
+
dataType: "string"
|
|
1734
|
+
}
|
|
1735
|
+
]
|
|
1736
|
+
});
|
|
1737
|
+
return sdkResponse;
|
|
1738
|
+
}
|
|
1739
|
+
catch (err) {
|
|
1740
|
+
throw err;
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* Lists the work requests in a compartment.
|
|
1746
|
+
*
|
|
1747
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1748
|
+
* @param ListWorkRequestsRequest
|
|
1749
|
+
* @return ListWorkRequestsResponse
|
|
1750
|
+
* @throws OciError when an error occurs
|
|
1751
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1752
|
+
*/
|
|
1753
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1755
|
+
if (this.logger)
|
|
1756
|
+
this.logger.debug("Calling operation PostgresqlClient#listWorkRequests.");
|
|
1757
|
+
const operationName = "listWorkRequests";
|
|
1758
|
+
const apiReferenceLink = "";
|
|
1759
|
+
const pathParams = {};
|
|
1760
|
+
const queryParams = {
|
|
1761
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1762
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1763
|
+
"status": listWorkRequestsRequest.status,
|
|
1764
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1765
|
+
"page": listWorkRequestsRequest.page,
|
|
1766
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1767
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1768
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1769
|
+
};
|
|
1770
|
+
let headerParams = {
|
|
1771
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1772
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1773
|
+
};
|
|
1774
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1775
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1776
|
+
if (this.logger)
|
|
1777
|
+
retrier.logger = this.logger;
|
|
1778
|
+
const request = yield oci_common_1.composeRequest({
|
|
1779
|
+
baseEndpoint: this._endpoint,
|
|
1780
|
+
defaultHeaders: this._defaultHeaders,
|
|
1781
|
+
path: "/workRequests",
|
|
1782
|
+
method: "GET",
|
|
1783
|
+
pathParams: pathParams,
|
|
1784
|
+
headerParams: headerParams,
|
|
1785
|
+
queryParams: queryParams
|
|
1786
|
+
});
|
|
1787
|
+
try {
|
|
1788
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1789
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1790
|
+
responseObject: {},
|
|
1791
|
+
body: yield response.json(),
|
|
1792
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1793
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1794
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1795
|
+
responseHeaders: [
|
|
1796
|
+
{
|
|
1797
|
+
value: response.headers.get("opc-request-id"),
|
|
1798
|
+
key: "opcRequestId",
|
|
1799
|
+
dataType: "string"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
value: response.headers.get("opc-next-page"),
|
|
1803
|
+
key: "opcNextPage",
|
|
1804
|
+
dataType: "string"
|
|
1805
|
+
}
|
|
1806
|
+
]
|
|
1807
|
+
});
|
|
1808
|
+
return sdkResponse;
|
|
1809
|
+
}
|
|
1810
|
+
catch (err) {
|
|
1811
|
+
throw err;
|
|
1812
|
+
}
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* Patching operation allows to add DbInstances to the DbSystem or remove them.
|
|
1817
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1818
|
+
* @param PatchDbSystemRequest
|
|
1819
|
+
* @return PatchDbSystemResponse
|
|
1820
|
+
* @throws OciError when an error occurs
|
|
1821
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/PatchDbSystem.ts.html |here} to see how to use PatchDbSystem API.
|
|
1822
|
+
*/
|
|
1823
|
+
patchDbSystem(patchDbSystemRequest) {
|
|
1824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1825
|
+
if (this.logger)
|
|
1826
|
+
this.logger.debug("Calling operation PostgresqlClient#patchDbSystem.");
|
|
1827
|
+
const operationName = "patchDbSystem";
|
|
1828
|
+
const apiReferenceLink = "";
|
|
1829
|
+
const pathParams = {
|
|
1830
|
+
"{dbSystemId}": patchDbSystemRequest.dbSystemId
|
|
1831
|
+
};
|
|
1832
|
+
const queryParams = {};
|
|
1833
|
+
let headerParams = {
|
|
1834
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1835
|
+
"if-match": patchDbSystemRequest.ifMatch,
|
|
1836
|
+
"opc-request-id": patchDbSystemRequest.opcRequestId
|
|
1837
|
+
};
|
|
1838
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1839
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1840
|
+
if (this.logger)
|
|
1841
|
+
retrier.logger = this.logger;
|
|
1842
|
+
const request = yield oci_common_1.composeRequest({
|
|
1843
|
+
baseEndpoint: this._endpoint,
|
|
1844
|
+
defaultHeaders: this._defaultHeaders,
|
|
1845
|
+
path: "/dbSystems/{dbSystemId}",
|
|
1846
|
+
method: "PATCH",
|
|
1847
|
+
bodyContent: common.ObjectSerializer.serialize(patchDbSystemRequest.patchDbSystemDetails, "PatchDbSystemDetails", model.PatchDbSystemDetails.getJsonObj),
|
|
1848
|
+
pathParams: pathParams,
|
|
1849
|
+
headerParams: headerParams,
|
|
1850
|
+
queryParams: queryParams
|
|
1851
|
+
});
|
|
1852
|
+
try {
|
|
1853
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1854
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1855
|
+
responseObject: {},
|
|
1856
|
+
responseHeaders: [
|
|
1857
|
+
{
|
|
1858
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1859
|
+
key: "opcWorkRequestId",
|
|
1860
|
+
dataType: "string"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
value: response.headers.get("opc-request-id"),
|
|
1864
|
+
key: "opcRequestId",
|
|
1865
|
+
dataType: "string"
|
|
1866
|
+
}
|
|
1867
|
+
]
|
|
1868
|
+
});
|
|
1869
|
+
return sdkResponse;
|
|
1870
|
+
}
|
|
1871
|
+
catch (err) {
|
|
1872
|
+
throw err;
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1876
|
+
/**
|
|
1877
|
+
* Resets the Db system's master password.
|
|
1878
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1879
|
+
* @param ResetMasterUserPasswordRequest
|
|
1880
|
+
* @return ResetMasterUserPasswordResponse
|
|
1881
|
+
* @throws OciError when an error occurs
|
|
1882
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/ResetMasterUserPassword.ts.html |here} to see how to use ResetMasterUserPassword API.
|
|
1883
|
+
*/
|
|
1884
|
+
resetMasterUserPassword(resetMasterUserPasswordRequest) {
|
|
1885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1886
|
+
if (this.logger)
|
|
1887
|
+
this.logger.debug("Calling operation PostgresqlClient#resetMasterUserPassword.");
|
|
1888
|
+
const operationName = "resetMasterUserPassword";
|
|
1889
|
+
const apiReferenceLink = "";
|
|
1890
|
+
const pathParams = {
|
|
1891
|
+
"{dbSystemId}": resetMasterUserPasswordRequest.dbSystemId
|
|
1892
|
+
};
|
|
1893
|
+
const queryParams = {};
|
|
1894
|
+
let headerParams = {
|
|
1895
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1896
|
+
"if-match": resetMasterUserPasswordRequest.ifMatch,
|
|
1897
|
+
"opc-request-id": resetMasterUserPasswordRequest.opcRequestId,
|
|
1898
|
+
"opc-retry-token": resetMasterUserPasswordRequest.opcRetryToken
|
|
1899
|
+
};
|
|
1900
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1901
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resetMasterUserPasswordRequest.retryConfiguration, specRetryConfiguration);
|
|
1902
|
+
if (this.logger)
|
|
1903
|
+
retrier.logger = this.logger;
|
|
1904
|
+
const request = yield oci_common_1.composeRequest({
|
|
1905
|
+
baseEndpoint: this._endpoint,
|
|
1906
|
+
defaultHeaders: this._defaultHeaders,
|
|
1907
|
+
path: "/dbSystems/{dbSystemId}/actions/resetMasterUserPassword",
|
|
1908
|
+
method: "POST",
|
|
1909
|
+
bodyContent: common.ObjectSerializer.serialize(resetMasterUserPasswordRequest.resetMasterUserPasswordDetails, "ResetMasterUserPasswordDetails", model.ResetMasterUserPasswordDetails.getJsonObj),
|
|
1910
|
+
pathParams: pathParams,
|
|
1911
|
+
headerParams: headerParams,
|
|
1912
|
+
queryParams: queryParams
|
|
1913
|
+
});
|
|
1914
|
+
try {
|
|
1915
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1916
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1917
|
+
responseObject: {},
|
|
1918
|
+
responseHeaders: [
|
|
1919
|
+
{
|
|
1920
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1921
|
+
key: "opcWorkRequestId",
|
|
1922
|
+
dataType: "string"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
value: response.headers.get("opc-request-id"),
|
|
1926
|
+
key: "opcRequestId",
|
|
1927
|
+
dataType: "string"
|
|
1928
|
+
}
|
|
1929
|
+
]
|
|
1930
|
+
});
|
|
1931
|
+
return sdkResponse;
|
|
1932
|
+
}
|
|
1933
|
+
catch (err) {
|
|
1934
|
+
throw err;
|
|
1935
|
+
}
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* Restarts the running DbInstance.
|
|
1940
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1941
|
+
* @param RestartDbInstanceInDbSystemRequest
|
|
1942
|
+
* @return RestartDbInstanceInDbSystemResponse
|
|
1943
|
+
* @throws OciError when an error occurs
|
|
1944
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/RestartDbInstanceInDbSystem.ts.html |here} to see how to use RestartDbInstanceInDbSystem API.
|
|
1945
|
+
*/
|
|
1946
|
+
restartDbInstanceInDbSystem(restartDbInstanceInDbSystemRequest) {
|
|
1947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1948
|
+
if (this.logger)
|
|
1949
|
+
this.logger.debug("Calling operation PostgresqlClient#restartDbInstanceInDbSystem.");
|
|
1950
|
+
const operationName = "restartDbInstanceInDbSystem";
|
|
1951
|
+
const apiReferenceLink = "";
|
|
1952
|
+
const pathParams = {
|
|
1953
|
+
"{dbSystemId}": restartDbInstanceInDbSystemRequest.dbSystemId
|
|
1954
|
+
};
|
|
1955
|
+
const queryParams = {};
|
|
1956
|
+
let headerParams = {
|
|
1957
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1958
|
+
"if-match": restartDbInstanceInDbSystemRequest.ifMatch,
|
|
1959
|
+
"opc-request-id": restartDbInstanceInDbSystemRequest.opcRequestId,
|
|
1960
|
+
"opc-retry-token": restartDbInstanceInDbSystemRequest.opcRetryToken
|
|
1961
|
+
};
|
|
1962
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1963
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartDbInstanceInDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1964
|
+
if (this.logger)
|
|
1965
|
+
retrier.logger = this.logger;
|
|
1966
|
+
const request = yield oci_common_1.composeRequest({
|
|
1967
|
+
baseEndpoint: this._endpoint,
|
|
1968
|
+
defaultHeaders: this._defaultHeaders,
|
|
1969
|
+
path: "/dbSystems/{dbSystemId}/actions/restartDbInstance",
|
|
1970
|
+
method: "POST",
|
|
1971
|
+
bodyContent: common.ObjectSerializer.serialize(restartDbInstanceInDbSystemRequest.restartDbInstanceInDbSystemDetails, "RestartDbInstanceInDbSystemDetails", model.RestartDbInstanceInDbSystemDetails.getJsonObj),
|
|
1972
|
+
pathParams: pathParams,
|
|
1973
|
+
headerParams: headerParams,
|
|
1974
|
+
queryParams: queryParams
|
|
1975
|
+
});
|
|
1976
|
+
try {
|
|
1977
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1978
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1979
|
+
responseObject: {},
|
|
1980
|
+
responseHeaders: [
|
|
1981
|
+
{
|
|
1982
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1983
|
+
key: "opcWorkRequestId",
|
|
1984
|
+
dataType: "string"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
value: response.headers.get("opc-request-id"),
|
|
1988
|
+
key: "opcRequestId",
|
|
1989
|
+
dataType: "string"
|
|
1990
|
+
}
|
|
1991
|
+
]
|
|
1992
|
+
});
|
|
1993
|
+
return sdkResponse;
|
|
1994
|
+
}
|
|
1995
|
+
catch (err) {
|
|
1996
|
+
throw err;
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* Restore the Db System.
|
|
2002
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2003
|
+
* @param RestoreDbSystemRequest
|
|
2004
|
+
* @return RestoreDbSystemResponse
|
|
2005
|
+
* @throws OciError when an error occurs
|
|
2006
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/RestoreDbSystem.ts.html |here} to see how to use RestoreDbSystem API.
|
|
2007
|
+
*/
|
|
2008
|
+
restoreDbSystem(restoreDbSystemRequest) {
|
|
2009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2010
|
+
if (this.logger)
|
|
2011
|
+
this.logger.debug("Calling operation PostgresqlClient#restoreDbSystem.");
|
|
2012
|
+
const operationName = "restoreDbSystem";
|
|
2013
|
+
const apiReferenceLink = "";
|
|
2014
|
+
const pathParams = {
|
|
2015
|
+
"{dbSystemId}": restoreDbSystemRequest.dbSystemId
|
|
2016
|
+
};
|
|
2017
|
+
const queryParams = {};
|
|
2018
|
+
let headerParams = {
|
|
2019
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2020
|
+
"if-match": restoreDbSystemRequest.ifMatch,
|
|
2021
|
+
"opc-request-id": restoreDbSystemRequest.opcRequestId,
|
|
2022
|
+
"opc-retry-token": restoreDbSystemRequest.opcRetryToken
|
|
2023
|
+
};
|
|
2024
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2025
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
2026
|
+
if (this.logger)
|
|
2027
|
+
retrier.logger = this.logger;
|
|
2028
|
+
const request = yield oci_common_1.composeRequest({
|
|
2029
|
+
baseEndpoint: this._endpoint,
|
|
2030
|
+
defaultHeaders: this._defaultHeaders,
|
|
2031
|
+
path: "/dbSystems/{dbSystemId}/actions/restore",
|
|
2032
|
+
method: "POST",
|
|
2033
|
+
bodyContent: common.ObjectSerializer.serialize(restoreDbSystemRequest.restoreDbSystemDetails, "RestoreDbSystemDetails", model.RestoreDbSystemDetails.getJsonObj),
|
|
2034
|
+
pathParams: pathParams,
|
|
2035
|
+
headerParams: headerParams,
|
|
2036
|
+
queryParams: queryParams
|
|
2037
|
+
});
|
|
2038
|
+
try {
|
|
2039
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2040
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2041
|
+
responseObject: {},
|
|
2042
|
+
responseHeaders: [
|
|
2043
|
+
{
|
|
2044
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2045
|
+
key: "opcWorkRequestId",
|
|
2046
|
+
dataType: "string"
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
value: response.headers.get("opc-request-id"),
|
|
2050
|
+
key: "opcRequestId",
|
|
2051
|
+
dataType: "string"
|
|
2052
|
+
}
|
|
2053
|
+
]
|
|
2054
|
+
});
|
|
2055
|
+
return sdkResponse;
|
|
2056
|
+
}
|
|
2057
|
+
catch (err) {
|
|
2058
|
+
throw err;
|
|
2059
|
+
}
|
|
2060
|
+
});
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
* Updates the Backup
|
|
2064
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2065
|
+
* @param UpdateBackupRequest
|
|
2066
|
+
* @return UpdateBackupResponse
|
|
2067
|
+
* @throws OciError when an error occurs
|
|
2068
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/UpdateBackup.ts.html |here} to see how to use UpdateBackup API.
|
|
2069
|
+
*/
|
|
2070
|
+
updateBackup(updateBackupRequest) {
|
|
2071
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2072
|
+
if (this.logger)
|
|
2073
|
+
this.logger.debug("Calling operation PostgresqlClient#updateBackup.");
|
|
2074
|
+
const operationName = "updateBackup";
|
|
2075
|
+
const apiReferenceLink = "";
|
|
2076
|
+
const pathParams = {
|
|
2077
|
+
"{backupId}": updateBackupRequest.backupId
|
|
2078
|
+
};
|
|
2079
|
+
const queryParams = {};
|
|
2080
|
+
let headerParams = {
|
|
2081
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2082
|
+
"if-match": updateBackupRequest.ifMatch,
|
|
2083
|
+
"opc-request-id": updateBackupRequest.opcRequestId
|
|
2084
|
+
};
|
|
2085
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2086
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
2087
|
+
if (this.logger)
|
|
2088
|
+
retrier.logger = this.logger;
|
|
2089
|
+
const request = yield oci_common_1.composeRequest({
|
|
2090
|
+
baseEndpoint: this._endpoint,
|
|
2091
|
+
defaultHeaders: this._defaultHeaders,
|
|
2092
|
+
path: "/backups/{backupId}",
|
|
2093
|
+
method: "PUT",
|
|
2094
|
+
bodyContent: common.ObjectSerializer.serialize(updateBackupRequest.updateBackupDetails, "UpdateBackupDetails", model.UpdateBackupDetails.getJsonObj),
|
|
2095
|
+
pathParams: pathParams,
|
|
2096
|
+
headerParams: headerParams,
|
|
2097
|
+
queryParams: queryParams
|
|
2098
|
+
});
|
|
2099
|
+
try {
|
|
2100
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2101
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2102
|
+
responseObject: {},
|
|
2103
|
+
body: yield response.json(),
|
|
2104
|
+
bodyKey: "backup",
|
|
2105
|
+
bodyModel: model.Backup,
|
|
2106
|
+
type: "model.Backup",
|
|
2107
|
+
responseHeaders: [
|
|
2108
|
+
{
|
|
2109
|
+
value: response.headers.get("etag"),
|
|
2110
|
+
key: "etag",
|
|
2111
|
+
dataType: "string"
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
value: response.headers.get("opc-request-id"),
|
|
2115
|
+
key: "opcRequestId",
|
|
2116
|
+
dataType: "string"
|
|
2117
|
+
}
|
|
2118
|
+
]
|
|
2119
|
+
});
|
|
2120
|
+
return sdkResponse;
|
|
2121
|
+
}
|
|
2122
|
+
catch (err) {
|
|
2123
|
+
throw err;
|
|
2124
|
+
}
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Updates a display name or description of the Configuration Set.
|
|
2129
|
+
*
|
|
2130
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2131
|
+
* @param UpdateConfigurationRequest
|
|
2132
|
+
* @return UpdateConfigurationResponse
|
|
2133
|
+
* @throws OciError when an error occurs
|
|
2134
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
|
|
2135
|
+
*/
|
|
2136
|
+
updateConfiguration(updateConfigurationRequest) {
|
|
2137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2138
|
+
if (this.logger)
|
|
2139
|
+
this.logger.debug("Calling operation PostgresqlClient#updateConfiguration.");
|
|
2140
|
+
const operationName = "updateConfiguration";
|
|
2141
|
+
const apiReferenceLink = "";
|
|
2142
|
+
const pathParams = {
|
|
2143
|
+
"{configurationId}": updateConfigurationRequest.configurationId
|
|
2144
|
+
};
|
|
2145
|
+
const queryParams = {};
|
|
2146
|
+
let headerParams = {
|
|
2147
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2148
|
+
"opc-retry-token": updateConfigurationRequest.opcRetryToken,
|
|
2149
|
+
"if-match": updateConfigurationRequest.ifMatch,
|
|
2150
|
+
"opc-request-id": updateConfigurationRequest.opcRequestId
|
|
2151
|
+
};
|
|
2152
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2153
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
2154
|
+
if (this.logger)
|
|
2155
|
+
retrier.logger = this.logger;
|
|
2156
|
+
const request = yield oci_common_1.composeRequest({
|
|
2157
|
+
baseEndpoint: this._endpoint,
|
|
2158
|
+
defaultHeaders: this._defaultHeaders,
|
|
2159
|
+
path: "/configurations/{configurationId}",
|
|
2160
|
+
method: "PUT",
|
|
2161
|
+
bodyContent: common.ObjectSerializer.serialize(updateConfigurationRequest.updateConfigurationDetails, "UpdateConfigurationDetails", model.UpdateConfigurationDetails.getJsonObj),
|
|
2162
|
+
pathParams: pathParams,
|
|
2163
|
+
headerParams: headerParams,
|
|
2164
|
+
queryParams: queryParams
|
|
2165
|
+
});
|
|
2166
|
+
try {
|
|
2167
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2168
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2169
|
+
responseObject: {},
|
|
2170
|
+
body: yield response.json(),
|
|
2171
|
+
bodyKey: "configuration",
|
|
2172
|
+
bodyModel: model.Configuration,
|
|
2173
|
+
type: "model.Configuration",
|
|
2174
|
+
responseHeaders: [
|
|
2175
|
+
{
|
|
2176
|
+
value: response.headers.get("opc-request-id"),
|
|
2177
|
+
key: "opcRequestId",
|
|
2178
|
+
dataType: "string"
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
value: response.headers.get("etag"),
|
|
2182
|
+
key: "etag",
|
|
2183
|
+
dataType: "string"
|
|
2184
|
+
}
|
|
2185
|
+
]
|
|
2186
|
+
});
|
|
2187
|
+
return sdkResponse;
|
|
2188
|
+
}
|
|
2189
|
+
catch (err) {
|
|
2190
|
+
throw err;
|
|
2191
|
+
}
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Updates the DbSystem
|
|
2196
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2197
|
+
* @param UpdateDbSystemRequest
|
|
2198
|
+
* @return UpdateDbSystemResponse
|
|
2199
|
+
* @throws OciError when an error occurs
|
|
2200
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/UpdateDbSystem.ts.html |here} to see how to use UpdateDbSystem API.
|
|
2201
|
+
*/
|
|
2202
|
+
updateDbSystem(updateDbSystemRequest) {
|
|
2203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2204
|
+
if (this.logger)
|
|
2205
|
+
this.logger.debug("Calling operation PostgresqlClient#updateDbSystem.");
|
|
2206
|
+
const operationName = "updateDbSystem";
|
|
2207
|
+
const apiReferenceLink = "";
|
|
2208
|
+
const pathParams = {
|
|
2209
|
+
"{dbSystemId}": updateDbSystemRequest.dbSystemId
|
|
2210
|
+
};
|
|
2211
|
+
const queryParams = {};
|
|
2212
|
+
let headerParams = {
|
|
2213
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2214
|
+
"if-match": updateDbSystemRequest.ifMatch,
|
|
2215
|
+
"opc-request-id": updateDbSystemRequest.opcRequestId,
|
|
2216
|
+
"opc-retry-token": updateDbSystemRequest.opcRetryToken
|
|
2217
|
+
};
|
|
2218
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2219
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
2220
|
+
if (this.logger)
|
|
2221
|
+
retrier.logger = this.logger;
|
|
2222
|
+
const request = yield oci_common_1.composeRequest({
|
|
2223
|
+
baseEndpoint: this._endpoint,
|
|
2224
|
+
defaultHeaders: this._defaultHeaders,
|
|
2225
|
+
path: "/dbSystems/{dbSystemId}",
|
|
2226
|
+
method: "PUT",
|
|
2227
|
+
bodyContent: common.ObjectSerializer.serialize(updateDbSystemRequest.updateDbSystemDetails, "UpdateDbSystemDetails", model.UpdateDbSystemDetails.getJsonObj),
|
|
2228
|
+
pathParams: pathParams,
|
|
2229
|
+
headerParams: headerParams,
|
|
2230
|
+
queryParams: queryParams
|
|
2231
|
+
});
|
|
2232
|
+
try {
|
|
2233
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2234
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2235
|
+
responseObject: {},
|
|
2236
|
+
responseHeaders: [
|
|
2237
|
+
{
|
|
2238
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2239
|
+
key: "opcWorkRequestId",
|
|
2240
|
+
dataType: "string"
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
value: response.headers.get("opc-request-id"),
|
|
2244
|
+
key: "opcRequestId",
|
|
2245
|
+
dataType: "string"
|
|
2246
|
+
}
|
|
2247
|
+
]
|
|
2248
|
+
});
|
|
2249
|
+
return sdkResponse;
|
|
2250
|
+
}
|
|
2251
|
+
catch (err) {
|
|
2252
|
+
throw err;
|
|
2253
|
+
}
|
|
2254
|
+
});
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* Updates the DbInstance.
|
|
2258
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2259
|
+
* @param UpdateDbSystemDbInstanceRequest
|
|
2260
|
+
* @return UpdateDbSystemDbInstanceResponse
|
|
2261
|
+
* @throws OciError when an error occurs
|
|
2262
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/psql/UpdateDbSystemDbInstance.ts.html |here} to see how to use UpdateDbSystemDbInstance API.
|
|
2263
|
+
*/
|
|
2264
|
+
updateDbSystemDbInstance(updateDbSystemDbInstanceRequest) {
|
|
2265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2266
|
+
if (this.logger)
|
|
2267
|
+
this.logger.debug("Calling operation PostgresqlClient#updateDbSystemDbInstance.");
|
|
2268
|
+
const operationName = "updateDbSystemDbInstance";
|
|
2269
|
+
const apiReferenceLink = "";
|
|
2270
|
+
const pathParams = {
|
|
2271
|
+
"{dbSystemId}": updateDbSystemDbInstanceRequest.dbSystemId,
|
|
2272
|
+
"{dbInstanceId}": updateDbSystemDbInstanceRequest.dbInstanceId
|
|
2273
|
+
};
|
|
2274
|
+
const queryParams = {};
|
|
2275
|
+
let headerParams = {
|
|
2276
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2277
|
+
"if-match": updateDbSystemDbInstanceRequest.ifMatch,
|
|
2278
|
+
"opc-request-id": updateDbSystemDbInstanceRequest.opcRequestId,
|
|
2279
|
+
"opc-retry-token": updateDbSystemDbInstanceRequest.opcRetryToken
|
|
2280
|
+
};
|
|
2281
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2282
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDbSystemDbInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
2283
|
+
if (this.logger)
|
|
2284
|
+
retrier.logger = this.logger;
|
|
2285
|
+
const request = yield oci_common_1.composeRequest({
|
|
2286
|
+
baseEndpoint: this._endpoint,
|
|
2287
|
+
defaultHeaders: this._defaultHeaders,
|
|
2288
|
+
path: "/dbSystems/{dbSystemId}/dbinstances/{dbInstanceId}",
|
|
2289
|
+
method: "PUT",
|
|
2290
|
+
bodyContent: common.ObjectSerializer.serialize(updateDbSystemDbInstanceRequest.updateDbSystemDbInstanceDetails, "UpdateDbSystemDbInstanceDetails", model.UpdateDbSystemDbInstanceDetails.getJsonObj),
|
|
2291
|
+
pathParams: pathParams,
|
|
2292
|
+
headerParams: headerParams,
|
|
2293
|
+
queryParams: queryParams
|
|
2294
|
+
});
|
|
2295
|
+
try {
|
|
2296
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2297
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2298
|
+
responseObject: {},
|
|
2299
|
+
responseHeaders: [
|
|
2300
|
+
{
|
|
2301
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2302
|
+
key: "opcWorkRequestId",
|
|
2303
|
+
dataType: "string"
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
value: response.headers.get("opc-request-id"),
|
|
2307
|
+
key: "opcRequestId",
|
|
2308
|
+
dataType: "string"
|
|
2309
|
+
}
|
|
2310
|
+
]
|
|
2311
|
+
});
|
|
2312
|
+
return sdkResponse;
|
|
2313
|
+
}
|
|
2314
|
+
catch (err) {
|
|
2315
|
+
throw err;
|
|
2316
|
+
}
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
exports.PostgresqlClient = PostgresqlClient;
|
|
2321
|
+
PostgresqlClient.serviceEndpointTemplate = "https://postgresql.{region}.oci.{secondLevelDomain}";
|
|
2322
|
+
PostgresqlClient.endpointServiceName = "";
|
|
2323
|
+
//# sourceMappingURL=client.js.map
|