oci-wlms 2.111.2
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 +26 -0
- package/index.js +49 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +597 -0
- package/lib/client.js +3205 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +36 -0
- package/lib/model/action-type.js +47 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/agreement-record-collection.d.ts +30 -0
- package/lib/model/agreement-record-collection.js +64 -0
- package/lib/model/agreement-record-collection.js.map +1 -0
- package/lib/model/agreement-record-summary.d.ts +37 -0
- package/lib/model/agreement-record-summary.js +32 -0
- package/lib/model/agreement-record-summary.js.map +1 -0
- package/lib/model/agreement-record.d.ts +37 -0
- package/lib/model/agreement-record.js +32 -0
- package/lib/model/agreement-record.js.map +1 -0
- package/lib/model/agreement.d.ts +37 -0
- package/lib/model/agreement.js +32 -0
- package/lib/model/agreement.js.map +1 -0
- package/lib/model/applicable-patch-collection.d.ts +30 -0
- package/lib/model/applicable-patch-collection.js +64 -0
- package/lib/model/applicable-patch-collection.js.map +1 -0
- package/lib/model/applicable-patch-summary.d.ts +59 -0
- package/lib/model/applicable-patch-summary.js +43 -0
- package/lib/model/applicable-patch-summary.js.map +1 -0
- package/lib/model/backup-collection.d.ts +30 -0
- package/lib/model/backup-collection.js +64 -0
- package/lib/model/backup-collection.js.map +1 -0
- package/lib/model/backup-content-type.d.ts +31 -0
- package/lib/model/backup-content-type.js +42 -0
- package/lib/model/backup-content-type.js.map +1 -0
- package/lib/model/backup-content.d.ts +26 -0
- package/lib/model/backup-content.js +71 -0
- package/lib/model/backup-content.js.map +1 -0
- package/lib/model/backup-summary.d.ts +56 -0
- package/lib/model/backup-summary.js +32 -0
- package/lib/model/backup-summary.js.map +1 -0
- package/lib/model/backup-to-restore.d.ts +37 -0
- package/lib/model/backup-to-restore.js +32 -0
- package/lib/model/backup-to-restore.js.map +1 -0
- package/lib/model/backup-type.d.ts +31 -0
- package/lib/model/backup-type.js +42 -0
- package/lib/model/backup-type.js.map +1 -0
- package/lib/model/backup.d.ts +56 -0
- package/lib/model/backup.js +32 -0
- package/lib/model/backup.js.map +1 -0
- package/lib/model/binary-backup-content.d.ts +29 -0
- package/lib/model/binary-backup-content.js +63 -0
- package/lib/model/binary-backup-content.js.map +1 -0
- package/lib/model/change-wls-domain-compartment-details.d.ts +29 -0
- package/lib/model/change-wls-domain-compartment-details.js +32 -0
- package/lib/model/change-wls-domain-compartment-details.js.map +1 -0
- package/lib/model/configuration.d.ts +33 -0
- package/lib/model/configuration.js +32 -0
- package/lib/model/configuration.js.map +1 -0
- package/lib/model/create-agreement-record-details.d.ts +33 -0
- package/lib/model/create-agreement-record-details.js +32 -0
- package/lib/model/create-agreement-record-details.js.map +1 -0
- package/lib/model/default-error.d.ts +33 -0
- package/lib/model/default-error.js +32 -0
- package/lib/model/default-error.js.map +1 -0
- package/lib/model/index.d.ts +155 -0
- package/lib/model/index.js +179 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/install-latest-patches-on-wls-domain-details.d.ts +33 -0
- package/lib/model/install-latest-patches-on-wls-domain-details.js +32 -0
- package/lib/model/install-latest-patches-on-wls-domain-details.js.map +1 -0
- package/lib/model/installed-patch-collection.d.ts +30 -0
- package/lib/model/installed-patch-collection.js +64 -0
- package/lib/model/installed-patch-collection.js.map +1 -0
- package/lib/model/installed-patch-summary.d.ts +40 -0
- package/lib/model/installed-patch-summary.js +32 -0
- package/lib/model/installed-patch-summary.js.map +1 -0
- package/lib/model/managed-instance-collection.d.ts +30 -0
- package/lib/model/managed-instance-collection.js +64 -0
- package/lib/model/managed-instance-collection.js.map +1 -0
- package/lib/model/managed-instance-configuration.d.ts +33 -0
- package/lib/model/managed-instance-configuration.js +32 -0
- package/lib/model/managed-instance-configuration.js.map +1 -0
- package/lib/model/managed-instance-summary.d.ts +63 -0
- package/lib/model/managed-instance-summary.js +32 -0
- package/lib/model/managed-instance-summary.js.map +1 -0
- package/lib/model/managed-instance.d.ts +77 -0
- package/lib/model/managed-instance.js +60 -0
- package/lib/model/managed-instance.js.map +1 -0
- package/lib/model/middleware-backup-patch.d.ts +40 -0
- package/lib/model/middleware-backup-patch.js +32 -0
- package/lib/model/middleware-backup-patch.js.map +1 -0
- package/lib/model/middleware-binary-backup-content.d.ts +34 -0
- package/lib/model/middleware-binary-backup-content.js +64 -0
- package/lib/model/middleware-binary-backup-content.js.map +1 -0
- package/lib/model/operation-status.d.ts +38 -0
- package/lib/model/operation-status.js +49 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +37 -0
- package/lib/model/operation-type.js +48 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/patch-readiness-status.d.ts +34 -0
- package/lib/model/patch-readiness-status.js +45 -0
- package/lib/model/patch-readiness-status.js.map +1 -0
- package/lib/model/patch.d.ts +59 -0
- package/lib/model/patch.js +43 -0
- package/lib/model/patch.js.map +1 -0
- package/lib/model/required-policy-collection.d.ts +30 -0
- package/lib/model/required-policy-collection.js +64 -0
- package/lib/model/required-policy-collection.js.map +1 -0
- package/lib/model/required-policy-summary.d.ts +37 -0
- package/lib/model/required-policy-summary.js +32 -0
- package/lib/model/required-policy-summary.js.map +1 -0
- package/lib/model/resource-inventory.d.ts +57 -0
- package/lib/model/resource-inventory.js +32 -0
- package/lib/model/resource-inventory.js.map +1 -0
- package/lib/model/restart-wls-domain-details.d.ts +29 -0
- package/lib/model/restart-wls-domain-details.js +32 -0
- package/lib/model/restart-wls-domain-details.js.map +1 -0
- package/lib/model/restore-wls-domain-details.d.ts +38 -0
- package/lib/model/restore-wls-domain-details.js +64 -0
- package/lib/model/restore-wls-domain-details.js.map +1 -0
- package/lib/model/scan-result-collection.d.ts +30 -0
- package/lib/model/scan-result-collection.js +64 -0
- package/lib/model/scan-result-collection.js.map +1 -0
- package/lib/model/scan-result-summary.d.ts +66 -0
- package/lib/model/scan-result-summary.js +43 -0
- package/lib/model/scan-result-summary.js.map +1 -0
- package/lib/model/server-collection.d.ts +30 -0
- package/lib/model/server-collection.js +64 -0
- package/lib/model/server-collection.js.map +1 -0
- package/lib/model/server-control-mode.d.ts +31 -0
- package/lib/model/server-control-mode.js +42 -0
- package/lib/model/server-control-mode.js.map +1 -0
- package/lib/model/server-summary.d.ts +121 -0
- package/lib/model/server-summary.js +43 -0
- package/lib/model/server-summary.js.map +1 -0
- package/lib/model/server-to-restore.d.ts +40 -0
- package/lib/model/server-to-restore.js +64 -0
- package/lib/model/server-to-restore.js.map +1 -0
- package/lib/model/server.d.ts +121 -0
- package/lib/model/server.js +43 -0
- package/lib/model/server.js.map +1 -0
- package/lib/model/set-restart-order-details.d.ts +27 -0
- package/lib/model/set-restart-order-details.js +60 -0
- package/lib/model/set-restart-order-details.js.map +1 -0
- package/lib/model/set-restart-order-server-collection.d.ts +30 -0
- package/lib/model/set-restart-order-server-collection.js +64 -0
- package/lib/model/set-restart-order-server-collection.js.map +1 -0
- package/lib/model/set-restart-order-server-summary.d.ts +33 -0
- package/lib/model/set-restart-order-server-summary.js +32 -0
- package/lib/model/set-restart-order-server-summary.js.map +1 -0
- package/lib/model/stop-wls-domain-details.d.ts +29 -0
- package/lib/model/stop-wls-domain-details.js +32 -0
- package/lib/model/stop-wls-domain-details.js.map +1 -0
- package/lib/model/update-configuration-details.d.ts +33 -0
- package/lib/model/update-configuration-details.js +32 -0
- package/lib/model/update-configuration-details.js.map +1 -0
- package/lib/model/update-managed-instance-configuration-details.d.ts +33 -0
- package/lib/model/update-managed-instance-configuration-details.js +32 -0
- package/lib/model/update-managed-instance-configuration-details.js.map +1 -0
- package/lib/model/update-managed-instance-details.d.ts +27 -0
- package/lib/model/update-managed-instance-details.js +60 -0
- package/lib/model/update-managed-instance-details.js.map +1 -0
- package/lib/model/update-wls-domain-configuration-details.d.ts +62 -0
- package/lib/model/update-wls-domain-configuration-details.js +32 -0
- package/lib/model/update-wls-domain-configuration-details.js.map +1 -0
- package/lib/model/update-wls-domain-credential-details.d.ts +37 -0
- package/lib/model/update-wls-domain-credential-details.js +32 -0
- package/lib/model/update-wls-domain-credential-details.js.map +1 -0
- package/lib/model/update-wls-domain-details.d.ts +49 -0
- package/lib/model/update-wls-domain-details.js +60 -0
- package/lib/model/update-wls-domain-details.js.map +1 -0
- package/lib/model/wls-domain-collection.d.ts +30 -0
- package/lib/model/wls-domain-collection.js +64 -0
- package/lib/model/wls-domain-collection.js.map +1 -0
- package/lib/model/wls-domain-configuration.d.ts +62 -0
- package/lib/model/wls-domain-configuration.js +32 -0
- package/lib/model/wls-domain-configuration.js.map +1 -0
- package/lib/model/wls-domain-credential-collection.d.ts +30 -0
- package/lib/model/wls-domain-credential-collection.js +64 -0
- package/lib/model/wls-domain-credential-collection.js.map +1 -0
- package/lib/model/wls-domain-credential-summary.d.ts +33 -0
- package/lib/model/wls-domain-credential-summary.js +32 -0
- package/lib/model/wls-domain-credential-summary.js.map +1 -0
- package/lib/model/wls-domain-credential.d.ts +51 -0
- package/lib/model/wls-domain-credential.js +43 -0
- package/lib/model/wls-domain-credential.js.map +1 -0
- package/lib/model/wls-domain-summary.d.ts +107 -0
- package/lib/model/wls-domain-summary.js +32 -0
- package/lib/model/wls-domain-summary.js.map +1 -0
- package/lib/model/wls-domain.d.ts +130 -0
- package/lib/model/wls-domain.js +75 -0
- package/lib/model/wls-domain.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +30 -0
- package/lib/model/work-request-error-collection.js +64 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +40 -0
- package/lib/model/work-request-error.js +32 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +30 -0
- package/lib/model/work-request-log-entry-collection.js +64 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +34 -0
- package/lib/model/work-request-log-entry.js +32 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +31 -0
- package/lib/model/work-request-resource-metadata-key.js +42 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +52 -0
- package/lib/model/work-request-resource.js +32 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +30 -0
- package/lib/model/work-request-summary-collection.js +64 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +73 -0
- package/lib/model/work-request-summary.js +64 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +75 -0
- package/lib/model/work-request.js +64 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/change-wls-domain-compartment-request.d.ts +49 -0
- package/lib/request/change-wls-domain-compartment-request.js +15 -0
- package/lib/request/change-wls-domain-compartment-request.js.map +1 -0
- package/lib/request/create-agreement-record-request.d.ts +49 -0
- package/lib/request/create-agreement-record-request.js +15 -0
- package/lib/request/create-agreement-record-request.js.map +1 -0
- package/lib/request/delete-wls-domain-request.d.ts +44 -0
- package/lib/request/delete-wls-domain-request.js +15 -0
- package/lib/request/delete-wls-domain-request.js.map +1 -0
- package/lib/request/get-agreement-request.d.ts +22 -0
- package/lib/request/get-agreement-request.js +15 -0
- package/lib/request/get-agreement-request.js.map +1 -0
- package/lib/request/get-configuration-request.d.ts +28 -0
- package/lib/request/get-configuration-request.js +15 -0
- package/lib/request/get-configuration-request.js.map +1 -0
- package/lib/request/get-managed-instance-request.d.ts +26 -0
- package/lib/request/get-managed-instance-request.js +15 -0
- package/lib/request/get-managed-instance-request.js.map +1 -0
- package/lib/request/get-managed-instance-server-request.d.ts +33 -0
- package/lib/request/get-managed-instance-server-request.js +15 -0
- package/lib/request/get-managed-instance-server-request.js.map +1 -0
- package/lib/request/get-wls-domain-credential-request.d.ts +36 -0
- package/lib/request/get-wls-domain-credential-request.js +24 -0
- package/lib/request/get-wls-domain-credential-request.js.map +1 -0
- package/lib/request/get-wls-domain-request.d.ts +26 -0
- package/lib/request/get-wls-domain-request.js +15 -0
- package/lib/request/get-wls-domain-request.js.map +1 -0
- package/lib/request/get-wls-domain-server-backup-content-request.d.ts +40 -0
- package/lib/request/get-wls-domain-server-backup-content-request.js +15 -0
- package/lib/request/get-wls-domain-server-backup-content-request.js.map +1 -0
- package/lib/request/get-wls-domain-server-backup-request.d.ts +40 -0
- package/lib/request/get-wls-domain-server-backup-request.js +15 -0
- package/lib/request/get-wls-domain-server-backup-request.js.map +1 -0
- package/lib/request/get-wls-domain-server-request.d.ts +33 -0
- package/lib/request/get-wls-domain-server-request.js +15 -0
- package/lib/request/get-wls-domain-server-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 +101 -0
- package/lib/request/index.js +72 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/install-latest-patches-on-wls-domain-request.d.ts +49 -0
- package/lib/request/install-latest-patches-on-wls-domain-request.js +15 -0
- package/lib/request/install-latest-patches-on-wls-domain-request.js.map +1 -0
- package/lib/request/list-agreement-records-request.d.ts +56 -0
- package/lib/request/list-agreement-records-request.js +29 -0
- package/lib/request/list-agreement-records-request.js.map +1 -0
- package/lib/request/list-applicable-patches-request.d.ts +63 -0
- package/lib/request/list-applicable-patches-request.js +28 -0
- package/lib/request/list-applicable-patches-request.js.map +1 -0
- package/lib/request/list-managed-instance-scan-results-request.d.ts +64 -0
- package/lib/request/list-managed-instance-scan-results-request.js +29 -0
- package/lib/request/list-managed-instance-scan-results-request.js.map +1 -0
- package/lib/request/list-managed-instance-server-installed-patches-request.d.ts +61 -0
- package/lib/request/list-managed-instance-server-installed-patches-request.js +28 -0
- package/lib/request/list-managed-instance-server-installed-patches-request.js.map +1 -0
- package/lib/request/list-managed-instance-servers-request.d.ts +69 -0
- package/lib/request/list-managed-instance-servers-request.js +29 -0
- package/lib/request/list-managed-instance-servers-request.js.map +1 -0
- package/lib/request/list-managed-instances-request.d.ts +84 -0
- package/lib/request/list-managed-instances-request.js +34 -0
- package/lib/request/list-managed-instances-request.js.map +1 -0
- package/lib/request/list-required-policies-request.d.ts +22 -0
- package/lib/request/list-required-policies-request.js +15 -0
- package/lib/request/list-required-policies-request.js.map +1 -0
- package/lib/request/list-wls-domain-credentials-request.d.ts +35 -0
- package/lib/request/list-wls-domain-credentials-request.js +15 -0
- package/lib/request/list-wls-domain-credentials-request.js.map +1 -0
- package/lib/request/list-wls-domain-scan-results-request.d.ts +60 -0
- package/lib/request/list-wls-domain-scan-results-request.js +29 -0
- package/lib/request/list-wls-domain-scan-results-request.js.map +1 -0
- package/lib/request/list-wls-domain-server-backups-request.d.ts +61 -0
- package/lib/request/list-wls-domain-server-backups-request.js +28 -0
- package/lib/request/list-wls-domain-server-backups-request.js.map +1 -0
- package/lib/request/list-wls-domain-server-installed-patches-request.d.ts +61 -0
- package/lib/request/list-wls-domain-server-installed-patches-request.js +28 -0
- package/lib/request/list-wls-domain-server-installed-patches-request.js.map +1 -0
- package/lib/request/list-wls-domain-servers-request.d.ts +69 -0
- package/lib/request/list-wls-domain-servers-request.js +29 -0
- package/lib/request/list-wls-domain-servers-request.js.map +1 -0
- package/lib/request/list-wls-domains-request.d.ts +106 -0
- package/lib/request/list-wls-domains-request.js +40 -0
- package/lib/request/list-wls-domains-request.js.map +1 -0
- package/lib/request/list-wls-domains-sharing-middlewares-request.d.ts +56 -0
- package/lib/request/list-wls-domains-sharing-middlewares-request.js +29 -0
- package/lib/request/list-wls-domains-sharing-middlewares-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +52 -0
- package/lib/request/list-work-request-errors-request.js +28 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +52 -0
- package/lib/request/list-work-request-logs-request.js +28 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +67 -0
- package/lib/request/list-work-requests-request.js +28 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/restart-wls-domain-request.d.ts +49 -0
- package/lib/request/restart-wls-domain-request.js +15 -0
- package/lib/request/restart-wls-domain-request.js.map +1 -0
- package/lib/request/restore-wls-domain-request.d.ts +49 -0
- package/lib/request/restore-wls-domain-request.js +15 -0
- package/lib/request/restore-wls-domain-request.js.map +1 -0
- package/lib/request/scan-managed-instance-request.d.ts +44 -0
- package/lib/request/scan-managed-instance-request.js +15 -0
- package/lib/request/scan-managed-instance-request.js.map +1 -0
- package/lib/request/scan-wls-domain-request.d.ts +44 -0
- package/lib/request/scan-wls-domain-request.js +15 -0
- package/lib/request/scan-wls-domain-request.js.map +1 -0
- package/lib/request/set-restart-order-request.d.ts +49 -0
- package/lib/request/set-restart-order-request.js +15 -0
- package/lib/request/set-restart-order-request.js.map +1 -0
- package/lib/request/start-wls-domain-request.d.ts +44 -0
- package/lib/request/start-wls-domain-request.js +15 -0
- package/lib/request/start-wls-domain-request.js.map +1 -0
- package/lib/request/stop-wls-domain-request.d.ts +49 -0
- package/lib/request/stop-wls-domain-request.js +15 -0
- package/lib/request/stop-wls-domain-request.js.map +1 -0
- package/lib/request/summarize-resource-inventory-request.d.ts +28 -0
- package/lib/request/summarize-resource-inventory-request.js +15 -0
- package/lib/request/summarize-resource-inventory-request.js.map +1 -0
- package/lib/request/update-configuration-request.d.ts +51 -0
- package/lib/request/update-configuration-request.js +15 -0
- package/lib/request/update-configuration-request.js.map +1 -0
- package/lib/request/update-managed-instance-request.d.ts +49 -0
- package/lib/request/update-managed-instance-request.js +15 -0
- package/lib/request/update-managed-instance-request.js.map +1 -0
- package/lib/request/update-wls-domain-credential-request.d.ts +50 -0
- package/lib/request/update-wls-domain-credential-request.js +24 -0
- package/lib/request/update-wls-domain-credential-request.js.map +1 -0
- package/lib/request/update-wls-domain-request.d.ts +40 -0
- package/lib/request/update-wls-domain-request.js +15 -0
- package/lib/request/update-wls-domain-request.js.map +1 -0
- package/lib/response/change-wls-domain-compartment-response.d.ts +20 -0
- package/lib/response/change-wls-domain-compartment-response.js +15 -0
- package/lib/response/change-wls-domain-compartment-response.js.map +1 -0
- package/lib/response/create-agreement-record-response.d.ts +30 -0
- package/lib/response/create-agreement-record-response.js +15 -0
- package/lib/response/create-agreement-record-response.js.map +1 -0
- package/lib/response/delete-wls-domain-response.d.ts +20 -0
- package/lib/response/delete-wls-domain-response.js +15 -0
- package/lib/response/delete-wls-domain-response.js.map +1 -0
- package/lib/response/get-agreement-response.d.ts +30 -0
- package/lib/response/get-agreement-response.js +15 -0
- package/lib/response/get-agreement-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-managed-instance-response.d.ts +30 -0
- package/lib/response/get-managed-instance-response.js +15 -0
- package/lib/response/get-managed-instance-response.js.map +1 -0
- package/lib/response/get-managed-instance-server-response.d.ts +30 -0
- package/lib/response/get-managed-instance-server-response.js +15 -0
- package/lib/response/get-managed-instance-server-response.js.map +1 -0
- package/lib/response/get-wls-domain-credential-response.d.ts +30 -0
- package/lib/response/get-wls-domain-credential-response.js +15 -0
- package/lib/response/get-wls-domain-credential-response.js.map +1 -0
- package/lib/response/get-wls-domain-response.d.ts +30 -0
- package/lib/response/get-wls-domain-response.js +15 -0
- package/lib/response/get-wls-domain-response.js.map +1 -0
- package/lib/response/get-wls-domain-server-backup-content-response.d.ts +30 -0
- package/lib/response/get-wls-domain-server-backup-content-response.js +15 -0
- package/lib/response/get-wls-domain-server-backup-content-response.js.map +1 -0
- package/lib/response/get-wls-domain-server-backup-response.d.ts +30 -0
- package/lib/response/get-wls-domain-server-backup-response.js +15 -0
- package/lib/response/get-wls-domain-server-backup-response.js.map +1 -0
- package/lib/response/get-wls-domain-server-response.d.ts +30 -0
- package/lib/response/get-wls-domain-server-response.js +15 -0
- package/lib/response/get-wls-domain-server-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 +101 -0
- package/lib/response/index.js +18 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/install-latest-patches-on-wls-domain-response.d.ts +25 -0
- package/lib/response/install-latest-patches-on-wls-domain-response.js +15 -0
- package/lib/response/install-latest-patches-on-wls-domain-response.js.map +1 -0
- package/lib/response/list-agreement-records-response.d.ts +32 -0
- package/lib/response/list-agreement-records-response.js +15 -0
- package/lib/response/list-agreement-records-response.js.map +1 -0
- package/lib/response/list-applicable-patches-response.d.ts +32 -0
- package/lib/response/list-applicable-patches-response.js +15 -0
- package/lib/response/list-applicable-patches-response.js.map +1 -0
- package/lib/response/list-managed-instance-scan-results-response.d.ts +32 -0
- package/lib/response/list-managed-instance-scan-results-response.js +15 -0
- package/lib/response/list-managed-instance-scan-results-response.js.map +1 -0
- package/lib/response/list-managed-instance-server-installed-patches-response.d.ts +32 -0
- package/lib/response/list-managed-instance-server-installed-patches-response.js +15 -0
- package/lib/response/list-managed-instance-server-installed-patches-response.js.map +1 -0
- package/lib/response/list-managed-instance-servers-response.d.ts +32 -0
- package/lib/response/list-managed-instance-servers-response.js +15 -0
- package/lib/response/list-managed-instance-servers-response.js.map +1 -0
- package/lib/response/list-managed-instances-response.d.ts +32 -0
- package/lib/response/list-managed-instances-response.js +15 -0
- package/lib/response/list-managed-instances-response.js.map +1 -0
- package/lib/response/list-required-policies-response.d.ts +32 -0
- package/lib/response/list-required-policies-response.js +15 -0
- package/lib/response/list-required-policies-response.js.map +1 -0
- package/lib/response/list-wls-domain-credentials-response.d.ts +32 -0
- package/lib/response/list-wls-domain-credentials-response.js +15 -0
- package/lib/response/list-wls-domain-credentials-response.js.map +1 -0
- package/lib/response/list-wls-domain-scan-results-response.d.ts +32 -0
- package/lib/response/list-wls-domain-scan-results-response.js +15 -0
- package/lib/response/list-wls-domain-scan-results-response.js.map +1 -0
- package/lib/response/list-wls-domain-server-backups-response.d.ts +32 -0
- package/lib/response/list-wls-domain-server-backups-response.js +15 -0
- package/lib/response/list-wls-domain-server-backups-response.js.map +1 -0
- package/lib/response/list-wls-domain-server-installed-patches-response.d.ts +32 -0
- package/lib/response/list-wls-domain-server-installed-patches-response.js +15 -0
- package/lib/response/list-wls-domain-server-installed-patches-response.js.map +1 -0
- package/lib/response/list-wls-domain-servers-response.d.ts +32 -0
- package/lib/response/list-wls-domain-servers-response.js +15 -0
- package/lib/response/list-wls-domain-servers-response.js.map +1 -0
- package/lib/response/list-wls-domains-response.d.ts +32 -0
- package/lib/response/list-wls-domains-response.js +15 -0
- package/lib/response/list-wls-domains-response.js.map +1 -0
- package/lib/response/list-wls-domains-sharing-middlewares-response.d.ts +32 -0
- package/lib/response/list-wls-domains-sharing-middlewares-response.js +15 -0
- package/lib/response/list-wls-domains-sharing-middlewares-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/restart-wls-domain-response.d.ts +25 -0
- package/lib/response/restart-wls-domain-response.js +15 -0
- package/lib/response/restart-wls-domain-response.js.map +1 -0
- package/lib/response/restore-wls-domain-response.d.ts +25 -0
- package/lib/response/restore-wls-domain-response.js +15 -0
- package/lib/response/restore-wls-domain-response.js.map +1 -0
- package/lib/response/scan-managed-instance-response.d.ts +25 -0
- package/lib/response/scan-managed-instance-response.js +15 -0
- package/lib/response/scan-managed-instance-response.js.map +1 -0
- package/lib/response/scan-wls-domain-response.d.ts +25 -0
- package/lib/response/scan-wls-domain-response.js +15 -0
- package/lib/response/scan-wls-domain-response.js.map +1 -0
- package/lib/response/set-restart-order-response.d.ts +30 -0
- package/lib/response/set-restart-order-response.js +15 -0
- package/lib/response/set-restart-order-response.js.map +1 -0
- package/lib/response/start-wls-domain-response.d.ts +25 -0
- package/lib/response/start-wls-domain-response.js +15 -0
- package/lib/response/start-wls-domain-response.js.map +1 -0
- package/lib/response/stop-wls-domain-response.d.ts +25 -0
- package/lib/response/stop-wls-domain-response.js +15 -0
- package/lib/response/stop-wls-domain-response.js.map +1 -0
- package/lib/response/summarize-resource-inventory-response.d.ts +25 -0
- package/lib/response/summarize-resource-inventory-response.js +15 -0
- package/lib/response/summarize-resource-inventory-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-managed-instance-response.d.ts +30 -0
- package/lib/response/update-managed-instance-response.js +15 -0
- package/lib/response/update-managed-instance-response.js.map +1 -0
- package/lib/response/update-wls-domain-credential-response.d.ts +30 -0
- package/lib/response/update-wls-domain-credential-response.js +15 -0
- package/lib/response/update-wls-domain-credential-response.js.map +1 -0
- package/lib/response/update-wls-domain-response.d.ts +30 -0
- package/lib/response/update-wls-domain-response.js +15 -0
- package/lib/response/update-wls-domain-response.js.map +1 -0
- package/lib/weblogicmanagementservice-waiter.d.ts +39 -0
- package/lib/weblogicmanagementservice-waiter.js +79 -0
- package/lib/weblogicmanagementservice-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,3205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* WebLogic Management Service API
|
|
4
|
+
* WebLogic Management Service is an OCI service that enables a unified view and management of WebLogic domains
|
|
5
|
+
in Oracle Cloud Infrastructure. Features include on-demand patching of WebLogic domains, rollback of the
|
|
6
|
+
last applied patch, discovery and management of WebLogic instances on a compute host.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20241101
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.WeblogicManagementServiceConfigurationClient = exports.WeblogicManagementServiceConfigurationApiKeys = exports.WeblogicManagementServiceClient = exports.WeblogicManagementServiceApiKeys = void 0;
|
|
47
|
+
const common = require("oci-common");
|
|
48
|
+
const model = __importStar(require("./model"));
|
|
49
|
+
const weblogicmanagementservice_waiter_1 = require("./weblogicmanagementservice-waiter");
|
|
50
|
+
const oci_common_1 = require("oci-common");
|
|
51
|
+
const Breaker = require("opossum");
|
|
52
|
+
// ===============================================
|
|
53
|
+
// This file is autogenerated - Please do not edit
|
|
54
|
+
// ===============================================
|
|
55
|
+
var WeblogicManagementServiceApiKeys;
|
|
56
|
+
(function (WeblogicManagementServiceApiKeys) {
|
|
57
|
+
})(WeblogicManagementServiceApiKeys = exports.WeblogicManagementServiceApiKeys || (exports.WeblogicManagementServiceApiKeys = {}));
|
|
58
|
+
/**
|
|
59
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
60
|
+
*/
|
|
61
|
+
class WeblogicManagementServiceClient {
|
|
62
|
+
constructor(params, clientConfiguration) {
|
|
63
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
64
|
+
this["_endpoint"] = "";
|
|
65
|
+
this["_defaultHeaders"] = {};
|
|
66
|
+
this._circuitBreaker = null;
|
|
67
|
+
this._httpOptions = undefined;
|
|
68
|
+
this._bodyDuplexMode = undefined;
|
|
69
|
+
this.targetService = "WeblogicManagementService";
|
|
70
|
+
this._regionId = "";
|
|
71
|
+
this._lastSetRegionOrRegionId = "";
|
|
72
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
73
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
74
|
+
: null;
|
|
75
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
76
|
+
if (clientConfiguration) {
|
|
77
|
+
this._clientConfiguration = clientConfiguration;
|
|
78
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
79
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
80
|
+
: null;
|
|
81
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
82
|
+
? clientConfiguration.httpOptions
|
|
83
|
+
: undefined;
|
|
84
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
85
|
+
? clientConfiguration.bodyDuplexMode
|
|
86
|
+
: undefined;
|
|
87
|
+
}
|
|
88
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("wlms")) {
|
|
89
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
90
|
+
throw errmsg.concat("wlms");
|
|
91
|
+
}
|
|
92
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
93
|
+
const specCircuitBreakerEnabled = true;
|
|
94
|
+
if (!this._circuitBreaker &&
|
|
95
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
96
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
97
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
98
|
+
}
|
|
99
|
+
this._httpClient =
|
|
100
|
+
params.httpClient ||
|
|
101
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
102
|
+
if (params.authenticationDetailsProvider &&
|
|
103
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
104
|
+
const provider = params.authenticationDetailsProvider;
|
|
105
|
+
if (provider.getRegion()) {
|
|
106
|
+
this.region = provider.getRegion();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
112
|
+
*/
|
|
113
|
+
get endpoint() {
|
|
114
|
+
return this._endpoint;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
118
|
+
* @param endpoint The endpoint of the service.
|
|
119
|
+
*/
|
|
120
|
+
set endpoint(endpoint) {
|
|
121
|
+
this._endpoint = endpoint;
|
|
122
|
+
this._endpoint = this._endpoint + "/20241101";
|
|
123
|
+
if (this.logger)
|
|
124
|
+
this.logger.info(`WeblogicManagementServiceClient endpoint set to ${this._endpoint}`);
|
|
125
|
+
}
|
|
126
|
+
get logger() {
|
|
127
|
+
return common.LOG.logger;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
131
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
132
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
133
|
+
*/
|
|
134
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
135
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
136
|
+
if (this.logger)
|
|
137
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
138
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WeblogicManagementServiceClient.serviceEndpointTemplate, this._region, WeblogicManagementServiceClient.endpointServiceName);
|
|
140
|
+
}
|
|
141
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
142
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WeblogicManagementServiceClient.serviceEndpointTemplate, this._regionId, WeblogicManagementServiceClient.endpointServiceName);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
147
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
148
|
+
* @param region The region of the service.
|
|
149
|
+
*/
|
|
150
|
+
set region(region) {
|
|
151
|
+
this._region = region;
|
|
152
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WeblogicManagementServiceClient.serviceEndpointTemplate, region, WeblogicManagementServiceClient.endpointServiceName);
|
|
153
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
157
|
+
*
|
|
158
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
159
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
160
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
161
|
+
* @param regionId The public region ID.
|
|
162
|
+
*/
|
|
163
|
+
set regionId(regionId) {
|
|
164
|
+
this._regionId = regionId;
|
|
165
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WeblogicManagementServiceClient.serviceEndpointTemplate, regionId, WeblogicManagementServiceClient.endpointServiceName);
|
|
166
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates a new WeblogicManagementServiceWaiter for resources for this service.
|
|
170
|
+
*
|
|
171
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
172
|
+
* @return The service waiters.
|
|
173
|
+
*/
|
|
174
|
+
createWaiters(config) {
|
|
175
|
+
this._waiters = new weblogicmanagementservice_waiter_1.WeblogicManagementServiceWaiter(this, config);
|
|
176
|
+
return this._waiters;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Gets the waiters available for resources for this service.
|
|
180
|
+
*
|
|
181
|
+
* @return The service waiters.
|
|
182
|
+
*/
|
|
183
|
+
getWaiters() {
|
|
184
|
+
if (this._waiters) {
|
|
185
|
+
return this._waiters;
|
|
186
|
+
}
|
|
187
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
191
|
+
*/
|
|
192
|
+
shutdownCircuitBreaker() {
|
|
193
|
+
if (this._circuitBreaker) {
|
|
194
|
+
this._circuitBreaker.shutdown();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
199
|
+
*/
|
|
200
|
+
closeProvider() {
|
|
201
|
+
if (this._authProvider) {
|
|
202
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
203
|
+
(this._authProvider).closeProvider();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Close the client once it is no longer needed
|
|
208
|
+
*/
|
|
209
|
+
close() {
|
|
210
|
+
this.shutdownCircuitBreaker();
|
|
211
|
+
this.closeProvider();
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Moves a WebLogic domain into a different compartment within the same tenancy.
|
|
215
|
+
*
|
|
216
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
217
|
+
* @param ChangeWlsDomainCompartmentRequest
|
|
218
|
+
* @return ChangeWlsDomainCompartmentResponse
|
|
219
|
+
* @throws OciError when an error occurs
|
|
220
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ChangeWlsDomainCompartment.ts.html |here} to see how to use ChangeWlsDomainCompartment API.
|
|
221
|
+
*/
|
|
222
|
+
changeWlsDomainCompartment(changeWlsDomainCompartmentRequest) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
if (this.logger)
|
|
225
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#changeWlsDomainCompartment.");
|
|
226
|
+
const operationName = "changeWlsDomainCompartment";
|
|
227
|
+
const apiReferenceLink = "";
|
|
228
|
+
const pathParams = {
|
|
229
|
+
"{wlsDomainId}": changeWlsDomainCompartmentRequest.wlsDomainId
|
|
230
|
+
};
|
|
231
|
+
const queryParams = {};
|
|
232
|
+
let headerParams = {
|
|
233
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
234
|
+
"if-match": changeWlsDomainCompartmentRequest.ifMatch,
|
|
235
|
+
"opc-request-id": changeWlsDomainCompartmentRequest.opcRequestId,
|
|
236
|
+
"opc-retry-token": changeWlsDomainCompartmentRequest.opcRetryToken
|
|
237
|
+
};
|
|
238
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
239
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeWlsDomainCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
240
|
+
if (this.logger)
|
|
241
|
+
retrier.logger = this.logger;
|
|
242
|
+
const request = yield oci_common_1.composeRequest({
|
|
243
|
+
baseEndpoint: this._endpoint,
|
|
244
|
+
defaultHeaders: this._defaultHeaders,
|
|
245
|
+
path: "/wlsDomains/{wlsDomainId}/actions/changeCompartment",
|
|
246
|
+
method: "POST",
|
|
247
|
+
bodyContent: common.ObjectSerializer.serialize(changeWlsDomainCompartmentRequest.changeWlsDomainCompartmentDetails, "ChangeWlsDomainCompartmentDetails", model.ChangeWlsDomainCompartmentDetails.getJsonObj),
|
|
248
|
+
pathParams: pathParams,
|
|
249
|
+
headerParams: headerParams,
|
|
250
|
+
queryParams: queryParams
|
|
251
|
+
});
|
|
252
|
+
try {
|
|
253
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
254
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
255
|
+
responseObject: {},
|
|
256
|
+
responseHeaders: [
|
|
257
|
+
{
|
|
258
|
+
value: response.headers.get("opc-request-id"),
|
|
259
|
+
key: "opcRequestId",
|
|
260
|
+
dataType: "string"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
});
|
|
264
|
+
return sdkResponse;
|
|
265
|
+
}
|
|
266
|
+
catch (err) {
|
|
267
|
+
throw err;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Creates a terms of use agreement record for a WebLogic domain.
|
|
273
|
+
*
|
|
274
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
275
|
+
* @param CreateAgreementRecordRequest
|
|
276
|
+
* @return CreateAgreementRecordResponse
|
|
277
|
+
* @throws OciError when an error occurs
|
|
278
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/CreateAgreementRecord.ts.html |here} to see how to use CreateAgreementRecord API.
|
|
279
|
+
*/
|
|
280
|
+
createAgreementRecord(createAgreementRecordRequest) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
if (this.logger)
|
|
283
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#createAgreementRecord.");
|
|
284
|
+
const operationName = "createAgreementRecord";
|
|
285
|
+
const apiReferenceLink = "";
|
|
286
|
+
const pathParams = {
|
|
287
|
+
"{wlsDomainId}": createAgreementRecordRequest.wlsDomainId
|
|
288
|
+
};
|
|
289
|
+
const queryParams = {};
|
|
290
|
+
let headerParams = {
|
|
291
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
292
|
+
"if-match": createAgreementRecordRequest.ifMatch,
|
|
293
|
+
"opc-request-id": createAgreementRecordRequest.opcRequestId,
|
|
294
|
+
"opc-retry-token": createAgreementRecordRequest.opcRetryToken
|
|
295
|
+
};
|
|
296
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
297
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createAgreementRecordRequest.retryConfiguration, specRetryConfiguration);
|
|
298
|
+
if (this.logger)
|
|
299
|
+
retrier.logger = this.logger;
|
|
300
|
+
const request = yield oci_common_1.composeRequest({
|
|
301
|
+
baseEndpoint: this._endpoint,
|
|
302
|
+
defaultHeaders: this._defaultHeaders,
|
|
303
|
+
path: "/wlsDomains/{wlsDomainId}/agreementRecords",
|
|
304
|
+
method: "POST",
|
|
305
|
+
bodyContent: common.ObjectSerializer.serialize(createAgreementRecordRequest.createAgreementRecordDetails, "CreateAgreementRecordDetails", model.CreateAgreementRecordDetails.getJsonObj),
|
|
306
|
+
pathParams: pathParams,
|
|
307
|
+
headerParams: headerParams,
|
|
308
|
+
queryParams: queryParams
|
|
309
|
+
});
|
|
310
|
+
try {
|
|
311
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
312
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
313
|
+
responseObject: {},
|
|
314
|
+
body: yield response.json(),
|
|
315
|
+
bodyKey: "agreementRecord",
|
|
316
|
+
bodyModel: model.AgreementRecord,
|
|
317
|
+
type: "model.AgreementRecord",
|
|
318
|
+
responseHeaders: [
|
|
319
|
+
{
|
|
320
|
+
value: response.headers.get("etag"),
|
|
321
|
+
key: "etag",
|
|
322
|
+
dataType: "string"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
value: response.headers.get("opc-request-id"),
|
|
326
|
+
key: "opcRequestId",
|
|
327
|
+
dataType: "string"
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
});
|
|
331
|
+
return sdkResponse;
|
|
332
|
+
}
|
|
333
|
+
catch (err) {
|
|
334
|
+
throw err;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Delete the WebLogic domain.
|
|
340
|
+
*
|
|
341
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
342
|
+
* @param DeleteWlsDomainRequest
|
|
343
|
+
* @return DeleteWlsDomainResponse
|
|
344
|
+
* @throws OciError when an error occurs
|
|
345
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/DeleteWlsDomain.ts.html |here} to see how to use DeleteWlsDomain API.
|
|
346
|
+
*/
|
|
347
|
+
deleteWlsDomain(deleteWlsDomainRequest) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
if (this.logger)
|
|
350
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#deleteWlsDomain.");
|
|
351
|
+
const operationName = "deleteWlsDomain";
|
|
352
|
+
const apiReferenceLink = "";
|
|
353
|
+
const pathParams = {
|
|
354
|
+
"{wlsDomainId}": deleteWlsDomainRequest.wlsDomainId
|
|
355
|
+
};
|
|
356
|
+
const queryParams = {};
|
|
357
|
+
let headerParams = {
|
|
358
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
359
|
+
"if-match": deleteWlsDomainRequest.ifMatch,
|
|
360
|
+
"opc-request-id": deleteWlsDomainRequest.opcRequestId,
|
|
361
|
+
"opc-retry-token": deleteWlsDomainRequest.opcRetryToken
|
|
362
|
+
};
|
|
363
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
364
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
365
|
+
if (this.logger)
|
|
366
|
+
retrier.logger = this.logger;
|
|
367
|
+
const request = yield oci_common_1.composeRequest({
|
|
368
|
+
baseEndpoint: this._endpoint,
|
|
369
|
+
defaultHeaders: this._defaultHeaders,
|
|
370
|
+
path: "/wlsDomains/{wlsDomainId}",
|
|
371
|
+
method: "DELETE",
|
|
372
|
+
pathParams: pathParams,
|
|
373
|
+
headerParams: headerParams,
|
|
374
|
+
queryParams: queryParams
|
|
375
|
+
});
|
|
376
|
+
try {
|
|
377
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
378
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
379
|
+
responseObject: {},
|
|
380
|
+
responseHeaders: [
|
|
381
|
+
{
|
|
382
|
+
value: response.headers.get("opc-request-id"),
|
|
383
|
+
key: "opcRequestId",
|
|
384
|
+
dataType: "string"
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
});
|
|
388
|
+
return sdkResponse;
|
|
389
|
+
}
|
|
390
|
+
catch (err) {
|
|
391
|
+
throw err;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Returns the terms and conditions of use agreement.
|
|
397
|
+
*
|
|
398
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
399
|
+
* @param GetAgreementRequest
|
|
400
|
+
* @return GetAgreementResponse
|
|
401
|
+
* @throws OciError when an error occurs
|
|
402
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetAgreement.ts.html |here} to see how to use GetAgreement API.
|
|
403
|
+
*/
|
|
404
|
+
getAgreement(getAgreementRequest) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
if (this.logger)
|
|
407
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getAgreement.");
|
|
408
|
+
const operationName = "getAgreement";
|
|
409
|
+
const apiReferenceLink = "";
|
|
410
|
+
const pathParams = {};
|
|
411
|
+
const queryParams = {};
|
|
412
|
+
let headerParams = {
|
|
413
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
414
|
+
"opc-request-id": getAgreementRequest.opcRequestId
|
|
415
|
+
};
|
|
416
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
417
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAgreementRequest.retryConfiguration, specRetryConfiguration);
|
|
418
|
+
if (this.logger)
|
|
419
|
+
retrier.logger = this.logger;
|
|
420
|
+
const request = yield oci_common_1.composeRequest({
|
|
421
|
+
baseEndpoint: this._endpoint,
|
|
422
|
+
defaultHeaders: this._defaultHeaders,
|
|
423
|
+
path: "/agreement",
|
|
424
|
+
method: "GET",
|
|
425
|
+
pathParams: pathParams,
|
|
426
|
+
headerParams: headerParams,
|
|
427
|
+
queryParams: queryParams
|
|
428
|
+
});
|
|
429
|
+
try {
|
|
430
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
431
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
432
|
+
responseObject: {},
|
|
433
|
+
body: yield response.json(),
|
|
434
|
+
bodyKey: "agreement",
|
|
435
|
+
bodyModel: model.Agreement,
|
|
436
|
+
type: "model.Agreement",
|
|
437
|
+
responseHeaders: [
|
|
438
|
+
{
|
|
439
|
+
value: response.headers.get("opc-request-id"),
|
|
440
|
+
key: "opcRequestId",
|
|
441
|
+
dataType: "string"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
value: response.headers.get("etag"),
|
|
445
|
+
key: "etag",
|
|
446
|
+
dataType: "string"
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
});
|
|
450
|
+
return sdkResponse;
|
|
451
|
+
}
|
|
452
|
+
catch (err) {
|
|
453
|
+
throw err;
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Gets information about the specified managed instance.
|
|
459
|
+
*
|
|
460
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
461
|
+
* @param GetManagedInstanceRequest
|
|
462
|
+
* @return GetManagedInstanceResponse
|
|
463
|
+
* @throws OciError when an error occurs
|
|
464
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetManagedInstance.ts.html |here} to see how to use GetManagedInstance API.
|
|
465
|
+
*/
|
|
466
|
+
getManagedInstance(getManagedInstanceRequest) {
|
|
467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
+
if (this.logger)
|
|
469
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getManagedInstance.");
|
|
470
|
+
const operationName = "getManagedInstance";
|
|
471
|
+
const apiReferenceLink = "";
|
|
472
|
+
const pathParams = {
|
|
473
|
+
"{managedInstanceId}": getManagedInstanceRequest.managedInstanceId
|
|
474
|
+
};
|
|
475
|
+
const queryParams = {};
|
|
476
|
+
let headerParams = {
|
|
477
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
478
|
+
"opc-request-id": getManagedInstanceRequest.opcRequestId
|
|
479
|
+
};
|
|
480
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
481
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getManagedInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
482
|
+
if (this.logger)
|
|
483
|
+
retrier.logger = this.logger;
|
|
484
|
+
const request = yield oci_common_1.composeRequest({
|
|
485
|
+
baseEndpoint: this._endpoint,
|
|
486
|
+
defaultHeaders: this._defaultHeaders,
|
|
487
|
+
path: "/managedInstances/{managedInstanceId}",
|
|
488
|
+
method: "GET",
|
|
489
|
+
pathParams: pathParams,
|
|
490
|
+
headerParams: headerParams,
|
|
491
|
+
queryParams: queryParams
|
|
492
|
+
});
|
|
493
|
+
try {
|
|
494
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
495
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
496
|
+
responseObject: {},
|
|
497
|
+
body: yield response.json(),
|
|
498
|
+
bodyKey: "managedInstance",
|
|
499
|
+
bodyModel: model.ManagedInstance,
|
|
500
|
+
type: "model.ManagedInstance",
|
|
501
|
+
responseHeaders: [
|
|
502
|
+
{
|
|
503
|
+
value: response.headers.get("etag"),
|
|
504
|
+
key: "etag",
|
|
505
|
+
dataType: "string"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
value: response.headers.get("opc-request-id"),
|
|
509
|
+
key: "opcRequestId",
|
|
510
|
+
dataType: "string"
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
});
|
|
514
|
+
return sdkResponse;
|
|
515
|
+
}
|
|
516
|
+
catch (err) {
|
|
517
|
+
throw err;
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Gets information about the specified server in a managed instance.
|
|
523
|
+
*
|
|
524
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
525
|
+
* @param GetManagedInstanceServerRequest
|
|
526
|
+
* @return GetManagedInstanceServerResponse
|
|
527
|
+
* @throws OciError when an error occurs
|
|
528
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetManagedInstanceServer.ts.html |here} to see how to use GetManagedInstanceServer API.
|
|
529
|
+
*/
|
|
530
|
+
getManagedInstanceServer(getManagedInstanceServerRequest) {
|
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
if (this.logger)
|
|
533
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getManagedInstanceServer.");
|
|
534
|
+
const operationName = "getManagedInstanceServer";
|
|
535
|
+
const apiReferenceLink = "";
|
|
536
|
+
const pathParams = {
|
|
537
|
+
"{managedInstanceId}": getManagedInstanceServerRequest.managedInstanceId,
|
|
538
|
+
"{serverId}": getManagedInstanceServerRequest.serverId
|
|
539
|
+
};
|
|
540
|
+
const queryParams = {};
|
|
541
|
+
let headerParams = {
|
|
542
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
543
|
+
"opc-request-id": getManagedInstanceServerRequest.opcRequestId
|
|
544
|
+
};
|
|
545
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
546
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getManagedInstanceServerRequest.retryConfiguration, specRetryConfiguration);
|
|
547
|
+
if (this.logger)
|
|
548
|
+
retrier.logger = this.logger;
|
|
549
|
+
const request = yield oci_common_1.composeRequest({
|
|
550
|
+
baseEndpoint: this._endpoint,
|
|
551
|
+
defaultHeaders: this._defaultHeaders,
|
|
552
|
+
path: "/managedInstances/{managedInstanceId}/servers/{serverId}",
|
|
553
|
+
method: "GET",
|
|
554
|
+
pathParams: pathParams,
|
|
555
|
+
headerParams: headerParams,
|
|
556
|
+
queryParams: queryParams
|
|
557
|
+
});
|
|
558
|
+
try {
|
|
559
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
560
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
561
|
+
responseObject: {},
|
|
562
|
+
body: yield response.json(),
|
|
563
|
+
bodyKey: "server",
|
|
564
|
+
bodyModel: model.Server,
|
|
565
|
+
type: "model.Server",
|
|
566
|
+
responseHeaders: [
|
|
567
|
+
{
|
|
568
|
+
value: response.headers.get("etag"),
|
|
569
|
+
key: "etag",
|
|
570
|
+
dataType: "string"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
value: response.headers.get("opc-request-id"),
|
|
574
|
+
key: "opcRequestId",
|
|
575
|
+
dataType: "string"
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
});
|
|
579
|
+
return sdkResponse;
|
|
580
|
+
}
|
|
581
|
+
catch (err) {
|
|
582
|
+
throw err;
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Gets a specific WebLogic domain.
|
|
588
|
+
*
|
|
589
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
590
|
+
* @param GetWlsDomainRequest
|
|
591
|
+
* @return GetWlsDomainResponse
|
|
592
|
+
* @throws OciError when an error occurs
|
|
593
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetWlsDomain.ts.html |here} to see how to use GetWlsDomain API.
|
|
594
|
+
*/
|
|
595
|
+
getWlsDomain(getWlsDomainRequest) {
|
|
596
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
597
|
+
if (this.logger)
|
|
598
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getWlsDomain.");
|
|
599
|
+
const operationName = "getWlsDomain";
|
|
600
|
+
const apiReferenceLink = "";
|
|
601
|
+
const pathParams = {
|
|
602
|
+
"{wlsDomainId}": getWlsDomainRequest.wlsDomainId
|
|
603
|
+
};
|
|
604
|
+
const queryParams = {};
|
|
605
|
+
let headerParams = {
|
|
606
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
607
|
+
"opc-request-id": getWlsDomainRequest.opcRequestId
|
|
608
|
+
};
|
|
609
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
610
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
611
|
+
if (this.logger)
|
|
612
|
+
retrier.logger = this.logger;
|
|
613
|
+
const request = yield oci_common_1.composeRequest({
|
|
614
|
+
baseEndpoint: this._endpoint,
|
|
615
|
+
defaultHeaders: this._defaultHeaders,
|
|
616
|
+
path: "/wlsDomains/{wlsDomainId}",
|
|
617
|
+
method: "GET",
|
|
618
|
+
pathParams: pathParams,
|
|
619
|
+
headerParams: headerParams,
|
|
620
|
+
queryParams: queryParams
|
|
621
|
+
});
|
|
622
|
+
try {
|
|
623
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
624
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
625
|
+
responseObject: {},
|
|
626
|
+
body: yield response.json(),
|
|
627
|
+
bodyKey: "wlsDomain",
|
|
628
|
+
bodyModel: model.WlsDomain,
|
|
629
|
+
type: "model.WlsDomain",
|
|
630
|
+
responseHeaders: [
|
|
631
|
+
{
|
|
632
|
+
value: response.headers.get("etag"),
|
|
633
|
+
key: "etag",
|
|
634
|
+
dataType: "string"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
value: response.headers.get("opc-request-id"),
|
|
638
|
+
key: "opcRequestId",
|
|
639
|
+
dataType: "string"
|
|
640
|
+
}
|
|
641
|
+
]
|
|
642
|
+
});
|
|
643
|
+
return sdkResponse;
|
|
644
|
+
}
|
|
645
|
+
catch (err) {
|
|
646
|
+
throw err;
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Gets WebLogic and Node Manager credentials of a specific WebLogic domain.
|
|
652
|
+
*
|
|
653
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
654
|
+
* @param GetWlsDomainCredentialRequest
|
|
655
|
+
* @return GetWlsDomainCredentialResponse
|
|
656
|
+
* @throws OciError when an error occurs
|
|
657
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetWlsDomainCredential.ts.html |here} to see how to use GetWlsDomainCredential API.
|
|
658
|
+
*/
|
|
659
|
+
getWlsDomainCredential(getWlsDomainCredentialRequest) {
|
|
660
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
661
|
+
if (this.logger)
|
|
662
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getWlsDomainCredential.");
|
|
663
|
+
const operationName = "getWlsDomainCredential";
|
|
664
|
+
const apiReferenceLink = "";
|
|
665
|
+
const pathParams = {
|
|
666
|
+
"{wlsDomainId}": getWlsDomainCredentialRequest.wlsDomainId,
|
|
667
|
+
"{credentialType}": getWlsDomainCredentialRequest.credentialType
|
|
668
|
+
};
|
|
669
|
+
const queryParams = {};
|
|
670
|
+
let headerParams = {
|
|
671
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
672
|
+
"opc-request-id": getWlsDomainCredentialRequest.opcRequestId
|
|
673
|
+
};
|
|
674
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
675
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWlsDomainCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
676
|
+
if (this.logger)
|
|
677
|
+
retrier.logger = this.logger;
|
|
678
|
+
const request = yield oci_common_1.composeRequest({
|
|
679
|
+
baseEndpoint: this._endpoint,
|
|
680
|
+
defaultHeaders: this._defaultHeaders,
|
|
681
|
+
path: "/wlsDomains/{wlsDomainId}/credentials/{credentialType}",
|
|
682
|
+
method: "GET",
|
|
683
|
+
pathParams: pathParams,
|
|
684
|
+
headerParams: headerParams,
|
|
685
|
+
queryParams: queryParams
|
|
686
|
+
});
|
|
687
|
+
try {
|
|
688
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
689
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
690
|
+
responseObject: {},
|
|
691
|
+
body: yield response.json(),
|
|
692
|
+
bodyKey: "wlsDomainCredential",
|
|
693
|
+
bodyModel: model.WlsDomainCredential,
|
|
694
|
+
type: "model.WlsDomainCredential",
|
|
695
|
+
responseHeaders: [
|
|
696
|
+
{
|
|
697
|
+
value: response.headers.get("etag"),
|
|
698
|
+
key: "etag",
|
|
699
|
+
dataType: "string"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
value: response.headers.get("opc-request-id"),
|
|
703
|
+
key: "opcRequestId",
|
|
704
|
+
dataType: "string"
|
|
705
|
+
}
|
|
706
|
+
]
|
|
707
|
+
});
|
|
708
|
+
return sdkResponse;
|
|
709
|
+
}
|
|
710
|
+
catch (err) {
|
|
711
|
+
throw err;
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Gets information about the specified server in a WebLogic domain.
|
|
717
|
+
*
|
|
718
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
719
|
+
* @param GetWlsDomainServerRequest
|
|
720
|
+
* @return GetWlsDomainServerResponse
|
|
721
|
+
* @throws OciError when an error occurs
|
|
722
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetWlsDomainServer.ts.html |here} to see how to use GetWlsDomainServer API.
|
|
723
|
+
*/
|
|
724
|
+
getWlsDomainServer(getWlsDomainServerRequest) {
|
|
725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
726
|
+
if (this.logger)
|
|
727
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getWlsDomainServer.");
|
|
728
|
+
const operationName = "getWlsDomainServer";
|
|
729
|
+
const apiReferenceLink = "";
|
|
730
|
+
const pathParams = {
|
|
731
|
+
"{wlsDomainId}": getWlsDomainServerRequest.wlsDomainId,
|
|
732
|
+
"{serverId}": getWlsDomainServerRequest.serverId
|
|
733
|
+
};
|
|
734
|
+
const queryParams = {};
|
|
735
|
+
let headerParams = {
|
|
736
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
737
|
+
"opc-request-id": getWlsDomainServerRequest.opcRequestId
|
|
738
|
+
};
|
|
739
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
740
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWlsDomainServerRequest.retryConfiguration, specRetryConfiguration);
|
|
741
|
+
if (this.logger)
|
|
742
|
+
retrier.logger = this.logger;
|
|
743
|
+
const request = yield oci_common_1.composeRequest({
|
|
744
|
+
baseEndpoint: this._endpoint,
|
|
745
|
+
defaultHeaders: this._defaultHeaders,
|
|
746
|
+
path: "/wlsDomains/{wlsDomainId}/servers/{serverId}",
|
|
747
|
+
method: "GET",
|
|
748
|
+
pathParams: pathParams,
|
|
749
|
+
headerParams: headerParams,
|
|
750
|
+
queryParams: queryParams
|
|
751
|
+
});
|
|
752
|
+
try {
|
|
753
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
754
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
755
|
+
responseObject: {},
|
|
756
|
+
body: yield response.json(),
|
|
757
|
+
bodyKey: "server",
|
|
758
|
+
bodyModel: model.Server,
|
|
759
|
+
type: "model.Server",
|
|
760
|
+
responseHeaders: [
|
|
761
|
+
{
|
|
762
|
+
value: response.headers.get("etag"),
|
|
763
|
+
key: "etag",
|
|
764
|
+
dataType: "string"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
value: response.headers.get("opc-request-id"),
|
|
768
|
+
key: "opcRequestId",
|
|
769
|
+
dataType: "string"
|
|
770
|
+
}
|
|
771
|
+
]
|
|
772
|
+
});
|
|
773
|
+
return sdkResponse;
|
|
774
|
+
}
|
|
775
|
+
catch (err) {
|
|
776
|
+
throw err;
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Get details of specific backup for the WebLogic Domain.
|
|
782
|
+
*
|
|
783
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
784
|
+
* @param GetWlsDomainServerBackupRequest
|
|
785
|
+
* @return GetWlsDomainServerBackupResponse
|
|
786
|
+
* @throws OciError when an error occurs
|
|
787
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetWlsDomainServerBackup.ts.html |here} to see how to use GetWlsDomainServerBackup API.
|
|
788
|
+
*/
|
|
789
|
+
getWlsDomainServerBackup(getWlsDomainServerBackupRequest) {
|
|
790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
791
|
+
if (this.logger)
|
|
792
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getWlsDomainServerBackup.");
|
|
793
|
+
const operationName = "getWlsDomainServerBackup";
|
|
794
|
+
const apiReferenceLink = "";
|
|
795
|
+
const pathParams = {
|
|
796
|
+
"{wlsDomainId}": getWlsDomainServerBackupRequest.wlsDomainId,
|
|
797
|
+
"{serverId}": getWlsDomainServerBackupRequest.serverId,
|
|
798
|
+
"{backupId}": getWlsDomainServerBackupRequest.backupId
|
|
799
|
+
};
|
|
800
|
+
const queryParams = {};
|
|
801
|
+
let headerParams = {
|
|
802
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
803
|
+
"opc-request-id": getWlsDomainServerBackupRequest.opcRequestId
|
|
804
|
+
};
|
|
805
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
806
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWlsDomainServerBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
807
|
+
if (this.logger)
|
|
808
|
+
retrier.logger = this.logger;
|
|
809
|
+
const request = yield oci_common_1.composeRequest({
|
|
810
|
+
baseEndpoint: this._endpoint,
|
|
811
|
+
defaultHeaders: this._defaultHeaders,
|
|
812
|
+
path: "/wlsDomains/{wlsDomainId}/servers/{serverId}/backups/{backupId}",
|
|
813
|
+
method: "GET",
|
|
814
|
+
pathParams: pathParams,
|
|
815
|
+
headerParams: headerParams,
|
|
816
|
+
queryParams: queryParams
|
|
817
|
+
});
|
|
818
|
+
try {
|
|
819
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
820
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
821
|
+
responseObject: {},
|
|
822
|
+
body: yield response.json(),
|
|
823
|
+
bodyKey: "backup",
|
|
824
|
+
bodyModel: model.Backup,
|
|
825
|
+
type: "model.Backup",
|
|
826
|
+
responseHeaders: [
|
|
827
|
+
{
|
|
828
|
+
value: response.headers.get("etag"),
|
|
829
|
+
key: "etag",
|
|
830
|
+
dataType: "string"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
value: response.headers.get("opc-request-id"),
|
|
834
|
+
key: "opcRequestId",
|
|
835
|
+
dataType: "string"
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
});
|
|
839
|
+
return sdkResponse;
|
|
840
|
+
}
|
|
841
|
+
catch (err) {
|
|
842
|
+
throw err;
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Get details of specific backup for the WebLogic Domain.
|
|
848
|
+
*
|
|
849
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
850
|
+
* @param GetWlsDomainServerBackupContentRequest
|
|
851
|
+
* @return GetWlsDomainServerBackupContentResponse
|
|
852
|
+
* @throws OciError when an error occurs
|
|
853
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetWlsDomainServerBackupContent.ts.html |here} to see how to use GetWlsDomainServerBackupContent API.
|
|
854
|
+
*/
|
|
855
|
+
getWlsDomainServerBackupContent(getWlsDomainServerBackupContentRequest) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
+
if (this.logger)
|
|
858
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getWlsDomainServerBackupContent.");
|
|
859
|
+
const operationName = "getWlsDomainServerBackupContent";
|
|
860
|
+
const apiReferenceLink = "";
|
|
861
|
+
const pathParams = {
|
|
862
|
+
"{wlsDomainId}": getWlsDomainServerBackupContentRequest.wlsDomainId,
|
|
863
|
+
"{serverId}": getWlsDomainServerBackupContentRequest.serverId,
|
|
864
|
+
"{backupId}": getWlsDomainServerBackupContentRequest.backupId
|
|
865
|
+
};
|
|
866
|
+
const queryParams = {};
|
|
867
|
+
let headerParams = {
|
|
868
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
869
|
+
"opc-request-id": getWlsDomainServerBackupContentRequest.opcRequestId
|
|
870
|
+
};
|
|
871
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
872
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWlsDomainServerBackupContentRequest.retryConfiguration, specRetryConfiguration);
|
|
873
|
+
if (this.logger)
|
|
874
|
+
retrier.logger = this.logger;
|
|
875
|
+
const request = yield oci_common_1.composeRequest({
|
|
876
|
+
baseEndpoint: this._endpoint,
|
|
877
|
+
defaultHeaders: this._defaultHeaders,
|
|
878
|
+
path: "/wlsDomains/{wlsDomainId}/servers/{serverId}/backups/{backupId}/content",
|
|
879
|
+
method: "GET",
|
|
880
|
+
pathParams: pathParams,
|
|
881
|
+
headerParams: headerParams,
|
|
882
|
+
queryParams: queryParams
|
|
883
|
+
});
|
|
884
|
+
try {
|
|
885
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
886
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
887
|
+
responseObject: {},
|
|
888
|
+
body: yield response.json(),
|
|
889
|
+
bodyKey: "backupContent",
|
|
890
|
+
bodyModel: model.BackupContent,
|
|
891
|
+
type: "model.BackupContent",
|
|
892
|
+
responseHeaders: [
|
|
893
|
+
{
|
|
894
|
+
value: response.headers.get("etag"),
|
|
895
|
+
key: "etag",
|
|
896
|
+
dataType: "string"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
value: response.headers.get("opc-request-id"),
|
|
900
|
+
key: "opcRequestId",
|
|
901
|
+
dataType: "string"
|
|
902
|
+
}
|
|
903
|
+
]
|
|
904
|
+
});
|
|
905
|
+
return sdkResponse;
|
|
906
|
+
}
|
|
907
|
+
catch (err) {
|
|
908
|
+
throw err;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Gets the details of a work request.
|
|
914
|
+
*
|
|
915
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
916
|
+
* @param GetWorkRequestRequest
|
|
917
|
+
* @return GetWorkRequestResponse
|
|
918
|
+
* @throws OciError when an error occurs
|
|
919
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
920
|
+
*/
|
|
921
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
923
|
+
if (this.logger)
|
|
924
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#getWorkRequest.");
|
|
925
|
+
const operationName = "getWorkRequest";
|
|
926
|
+
const apiReferenceLink = "";
|
|
927
|
+
const pathParams = {
|
|
928
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
929
|
+
};
|
|
930
|
+
const queryParams = {};
|
|
931
|
+
let headerParams = {
|
|
932
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
933
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
934
|
+
};
|
|
935
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
936
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
937
|
+
if (this.logger)
|
|
938
|
+
retrier.logger = this.logger;
|
|
939
|
+
const request = yield oci_common_1.composeRequest({
|
|
940
|
+
baseEndpoint: this._endpoint,
|
|
941
|
+
defaultHeaders: this._defaultHeaders,
|
|
942
|
+
path: "/workRequests/{workRequestId}",
|
|
943
|
+
method: "GET",
|
|
944
|
+
pathParams: pathParams,
|
|
945
|
+
headerParams: headerParams,
|
|
946
|
+
queryParams: queryParams
|
|
947
|
+
});
|
|
948
|
+
try {
|
|
949
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
950
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
951
|
+
responseObject: {},
|
|
952
|
+
body: yield response.json(),
|
|
953
|
+
bodyKey: "workRequest",
|
|
954
|
+
bodyModel: model.WorkRequest,
|
|
955
|
+
type: "model.WorkRequest",
|
|
956
|
+
responseHeaders: [
|
|
957
|
+
{
|
|
958
|
+
value: response.headers.get("etag"),
|
|
959
|
+
key: "etag",
|
|
960
|
+
dataType: "string"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
value: response.headers.get("opc-request-id"),
|
|
964
|
+
key: "opcRequestId",
|
|
965
|
+
dataType: "string"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
value: response.headers.get("retry-after"),
|
|
969
|
+
key: "retryAfter",
|
|
970
|
+
dataType: "number"
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
});
|
|
974
|
+
return sdkResponse;
|
|
975
|
+
}
|
|
976
|
+
catch (err) {
|
|
977
|
+
throw err;
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Install the latest patches on a WebLogic domain.
|
|
983
|
+
*
|
|
984
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
985
|
+
* @param InstallLatestPatchesOnWlsDomainRequest
|
|
986
|
+
* @return InstallLatestPatchesOnWlsDomainResponse
|
|
987
|
+
* @throws OciError when an error occurs
|
|
988
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/InstallLatestPatchesOnWlsDomain.ts.html |here} to see how to use InstallLatestPatchesOnWlsDomain API.
|
|
989
|
+
*/
|
|
990
|
+
installLatestPatchesOnWlsDomain(installLatestPatchesOnWlsDomainRequest) {
|
|
991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
992
|
+
if (this.logger)
|
|
993
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#installLatestPatchesOnWlsDomain.");
|
|
994
|
+
const operationName = "installLatestPatchesOnWlsDomain";
|
|
995
|
+
const apiReferenceLink = "";
|
|
996
|
+
const pathParams = {
|
|
997
|
+
"{wlsDomainId}": installLatestPatchesOnWlsDomainRequest.wlsDomainId
|
|
998
|
+
};
|
|
999
|
+
const queryParams = {};
|
|
1000
|
+
let headerParams = {
|
|
1001
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1002
|
+
"if-match": installLatestPatchesOnWlsDomainRequest.ifMatch,
|
|
1003
|
+
"opc-request-id": installLatestPatchesOnWlsDomainRequest.opcRequestId,
|
|
1004
|
+
"opc-retry-token": installLatestPatchesOnWlsDomainRequest.opcRetryToken
|
|
1005
|
+
};
|
|
1006
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1007
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, installLatestPatchesOnWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
1008
|
+
if (this.logger)
|
|
1009
|
+
retrier.logger = this.logger;
|
|
1010
|
+
const request = yield oci_common_1.composeRequest({
|
|
1011
|
+
baseEndpoint: this._endpoint,
|
|
1012
|
+
defaultHeaders: this._defaultHeaders,
|
|
1013
|
+
path: "/wlsDomains/{wlsDomainId}/actions/installLatestPatches",
|
|
1014
|
+
method: "POST",
|
|
1015
|
+
bodyContent: common.ObjectSerializer.serialize(installLatestPatchesOnWlsDomainRequest.installLatestPatchesOnWlsDomainDetails, "InstallLatestPatchesOnWlsDomainDetails", model.InstallLatestPatchesOnWlsDomainDetails.getJsonObj),
|
|
1016
|
+
pathParams: pathParams,
|
|
1017
|
+
headerParams: headerParams,
|
|
1018
|
+
queryParams: queryParams
|
|
1019
|
+
});
|
|
1020
|
+
try {
|
|
1021
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1022
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1023
|
+
responseObject: {},
|
|
1024
|
+
responseHeaders: [
|
|
1025
|
+
{
|
|
1026
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1027
|
+
key: "opcWorkRequestId",
|
|
1028
|
+
dataType: "string"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
value: response.headers.get("opc-request-id"),
|
|
1032
|
+
key: "opcRequestId",
|
|
1033
|
+
dataType: "string"
|
|
1034
|
+
}
|
|
1035
|
+
]
|
|
1036
|
+
});
|
|
1037
|
+
return sdkResponse;
|
|
1038
|
+
}
|
|
1039
|
+
catch (err) {
|
|
1040
|
+
throw err;
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* List the terms of use agreement record for the WebLogic domain.
|
|
1046
|
+
*
|
|
1047
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1048
|
+
* @param ListAgreementRecordsRequest
|
|
1049
|
+
* @return ListAgreementRecordsResponse
|
|
1050
|
+
* @throws OciError when an error occurs
|
|
1051
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListAgreementRecords.ts.html |here} to see how to use ListAgreementRecords API.
|
|
1052
|
+
*/
|
|
1053
|
+
listAgreementRecords(listAgreementRecordsRequest) {
|
|
1054
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1055
|
+
if (this.logger)
|
|
1056
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listAgreementRecords.");
|
|
1057
|
+
const operationName = "listAgreementRecords";
|
|
1058
|
+
const apiReferenceLink = "";
|
|
1059
|
+
const pathParams = {
|
|
1060
|
+
"{wlsDomainId}": listAgreementRecordsRequest.wlsDomainId
|
|
1061
|
+
};
|
|
1062
|
+
const queryParams = {
|
|
1063
|
+
"limit": listAgreementRecordsRequest.limit,
|
|
1064
|
+
"page": listAgreementRecordsRequest.page,
|
|
1065
|
+
"sortOrder": listAgreementRecordsRequest.sortOrder,
|
|
1066
|
+
"sortBy": listAgreementRecordsRequest.sortBy
|
|
1067
|
+
};
|
|
1068
|
+
let headerParams = {
|
|
1069
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1070
|
+
"opc-request-id": listAgreementRecordsRequest.opcRequestId
|
|
1071
|
+
};
|
|
1072
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1073
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAgreementRecordsRequest.retryConfiguration, specRetryConfiguration);
|
|
1074
|
+
if (this.logger)
|
|
1075
|
+
retrier.logger = this.logger;
|
|
1076
|
+
const request = yield oci_common_1.composeRequest({
|
|
1077
|
+
baseEndpoint: this._endpoint,
|
|
1078
|
+
defaultHeaders: this._defaultHeaders,
|
|
1079
|
+
path: "/wlsDomains/{wlsDomainId}/agreementRecords",
|
|
1080
|
+
method: "GET",
|
|
1081
|
+
pathParams: pathParams,
|
|
1082
|
+
headerParams: headerParams,
|
|
1083
|
+
queryParams: queryParams
|
|
1084
|
+
});
|
|
1085
|
+
try {
|
|
1086
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1087
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1088
|
+
responseObject: {},
|
|
1089
|
+
body: yield response.json(),
|
|
1090
|
+
bodyKey: "agreementRecordCollection",
|
|
1091
|
+
bodyModel: model.AgreementRecordCollection,
|
|
1092
|
+
type: "model.AgreementRecordCollection",
|
|
1093
|
+
responseHeaders: [
|
|
1094
|
+
{
|
|
1095
|
+
value: response.headers.get("opc-request-id"),
|
|
1096
|
+
key: "opcRequestId",
|
|
1097
|
+
dataType: "string"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
value: response.headers.get("opc-next-page"),
|
|
1101
|
+
key: "opcNextPage",
|
|
1102
|
+
dataType: "string"
|
|
1103
|
+
}
|
|
1104
|
+
]
|
|
1105
|
+
});
|
|
1106
|
+
return sdkResponse;
|
|
1107
|
+
}
|
|
1108
|
+
catch (err) {
|
|
1109
|
+
throw err;
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Gets the latest patches that can be installed to the WebLogic domains.
|
|
1115
|
+
*
|
|
1116
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1117
|
+
* @param ListApplicablePatchesRequest
|
|
1118
|
+
* @return ListApplicablePatchesResponse
|
|
1119
|
+
* @throws OciError when an error occurs
|
|
1120
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListApplicablePatches.ts.html |here} to see how to use ListApplicablePatches API.
|
|
1121
|
+
*/
|
|
1122
|
+
listApplicablePatches(listApplicablePatchesRequest) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
if (this.logger)
|
|
1125
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listApplicablePatches.");
|
|
1126
|
+
const operationName = "listApplicablePatches";
|
|
1127
|
+
const apiReferenceLink = "";
|
|
1128
|
+
const pathParams = {
|
|
1129
|
+
"{wlsDomainId}": listApplicablePatchesRequest.wlsDomainId
|
|
1130
|
+
};
|
|
1131
|
+
const queryParams = {
|
|
1132
|
+
"limit": listApplicablePatchesRequest.limit,
|
|
1133
|
+
"page": listApplicablePatchesRequest.page,
|
|
1134
|
+
"sortOrder": listApplicablePatchesRequest.sortOrder,
|
|
1135
|
+
"sortBy": listApplicablePatchesRequest.sortBy
|
|
1136
|
+
};
|
|
1137
|
+
let headerParams = {
|
|
1138
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1139
|
+
"opc-request-id": listApplicablePatchesRequest.opcRequestId,
|
|
1140
|
+
"opc-retry-token": listApplicablePatchesRequest.opcRetryToken
|
|
1141
|
+
};
|
|
1142
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1143
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApplicablePatchesRequest.retryConfiguration, specRetryConfiguration);
|
|
1144
|
+
if (this.logger)
|
|
1145
|
+
retrier.logger = this.logger;
|
|
1146
|
+
const request = yield oci_common_1.composeRequest({
|
|
1147
|
+
baseEndpoint: this._endpoint,
|
|
1148
|
+
defaultHeaders: this._defaultHeaders,
|
|
1149
|
+
path: "/wlsDomains/{wlsDomainId}/applicablePatches",
|
|
1150
|
+
method: "GET",
|
|
1151
|
+
pathParams: pathParams,
|
|
1152
|
+
headerParams: headerParams,
|
|
1153
|
+
queryParams: queryParams
|
|
1154
|
+
});
|
|
1155
|
+
try {
|
|
1156
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1157
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1158
|
+
responseObject: {},
|
|
1159
|
+
body: yield response.json(),
|
|
1160
|
+
bodyKey: "applicablePatchCollection",
|
|
1161
|
+
bodyModel: model.ApplicablePatchCollection,
|
|
1162
|
+
type: "model.ApplicablePatchCollection",
|
|
1163
|
+
responseHeaders: [
|
|
1164
|
+
{
|
|
1165
|
+
value: response.headers.get("opc-request-id"),
|
|
1166
|
+
key: "opcRequestId",
|
|
1167
|
+
dataType: "string"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
value: response.headers.get("opc-next-page"),
|
|
1171
|
+
key: "opcNextPage",
|
|
1172
|
+
dataType: "string"
|
|
1173
|
+
}
|
|
1174
|
+
]
|
|
1175
|
+
});
|
|
1176
|
+
return sdkResponse;
|
|
1177
|
+
}
|
|
1178
|
+
catch (err) {
|
|
1179
|
+
throw err;
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Gets all the scan results for all WebLogic servers in the managed instance.
|
|
1185
|
+
*
|
|
1186
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1187
|
+
* @param ListManagedInstanceScanResultsRequest
|
|
1188
|
+
* @return ListManagedInstanceScanResultsResponse
|
|
1189
|
+
* @throws OciError when an error occurs
|
|
1190
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListManagedInstanceScanResults.ts.html |here} to see how to use ListManagedInstanceScanResults API.
|
|
1191
|
+
*/
|
|
1192
|
+
listManagedInstanceScanResults(listManagedInstanceScanResultsRequest) {
|
|
1193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1194
|
+
if (this.logger)
|
|
1195
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listManagedInstanceScanResults.");
|
|
1196
|
+
const operationName = "listManagedInstanceScanResults";
|
|
1197
|
+
const apiReferenceLink = "";
|
|
1198
|
+
const pathParams = {
|
|
1199
|
+
"{managedInstanceId}": listManagedInstanceScanResultsRequest.managedInstanceId
|
|
1200
|
+
};
|
|
1201
|
+
const queryParams = {
|
|
1202
|
+
"limit": listManagedInstanceScanResultsRequest.limit,
|
|
1203
|
+
"page": listManagedInstanceScanResultsRequest.page,
|
|
1204
|
+
"sortOrder": listManagedInstanceScanResultsRequest.sortOrder,
|
|
1205
|
+
"sortBy": listManagedInstanceScanResultsRequest.sortBy,
|
|
1206
|
+
"wlsDomainId": listManagedInstanceScanResultsRequest.wlsDomainId,
|
|
1207
|
+
"serverName": listManagedInstanceScanResultsRequest.serverName
|
|
1208
|
+
};
|
|
1209
|
+
let headerParams = {
|
|
1210
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1211
|
+
"opc-request-id": listManagedInstanceScanResultsRequest.opcRequestId
|
|
1212
|
+
};
|
|
1213
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1214
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagedInstanceScanResultsRequest.retryConfiguration, specRetryConfiguration);
|
|
1215
|
+
if (this.logger)
|
|
1216
|
+
retrier.logger = this.logger;
|
|
1217
|
+
const request = yield oci_common_1.composeRequest({
|
|
1218
|
+
baseEndpoint: this._endpoint,
|
|
1219
|
+
defaultHeaders: this._defaultHeaders,
|
|
1220
|
+
path: "/managedInstances/{managedInstanceId}/scanResults",
|
|
1221
|
+
method: "GET",
|
|
1222
|
+
pathParams: pathParams,
|
|
1223
|
+
headerParams: headerParams,
|
|
1224
|
+
queryParams: queryParams
|
|
1225
|
+
});
|
|
1226
|
+
try {
|
|
1227
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1228
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1229
|
+
responseObject: {},
|
|
1230
|
+
body: yield response.json(),
|
|
1231
|
+
bodyKey: "scanResultCollection",
|
|
1232
|
+
bodyModel: model.ScanResultCollection,
|
|
1233
|
+
type: "model.ScanResultCollection",
|
|
1234
|
+
responseHeaders: [
|
|
1235
|
+
{
|
|
1236
|
+
value: response.headers.get("opc-request-id"),
|
|
1237
|
+
key: "opcRequestId",
|
|
1238
|
+
dataType: "string"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
value: response.headers.get("opc-next-page"),
|
|
1242
|
+
key: "opcNextPage",
|
|
1243
|
+
dataType: "string"
|
|
1244
|
+
}
|
|
1245
|
+
]
|
|
1246
|
+
});
|
|
1247
|
+
return sdkResponse;
|
|
1248
|
+
}
|
|
1249
|
+
catch (err) {
|
|
1250
|
+
throw err;
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Gets a list of installed patches on a server in a managed instance.
|
|
1256
|
+
*
|
|
1257
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1258
|
+
* @param ListManagedInstanceServerInstalledPatchesRequest
|
|
1259
|
+
* @return ListManagedInstanceServerInstalledPatchesResponse
|
|
1260
|
+
* @throws OciError when an error occurs
|
|
1261
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListManagedInstanceServerInstalledPatches.ts.html |here} to see how to use ListManagedInstanceServerInstalledPatches API.
|
|
1262
|
+
*/
|
|
1263
|
+
listManagedInstanceServerInstalledPatches(listManagedInstanceServerInstalledPatchesRequest) {
|
|
1264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
|
+
if (this.logger)
|
|
1266
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listManagedInstanceServerInstalledPatches.");
|
|
1267
|
+
const operationName = "listManagedInstanceServerInstalledPatches";
|
|
1268
|
+
const apiReferenceLink = "";
|
|
1269
|
+
const pathParams = {
|
|
1270
|
+
"{managedInstanceId}": listManagedInstanceServerInstalledPatchesRequest.managedInstanceId,
|
|
1271
|
+
"{serverId}": listManagedInstanceServerInstalledPatchesRequest.serverId
|
|
1272
|
+
};
|
|
1273
|
+
const queryParams = {
|
|
1274
|
+
"limit": listManagedInstanceServerInstalledPatchesRequest.limit,
|
|
1275
|
+
"page": listManagedInstanceServerInstalledPatchesRequest.page,
|
|
1276
|
+
"sortOrder": listManagedInstanceServerInstalledPatchesRequest.sortOrder,
|
|
1277
|
+
"sortBy": listManagedInstanceServerInstalledPatchesRequest.sortBy
|
|
1278
|
+
};
|
|
1279
|
+
let headerParams = {
|
|
1280
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1281
|
+
"opc-request-id": listManagedInstanceServerInstalledPatchesRequest.opcRequestId
|
|
1282
|
+
};
|
|
1283
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1284
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagedInstanceServerInstalledPatchesRequest.retryConfiguration, specRetryConfiguration);
|
|
1285
|
+
if (this.logger)
|
|
1286
|
+
retrier.logger = this.logger;
|
|
1287
|
+
const request = yield oci_common_1.composeRequest({
|
|
1288
|
+
baseEndpoint: this._endpoint,
|
|
1289
|
+
defaultHeaders: this._defaultHeaders,
|
|
1290
|
+
path: "/managedInstances/{managedInstanceId}/servers/{serverId}/installedPatches",
|
|
1291
|
+
method: "GET",
|
|
1292
|
+
pathParams: pathParams,
|
|
1293
|
+
headerParams: headerParams,
|
|
1294
|
+
queryParams: queryParams
|
|
1295
|
+
});
|
|
1296
|
+
try {
|
|
1297
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1298
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1299
|
+
responseObject: {},
|
|
1300
|
+
body: yield response.json(),
|
|
1301
|
+
bodyKey: "installedPatchCollection",
|
|
1302
|
+
bodyModel: model.InstalledPatchCollection,
|
|
1303
|
+
type: "model.InstalledPatchCollection",
|
|
1304
|
+
responseHeaders: [
|
|
1305
|
+
{
|
|
1306
|
+
value: response.headers.get("opc-request-id"),
|
|
1307
|
+
key: "opcRequestId",
|
|
1308
|
+
dataType: "string"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
value: response.headers.get("opc-next-page"),
|
|
1312
|
+
key: "opcNextPage",
|
|
1313
|
+
dataType: "string"
|
|
1314
|
+
}
|
|
1315
|
+
]
|
|
1316
|
+
});
|
|
1317
|
+
return sdkResponse;
|
|
1318
|
+
}
|
|
1319
|
+
catch (err) {
|
|
1320
|
+
throw err;
|
|
1321
|
+
}
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Gets list of servers in a specific managed instance.
|
|
1326
|
+
*
|
|
1327
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1328
|
+
* @param ListManagedInstanceServersRequest
|
|
1329
|
+
* @return ListManagedInstanceServersResponse
|
|
1330
|
+
* @throws OciError when an error occurs
|
|
1331
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListManagedInstanceServers.ts.html |here} to see how to use ListManagedInstanceServers API.
|
|
1332
|
+
*/
|
|
1333
|
+
listManagedInstanceServers(listManagedInstanceServersRequest) {
|
|
1334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1335
|
+
if (this.logger)
|
|
1336
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listManagedInstanceServers.");
|
|
1337
|
+
const operationName = "listManagedInstanceServers";
|
|
1338
|
+
const apiReferenceLink = "";
|
|
1339
|
+
const pathParams = {
|
|
1340
|
+
"{managedInstanceId}": listManagedInstanceServersRequest.managedInstanceId
|
|
1341
|
+
};
|
|
1342
|
+
const queryParams = {
|
|
1343
|
+
"name": listManagedInstanceServersRequest.name,
|
|
1344
|
+
"limit": listManagedInstanceServersRequest.limit,
|
|
1345
|
+
"page": listManagedInstanceServersRequest.page,
|
|
1346
|
+
"sortOrder": listManagedInstanceServersRequest.sortOrder,
|
|
1347
|
+
"sortBy": listManagedInstanceServersRequest.sortBy
|
|
1348
|
+
};
|
|
1349
|
+
let headerParams = {
|
|
1350
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1351
|
+
"opc-request-id": listManagedInstanceServersRequest.opcRequestId,
|
|
1352
|
+
"opc-retry-token": listManagedInstanceServersRequest.opcRetryToken
|
|
1353
|
+
};
|
|
1354
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1355
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagedInstanceServersRequest.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: "/managedInstances/{managedInstanceId}/servers",
|
|
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: "serverCollection",
|
|
1373
|
+
bodyModel: model.ServerCollection,
|
|
1374
|
+
type: "model.ServerCollection",
|
|
1375
|
+
responseHeaders: [
|
|
1376
|
+
{
|
|
1377
|
+
value: response.headers.get("opc-next-page"),
|
|
1378
|
+
key: "opcNextPage",
|
|
1379
|
+
dataType: "string"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
value: response.headers.get("opc-request-id"),
|
|
1383
|
+
key: "opcRequestId",
|
|
1384
|
+
dataType: "string"
|
|
1385
|
+
}
|
|
1386
|
+
]
|
|
1387
|
+
});
|
|
1388
|
+
return sdkResponse;
|
|
1389
|
+
}
|
|
1390
|
+
catch (err) {
|
|
1391
|
+
throw err;
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Lists managed instances that match the specified compartment or managed instance OCID. Filter the list against a variety of criteria including but not limited to its name, status and compartment.
|
|
1397
|
+
*
|
|
1398
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1399
|
+
* @param ListManagedInstancesRequest
|
|
1400
|
+
* @return ListManagedInstancesResponse
|
|
1401
|
+
* @throws OciError when an error occurs
|
|
1402
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListManagedInstances.ts.html |here} to see how to use ListManagedInstances API.
|
|
1403
|
+
*/
|
|
1404
|
+
listManagedInstances(listManagedInstancesRequest) {
|
|
1405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1406
|
+
if (this.logger)
|
|
1407
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listManagedInstances.");
|
|
1408
|
+
const operationName = "listManagedInstances";
|
|
1409
|
+
const apiReferenceLink = "";
|
|
1410
|
+
const pathParams = {};
|
|
1411
|
+
const queryParams = {
|
|
1412
|
+
"compartmentId": listManagedInstancesRequest.compartmentId,
|
|
1413
|
+
"displayName": listManagedInstancesRequest.displayName,
|
|
1414
|
+
"id": listManagedInstancesRequest.id,
|
|
1415
|
+
"pluginStatus": listManagedInstancesRequest.pluginStatus,
|
|
1416
|
+
"limit": listManagedInstancesRequest.limit,
|
|
1417
|
+
"page": listManagedInstancesRequest.page,
|
|
1418
|
+
"sortOrder": listManagedInstancesRequest.sortOrder,
|
|
1419
|
+
"sortBy": listManagedInstancesRequest.sortBy
|
|
1420
|
+
};
|
|
1421
|
+
let headerParams = {
|
|
1422
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1423
|
+
"opc-request-id": listManagedInstancesRequest.opcRequestId,
|
|
1424
|
+
"opc-retry-token": listManagedInstancesRequest.opcRetryToken
|
|
1425
|
+
};
|
|
1426
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1427
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagedInstancesRequest.retryConfiguration, specRetryConfiguration);
|
|
1428
|
+
if (this.logger)
|
|
1429
|
+
retrier.logger = this.logger;
|
|
1430
|
+
const request = yield oci_common_1.composeRequest({
|
|
1431
|
+
baseEndpoint: this._endpoint,
|
|
1432
|
+
defaultHeaders: this._defaultHeaders,
|
|
1433
|
+
path: "/managedInstances",
|
|
1434
|
+
method: "GET",
|
|
1435
|
+
pathParams: pathParams,
|
|
1436
|
+
headerParams: headerParams,
|
|
1437
|
+
queryParams: queryParams
|
|
1438
|
+
});
|
|
1439
|
+
try {
|
|
1440
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1441
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1442
|
+
responseObject: {},
|
|
1443
|
+
body: yield response.json(),
|
|
1444
|
+
bodyKey: "managedInstanceCollection",
|
|
1445
|
+
bodyModel: model.ManagedInstanceCollection,
|
|
1446
|
+
type: "model.ManagedInstanceCollection",
|
|
1447
|
+
responseHeaders: [
|
|
1448
|
+
{
|
|
1449
|
+
value: response.headers.get("opc-request-id"),
|
|
1450
|
+
key: "opcRequestId",
|
|
1451
|
+
dataType: "string"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
value: response.headers.get("opc-next-page"),
|
|
1455
|
+
key: "opcNextPage",
|
|
1456
|
+
dataType: "string"
|
|
1457
|
+
}
|
|
1458
|
+
]
|
|
1459
|
+
});
|
|
1460
|
+
return sdkResponse;
|
|
1461
|
+
}
|
|
1462
|
+
catch (err) {
|
|
1463
|
+
throw err;
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Gets all the required policies for the WebLogic Management Service.
|
|
1469
|
+
*
|
|
1470
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1471
|
+
* @param ListRequiredPoliciesRequest
|
|
1472
|
+
* @return ListRequiredPoliciesResponse
|
|
1473
|
+
* @throws OciError when an error occurs
|
|
1474
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListRequiredPolicies.ts.html |here} to see how to use ListRequiredPolicies API.
|
|
1475
|
+
*/
|
|
1476
|
+
listRequiredPolicies(listRequiredPoliciesRequest) {
|
|
1477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1478
|
+
if (this.logger)
|
|
1479
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listRequiredPolicies.");
|
|
1480
|
+
const operationName = "listRequiredPolicies";
|
|
1481
|
+
const apiReferenceLink = "";
|
|
1482
|
+
const pathParams = {};
|
|
1483
|
+
const queryParams = {};
|
|
1484
|
+
let headerParams = {
|
|
1485
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1486
|
+
"opc-request-id": listRequiredPoliciesRequest.opcRequestId
|
|
1487
|
+
};
|
|
1488
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1489
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRequiredPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
1490
|
+
if (this.logger)
|
|
1491
|
+
retrier.logger = this.logger;
|
|
1492
|
+
const request = yield oci_common_1.composeRequest({
|
|
1493
|
+
baseEndpoint: this._endpoint,
|
|
1494
|
+
defaultHeaders: this._defaultHeaders,
|
|
1495
|
+
path: "/requiredPolicies",
|
|
1496
|
+
method: "GET",
|
|
1497
|
+
pathParams: pathParams,
|
|
1498
|
+
headerParams: headerParams,
|
|
1499
|
+
queryParams: queryParams
|
|
1500
|
+
});
|
|
1501
|
+
try {
|
|
1502
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1503
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1504
|
+
responseObject: {},
|
|
1505
|
+
body: yield response.json(),
|
|
1506
|
+
bodyKey: "requiredPolicyCollection",
|
|
1507
|
+
bodyModel: model.RequiredPolicyCollection,
|
|
1508
|
+
type: "model.RequiredPolicyCollection",
|
|
1509
|
+
responseHeaders: [
|
|
1510
|
+
{
|
|
1511
|
+
value: response.headers.get("opc-request-id"),
|
|
1512
|
+
key: "opcRequestId",
|
|
1513
|
+
dataType: "string"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
value: response.headers.get("opc-next-page"),
|
|
1517
|
+
key: "opcNextPage",
|
|
1518
|
+
dataType: "string"
|
|
1519
|
+
}
|
|
1520
|
+
]
|
|
1521
|
+
});
|
|
1522
|
+
return sdkResponse;
|
|
1523
|
+
}
|
|
1524
|
+
catch (err) {
|
|
1525
|
+
throw err;
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Gets domain credentials of a specific domain.
|
|
1531
|
+
*
|
|
1532
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1533
|
+
* @param ListWlsDomainCredentialsRequest
|
|
1534
|
+
* @return ListWlsDomainCredentialsResponse
|
|
1535
|
+
* @throws OciError when an error occurs
|
|
1536
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomainCredentials.ts.html |here} to see how to use ListWlsDomainCredentials API.
|
|
1537
|
+
*/
|
|
1538
|
+
listWlsDomainCredentials(listWlsDomainCredentialsRequest) {
|
|
1539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1540
|
+
if (this.logger)
|
|
1541
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomainCredentials.");
|
|
1542
|
+
const operationName = "listWlsDomainCredentials";
|
|
1543
|
+
const apiReferenceLink = "";
|
|
1544
|
+
const pathParams = {
|
|
1545
|
+
"{wlsDomainId}": listWlsDomainCredentialsRequest.wlsDomainId
|
|
1546
|
+
};
|
|
1547
|
+
const queryParams = {};
|
|
1548
|
+
let headerParams = {
|
|
1549
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1550
|
+
"opc-request-id": listWlsDomainCredentialsRequest.opcRequestId,
|
|
1551
|
+
"opc-retry-token": listWlsDomainCredentialsRequest.opcRetryToken
|
|
1552
|
+
};
|
|
1553
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1554
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainCredentialsRequest.retryConfiguration, specRetryConfiguration);
|
|
1555
|
+
if (this.logger)
|
|
1556
|
+
retrier.logger = this.logger;
|
|
1557
|
+
const request = yield oci_common_1.composeRequest({
|
|
1558
|
+
baseEndpoint: this._endpoint,
|
|
1559
|
+
defaultHeaders: this._defaultHeaders,
|
|
1560
|
+
path: "/wlsDomains/{wlsDomainId}/credentials",
|
|
1561
|
+
method: "GET",
|
|
1562
|
+
pathParams: pathParams,
|
|
1563
|
+
headerParams: headerParams,
|
|
1564
|
+
queryParams: queryParams
|
|
1565
|
+
});
|
|
1566
|
+
try {
|
|
1567
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1568
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1569
|
+
responseObject: {},
|
|
1570
|
+
body: yield response.json(),
|
|
1571
|
+
bodyKey: "wlsDomainCredentialCollection",
|
|
1572
|
+
bodyModel: model.WlsDomainCredentialCollection,
|
|
1573
|
+
type: "model.WlsDomainCredentialCollection",
|
|
1574
|
+
responseHeaders: [
|
|
1575
|
+
{
|
|
1576
|
+
value: response.headers.get("opc-request-id"),
|
|
1577
|
+
key: "opcRequestId",
|
|
1578
|
+
dataType: "string"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
value: response.headers.get("opc-next-page"),
|
|
1582
|
+
key: "opcNextPage",
|
|
1583
|
+
dataType: "string"
|
|
1584
|
+
}
|
|
1585
|
+
]
|
|
1586
|
+
});
|
|
1587
|
+
return sdkResponse;
|
|
1588
|
+
}
|
|
1589
|
+
catch (err) {
|
|
1590
|
+
throw err;
|
|
1591
|
+
}
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Get all scan results for a server in a specific WebLogic domain.
|
|
1596
|
+
*
|
|
1597
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1598
|
+
* @param ListWlsDomainScanResultsRequest
|
|
1599
|
+
* @return ListWlsDomainScanResultsResponse
|
|
1600
|
+
* @throws OciError when an error occurs
|
|
1601
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomainScanResults.ts.html |here} to see how to use ListWlsDomainScanResults API.
|
|
1602
|
+
*/
|
|
1603
|
+
listWlsDomainScanResults(listWlsDomainScanResultsRequest) {
|
|
1604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1605
|
+
if (this.logger)
|
|
1606
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomainScanResults.");
|
|
1607
|
+
const operationName = "listWlsDomainScanResults";
|
|
1608
|
+
const apiReferenceLink = "";
|
|
1609
|
+
const pathParams = {
|
|
1610
|
+
"{wlsDomainId}": listWlsDomainScanResultsRequest.wlsDomainId
|
|
1611
|
+
};
|
|
1612
|
+
const queryParams = {
|
|
1613
|
+
"serverName": listWlsDomainScanResultsRequest.serverName,
|
|
1614
|
+
"limit": listWlsDomainScanResultsRequest.limit,
|
|
1615
|
+
"page": listWlsDomainScanResultsRequest.page,
|
|
1616
|
+
"sortOrder": listWlsDomainScanResultsRequest.sortOrder,
|
|
1617
|
+
"sortBy": listWlsDomainScanResultsRequest.sortBy
|
|
1618
|
+
};
|
|
1619
|
+
let headerParams = {
|
|
1620
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1621
|
+
"opc-request-id": listWlsDomainScanResultsRequest.opcRequestId
|
|
1622
|
+
};
|
|
1623
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1624
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainScanResultsRequest.retryConfiguration, specRetryConfiguration);
|
|
1625
|
+
if (this.logger)
|
|
1626
|
+
retrier.logger = this.logger;
|
|
1627
|
+
const request = yield oci_common_1.composeRequest({
|
|
1628
|
+
baseEndpoint: this._endpoint,
|
|
1629
|
+
defaultHeaders: this._defaultHeaders,
|
|
1630
|
+
path: "/wlsDomains/{wlsDomainId}/scanResults",
|
|
1631
|
+
method: "GET",
|
|
1632
|
+
pathParams: pathParams,
|
|
1633
|
+
headerParams: headerParams,
|
|
1634
|
+
queryParams: queryParams
|
|
1635
|
+
});
|
|
1636
|
+
try {
|
|
1637
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1638
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1639
|
+
responseObject: {},
|
|
1640
|
+
body: yield response.json(),
|
|
1641
|
+
bodyKey: "scanResultCollection",
|
|
1642
|
+
bodyModel: model.ScanResultCollection,
|
|
1643
|
+
type: "model.ScanResultCollection",
|
|
1644
|
+
responseHeaders: [
|
|
1645
|
+
{
|
|
1646
|
+
value: response.headers.get("opc-request-id"),
|
|
1647
|
+
key: "opcRequestId",
|
|
1648
|
+
dataType: "string"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
value: response.headers.get("opc-next-page"),
|
|
1652
|
+
key: "opcNextPage",
|
|
1653
|
+
dataType: "string"
|
|
1654
|
+
}
|
|
1655
|
+
]
|
|
1656
|
+
});
|
|
1657
|
+
return sdkResponse;
|
|
1658
|
+
}
|
|
1659
|
+
catch (err) {
|
|
1660
|
+
throw err;
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
* Gets a list of backups for the server of a specific WebLogic Domain.
|
|
1666
|
+
*
|
|
1667
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1668
|
+
* @param ListWlsDomainServerBackupsRequest
|
|
1669
|
+
* @return ListWlsDomainServerBackupsResponse
|
|
1670
|
+
* @throws OciError when an error occurs
|
|
1671
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomainServerBackups.ts.html |here} to see how to use ListWlsDomainServerBackups API.
|
|
1672
|
+
*/
|
|
1673
|
+
listWlsDomainServerBackups(listWlsDomainServerBackupsRequest) {
|
|
1674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1675
|
+
if (this.logger)
|
|
1676
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomainServerBackups.");
|
|
1677
|
+
const operationName = "listWlsDomainServerBackups";
|
|
1678
|
+
const apiReferenceLink = "";
|
|
1679
|
+
const pathParams = {
|
|
1680
|
+
"{wlsDomainId}": listWlsDomainServerBackupsRequest.wlsDomainId,
|
|
1681
|
+
"{serverId}": listWlsDomainServerBackupsRequest.serverId
|
|
1682
|
+
};
|
|
1683
|
+
const queryParams = {
|
|
1684
|
+
"limit": listWlsDomainServerBackupsRequest.limit,
|
|
1685
|
+
"page": listWlsDomainServerBackupsRequest.page,
|
|
1686
|
+
"sortOrder": listWlsDomainServerBackupsRequest.sortOrder,
|
|
1687
|
+
"sortBy": listWlsDomainServerBackupsRequest.sortBy
|
|
1688
|
+
};
|
|
1689
|
+
let headerParams = {
|
|
1690
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1691
|
+
"opc-request-id": listWlsDomainServerBackupsRequest.opcRequestId
|
|
1692
|
+
};
|
|
1693
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1694
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainServerBackupsRequest.retryConfiguration, specRetryConfiguration);
|
|
1695
|
+
if (this.logger)
|
|
1696
|
+
retrier.logger = this.logger;
|
|
1697
|
+
const request = yield oci_common_1.composeRequest({
|
|
1698
|
+
baseEndpoint: this._endpoint,
|
|
1699
|
+
defaultHeaders: this._defaultHeaders,
|
|
1700
|
+
path: "/wlsDomains/{wlsDomainId}/servers/{serverId}/backups",
|
|
1701
|
+
method: "GET",
|
|
1702
|
+
pathParams: pathParams,
|
|
1703
|
+
headerParams: headerParams,
|
|
1704
|
+
queryParams: queryParams
|
|
1705
|
+
});
|
|
1706
|
+
try {
|
|
1707
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1708
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1709
|
+
responseObject: {},
|
|
1710
|
+
body: yield response.json(),
|
|
1711
|
+
bodyKey: "backupCollection",
|
|
1712
|
+
bodyModel: model.BackupCollection,
|
|
1713
|
+
type: "model.BackupCollection",
|
|
1714
|
+
responseHeaders: [
|
|
1715
|
+
{
|
|
1716
|
+
value: response.headers.get("opc-request-id"),
|
|
1717
|
+
key: "opcRequestId",
|
|
1718
|
+
dataType: "string"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
value: response.headers.get("opc-next-page"),
|
|
1722
|
+
key: "opcNextPage",
|
|
1723
|
+
dataType: "string"
|
|
1724
|
+
}
|
|
1725
|
+
]
|
|
1726
|
+
});
|
|
1727
|
+
return sdkResponse;
|
|
1728
|
+
}
|
|
1729
|
+
catch (err) {
|
|
1730
|
+
throw err;
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
* Gets a list of installed patches on a server for a domain.
|
|
1736
|
+
*
|
|
1737
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1738
|
+
* @param ListWlsDomainServerInstalledPatchesRequest
|
|
1739
|
+
* @return ListWlsDomainServerInstalledPatchesResponse
|
|
1740
|
+
* @throws OciError when an error occurs
|
|
1741
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomainServerInstalledPatches.ts.html |here} to see how to use ListWlsDomainServerInstalledPatches API.
|
|
1742
|
+
*/
|
|
1743
|
+
listWlsDomainServerInstalledPatches(listWlsDomainServerInstalledPatchesRequest) {
|
|
1744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1745
|
+
if (this.logger)
|
|
1746
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomainServerInstalledPatches.");
|
|
1747
|
+
const operationName = "listWlsDomainServerInstalledPatches";
|
|
1748
|
+
const apiReferenceLink = "";
|
|
1749
|
+
const pathParams = {
|
|
1750
|
+
"{wlsDomainId}": listWlsDomainServerInstalledPatchesRequest.wlsDomainId,
|
|
1751
|
+
"{serverId}": listWlsDomainServerInstalledPatchesRequest.serverId
|
|
1752
|
+
};
|
|
1753
|
+
const queryParams = {
|
|
1754
|
+
"limit": listWlsDomainServerInstalledPatchesRequest.limit,
|
|
1755
|
+
"page": listWlsDomainServerInstalledPatchesRequest.page,
|
|
1756
|
+
"sortOrder": listWlsDomainServerInstalledPatchesRequest.sortOrder,
|
|
1757
|
+
"sortBy": listWlsDomainServerInstalledPatchesRequest.sortBy
|
|
1758
|
+
};
|
|
1759
|
+
let headerParams = {
|
|
1760
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1761
|
+
"opc-request-id": listWlsDomainServerInstalledPatchesRequest.opcRequestId
|
|
1762
|
+
};
|
|
1763
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1764
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainServerInstalledPatchesRequest.retryConfiguration, specRetryConfiguration);
|
|
1765
|
+
if (this.logger)
|
|
1766
|
+
retrier.logger = this.logger;
|
|
1767
|
+
const request = yield oci_common_1.composeRequest({
|
|
1768
|
+
baseEndpoint: this._endpoint,
|
|
1769
|
+
defaultHeaders: this._defaultHeaders,
|
|
1770
|
+
path: "/wlsDomains/{wlsDomainId}/servers/{serverId}/installedPatches",
|
|
1771
|
+
method: "GET",
|
|
1772
|
+
pathParams: pathParams,
|
|
1773
|
+
headerParams: headerParams,
|
|
1774
|
+
queryParams: queryParams
|
|
1775
|
+
});
|
|
1776
|
+
try {
|
|
1777
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1778
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1779
|
+
responseObject: {},
|
|
1780
|
+
body: yield response.json(),
|
|
1781
|
+
bodyKey: "installedPatchCollection",
|
|
1782
|
+
bodyModel: model.InstalledPatchCollection,
|
|
1783
|
+
type: "model.InstalledPatchCollection",
|
|
1784
|
+
responseHeaders: [
|
|
1785
|
+
{
|
|
1786
|
+
value: response.headers.get("opc-request-id"),
|
|
1787
|
+
key: "opcRequestId",
|
|
1788
|
+
dataType: "string"
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
value: response.headers.get("opc-next-page"),
|
|
1792
|
+
key: "opcNextPage",
|
|
1793
|
+
dataType: "string"
|
|
1794
|
+
}
|
|
1795
|
+
]
|
|
1796
|
+
});
|
|
1797
|
+
return sdkResponse;
|
|
1798
|
+
}
|
|
1799
|
+
catch (err) {
|
|
1800
|
+
throw err;
|
|
1801
|
+
}
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* Gets list of servers in a specific WebLogic domain.
|
|
1806
|
+
*
|
|
1807
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1808
|
+
* @param ListWlsDomainServersRequest
|
|
1809
|
+
* @return ListWlsDomainServersResponse
|
|
1810
|
+
* @throws OciError when an error occurs
|
|
1811
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomainServers.ts.html |here} to see how to use ListWlsDomainServers API.
|
|
1812
|
+
*/
|
|
1813
|
+
listWlsDomainServers(listWlsDomainServersRequest) {
|
|
1814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1815
|
+
if (this.logger)
|
|
1816
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomainServers.");
|
|
1817
|
+
const operationName = "listWlsDomainServers";
|
|
1818
|
+
const apiReferenceLink = "";
|
|
1819
|
+
const pathParams = {
|
|
1820
|
+
"{wlsDomainId}": listWlsDomainServersRequest.wlsDomainId
|
|
1821
|
+
};
|
|
1822
|
+
const queryParams = {
|
|
1823
|
+
"name": listWlsDomainServersRequest.name,
|
|
1824
|
+
"limit": listWlsDomainServersRequest.limit,
|
|
1825
|
+
"page": listWlsDomainServersRequest.page,
|
|
1826
|
+
"sortOrder": listWlsDomainServersRequest.sortOrder,
|
|
1827
|
+
"sortBy": listWlsDomainServersRequest.sortBy
|
|
1828
|
+
};
|
|
1829
|
+
let headerParams = {
|
|
1830
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1831
|
+
"opc-request-id": listWlsDomainServersRequest.opcRequestId,
|
|
1832
|
+
"opc-retry-token": listWlsDomainServersRequest.opcRetryToken
|
|
1833
|
+
};
|
|
1834
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1835
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainServersRequest.retryConfiguration, specRetryConfiguration);
|
|
1836
|
+
if (this.logger)
|
|
1837
|
+
retrier.logger = this.logger;
|
|
1838
|
+
const request = yield oci_common_1.composeRequest({
|
|
1839
|
+
baseEndpoint: this._endpoint,
|
|
1840
|
+
defaultHeaders: this._defaultHeaders,
|
|
1841
|
+
path: "/wlsDomains/{wlsDomainId}/servers",
|
|
1842
|
+
method: "GET",
|
|
1843
|
+
pathParams: pathParams,
|
|
1844
|
+
headerParams: headerParams,
|
|
1845
|
+
queryParams: queryParams
|
|
1846
|
+
});
|
|
1847
|
+
try {
|
|
1848
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1849
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1850
|
+
responseObject: {},
|
|
1851
|
+
body: yield response.json(),
|
|
1852
|
+
bodyKey: "serverCollection",
|
|
1853
|
+
bodyModel: model.ServerCollection,
|
|
1854
|
+
type: "model.ServerCollection",
|
|
1855
|
+
responseHeaders: [
|
|
1856
|
+
{
|
|
1857
|
+
value: response.headers.get("opc-next-page"),
|
|
1858
|
+
key: "opcNextPage",
|
|
1859
|
+
dataType: "string"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
value: response.headers.get("opc-request-id"),
|
|
1863
|
+
key: "opcRequestId",
|
|
1864
|
+
dataType: "string"
|
|
1865
|
+
}
|
|
1866
|
+
]
|
|
1867
|
+
});
|
|
1868
|
+
return sdkResponse;
|
|
1869
|
+
}
|
|
1870
|
+
catch (err) {
|
|
1871
|
+
throw err;
|
|
1872
|
+
}
|
|
1873
|
+
});
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Gets all WebLogic domains in a given compartment.
|
|
1877
|
+
*
|
|
1878
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1879
|
+
* @param ListWlsDomainsRequest
|
|
1880
|
+
* @return ListWlsDomainsResponse
|
|
1881
|
+
* @throws OciError when an error occurs
|
|
1882
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomains.ts.html |here} to see how to use ListWlsDomains API.
|
|
1883
|
+
*/
|
|
1884
|
+
listWlsDomains(listWlsDomainsRequest) {
|
|
1885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1886
|
+
if (this.logger)
|
|
1887
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomains.");
|
|
1888
|
+
const operationName = "listWlsDomains";
|
|
1889
|
+
const apiReferenceLink = "";
|
|
1890
|
+
const pathParams = {};
|
|
1891
|
+
const queryParams = {
|
|
1892
|
+
"compartmentId": listWlsDomainsRequest.compartmentId,
|
|
1893
|
+
"lifecycleState": listWlsDomainsRequest.lifecycleState,
|
|
1894
|
+
"displayName": listWlsDomainsRequest.displayName,
|
|
1895
|
+
"id": listWlsDomainsRequest.id,
|
|
1896
|
+
"weblogicVersion": listWlsDomainsRequest.weblogicVersion,
|
|
1897
|
+
"middlewareType": listWlsDomainsRequest.middlewareType,
|
|
1898
|
+
"patchReadinessStatus": listWlsDomainsRequest.patchReadinessStatus,
|
|
1899
|
+
"limit": listWlsDomainsRequest.limit,
|
|
1900
|
+
"page": listWlsDomainsRequest.page,
|
|
1901
|
+
"sortOrder": listWlsDomainsRequest.sortOrder,
|
|
1902
|
+
"sortBy": listWlsDomainsRequest.sortBy
|
|
1903
|
+
};
|
|
1904
|
+
let headerParams = {
|
|
1905
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1906
|
+
"opc-request-id": listWlsDomainsRequest.opcRequestId,
|
|
1907
|
+
"opc-retry-token": listWlsDomainsRequest.opcRetryToken
|
|
1908
|
+
};
|
|
1909
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1910
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainsRequest.retryConfiguration, specRetryConfiguration);
|
|
1911
|
+
if (this.logger)
|
|
1912
|
+
retrier.logger = this.logger;
|
|
1913
|
+
const request = yield oci_common_1.composeRequest({
|
|
1914
|
+
baseEndpoint: this._endpoint,
|
|
1915
|
+
defaultHeaders: this._defaultHeaders,
|
|
1916
|
+
path: "/wlsDomains",
|
|
1917
|
+
method: "GET",
|
|
1918
|
+
pathParams: pathParams,
|
|
1919
|
+
headerParams: headerParams,
|
|
1920
|
+
queryParams: queryParams
|
|
1921
|
+
});
|
|
1922
|
+
try {
|
|
1923
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1924
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1925
|
+
responseObject: {},
|
|
1926
|
+
body: yield response.json(),
|
|
1927
|
+
bodyKey: "wlsDomainCollection",
|
|
1928
|
+
bodyModel: model.WlsDomainCollection,
|
|
1929
|
+
type: "model.WlsDomainCollection",
|
|
1930
|
+
responseHeaders: [
|
|
1931
|
+
{
|
|
1932
|
+
value: response.headers.get("opc-request-id"),
|
|
1933
|
+
key: "opcRequestId",
|
|
1934
|
+
dataType: "string"
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
value: response.headers.get("opc-next-page"),
|
|
1938
|
+
key: "opcNextPage",
|
|
1939
|
+
dataType: "string"
|
|
1940
|
+
}
|
|
1941
|
+
]
|
|
1942
|
+
});
|
|
1943
|
+
return sdkResponse;
|
|
1944
|
+
}
|
|
1945
|
+
catch (err) {
|
|
1946
|
+
throw err;
|
|
1947
|
+
}
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* Gets a list of WebLogic domains that share middleware with a specific domain.
|
|
1952
|
+
*
|
|
1953
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1954
|
+
* @param ListWlsDomainsSharingMiddlewaresRequest
|
|
1955
|
+
* @return ListWlsDomainsSharingMiddlewaresResponse
|
|
1956
|
+
* @throws OciError when an error occurs
|
|
1957
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWlsDomainsSharingMiddlewares.ts.html |here} to see how to use ListWlsDomainsSharingMiddlewares API.
|
|
1958
|
+
*/
|
|
1959
|
+
listWlsDomainsSharingMiddlewares(listWlsDomainsSharingMiddlewaresRequest) {
|
|
1960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1961
|
+
if (this.logger)
|
|
1962
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWlsDomainsSharingMiddlewares.");
|
|
1963
|
+
const operationName = "listWlsDomainsSharingMiddlewares";
|
|
1964
|
+
const apiReferenceLink = "";
|
|
1965
|
+
const pathParams = {
|
|
1966
|
+
"{wlsDomainId}": listWlsDomainsSharingMiddlewaresRequest.wlsDomainId
|
|
1967
|
+
};
|
|
1968
|
+
const queryParams = {
|
|
1969
|
+
"limit": listWlsDomainsSharingMiddlewaresRequest.limit,
|
|
1970
|
+
"page": listWlsDomainsSharingMiddlewaresRequest.page,
|
|
1971
|
+
"sortOrder": listWlsDomainsSharingMiddlewaresRequest.sortOrder,
|
|
1972
|
+
"sortBy": listWlsDomainsSharingMiddlewaresRequest.sortBy
|
|
1973
|
+
};
|
|
1974
|
+
let headerParams = {
|
|
1975
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1976
|
+
"opc-request-id": listWlsDomainsSharingMiddlewaresRequest.opcRequestId
|
|
1977
|
+
};
|
|
1978
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1979
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWlsDomainsSharingMiddlewaresRequest.retryConfiguration, specRetryConfiguration);
|
|
1980
|
+
if (this.logger)
|
|
1981
|
+
retrier.logger = this.logger;
|
|
1982
|
+
const request = yield oci_common_1.composeRequest({
|
|
1983
|
+
baseEndpoint: this._endpoint,
|
|
1984
|
+
defaultHeaders: this._defaultHeaders,
|
|
1985
|
+
path: "/wlsDomains/{wlsDomainId}/wlsDomainsSharingMiddleware",
|
|
1986
|
+
method: "GET",
|
|
1987
|
+
pathParams: pathParams,
|
|
1988
|
+
headerParams: headerParams,
|
|
1989
|
+
queryParams: queryParams
|
|
1990
|
+
});
|
|
1991
|
+
try {
|
|
1992
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1993
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1994
|
+
responseObject: {},
|
|
1995
|
+
body: yield response.json(),
|
|
1996
|
+
bodyKey: "wlsDomainCollection",
|
|
1997
|
+
bodyModel: model.WlsDomainCollection,
|
|
1998
|
+
type: "model.WlsDomainCollection",
|
|
1999
|
+
responseHeaders: [
|
|
2000
|
+
{
|
|
2001
|
+
value: response.headers.get("opc-request-id"),
|
|
2002
|
+
key: "opcRequestId",
|
|
2003
|
+
dataType: "string"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
value: response.headers.get("opc-next-page"),
|
|
2007
|
+
key: "opcNextPage",
|
|
2008
|
+
dataType: "string"
|
|
2009
|
+
}
|
|
2010
|
+
]
|
|
2011
|
+
});
|
|
2012
|
+
return sdkResponse;
|
|
2013
|
+
}
|
|
2014
|
+
catch (err) {
|
|
2015
|
+
throw err;
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* Lists the errors for a work request.
|
|
2021
|
+
*
|
|
2022
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2023
|
+
* @param ListWorkRequestErrorsRequest
|
|
2024
|
+
* @return ListWorkRequestErrorsResponse
|
|
2025
|
+
* @throws OciError when an error occurs
|
|
2026
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2027
|
+
*/
|
|
2028
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2029
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2030
|
+
if (this.logger)
|
|
2031
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWorkRequestErrors.");
|
|
2032
|
+
const operationName = "listWorkRequestErrors";
|
|
2033
|
+
const apiReferenceLink = "";
|
|
2034
|
+
const pathParams = {
|
|
2035
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
2036
|
+
};
|
|
2037
|
+
const queryParams = {
|
|
2038
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
2039
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
2040
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
2041
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
2042
|
+
};
|
|
2043
|
+
let headerParams = {
|
|
2044
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2045
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
2046
|
+
};
|
|
2047
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2048
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2049
|
+
if (this.logger)
|
|
2050
|
+
retrier.logger = this.logger;
|
|
2051
|
+
const request = yield oci_common_1.composeRequest({
|
|
2052
|
+
baseEndpoint: this._endpoint,
|
|
2053
|
+
defaultHeaders: this._defaultHeaders,
|
|
2054
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
2055
|
+
method: "GET",
|
|
2056
|
+
pathParams: pathParams,
|
|
2057
|
+
headerParams: headerParams,
|
|
2058
|
+
queryParams: queryParams
|
|
2059
|
+
});
|
|
2060
|
+
try {
|
|
2061
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2062
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2063
|
+
responseObject: {},
|
|
2064
|
+
body: yield response.json(),
|
|
2065
|
+
bodyKey: "workRequestErrorCollection",
|
|
2066
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
2067
|
+
type: "model.WorkRequestErrorCollection",
|
|
2068
|
+
responseHeaders: [
|
|
2069
|
+
{
|
|
2070
|
+
value: response.headers.get("opc-next-page"),
|
|
2071
|
+
key: "opcNextPage",
|
|
2072
|
+
dataType: "string"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
value: response.headers.get("opc-request-id"),
|
|
2076
|
+
key: "opcRequestId",
|
|
2077
|
+
dataType: "string"
|
|
2078
|
+
}
|
|
2079
|
+
]
|
|
2080
|
+
});
|
|
2081
|
+
return sdkResponse;
|
|
2082
|
+
}
|
|
2083
|
+
catch (err) {
|
|
2084
|
+
throw err;
|
|
2085
|
+
}
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
/**
|
|
2089
|
+
* Lists the logs for a work request.
|
|
2090
|
+
*
|
|
2091
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2092
|
+
* @param ListWorkRequestLogsRequest
|
|
2093
|
+
* @return ListWorkRequestLogsResponse
|
|
2094
|
+
* @throws OciError when an error occurs
|
|
2095
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2096
|
+
*/
|
|
2097
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2099
|
+
if (this.logger)
|
|
2100
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWorkRequestLogs.");
|
|
2101
|
+
const operationName = "listWorkRequestLogs";
|
|
2102
|
+
const apiReferenceLink = "";
|
|
2103
|
+
const pathParams = {
|
|
2104
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
2105
|
+
};
|
|
2106
|
+
const queryParams = {
|
|
2107
|
+
"page": listWorkRequestLogsRequest.page,
|
|
2108
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
2109
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
2110
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
2111
|
+
};
|
|
2112
|
+
let headerParams = {
|
|
2113
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2114
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
2115
|
+
};
|
|
2116
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2117
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
2118
|
+
if (this.logger)
|
|
2119
|
+
retrier.logger = this.logger;
|
|
2120
|
+
const request = yield oci_common_1.composeRequest({
|
|
2121
|
+
baseEndpoint: this._endpoint,
|
|
2122
|
+
defaultHeaders: this._defaultHeaders,
|
|
2123
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
2124
|
+
method: "GET",
|
|
2125
|
+
pathParams: pathParams,
|
|
2126
|
+
headerParams: headerParams,
|
|
2127
|
+
queryParams: queryParams
|
|
2128
|
+
});
|
|
2129
|
+
try {
|
|
2130
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2131
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2132
|
+
responseObject: {},
|
|
2133
|
+
body: yield response.json(),
|
|
2134
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
2135
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
2136
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
2137
|
+
responseHeaders: [
|
|
2138
|
+
{
|
|
2139
|
+
value: response.headers.get("opc-next-page"),
|
|
2140
|
+
key: "opcNextPage",
|
|
2141
|
+
dataType: "string"
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
value: response.headers.get("opc-request-id"),
|
|
2145
|
+
key: "opcRequestId",
|
|
2146
|
+
dataType: "string"
|
|
2147
|
+
}
|
|
2148
|
+
]
|
|
2149
|
+
});
|
|
2150
|
+
return sdkResponse;
|
|
2151
|
+
}
|
|
2152
|
+
catch (err) {
|
|
2153
|
+
throw err;
|
|
2154
|
+
}
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Lists the work requests in a compartment.
|
|
2159
|
+
*
|
|
2160
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2161
|
+
* @param ListWorkRequestsRequest
|
|
2162
|
+
* @return ListWorkRequestsResponse
|
|
2163
|
+
* @throws OciError when an error occurs
|
|
2164
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2165
|
+
*/
|
|
2166
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
2167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2168
|
+
if (this.logger)
|
|
2169
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#listWorkRequests.");
|
|
2170
|
+
const operationName = "listWorkRequests";
|
|
2171
|
+
const apiReferenceLink = "";
|
|
2172
|
+
const pathParams = {};
|
|
2173
|
+
const queryParams = {
|
|
2174
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
2175
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
2176
|
+
"status": listWorkRequestsRequest.status,
|
|
2177
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
2178
|
+
"page": listWorkRequestsRequest.page,
|
|
2179
|
+
"limit": listWorkRequestsRequest.limit,
|
|
2180
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
2181
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
2182
|
+
};
|
|
2183
|
+
let headerParams = {
|
|
2184
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2185
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
2186
|
+
};
|
|
2187
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2188
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2189
|
+
if (this.logger)
|
|
2190
|
+
retrier.logger = this.logger;
|
|
2191
|
+
const request = yield oci_common_1.composeRequest({
|
|
2192
|
+
baseEndpoint: this._endpoint,
|
|
2193
|
+
defaultHeaders: this._defaultHeaders,
|
|
2194
|
+
path: "/workRequests",
|
|
2195
|
+
method: "GET",
|
|
2196
|
+
pathParams: pathParams,
|
|
2197
|
+
headerParams: headerParams,
|
|
2198
|
+
queryParams: queryParams
|
|
2199
|
+
});
|
|
2200
|
+
try {
|
|
2201
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2202
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2203
|
+
responseObject: {},
|
|
2204
|
+
body: yield response.json(),
|
|
2205
|
+
bodyKey: "workRequestSummaryCollection",
|
|
2206
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
2207
|
+
type: "model.WorkRequestSummaryCollection",
|
|
2208
|
+
responseHeaders: [
|
|
2209
|
+
{
|
|
2210
|
+
value: response.headers.get("opc-request-id"),
|
|
2211
|
+
key: "opcRequestId",
|
|
2212
|
+
dataType: "string"
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
value: response.headers.get("opc-next-page"),
|
|
2216
|
+
key: "opcNextPage",
|
|
2217
|
+
dataType: "string"
|
|
2218
|
+
}
|
|
2219
|
+
]
|
|
2220
|
+
});
|
|
2221
|
+
return sdkResponse;
|
|
2222
|
+
}
|
|
2223
|
+
catch (err) {
|
|
2224
|
+
throw err;
|
|
2225
|
+
}
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Restarts all the servers in the WebLogic domains. Servers that are already stopped are ignored.
|
|
2230
|
+
*
|
|
2231
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2232
|
+
* @param RestartWlsDomainRequest
|
|
2233
|
+
* @return RestartWlsDomainResponse
|
|
2234
|
+
* @throws OciError when an error occurs
|
|
2235
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/RestartWlsDomain.ts.html |here} to see how to use RestartWlsDomain API.
|
|
2236
|
+
*/
|
|
2237
|
+
restartWlsDomain(restartWlsDomainRequest) {
|
|
2238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2239
|
+
if (this.logger)
|
|
2240
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#restartWlsDomain.");
|
|
2241
|
+
const operationName = "restartWlsDomain";
|
|
2242
|
+
const apiReferenceLink = "";
|
|
2243
|
+
const pathParams = {
|
|
2244
|
+
"{wlsDomainId}": restartWlsDomainRequest.wlsDomainId
|
|
2245
|
+
};
|
|
2246
|
+
const queryParams = {};
|
|
2247
|
+
let headerParams = {
|
|
2248
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2249
|
+
"if-match": restartWlsDomainRequest.ifMatch,
|
|
2250
|
+
"opc-request-id": restartWlsDomainRequest.opcRequestId,
|
|
2251
|
+
"opc-retry-token": restartWlsDomainRequest.opcRetryToken
|
|
2252
|
+
};
|
|
2253
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2254
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
2255
|
+
if (this.logger)
|
|
2256
|
+
retrier.logger = this.logger;
|
|
2257
|
+
const request = yield oci_common_1.composeRequest({
|
|
2258
|
+
baseEndpoint: this._endpoint,
|
|
2259
|
+
defaultHeaders: this._defaultHeaders,
|
|
2260
|
+
path: "/wlsDomains/{wlsDomainId}/actions/restart",
|
|
2261
|
+
method: "POST",
|
|
2262
|
+
bodyContent: common.ObjectSerializer.serialize(restartWlsDomainRequest.restartWlsDomainDetails, "RestartWlsDomainDetails", model.RestartWlsDomainDetails.getJsonObj),
|
|
2263
|
+
pathParams: pathParams,
|
|
2264
|
+
headerParams: headerParams,
|
|
2265
|
+
queryParams: queryParams
|
|
2266
|
+
});
|
|
2267
|
+
try {
|
|
2268
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2269
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2270
|
+
responseObject: {},
|
|
2271
|
+
responseHeaders: [
|
|
2272
|
+
{
|
|
2273
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2274
|
+
key: "opcWorkRequestId",
|
|
2275
|
+
dataType: "string"
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
value: response.headers.get("opc-request-id"),
|
|
2279
|
+
key: "opcRequestId",
|
|
2280
|
+
dataType: "string"
|
|
2281
|
+
}
|
|
2282
|
+
]
|
|
2283
|
+
});
|
|
2284
|
+
return sdkResponse;
|
|
2285
|
+
}
|
|
2286
|
+
catch (err) {
|
|
2287
|
+
throw err;
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
}
|
|
2291
|
+
/**
|
|
2292
|
+
* Restore a domain from backup. If the backup contains a MIDDLEWARE asset, then the middleware of the domain, including patches, will be restored.
|
|
2293
|
+
*
|
|
2294
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2295
|
+
* @param RestoreWlsDomainRequest
|
|
2296
|
+
* @return RestoreWlsDomainResponse
|
|
2297
|
+
* @throws OciError when an error occurs
|
|
2298
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/RestoreWlsDomain.ts.html |here} to see how to use RestoreWlsDomain API.
|
|
2299
|
+
*/
|
|
2300
|
+
restoreWlsDomain(restoreWlsDomainRequest) {
|
|
2301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2302
|
+
if (this.logger)
|
|
2303
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#restoreWlsDomain.");
|
|
2304
|
+
const operationName = "restoreWlsDomain";
|
|
2305
|
+
const apiReferenceLink = "";
|
|
2306
|
+
const pathParams = {
|
|
2307
|
+
"{wlsDomainId}": restoreWlsDomainRequest.wlsDomainId
|
|
2308
|
+
};
|
|
2309
|
+
const queryParams = {};
|
|
2310
|
+
let headerParams = {
|
|
2311
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2312
|
+
"if-match": restoreWlsDomainRequest.ifMatch,
|
|
2313
|
+
"opc-request-id": restoreWlsDomainRequest.opcRequestId,
|
|
2314
|
+
"opc-retry-token": restoreWlsDomainRequest.opcRetryToken
|
|
2315
|
+
};
|
|
2316
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2317
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
2318
|
+
if (this.logger)
|
|
2319
|
+
retrier.logger = this.logger;
|
|
2320
|
+
const request = yield oci_common_1.composeRequest({
|
|
2321
|
+
baseEndpoint: this._endpoint,
|
|
2322
|
+
defaultHeaders: this._defaultHeaders,
|
|
2323
|
+
path: "/wlsDomains/{wlsDomainId}/actions/restore",
|
|
2324
|
+
method: "POST",
|
|
2325
|
+
bodyContent: common.ObjectSerializer.serialize(restoreWlsDomainRequest.restoreWlsDomainDetails, "RestoreWlsDomainDetails", model.RestoreWlsDomainDetails.getJsonObj),
|
|
2326
|
+
pathParams: pathParams,
|
|
2327
|
+
headerParams: headerParams,
|
|
2328
|
+
queryParams: queryParams
|
|
2329
|
+
});
|
|
2330
|
+
try {
|
|
2331
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2332
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2333
|
+
responseObject: {},
|
|
2334
|
+
responseHeaders: [
|
|
2335
|
+
{
|
|
2336
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2337
|
+
key: "opcWorkRequestId",
|
|
2338
|
+
dataType: "string"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
value: response.headers.get("opc-request-id"),
|
|
2342
|
+
key: "opcRequestId",
|
|
2343
|
+
dataType: "string"
|
|
2344
|
+
}
|
|
2345
|
+
]
|
|
2346
|
+
});
|
|
2347
|
+
return sdkResponse;
|
|
2348
|
+
}
|
|
2349
|
+
catch (err) {
|
|
2350
|
+
throw err;
|
|
2351
|
+
}
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* Scans a managed instance for WebLogic domains.
|
|
2356
|
+
*
|
|
2357
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2358
|
+
* @param ScanManagedInstanceRequest
|
|
2359
|
+
* @return ScanManagedInstanceResponse
|
|
2360
|
+
* @throws OciError when an error occurs
|
|
2361
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ScanManagedInstance.ts.html |here} to see how to use ScanManagedInstance API.
|
|
2362
|
+
*/
|
|
2363
|
+
scanManagedInstance(scanManagedInstanceRequest) {
|
|
2364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2365
|
+
if (this.logger)
|
|
2366
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#scanManagedInstance.");
|
|
2367
|
+
const operationName = "scanManagedInstance";
|
|
2368
|
+
const apiReferenceLink = "";
|
|
2369
|
+
const pathParams = {
|
|
2370
|
+
"{managedInstanceId}": scanManagedInstanceRequest.managedInstanceId
|
|
2371
|
+
};
|
|
2372
|
+
const queryParams = {};
|
|
2373
|
+
let headerParams = {
|
|
2374
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2375
|
+
"opc-request-id": scanManagedInstanceRequest.opcRequestId,
|
|
2376
|
+
"opc-retry-token": scanManagedInstanceRequest.opcRetryToken,
|
|
2377
|
+
"if-match": scanManagedInstanceRequest.ifMatch
|
|
2378
|
+
};
|
|
2379
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2380
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scanManagedInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
2381
|
+
if (this.logger)
|
|
2382
|
+
retrier.logger = this.logger;
|
|
2383
|
+
const request = yield oci_common_1.composeRequest({
|
|
2384
|
+
baseEndpoint: this._endpoint,
|
|
2385
|
+
defaultHeaders: this._defaultHeaders,
|
|
2386
|
+
path: "/managedInstances/{managedInstanceId}/actions/scan",
|
|
2387
|
+
method: "POST",
|
|
2388
|
+
pathParams: pathParams,
|
|
2389
|
+
headerParams: headerParams,
|
|
2390
|
+
queryParams: queryParams
|
|
2391
|
+
});
|
|
2392
|
+
try {
|
|
2393
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2394
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2395
|
+
responseObject: {},
|
|
2396
|
+
responseHeaders: [
|
|
2397
|
+
{
|
|
2398
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2399
|
+
key: "opcWorkRequestId",
|
|
2400
|
+
dataType: "string"
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
value: response.headers.get("opc-request-id"),
|
|
2404
|
+
key: "opcRequestId",
|
|
2405
|
+
dataType: "string"
|
|
2406
|
+
}
|
|
2407
|
+
]
|
|
2408
|
+
});
|
|
2409
|
+
return sdkResponse;
|
|
2410
|
+
}
|
|
2411
|
+
catch (err) {
|
|
2412
|
+
throw err;
|
|
2413
|
+
}
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2416
|
+
/**
|
|
2417
|
+
* Runs a series of checks in the WebLogic domain.
|
|
2418
|
+
*
|
|
2419
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2420
|
+
* @param ScanWlsDomainRequest
|
|
2421
|
+
* @return ScanWlsDomainResponse
|
|
2422
|
+
* @throws OciError when an error occurs
|
|
2423
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/ScanWlsDomain.ts.html |here} to see how to use ScanWlsDomain API.
|
|
2424
|
+
*/
|
|
2425
|
+
scanWlsDomain(scanWlsDomainRequest) {
|
|
2426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2427
|
+
if (this.logger)
|
|
2428
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#scanWlsDomain.");
|
|
2429
|
+
const operationName = "scanWlsDomain";
|
|
2430
|
+
const apiReferenceLink = "";
|
|
2431
|
+
const pathParams = {
|
|
2432
|
+
"{wlsDomainId}": scanWlsDomainRequest.wlsDomainId
|
|
2433
|
+
};
|
|
2434
|
+
const queryParams = {};
|
|
2435
|
+
let headerParams = {
|
|
2436
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2437
|
+
"if-match": scanWlsDomainRequest.ifMatch,
|
|
2438
|
+
"opc-request-id": scanWlsDomainRequest.opcRequestId,
|
|
2439
|
+
"opc-retry-token": scanWlsDomainRequest.opcRetryToken
|
|
2440
|
+
};
|
|
2441
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2442
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scanWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
2443
|
+
if (this.logger)
|
|
2444
|
+
retrier.logger = this.logger;
|
|
2445
|
+
const request = yield oci_common_1.composeRequest({
|
|
2446
|
+
baseEndpoint: this._endpoint,
|
|
2447
|
+
defaultHeaders: this._defaultHeaders,
|
|
2448
|
+
path: "/wlsDomains/{wlsDomainId}/actions/scan",
|
|
2449
|
+
method: "POST",
|
|
2450
|
+
pathParams: pathParams,
|
|
2451
|
+
headerParams: headerParams,
|
|
2452
|
+
queryParams: queryParams
|
|
2453
|
+
});
|
|
2454
|
+
try {
|
|
2455
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2456
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2457
|
+
responseObject: {},
|
|
2458
|
+
responseHeaders: [
|
|
2459
|
+
{
|
|
2460
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2461
|
+
key: "opcWorkRequestId",
|
|
2462
|
+
dataType: "string"
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
value: response.headers.get("opc-request-id"),
|
|
2466
|
+
key: "opcRequestId",
|
|
2467
|
+
dataType: "string"
|
|
2468
|
+
}
|
|
2469
|
+
]
|
|
2470
|
+
});
|
|
2471
|
+
return sdkResponse;
|
|
2472
|
+
}
|
|
2473
|
+
catch (err) {
|
|
2474
|
+
throw err;
|
|
2475
|
+
}
|
|
2476
|
+
});
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* Sets restart order of servers in specific WebLogic domain.
|
|
2480
|
+
*
|
|
2481
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2482
|
+
* @param SetRestartOrderRequest
|
|
2483
|
+
* @return SetRestartOrderResponse
|
|
2484
|
+
* @throws OciError when an error occurs
|
|
2485
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/SetRestartOrder.ts.html |here} to see how to use SetRestartOrder API.
|
|
2486
|
+
*/
|
|
2487
|
+
setRestartOrder(setRestartOrderRequest) {
|
|
2488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2489
|
+
if (this.logger)
|
|
2490
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#setRestartOrder.");
|
|
2491
|
+
const operationName = "setRestartOrder";
|
|
2492
|
+
const apiReferenceLink = "";
|
|
2493
|
+
const pathParams = {
|
|
2494
|
+
"{wlsDomainId}": setRestartOrderRequest.wlsDomainId
|
|
2495
|
+
};
|
|
2496
|
+
const queryParams = {};
|
|
2497
|
+
let headerParams = {
|
|
2498
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2499
|
+
"if-match": setRestartOrderRequest.ifMatch,
|
|
2500
|
+
"opc-request-id": setRestartOrderRequest.opcRequestId,
|
|
2501
|
+
"opc-retry-token": setRestartOrderRequest.opcRetryToken
|
|
2502
|
+
};
|
|
2503
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2504
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, setRestartOrderRequest.retryConfiguration, specRetryConfiguration);
|
|
2505
|
+
if (this.logger)
|
|
2506
|
+
retrier.logger = this.logger;
|
|
2507
|
+
const request = yield oci_common_1.composeRequest({
|
|
2508
|
+
baseEndpoint: this._endpoint,
|
|
2509
|
+
defaultHeaders: this._defaultHeaders,
|
|
2510
|
+
path: "/wlsDomains/{wlsDomainId}/actions/setRestartOrder",
|
|
2511
|
+
method: "POST",
|
|
2512
|
+
bodyContent: common.ObjectSerializer.serialize(setRestartOrderRequest.setRestartOrderDetails, "SetRestartOrderDetails", model.SetRestartOrderDetails.getJsonObj),
|
|
2513
|
+
pathParams: pathParams,
|
|
2514
|
+
headerParams: headerParams,
|
|
2515
|
+
queryParams: queryParams
|
|
2516
|
+
});
|
|
2517
|
+
try {
|
|
2518
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2519
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2520
|
+
responseObject: {},
|
|
2521
|
+
body: yield response.json(),
|
|
2522
|
+
bodyKey: "serverCollection",
|
|
2523
|
+
bodyModel: model.ServerCollection,
|
|
2524
|
+
type: "model.ServerCollection",
|
|
2525
|
+
responseHeaders: [
|
|
2526
|
+
{
|
|
2527
|
+
value: response.headers.get("etag"),
|
|
2528
|
+
key: "etag",
|
|
2529
|
+
dataType: "string"
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
value: response.headers.get("opc-request-id"),
|
|
2533
|
+
key: "opcRequestId",
|
|
2534
|
+
dataType: "string"
|
|
2535
|
+
}
|
|
2536
|
+
]
|
|
2537
|
+
});
|
|
2538
|
+
return sdkResponse;
|
|
2539
|
+
}
|
|
2540
|
+
catch (err) {
|
|
2541
|
+
throw err;
|
|
2542
|
+
}
|
|
2543
|
+
});
|
|
2544
|
+
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Starts all the servers in the WebLogic domain. Servers that are already started are ignored.
|
|
2547
|
+
*
|
|
2548
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2549
|
+
* @param StartWlsDomainRequest
|
|
2550
|
+
* @return StartWlsDomainResponse
|
|
2551
|
+
* @throws OciError when an error occurs
|
|
2552
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/StartWlsDomain.ts.html |here} to see how to use StartWlsDomain API.
|
|
2553
|
+
*/
|
|
2554
|
+
startWlsDomain(startWlsDomainRequest) {
|
|
2555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2556
|
+
if (this.logger)
|
|
2557
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#startWlsDomain.");
|
|
2558
|
+
const operationName = "startWlsDomain";
|
|
2559
|
+
const apiReferenceLink = "";
|
|
2560
|
+
const pathParams = {
|
|
2561
|
+
"{wlsDomainId}": startWlsDomainRequest.wlsDomainId
|
|
2562
|
+
};
|
|
2563
|
+
const queryParams = {};
|
|
2564
|
+
let headerParams = {
|
|
2565
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2566
|
+
"if-match": startWlsDomainRequest.ifMatch,
|
|
2567
|
+
"opc-request-id": startWlsDomainRequest.opcRequestId,
|
|
2568
|
+
"opc-retry-token": startWlsDomainRequest.opcRetryToken
|
|
2569
|
+
};
|
|
2570
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2571
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
2572
|
+
if (this.logger)
|
|
2573
|
+
retrier.logger = this.logger;
|
|
2574
|
+
const request = yield oci_common_1.composeRequest({
|
|
2575
|
+
baseEndpoint: this._endpoint,
|
|
2576
|
+
defaultHeaders: this._defaultHeaders,
|
|
2577
|
+
path: "/wlsDomains/{wlsDomainId}/actions/start",
|
|
2578
|
+
method: "POST",
|
|
2579
|
+
pathParams: pathParams,
|
|
2580
|
+
headerParams: headerParams,
|
|
2581
|
+
queryParams: queryParams
|
|
2582
|
+
});
|
|
2583
|
+
try {
|
|
2584
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2585
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2586
|
+
responseObject: {},
|
|
2587
|
+
responseHeaders: [
|
|
2588
|
+
{
|
|
2589
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2590
|
+
key: "opcWorkRequestId",
|
|
2591
|
+
dataType: "string"
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
value: response.headers.get("opc-request-id"),
|
|
2595
|
+
key: "opcRequestId",
|
|
2596
|
+
dataType: "string"
|
|
2597
|
+
}
|
|
2598
|
+
]
|
|
2599
|
+
});
|
|
2600
|
+
return sdkResponse;
|
|
2601
|
+
}
|
|
2602
|
+
catch (err) {
|
|
2603
|
+
throw err;
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* Stops all the servers in the WebLogic domain. Servers that are already stopped are ignored.
|
|
2609
|
+
*
|
|
2610
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2611
|
+
* @param StopWlsDomainRequest
|
|
2612
|
+
* @return StopWlsDomainResponse
|
|
2613
|
+
* @throws OciError when an error occurs
|
|
2614
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/StopWlsDomain.ts.html |here} to see how to use StopWlsDomain API.
|
|
2615
|
+
*/
|
|
2616
|
+
stopWlsDomain(stopWlsDomainRequest) {
|
|
2617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2618
|
+
if (this.logger)
|
|
2619
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#stopWlsDomain.");
|
|
2620
|
+
const operationName = "stopWlsDomain";
|
|
2621
|
+
const apiReferenceLink = "";
|
|
2622
|
+
const pathParams = {
|
|
2623
|
+
"{wlsDomainId}": stopWlsDomainRequest.wlsDomainId
|
|
2624
|
+
};
|
|
2625
|
+
const queryParams = {};
|
|
2626
|
+
let headerParams = {
|
|
2627
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2628
|
+
"if-match": stopWlsDomainRequest.ifMatch,
|
|
2629
|
+
"opc-request-id": stopWlsDomainRequest.opcRequestId,
|
|
2630
|
+
"opc-retry-token": stopWlsDomainRequest.opcRetryToken
|
|
2631
|
+
};
|
|
2632
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2633
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
2634
|
+
if (this.logger)
|
|
2635
|
+
retrier.logger = this.logger;
|
|
2636
|
+
const request = yield oci_common_1.composeRequest({
|
|
2637
|
+
baseEndpoint: this._endpoint,
|
|
2638
|
+
defaultHeaders: this._defaultHeaders,
|
|
2639
|
+
path: "/wlsDomains/{wlsDomainId}/actions/stop",
|
|
2640
|
+
method: "POST",
|
|
2641
|
+
bodyContent: common.ObjectSerializer.serialize(stopWlsDomainRequest.stopWlsDomainDetails, "StopWlsDomainDetails", model.StopWlsDomainDetails.getJsonObj),
|
|
2642
|
+
pathParams: pathParams,
|
|
2643
|
+
headerParams: headerParams,
|
|
2644
|
+
queryParams: queryParams
|
|
2645
|
+
});
|
|
2646
|
+
try {
|
|
2647
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2648
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2649
|
+
responseObject: {},
|
|
2650
|
+
responseHeaders: [
|
|
2651
|
+
{
|
|
2652
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2653
|
+
key: "opcWorkRequestId",
|
|
2654
|
+
dataType: "string"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
value: response.headers.get("opc-request-id"),
|
|
2658
|
+
key: "opcRequestId",
|
|
2659
|
+
dataType: "string"
|
|
2660
|
+
}
|
|
2661
|
+
]
|
|
2662
|
+
});
|
|
2663
|
+
return sdkResponse;
|
|
2664
|
+
}
|
|
2665
|
+
catch (err) {
|
|
2666
|
+
throw err;
|
|
2667
|
+
}
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
/**
|
|
2671
|
+
* Gets the data to be shown in the Overview page of the service in a given compartment.
|
|
2672
|
+
*
|
|
2673
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2674
|
+
* @param SummarizeResourceInventoryRequest
|
|
2675
|
+
* @return SummarizeResourceInventoryResponse
|
|
2676
|
+
* @throws OciError when an error occurs
|
|
2677
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/SummarizeResourceInventory.ts.html |here} to see how to use SummarizeResourceInventory API.
|
|
2678
|
+
*/
|
|
2679
|
+
summarizeResourceInventory(summarizeResourceInventoryRequest) {
|
|
2680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2681
|
+
if (this.logger)
|
|
2682
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#summarizeResourceInventory.");
|
|
2683
|
+
const operationName = "summarizeResourceInventory";
|
|
2684
|
+
const apiReferenceLink = "";
|
|
2685
|
+
const pathParams = {};
|
|
2686
|
+
const queryParams = {
|
|
2687
|
+
"compartmentId": summarizeResourceInventoryRequest.compartmentId
|
|
2688
|
+
};
|
|
2689
|
+
let headerParams = {
|
|
2690
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2691
|
+
"opc-request-id": summarizeResourceInventoryRequest.opcRequestId
|
|
2692
|
+
};
|
|
2693
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2694
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, summarizeResourceInventoryRequest.retryConfiguration, specRetryConfiguration);
|
|
2695
|
+
if (this.logger)
|
|
2696
|
+
retrier.logger = this.logger;
|
|
2697
|
+
const request = yield oci_common_1.composeRequest({
|
|
2698
|
+
baseEndpoint: this._endpoint,
|
|
2699
|
+
defaultHeaders: this._defaultHeaders,
|
|
2700
|
+
path: "/resourceInventory",
|
|
2701
|
+
method: "GET",
|
|
2702
|
+
pathParams: pathParams,
|
|
2703
|
+
headerParams: headerParams,
|
|
2704
|
+
queryParams: queryParams
|
|
2705
|
+
});
|
|
2706
|
+
try {
|
|
2707
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2708
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2709
|
+
responseObject: {},
|
|
2710
|
+
body: yield response.json(),
|
|
2711
|
+
bodyKey: "resourceInventory",
|
|
2712
|
+
bodyModel: model.ResourceInventory,
|
|
2713
|
+
type: "model.ResourceInventory",
|
|
2714
|
+
responseHeaders: [
|
|
2715
|
+
{
|
|
2716
|
+
value: response.headers.get("opc-request-id"),
|
|
2717
|
+
key: "opcRequestId",
|
|
2718
|
+
dataType: "string"
|
|
2719
|
+
}
|
|
2720
|
+
]
|
|
2721
|
+
});
|
|
2722
|
+
return sdkResponse;
|
|
2723
|
+
}
|
|
2724
|
+
catch (err) {
|
|
2725
|
+
throw err;
|
|
2726
|
+
}
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* Updates the specified managed instance information, such as discovery interval and domain search path.
|
|
2731
|
+
*
|
|
2732
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2733
|
+
* @param UpdateManagedInstanceRequest
|
|
2734
|
+
* @return UpdateManagedInstanceResponse
|
|
2735
|
+
* @throws OciError when an error occurs
|
|
2736
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/UpdateManagedInstance.ts.html |here} to see how to use UpdateManagedInstance API.
|
|
2737
|
+
*/
|
|
2738
|
+
updateManagedInstance(updateManagedInstanceRequest) {
|
|
2739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2740
|
+
if (this.logger)
|
|
2741
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#updateManagedInstance.");
|
|
2742
|
+
const operationName = "updateManagedInstance";
|
|
2743
|
+
const apiReferenceLink = "";
|
|
2744
|
+
const pathParams = {
|
|
2745
|
+
"{managedInstanceId}": updateManagedInstanceRequest.managedInstanceId
|
|
2746
|
+
};
|
|
2747
|
+
const queryParams = {};
|
|
2748
|
+
let headerParams = {
|
|
2749
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2750
|
+
"opc-request-id": updateManagedInstanceRequest.opcRequestId,
|
|
2751
|
+
"opc-retry-token": updateManagedInstanceRequest.opcRetryToken,
|
|
2752
|
+
"if-match": updateManagedInstanceRequest.ifMatch
|
|
2753
|
+
};
|
|
2754
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2755
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateManagedInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
2756
|
+
if (this.logger)
|
|
2757
|
+
retrier.logger = this.logger;
|
|
2758
|
+
const request = yield oci_common_1.composeRequest({
|
|
2759
|
+
baseEndpoint: this._endpoint,
|
|
2760
|
+
defaultHeaders: this._defaultHeaders,
|
|
2761
|
+
path: "/managedInstances/{managedInstanceId}",
|
|
2762
|
+
method: "PUT",
|
|
2763
|
+
bodyContent: common.ObjectSerializer.serialize(updateManagedInstanceRequest.updateManagedInstanceDetails, "UpdateManagedInstanceDetails", model.UpdateManagedInstanceDetails.getJsonObj),
|
|
2764
|
+
pathParams: pathParams,
|
|
2765
|
+
headerParams: headerParams,
|
|
2766
|
+
queryParams: queryParams
|
|
2767
|
+
});
|
|
2768
|
+
try {
|
|
2769
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2770
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2771
|
+
responseObject: {},
|
|
2772
|
+
body: yield response.json(),
|
|
2773
|
+
bodyKey: "managedInstance",
|
|
2774
|
+
bodyModel: model.ManagedInstance,
|
|
2775
|
+
type: "model.ManagedInstance",
|
|
2776
|
+
responseHeaders: [
|
|
2777
|
+
{
|
|
2778
|
+
value: response.headers.get("etag"),
|
|
2779
|
+
key: "etag",
|
|
2780
|
+
dataType: "string"
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
value: response.headers.get("opc-request-id"),
|
|
2784
|
+
key: "opcRequestId",
|
|
2785
|
+
dataType: "string"
|
|
2786
|
+
}
|
|
2787
|
+
]
|
|
2788
|
+
});
|
|
2789
|
+
return sdkResponse;
|
|
2790
|
+
}
|
|
2791
|
+
catch (err) {
|
|
2792
|
+
throw err;
|
|
2793
|
+
}
|
|
2794
|
+
});
|
|
2795
|
+
}
|
|
2796
|
+
/**
|
|
2797
|
+
* Updates a specific WebLogic domain.
|
|
2798
|
+
*
|
|
2799
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2800
|
+
* @param UpdateWlsDomainRequest
|
|
2801
|
+
* @return UpdateWlsDomainResponse
|
|
2802
|
+
* @throws OciError when an error occurs
|
|
2803
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/UpdateWlsDomain.ts.html |here} to see how to use UpdateWlsDomain API.
|
|
2804
|
+
*/
|
|
2805
|
+
updateWlsDomain(updateWlsDomainRequest) {
|
|
2806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2807
|
+
if (this.logger)
|
|
2808
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#updateWlsDomain.");
|
|
2809
|
+
const operationName = "updateWlsDomain";
|
|
2810
|
+
const apiReferenceLink = "";
|
|
2811
|
+
const pathParams = {
|
|
2812
|
+
"{wlsDomainId}": updateWlsDomainRequest.wlsDomainId
|
|
2813
|
+
};
|
|
2814
|
+
const queryParams = {};
|
|
2815
|
+
let headerParams = {
|
|
2816
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2817
|
+
"if-match": updateWlsDomainRequest.ifMatch,
|
|
2818
|
+
"opc-request-id": updateWlsDomainRequest.opcRequestId
|
|
2819
|
+
};
|
|
2820
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2821
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateWlsDomainRequest.retryConfiguration, specRetryConfiguration);
|
|
2822
|
+
if (this.logger)
|
|
2823
|
+
retrier.logger = this.logger;
|
|
2824
|
+
const request = yield oci_common_1.composeRequest({
|
|
2825
|
+
baseEndpoint: this._endpoint,
|
|
2826
|
+
defaultHeaders: this._defaultHeaders,
|
|
2827
|
+
path: "/wlsDomains/{wlsDomainId}",
|
|
2828
|
+
method: "PUT",
|
|
2829
|
+
bodyContent: common.ObjectSerializer.serialize(updateWlsDomainRequest.updateWlsDomainDetails, "UpdateWlsDomainDetails", model.UpdateWlsDomainDetails.getJsonObj),
|
|
2830
|
+
pathParams: pathParams,
|
|
2831
|
+
headerParams: headerParams,
|
|
2832
|
+
queryParams: queryParams
|
|
2833
|
+
});
|
|
2834
|
+
try {
|
|
2835
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2836
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2837
|
+
responseObject: {},
|
|
2838
|
+
body: yield response.json(),
|
|
2839
|
+
bodyKey: "wlsDomain",
|
|
2840
|
+
bodyModel: model.WlsDomain,
|
|
2841
|
+
type: "model.WlsDomain",
|
|
2842
|
+
responseHeaders: [
|
|
2843
|
+
{
|
|
2844
|
+
value: response.headers.get("etag"),
|
|
2845
|
+
key: "etag",
|
|
2846
|
+
dataType: "string"
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
value: response.headers.get("opc-request-id"),
|
|
2850
|
+
key: "opcRequestId",
|
|
2851
|
+
dataType: "string"
|
|
2852
|
+
}
|
|
2853
|
+
]
|
|
2854
|
+
});
|
|
2855
|
+
return sdkResponse;
|
|
2856
|
+
}
|
|
2857
|
+
catch (err) {
|
|
2858
|
+
throw err;
|
|
2859
|
+
}
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* Updates WebLogic domain credentials of specific WebLogic domain.
|
|
2864
|
+
*
|
|
2865
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2866
|
+
* @param UpdateWlsDomainCredentialRequest
|
|
2867
|
+
* @return UpdateWlsDomainCredentialResponse
|
|
2868
|
+
* @throws OciError when an error occurs
|
|
2869
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/UpdateWlsDomainCredential.ts.html |here} to see how to use UpdateWlsDomainCredential API.
|
|
2870
|
+
*/
|
|
2871
|
+
updateWlsDomainCredential(updateWlsDomainCredentialRequest) {
|
|
2872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2873
|
+
if (this.logger)
|
|
2874
|
+
this.logger.debug("Calling operation WeblogicManagementServiceClient#updateWlsDomainCredential.");
|
|
2875
|
+
const operationName = "updateWlsDomainCredential";
|
|
2876
|
+
const apiReferenceLink = "";
|
|
2877
|
+
const pathParams = {
|
|
2878
|
+
"{wlsDomainId}": updateWlsDomainCredentialRequest.wlsDomainId,
|
|
2879
|
+
"{credentialType}": updateWlsDomainCredentialRequest.credentialType
|
|
2880
|
+
};
|
|
2881
|
+
const queryParams = {};
|
|
2882
|
+
let headerParams = {
|
|
2883
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2884
|
+
"if-match": updateWlsDomainCredentialRequest.ifMatch,
|
|
2885
|
+
"opc-request-id": updateWlsDomainCredentialRequest.opcRequestId
|
|
2886
|
+
};
|
|
2887
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2888
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateWlsDomainCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
2889
|
+
if (this.logger)
|
|
2890
|
+
retrier.logger = this.logger;
|
|
2891
|
+
const request = yield oci_common_1.composeRequest({
|
|
2892
|
+
baseEndpoint: this._endpoint,
|
|
2893
|
+
defaultHeaders: this._defaultHeaders,
|
|
2894
|
+
path: "/wlsDomains/{wlsDomainId}/credentials/{credentialType}",
|
|
2895
|
+
method: "PUT",
|
|
2896
|
+
bodyContent: common.ObjectSerializer.serialize(updateWlsDomainCredentialRequest.updateWlsDomainCredentialDetails, "UpdateWlsDomainCredentialDetails", model.UpdateWlsDomainCredentialDetails.getJsonObj),
|
|
2897
|
+
pathParams: pathParams,
|
|
2898
|
+
headerParams: headerParams,
|
|
2899
|
+
queryParams: queryParams
|
|
2900
|
+
});
|
|
2901
|
+
try {
|
|
2902
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2903
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2904
|
+
responseObject: {},
|
|
2905
|
+
body: yield response.json(),
|
|
2906
|
+
bodyKey: "wlsDomainCredential",
|
|
2907
|
+
bodyModel: model.WlsDomainCredential,
|
|
2908
|
+
type: "model.WlsDomainCredential",
|
|
2909
|
+
responseHeaders: [
|
|
2910
|
+
{
|
|
2911
|
+
value: response.headers.get("etag"),
|
|
2912
|
+
key: "etag",
|
|
2913
|
+
dataType: "string"
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
value: response.headers.get("opc-request-id"),
|
|
2917
|
+
key: "opcRequestId",
|
|
2918
|
+
dataType: "string"
|
|
2919
|
+
}
|
|
2920
|
+
]
|
|
2921
|
+
});
|
|
2922
|
+
return sdkResponse;
|
|
2923
|
+
}
|
|
2924
|
+
catch (err) {
|
|
2925
|
+
throw err;
|
|
2926
|
+
}
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
exports.WeblogicManagementServiceClient = WeblogicManagementServiceClient;
|
|
2931
|
+
WeblogicManagementServiceClient.serviceEndpointTemplate = "https://api.weblogicmanagement.{region}.oci.{secondLevelDomain}";
|
|
2932
|
+
WeblogicManagementServiceClient.endpointServiceName = "";
|
|
2933
|
+
var WeblogicManagementServiceConfigurationApiKeys;
|
|
2934
|
+
(function (WeblogicManagementServiceConfigurationApiKeys) {
|
|
2935
|
+
})(WeblogicManagementServiceConfigurationApiKeys = exports.WeblogicManagementServiceConfigurationApiKeys || (exports.WeblogicManagementServiceConfigurationApiKeys = {}));
|
|
2936
|
+
/**
|
|
2937
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2938
|
+
*/
|
|
2939
|
+
class WeblogicManagementServiceConfigurationClient {
|
|
2940
|
+
constructor(params, clientConfiguration) {
|
|
2941
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
2942
|
+
this["_endpoint"] = "";
|
|
2943
|
+
this["_defaultHeaders"] = {};
|
|
2944
|
+
this._circuitBreaker = null;
|
|
2945
|
+
this._httpOptions = undefined;
|
|
2946
|
+
this._bodyDuplexMode = undefined;
|
|
2947
|
+
this.targetService = "WeblogicManagementServiceConfiguration";
|
|
2948
|
+
this._regionId = "";
|
|
2949
|
+
this._lastSetRegionOrRegionId = "";
|
|
2950
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
2951
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2952
|
+
: null;
|
|
2953
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
2954
|
+
if (clientConfiguration) {
|
|
2955
|
+
this._clientConfiguration = clientConfiguration;
|
|
2956
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2957
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
2958
|
+
: null;
|
|
2959
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2960
|
+
? clientConfiguration.httpOptions
|
|
2961
|
+
: undefined;
|
|
2962
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
2963
|
+
? clientConfiguration.bodyDuplexMode
|
|
2964
|
+
: undefined;
|
|
2965
|
+
}
|
|
2966
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("wlms")) {
|
|
2967
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
2968
|
+
throw errmsg.concat("wlms");
|
|
2969
|
+
}
|
|
2970
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2971
|
+
const specCircuitBreakerEnabled = true;
|
|
2972
|
+
if (!this._circuitBreaker &&
|
|
2973
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2974
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2975
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2976
|
+
}
|
|
2977
|
+
this._httpClient =
|
|
2978
|
+
params.httpClient ||
|
|
2979
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
2980
|
+
if (params.authenticationDetailsProvider &&
|
|
2981
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2982
|
+
const provider = params.authenticationDetailsProvider;
|
|
2983
|
+
if (provider.getRegion()) {
|
|
2984
|
+
this.region = provider.getRegion();
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
/**
|
|
2989
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2990
|
+
*/
|
|
2991
|
+
get endpoint() {
|
|
2992
|
+
return this._endpoint;
|
|
2993
|
+
}
|
|
2994
|
+
/**
|
|
2995
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2996
|
+
* @param endpoint The endpoint of the service.
|
|
2997
|
+
*/
|
|
2998
|
+
set endpoint(endpoint) {
|
|
2999
|
+
this._endpoint = endpoint;
|
|
3000
|
+
this._endpoint = this._endpoint + "/20241101";
|
|
3001
|
+
if (this.logger)
|
|
3002
|
+
this.logger.info(`WeblogicManagementServiceConfigurationClient endpoint set to ${this._endpoint}`);
|
|
3003
|
+
}
|
|
3004
|
+
get logger() {
|
|
3005
|
+
return common.LOG.logger;
|
|
3006
|
+
}
|
|
3007
|
+
/**
|
|
3008
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
3009
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
3010
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
3011
|
+
*/
|
|
3012
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3013
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3014
|
+
if (this.logger)
|
|
3015
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3016
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3017
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WeblogicManagementServiceConfigurationClient.serviceEndpointTemplate, this._region, WeblogicManagementServiceConfigurationClient.endpointServiceName);
|
|
3018
|
+
}
|
|
3019
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
3020
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WeblogicManagementServiceConfigurationClient.serviceEndpointTemplate, this._regionId, WeblogicManagementServiceConfigurationClient.endpointServiceName);
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
/**
|
|
3024
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3025
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3026
|
+
* @param region The region of the service.
|
|
3027
|
+
*/
|
|
3028
|
+
set region(region) {
|
|
3029
|
+
this._region = region;
|
|
3030
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WeblogicManagementServiceConfigurationClient.serviceEndpointTemplate, region, WeblogicManagementServiceConfigurationClient.endpointServiceName);
|
|
3031
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3032
|
+
}
|
|
3033
|
+
/**
|
|
3034
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
3035
|
+
*
|
|
3036
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
3037
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
3038
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
3039
|
+
* @param regionId The public region ID.
|
|
3040
|
+
*/
|
|
3041
|
+
set regionId(regionId) {
|
|
3042
|
+
this._regionId = regionId;
|
|
3043
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WeblogicManagementServiceConfigurationClient.serviceEndpointTemplate, regionId, WeblogicManagementServiceConfigurationClient.endpointServiceName);
|
|
3044
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
3048
|
+
*/
|
|
3049
|
+
shutdownCircuitBreaker() {
|
|
3050
|
+
if (this._circuitBreaker) {
|
|
3051
|
+
this._circuitBreaker.shutdown();
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
/**
|
|
3055
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
3056
|
+
*/
|
|
3057
|
+
closeProvider() {
|
|
3058
|
+
if (this._authProvider) {
|
|
3059
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
3060
|
+
(this._authProvider).closeProvider();
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* Close the client once it is no longer needed
|
|
3065
|
+
*/
|
|
3066
|
+
close() {
|
|
3067
|
+
this.shutdownCircuitBreaker();
|
|
3068
|
+
this.closeProvider();
|
|
3069
|
+
}
|
|
3070
|
+
/**
|
|
3071
|
+
* Gets service configuration.
|
|
3072
|
+
*
|
|
3073
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3074
|
+
* @param GetConfigurationRequest
|
|
3075
|
+
* @return GetConfigurationResponse
|
|
3076
|
+
* @throws OciError when an error occurs
|
|
3077
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
|
|
3078
|
+
*/
|
|
3079
|
+
getConfiguration(getConfigurationRequest) {
|
|
3080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3081
|
+
if (this.logger)
|
|
3082
|
+
this.logger.debug("Calling operation WeblogicManagementServiceConfigurationClient#getConfiguration.");
|
|
3083
|
+
const operationName = "getConfiguration";
|
|
3084
|
+
const apiReferenceLink = "";
|
|
3085
|
+
const pathParams = {};
|
|
3086
|
+
const queryParams = {
|
|
3087
|
+
"compartmentId": getConfigurationRequest.compartmentId
|
|
3088
|
+
};
|
|
3089
|
+
let headerParams = {
|
|
3090
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3091
|
+
"opc-request-id": getConfigurationRequest.opcRequestId
|
|
3092
|
+
};
|
|
3093
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3094
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
3095
|
+
if (this.logger)
|
|
3096
|
+
retrier.logger = this.logger;
|
|
3097
|
+
const request = yield oci_common_1.composeRequest({
|
|
3098
|
+
baseEndpoint: this._endpoint,
|
|
3099
|
+
defaultHeaders: this._defaultHeaders,
|
|
3100
|
+
path: "/configuration",
|
|
3101
|
+
method: "GET",
|
|
3102
|
+
pathParams: pathParams,
|
|
3103
|
+
headerParams: headerParams,
|
|
3104
|
+
queryParams: queryParams
|
|
3105
|
+
});
|
|
3106
|
+
try {
|
|
3107
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3108
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3109
|
+
responseObject: {},
|
|
3110
|
+
body: yield response.json(),
|
|
3111
|
+
bodyKey: "configuration",
|
|
3112
|
+
bodyModel: model.Configuration,
|
|
3113
|
+
type: "model.Configuration",
|
|
3114
|
+
responseHeaders: [
|
|
3115
|
+
{
|
|
3116
|
+
value: response.headers.get("etag"),
|
|
3117
|
+
key: "etag",
|
|
3118
|
+
dataType: "string"
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
value: response.headers.get("opc-request-id"),
|
|
3122
|
+
key: "opcRequestId",
|
|
3123
|
+
dataType: "string"
|
|
3124
|
+
}
|
|
3125
|
+
]
|
|
3126
|
+
});
|
|
3127
|
+
return sdkResponse;
|
|
3128
|
+
}
|
|
3129
|
+
catch (err) {
|
|
3130
|
+
throw err;
|
|
3131
|
+
}
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
/**
|
|
3135
|
+
* Updates service configuration.
|
|
3136
|
+
*
|
|
3137
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3138
|
+
* @param UpdateConfigurationRequest
|
|
3139
|
+
* @return UpdateConfigurationResponse
|
|
3140
|
+
* @throws OciError when an error occurs
|
|
3141
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/wlms/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
|
|
3142
|
+
*/
|
|
3143
|
+
updateConfiguration(updateConfigurationRequest) {
|
|
3144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3145
|
+
if (this.logger)
|
|
3146
|
+
this.logger.debug("Calling operation WeblogicManagementServiceConfigurationClient#updateConfiguration.");
|
|
3147
|
+
const operationName = "updateConfiguration";
|
|
3148
|
+
const apiReferenceLink = "";
|
|
3149
|
+
const pathParams = {};
|
|
3150
|
+
const queryParams = {
|
|
3151
|
+
"compartmentId": updateConfigurationRequest.compartmentId
|
|
3152
|
+
};
|
|
3153
|
+
let headerParams = {
|
|
3154
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3155
|
+
"opc-request-id": updateConfigurationRequest.opcRequestId,
|
|
3156
|
+
"opc-retry-token": updateConfigurationRequest.opcRetryToken,
|
|
3157
|
+
"if-match": updateConfigurationRequest.ifMatch
|
|
3158
|
+
};
|
|
3159
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3160
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
3161
|
+
if (this.logger)
|
|
3162
|
+
retrier.logger = this.logger;
|
|
3163
|
+
const request = yield oci_common_1.composeRequest({
|
|
3164
|
+
baseEndpoint: this._endpoint,
|
|
3165
|
+
defaultHeaders: this._defaultHeaders,
|
|
3166
|
+
path: "/configuration",
|
|
3167
|
+
method: "PUT",
|
|
3168
|
+
bodyContent: common.ObjectSerializer.serialize(updateConfigurationRequest.updateConfigurationDetails, "UpdateConfigurationDetails", model.UpdateConfigurationDetails.getJsonObj),
|
|
3169
|
+
pathParams: pathParams,
|
|
3170
|
+
headerParams: headerParams,
|
|
3171
|
+
queryParams: queryParams
|
|
3172
|
+
});
|
|
3173
|
+
try {
|
|
3174
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3175
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3176
|
+
responseObject: {},
|
|
3177
|
+
body: yield response.json(),
|
|
3178
|
+
bodyKey: "configuration",
|
|
3179
|
+
bodyModel: model.Configuration,
|
|
3180
|
+
type: "model.Configuration",
|
|
3181
|
+
responseHeaders: [
|
|
3182
|
+
{
|
|
3183
|
+
value: response.headers.get("etag"),
|
|
3184
|
+
key: "etag",
|
|
3185
|
+
dataType: "string"
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
value: response.headers.get("opc-request-id"),
|
|
3189
|
+
key: "opcRequestId",
|
|
3190
|
+
dataType: "string"
|
|
3191
|
+
}
|
|
3192
|
+
]
|
|
3193
|
+
});
|
|
3194
|
+
return sdkResponse;
|
|
3195
|
+
}
|
|
3196
|
+
catch (err) {
|
|
3197
|
+
throw err;
|
|
3198
|
+
}
|
|
3199
|
+
});
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
exports.WeblogicManagementServiceConfigurationClient = WeblogicManagementServiceConfigurationClient;
|
|
3203
|
+
WeblogicManagementServiceConfigurationClient.serviceEndpointTemplate = "https://api.weblogicmanagement.{region}.oci.{secondLevelDomain}";
|
|
3204
|
+
WeblogicManagementServiceConfigurationClient.endpointServiceName = "";
|
|
3205
|
+
//# sourceMappingURL=client.js.map
|