oci-delegateaccesscontrol 2.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +30 -0
- package/index.js +53 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +470 -0
- package/lib/client.js +2385 -0
- package/lib/client.js.map +1 -0
- package/lib/delegateaccesscontrol-waiter.d.ts +66 -0
- package/lib/delegateaccesscontrol-waiter.js +118 -0
- package/lib/delegateaccesscontrol-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +37 -0
- package/lib/model/action-type.js +48 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/approve-delegated-resource-access-request-details.d.ts +39 -0
- package/lib/model/approve-delegated-resource-access-request-details.js +34 -0
- package/lib/model/approve-delegated-resource-access-request-details.js.map +1 -0
- package/lib/model/audit-report-status.d.ts +36 -0
- package/lib/model/audit-report-status.js +47 -0
- package/lib/model/audit-report-status.js.map +1 -0
- package/lib/model/change-delegation-control-compartment-details.d.ts +30 -0
- package/lib/model/change-delegation-control-compartment-details.js +34 -0
- package/lib/model/change-delegation-control-compartment-details.js.map +1 -0
- package/lib/model/change-delegation-subscription-compartment-details.d.ts +30 -0
- package/lib/model/change-delegation-subscription-compartment-details.js +34 -0
- package/lib/model/change-delegation-subscription-compartment-details.js.map +1 -0
- package/lib/model/create-delegation-control-details.d.ts +108 -0
- package/lib/model/create-delegation-control-details.js +34 -0
- package/lib/model/create-delegation-control-details.js.map +1 -0
- package/lib/model/create-delegation-subscription-details.d.ts +67 -0
- package/lib/model/create-delegation-subscription-details.js +34 -0
- package/lib/model/create-delegation-subscription-details.js.map +1 -0
- package/lib/model/delegated-resource-access-request-approval-details.d.ts +69 -0
- package/lib/model/delegated-resource-access-request-approval-details.js +54 -0
- package/lib/model/delegated-resource-access-request-approval-details.js.map +1 -0
- package/lib/model/delegated-resource-access-request-audit-log-report.d.ts +44 -0
- package/lib/model/delegated-resource-access-request-audit-log-report.js +34 -0
- package/lib/model/delegated-resource-access-request-audit-log-report.js.map +1 -0
- package/lib/model/delegated-resource-access-request-audit-type.d.ts +33 -0
- package/lib/model/delegated-resource-access-request-audit-type.js +44 -0
- package/lib/model/delegated-resource-access-request-audit-type.js.map +1 -0
- package/lib/model/delegated-resource-access-request-history-collection.d.ts +31 -0
- package/lib/model/delegated-resource-access-request-history-collection.js +66 -0
- package/lib/model/delegated-resource-access-request-history-collection.js.map +1 -0
- package/lib/model/delegated-resource-access-request-history-summary.d.ts +48 -0
- package/lib/model/delegated-resource-access-request-history-summary.js +34 -0
- package/lib/model/delegated-resource-access-request-history-summary.js.map +1 -0
- package/lib/model/delegated-resource-access-request-severity.d.ts +35 -0
- package/lib/model/delegated-resource-access-request-severity.js +46 -0
- package/lib/model/delegated-resource-access-request-severity.js.map +1 -0
- package/lib/model/delegated-resource-access-request-status.d.ts +54 -0
- package/lib/model/delegated-resource-access-request-status.js +65 -0
- package/lib/model/delegated-resource-access-request-status.js.map +1 -0
- package/lib/model/delegated-resource-access-request-summary-collection.d.ts +31 -0
- package/lib/model/delegated-resource-access-request-summary-collection.js +66 -0
- package/lib/model/delegated-resource-access-request-summary-collection.js.map +1 -0
- package/lib/model/delegated-resource-access-request-summary.d.ts +150 -0
- package/lib/model/delegated-resource-access-request-summary.js +34 -0
- package/lib/model/delegated-resource-access-request-summary.js.map +1 -0
- package/lib/model/delegated-resource-access-request.d.ts +234 -0
- package/lib/model/delegated-resource-access-request.js +102 -0
- package/lib/model/delegated-resource-access-request.js.map +1 -0
- package/lib/model/delegated-resource-access-requester-type.d.ts +34 -0
- package/lib/model/delegated-resource-access-requester-type.js +45 -0
- package/lib/model/delegated-resource-access-requester-type.js.map +1 -0
- package/lib/model/delegation-control-resource-collection.d.ts +31 -0
- package/lib/model/delegation-control-resource-collection.js +66 -0
- package/lib/model/delegation-control-resource-collection.js.map +1 -0
- package/lib/model/delegation-control-resource-summary.d.ts +50 -0
- package/lib/model/delegation-control-resource-summary.js +51 -0
- package/lib/model/delegation-control-resource-summary.js.map +1 -0
- package/lib/model/delegation-control-resource-type.d.ts +34 -0
- package/lib/model/delegation-control-resource-type.js +45 -0
- package/lib/model/delegation-control-resource-type.js.map +1 -0
- package/lib/model/delegation-control-summary-collection.d.ts +31 -0
- package/lib/model/delegation-control-summary-collection.js +66 -0
- package/lib/model/delegation-control-summary-collection.js.map +1 -0
- package/lib/model/delegation-control-summary.d.ts +99 -0
- package/lib/model/delegation-control-summary.js +34 -0
- package/lib/model/delegation-control-summary.js.map +1 -0
- package/lib/model/delegation-control.d.ts +167 -0
- package/lib/model/delegation-control.js +59 -0
- package/lib/model/delegation-control.js.map +1 -0
- package/lib/model/delegation-subscription-summary-collection.d.ts +31 -0
- package/lib/model/delegation-subscription-summary-collection.js +66 -0
- package/lib/model/delegation-subscription-summary-collection.js.map +1 -0
- package/lib/model/delegation-subscription-summary.d.ts +99 -0
- package/lib/model/delegation-subscription-summary.js +34 -0
- package/lib/model/delegation-subscription-summary.js.map +1 -0
- package/lib/model/delegation-subscription.d.ts +117 -0
- package/lib/model/delegation-subscription.js +48 -0
- package/lib/model/delegation-subscription.js.map +1 -0
- package/lib/model/index.d.ts +125 -0
- package/lib/model/index.js +149 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +39 -0
- package/lib/model/operation-status.js +50 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +43 -0
- package/lib/model/operation-type.js +54 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/reject-delegated-resource-access-request-details.d.ts +30 -0
- package/lib/model/reject-delegated-resource-access-request-details.js +34 -0
- package/lib/model/reject-delegated-resource-access-request-details.js.map +1 -0
- package/lib/model/revoke-delegated-resource-access-request-details.d.ts +30 -0
- package/lib/model/revoke-delegated-resource-access-request-details.js +34 -0
- package/lib/model/revoke-delegated-resource-access-request-details.js.map +1 -0
- package/lib/model/service-provider-action-properties.d.ts +34 -0
- package/lib/model/service-provider-action-properties.js +34 -0
- package/lib/model/service-provider-action-properties.js.map +1 -0
- package/lib/model/service-provider-action-summary-collection.d.ts +31 -0
- package/lib/model/service-provider-action-summary-collection.js +66 -0
- package/lib/model/service-provider-action-summary-collection.js.map +1 -0
- package/lib/model/service-provider-action-summary.d.ts +70 -0
- package/lib/model/service-provider-action-summary.js +44 -0
- package/lib/model/service-provider-action-summary.js.map +1 -0
- package/lib/model/service-provider-action.d.ts +85 -0
- package/lib/model/service-provider-action.js +86 -0
- package/lib/model/service-provider-action.js.map +1 -0
- package/lib/model/service-provider-interaction-collection.d.ts +31 -0
- package/lib/model/service-provider-interaction-collection.js +66 -0
- package/lib/model/service-provider-interaction-collection.js.map +1 -0
- package/lib/model/service-provider-interaction-request-details.d.ts +30 -0
- package/lib/model/service-provider-interaction-request-details.js +34 -0
- package/lib/model/service-provider-interaction-request-details.js.map +1 -0
- package/lib/model/service-provider-interaction-summary.d.ts +60 -0
- package/lib/model/service-provider-interaction-summary.js +44 -0
- package/lib/model/service-provider-interaction-summary.js.map +1 -0
- package/lib/model/service-provider-service-type.d.ts +33 -0
- package/lib/model/service-provider-service-type.js +44 -0
- package/lib/model/service-provider-service-type.js.map +1 -0
- package/lib/model/service-provider-summary-collection.d.ts +31 -0
- package/lib/model/service-provider-summary-collection.js +66 -0
- package/lib/model/service-provider-summary-collection.js.map +1 -0
- package/lib/model/service-provider-summary.d.ts +120 -0
- package/lib/model/service-provider-summary.js +54 -0
- package/lib/model/service-provider-summary.js.map +1 -0
- package/lib/model/service-provider.d.ts +146 -0
- package/lib/model/service-provider.js +77 -0
- package/lib/model/service-provider.js.map +1 -0
- package/lib/model/sort-orders.d.ts +28 -0
- package/lib/model/sort-orders.js +39 -0
- package/lib/model/sort-orders.js.map +1 -0
- package/lib/model/update-delegation-control-details.d.ts +86 -0
- package/lib/model/update-delegation-control-details.js +34 -0
- package/lib/model/update-delegation-control-details.js.map +1 -0
- package/lib/model/update-delegation-subscription-details.d.ts +54 -0
- package/lib/model/update-delegation-subscription-details.js +34 -0
- package/lib/model/update-delegation-subscription-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +31 -0
- package/lib/model/work-request-error-collection.js +66 -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 +34 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +31 -0
- package/lib/model/work-request-log-entry-collection.js +66 -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 +34 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +35 -0
- package/lib/model/work-request-resource-metadata-key.js +46 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +53 -0
- package/lib/model/work-request-resource.js +34 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +31 -0
- package/lib/model/work-request-summary-collection.js +66 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +72 -0
- package/lib/model/work-request-summary.js +66 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +72 -0
- package/lib/model/work-request.js +66 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/approve-delegated-resource-access-request-request.d.ts +49 -0
- package/lib/request/approve-delegated-resource-access-request-request.js +15 -0
- package/lib/request/approve-delegated-resource-access-request-request.js.map +1 -0
- package/lib/request/change-delegation-control-compartment-request.d.ts +49 -0
- package/lib/request/change-delegation-control-compartment-request.js +15 -0
- package/lib/request/change-delegation-control-compartment-request.js.map +1 -0
- package/lib/request/change-delegation-subscription-compartment-request.d.ts +49 -0
- package/lib/request/change-delegation-subscription-compartment-request.js +15 -0
- package/lib/request/change-delegation-subscription-compartment-request.js.map +1 -0
- package/lib/request/create-delegation-control-request.d.ts +36 -0
- package/lib/request/create-delegation-control-request.js +15 -0
- package/lib/request/create-delegation-control-request.js.map +1 -0
- package/lib/request/create-delegation-subscription-request.d.ts +36 -0
- package/lib/request/create-delegation-subscription-request.js +15 -0
- package/lib/request/create-delegation-subscription-request.js.map +1 -0
- package/lib/request/delete-delegation-control-request.d.ts +39 -0
- package/lib/request/delete-delegation-control-request.js +15 -0
- package/lib/request/delete-delegation-control-request.js.map +1 -0
- package/lib/request/delete-delegation-subscription-request.d.ts +35 -0
- package/lib/request/delete-delegation-subscription-request.js +15 -0
- package/lib/request/delete-delegation-subscription-request.js.map +1 -0
- package/lib/request/get-delegated-resource-access-request-audit-log-report-request.d.ts +30 -0
- package/lib/request/get-delegated-resource-access-request-audit-log-report-request.js +15 -0
- package/lib/request/get-delegated-resource-access-request-audit-log-report-request.js.map +1 -0
- package/lib/request/get-delegated-resource-access-request-request.d.ts +26 -0
- package/lib/request/get-delegated-resource-access-request-request.js +15 -0
- package/lib/request/get-delegated-resource-access-request-request.js.map +1 -0
- package/lib/request/get-delegation-control-request.d.ts +26 -0
- package/lib/request/get-delegation-control-request.js +15 -0
- package/lib/request/get-delegation-control-request.js.map +1 -0
- package/lib/request/get-delegation-subscription-request.d.ts +26 -0
- package/lib/request/get-delegation-subscription-request.js +15 -0
- package/lib/request/get-delegation-subscription-request.js.map +1 -0
- package/lib/request/get-service-provider-action-request.d.ts +26 -0
- package/lib/request/get-service-provider-action-request.js +15 -0
- package/lib/request/get-service-provider-action-request.js.map +1 -0
- package/lib/request/get-service-provider-request.d.ts +26 -0
- package/lib/request/get-service-provider-request.js +15 -0
- package/lib/request/get-service-provider-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 +77 -0
- package/lib/request/index.js +58 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-delegated-resource-access-request-histories-request.d.ts +49 -0
- package/lib/request/list-delegated-resource-access-request-histories-request.js +23 -0
- package/lib/request/list-delegated-resource-access-request-histories-request.js.map +1 -0
- package/lib/request/list-delegated-resource-access-requests-request.d.ts +80 -0
- package/lib/request/list-delegated-resource-access-requests-request.js +24 -0
- package/lib/request/list-delegated-resource-access-requests-request.js.map +1 -0
- package/lib/request/list-delegation-control-resources-request.d.ts +34 -0
- package/lib/request/list-delegation-control-resources-request.js +15 -0
- package/lib/request/list-delegation-control-resources-request.js.map +1 -0
- package/lib/request/list-delegation-controls-request.d.ts +66 -0
- package/lib/request/list-delegation-controls-request.js +24 -0
- package/lib/request/list-delegation-controls-request.js.map +1 -0
- package/lib/request/list-delegation-subscriptions-request.d.ts +58 -0
- package/lib/request/list-delegation-subscriptions-request.js +24 -0
- package/lib/request/list-delegation-subscriptions-request.js.map +1 -0
- package/lib/request/list-service-provider-actions-request.d.ts +66 -0
- package/lib/request/list-service-provider-actions-request.js +24 -0
- package/lib/request/list-service-provider-actions-request.js.map +1 -0
- package/lib/request/list-service-provider-interactions-request.d.ts +34 -0
- package/lib/request/list-service-provider-interactions-request.js +15 -0
- package/lib/request/list-service-provider-interactions-request.js.map +1 -0
- package/lib/request/list-service-providers-request.d.ts +66 -0
- package/lib/request/list-service-providers-request.js +24 -0
- package/lib/request/list-service-providers-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/reject-delegated-resource-access-request-request.d.ts +49 -0
- package/lib/request/reject-delegated-resource-access-request-request.js +15 -0
- package/lib/request/reject-delegated-resource-access-request-request.js.map +1 -0
- package/lib/request/revoke-delegated-resource-access-request-request.d.ts +49 -0
- package/lib/request/revoke-delegated-resource-access-request-request.js +15 -0
- package/lib/request/revoke-delegated-resource-access-request-request.js.map +1 -0
- package/lib/request/service-provider-interaction-request-request.d.ts +49 -0
- package/lib/request/service-provider-interaction-request-request.js +15 -0
- package/lib/request/service-provider-interaction-request-request.js.map +1 -0
- package/lib/request/update-delegation-control-request.d.ts +40 -0
- package/lib/request/update-delegation-control-request.js +15 -0
- package/lib/request/update-delegation-control-request.js.map +1 -0
- package/lib/request/update-delegation-subscription-request.d.ts +40 -0
- package/lib/request/update-delegation-subscription-request.js +15 -0
- package/lib/request/update-delegation-subscription-request.js.map +1 -0
- package/lib/response/approve-delegated-resource-access-request-response.d.ts +26 -0
- package/lib/response/approve-delegated-resource-access-request-response.js +15 -0
- package/lib/response/approve-delegated-resource-access-request-response.js.map +1 -0
- package/lib/response/change-delegation-control-compartment-response.d.ts +26 -0
- package/lib/response/change-delegation-control-compartment-response.js +15 -0
- package/lib/response/change-delegation-control-compartment-response.js.map +1 -0
- package/lib/response/change-delegation-subscription-compartment-response.d.ts +26 -0
- package/lib/response/change-delegation-subscription-compartment-response.js +15 -0
- package/lib/response/change-delegation-subscription-compartment-response.js.map +1 -0
- package/lib/response/create-delegation-control-response.d.ts +44 -0
- package/lib/response/create-delegation-control-response.js +15 -0
- package/lib/response/create-delegation-control-response.js.map +1 -0
- package/lib/response/create-delegation-subscription-response.d.ts +44 -0
- package/lib/response/create-delegation-subscription-response.js +15 -0
- package/lib/response/create-delegation-subscription-response.js.map +1 -0
- package/lib/response/delete-delegation-control-response.d.ts +26 -0
- package/lib/response/delete-delegation-control-response.js +15 -0
- package/lib/response/delete-delegation-control-response.js.map +1 -0
- package/lib/response/delete-delegation-subscription-response.d.ts +26 -0
- package/lib/response/delete-delegation-subscription-response.js +15 -0
- package/lib/response/delete-delegation-subscription-response.js.map +1 -0
- package/lib/response/get-delegated-resource-access-request-audit-log-report-response.d.ts +25 -0
- package/lib/response/get-delegated-resource-access-request-audit-log-report-response.js +15 -0
- package/lib/response/get-delegated-resource-access-request-audit-log-report-response.js.map +1 -0
- package/lib/response/get-delegated-resource-access-request-response.d.ts +30 -0
- package/lib/response/get-delegated-resource-access-request-response.js +15 -0
- package/lib/response/get-delegated-resource-access-request-response.js.map +1 -0
- package/lib/response/get-delegation-control-response.d.ts +30 -0
- package/lib/response/get-delegation-control-response.js +15 -0
- package/lib/response/get-delegation-control-response.js.map +1 -0
- package/lib/response/get-delegation-subscription-response.d.ts +30 -0
- package/lib/response/get-delegation-subscription-response.js +15 -0
- package/lib/response/get-delegation-subscription-response.js.map +1 -0
- package/lib/response/get-service-provider-action-response.d.ts +30 -0
- package/lib/response/get-service-provider-action-response.js +15 -0
- package/lib/response/get-service-provider-action-response.js.map +1 -0
- package/lib/response/get-service-provider-response.d.ts +30 -0
- package/lib/response/get-service-provider-response.js +15 -0
- package/lib/response/get-service-provider-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 +77 -0
- package/lib/response/index.js +20 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-delegated-resource-access-request-histories-response.d.ts +31 -0
- package/lib/response/list-delegated-resource-access-request-histories-response.js +15 -0
- package/lib/response/list-delegated-resource-access-request-histories-response.js.map +1 -0
- package/lib/response/list-delegated-resource-access-requests-response.d.ts +31 -0
- package/lib/response/list-delegated-resource-access-requests-response.js +15 -0
- package/lib/response/list-delegated-resource-access-requests-response.js.map +1 -0
- package/lib/response/list-delegation-control-resources-response.d.ts +31 -0
- package/lib/response/list-delegation-control-resources-response.js +15 -0
- package/lib/response/list-delegation-control-resources-response.js.map +1 -0
- package/lib/response/list-delegation-controls-response.d.ts +31 -0
- package/lib/response/list-delegation-controls-response.js +15 -0
- package/lib/response/list-delegation-controls-response.js.map +1 -0
- package/lib/response/list-delegation-subscriptions-response.d.ts +31 -0
- package/lib/response/list-delegation-subscriptions-response.js +15 -0
- package/lib/response/list-delegation-subscriptions-response.js.map +1 -0
- package/lib/response/list-service-provider-actions-response.d.ts +31 -0
- package/lib/response/list-service-provider-actions-response.js +15 -0
- package/lib/response/list-service-provider-actions-response.js.map +1 -0
- package/lib/response/list-service-provider-interactions-response.d.ts +31 -0
- package/lib/response/list-service-provider-interactions-response.js +15 -0
- package/lib/response/list-service-provider-interactions-response.js.map +1 -0
- package/lib/response/list-service-providers-response.d.ts +31 -0
- package/lib/response/list-service-providers-response.js +15 -0
- package/lib/response/list-service-providers-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +31 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +31 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +31 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/reject-delegated-resource-access-request-response.d.ts +26 -0
- package/lib/response/reject-delegated-resource-access-request-response.js +15 -0
- package/lib/response/reject-delegated-resource-access-request-response.js.map +1 -0
- package/lib/response/revoke-delegated-resource-access-request-response.d.ts +26 -0
- package/lib/response/revoke-delegated-resource-access-request-response.js +15 -0
- package/lib/response/revoke-delegated-resource-access-request-response.js.map +1 -0
- package/lib/response/service-provider-interaction-request-response.d.ts +20 -0
- package/lib/response/service-provider-interaction-request-response.js +15 -0
- package/lib/response/service-provider-interaction-request-response.js.map +1 -0
- package/lib/response/update-delegation-control-response.d.ts +40 -0
- package/lib/response/update-delegation-control-response.js +15 -0
- package/lib/response/update-delegation-control-response.js.map +1 -0
- package/lib/response/update-delegation-subscription-response.d.ts +40 -0
- package/lib/response/update-delegation-subscription-response.js +15 -0
- package/lib/response/update-delegation-subscription-response.js.map +1 -0
- package/lib/workrequest-waiter.d.ts +32 -0
- package/lib/workrequest-waiter.js +49 -0
- package/lib/workrequest-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,2385 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Oracle Delegate Access Control API
|
|
4
|
+
* Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their Exadata resources operators outside their tenancies.
|
|
5
|
+
With Delegate Access Control, Support Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform.
|
|
6
|
+
Customers maintain control over who has access to the delegated resources in their tenancy and what actions can be taken.
|
|
7
|
+
Enterprises managing resources across multiple tenants can use Delegate Access Control to streamline management tasks.
|
|
8
|
+
Using logging service, customers can view a near real-time audit report of all actions performed by a Service Provider operator.
|
|
9
|
+
|
|
10
|
+
* OpenAPI spec version: 20230801
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
17
|
+
* 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.
|
|
18
|
+
*/
|
|
19
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.DelegateAccessControlClient = exports.DelegateAccessControlApiKeys = void 0;
|
|
49
|
+
const common = require("oci-common");
|
|
50
|
+
const model = __importStar(require("./model"));
|
|
51
|
+
const delegateaccesscontrol_waiter_1 = require("./delegateaccesscontrol-waiter");
|
|
52
|
+
const workrequest_waiter_1 = require("./workrequest-waiter");
|
|
53
|
+
const oci_common_1 = require("oci-common");
|
|
54
|
+
const Breaker = require("opossum");
|
|
55
|
+
// ===============================================
|
|
56
|
+
// This file is autogenerated - Please do not edit
|
|
57
|
+
// ===============================================
|
|
58
|
+
var DelegateAccessControlApiKeys;
|
|
59
|
+
(function (DelegateAccessControlApiKeys) {
|
|
60
|
+
})(DelegateAccessControlApiKeys = exports.DelegateAccessControlApiKeys || (exports.DelegateAccessControlApiKeys = {}));
|
|
61
|
+
/**
|
|
62
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
63
|
+
*/
|
|
64
|
+
class DelegateAccessControlClient {
|
|
65
|
+
constructor(params, clientConfiguration) {
|
|
66
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
67
|
+
this["_endpoint"] = "";
|
|
68
|
+
this["_defaultHeaders"] = {};
|
|
69
|
+
this._circuitBreaker = null;
|
|
70
|
+
this._httpOptions = undefined;
|
|
71
|
+
this._bodyDuplexMode = undefined;
|
|
72
|
+
this.targetService = "DelegateAccessControl";
|
|
73
|
+
this._regionId = "";
|
|
74
|
+
this._lastSetRegionOrRegionId = "";
|
|
75
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
76
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
77
|
+
: null;
|
|
78
|
+
if (clientConfiguration) {
|
|
79
|
+
this._clientConfiguration = clientConfiguration;
|
|
80
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
81
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
82
|
+
: null;
|
|
83
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
84
|
+
? clientConfiguration.httpOptions
|
|
85
|
+
: undefined;
|
|
86
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
87
|
+
? clientConfiguration.bodyDuplexMode
|
|
88
|
+
: undefined;
|
|
89
|
+
}
|
|
90
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("delegateaccesscontrol")) {
|
|
91
|
+
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 : ";
|
|
92
|
+
throw errmsg.concat("delegateaccesscontrol");
|
|
93
|
+
}
|
|
94
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
95
|
+
const specCircuitBreakerEnabled = true;
|
|
96
|
+
if (!this._circuitBreaker &&
|
|
97
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
98
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
99
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
100
|
+
}
|
|
101
|
+
this._httpClient =
|
|
102
|
+
params.httpClient ||
|
|
103
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
104
|
+
if (params.authenticationDetailsProvider &&
|
|
105
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
106
|
+
const provider = params.authenticationDetailsProvider;
|
|
107
|
+
if (provider.getRegion()) {
|
|
108
|
+
this.region = provider.getRegion();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
114
|
+
*/
|
|
115
|
+
get endpoint() {
|
|
116
|
+
return this._endpoint;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
120
|
+
* @param endpoint The endpoint of the service.
|
|
121
|
+
*/
|
|
122
|
+
set endpoint(endpoint) {
|
|
123
|
+
this._endpoint = endpoint;
|
|
124
|
+
this._endpoint = this._endpoint + "/20230801";
|
|
125
|
+
if (this.logger)
|
|
126
|
+
this.logger.info(`DelegateAccessControlClient endpoint set to ${this._endpoint}`);
|
|
127
|
+
}
|
|
128
|
+
get logger() {
|
|
129
|
+
return common.LOG.logger;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
133
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
134
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
135
|
+
*/
|
|
136
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
137
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
138
|
+
if (this.logger)
|
|
139
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
140
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
141
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DelegateAccessControlClient.serviceEndpointTemplate, this._region, DelegateAccessControlClient.endpointServiceName);
|
|
142
|
+
}
|
|
143
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
144
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DelegateAccessControlClient.serviceEndpointTemplate, this._regionId, DelegateAccessControlClient.endpointServiceName);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
149
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
150
|
+
* @param region The region of the service.
|
|
151
|
+
*/
|
|
152
|
+
set region(region) {
|
|
153
|
+
this._region = region;
|
|
154
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DelegateAccessControlClient.serviceEndpointTemplate, region, DelegateAccessControlClient.endpointServiceName);
|
|
155
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
159
|
+
*
|
|
160
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
161
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
162
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
163
|
+
* @param regionId The public region ID.
|
|
164
|
+
*/
|
|
165
|
+
set regionId(regionId) {
|
|
166
|
+
this._regionId = regionId;
|
|
167
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DelegateAccessControlClient.serviceEndpointTemplate, regionId, DelegateAccessControlClient.endpointServiceName);
|
|
168
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Creates a new DelegateAccessControlWaiter for resources for this service.
|
|
172
|
+
*
|
|
173
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
174
|
+
* @return The service waiters.
|
|
175
|
+
*/
|
|
176
|
+
createWaiters(config) {
|
|
177
|
+
this._waiters = new delegateaccesscontrol_waiter_1.DelegateAccessControlWaiter(this, config);
|
|
178
|
+
return this._waiters;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Gets the waiters available for resources for this service.
|
|
182
|
+
*
|
|
183
|
+
* @return The service waiters.
|
|
184
|
+
*/
|
|
185
|
+
getWaiters() {
|
|
186
|
+
if (this._waiters) {
|
|
187
|
+
return this._waiters;
|
|
188
|
+
}
|
|
189
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
193
|
+
*/
|
|
194
|
+
shutdownCircuitBreaker() {
|
|
195
|
+
if (this._circuitBreaker) {
|
|
196
|
+
this._circuitBreaker.shutdown();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Close the client once it is no longer needed
|
|
201
|
+
*/
|
|
202
|
+
close() {
|
|
203
|
+
this.shutdownCircuitBreaker();
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Approves a Delegated Resource Access Request.
|
|
207
|
+
*
|
|
208
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
209
|
+
* @param ApproveDelegatedResourceAccessRequestRequest
|
|
210
|
+
* @return ApproveDelegatedResourceAccessRequestResponse
|
|
211
|
+
* @throws OciError when an error occurs
|
|
212
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ApproveDelegatedResourceAccessRequest.ts.html |here} to see how to use ApproveDelegatedResourceAccessRequest API.
|
|
213
|
+
*/
|
|
214
|
+
approveDelegatedResourceAccessRequest(approveDelegatedResourceAccessRequestRequest) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
if (this.logger)
|
|
217
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#approveDelegatedResourceAccessRequest.");
|
|
218
|
+
const operationName = "approveDelegatedResourceAccessRequest";
|
|
219
|
+
const apiReferenceLink = "";
|
|
220
|
+
const pathParams = {
|
|
221
|
+
"{delegatedResourceAccessRequestId}": approveDelegatedResourceAccessRequestRequest.delegatedResourceAccessRequestId
|
|
222
|
+
};
|
|
223
|
+
const queryParams = {};
|
|
224
|
+
let headerParams = {
|
|
225
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
226
|
+
"opc-retry-token": approveDelegatedResourceAccessRequestRequest.opcRetryToken,
|
|
227
|
+
"if-match": approveDelegatedResourceAccessRequestRequest.ifMatch,
|
|
228
|
+
"opc-request-id": approveDelegatedResourceAccessRequestRequest.opcRequestId
|
|
229
|
+
};
|
|
230
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
231
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, approveDelegatedResourceAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
232
|
+
if (this.logger)
|
|
233
|
+
retrier.logger = this.logger;
|
|
234
|
+
const request = yield oci_common_1.composeRequest({
|
|
235
|
+
baseEndpoint: this._endpoint,
|
|
236
|
+
defaultHeaders: this._defaultHeaders,
|
|
237
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/actions/approve",
|
|
238
|
+
method: "POST",
|
|
239
|
+
bodyContent: common.ObjectSerializer.serialize(approveDelegatedResourceAccessRequestRequest.approveDelegatedResourceAccessRequestDetails, "ApproveDelegatedResourceAccessRequestDetails", model.ApproveDelegatedResourceAccessRequestDetails.getJsonObj),
|
|
240
|
+
pathParams: pathParams,
|
|
241
|
+
headerParams: headerParams,
|
|
242
|
+
queryParams: queryParams
|
|
243
|
+
});
|
|
244
|
+
try {
|
|
245
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
246
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
247
|
+
responseObject: {},
|
|
248
|
+
responseHeaders: [
|
|
249
|
+
{
|
|
250
|
+
value: response.headers.get("opc-work-request-id"),
|
|
251
|
+
key: "opcWorkRequestId",
|
|
252
|
+
dataType: "string"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
value: response.headers.get("opc-request-id"),
|
|
256
|
+
key: "opcRequestId",
|
|
257
|
+
dataType: "string"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
});
|
|
261
|
+
return sdkResponse;
|
|
262
|
+
}
|
|
263
|
+
catch (err) {
|
|
264
|
+
throw err;
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Moves the Delegation Control resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
270
|
+
*
|
|
271
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
272
|
+
* @param ChangeDelegationControlCompartmentRequest
|
|
273
|
+
* @return ChangeDelegationControlCompartmentResponse
|
|
274
|
+
* @throws OciError when an error occurs
|
|
275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ChangeDelegationControlCompartment.ts.html |here} to see how to use ChangeDelegationControlCompartment API.
|
|
276
|
+
*/
|
|
277
|
+
changeDelegationControlCompartment(changeDelegationControlCompartmentRequest) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
if (this.logger)
|
|
280
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#changeDelegationControlCompartment.");
|
|
281
|
+
const operationName = "changeDelegationControlCompartment";
|
|
282
|
+
const apiReferenceLink = "";
|
|
283
|
+
const pathParams = {
|
|
284
|
+
"{delegationControlId}": changeDelegationControlCompartmentRequest.delegationControlId
|
|
285
|
+
};
|
|
286
|
+
const queryParams = {};
|
|
287
|
+
let headerParams = {
|
|
288
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
289
|
+
"opc-retry-token": changeDelegationControlCompartmentRequest.opcRetryToken,
|
|
290
|
+
"if-match": changeDelegationControlCompartmentRequest.ifMatch,
|
|
291
|
+
"opc-request-id": changeDelegationControlCompartmentRequest.opcRequestId
|
|
292
|
+
};
|
|
293
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
294
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDelegationControlCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
295
|
+
if (this.logger)
|
|
296
|
+
retrier.logger = this.logger;
|
|
297
|
+
const request = yield oci_common_1.composeRequest({
|
|
298
|
+
baseEndpoint: this._endpoint,
|
|
299
|
+
defaultHeaders: this._defaultHeaders,
|
|
300
|
+
path: "/delegationControls/{delegationControlId}/actions/changeCompartment",
|
|
301
|
+
method: "POST",
|
|
302
|
+
bodyContent: common.ObjectSerializer.serialize(changeDelegationControlCompartmentRequest.changeDelegationControlCompartmentDetails, "ChangeDelegationControlCompartmentDetails", model.ChangeDelegationControlCompartmentDetails.getJsonObj),
|
|
303
|
+
pathParams: pathParams,
|
|
304
|
+
headerParams: headerParams,
|
|
305
|
+
queryParams: queryParams
|
|
306
|
+
});
|
|
307
|
+
try {
|
|
308
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
309
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
310
|
+
responseObject: {},
|
|
311
|
+
responseHeaders: [
|
|
312
|
+
{
|
|
313
|
+
value: response.headers.get("opc-request-id"),
|
|
314
|
+
key: "opcRequestId",
|
|
315
|
+
dataType: "string"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
value: response.headers.get("opc-work-request-id"),
|
|
319
|
+
key: "opcWorkRequestId",
|
|
320
|
+
dataType: "string"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
});
|
|
324
|
+
return sdkResponse;
|
|
325
|
+
}
|
|
326
|
+
catch (err) {
|
|
327
|
+
throw err;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Moves the Delegation Subscription resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
|
333
|
+
*
|
|
334
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
335
|
+
* @param ChangeDelegationSubscriptionCompartmentRequest
|
|
336
|
+
* @return ChangeDelegationSubscriptionCompartmentResponse
|
|
337
|
+
* @throws OciError when an error occurs
|
|
338
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ChangeDelegationSubscriptionCompartment.ts.html |here} to see how to use ChangeDelegationSubscriptionCompartment API.
|
|
339
|
+
*/
|
|
340
|
+
changeDelegationSubscriptionCompartment(changeDelegationSubscriptionCompartmentRequest) {
|
|
341
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
342
|
+
if (this.logger)
|
|
343
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#changeDelegationSubscriptionCompartment.");
|
|
344
|
+
const operationName = "changeDelegationSubscriptionCompartment";
|
|
345
|
+
const apiReferenceLink = "";
|
|
346
|
+
const pathParams = {
|
|
347
|
+
"{delegationSubscriptionId}": changeDelegationSubscriptionCompartmentRequest.delegationSubscriptionId
|
|
348
|
+
};
|
|
349
|
+
const queryParams = {};
|
|
350
|
+
let headerParams = {
|
|
351
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
352
|
+
"opc-retry-token": changeDelegationSubscriptionCompartmentRequest.opcRetryToken,
|
|
353
|
+
"if-match": changeDelegationSubscriptionCompartmentRequest.ifMatch,
|
|
354
|
+
"opc-request-id": changeDelegationSubscriptionCompartmentRequest.opcRequestId
|
|
355
|
+
};
|
|
356
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
357
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDelegationSubscriptionCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
358
|
+
if (this.logger)
|
|
359
|
+
retrier.logger = this.logger;
|
|
360
|
+
const request = yield oci_common_1.composeRequest({
|
|
361
|
+
baseEndpoint: this._endpoint,
|
|
362
|
+
defaultHeaders: this._defaultHeaders,
|
|
363
|
+
path: "/delegationSubscriptions/{delegationSubscriptionId}/actions/changeCompartment",
|
|
364
|
+
method: "POST",
|
|
365
|
+
bodyContent: common.ObjectSerializer.serialize(changeDelegationSubscriptionCompartmentRequest.changeDelegationSubscriptionCompartmentDetails, "ChangeDelegationSubscriptionCompartmentDetails", model.ChangeDelegationSubscriptionCompartmentDetails.getJsonObj),
|
|
366
|
+
pathParams: pathParams,
|
|
367
|
+
headerParams: headerParams,
|
|
368
|
+
queryParams: queryParams
|
|
369
|
+
});
|
|
370
|
+
try {
|
|
371
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
372
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
373
|
+
responseObject: {},
|
|
374
|
+
responseHeaders: [
|
|
375
|
+
{
|
|
376
|
+
value: response.headers.get("opc-request-id"),
|
|
377
|
+
key: "opcRequestId",
|
|
378
|
+
dataType: "string"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
value: response.headers.get("opc-work-request-id"),
|
|
382
|
+
key: "opcWorkRequestId",
|
|
383
|
+
dataType: "string"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
});
|
|
387
|
+
return sdkResponse;
|
|
388
|
+
}
|
|
389
|
+
catch (err) {
|
|
390
|
+
throw err;
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Creates a Delegation Control.
|
|
396
|
+
*
|
|
397
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
398
|
+
* @param CreateDelegationControlRequest
|
|
399
|
+
* @return CreateDelegationControlResponse
|
|
400
|
+
* @throws OciError when an error occurs
|
|
401
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/CreateDelegationControl.ts.html |here} to see how to use CreateDelegationControl API.
|
|
402
|
+
*/
|
|
403
|
+
createDelegationControl(createDelegationControlRequest) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
if (this.logger)
|
|
406
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#createDelegationControl.");
|
|
407
|
+
const operationName = "createDelegationControl";
|
|
408
|
+
const apiReferenceLink = "";
|
|
409
|
+
const pathParams = {};
|
|
410
|
+
const queryParams = {};
|
|
411
|
+
let headerParams = {
|
|
412
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
413
|
+
"opc-retry-token": createDelegationControlRequest.opcRetryToken,
|
|
414
|
+
"opc-request-id": createDelegationControlRequest.opcRequestId
|
|
415
|
+
};
|
|
416
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
417
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDelegationControlRequest.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: "/delegationControls",
|
|
424
|
+
method: "POST",
|
|
425
|
+
bodyContent: common.ObjectSerializer.serialize(createDelegationControlRequest.createDelegationControlDetails, "CreateDelegationControlDetails", model.CreateDelegationControlDetails.getJsonObj),
|
|
426
|
+
pathParams: pathParams,
|
|
427
|
+
headerParams: headerParams,
|
|
428
|
+
queryParams: queryParams
|
|
429
|
+
});
|
|
430
|
+
try {
|
|
431
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
432
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
433
|
+
responseObject: {},
|
|
434
|
+
body: yield response.json(),
|
|
435
|
+
bodyKey: "delegationControl",
|
|
436
|
+
bodyModel: model.DelegationControl,
|
|
437
|
+
type: "model.DelegationControl",
|
|
438
|
+
responseHeaders: [
|
|
439
|
+
{
|
|
440
|
+
value: response.headers.get("opc-work-request-id"),
|
|
441
|
+
key: "opcWorkRequestId",
|
|
442
|
+
dataType: "string"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
value: response.headers.get("opc-request-id"),
|
|
446
|
+
key: "opcRequestId",
|
|
447
|
+
dataType: "string"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: response.headers.get("location"),
|
|
451
|
+
key: "location",
|
|
452
|
+
dataType: "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: response.headers.get("content-location"),
|
|
456
|
+
key: "contentLocation",
|
|
457
|
+
dataType: "string"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
value: response.headers.get("etag"),
|
|
461
|
+
key: "etag",
|
|
462
|
+
dataType: "string"
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
});
|
|
466
|
+
return sdkResponse;
|
|
467
|
+
}
|
|
468
|
+
catch (err) {
|
|
469
|
+
throw err;
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Creates Delegation Subscription in Delegation Control.
|
|
475
|
+
*
|
|
476
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
477
|
+
* @param CreateDelegationSubscriptionRequest
|
|
478
|
+
* @return CreateDelegationSubscriptionResponse
|
|
479
|
+
* @throws OciError when an error occurs
|
|
480
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/CreateDelegationSubscription.ts.html |here} to see how to use CreateDelegationSubscription API.
|
|
481
|
+
*/
|
|
482
|
+
createDelegationSubscription(createDelegationSubscriptionRequest) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
484
|
+
if (this.logger)
|
|
485
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#createDelegationSubscription.");
|
|
486
|
+
const operationName = "createDelegationSubscription";
|
|
487
|
+
const apiReferenceLink = "";
|
|
488
|
+
const pathParams = {};
|
|
489
|
+
const queryParams = {};
|
|
490
|
+
let headerParams = {
|
|
491
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
492
|
+
"opc-retry-token": createDelegationSubscriptionRequest.opcRetryToken,
|
|
493
|
+
"opc-request-id": createDelegationSubscriptionRequest.opcRequestId
|
|
494
|
+
};
|
|
495
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
496
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDelegationSubscriptionRequest.retryConfiguration, specRetryConfiguration);
|
|
497
|
+
if (this.logger)
|
|
498
|
+
retrier.logger = this.logger;
|
|
499
|
+
const request = yield oci_common_1.composeRequest({
|
|
500
|
+
baseEndpoint: this._endpoint,
|
|
501
|
+
defaultHeaders: this._defaultHeaders,
|
|
502
|
+
path: "/delegationSubscriptions",
|
|
503
|
+
method: "POST",
|
|
504
|
+
bodyContent: common.ObjectSerializer.serialize(createDelegationSubscriptionRequest.createDelegationSubscriptionDetails, "CreateDelegationSubscriptionDetails", model.CreateDelegationSubscriptionDetails.getJsonObj),
|
|
505
|
+
pathParams: pathParams,
|
|
506
|
+
headerParams: headerParams,
|
|
507
|
+
queryParams: queryParams
|
|
508
|
+
});
|
|
509
|
+
try {
|
|
510
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
511
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
512
|
+
responseObject: {},
|
|
513
|
+
body: yield response.json(),
|
|
514
|
+
bodyKey: "delegationSubscription",
|
|
515
|
+
bodyModel: model.DelegationSubscription,
|
|
516
|
+
type: "model.DelegationSubscription",
|
|
517
|
+
responseHeaders: [
|
|
518
|
+
{
|
|
519
|
+
value: response.headers.get("opc-work-request-id"),
|
|
520
|
+
key: "opcWorkRequestId",
|
|
521
|
+
dataType: "string"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
value: response.headers.get("opc-request-id"),
|
|
525
|
+
key: "opcRequestId",
|
|
526
|
+
dataType: "string"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
value: response.headers.get("location"),
|
|
530
|
+
key: "location",
|
|
531
|
+
dataType: "string"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
value: response.headers.get("content-location"),
|
|
535
|
+
key: "contentLocation",
|
|
536
|
+
dataType: "string"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
value: response.headers.get("etag"),
|
|
540
|
+
key: "etag",
|
|
541
|
+
dataType: "string"
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
});
|
|
545
|
+
return sdkResponse;
|
|
546
|
+
}
|
|
547
|
+
catch (err) {
|
|
548
|
+
throw err;
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Deletes a Delegation Control. You cannot delete a Delegation Control if it is assigned to govern any target resource currently or in the future.
|
|
554
|
+
* In that case, first, delete all of the current and future assignments before deleting the Delegation Control. A Delegation Control that was previously assigned to a target
|
|
555
|
+
* resource is marked as DELETED following a successful deletion. However, it is not completely deleted from the system. This is to ensure auditing information for the accesses
|
|
556
|
+
* done under the Delegation Control is preserved for future needs. The system purges the deleted Delegation Control only when all of the audit data associated with the
|
|
557
|
+
* Delegation Control are also deleted. Therefore, you cannot reuse the name of the deleted Delegation Control until the system purges the Delegation Control.
|
|
558
|
+
*
|
|
559
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
560
|
+
* @param DeleteDelegationControlRequest
|
|
561
|
+
* @return DeleteDelegationControlResponse
|
|
562
|
+
* @throws OciError when an error occurs
|
|
563
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/DeleteDelegationControl.ts.html |here} to see how to use DeleteDelegationControl API.
|
|
564
|
+
*/
|
|
565
|
+
deleteDelegationControl(deleteDelegationControlRequest) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
if (this.logger)
|
|
568
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#deleteDelegationControl.");
|
|
569
|
+
const operationName = "deleteDelegationControl";
|
|
570
|
+
const apiReferenceLink = "";
|
|
571
|
+
const pathParams = {
|
|
572
|
+
"{delegationControlId}": deleteDelegationControlRequest.delegationControlId
|
|
573
|
+
};
|
|
574
|
+
const queryParams = {
|
|
575
|
+
"description": deleteDelegationControlRequest.description
|
|
576
|
+
};
|
|
577
|
+
let headerParams = {
|
|
578
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
579
|
+
"if-match": deleteDelegationControlRequest.ifMatch,
|
|
580
|
+
"opc-request-id": deleteDelegationControlRequest.opcRequestId
|
|
581
|
+
};
|
|
582
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
583
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDelegationControlRequest.retryConfiguration, specRetryConfiguration);
|
|
584
|
+
if (this.logger)
|
|
585
|
+
retrier.logger = this.logger;
|
|
586
|
+
const request = yield oci_common_1.composeRequest({
|
|
587
|
+
baseEndpoint: this._endpoint,
|
|
588
|
+
defaultHeaders: this._defaultHeaders,
|
|
589
|
+
path: "/delegationControls/{delegationControlId}",
|
|
590
|
+
method: "DELETE",
|
|
591
|
+
pathParams: pathParams,
|
|
592
|
+
headerParams: headerParams,
|
|
593
|
+
queryParams: queryParams
|
|
594
|
+
});
|
|
595
|
+
try {
|
|
596
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
597
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
598
|
+
responseObject: {},
|
|
599
|
+
responseHeaders: [
|
|
600
|
+
{
|
|
601
|
+
value: response.headers.get("opc-request-id"),
|
|
602
|
+
key: "opcRequestId",
|
|
603
|
+
dataType: "string"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
value: response.headers.get("opc-work-request-id"),
|
|
607
|
+
key: "opcWorkRequestId",
|
|
608
|
+
dataType: "string"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
});
|
|
612
|
+
return sdkResponse;
|
|
613
|
+
}
|
|
614
|
+
catch (err) {
|
|
615
|
+
throw err;
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* eletes an Delegation Subscription in Delegation Control.
|
|
621
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
622
|
+
* @param DeleteDelegationSubscriptionRequest
|
|
623
|
+
* @return DeleteDelegationSubscriptionResponse
|
|
624
|
+
* @throws OciError when an error occurs
|
|
625
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/DeleteDelegationSubscription.ts.html |here} to see how to use DeleteDelegationSubscription API.
|
|
626
|
+
*/
|
|
627
|
+
deleteDelegationSubscription(deleteDelegationSubscriptionRequest) {
|
|
628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
629
|
+
if (this.logger)
|
|
630
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#deleteDelegationSubscription.");
|
|
631
|
+
const operationName = "deleteDelegationSubscription";
|
|
632
|
+
const apiReferenceLink = "";
|
|
633
|
+
const pathParams = {
|
|
634
|
+
"{delegationSubscriptionId}": deleteDelegationSubscriptionRequest.delegationSubscriptionId
|
|
635
|
+
};
|
|
636
|
+
const queryParams = {};
|
|
637
|
+
let headerParams = {
|
|
638
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
639
|
+
"if-match": deleteDelegationSubscriptionRequest.ifMatch,
|
|
640
|
+
"opc-request-id": deleteDelegationSubscriptionRequest.opcRequestId
|
|
641
|
+
};
|
|
642
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
643
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDelegationSubscriptionRequest.retryConfiguration, specRetryConfiguration);
|
|
644
|
+
if (this.logger)
|
|
645
|
+
retrier.logger = this.logger;
|
|
646
|
+
const request = yield oci_common_1.composeRequest({
|
|
647
|
+
baseEndpoint: this._endpoint,
|
|
648
|
+
defaultHeaders: this._defaultHeaders,
|
|
649
|
+
path: "/delegationSubscriptions/{delegationSubscriptionId}",
|
|
650
|
+
method: "DELETE",
|
|
651
|
+
pathParams: pathParams,
|
|
652
|
+
headerParams: headerParams,
|
|
653
|
+
queryParams: queryParams
|
|
654
|
+
});
|
|
655
|
+
try {
|
|
656
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
657
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
658
|
+
responseObject: {},
|
|
659
|
+
responseHeaders: [
|
|
660
|
+
{
|
|
661
|
+
value: response.headers.get("opc-work-request-id"),
|
|
662
|
+
key: "opcWorkRequestId",
|
|
663
|
+
dataType: "string"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
value: response.headers.get("opc-request-id"),
|
|
667
|
+
key: "opcRequestId",
|
|
668
|
+
dataType: "string"
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
});
|
|
672
|
+
return sdkResponse;
|
|
673
|
+
}
|
|
674
|
+
catch (err) {
|
|
675
|
+
throw err;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Gets details of a Delegated Resource Access Request.
|
|
681
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
682
|
+
* @param GetDelegatedResourceAccessRequestRequest
|
|
683
|
+
* @return GetDelegatedResourceAccessRequestResponse
|
|
684
|
+
* @throws OciError when an error occurs
|
|
685
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetDelegatedResourceAccessRequest.ts.html |here} to see how to use GetDelegatedResourceAccessRequest API.
|
|
686
|
+
*/
|
|
687
|
+
getDelegatedResourceAccessRequest(getDelegatedResourceAccessRequestRequest) {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
+
if (this.logger)
|
|
690
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#getDelegatedResourceAccessRequest.");
|
|
691
|
+
const operationName = "getDelegatedResourceAccessRequest";
|
|
692
|
+
const apiReferenceLink = "";
|
|
693
|
+
const pathParams = {
|
|
694
|
+
"{delegatedResourceAccessRequestId}": getDelegatedResourceAccessRequestRequest.delegatedResourceAccessRequestId
|
|
695
|
+
};
|
|
696
|
+
const queryParams = {};
|
|
697
|
+
let headerParams = {
|
|
698
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
699
|
+
"opc-request-id": getDelegatedResourceAccessRequestRequest.opcRequestId
|
|
700
|
+
};
|
|
701
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
702
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDelegatedResourceAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
703
|
+
if (this.logger)
|
|
704
|
+
retrier.logger = this.logger;
|
|
705
|
+
const request = yield oci_common_1.composeRequest({
|
|
706
|
+
baseEndpoint: this._endpoint,
|
|
707
|
+
defaultHeaders: this._defaultHeaders,
|
|
708
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}",
|
|
709
|
+
method: "GET",
|
|
710
|
+
pathParams: pathParams,
|
|
711
|
+
headerParams: headerParams,
|
|
712
|
+
queryParams: queryParams
|
|
713
|
+
});
|
|
714
|
+
try {
|
|
715
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
716
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
717
|
+
responseObject: {},
|
|
718
|
+
body: yield response.json(),
|
|
719
|
+
bodyKey: "delegatedResourceAccessRequest",
|
|
720
|
+
bodyModel: model.DelegatedResourceAccessRequest,
|
|
721
|
+
type: "model.DelegatedResourceAccessRequest",
|
|
722
|
+
responseHeaders: [
|
|
723
|
+
{
|
|
724
|
+
value: response.headers.get("etag"),
|
|
725
|
+
key: "etag",
|
|
726
|
+
dataType: "string"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
value: response.headers.get("opc-request-id"),
|
|
730
|
+
key: "opcRequestId",
|
|
731
|
+
dataType: "string"
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
});
|
|
735
|
+
return sdkResponse;
|
|
736
|
+
}
|
|
737
|
+
catch (err) {
|
|
738
|
+
throw err;
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Gets the audit log report for the given Delegated Resource Access Request.
|
|
744
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
745
|
+
* @param GetDelegatedResourceAccessRequestAuditLogReportRequest
|
|
746
|
+
* @return GetDelegatedResourceAccessRequestAuditLogReportResponse
|
|
747
|
+
* @throws OciError when an error occurs
|
|
748
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetDelegatedResourceAccessRequestAuditLogReport.ts.html |here} to see how to use GetDelegatedResourceAccessRequestAuditLogReport API.
|
|
749
|
+
*/
|
|
750
|
+
getDelegatedResourceAccessRequestAuditLogReport(getDelegatedResourceAccessRequestAuditLogReportRequest) {
|
|
751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
752
|
+
if (this.logger)
|
|
753
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#getDelegatedResourceAccessRequestAuditLogReport.");
|
|
754
|
+
const operationName = "getDelegatedResourceAccessRequestAuditLogReport";
|
|
755
|
+
const apiReferenceLink = "";
|
|
756
|
+
const pathParams = {
|
|
757
|
+
"{delegatedResourceAccessRequestId}": getDelegatedResourceAccessRequestAuditLogReportRequest.delegatedResourceAccessRequestId
|
|
758
|
+
};
|
|
759
|
+
const queryParams = {
|
|
760
|
+
"isProcessTreeEnabled": getDelegatedResourceAccessRequestAuditLogReportRequest.isProcessTreeEnabled
|
|
761
|
+
};
|
|
762
|
+
let headerParams = {
|
|
763
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
764
|
+
"opc-request-id": getDelegatedResourceAccessRequestAuditLogReportRequest.opcRequestId
|
|
765
|
+
};
|
|
766
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
767
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDelegatedResourceAccessRequestAuditLogReportRequest.retryConfiguration, specRetryConfiguration);
|
|
768
|
+
if (this.logger)
|
|
769
|
+
retrier.logger = this.logger;
|
|
770
|
+
const request = yield oci_common_1.composeRequest({
|
|
771
|
+
baseEndpoint: this._endpoint,
|
|
772
|
+
defaultHeaders: this._defaultHeaders,
|
|
773
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/delegatedResourceAccessRequestAuditLogReport",
|
|
774
|
+
method: "GET",
|
|
775
|
+
pathParams: pathParams,
|
|
776
|
+
headerParams: headerParams,
|
|
777
|
+
queryParams: queryParams
|
|
778
|
+
});
|
|
779
|
+
try {
|
|
780
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
781
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
782
|
+
responseObject: {},
|
|
783
|
+
body: yield response.json(),
|
|
784
|
+
bodyKey: "delegatedResourceAccessRequestAuditLogReport",
|
|
785
|
+
bodyModel: model.DelegatedResourceAccessRequestAuditLogReport,
|
|
786
|
+
type: "model.DelegatedResourceAccessRequestAuditLogReport",
|
|
787
|
+
responseHeaders: [
|
|
788
|
+
{
|
|
789
|
+
value: response.headers.get("opc-request-id"),
|
|
790
|
+
key: "opcRequestId",
|
|
791
|
+
dataType: "string"
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
});
|
|
795
|
+
return sdkResponse;
|
|
796
|
+
}
|
|
797
|
+
catch (err) {
|
|
798
|
+
throw err;
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Gets the Delegation Control associated with the specified Delegation Control ID.
|
|
804
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
805
|
+
* @param GetDelegationControlRequest
|
|
806
|
+
* @return GetDelegationControlResponse
|
|
807
|
+
* @throws OciError when an error occurs
|
|
808
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetDelegationControl.ts.html |here} to see how to use GetDelegationControl API.
|
|
809
|
+
*/
|
|
810
|
+
getDelegationControl(getDelegationControlRequest) {
|
|
811
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
812
|
+
if (this.logger)
|
|
813
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#getDelegationControl.");
|
|
814
|
+
const operationName = "getDelegationControl";
|
|
815
|
+
const apiReferenceLink = "";
|
|
816
|
+
const pathParams = {
|
|
817
|
+
"{delegationControlId}": getDelegationControlRequest.delegationControlId
|
|
818
|
+
};
|
|
819
|
+
const queryParams = {};
|
|
820
|
+
let headerParams = {
|
|
821
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
822
|
+
"opc-request-id": getDelegationControlRequest.opcRequestId
|
|
823
|
+
};
|
|
824
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
825
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDelegationControlRequest.retryConfiguration, specRetryConfiguration);
|
|
826
|
+
if (this.logger)
|
|
827
|
+
retrier.logger = this.logger;
|
|
828
|
+
const request = yield oci_common_1.composeRequest({
|
|
829
|
+
baseEndpoint: this._endpoint,
|
|
830
|
+
defaultHeaders: this._defaultHeaders,
|
|
831
|
+
path: "/delegationControls/{delegationControlId}",
|
|
832
|
+
method: "GET",
|
|
833
|
+
pathParams: pathParams,
|
|
834
|
+
headerParams: headerParams,
|
|
835
|
+
queryParams: queryParams
|
|
836
|
+
});
|
|
837
|
+
try {
|
|
838
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
839
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
840
|
+
responseObject: {},
|
|
841
|
+
body: yield response.json(),
|
|
842
|
+
bodyKey: "delegationControl",
|
|
843
|
+
bodyModel: model.DelegationControl,
|
|
844
|
+
type: "model.DelegationControl",
|
|
845
|
+
responseHeaders: [
|
|
846
|
+
{
|
|
847
|
+
value: response.headers.get("etag"),
|
|
848
|
+
key: "etag",
|
|
849
|
+
dataType: "string"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
value: response.headers.get("opc-request-id"),
|
|
853
|
+
key: "opcRequestId",
|
|
854
|
+
dataType: "string"
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
});
|
|
858
|
+
return sdkResponse;
|
|
859
|
+
}
|
|
860
|
+
catch (err) {
|
|
861
|
+
throw err;
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Gets a DelegationSubscription by identifier
|
|
867
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
868
|
+
* @param GetDelegationSubscriptionRequest
|
|
869
|
+
* @return GetDelegationSubscriptionResponse
|
|
870
|
+
* @throws OciError when an error occurs
|
|
871
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetDelegationSubscription.ts.html |here} to see how to use GetDelegationSubscription API.
|
|
872
|
+
*/
|
|
873
|
+
getDelegationSubscription(getDelegationSubscriptionRequest) {
|
|
874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
875
|
+
if (this.logger)
|
|
876
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#getDelegationSubscription.");
|
|
877
|
+
const operationName = "getDelegationSubscription";
|
|
878
|
+
const apiReferenceLink = "";
|
|
879
|
+
const pathParams = {
|
|
880
|
+
"{delegationSubscriptionId}": getDelegationSubscriptionRequest.delegationSubscriptionId
|
|
881
|
+
};
|
|
882
|
+
const queryParams = {};
|
|
883
|
+
let headerParams = {
|
|
884
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
885
|
+
"opc-request-id": getDelegationSubscriptionRequest.opcRequestId
|
|
886
|
+
};
|
|
887
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
888
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDelegationSubscriptionRequest.retryConfiguration, specRetryConfiguration);
|
|
889
|
+
if (this.logger)
|
|
890
|
+
retrier.logger = this.logger;
|
|
891
|
+
const request = yield oci_common_1.composeRequest({
|
|
892
|
+
baseEndpoint: this._endpoint,
|
|
893
|
+
defaultHeaders: this._defaultHeaders,
|
|
894
|
+
path: "/delegationSubscriptions/{delegationSubscriptionId}",
|
|
895
|
+
method: "GET",
|
|
896
|
+
pathParams: pathParams,
|
|
897
|
+
headerParams: headerParams,
|
|
898
|
+
queryParams: queryParams
|
|
899
|
+
});
|
|
900
|
+
try {
|
|
901
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
902
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
903
|
+
responseObject: {},
|
|
904
|
+
body: yield response.json(),
|
|
905
|
+
bodyKey: "delegationSubscription",
|
|
906
|
+
bodyModel: model.DelegationSubscription,
|
|
907
|
+
type: "model.DelegationSubscription",
|
|
908
|
+
responseHeaders: [
|
|
909
|
+
{
|
|
910
|
+
value: response.headers.get("etag"),
|
|
911
|
+
key: "etag",
|
|
912
|
+
dataType: "string"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
value: response.headers.get("opc-request-id"),
|
|
916
|
+
key: "opcRequestId",
|
|
917
|
+
dataType: "string"
|
|
918
|
+
}
|
|
919
|
+
]
|
|
920
|
+
});
|
|
921
|
+
return sdkResponse;
|
|
922
|
+
}
|
|
923
|
+
catch (err) {
|
|
924
|
+
throw err;
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Gets a ServiceProvider by identifier
|
|
930
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
931
|
+
* @param GetServiceProviderRequest
|
|
932
|
+
* @return GetServiceProviderResponse
|
|
933
|
+
* @throws OciError when an error occurs
|
|
934
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetServiceProvider.ts.html |here} to see how to use GetServiceProvider API.
|
|
935
|
+
*/
|
|
936
|
+
getServiceProvider(getServiceProviderRequest) {
|
|
937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
+
if (this.logger)
|
|
939
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#getServiceProvider.");
|
|
940
|
+
const operationName = "getServiceProvider";
|
|
941
|
+
const apiReferenceLink = "";
|
|
942
|
+
const pathParams = {
|
|
943
|
+
"{serviceProviderId}": getServiceProviderRequest.serviceProviderId
|
|
944
|
+
};
|
|
945
|
+
const queryParams = {};
|
|
946
|
+
let headerParams = {
|
|
947
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
948
|
+
"opc-request-id": getServiceProviderRequest.opcRequestId
|
|
949
|
+
};
|
|
950
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
951
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getServiceProviderRequest.retryConfiguration, specRetryConfiguration);
|
|
952
|
+
if (this.logger)
|
|
953
|
+
retrier.logger = this.logger;
|
|
954
|
+
const request = yield oci_common_1.composeRequest({
|
|
955
|
+
baseEndpoint: this._endpoint,
|
|
956
|
+
defaultHeaders: this._defaultHeaders,
|
|
957
|
+
path: "/serviceProviders/{serviceProviderId}",
|
|
958
|
+
method: "GET",
|
|
959
|
+
pathParams: pathParams,
|
|
960
|
+
headerParams: headerParams,
|
|
961
|
+
queryParams: queryParams
|
|
962
|
+
});
|
|
963
|
+
try {
|
|
964
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
965
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
966
|
+
responseObject: {},
|
|
967
|
+
body: yield response.json(),
|
|
968
|
+
bodyKey: "serviceProvider",
|
|
969
|
+
bodyModel: model.ServiceProvider,
|
|
970
|
+
type: "model.ServiceProvider",
|
|
971
|
+
responseHeaders: [
|
|
972
|
+
{
|
|
973
|
+
value: response.headers.get("etag"),
|
|
974
|
+
key: "etag",
|
|
975
|
+
dataType: "string"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
value: response.headers.get("opc-request-id"),
|
|
979
|
+
key: "opcRequestId",
|
|
980
|
+
dataType: "string"
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
});
|
|
984
|
+
return sdkResponse;
|
|
985
|
+
}
|
|
986
|
+
catch (err) {
|
|
987
|
+
throw err;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Gets the Service Provider Action associated with the specified Service Provider Action ID.
|
|
993
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
994
|
+
* @param GetServiceProviderActionRequest
|
|
995
|
+
* @return GetServiceProviderActionResponse
|
|
996
|
+
* @throws OciError when an error occurs
|
|
997
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetServiceProviderAction.ts.html |here} to see how to use GetServiceProviderAction API.
|
|
998
|
+
*/
|
|
999
|
+
getServiceProviderAction(getServiceProviderActionRequest) {
|
|
1000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
|
+
if (this.logger)
|
|
1002
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#getServiceProviderAction.");
|
|
1003
|
+
const operationName = "getServiceProviderAction";
|
|
1004
|
+
const apiReferenceLink = "";
|
|
1005
|
+
const pathParams = {
|
|
1006
|
+
"{serviceProviderActionId}": getServiceProviderActionRequest.serviceProviderActionId
|
|
1007
|
+
};
|
|
1008
|
+
const queryParams = {};
|
|
1009
|
+
let headerParams = {
|
|
1010
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1011
|
+
"opc-request-id": getServiceProviderActionRequest.opcRequestId
|
|
1012
|
+
};
|
|
1013
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1014
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getServiceProviderActionRequest.retryConfiguration, specRetryConfiguration);
|
|
1015
|
+
if (this.logger)
|
|
1016
|
+
retrier.logger = this.logger;
|
|
1017
|
+
const request = yield oci_common_1.composeRequest({
|
|
1018
|
+
baseEndpoint: this._endpoint,
|
|
1019
|
+
defaultHeaders: this._defaultHeaders,
|
|
1020
|
+
path: "/serviceProviderActions/{serviceProviderActionId}",
|
|
1021
|
+
method: "GET",
|
|
1022
|
+
pathParams: pathParams,
|
|
1023
|
+
headerParams: headerParams,
|
|
1024
|
+
queryParams: queryParams
|
|
1025
|
+
});
|
|
1026
|
+
try {
|
|
1027
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1028
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1029
|
+
responseObject: {},
|
|
1030
|
+
body: yield response.json(),
|
|
1031
|
+
bodyKey: "serviceProviderAction",
|
|
1032
|
+
bodyModel: model.ServiceProviderAction,
|
|
1033
|
+
type: "model.ServiceProviderAction",
|
|
1034
|
+
responseHeaders: [
|
|
1035
|
+
{
|
|
1036
|
+
value: response.headers.get("etag"),
|
|
1037
|
+
key: "etag",
|
|
1038
|
+
dataType: "string"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
value: response.headers.get("opc-request-id"),
|
|
1042
|
+
key: "opcRequestId",
|
|
1043
|
+
dataType: "string"
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
});
|
|
1047
|
+
return sdkResponse;
|
|
1048
|
+
}
|
|
1049
|
+
catch (err) {
|
|
1050
|
+
throw err;
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Returns a history of all status associated with the Delegated Resource Access RequestId.
|
|
1056
|
+
*
|
|
1057
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1058
|
+
* @param ListDelegatedResourceAccessRequestHistoriesRequest
|
|
1059
|
+
* @return ListDelegatedResourceAccessRequestHistoriesResponse
|
|
1060
|
+
* @throws OciError when an error occurs
|
|
1061
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListDelegatedResourceAccessRequestHistories.ts.html |here} to see how to use ListDelegatedResourceAccessRequestHistories API.
|
|
1062
|
+
*/
|
|
1063
|
+
listDelegatedResourceAccessRequestHistories(listDelegatedResourceAccessRequestHistoriesRequest) {
|
|
1064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1065
|
+
if (this.logger)
|
|
1066
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listDelegatedResourceAccessRequestHistories.");
|
|
1067
|
+
const operationName = "listDelegatedResourceAccessRequestHistories";
|
|
1068
|
+
const apiReferenceLink = "";
|
|
1069
|
+
const pathParams = {
|
|
1070
|
+
"{delegatedResourceAccessRequestId}": listDelegatedResourceAccessRequestHistoriesRequest.delegatedResourceAccessRequestId
|
|
1071
|
+
};
|
|
1072
|
+
const queryParams = {
|
|
1073
|
+
"limit": listDelegatedResourceAccessRequestHistoriesRequest.limit,
|
|
1074
|
+
"page": listDelegatedResourceAccessRequestHistoriesRequest.page,
|
|
1075
|
+
"sortOrder": listDelegatedResourceAccessRequestHistoriesRequest.sortOrder,
|
|
1076
|
+
"sortBy": listDelegatedResourceAccessRequestHistoriesRequest.sortBy
|
|
1077
|
+
};
|
|
1078
|
+
let headerParams = {
|
|
1079
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1080
|
+
"opc-request-id": listDelegatedResourceAccessRequestHistoriesRequest.opcRequestId
|
|
1081
|
+
};
|
|
1082
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1083
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDelegatedResourceAccessRequestHistoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
1084
|
+
if (this.logger)
|
|
1085
|
+
retrier.logger = this.logger;
|
|
1086
|
+
const request = yield oci_common_1.composeRequest({
|
|
1087
|
+
baseEndpoint: this._endpoint,
|
|
1088
|
+
defaultHeaders: this._defaultHeaders,
|
|
1089
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/history",
|
|
1090
|
+
method: "GET",
|
|
1091
|
+
pathParams: pathParams,
|
|
1092
|
+
headerParams: headerParams,
|
|
1093
|
+
queryParams: queryParams
|
|
1094
|
+
});
|
|
1095
|
+
try {
|
|
1096
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1097
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1098
|
+
responseObject: {},
|
|
1099
|
+
body: yield response.json(),
|
|
1100
|
+
bodyKey: "delegatedResourceAccessRequestHistoryCollection",
|
|
1101
|
+
bodyModel: model.DelegatedResourceAccessRequestHistoryCollection,
|
|
1102
|
+
type: "model.DelegatedResourceAccessRequestHistoryCollection",
|
|
1103
|
+
responseHeaders: [
|
|
1104
|
+
{
|
|
1105
|
+
value: response.headers.get("opc-request-id"),
|
|
1106
|
+
key: "opcRequestId",
|
|
1107
|
+
dataType: "string"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
value: response.headers.get("opc-next-page"),
|
|
1111
|
+
key: "opcNextPage",
|
|
1112
|
+
dataType: "string"
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
});
|
|
1116
|
+
return sdkResponse;
|
|
1117
|
+
}
|
|
1118
|
+
catch (err) {
|
|
1119
|
+
throw err;
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Lists all Delegated Resource Access Requests in the compartment. Note that only one of lifecycleState or requestStatus query parameter can be used.
|
|
1125
|
+
*
|
|
1126
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1127
|
+
* @param ListDelegatedResourceAccessRequestsRequest
|
|
1128
|
+
* @return ListDelegatedResourceAccessRequestsResponse
|
|
1129
|
+
* @throws OciError when an error occurs
|
|
1130
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListDelegatedResourceAccessRequests.ts.html |here} to see how to use ListDelegatedResourceAccessRequests API.
|
|
1131
|
+
*/
|
|
1132
|
+
listDelegatedResourceAccessRequests(listDelegatedResourceAccessRequestsRequest) {
|
|
1133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1134
|
+
if (this.logger)
|
|
1135
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listDelegatedResourceAccessRequests.");
|
|
1136
|
+
const operationName = "listDelegatedResourceAccessRequests";
|
|
1137
|
+
const apiReferenceLink = "";
|
|
1138
|
+
const pathParams = {};
|
|
1139
|
+
const queryParams = {
|
|
1140
|
+
"compartmentId": listDelegatedResourceAccessRequestsRequest.compartmentId,
|
|
1141
|
+
"delegationControlId": listDelegatedResourceAccessRequestsRequest.delegationControlId,
|
|
1142
|
+
"resourceId": listDelegatedResourceAccessRequestsRequest.resourceId,
|
|
1143
|
+
"lifecycleState": listDelegatedResourceAccessRequestsRequest.lifecycleState,
|
|
1144
|
+
"requestStatus": listDelegatedResourceAccessRequestsRequest.requestStatus,
|
|
1145
|
+
"timeStart": listDelegatedResourceAccessRequestsRequest.timeStart,
|
|
1146
|
+
"timeEnd": listDelegatedResourceAccessRequestsRequest.timeEnd,
|
|
1147
|
+
"limit": listDelegatedResourceAccessRequestsRequest.limit,
|
|
1148
|
+
"page": listDelegatedResourceAccessRequestsRequest.page,
|
|
1149
|
+
"sortOrder": listDelegatedResourceAccessRequestsRequest.sortOrder,
|
|
1150
|
+
"sortBy": listDelegatedResourceAccessRequestsRequest.sortBy
|
|
1151
|
+
};
|
|
1152
|
+
let headerParams = {
|
|
1153
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1154
|
+
"opc-request-id": listDelegatedResourceAccessRequestsRequest.opcRequestId
|
|
1155
|
+
};
|
|
1156
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1157
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDelegatedResourceAccessRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1158
|
+
if (this.logger)
|
|
1159
|
+
retrier.logger = this.logger;
|
|
1160
|
+
const request = yield oci_common_1.composeRequest({
|
|
1161
|
+
baseEndpoint: this._endpoint,
|
|
1162
|
+
defaultHeaders: this._defaultHeaders,
|
|
1163
|
+
path: "/delegatedResourceAccessRequests",
|
|
1164
|
+
method: "GET",
|
|
1165
|
+
pathParams: pathParams,
|
|
1166
|
+
headerParams: headerParams,
|
|
1167
|
+
queryParams: queryParams
|
|
1168
|
+
});
|
|
1169
|
+
try {
|
|
1170
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1171
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1172
|
+
responseObject: {},
|
|
1173
|
+
body: yield response.json(),
|
|
1174
|
+
bodyKey: "delegatedResourceAccessRequestSummaryCollection",
|
|
1175
|
+
bodyModel: model.DelegatedResourceAccessRequestSummaryCollection,
|
|
1176
|
+
type: "model.DelegatedResourceAccessRequestSummaryCollection",
|
|
1177
|
+
responseHeaders: [
|
|
1178
|
+
{
|
|
1179
|
+
value: response.headers.get("opc-request-id"),
|
|
1180
|
+
key: "opcRequestId",
|
|
1181
|
+
dataType: "string"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
value: response.headers.get("opc-next-page"),
|
|
1185
|
+
key: "opcNextPage",
|
|
1186
|
+
dataType: "string"
|
|
1187
|
+
}
|
|
1188
|
+
]
|
|
1189
|
+
});
|
|
1190
|
+
return sdkResponse;
|
|
1191
|
+
}
|
|
1192
|
+
catch (err) {
|
|
1193
|
+
throw err;
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Returns a list of resources associated with the Delegation Control.
|
|
1199
|
+
*
|
|
1200
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1201
|
+
* @param ListDelegationControlResourcesRequest
|
|
1202
|
+
* @return ListDelegationControlResourcesResponse
|
|
1203
|
+
* @throws OciError when an error occurs
|
|
1204
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListDelegationControlResources.ts.html |here} to see how to use ListDelegationControlResources API.
|
|
1205
|
+
*/
|
|
1206
|
+
listDelegationControlResources(listDelegationControlResourcesRequest) {
|
|
1207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1208
|
+
if (this.logger)
|
|
1209
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listDelegationControlResources.");
|
|
1210
|
+
const operationName = "listDelegationControlResources";
|
|
1211
|
+
const apiReferenceLink = "";
|
|
1212
|
+
const pathParams = {
|
|
1213
|
+
"{delegationControlId}": listDelegationControlResourcesRequest.delegationControlId
|
|
1214
|
+
};
|
|
1215
|
+
const queryParams = {
|
|
1216
|
+
"limit": listDelegationControlResourcesRequest.limit,
|
|
1217
|
+
"page": listDelegationControlResourcesRequest.page
|
|
1218
|
+
};
|
|
1219
|
+
let headerParams = {
|
|
1220
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1221
|
+
"opc-request-id": listDelegationControlResourcesRequest.opcRequestId
|
|
1222
|
+
};
|
|
1223
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1224
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDelegationControlResourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
1225
|
+
if (this.logger)
|
|
1226
|
+
retrier.logger = this.logger;
|
|
1227
|
+
const request = yield oci_common_1.composeRequest({
|
|
1228
|
+
baseEndpoint: this._endpoint,
|
|
1229
|
+
defaultHeaders: this._defaultHeaders,
|
|
1230
|
+
path: "/delegationControls/{delegationControlId}/resources",
|
|
1231
|
+
method: "GET",
|
|
1232
|
+
pathParams: pathParams,
|
|
1233
|
+
headerParams: headerParams,
|
|
1234
|
+
queryParams: queryParams
|
|
1235
|
+
});
|
|
1236
|
+
try {
|
|
1237
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1238
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1239
|
+
responseObject: {},
|
|
1240
|
+
body: yield response.json(),
|
|
1241
|
+
bodyKey: "delegationControlResourceCollection",
|
|
1242
|
+
bodyModel: model.DelegationControlResourceCollection,
|
|
1243
|
+
type: "model.DelegationControlResourceCollection",
|
|
1244
|
+
responseHeaders: [
|
|
1245
|
+
{
|
|
1246
|
+
value: response.headers.get("opc-request-id"),
|
|
1247
|
+
key: "opcRequestId",
|
|
1248
|
+
dataType: "string"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
value: response.headers.get("opc-next-page"),
|
|
1252
|
+
key: "opcNextPage",
|
|
1253
|
+
dataType: "string"
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
});
|
|
1257
|
+
return sdkResponse;
|
|
1258
|
+
}
|
|
1259
|
+
catch (err) {
|
|
1260
|
+
throw err;
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* Lists the Delegation Controls in the compartment.
|
|
1266
|
+
*
|
|
1267
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1268
|
+
* @param ListDelegationControlsRequest
|
|
1269
|
+
* @return ListDelegationControlsResponse
|
|
1270
|
+
* @throws OciError when an error occurs
|
|
1271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListDelegationControls.ts.html |here} to see how to use ListDelegationControls API.
|
|
1272
|
+
*/
|
|
1273
|
+
listDelegationControls(listDelegationControlsRequest) {
|
|
1274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1275
|
+
if (this.logger)
|
|
1276
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listDelegationControls.");
|
|
1277
|
+
const operationName = "listDelegationControls";
|
|
1278
|
+
const apiReferenceLink = "";
|
|
1279
|
+
const pathParams = {};
|
|
1280
|
+
const queryParams = {
|
|
1281
|
+
"compartmentId": listDelegationControlsRequest.compartmentId,
|
|
1282
|
+
"lifecycleState": listDelegationControlsRequest.lifecycleState,
|
|
1283
|
+
"displayName": listDelegationControlsRequest.displayName,
|
|
1284
|
+
"resourceType": listDelegationControlsRequest.resourceType,
|
|
1285
|
+
"resourceId": listDelegationControlsRequest.resourceId,
|
|
1286
|
+
"limit": listDelegationControlsRequest.limit,
|
|
1287
|
+
"page": listDelegationControlsRequest.page,
|
|
1288
|
+
"sortOrder": listDelegationControlsRequest.sortOrder,
|
|
1289
|
+
"sortBy": listDelegationControlsRequest.sortBy
|
|
1290
|
+
};
|
|
1291
|
+
let headerParams = {
|
|
1292
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1293
|
+
"opc-request-id": listDelegationControlsRequest.opcRequestId
|
|
1294
|
+
};
|
|
1295
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1296
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDelegationControlsRequest.retryConfiguration, specRetryConfiguration);
|
|
1297
|
+
if (this.logger)
|
|
1298
|
+
retrier.logger = this.logger;
|
|
1299
|
+
const request = yield oci_common_1.composeRequest({
|
|
1300
|
+
baseEndpoint: this._endpoint,
|
|
1301
|
+
defaultHeaders: this._defaultHeaders,
|
|
1302
|
+
path: "/delegationControls",
|
|
1303
|
+
method: "GET",
|
|
1304
|
+
pathParams: pathParams,
|
|
1305
|
+
headerParams: headerParams,
|
|
1306
|
+
queryParams: queryParams
|
|
1307
|
+
});
|
|
1308
|
+
try {
|
|
1309
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1310
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1311
|
+
responseObject: {},
|
|
1312
|
+
body: yield response.json(),
|
|
1313
|
+
bodyKey: "delegationControlSummaryCollection",
|
|
1314
|
+
bodyModel: model.DelegationControlSummaryCollection,
|
|
1315
|
+
type: "model.DelegationControlSummaryCollection",
|
|
1316
|
+
responseHeaders: [
|
|
1317
|
+
{
|
|
1318
|
+
value: response.headers.get("opc-request-id"),
|
|
1319
|
+
key: "opcRequestId",
|
|
1320
|
+
dataType: "string"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
value: response.headers.get("opc-next-page"),
|
|
1324
|
+
key: "opcNextPage",
|
|
1325
|
+
dataType: "string"
|
|
1326
|
+
}
|
|
1327
|
+
]
|
|
1328
|
+
});
|
|
1329
|
+
return sdkResponse;
|
|
1330
|
+
}
|
|
1331
|
+
catch (err) {
|
|
1332
|
+
throw err;
|
|
1333
|
+
}
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Lists the Delegation Subscriptions in Delegation Control.
|
|
1338
|
+
*
|
|
1339
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1340
|
+
* @param ListDelegationSubscriptionsRequest
|
|
1341
|
+
* @return ListDelegationSubscriptionsResponse
|
|
1342
|
+
* @throws OciError when an error occurs
|
|
1343
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListDelegationSubscriptions.ts.html |here} to see how to use ListDelegationSubscriptions API.
|
|
1344
|
+
*/
|
|
1345
|
+
listDelegationSubscriptions(listDelegationSubscriptionsRequest) {
|
|
1346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1347
|
+
if (this.logger)
|
|
1348
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listDelegationSubscriptions.");
|
|
1349
|
+
const operationName = "listDelegationSubscriptions";
|
|
1350
|
+
const apiReferenceLink = "";
|
|
1351
|
+
const pathParams = {};
|
|
1352
|
+
const queryParams = {
|
|
1353
|
+
"compartmentId": listDelegationSubscriptionsRequest.compartmentId,
|
|
1354
|
+
"lifecycleState": listDelegationSubscriptionsRequest.lifecycleState,
|
|
1355
|
+
"displayName": listDelegationSubscriptionsRequest.displayName,
|
|
1356
|
+
"limit": listDelegationSubscriptionsRequest.limit,
|
|
1357
|
+
"page": listDelegationSubscriptionsRequest.page,
|
|
1358
|
+
"sortOrder": listDelegationSubscriptionsRequest.sortOrder,
|
|
1359
|
+
"sortBy": listDelegationSubscriptionsRequest.sortBy
|
|
1360
|
+
};
|
|
1361
|
+
let headerParams = {
|
|
1362
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1363
|
+
"opc-request-id": listDelegationSubscriptionsRequest.opcRequestId
|
|
1364
|
+
};
|
|
1365
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1366
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDelegationSubscriptionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1367
|
+
if (this.logger)
|
|
1368
|
+
retrier.logger = this.logger;
|
|
1369
|
+
const request = yield oci_common_1.composeRequest({
|
|
1370
|
+
baseEndpoint: this._endpoint,
|
|
1371
|
+
defaultHeaders: this._defaultHeaders,
|
|
1372
|
+
path: "/delegationSubscriptions",
|
|
1373
|
+
method: "GET",
|
|
1374
|
+
pathParams: pathParams,
|
|
1375
|
+
headerParams: headerParams,
|
|
1376
|
+
queryParams: queryParams
|
|
1377
|
+
});
|
|
1378
|
+
try {
|
|
1379
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1380
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1381
|
+
responseObject: {},
|
|
1382
|
+
body: yield response.json(),
|
|
1383
|
+
bodyKey: "delegationSubscriptionSummaryCollection",
|
|
1384
|
+
bodyModel: model.DelegationSubscriptionSummaryCollection,
|
|
1385
|
+
type: "model.DelegationSubscriptionSummaryCollection",
|
|
1386
|
+
responseHeaders: [
|
|
1387
|
+
{
|
|
1388
|
+
value: response.headers.get("opc-request-id"),
|
|
1389
|
+
key: "opcRequestId",
|
|
1390
|
+
dataType: "string"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
value: response.headers.get("opc-next-page"),
|
|
1394
|
+
key: "opcNextPage",
|
|
1395
|
+
dataType: "string"
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
});
|
|
1399
|
+
return sdkResponse;
|
|
1400
|
+
}
|
|
1401
|
+
catch (err) {
|
|
1402
|
+
throw err;
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Lists all the ServiceProviderActions available in the system.
|
|
1408
|
+
*
|
|
1409
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1410
|
+
* @param ListServiceProviderActionsRequest
|
|
1411
|
+
* @return ListServiceProviderActionsResponse
|
|
1412
|
+
* @throws OciError when an error occurs
|
|
1413
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListServiceProviderActions.ts.html |here} to see how to use ListServiceProviderActions API.
|
|
1414
|
+
*/
|
|
1415
|
+
listServiceProviderActions(listServiceProviderActionsRequest) {
|
|
1416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1417
|
+
if (this.logger)
|
|
1418
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listServiceProviderActions.");
|
|
1419
|
+
const operationName = "listServiceProviderActions";
|
|
1420
|
+
const apiReferenceLink = "";
|
|
1421
|
+
const pathParams = {};
|
|
1422
|
+
const queryParams = {
|
|
1423
|
+
"name": listServiceProviderActionsRequest.name,
|
|
1424
|
+
"resourceType": listServiceProviderActionsRequest.resourceType,
|
|
1425
|
+
"serviceProviderServiceType": listServiceProviderActionsRequest.serviceProviderServiceType,
|
|
1426
|
+
"compartmentId": listServiceProviderActionsRequest.compartmentId,
|
|
1427
|
+
"lifecycleState": listServiceProviderActionsRequest.lifecycleState,
|
|
1428
|
+
"limit": listServiceProviderActionsRequest.limit,
|
|
1429
|
+
"page": listServiceProviderActionsRequest.page,
|
|
1430
|
+
"sortOrder": listServiceProviderActionsRequest.sortOrder,
|
|
1431
|
+
"sortBy": listServiceProviderActionsRequest.sortBy
|
|
1432
|
+
};
|
|
1433
|
+
let headerParams = {
|
|
1434
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1435
|
+
"opc-request-id": listServiceProviderActionsRequest.opcRequestId
|
|
1436
|
+
};
|
|
1437
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1438
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listServiceProviderActionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1439
|
+
if (this.logger)
|
|
1440
|
+
retrier.logger = this.logger;
|
|
1441
|
+
const request = yield oci_common_1.composeRequest({
|
|
1442
|
+
baseEndpoint: this._endpoint,
|
|
1443
|
+
defaultHeaders: this._defaultHeaders,
|
|
1444
|
+
path: "/serviceProviderActions",
|
|
1445
|
+
method: "GET",
|
|
1446
|
+
pathParams: pathParams,
|
|
1447
|
+
headerParams: headerParams,
|
|
1448
|
+
queryParams: queryParams
|
|
1449
|
+
});
|
|
1450
|
+
try {
|
|
1451
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1452
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1453
|
+
responseObject: {},
|
|
1454
|
+
body: yield response.json(),
|
|
1455
|
+
bodyKey: "serviceProviderActionSummaryCollection",
|
|
1456
|
+
bodyModel: model.ServiceProviderActionSummaryCollection,
|
|
1457
|
+
type: "model.ServiceProviderActionSummaryCollection",
|
|
1458
|
+
responseHeaders: [
|
|
1459
|
+
{
|
|
1460
|
+
value: response.headers.get("opc-request-id"),
|
|
1461
|
+
key: "opcRequestId",
|
|
1462
|
+
dataType: "string"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
value: response.headers.get("opc-next-page"),
|
|
1466
|
+
key: "opcNextPage",
|
|
1467
|
+
dataType: "string"
|
|
1468
|
+
}
|
|
1469
|
+
]
|
|
1470
|
+
});
|
|
1471
|
+
return sdkResponse;
|
|
1472
|
+
}
|
|
1473
|
+
catch (err) {
|
|
1474
|
+
throw err;
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Lists the MoreInformation interaction between customer and support operators.
|
|
1480
|
+
*
|
|
1481
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1482
|
+
* @param ListServiceProviderInteractionsRequest
|
|
1483
|
+
* @return ListServiceProviderInteractionsResponse
|
|
1484
|
+
* @throws OciError when an error occurs
|
|
1485
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListServiceProviderInteractions.ts.html |here} to see how to use ListServiceProviderInteractions API.
|
|
1486
|
+
*/
|
|
1487
|
+
listServiceProviderInteractions(listServiceProviderInteractionsRequest) {
|
|
1488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1489
|
+
if (this.logger)
|
|
1490
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listServiceProviderInteractions.");
|
|
1491
|
+
const operationName = "listServiceProviderInteractions";
|
|
1492
|
+
const apiReferenceLink = "";
|
|
1493
|
+
const pathParams = {
|
|
1494
|
+
"{delegatedResourceAccessRequestId}": listServiceProviderInteractionsRequest.delegatedResourceAccessRequestId
|
|
1495
|
+
};
|
|
1496
|
+
const queryParams = {
|
|
1497
|
+
"limit": listServiceProviderInteractionsRequest.limit,
|
|
1498
|
+
"page": listServiceProviderInteractionsRequest.page
|
|
1499
|
+
};
|
|
1500
|
+
let headerParams = {
|
|
1501
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1502
|
+
"opc-request-id": listServiceProviderInteractionsRequest.opcRequestId
|
|
1503
|
+
};
|
|
1504
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1505
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listServiceProviderInteractionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1506
|
+
if (this.logger)
|
|
1507
|
+
retrier.logger = this.logger;
|
|
1508
|
+
const request = yield oci_common_1.composeRequest({
|
|
1509
|
+
baseEndpoint: this._endpoint,
|
|
1510
|
+
defaultHeaders: this._defaultHeaders,
|
|
1511
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/serviceProviderInteractions",
|
|
1512
|
+
method: "GET",
|
|
1513
|
+
pathParams: pathParams,
|
|
1514
|
+
headerParams: headerParams,
|
|
1515
|
+
queryParams: queryParams
|
|
1516
|
+
});
|
|
1517
|
+
try {
|
|
1518
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1519
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1520
|
+
responseObject: {},
|
|
1521
|
+
body: yield response.json(),
|
|
1522
|
+
bodyKey: "serviceProviderInteractionCollection",
|
|
1523
|
+
bodyModel: model.ServiceProviderInteractionCollection,
|
|
1524
|
+
type: "model.ServiceProviderInteractionCollection",
|
|
1525
|
+
responseHeaders: [
|
|
1526
|
+
{
|
|
1527
|
+
value: response.headers.get("opc-request-id"),
|
|
1528
|
+
key: "opcRequestId",
|
|
1529
|
+
dataType: "string"
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
value: response.headers.get("opc-next-page"),
|
|
1533
|
+
key: "opcNextPage",
|
|
1534
|
+
dataType: "string"
|
|
1535
|
+
}
|
|
1536
|
+
]
|
|
1537
|
+
});
|
|
1538
|
+
return sdkResponse;
|
|
1539
|
+
}
|
|
1540
|
+
catch (err) {
|
|
1541
|
+
throw err;
|
|
1542
|
+
}
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Lists the Service Providers.
|
|
1547
|
+
*
|
|
1548
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1549
|
+
* @param ListServiceProvidersRequest
|
|
1550
|
+
* @return ListServiceProvidersResponse
|
|
1551
|
+
* @throws OciError when an error occurs
|
|
1552
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListServiceProviders.ts.html |here} to see how to use ListServiceProviders API.
|
|
1553
|
+
*/
|
|
1554
|
+
listServiceProviders(listServiceProvidersRequest) {
|
|
1555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1556
|
+
if (this.logger)
|
|
1557
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#listServiceProviders.");
|
|
1558
|
+
const operationName = "listServiceProviders";
|
|
1559
|
+
const apiReferenceLink = "";
|
|
1560
|
+
const pathParams = {};
|
|
1561
|
+
const queryParams = {
|
|
1562
|
+
"compartmentId": listServiceProvidersRequest.compartmentId,
|
|
1563
|
+
"lifecycleState": listServiceProvidersRequest.lifecycleState,
|
|
1564
|
+
"name": listServiceProvidersRequest.name,
|
|
1565
|
+
"supportedResourceType": listServiceProvidersRequest.supportedResourceType,
|
|
1566
|
+
"serviceProviderType": listServiceProvidersRequest.serviceProviderType,
|
|
1567
|
+
"limit": listServiceProvidersRequest.limit,
|
|
1568
|
+
"page": listServiceProvidersRequest.page,
|
|
1569
|
+
"sortOrder": listServiceProvidersRequest.sortOrder,
|
|
1570
|
+
"sortBy": listServiceProvidersRequest.sortBy
|
|
1571
|
+
};
|
|
1572
|
+
let headerParams = {
|
|
1573
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1574
|
+
"opc-request-id": listServiceProvidersRequest.opcRequestId
|
|
1575
|
+
};
|
|
1576
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1577
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listServiceProvidersRequest.retryConfiguration, specRetryConfiguration);
|
|
1578
|
+
if (this.logger)
|
|
1579
|
+
retrier.logger = this.logger;
|
|
1580
|
+
const request = yield oci_common_1.composeRequest({
|
|
1581
|
+
baseEndpoint: this._endpoint,
|
|
1582
|
+
defaultHeaders: this._defaultHeaders,
|
|
1583
|
+
path: "/serviceProviders",
|
|
1584
|
+
method: "GET",
|
|
1585
|
+
pathParams: pathParams,
|
|
1586
|
+
headerParams: headerParams,
|
|
1587
|
+
queryParams: queryParams
|
|
1588
|
+
});
|
|
1589
|
+
try {
|
|
1590
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1591
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1592
|
+
responseObject: {},
|
|
1593
|
+
body: yield response.json(),
|
|
1594
|
+
bodyKey: "serviceProviderSummaryCollection",
|
|
1595
|
+
bodyModel: model.ServiceProviderSummaryCollection,
|
|
1596
|
+
type: "model.ServiceProviderSummaryCollection",
|
|
1597
|
+
responseHeaders: [
|
|
1598
|
+
{
|
|
1599
|
+
value: response.headers.get("opc-request-id"),
|
|
1600
|
+
key: "opcRequestId",
|
|
1601
|
+
dataType: "string"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
value: response.headers.get("opc-next-page"),
|
|
1605
|
+
key: "opcNextPage",
|
|
1606
|
+
dataType: "string"
|
|
1607
|
+
}
|
|
1608
|
+
]
|
|
1609
|
+
});
|
|
1610
|
+
return sdkResponse;
|
|
1611
|
+
}
|
|
1612
|
+
catch (err) {
|
|
1613
|
+
throw err;
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Rejects a Delegated Resource Access Request.
|
|
1619
|
+
*
|
|
1620
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1621
|
+
* @param RejectDelegatedResourceAccessRequestRequest
|
|
1622
|
+
* @return RejectDelegatedResourceAccessRequestResponse
|
|
1623
|
+
* @throws OciError when an error occurs
|
|
1624
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/RejectDelegatedResourceAccessRequest.ts.html |here} to see how to use RejectDelegatedResourceAccessRequest API.
|
|
1625
|
+
*/
|
|
1626
|
+
rejectDelegatedResourceAccessRequest(rejectDelegatedResourceAccessRequestRequest) {
|
|
1627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1628
|
+
if (this.logger)
|
|
1629
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#rejectDelegatedResourceAccessRequest.");
|
|
1630
|
+
const operationName = "rejectDelegatedResourceAccessRequest";
|
|
1631
|
+
const apiReferenceLink = "";
|
|
1632
|
+
const pathParams = {
|
|
1633
|
+
"{delegatedResourceAccessRequestId}": rejectDelegatedResourceAccessRequestRequest.delegatedResourceAccessRequestId
|
|
1634
|
+
};
|
|
1635
|
+
const queryParams = {};
|
|
1636
|
+
let headerParams = {
|
|
1637
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1638
|
+
"opc-retry-token": rejectDelegatedResourceAccessRequestRequest.opcRetryToken,
|
|
1639
|
+
"if-match": rejectDelegatedResourceAccessRequestRequest.ifMatch,
|
|
1640
|
+
"opc-request-id": rejectDelegatedResourceAccessRequestRequest.opcRequestId
|
|
1641
|
+
};
|
|
1642
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1643
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, rejectDelegatedResourceAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1644
|
+
if (this.logger)
|
|
1645
|
+
retrier.logger = this.logger;
|
|
1646
|
+
const request = yield oci_common_1.composeRequest({
|
|
1647
|
+
baseEndpoint: this._endpoint,
|
|
1648
|
+
defaultHeaders: this._defaultHeaders,
|
|
1649
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/actions/reject",
|
|
1650
|
+
method: "POST",
|
|
1651
|
+
bodyContent: common.ObjectSerializer.serialize(rejectDelegatedResourceAccessRequestRequest.rejectDelegatedResourceAccessRequestDetails, "RejectDelegatedResourceAccessRequestDetails", model.RejectDelegatedResourceAccessRequestDetails.getJsonObj),
|
|
1652
|
+
pathParams: pathParams,
|
|
1653
|
+
headerParams: headerParams,
|
|
1654
|
+
queryParams: queryParams
|
|
1655
|
+
});
|
|
1656
|
+
try {
|
|
1657
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1658
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1659
|
+
responseObject: {},
|
|
1660
|
+
responseHeaders: [
|
|
1661
|
+
{
|
|
1662
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1663
|
+
key: "opcWorkRequestId",
|
|
1664
|
+
dataType: "string"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
value: response.headers.get("opc-request-id"),
|
|
1668
|
+
key: "opcRequestId",
|
|
1669
|
+
dataType: "string"
|
|
1670
|
+
}
|
|
1671
|
+
]
|
|
1672
|
+
});
|
|
1673
|
+
return sdkResponse;
|
|
1674
|
+
}
|
|
1675
|
+
catch (err) {
|
|
1676
|
+
throw err;
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Revokes an already approved Delegated Resource Access Request.
|
|
1682
|
+
*
|
|
1683
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1684
|
+
* @param RevokeDelegatedResourceAccessRequestRequest
|
|
1685
|
+
* @return RevokeDelegatedResourceAccessRequestResponse
|
|
1686
|
+
* @throws OciError when an error occurs
|
|
1687
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/RevokeDelegatedResourceAccessRequest.ts.html |here} to see how to use RevokeDelegatedResourceAccessRequest API.
|
|
1688
|
+
*/
|
|
1689
|
+
revokeDelegatedResourceAccessRequest(revokeDelegatedResourceAccessRequestRequest) {
|
|
1690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1691
|
+
if (this.logger)
|
|
1692
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#revokeDelegatedResourceAccessRequest.");
|
|
1693
|
+
const operationName = "revokeDelegatedResourceAccessRequest";
|
|
1694
|
+
const apiReferenceLink = "";
|
|
1695
|
+
const pathParams = {
|
|
1696
|
+
"{delegatedResourceAccessRequestId}": revokeDelegatedResourceAccessRequestRequest.delegatedResourceAccessRequestId
|
|
1697
|
+
};
|
|
1698
|
+
const queryParams = {};
|
|
1699
|
+
let headerParams = {
|
|
1700
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1701
|
+
"opc-retry-token": revokeDelegatedResourceAccessRequestRequest.opcRetryToken,
|
|
1702
|
+
"if-match": revokeDelegatedResourceAccessRequestRequest.ifMatch,
|
|
1703
|
+
"opc-request-id": revokeDelegatedResourceAccessRequestRequest.opcRequestId
|
|
1704
|
+
};
|
|
1705
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1706
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, revokeDelegatedResourceAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1707
|
+
if (this.logger)
|
|
1708
|
+
retrier.logger = this.logger;
|
|
1709
|
+
const request = yield oci_common_1.composeRequest({
|
|
1710
|
+
baseEndpoint: this._endpoint,
|
|
1711
|
+
defaultHeaders: this._defaultHeaders,
|
|
1712
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/actions/revoke",
|
|
1713
|
+
method: "POST",
|
|
1714
|
+
bodyContent: common.ObjectSerializer.serialize(revokeDelegatedResourceAccessRequestRequest.revokeDelegatedResourceAccessRequestDetails, "RevokeDelegatedResourceAccessRequestDetails", model.RevokeDelegatedResourceAccessRequestDetails.getJsonObj),
|
|
1715
|
+
pathParams: pathParams,
|
|
1716
|
+
headerParams: headerParams,
|
|
1717
|
+
queryParams: queryParams
|
|
1718
|
+
});
|
|
1719
|
+
try {
|
|
1720
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1721
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1722
|
+
responseObject: {},
|
|
1723
|
+
responseHeaders: [
|
|
1724
|
+
{
|
|
1725
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1726
|
+
key: "opcWorkRequestId",
|
|
1727
|
+
dataType: "string"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
value: response.headers.get("opc-request-id"),
|
|
1731
|
+
key: "opcRequestId",
|
|
1732
|
+
dataType: "string"
|
|
1733
|
+
}
|
|
1734
|
+
]
|
|
1735
|
+
});
|
|
1736
|
+
return sdkResponse;
|
|
1737
|
+
}
|
|
1738
|
+
catch (err) {
|
|
1739
|
+
throw err;
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* Posts query for additional information for the given Delegated Resource Access Request.
|
|
1745
|
+
*
|
|
1746
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1747
|
+
* @param ServiceProviderInteractionRequestRequest
|
|
1748
|
+
* @return ServiceProviderInteractionRequestResponse
|
|
1749
|
+
* @throws OciError when an error occurs
|
|
1750
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ServiceProviderInteractionRequest.ts.html |here} to see how to use ServiceProviderInteractionRequest API.
|
|
1751
|
+
*/
|
|
1752
|
+
serviceProviderInteractionRequest(serviceProviderInteractionRequestRequest) {
|
|
1753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1754
|
+
if (this.logger)
|
|
1755
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#serviceProviderInteractionRequest.");
|
|
1756
|
+
const operationName = "serviceProviderInteractionRequest";
|
|
1757
|
+
const apiReferenceLink = "";
|
|
1758
|
+
const pathParams = {
|
|
1759
|
+
"{delegatedResourceAccessRequestId}": serviceProviderInteractionRequestRequest.delegatedResourceAccessRequestId
|
|
1760
|
+
};
|
|
1761
|
+
const queryParams = {};
|
|
1762
|
+
let headerParams = {
|
|
1763
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1764
|
+
"opc-retry-token": serviceProviderInteractionRequestRequest.opcRetryToken,
|
|
1765
|
+
"if-match": serviceProviderInteractionRequestRequest.ifMatch,
|
|
1766
|
+
"opc-request-id": serviceProviderInteractionRequestRequest.opcRequestId
|
|
1767
|
+
};
|
|
1768
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1769
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, serviceProviderInteractionRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1770
|
+
if (this.logger)
|
|
1771
|
+
retrier.logger = this.logger;
|
|
1772
|
+
const request = yield oci_common_1.composeRequest({
|
|
1773
|
+
baseEndpoint: this._endpoint,
|
|
1774
|
+
defaultHeaders: this._defaultHeaders,
|
|
1775
|
+
path: "/delegatedResourceAccessRequests/{delegatedResourceAccessRequestId}/actions/serviceProviderInteractionRequest",
|
|
1776
|
+
method: "POST",
|
|
1777
|
+
bodyContent: common.ObjectSerializer.serialize(serviceProviderInteractionRequestRequest.serviceProviderInteractionRequestDetails, "ServiceProviderInteractionRequestDetails", model.ServiceProviderInteractionRequestDetails.getJsonObj),
|
|
1778
|
+
pathParams: pathParams,
|
|
1779
|
+
headerParams: headerParams,
|
|
1780
|
+
queryParams: queryParams
|
|
1781
|
+
});
|
|
1782
|
+
try {
|
|
1783
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1784
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1785
|
+
responseObject: {},
|
|
1786
|
+
responseHeaders: [
|
|
1787
|
+
{
|
|
1788
|
+
value: response.headers.get("opc-request-id"),
|
|
1789
|
+
key: "opcRequestId",
|
|
1790
|
+
dataType: "string"
|
|
1791
|
+
}
|
|
1792
|
+
]
|
|
1793
|
+
});
|
|
1794
|
+
return sdkResponse;
|
|
1795
|
+
}
|
|
1796
|
+
catch (err) {
|
|
1797
|
+
throw err;
|
|
1798
|
+
}
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Updates the existing DelegationControl for a given Delegation Control ID.
|
|
1803
|
+
*
|
|
1804
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1805
|
+
* @param UpdateDelegationControlRequest
|
|
1806
|
+
* @return UpdateDelegationControlResponse
|
|
1807
|
+
* @throws OciError when an error occurs
|
|
1808
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/UpdateDelegationControl.ts.html |here} to see how to use UpdateDelegationControl API.
|
|
1809
|
+
*/
|
|
1810
|
+
updateDelegationControl(updateDelegationControlRequest) {
|
|
1811
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1812
|
+
if (this.logger)
|
|
1813
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#updateDelegationControl.");
|
|
1814
|
+
const operationName = "updateDelegationControl";
|
|
1815
|
+
const apiReferenceLink = "";
|
|
1816
|
+
const pathParams = {
|
|
1817
|
+
"{delegationControlId}": updateDelegationControlRequest.delegationControlId
|
|
1818
|
+
};
|
|
1819
|
+
const queryParams = {};
|
|
1820
|
+
let headerParams = {
|
|
1821
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1822
|
+
"if-match": updateDelegationControlRequest.ifMatch,
|
|
1823
|
+
"opc-request-id": updateDelegationControlRequest.opcRequestId
|
|
1824
|
+
};
|
|
1825
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1826
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDelegationControlRequest.retryConfiguration, specRetryConfiguration);
|
|
1827
|
+
if (this.logger)
|
|
1828
|
+
retrier.logger = this.logger;
|
|
1829
|
+
const request = yield oci_common_1.composeRequest({
|
|
1830
|
+
baseEndpoint: this._endpoint,
|
|
1831
|
+
defaultHeaders: this._defaultHeaders,
|
|
1832
|
+
path: "/delegationControls/{delegationControlId}",
|
|
1833
|
+
method: "PUT",
|
|
1834
|
+
bodyContent: common.ObjectSerializer.serialize(updateDelegationControlRequest.updateDelegationControlDetails, "UpdateDelegationControlDetails", model.UpdateDelegationControlDetails.getJsonObj),
|
|
1835
|
+
pathParams: pathParams,
|
|
1836
|
+
headerParams: headerParams,
|
|
1837
|
+
queryParams: queryParams
|
|
1838
|
+
});
|
|
1839
|
+
try {
|
|
1840
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1841
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1842
|
+
responseObject: {},
|
|
1843
|
+
body: yield response.json(),
|
|
1844
|
+
bodyKey: "delegationControl",
|
|
1845
|
+
bodyModel: model.DelegationControl,
|
|
1846
|
+
type: "model.DelegationControl",
|
|
1847
|
+
responseHeaders: [
|
|
1848
|
+
{
|
|
1849
|
+
value: response.headers.get("opc-request-id"),
|
|
1850
|
+
key: "opcRequestId",
|
|
1851
|
+
dataType: "string"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1855
|
+
key: "opcWorkRequestId",
|
|
1856
|
+
dataType: "string"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
value: response.headers.get("content-location"),
|
|
1860
|
+
key: "contentLocation",
|
|
1861
|
+
dataType: "string"
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
value: response.headers.get("etag"),
|
|
1865
|
+
key: "etag",
|
|
1866
|
+
dataType: "string"
|
|
1867
|
+
}
|
|
1868
|
+
]
|
|
1869
|
+
});
|
|
1870
|
+
return sdkResponse;
|
|
1871
|
+
}
|
|
1872
|
+
catch (err) {
|
|
1873
|
+
throw err;
|
|
1874
|
+
}
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Updates the existing DelegationSubscription for a given Delegation Subscription ID.
|
|
1879
|
+
*
|
|
1880
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1881
|
+
* @param UpdateDelegationSubscriptionRequest
|
|
1882
|
+
* @return UpdateDelegationSubscriptionResponse
|
|
1883
|
+
* @throws OciError when an error occurs
|
|
1884
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/UpdateDelegationSubscription.ts.html |here} to see how to use UpdateDelegationSubscription API.
|
|
1885
|
+
*/
|
|
1886
|
+
updateDelegationSubscription(updateDelegationSubscriptionRequest) {
|
|
1887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1888
|
+
if (this.logger)
|
|
1889
|
+
this.logger.debug("Calling operation DelegateAccessControlClient#updateDelegationSubscription.");
|
|
1890
|
+
const operationName = "updateDelegationSubscription";
|
|
1891
|
+
const apiReferenceLink = "";
|
|
1892
|
+
const pathParams = {
|
|
1893
|
+
"{delegationSubscriptionId}": updateDelegationSubscriptionRequest.delegationSubscriptionId
|
|
1894
|
+
};
|
|
1895
|
+
const queryParams = {};
|
|
1896
|
+
let headerParams = {
|
|
1897
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1898
|
+
"if-match": updateDelegationSubscriptionRequest.ifMatch,
|
|
1899
|
+
"opc-request-id": updateDelegationSubscriptionRequest.opcRequestId
|
|
1900
|
+
};
|
|
1901
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1902
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDelegationSubscriptionRequest.retryConfiguration, specRetryConfiguration);
|
|
1903
|
+
if (this.logger)
|
|
1904
|
+
retrier.logger = this.logger;
|
|
1905
|
+
const request = yield oci_common_1.composeRequest({
|
|
1906
|
+
baseEndpoint: this._endpoint,
|
|
1907
|
+
defaultHeaders: this._defaultHeaders,
|
|
1908
|
+
path: "/delegationSubscriptions/{delegationSubscriptionId}",
|
|
1909
|
+
method: "PUT",
|
|
1910
|
+
bodyContent: common.ObjectSerializer.serialize(updateDelegationSubscriptionRequest.updateDelegationSubscriptionDetails, "UpdateDelegationSubscriptionDetails", model.UpdateDelegationSubscriptionDetails.getJsonObj),
|
|
1911
|
+
pathParams: pathParams,
|
|
1912
|
+
headerParams: headerParams,
|
|
1913
|
+
queryParams: queryParams
|
|
1914
|
+
});
|
|
1915
|
+
try {
|
|
1916
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1917
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1918
|
+
responseObject: {},
|
|
1919
|
+
body: yield response.json(),
|
|
1920
|
+
bodyKey: "delegationSubscription",
|
|
1921
|
+
bodyModel: model.DelegationSubscription,
|
|
1922
|
+
type: "model.DelegationSubscription",
|
|
1923
|
+
responseHeaders: [
|
|
1924
|
+
{
|
|
1925
|
+
value: response.headers.get("opc-request-id"),
|
|
1926
|
+
key: "opcRequestId",
|
|
1927
|
+
dataType: "string"
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1931
|
+
key: "opcWorkRequestId",
|
|
1932
|
+
dataType: "string"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
value: response.headers.get("content-location"),
|
|
1936
|
+
key: "contentLocation",
|
|
1937
|
+
dataType: "string"
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
value: response.headers.get("etag"),
|
|
1941
|
+
key: "etag",
|
|
1942
|
+
dataType: "string"
|
|
1943
|
+
}
|
|
1944
|
+
]
|
|
1945
|
+
});
|
|
1946
|
+
return sdkResponse;
|
|
1947
|
+
}
|
|
1948
|
+
catch (err) {
|
|
1949
|
+
throw err;
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
exports.DelegateAccessControlClient = DelegateAccessControlClient;
|
|
1955
|
+
DelegateAccessControlClient.serviceEndpointTemplate = "https://delegate-access-control.{region}.oci.{secondLevelDomain}";
|
|
1956
|
+
DelegateAccessControlClient.endpointServiceName = "";
|
|
1957
|
+
var WorkRequestApiKeys;
|
|
1958
|
+
(function (WorkRequestApiKeys) {
|
|
1959
|
+
})(WorkRequestApiKeys = exports.WorkRequestApiKeys || (exports.WorkRequestApiKeys = {}));
|
|
1960
|
+
/**
|
|
1961
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1962
|
+
*/
|
|
1963
|
+
class WorkRequestClient {
|
|
1964
|
+
constructor(params, clientConfiguration) {
|
|
1965
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1966
|
+
this["_endpoint"] = "";
|
|
1967
|
+
this["_defaultHeaders"] = {};
|
|
1968
|
+
this._circuitBreaker = null;
|
|
1969
|
+
this._httpOptions = undefined;
|
|
1970
|
+
this._bodyDuplexMode = undefined;
|
|
1971
|
+
this.targetService = "WorkRequest";
|
|
1972
|
+
this._regionId = "";
|
|
1973
|
+
this._lastSetRegionOrRegionId = "";
|
|
1974
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1975
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1976
|
+
: null;
|
|
1977
|
+
if (clientConfiguration) {
|
|
1978
|
+
this._clientConfiguration = clientConfiguration;
|
|
1979
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1980
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1981
|
+
: null;
|
|
1982
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1983
|
+
? clientConfiguration.httpOptions
|
|
1984
|
+
: undefined;
|
|
1985
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1986
|
+
? clientConfiguration.bodyDuplexMode
|
|
1987
|
+
: undefined;
|
|
1988
|
+
}
|
|
1989
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("delegateaccesscontrol")) {
|
|
1990
|
+
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 : ";
|
|
1991
|
+
throw errmsg.concat("delegateaccesscontrol");
|
|
1992
|
+
}
|
|
1993
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1994
|
+
const specCircuitBreakerEnabled = true;
|
|
1995
|
+
if (!this._circuitBreaker &&
|
|
1996
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1997
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1998
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1999
|
+
}
|
|
2000
|
+
this._httpClient =
|
|
2001
|
+
params.httpClient ||
|
|
2002
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
2003
|
+
if (params.authenticationDetailsProvider &&
|
|
2004
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2005
|
+
const provider = params.authenticationDetailsProvider;
|
|
2006
|
+
if (provider.getRegion()) {
|
|
2007
|
+
this.region = provider.getRegion();
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2013
|
+
*/
|
|
2014
|
+
get endpoint() {
|
|
2015
|
+
return this._endpoint;
|
|
2016
|
+
}
|
|
2017
|
+
/**
|
|
2018
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2019
|
+
* @param endpoint The endpoint of the service.
|
|
2020
|
+
*/
|
|
2021
|
+
set endpoint(endpoint) {
|
|
2022
|
+
this._endpoint = endpoint;
|
|
2023
|
+
this._endpoint = this._endpoint + "/20230801";
|
|
2024
|
+
if (this.logger)
|
|
2025
|
+
this.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
|
|
2026
|
+
}
|
|
2027
|
+
get logger() {
|
|
2028
|
+
return common.LOG.logger;
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2032
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2033
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2034
|
+
*/
|
|
2035
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2036
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2037
|
+
if (this.logger)
|
|
2038
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2039
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2040
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, this._region, WorkRequestClient.endpointServiceName);
|
|
2041
|
+
}
|
|
2042
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2043
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, this._regionId, WorkRequestClient.endpointServiceName);
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2048
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2049
|
+
* @param region The region of the service.
|
|
2050
|
+
*/
|
|
2051
|
+
set region(region) {
|
|
2052
|
+
this._region = region;
|
|
2053
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, region, WorkRequestClient.endpointServiceName);
|
|
2054
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
2058
|
+
*
|
|
2059
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
2060
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
2061
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
2062
|
+
* @param regionId The public region ID.
|
|
2063
|
+
*/
|
|
2064
|
+
set regionId(regionId) {
|
|
2065
|
+
this._regionId = regionId;
|
|
2066
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, regionId, WorkRequestClient.endpointServiceName);
|
|
2067
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* Creates a new WorkRequestWaiter for resources for this service.
|
|
2071
|
+
*
|
|
2072
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
2073
|
+
* @return The service waiters.
|
|
2074
|
+
*/
|
|
2075
|
+
createWaiters(config) {
|
|
2076
|
+
this._waiters = new workrequest_waiter_1.WorkRequestWaiter(this, config);
|
|
2077
|
+
return this._waiters;
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* Gets the waiters available for resources for this service.
|
|
2081
|
+
*
|
|
2082
|
+
* @return The service waiters.
|
|
2083
|
+
*/
|
|
2084
|
+
getWaiters() {
|
|
2085
|
+
if (this._waiters) {
|
|
2086
|
+
return this._waiters;
|
|
2087
|
+
}
|
|
2088
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
2092
|
+
*/
|
|
2093
|
+
shutdownCircuitBreaker() {
|
|
2094
|
+
if (this._circuitBreaker) {
|
|
2095
|
+
this._circuitBreaker.shutdown();
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* Close the client once it is no longer needed
|
|
2100
|
+
*/
|
|
2101
|
+
close() {
|
|
2102
|
+
this.shutdownCircuitBreaker();
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Gets details of the work request with the given ID.
|
|
2106
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2107
|
+
* @param GetWorkRequestRequest
|
|
2108
|
+
* @return GetWorkRequestResponse
|
|
2109
|
+
* @throws OciError when an error occurs
|
|
2110
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2111
|
+
*/
|
|
2112
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
2113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2114
|
+
if (this.logger)
|
|
2115
|
+
this.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
|
|
2116
|
+
const operationName = "getWorkRequest";
|
|
2117
|
+
const apiReferenceLink = "";
|
|
2118
|
+
const pathParams = {
|
|
2119
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
2120
|
+
};
|
|
2121
|
+
const queryParams = {};
|
|
2122
|
+
let headerParams = {
|
|
2123
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2124
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
2125
|
+
};
|
|
2126
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2127
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2128
|
+
if (this.logger)
|
|
2129
|
+
retrier.logger = this.logger;
|
|
2130
|
+
const request = yield oci_common_1.composeRequest({
|
|
2131
|
+
baseEndpoint: this._endpoint,
|
|
2132
|
+
defaultHeaders: this._defaultHeaders,
|
|
2133
|
+
path: "/workRequests/{workRequestId}",
|
|
2134
|
+
method: "GET",
|
|
2135
|
+
pathParams: pathParams,
|
|
2136
|
+
headerParams: headerParams,
|
|
2137
|
+
queryParams: queryParams
|
|
2138
|
+
});
|
|
2139
|
+
try {
|
|
2140
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2141
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2142
|
+
responseObject: {},
|
|
2143
|
+
body: yield response.json(),
|
|
2144
|
+
bodyKey: "workRequest",
|
|
2145
|
+
bodyModel: model.WorkRequest,
|
|
2146
|
+
type: "model.WorkRequest",
|
|
2147
|
+
responseHeaders: [
|
|
2148
|
+
{
|
|
2149
|
+
value: response.headers.get("etag"),
|
|
2150
|
+
key: "etag",
|
|
2151
|
+
dataType: "string"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
value: response.headers.get("opc-request-id"),
|
|
2155
|
+
key: "opcRequestId",
|
|
2156
|
+
dataType: "string"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
value: response.headers.get("retry-after"),
|
|
2160
|
+
key: "retryAfter",
|
|
2161
|
+
dataType: "number"
|
|
2162
|
+
}
|
|
2163
|
+
]
|
|
2164
|
+
});
|
|
2165
|
+
return sdkResponse;
|
|
2166
|
+
}
|
|
2167
|
+
catch (err) {
|
|
2168
|
+
throw err;
|
|
2169
|
+
}
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
2174
|
+
*
|
|
2175
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2176
|
+
* @param ListWorkRequestErrorsRequest
|
|
2177
|
+
* @return ListWorkRequestErrorsResponse
|
|
2178
|
+
* @throws OciError when an error occurs
|
|
2179
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2180
|
+
*/
|
|
2181
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2183
|
+
if (this.logger)
|
|
2184
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
|
|
2185
|
+
const operationName = "listWorkRequestErrors";
|
|
2186
|
+
const apiReferenceLink = "";
|
|
2187
|
+
const pathParams = {
|
|
2188
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
2189
|
+
};
|
|
2190
|
+
const queryParams = {
|
|
2191
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
2192
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
2193
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
2194
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
2195
|
+
};
|
|
2196
|
+
let headerParams = {
|
|
2197
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2198
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
2199
|
+
};
|
|
2200
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2201
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2202
|
+
if (this.logger)
|
|
2203
|
+
retrier.logger = this.logger;
|
|
2204
|
+
const request = yield oci_common_1.composeRequest({
|
|
2205
|
+
baseEndpoint: this._endpoint,
|
|
2206
|
+
defaultHeaders: this._defaultHeaders,
|
|
2207
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
2208
|
+
method: "GET",
|
|
2209
|
+
pathParams: pathParams,
|
|
2210
|
+
headerParams: headerParams,
|
|
2211
|
+
queryParams: queryParams
|
|
2212
|
+
});
|
|
2213
|
+
try {
|
|
2214
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2215
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2216
|
+
responseObject: {},
|
|
2217
|
+
body: yield response.json(),
|
|
2218
|
+
bodyKey: "workRequestErrorCollection",
|
|
2219
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
2220
|
+
type: "model.WorkRequestErrorCollection",
|
|
2221
|
+
responseHeaders: [
|
|
2222
|
+
{
|
|
2223
|
+
value: response.headers.get("opc-next-page"),
|
|
2224
|
+
key: "opcNextPage",
|
|
2225
|
+
dataType: "string"
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
value: response.headers.get("opc-request-id"),
|
|
2229
|
+
key: "opcRequestId",
|
|
2230
|
+
dataType: "string"
|
|
2231
|
+
}
|
|
2232
|
+
]
|
|
2233
|
+
});
|
|
2234
|
+
return sdkResponse;
|
|
2235
|
+
}
|
|
2236
|
+
catch (err) {
|
|
2237
|
+
throw err;
|
|
2238
|
+
}
|
|
2239
|
+
});
|
|
2240
|
+
}
|
|
2241
|
+
/**
|
|
2242
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
2243
|
+
*
|
|
2244
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2245
|
+
* @param ListWorkRequestLogsRequest
|
|
2246
|
+
* @return ListWorkRequestLogsResponse
|
|
2247
|
+
* @throws OciError when an error occurs
|
|
2248
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2249
|
+
*/
|
|
2250
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2252
|
+
if (this.logger)
|
|
2253
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
|
|
2254
|
+
const operationName = "listWorkRequestLogs";
|
|
2255
|
+
const apiReferenceLink = "";
|
|
2256
|
+
const pathParams = {
|
|
2257
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
2258
|
+
};
|
|
2259
|
+
const queryParams = {
|
|
2260
|
+
"page": listWorkRequestLogsRequest.page,
|
|
2261
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
2262
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
2263
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
2264
|
+
};
|
|
2265
|
+
let headerParams = {
|
|
2266
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2267
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
2268
|
+
};
|
|
2269
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2270
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
2271
|
+
if (this.logger)
|
|
2272
|
+
retrier.logger = this.logger;
|
|
2273
|
+
const request = yield oci_common_1.composeRequest({
|
|
2274
|
+
baseEndpoint: this._endpoint,
|
|
2275
|
+
defaultHeaders: this._defaultHeaders,
|
|
2276
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
2277
|
+
method: "GET",
|
|
2278
|
+
pathParams: pathParams,
|
|
2279
|
+
headerParams: headerParams,
|
|
2280
|
+
queryParams: queryParams
|
|
2281
|
+
});
|
|
2282
|
+
try {
|
|
2283
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2284
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2285
|
+
responseObject: {},
|
|
2286
|
+
body: yield response.json(),
|
|
2287
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
2288
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
2289
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
2290
|
+
responseHeaders: [
|
|
2291
|
+
{
|
|
2292
|
+
value: response.headers.get("opc-next-page"),
|
|
2293
|
+
key: "opcNextPage",
|
|
2294
|
+
dataType: "string"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
value: response.headers.get("opc-request-id"),
|
|
2298
|
+
key: "opcRequestId",
|
|
2299
|
+
dataType: "string"
|
|
2300
|
+
}
|
|
2301
|
+
]
|
|
2302
|
+
});
|
|
2303
|
+
return sdkResponse;
|
|
2304
|
+
}
|
|
2305
|
+
catch (err) {
|
|
2306
|
+
throw err;
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Lists the work requests in a compartment.
|
|
2312
|
+
*
|
|
2313
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2314
|
+
* @param ListWorkRequestsRequest
|
|
2315
|
+
* @return ListWorkRequestsResponse
|
|
2316
|
+
* @throws OciError when an error occurs
|
|
2317
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/delegateaccesscontrol/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2318
|
+
*/
|
|
2319
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
2320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2321
|
+
if (this.logger)
|
|
2322
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
|
|
2323
|
+
const operationName = "listWorkRequests";
|
|
2324
|
+
const apiReferenceLink = "";
|
|
2325
|
+
const pathParams = {};
|
|
2326
|
+
const queryParams = {
|
|
2327
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
2328
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
2329
|
+
"status": listWorkRequestsRequest.status,
|
|
2330
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
2331
|
+
"page": listWorkRequestsRequest.page,
|
|
2332
|
+
"limit": listWorkRequestsRequest.limit,
|
|
2333
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
2334
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
2335
|
+
};
|
|
2336
|
+
let headerParams = {
|
|
2337
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2338
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
2339
|
+
};
|
|
2340
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2341
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2342
|
+
if (this.logger)
|
|
2343
|
+
retrier.logger = this.logger;
|
|
2344
|
+
const request = yield oci_common_1.composeRequest({
|
|
2345
|
+
baseEndpoint: this._endpoint,
|
|
2346
|
+
defaultHeaders: this._defaultHeaders,
|
|
2347
|
+
path: "/workRequests",
|
|
2348
|
+
method: "GET",
|
|
2349
|
+
pathParams: pathParams,
|
|
2350
|
+
headerParams: headerParams,
|
|
2351
|
+
queryParams: queryParams
|
|
2352
|
+
});
|
|
2353
|
+
try {
|
|
2354
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2355
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2356
|
+
responseObject: {},
|
|
2357
|
+
body: yield response.json(),
|
|
2358
|
+
bodyKey: "workRequestSummaryCollection",
|
|
2359
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
2360
|
+
type: "model.WorkRequestSummaryCollection",
|
|
2361
|
+
responseHeaders: [
|
|
2362
|
+
{
|
|
2363
|
+
value: response.headers.get("opc-request-id"),
|
|
2364
|
+
key: "opcRequestId",
|
|
2365
|
+
dataType: "string"
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
value: response.headers.get("opc-next-page"),
|
|
2369
|
+
key: "opcNextPage",
|
|
2370
|
+
dataType: "string"
|
|
2371
|
+
}
|
|
2372
|
+
]
|
|
2373
|
+
});
|
|
2374
|
+
return sdkResponse;
|
|
2375
|
+
}
|
|
2376
|
+
catch (err) {
|
|
2377
|
+
throw err;
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
exports.WorkRequestClient = WorkRequestClient;
|
|
2383
|
+
WorkRequestClient.serviceEndpointTemplate = "https://delegate-access-control.{region}.oci.{secondLevelDomain}";
|
|
2384
|
+
WorkRequestClient.endpointServiceName = "";
|
|
2385
|
+
//# sourceMappingURL=client.js.map
|