oci-functions 2.140.2 → 2.142.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/index.d.ts +4 -1
- package/index.js +5 -2
- package/index.js.map +1 -1
- package/lib/client.d.ts +182 -40
- package/lib/client.js +838 -76
- package/lib/client.js.map +1 -1
- package/lib/functionsmanagement-waiter.d.ts +17 -1
- package/lib/functionsmanagement-waiter.js +25 -1
- package/lib/functionsmanagement-waiter.js.map +1 -1
- package/lib/model/action-type.d.ts +33 -0
- package/lib/model/action-type.js +44 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/application-logging-config.d.ts +1 -2
- package/lib/model/application-logging-config.js +1 -1
- package/lib/model/application-logging-config.js.map +1 -1
- package/lib/model/application-summary.d.ts +1 -2
- package/lib/model/application-summary.js +1 -1
- package/lib/model/application-summary.js.map +1 -1
- package/lib/model/application-trace-config.d.ts +1 -2
- package/lib/model/application-trace-config.js +1 -1
- package/lib/model/application-trace-config.js.map +1 -1
- package/lib/model/application.d.ts +1 -2
- package/lib/model/application.js +1 -1
- package/lib/model/application.js.map +1 -1
- package/lib/model/archive-function-source-details.d.ts +38 -0
- package/lib/model/archive-function-source-details.js +69 -0
- package/lib/model/archive-function-source-details.js.map +1 -0
- package/lib/model/archive-source-details.d.ts +26 -0
- package/lib/model/archive-source-details.js +73 -0
- package/lib/model/archive-source-details.js.map +1 -0
- package/lib/model/change-application-compartment-details.d.ts +1 -2
- package/lib/model/change-application-compartment-details.js +1 -1
- package/lib/model/change-application-compartment-details.js.map +1 -1
- package/lib/model/config-details.d.ts +1 -3
- package/lib/model/config-details.js +1 -1
- package/lib/model/config-details.js.map +1 -1
- package/lib/model/constant-provisioned-concurrency-config.d.ts +1 -2
- package/lib/model/constant-provisioned-concurrency-config.js +1 -1
- package/lib/model/constant-provisioned-concurrency-config.js.map +1 -1
- package/lib/model/container-image-function-source-details.d.ts +40 -0
- package/lib/model/container-image-function-source-details.js +55 -0
- package/lib/model/container-image-function-source-details.js.map +1 -0
- package/lib/model/create-application-details.d.ts +1 -1
- package/lib/model/create-application-details.js +1 -1
- package/lib/model/create-archive-function-source-details.d.ts +33 -0
- package/lib/model/create-archive-function-source-details.js +69 -0
- package/lib/model/create-archive-function-source-details.js.map +1 -0
- package/lib/model/create-archive-source-details.d.ts +26 -0
- package/lib/model/create-archive-source-details.js +73 -0
- package/lib/model/create-archive-source-details.js.map +1 -0
- package/lib/model/create-container-image-function-source-details.d.ts +40 -0
- package/lib/model/create-container-image-function-source-details.js +55 -0
- package/lib/model/create-container-image-function-source-details.js.map +1 -0
- package/lib/model/create-direct-archive-source-details.d.ts +33 -0
- package/lib/model/create-direct-archive-source-details.js +55 -0
- package/lib/model/create-direct-archive-source-details.js.map +1 -0
- package/lib/model/create-function-details.d.ts +2 -17
- package/lib/model/create-function-details.js +3 -3
- package/lib/model/create-function-details.js.map +1 -1
- package/lib/model/create-function-source-details.d.ts +24 -0
- package/lib/model/create-function-source-details.js +77 -0
- package/lib/model/create-function-source-details.js.map +1 -0
- package/lib/model/create-function-update-runtime-config.d.ts +31 -0
- package/lib/model/create-function-update-runtime-config.js +55 -0
- package/lib/model/create-function-update-runtime-config.js.map +1 -0
- package/lib/model/create-manual-runtime-config.d.ts +35 -0
- package/lib/model/create-manual-runtime-config.js +55 -0
- package/lib/model/create-manual-runtime-config.js.map +1 -0
- package/lib/model/create-object-storage-archive-source-details.d.ts +44 -0
- package/lib/model/create-object-storage-archive-source-details.js +55 -0
- package/lib/model/create-object-storage-archive-source-details.js.map +1 -0
- package/lib/model/create-pre-built-function-source-details.d.ts +32 -0
- package/lib/model/create-pre-built-function-source-details.js +55 -0
- package/lib/model/create-pre-built-function-source-details.js.map +1 -0
- package/lib/model/create-runtime-config.d.ts +24 -0
- package/lib/model/create-runtime-config.js +73 -0
- package/lib/model/create-runtime-config.js.map +1 -0
- package/lib/model/direct-archive-source-details.d.ts +27 -0
- package/lib/model/direct-archive-source-details.js +55 -0
- package/lib/model/direct-archive-source-details.js.map +1 -0
- package/lib/model/failure-destination-details.d.ts +1 -2
- package/lib/model/failure-destination-details.js +1 -1
- package/lib/model/failure-destination-details.js.map +1 -1
- package/lib/model/function-provisioned-concurrency-config.d.ts +1 -2
- package/lib/model/function-provisioned-concurrency-config.js +1 -1
- package/lib/model/function-provisioned-concurrency-config.js.map +1 -1
- package/lib/model/function-source-details.d.ts +1 -2
- package/lib/model/function-source-details.js +9 -1
- package/lib/model/function-source-details.js.map +1 -1
- package/lib/model/function-summary.d.ts +2 -17
- package/lib/model/function-summary.js +1 -1
- package/lib/model/function-summary.js.map +1 -1
- package/lib/model/function-trace-config.d.ts +1 -2
- package/lib/model/function-trace-config.js +1 -1
- package/lib/model/function-trace-config.js.map +1 -1
- package/lib/model/function-update-runtime-config.d.ts +35 -0
- package/lib/model/function-update-runtime-config.js +55 -0
- package/lib/model/function-update-runtime-config.js.map +1 -0
- package/lib/model/function.d.ts +2 -17
- package/lib/model/function.js +1 -1
- package/lib/model/function.js.map +1 -1
- package/lib/model/functions-runtime-collection.d.ts +27 -0
- package/lib/model/functions-runtime-collection.js +62 -0
- package/lib/model/functions-runtime-collection.js.map +1 -0
- package/lib/model/functions-runtime-summary.d.ts +100 -0
- package/lib/model/functions-runtime-summary.js +30 -0
- package/lib/model/functions-runtime-summary.js.map +1 -0
- package/lib/model/functions-runtime-version-collection.d.ts +27 -0
- package/lib/model/functions-runtime-version-collection.js +62 -0
- package/lib/model/functions-runtime-version-collection.js.map +1 -0
- package/lib/model/functions-runtime-version-summary.d.ts +103 -0
- package/lib/model/functions-runtime-version-summary.js +40 -0
- package/lib/model/functions-runtime-version-summary.js.map +1 -0
- package/lib/model/functions-runtime-version.d.ts +117 -0
- package/lib/model/functions-runtime-version.js +50 -0
- package/lib/model/functions-runtime-version.js.map +1 -0
- package/lib/model/functions-runtime.d.ts +114 -0
- package/lib/model/functions-runtime.js +40 -0
- package/lib/model/functions-runtime.js.map +1 -0
- package/lib/model/image-policy-config.d.ts +1 -2
- package/lib/model/image-policy-config.js +1 -1
- package/lib/model/image-policy-config.js.map +1 -1
- package/lib/model/index.d.ts +91 -1
- package/lib/model/index.js +93 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/key-details.d.ts +1 -3
- package/lib/model/key-details.js +1 -1
- package/lib/model/key-details.js.map +1 -1
- package/lib/model/manual-runtime-config.d.ts +35 -0
- package/lib/model/manual-runtime-config.js +53 -0
- package/lib/model/manual-runtime-config.js.map +1 -0
- package/lib/model/none-failure-destination-details.d.ts +1 -1
- package/lib/model/none-failure-destination-details.js +1 -1
- package/lib/model/none-provisioned-concurrency-config.d.ts +1 -1
- package/lib/model/none-provisioned-concurrency-config.js +1 -1
- package/lib/model/none-success-destination-details.d.ts +1 -2
- package/lib/model/none-success-destination-details.js +1 -1
- package/lib/model/none-success-destination-details.js.map +1 -1
- package/lib/model/notification-failure-destination-details.d.ts +1 -2
- package/lib/model/notification-failure-destination-details.js +1 -1
- package/lib/model/notification-failure-destination-details.js.map +1 -1
- package/lib/model/notification-success-destination-details.d.ts +1 -2
- package/lib/model/notification-success-destination-details.js +1 -1
- package/lib/model/notification-success-destination-details.js.map +1 -1
- package/lib/model/object-storage-archive-source-details.d.ts +44 -0
- package/lib/model/object-storage-archive-source-details.js +55 -0
- package/lib/model/object-storage-archive-source-details.js.map +1 -0
- package/lib/model/operation-status.d.ts +35 -0
- package/lib/model/operation-status.js +46 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +39 -0
- package/lib/model/operation-type.js +50 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/pbf-listing-summary.d.ts +1 -3
- package/lib/model/pbf-listing-summary.js +1 -1
- package/lib/model/pbf-listing-summary.js.map +1 -1
- package/lib/model/pbf-listing-version-summary.d.ts +1 -3
- package/lib/model/pbf-listing-version-summary.js +1 -1
- package/lib/model/pbf-listing-version-summary.js.map +1 -1
- package/lib/model/pbf-listing-version.d.ts +1 -2
- package/lib/model/pbf-listing-version.js +1 -1
- package/lib/model/pbf-listing-version.js.map +1 -1
- package/lib/model/pbf-listing-versions-collection.d.ts +1 -2
- package/lib/model/pbf-listing-versions-collection.js +1 -1
- package/lib/model/pbf-listing-versions-collection.js.map +1 -1
- package/lib/model/pbf-listing.d.ts +1 -2
- package/lib/model/pbf-listing.js +1 -1
- package/lib/model/pbf-listing.js.map +1 -1
- package/lib/model/pbf-listings-collection.d.ts +1 -3
- package/lib/model/pbf-listings-collection.js +1 -1
- package/lib/model/pbf-listings-collection.js.map +1 -1
- package/lib/model/policy-details.d.ts +2 -4
- package/lib/model/policy-details.js +1 -1
- package/lib/model/policy-details.js.map +1 -1
- package/lib/model/pre-built-function-source-details.d.ts +1 -2
- package/lib/model/pre-built-function-source-details.js +1 -1
- package/lib/model/pre-built-function-source-details.js.map +1 -1
- package/lib/model/publisher-details.d.ts +1 -3
- package/lib/model/publisher-details.js +1 -1
- package/lib/model/publisher-details.js.map +1 -1
- package/lib/model/queue-failure-destination-details.d.ts +1 -2
- package/lib/model/queue-failure-destination-details.js +1 -1
- package/lib/model/queue-failure-destination-details.js.map +1 -1
- package/lib/model/queue-success-destination-details.d.ts +1 -2
- package/lib/model/queue-success-destination-details.js +1 -1
- package/lib/model/queue-success-destination-details.js.map +1 -1
- package/lib/model/requirement-details.d.ts +1 -2
- package/lib/model/requirement-details.js +1 -1
- package/lib/model/requirement-details.js.map +1 -1
- package/lib/model/runtime-config.d.ts +24 -0
- package/lib/model/runtime-config.js +73 -0
- package/lib/model/runtime-config.js.map +1 -0
- package/lib/model/stream-failure-destination-details.d.ts +1 -2
- package/lib/model/stream-failure-destination-details.js +1 -1
- package/lib/model/stream-failure-destination-details.js.map +1 -1
- package/lib/model/stream-success-destination-details.d.ts +1 -2
- package/lib/model/stream-success-destination-details.js +1 -1
- package/lib/model/stream-success-destination-details.js.map +1 -1
- package/lib/model/success-destination-details.d.ts +1 -2
- package/lib/model/success-destination-details.js +1 -1
- package/lib/model/success-destination-details.js.map +1 -1
- package/lib/model/trigger-summary.d.ts +1 -3
- package/lib/model/trigger-summary.js +1 -1
- package/lib/model/trigger-summary.js.map +1 -1
- package/lib/model/trigger.d.ts +1 -3
- package/lib/model/trigger.js +1 -1
- package/lib/model/trigger.js.map +1 -1
- package/lib/model/triggers-collection.d.ts +1 -3
- package/lib/model/triggers-collection.js +1 -1
- package/lib/model/triggers-collection.js.map +1 -1
- package/lib/model/update-application-details.d.ts +1 -2
- package/lib/model/update-application-details.js +1 -1
- package/lib/model/update-application-details.js.map +1 -1
- package/lib/model/update-archive-function-source-details.d.ts +33 -0
- package/lib/model/update-archive-function-source-details.js +69 -0
- package/lib/model/update-archive-function-source-details.js.map +1 -0
- package/lib/model/update-archive-source-details.d.ts +24 -0
- package/lib/model/update-archive-source-details.js +73 -0
- package/lib/model/update-archive-source-details.js.map +1 -0
- package/lib/model/update-container-image-function-source-details.d.ts +40 -0
- package/lib/model/update-container-image-function-source-details.js +55 -0
- package/lib/model/update-container-image-function-source-details.js.map +1 -0
- package/lib/model/update-direct-archive-source-details.d.ts +31 -0
- package/lib/model/update-direct-archive-source-details.js +55 -0
- package/lib/model/update-direct-archive-source-details.js.map +1 -0
- package/lib/model/update-function-details.d.ts +2 -16
- package/lib/model/update-function-details.js +7 -1
- package/lib/model/update-function-details.js.map +1 -1
- package/lib/model/update-function-source-details.d.ts +24 -0
- package/lib/model/update-function-source-details.js +73 -0
- package/lib/model/update-function-source-details.js.map +1 -0
- package/lib/model/update-function-update-runtime-config.d.ts +31 -0
- package/lib/model/update-function-update-runtime-config.js +55 -0
- package/lib/model/update-function-update-runtime-config.js.map +1 -0
- package/lib/model/update-manual-runtime-config.d.ts +35 -0
- package/lib/model/update-manual-runtime-config.js +55 -0
- package/lib/model/update-manual-runtime-config.js.map +1 -0
- package/lib/model/update-object-storage-archive-source-details.d.ts +42 -0
- package/lib/model/update-object-storage-archive-source-details.js +55 -0
- package/lib/model/update-object-storage-archive-source-details.js.map +1 -0
- package/lib/model/update-runtime-config.d.ts +24 -0
- package/lib/model/update-runtime-config.js +73 -0
- package/lib/model/update-runtime-config.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +27 -0
- package/lib/model/work-request-error-collection.js +62 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +38 -0
- package/lib/model/work-request-error.js +30 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +27 -0
- package/lib/model/work-request-log-entry-collection.js +62 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +32 -0
- package/lib/model/work-request-log-entry.js +30 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +28 -0
- package/lib/model/work-request-resource-metadata-key.js +39 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +49 -0
- package/lib/model/work-request-resource.js +30 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +27 -0
- package/lib/model/work-request-summary-collection.js +62 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +74 -0
- package/lib/model/work-request-summary.js +62 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +77 -0
- package/lib/model/work-request.js +62 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-application-compartment-request.d.ts +1 -1
- package/lib/request/change-application-compartment-request.js +1 -1
- package/lib/request/create-application-request.d.ts +1 -1
- package/lib/request/create-application-request.js +1 -1
- package/lib/request/create-function-request.d.ts +1 -1
- package/lib/request/create-function-request.js +1 -1
- package/lib/request/delete-application-request.d.ts +1 -1
- package/lib/request/delete-application-request.js +1 -1
- package/lib/request/delete-function-request.d.ts +1 -1
- package/lib/request/delete-function-request.js +1 -1
- package/lib/request/get-application-request.d.ts +1 -1
- package/lib/request/get-application-request.js +1 -1
- package/lib/request/get-function-request.d.ts +1 -1
- package/lib/request/get-function-request.js +1 -1
- package/lib/request/get-functions-runtime-request.d.ts +28 -0
- package/lib/request/get-functions-runtime-request.js +15 -0
- package/lib/request/get-functions-runtime-request.js.map +1 -0
- package/lib/request/get-functions-runtime-version-request.d.ts +28 -0
- package/lib/request/get-functions-runtime-version-request.js +15 -0
- package/lib/request/get-functions-runtime-version-request.js.map +1 -0
- package/lib/request/get-pbf-listing-request.d.ts +1 -1
- package/lib/request/get-pbf-listing-request.js +1 -1
- package/lib/request/get-pbf-listing-version-request.d.ts +1 -1
- package/lib/request/get-pbf-listing-version-request.js +1 -1
- package/lib/request/get-work-request-request.d.ts +28 -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 +19 -1
- package/lib/request/index.js +12 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/invoke-function-request.d.ts +1 -1
- package/lib/request/invoke-function-request.js +1 -1
- package/lib/request/list-applications-request.d.ts +1 -1
- package/lib/request/list-applications-request.js +1 -1
- package/lib/request/list-functions-request.d.ts +1 -1
- package/lib/request/list-functions-request.js +1 -1
- package/lib/request/list-functions-runtime-versions-request.d.ts +92 -0
- package/lib/request/list-functions-runtime-versions-request.js +29 -0
- package/lib/request/list-functions-runtime-versions-request.js.map +1 -0
- package/lib/request/list-functions-runtimes-request.d.ts +89 -0
- package/lib/request/list-functions-runtimes-request.js +31 -0
- package/lib/request/list-functions-runtimes-request.js.map +1 -0
- package/lib/request/list-pbf-listing-versions-request.d.ts +1 -1
- package/lib/request/list-pbf-listing-versions-request.js +1 -1
- package/lib/request/list-pbf-listings-request.d.ts +1 -1
- package/lib/request/list-pbf-listings-request.js +1 -1
- package/lib/request/list-triggers-request.d.ts +1 -1
- package/lib/request/list-triggers-request.js +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +62 -0
- package/lib/request/list-work-request-errors-request.js +28 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +62 -0
- package/lib/request/list-work-request-logs-request.js +28 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +76 -0
- package/lib/request/list-work-requests-request.js +28 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-application-request.d.ts +1 -1
- package/lib/request/update-application-request.js +1 -1
- package/lib/request/update-function-request.d.ts +1 -1
- package/lib/request/update-function-request.js +1 -1
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-application-compartment-response.d.ts +9 -3
- package/lib/response/change-application-compartment-response.js +1 -1
- package/lib/response/create-application-response.d.ts +7 -1
- package/lib/response/create-application-response.js +1 -1
- package/lib/response/create-function-response.d.ts +7 -1
- package/lib/response/create-function-response.js +1 -1
- package/lib/response/delete-application-response.d.ts +9 -3
- package/lib/response/delete-application-response.js +1 -1
- package/lib/response/delete-function-response.d.ts +9 -3
- package/lib/response/delete-function-response.js +1 -1
- package/lib/response/get-application-response.d.ts +1 -1
- package/lib/response/get-application-response.js +1 -1
- package/lib/response/get-function-response.d.ts +1 -1
- package/lib/response/get-function-response.js +1 -1
- package/lib/response/get-functions-runtime-response.d.ts +30 -0
- package/lib/response/get-functions-runtime-response.js +15 -0
- package/lib/response/get-functions-runtime-response.js.map +1 -0
- package/lib/response/get-functions-runtime-version-response.d.ts +30 -0
- package/lib/response/get-functions-runtime-version-response.js +15 -0
- package/lib/response/get-functions-runtime-version-response.js.map +1 -0
- package/lib/response/get-pbf-listing-response.d.ts +1 -1
- package/lib/response/get-pbf-listing-response.js +1 -1
- package/lib/response/get-pbf-listing-version-response.d.ts +1 -1
- package/lib/response/get-pbf-listing-version-response.js +1 -1
- 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 +19 -1
- package/lib/response/index.js +1 -1
- package/lib/response/invoke-function-response.d.ts +1 -1
- package/lib/response/invoke-function-response.js +1 -1
- package/lib/response/list-applications-response.d.ts +1 -1
- package/lib/response/list-applications-response.js +1 -1
- package/lib/response/list-functions-response.d.ts +1 -1
- package/lib/response/list-functions-response.js +1 -1
- package/lib/response/list-functions-runtime-versions-response.d.ts +32 -0
- package/lib/response/list-functions-runtime-versions-response.js +15 -0
- package/lib/response/list-functions-runtime-versions-response.js.map +1 -0
- package/lib/response/list-functions-runtimes-response.d.ts +32 -0
- package/lib/response/list-functions-runtimes-response.js +15 -0
- package/lib/response/list-functions-runtimes-response.js.map +1 -0
- package/lib/response/list-pbf-listing-versions-response.d.ts +1 -1
- package/lib/response/list-pbf-listing-versions-response.js +1 -1
- package/lib/response/list-pbf-listings-response.d.ts +1 -1
- package/lib/response/list-pbf-listings-response.js +1 -1
- package/lib/response/list-triggers-response.d.ts +1 -1
- package/lib/response/list-triggers-response.js +1 -1
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-application-response.d.ts +5 -11
- package/lib/response/update-application-response.js +1 -1
- package/lib/response/update-function-response.d.ts +5 -11
- package/lib/response/update-function-response.js +1 -1
- package/lib/workrequestmanagement-waiter.d.ts +28 -0
- package/lib/workrequestmanagement-waiter.js +45 -0
- package/lib/workrequestmanagement-waiter.js.map +1 -0
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Functions Service API
|
|
4
4
|
* API for the Functions service.
|
|
5
5
|
|
|
6
|
-
* OpenAPI spec version:
|
|
6
|
+
* OpenAPI spec version: 20260325
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
@@ -41,11 +41,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.FunctionsManagementClient = exports.FunctionsManagementApiKeys = exports.FunctionsInvokeClient = exports.FunctionsInvokeApiKeys = void 0;
|
|
44
|
+
exports.WorkRequestManagementClient = exports.WorkRequestManagementApiKeys = exports.FunctionsManagementClient = exports.FunctionsManagementApiKeys = exports.FunctionsInvokeClient = exports.FunctionsInvokeApiKeys = void 0;
|
|
45
45
|
const common = require("oci-common");
|
|
46
46
|
const model = __importStar(require("./model"));
|
|
47
47
|
const oci_common_1 = require("oci-common");
|
|
48
48
|
const functionsmanagement_waiter_1 = require("./functionsmanagement-waiter");
|
|
49
|
+
const workrequestmanagement_waiter_1 = require("./workrequestmanagement-waiter");
|
|
49
50
|
const oci_common_2 = require("oci-common");
|
|
50
51
|
const Breaker = require("opossum");
|
|
51
52
|
// ===============================================
|
|
@@ -109,7 +110,7 @@ class FunctionsInvokeClient {
|
|
|
109
110
|
*/
|
|
110
111
|
set endpoint(endpoint) {
|
|
111
112
|
this._endpoint = endpoint;
|
|
112
|
-
this._endpoint = this._endpoint + "/
|
|
113
|
+
this._endpoint = this._endpoint + "/20260325";
|
|
113
114
|
if (this.logger)
|
|
114
115
|
this.logger.info(`FunctionsInvokeClient endpoint set to ${this._endpoint}`);
|
|
115
116
|
}
|
|
@@ -151,9 +152,7 @@ class FunctionsInvokeClient {
|
|
|
151
152
|
this.closeProvider();
|
|
152
153
|
}
|
|
153
154
|
/**
|
|
154
|
-
*
|
|
155
|
-
* \"Invokes a function\"
|
|
156
|
-
*
|
|
155
|
+
* Invokes a function
|
|
157
156
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
158
157
|
* @param InvokeFunctionRequest
|
|
159
158
|
* @return InvokeFunctionResponse
|
|
@@ -165,7 +164,7 @@ class FunctionsInvokeClient {
|
|
|
165
164
|
if (this.logger)
|
|
166
165
|
this.logger.debug("Calling operation FunctionsInvokeClient#invokeFunction.");
|
|
167
166
|
const operationName = "invokeFunction";
|
|
168
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
167
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/InvokeFunction";
|
|
169
168
|
const pathParams = {
|
|
170
169
|
"{functionId}": invokeFunctionRequest.functionId
|
|
171
170
|
};
|
|
@@ -284,7 +283,7 @@ class FunctionsManagementClient {
|
|
|
284
283
|
*/
|
|
285
284
|
set endpoint(endpoint) {
|
|
286
285
|
this._endpoint = endpoint;
|
|
287
|
-
this._endpoint = this._endpoint + "/
|
|
286
|
+
this._endpoint = this._endpoint + "/20260325";
|
|
288
287
|
if (this.logger)
|
|
289
288
|
this.logger.info(`FunctionsManagementClient endpoint set to ${this._endpoint}`);
|
|
290
289
|
}
|
|
@@ -376,7 +375,6 @@ class FunctionsManagementClient {
|
|
|
376
375
|
this.closeProvider();
|
|
377
376
|
}
|
|
378
377
|
/**
|
|
379
|
-
* Note: Deprecated. Use the new operation instead.
|
|
380
378
|
* Moves an application into a different compartment within the same tenancy.
|
|
381
379
|
* For information about moving resources between compartments, see [Moving Resources Between Compartments](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
382
380
|
*
|
|
@@ -391,7 +389,7 @@ class FunctionsManagementClient {
|
|
|
391
389
|
if (this.logger)
|
|
392
390
|
this.logger.debug("Calling operation FunctionsManagementClient#changeApplicationCompartment.");
|
|
393
391
|
const operationName = "changeApplicationCompartment";
|
|
394
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
392
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/ChangeApplicationCompartment";
|
|
395
393
|
const pathParams = {
|
|
396
394
|
"{applicationId}": changeApplicationCompartmentRequest.applicationId
|
|
397
395
|
};
|
|
@@ -424,6 +422,11 @@ class FunctionsManagementClient {
|
|
|
424
422
|
value: response.headers.get("opc-request-id"),
|
|
425
423
|
key: "opcRequestId",
|
|
426
424
|
dataType: "string"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
value: response.headers.get("opc-work-request-id"),
|
|
428
|
+
key: "opcWorkRequestId",
|
|
429
|
+
dataType: "string"
|
|
427
430
|
}
|
|
428
431
|
]
|
|
429
432
|
});
|
|
@@ -435,9 +438,7 @@ class FunctionsManagementClient {
|
|
|
435
438
|
});
|
|
436
439
|
}
|
|
437
440
|
/**
|
|
438
|
-
*
|
|
439
|
-
* \"Creates a new application.\"
|
|
440
|
-
*
|
|
441
|
+
* Creates a new application.
|
|
441
442
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
442
443
|
* @param CreateApplicationRequest
|
|
443
444
|
* @return CreateApplicationResponse
|
|
@@ -449,7 +450,7 @@ class FunctionsManagementClient {
|
|
|
449
450
|
if (this.logger)
|
|
450
451
|
this.logger.debug("Calling operation FunctionsManagementClient#createApplication.");
|
|
451
452
|
const operationName = "createApplication";
|
|
452
|
-
const apiReferenceLink = "
|
|
453
|
+
const apiReferenceLink = "";
|
|
453
454
|
const pathParams = {};
|
|
454
455
|
const queryParams = {};
|
|
455
456
|
let headerParams = {
|
|
@@ -488,6 +489,11 @@ class FunctionsManagementClient {
|
|
|
488
489
|
value: response.headers.get("opc-request-id"),
|
|
489
490
|
key: "opcRequestId",
|
|
490
491
|
dataType: "string"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
value: response.headers.get("opc-work-request-id"),
|
|
495
|
+
key: "opcWorkRequestId",
|
|
496
|
+
dataType: "string"
|
|
491
497
|
}
|
|
492
498
|
]
|
|
493
499
|
});
|
|
@@ -499,9 +505,7 @@ class FunctionsManagementClient {
|
|
|
499
505
|
});
|
|
500
506
|
}
|
|
501
507
|
/**
|
|
502
|
-
*
|
|
503
|
-
* \"Creates a new function.\"
|
|
504
|
-
*
|
|
508
|
+
* Creates a new function.
|
|
505
509
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
506
510
|
* @param CreateFunctionRequest
|
|
507
511
|
* @return CreateFunctionResponse
|
|
@@ -513,7 +517,7 @@ class FunctionsManagementClient {
|
|
|
513
517
|
if (this.logger)
|
|
514
518
|
this.logger.debug("Calling operation FunctionsManagementClient#createFunction.");
|
|
515
519
|
const operationName = "createFunction";
|
|
516
|
-
const apiReferenceLink = "
|
|
520
|
+
const apiReferenceLink = "";
|
|
517
521
|
const pathParams = {};
|
|
518
522
|
const queryParams = {};
|
|
519
523
|
let headerParams = {
|
|
@@ -552,6 +556,11 @@ class FunctionsManagementClient {
|
|
|
552
556
|
value: response.headers.get("opc-request-id"),
|
|
553
557
|
key: "opcRequestId",
|
|
554
558
|
dataType: "string"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
value: response.headers.get("opc-work-request-id"),
|
|
562
|
+
key: "opcWorkRequestId",
|
|
563
|
+
dataType: "string"
|
|
555
564
|
}
|
|
556
565
|
]
|
|
557
566
|
});
|
|
@@ -563,9 +572,7 @@ class FunctionsManagementClient {
|
|
|
563
572
|
});
|
|
564
573
|
}
|
|
565
574
|
/**
|
|
566
|
-
* Note: Deprecated. Use the new operation instead.
|
|
567
575
|
* Deletes an application.
|
|
568
|
-
*
|
|
569
576
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
570
577
|
* @param DeleteApplicationRequest
|
|
571
578
|
* @return DeleteApplicationResponse
|
|
@@ -577,7 +584,7 @@ class FunctionsManagementClient {
|
|
|
577
584
|
if (this.logger)
|
|
578
585
|
this.logger.debug("Calling operation FunctionsManagementClient#deleteApplication.");
|
|
579
586
|
const operationName = "deleteApplication";
|
|
580
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
587
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/DeleteApplication";
|
|
581
588
|
const pathParams = {
|
|
582
589
|
"{applicationId}": deleteApplicationRequest.applicationId
|
|
583
590
|
};
|
|
@@ -609,6 +616,11 @@ class FunctionsManagementClient {
|
|
|
609
616
|
value: response.headers.get("opc-request-id"),
|
|
610
617
|
key: "opcRequestId",
|
|
611
618
|
dataType: "string"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
value: response.headers.get("opc-work-request-id"),
|
|
622
|
+
key: "opcWorkRequestId",
|
|
623
|
+
dataType: "string"
|
|
612
624
|
}
|
|
613
625
|
]
|
|
614
626
|
});
|
|
@@ -620,9 +632,7 @@ class FunctionsManagementClient {
|
|
|
620
632
|
});
|
|
621
633
|
}
|
|
622
634
|
/**
|
|
623
|
-
* Note: Deprecated. Use the new operation instead.
|
|
624
635
|
* Deletes a function.
|
|
625
|
-
*
|
|
626
636
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
627
637
|
* @param DeleteFunctionRequest
|
|
628
638
|
* @return DeleteFunctionResponse
|
|
@@ -634,7 +644,7 @@ class FunctionsManagementClient {
|
|
|
634
644
|
if (this.logger)
|
|
635
645
|
this.logger.debug("Calling operation FunctionsManagementClient#deleteFunction.");
|
|
636
646
|
const operationName = "deleteFunction";
|
|
637
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
647
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/DeleteFunction";
|
|
638
648
|
const pathParams = {
|
|
639
649
|
"{functionId}": deleteFunctionRequest.functionId
|
|
640
650
|
};
|
|
@@ -666,6 +676,11 @@ class FunctionsManagementClient {
|
|
|
666
676
|
value: response.headers.get("opc-request-id"),
|
|
667
677
|
key: "opcRequestId",
|
|
668
678
|
dataType: "string"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
value: response.headers.get("opc-work-request-id"),
|
|
682
|
+
key: "opcWorkRequestId",
|
|
683
|
+
dataType: "string"
|
|
669
684
|
}
|
|
670
685
|
]
|
|
671
686
|
});
|
|
@@ -677,9 +692,7 @@ class FunctionsManagementClient {
|
|
|
677
692
|
});
|
|
678
693
|
}
|
|
679
694
|
/**
|
|
680
|
-
*
|
|
681
|
-
* \"Retrieves an application.\"
|
|
682
|
-
*
|
|
695
|
+
* Retrieves an application.
|
|
683
696
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
684
697
|
* @param GetApplicationRequest
|
|
685
698
|
* @return GetApplicationResponse
|
|
@@ -691,7 +704,7 @@ class FunctionsManagementClient {
|
|
|
691
704
|
if (this.logger)
|
|
692
705
|
this.logger.debug("Calling operation FunctionsManagementClient#getApplication.");
|
|
693
706
|
const operationName = "getApplication";
|
|
694
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
707
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/GetApplication";
|
|
695
708
|
const pathParams = {
|
|
696
709
|
"{applicationId}": getApplicationRequest.applicationId
|
|
697
710
|
};
|
|
@@ -742,9 +755,7 @@ class FunctionsManagementClient {
|
|
|
742
755
|
});
|
|
743
756
|
}
|
|
744
757
|
/**
|
|
745
|
-
*
|
|
746
|
-
* \"Retrieves a function.\"
|
|
747
|
-
*
|
|
758
|
+
* Retrieves a function.
|
|
748
759
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
749
760
|
* @param GetFunctionRequest
|
|
750
761
|
* @return GetFunctionResponse
|
|
@@ -756,7 +767,7 @@ class FunctionsManagementClient {
|
|
|
756
767
|
if (this.logger)
|
|
757
768
|
this.logger.debug("Calling operation FunctionsManagementClient#getFunction.");
|
|
758
769
|
const operationName = "getFunction";
|
|
759
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
770
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/GetFunction";
|
|
760
771
|
const pathParams = {
|
|
761
772
|
"{functionId}": getFunctionRequest.functionId
|
|
762
773
|
};
|
|
@@ -807,7 +818,134 @@ class FunctionsManagementClient {
|
|
|
807
818
|
});
|
|
808
819
|
}
|
|
809
820
|
/**
|
|
810
|
-
*
|
|
821
|
+
* Fetches a FunctionsRuntime by ID. Returns a FunctionsRuntime response model.
|
|
822
|
+
*
|
|
823
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
824
|
+
* @param GetFunctionsRuntimeRequest
|
|
825
|
+
* @return GetFunctionsRuntimeResponse
|
|
826
|
+
* @throws OciError when an error occurs
|
|
827
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/GetFunctionsRuntime.ts.html |here} to see how to use GetFunctionsRuntime API.
|
|
828
|
+
*/
|
|
829
|
+
getFunctionsRuntime(getFunctionsRuntimeRequest) {
|
|
830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
+
if (this.logger)
|
|
832
|
+
this.logger.debug("Calling operation FunctionsManagementClient#getFunctionsRuntime.");
|
|
833
|
+
const operationName = "getFunctionsRuntime";
|
|
834
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/GetFunctionsRuntime";
|
|
835
|
+
const pathParams = {
|
|
836
|
+
"{functionsRuntimeId}": getFunctionsRuntimeRequest.functionsRuntimeId
|
|
837
|
+
};
|
|
838
|
+
const queryParams = {};
|
|
839
|
+
let headerParams = {
|
|
840
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
841
|
+
"opc-request-id": getFunctionsRuntimeRequest.opcRequestId
|
|
842
|
+
};
|
|
843
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
844
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFunctionsRuntimeRequest.retryConfiguration, specRetryConfiguration);
|
|
845
|
+
if (this.logger)
|
|
846
|
+
retrier.logger = this.logger;
|
|
847
|
+
const request = yield oci_common_2.composeRequest({
|
|
848
|
+
baseEndpoint: this._endpoint,
|
|
849
|
+
defaultHeaders: this._defaultHeaders,
|
|
850
|
+
path: "/functionsRuntimes/{functionsRuntimeId}",
|
|
851
|
+
method: "GET",
|
|
852
|
+
pathParams: pathParams,
|
|
853
|
+
headerParams: headerParams,
|
|
854
|
+
queryParams: queryParams
|
|
855
|
+
});
|
|
856
|
+
try {
|
|
857
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
858
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
859
|
+
responseObject: {},
|
|
860
|
+
body: yield response.json(),
|
|
861
|
+
bodyKey: "functionsRuntime",
|
|
862
|
+
bodyModel: model.FunctionsRuntime,
|
|
863
|
+
type: "model.FunctionsRuntime",
|
|
864
|
+
responseHeaders: [
|
|
865
|
+
{
|
|
866
|
+
value: response.headers.get("etag"),
|
|
867
|
+
key: "etag",
|
|
868
|
+
dataType: "string"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
value: response.headers.get("opc-request-id"),
|
|
872
|
+
key: "opcRequestId",
|
|
873
|
+
dataType: "string"
|
|
874
|
+
}
|
|
875
|
+
]
|
|
876
|
+
});
|
|
877
|
+
return sdkResponse;
|
|
878
|
+
}
|
|
879
|
+
catch (err) {
|
|
880
|
+
throw err;
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Fetches a FunctionsRuntimeVersion by ID. Returns a FunctionsRuntimeVersion response model.
|
|
886
|
+
*
|
|
887
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
888
|
+
* @param GetFunctionsRuntimeVersionRequest
|
|
889
|
+
* @return GetFunctionsRuntimeVersionResponse
|
|
890
|
+
* @throws OciError when an error occurs
|
|
891
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/GetFunctionsRuntimeVersion.ts.html |here} to see how to use GetFunctionsRuntimeVersion API.
|
|
892
|
+
*/
|
|
893
|
+
getFunctionsRuntimeVersion(getFunctionsRuntimeVersionRequest) {
|
|
894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
895
|
+
if (this.logger)
|
|
896
|
+
this.logger.debug("Calling operation FunctionsManagementClient#getFunctionsRuntimeVersion.");
|
|
897
|
+
const operationName = "getFunctionsRuntimeVersion";
|
|
898
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/GetFunctionsRuntimeVersion";
|
|
899
|
+
const pathParams = {
|
|
900
|
+
"{functionsRuntimeVersionId}": getFunctionsRuntimeVersionRequest.functionsRuntimeVersionId
|
|
901
|
+
};
|
|
902
|
+
const queryParams = {};
|
|
903
|
+
let headerParams = {
|
|
904
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
905
|
+
"opc-request-id": getFunctionsRuntimeVersionRequest.opcRequestId
|
|
906
|
+
};
|
|
907
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
908
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFunctionsRuntimeVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
909
|
+
if (this.logger)
|
|
910
|
+
retrier.logger = this.logger;
|
|
911
|
+
const request = yield oci_common_2.composeRequest({
|
|
912
|
+
baseEndpoint: this._endpoint,
|
|
913
|
+
defaultHeaders: this._defaultHeaders,
|
|
914
|
+
path: "/functionsRuntimeVersions/{functionsRuntimeVersionId}",
|
|
915
|
+
method: "GET",
|
|
916
|
+
pathParams: pathParams,
|
|
917
|
+
headerParams: headerParams,
|
|
918
|
+
queryParams: queryParams
|
|
919
|
+
});
|
|
920
|
+
try {
|
|
921
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
922
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
923
|
+
responseObject: {},
|
|
924
|
+
body: yield response.json(),
|
|
925
|
+
bodyKey: "functionsRuntimeVersion",
|
|
926
|
+
bodyModel: model.FunctionsRuntimeVersion,
|
|
927
|
+
type: "model.FunctionsRuntimeVersion",
|
|
928
|
+
responseHeaders: [
|
|
929
|
+
{
|
|
930
|
+
value: response.headers.get("etag"),
|
|
931
|
+
key: "etag",
|
|
932
|
+
dataType: "string"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
value: response.headers.get("opc-request-id"),
|
|
936
|
+
key: "opcRequestId",
|
|
937
|
+
dataType: "string"
|
|
938
|
+
}
|
|
939
|
+
]
|
|
940
|
+
});
|
|
941
|
+
return sdkResponse;
|
|
942
|
+
}
|
|
943
|
+
catch (err) {
|
|
944
|
+
throw err;
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
811
949
|
* Fetches a Pre-built Function(PBF) Listing. Returns a PbfListing response model.
|
|
812
950
|
*
|
|
813
951
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -821,7 +959,7 @@ class FunctionsManagementClient {
|
|
|
821
959
|
if (this.logger)
|
|
822
960
|
this.logger.debug("Calling operation FunctionsManagementClient#getPbfListing.");
|
|
823
961
|
const operationName = "getPbfListing";
|
|
824
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
962
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/GetPbfListing";
|
|
825
963
|
const pathParams = {
|
|
826
964
|
"{pbfListingId}": getPbfListingRequest.pbfListingId
|
|
827
965
|
};
|
|
@@ -872,9 +1010,7 @@ class FunctionsManagementClient {
|
|
|
872
1010
|
});
|
|
873
1011
|
}
|
|
874
1012
|
/**
|
|
875
|
-
* Note: Deprecated. Use the new operation instead.
|
|
876
1013
|
* Gets a PbfListingVersion by identifier for a PbfListing.
|
|
877
|
-
*
|
|
878
1014
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
879
1015
|
* @param GetPbfListingVersionRequest
|
|
880
1016
|
* @return GetPbfListingVersionResponse
|
|
@@ -886,7 +1022,7 @@ class FunctionsManagementClient {
|
|
|
886
1022
|
if (this.logger)
|
|
887
1023
|
this.logger.debug("Calling operation FunctionsManagementClient#getPbfListingVersion.");
|
|
888
1024
|
const operationName = "getPbfListingVersion";
|
|
889
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1025
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/GetPbfListingVersion";
|
|
890
1026
|
const pathParams = {
|
|
891
1027
|
"{pbfListingVersionId}": getPbfListingVersionRequest.pbfListingVersionId
|
|
892
1028
|
};
|
|
@@ -937,9 +1073,7 @@ class FunctionsManagementClient {
|
|
|
937
1073
|
});
|
|
938
1074
|
}
|
|
939
1075
|
/**
|
|
940
|
-
*
|
|
941
|
-
* \"Lists applications for a compartment.\"
|
|
942
|
-
*
|
|
1076
|
+
* Lists applications for a compartment.
|
|
943
1077
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
944
1078
|
* @param ListApplicationsRequest
|
|
945
1079
|
* @return ListApplicationsResponse
|
|
@@ -951,7 +1085,7 @@ class FunctionsManagementClient {
|
|
|
951
1085
|
if (this.logger)
|
|
952
1086
|
this.logger.debug("Calling operation FunctionsManagementClient#listApplications.");
|
|
953
1087
|
const operationName = "listApplications";
|
|
954
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1088
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/ApplicationSummary/ListApplications";
|
|
955
1089
|
const pathParams = {};
|
|
956
1090
|
const queryParams = {
|
|
957
1091
|
"compartmentId": listApplicationsRequest.compartmentId,
|
|
@@ -1049,9 +1183,7 @@ class FunctionsManagementClient {
|
|
|
1049
1183
|
return oci_common_1.paginateResponses(request, req => this.listApplications(req));
|
|
1050
1184
|
}
|
|
1051
1185
|
/**
|
|
1052
|
-
*
|
|
1053
|
-
* \"Lists functions for an application.\"
|
|
1054
|
-
*
|
|
1186
|
+
* Lists functions for an application.
|
|
1055
1187
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1056
1188
|
* @param ListFunctionsRequest
|
|
1057
1189
|
* @return ListFunctionsResponse
|
|
@@ -1063,7 +1195,7 @@ class FunctionsManagementClient {
|
|
|
1063
1195
|
if (this.logger)
|
|
1064
1196
|
this.logger.debug("Calling operation FunctionsManagementClient#listFunctions.");
|
|
1065
1197
|
const operationName = "listFunctions";
|
|
1066
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1198
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionSummary/ListFunctions";
|
|
1067
1199
|
const pathParams = {};
|
|
1068
1200
|
const queryParams = {
|
|
1069
1201
|
"applicationId": listFunctionsRequest.applicationId,
|
|
@@ -1161,8 +1293,158 @@ class FunctionsManagementClient {
|
|
|
1161
1293
|
return oci_common_1.paginateResponses(request, req => this.listFunctions(req));
|
|
1162
1294
|
}
|
|
1163
1295
|
/**
|
|
1164
|
-
|
|
1165
|
-
|
|
1296
|
+
* Fetches a wrapped list of all FunctionsRuntimeVersions. Returns a FunctionsRuntimeVersionCollection containing
|
|
1297
|
+
* an array of FunctionsRuntimeVersionSummary response models.
|
|
1298
|
+
*
|
|
1299
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1300
|
+
* @param ListFunctionsRuntimeVersionsRequest
|
|
1301
|
+
* @return ListFunctionsRuntimeVersionsResponse
|
|
1302
|
+
* @throws OciError when an error occurs
|
|
1303
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/ListFunctionsRuntimeVersions.ts.html |here} to see how to use ListFunctionsRuntimeVersions API.
|
|
1304
|
+
*/
|
|
1305
|
+
listFunctionsRuntimeVersions(listFunctionsRuntimeVersionsRequest) {
|
|
1306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1307
|
+
if (this.logger)
|
|
1308
|
+
this.logger.debug("Calling operation FunctionsManagementClient#listFunctionsRuntimeVersions.");
|
|
1309
|
+
const operationName = "listFunctionsRuntimeVersions";
|
|
1310
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/ListFunctionsRuntimeVersions";
|
|
1311
|
+
const pathParams = {};
|
|
1312
|
+
const queryParams = {
|
|
1313
|
+
"functionsRuntimeId": listFunctionsRuntimeVersionsRequest.functionsRuntimeId,
|
|
1314
|
+
"functionsRuntimeName": listFunctionsRuntimeVersionsRequest.functionsRuntimeName,
|
|
1315
|
+
"functionsRuntimeVersionId": listFunctionsRuntimeVersionsRequest.functionsRuntimeVersionId,
|
|
1316
|
+
"displayName": listFunctionsRuntimeVersionsRequest.displayName,
|
|
1317
|
+
"osVersion": listFunctionsRuntimeVersionsRequest.osVersion,
|
|
1318
|
+
"languageVersion": listFunctionsRuntimeVersionsRequest.languageVersion,
|
|
1319
|
+
"isCurrentVersion": listFunctionsRuntimeVersionsRequest.isCurrentVersion,
|
|
1320
|
+
"lifecycleState": listFunctionsRuntimeVersionsRequest.lifecycleState,
|
|
1321
|
+
"sortBy": listFunctionsRuntimeVersionsRequest.sortBy,
|
|
1322
|
+
"limit": listFunctionsRuntimeVersionsRequest.limit,
|
|
1323
|
+
"page": listFunctionsRuntimeVersionsRequest.page,
|
|
1324
|
+
"sortOrder": listFunctionsRuntimeVersionsRequest.sortOrder
|
|
1325
|
+
};
|
|
1326
|
+
let headerParams = {
|
|
1327
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1328
|
+
"opc-request-id": listFunctionsRuntimeVersionsRequest.opcRequestId
|
|
1329
|
+
};
|
|
1330
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1331
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listFunctionsRuntimeVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1332
|
+
if (this.logger)
|
|
1333
|
+
retrier.logger = this.logger;
|
|
1334
|
+
const request = yield oci_common_2.composeRequest({
|
|
1335
|
+
baseEndpoint: this._endpoint,
|
|
1336
|
+
defaultHeaders: this._defaultHeaders,
|
|
1337
|
+
path: "/functionsRuntimeVersions",
|
|
1338
|
+
method: "GET",
|
|
1339
|
+
pathParams: pathParams,
|
|
1340
|
+
headerParams: headerParams,
|
|
1341
|
+
queryParams: queryParams
|
|
1342
|
+
});
|
|
1343
|
+
try {
|
|
1344
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1345
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1346
|
+
responseObject: {},
|
|
1347
|
+
body: yield response.json(),
|
|
1348
|
+
bodyKey: "functionsRuntimeVersionCollection",
|
|
1349
|
+
bodyModel: model.FunctionsRuntimeVersionCollection,
|
|
1350
|
+
type: "model.FunctionsRuntimeVersionCollection",
|
|
1351
|
+
responseHeaders: [
|
|
1352
|
+
{
|
|
1353
|
+
value: response.headers.get("opc-request-id"),
|
|
1354
|
+
key: "opcRequestId",
|
|
1355
|
+
dataType: "string"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
value: response.headers.get("opc-next-page"),
|
|
1359
|
+
key: "opcNextPage",
|
|
1360
|
+
dataType: "string"
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
});
|
|
1364
|
+
return sdkResponse;
|
|
1365
|
+
}
|
|
1366
|
+
catch (err) {
|
|
1367
|
+
throw err;
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Fetches a wrapped list of all FunctionsRuntimes. Returns a FunctionsRuntimeCollection containing
|
|
1373
|
+
* an array of FunctionsRuntimeSummary response models.
|
|
1374
|
+
*
|
|
1375
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1376
|
+
* @param ListFunctionsRuntimesRequest
|
|
1377
|
+
* @return ListFunctionsRuntimesResponse
|
|
1378
|
+
* @throws OciError when an error occurs
|
|
1379
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/ListFunctionsRuntimes.ts.html |here} to see how to use ListFunctionsRuntimes API.
|
|
1380
|
+
*/
|
|
1381
|
+
listFunctionsRuntimes(listFunctionsRuntimesRequest) {
|
|
1382
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1383
|
+
if (this.logger)
|
|
1384
|
+
this.logger.debug("Calling operation FunctionsManagementClient#listFunctionsRuntimes.");
|
|
1385
|
+
const operationName = "listFunctionsRuntimes";
|
|
1386
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/ListFunctionsRuntimes";
|
|
1387
|
+
const pathParams = {};
|
|
1388
|
+
const queryParams = {
|
|
1389
|
+
"functionsRuntimeId": listFunctionsRuntimesRequest.functionsRuntimeId,
|
|
1390
|
+
"name": listFunctionsRuntimesRequest.name,
|
|
1391
|
+
"nameContains": listFunctionsRuntimesRequest.nameContains,
|
|
1392
|
+
"nameStartsWith": listFunctionsRuntimesRequest.nameStartsWith,
|
|
1393
|
+
"os": listFunctionsRuntimesRequest.os,
|
|
1394
|
+
"language": listFunctionsRuntimesRequest.language,
|
|
1395
|
+
"lifecycleState": listFunctionsRuntimesRequest.lifecycleState,
|
|
1396
|
+
"limit": listFunctionsRuntimesRequest.limit,
|
|
1397
|
+
"page": listFunctionsRuntimesRequest.page,
|
|
1398
|
+
"sortOrder": listFunctionsRuntimesRequest.sortOrder,
|
|
1399
|
+
"sortBy": listFunctionsRuntimesRequest.sortBy
|
|
1400
|
+
};
|
|
1401
|
+
let headerParams = {
|
|
1402
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1403
|
+
"opc-request-id": listFunctionsRuntimesRequest.opcRequestId
|
|
1404
|
+
};
|
|
1405
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1406
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listFunctionsRuntimesRequest.retryConfiguration, specRetryConfiguration);
|
|
1407
|
+
if (this.logger)
|
|
1408
|
+
retrier.logger = this.logger;
|
|
1409
|
+
const request = yield oci_common_2.composeRequest({
|
|
1410
|
+
baseEndpoint: this._endpoint,
|
|
1411
|
+
defaultHeaders: this._defaultHeaders,
|
|
1412
|
+
path: "/functionsRuntimes",
|
|
1413
|
+
method: "GET",
|
|
1414
|
+
pathParams: pathParams,
|
|
1415
|
+
headerParams: headerParams,
|
|
1416
|
+
queryParams: queryParams
|
|
1417
|
+
});
|
|
1418
|
+
try {
|
|
1419
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1420
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1421
|
+
responseObject: {},
|
|
1422
|
+
body: yield response.json(),
|
|
1423
|
+
bodyKey: "functionsRuntimeCollection",
|
|
1424
|
+
bodyModel: model.FunctionsRuntimeCollection,
|
|
1425
|
+
type: "model.FunctionsRuntimeCollection",
|
|
1426
|
+
responseHeaders: [
|
|
1427
|
+
{
|
|
1428
|
+
value: response.headers.get("opc-request-id"),
|
|
1429
|
+
key: "opcRequestId",
|
|
1430
|
+
dataType: "string"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
value: response.headers.get("opc-next-page"),
|
|
1434
|
+
key: "opcNextPage",
|
|
1435
|
+
dataType: "string"
|
|
1436
|
+
}
|
|
1437
|
+
]
|
|
1438
|
+
});
|
|
1439
|
+
return sdkResponse;
|
|
1440
|
+
}
|
|
1441
|
+
catch (err) {
|
|
1442
|
+
throw err;
|
|
1443
|
+
}
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Fetches a wrapped list of all Pre-built Function(PBF) Listing versions. Returns a PbfListingVersionCollection
|
|
1166
1448
|
* containing an array of PbfListingVersionSummary response models.
|
|
1167
1449
|
* <p>
|
|
1168
1450
|
Note that the PbfListingIdentifier must be provided as a query parameter, otherwise an exception shall
|
|
@@ -1179,7 +1461,7 @@ class FunctionsManagementClient {
|
|
|
1179
1461
|
if (this.logger)
|
|
1180
1462
|
this.logger.debug("Calling operation FunctionsManagementClient#listPbfListingVersions.");
|
|
1181
1463
|
const operationName = "listPbfListingVersions";
|
|
1182
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1464
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/ListPbfListingVersions";
|
|
1183
1465
|
const pathParams = {};
|
|
1184
1466
|
const queryParams = {
|
|
1185
1467
|
"pbfListingId": listPbfListingVersionsRequest.pbfListingId,
|
|
@@ -1238,7 +1520,6 @@ class FunctionsManagementClient {
|
|
|
1238
1520
|
});
|
|
1239
1521
|
}
|
|
1240
1522
|
/**
|
|
1241
|
-
* Note: Deprecated. Use the new operation instead.
|
|
1242
1523
|
* Fetches a wrapped list of all Pre-built Function(PBF) Listings. Returns a PbfListingCollection containing
|
|
1243
1524
|
* an array of PbfListingSummary response models.
|
|
1244
1525
|
*
|
|
@@ -1253,7 +1534,7 @@ class FunctionsManagementClient {
|
|
|
1253
1534
|
if (this.logger)
|
|
1254
1535
|
this.logger.debug("Calling operation FunctionsManagementClient#listPbfListings.");
|
|
1255
1536
|
const operationName = "listPbfListings";
|
|
1256
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1537
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/ListPbfListings";
|
|
1257
1538
|
const pathParams = {};
|
|
1258
1539
|
const queryParams = {
|
|
1259
1540
|
"pbfListingId": listPbfListingsRequest.pbfListingId,
|
|
@@ -1313,7 +1594,6 @@ class FunctionsManagementClient {
|
|
|
1313
1594
|
});
|
|
1314
1595
|
}
|
|
1315
1596
|
/**
|
|
1316
|
-
* Note: Deprecated. Use the new operation instead.
|
|
1317
1597
|
* Returns a list of Triggers.
|
|
1318
1598
|
*
|
|
1319
1599
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1327,7 +1607,7 @@ class FunctionsManagementClient {
|
|
|
1327
1607
|
if (this.logger)
|
|
1328
1608
|
this.logger.debug("Calling operation FunctionsManagementClient#listTriggers.");
|
|
1329
1609
|
const operationName = "listTriggers";
|
|
1330
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1610
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/TriggersCollection/ListTriggers";
|
|
1331
1611
|
const pathParams = {};
|
|
1332
1612
|
const queryParams = {
|
|
1333
1613
|
"name": listTriggersRequest.name,
|
|
@@ -1381,9 +1661,7 @@ class FunctionsManagementClient {
|
|
|
1381
1661
|
});
|
|
1382
1662
|
}
|
|
1383
1663
|
/**
|
|
1384
|
-
*
|
|
1385
|
-
* \"Modifies an application\"
|
|
1386
|
-
*
|
|
1664
|
+
* Modifies an application
|
|
1387
1665
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1388
1666
|
* @param UpdateApplicationRequest
|
|
1389
1667
|
* @return UpdateApplicationResponse
|
|
@@ -1395,7 +1673,7 @@ class FunctionsManagementClient {
|
|
|
1395
1673
|
if (this.logger)
|
|
1396
1674
|
this.logger.debug("Calling operation FunctionsManagementClient#updateApplication.");
|
|
1397
1675
|
const operationName = "updateApplication";
|
|
1398
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1676
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/UpdateApplication";
|
|
1399
1677
|
const pathParams = {
|
|
1400
1678
|
"{applicationId}": updateApplicationRequest.applicationId
|
|
1401
1679
|
};
|
|
@@ -1423,19 +1701,15 @@ class FunctionsManagementClient {
|
|
|
1423
1701
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1424
1702
|
const sdkResponse = oci_common_2.composeResponse({
|
|
1425
1703
|
responseObject: {},
|
|
1426
|
-
body: yield response.json(),
|
|
1427
|
-
bodyKey: "application",
|
|
1428
|
-
bodyModel: model.Application,
|
|
1429
|
-
type: "model.Application",
|
|
1430
1704
|
responseHeaders: [
|
|
1431
1705
|
{
|
|
1432
|
-
value: response.headers.get("
|
|
1433
|
-
key: "
|
|
1706
|
+
value: response.headers.get("opc-request-id"),
|
|
1707
|
+
key: "opcRequestId",
|
|
1434
1708
|
dataType: "string"
|
|
1435
1709
|
},
|
|
1436
1710
|
{
|
|
1437
|
-
value: response.headers.get("opc-request-id"),
|
|
1438
|
-
key: "
|
|
1711
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1712
|
+
key: "opcWorkRequestId",
|
|
1439
1713
|
dataType: "string"
|
|
1440
1714
|
}
|
|
1441
1715
|
]
|
|
@@ -1448,9 +1722,7 @@ class FunctionsManagementClient {
|
|
|
1448
1722
|
});
|
|
1449
1723
|
}
|
|
1450
1724
|
/**
|
|
1451
|
-
*
|
|
1452
|
-
* \"Modifies a function\"
|
|
1453
|
-
*
|
|
1725
|
+
* Modifies a function
|
|
1454
1726
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1455
1727
|
* @param UpdateFunctionRequest
|
|
1456
1728
|
* @return UpdateFunctionResponse
|
|
@@ -1462,7 +1734,7 @@ class FunctionsManagementClient {
|
|
|
1462
1734
|
if (this.logger)
|
|
1463
1735
|
this.logger.debug("Calling operation FunctionsManagementClient#updateFunction.");
|
|
1464
1736
|
const operationName = "updateFunction";
|
|
1465
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/
|
|
1737
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/UpdateFunction";
|
|
1466
1738
|
const pathParams = {
|
|
1467
1739
|
"{functionId}": updateFunctionRequest.functionId
|
|
1468
1740
|
};
|
|
@@ -1490,19 +1762,15 @@ class FunctionsManagementClient {
|
|
|
1490
1762
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1491
1763
|
const sdkResponse = oci_common_2.composeResponse({
|
|
1492
1764
|
responseObject: {},
|
|
1493
|
-
body: yield response.json(),
|
|
1494
|
-
bodyKey: "function",
|
|
1495
|
-
bodyModel: model.Function,
|
|
1496
|
-
type: "model.Function",
|
|
1497
1765
|
responseHeaders: [
|
|
1498
1766
|
{
|
|
1499
|
-
value: response.headers.get("
|
|
1500
|
-
key: "
|
|
1767
|
+
value: response.headers.get("opc-request-id"),
|
|
1768
|
+
key: "opcRequestId",
|
|
1501
1769
|
dataType: "string"
|
|
1502
1770
|
},
|
|
1503
1771
|
{
|
|
1504
|
-
value: response.headers.get("opc-request-id"),
|
|
1505
|
-
key: "
|
|
1772
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1773
|
+
key: "opcWorkRequestId",
|
|
1506
1774
|
dataType: "string"
|
|
1507
1775
|
}
|
|
1508
1776
|
]
|
|
@@ -1518,4 +1786,498 @@ class FunctionsManagementClient {
|
|
|
1518
1786
|
exports.FunctionsManagementClient = FunctionsManagementClient;
|
|
1519
1787
|
FunctionsManagementClient.serviceEndpointTemplate = "https://functions.{region}.oci.{secondLevelDomain}";
|
|
1520
1788
|
FunctionsManagementClient.endpointServiceName = "";
|
|
1789
|
+
var WorkRequestManagementApiKeys;
|
|
1790
|
+
(function (WorkRequestManagementApiKeys) {
|
|
1791
|
+
})(WorkRequestManagementApiKeys = exports.WorkRequestManagementApiKeys || (exports.WorkRequestManagementApiKeys = {}));
|
|
1792
|
+
/**
|
|
1793
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1794
|
+
*/
|
|
1795
|
+
class WorkRequestManagementClient {
|
|
1796
|
+
constructor(params, clientConfiguration) {
|
|
1797
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1798
|
+
this["_endpoint"] = "";
|
|
1799
|
+
this["_defaultHeaders"] = {};
|
|
1800
|
+
this._circuitBreaker = null;
|
|
1801
|
+
this._httpOptions = undefined;
|
|
1802
|
+
this._bodyDuplexMode = undefined;
|
|
1803
|
+
this.targetService = "WorkRequestManagement";
|
|
1804
|
+
this._regionId = "";
|
|
1805
|
+
this._lastSetRegionOrRegionId = "";
|
|
1806
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1807
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1808
|
+
: null;
|
|
1809
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
1810
|
+
if (clientConfiguration) {
|
|
1811
|
+
this._clientConfiguration = clientConfiguration;
|
|
1812
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1813
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1814
|
+
: null;
|
|
1815
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1816
|
+
? clientConfiguration.httpOptions
|
|
1817
|
+
: undefined;
|
|
1818
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1819
|
+
? clientConfiguration.bodyDuplexMode
|
|
1820
|
+
: undefined;
|
|
1821
|
+
}
|
|
1822
|
+
if (!oci_common_2.developerToolConfiguration.isServiceEnabled("functions")) {
|
|
1823
|
+
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 : ";
|
|
1824
|
+
throw errmsg.concat("functions");
|
|
1825
|
+
}
|
|
1826
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1827
|
+
const specCircuitBreakerEnabled = true;
|
|
1828
|
+
if (!this._circuitBreaker &&
|
|
1829
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1830
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1831
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1832
|
+
}
|
|
1833
|
+
this._httpClient =
|
|
1834
|
+
params.httpClient ||
|
|
1835
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
1836
|
+
if (params.authenticationDetailsProvider &&
|
|
1837
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1838
|
+
const provider = params.authenticationDetailsProvider;
|
|
1839
|
+
if (provider.getRegion()) {
|
|
1840
|
+
this.region = provider.getRegion();
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1846
|
+
*/
|
|
1847
|
+
get endpoint() {
|
|
1848
|
+
return this._endpoint;
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1852
|
+
* @param endpoint The endpoint of the service.
|
|
1853
|
+
*/
|
|
1854
|
+
set endpoint(endpoint) {
|
|
1855
|
+
this._endpoint = endpoint;
|
|
1856
|
+
this._endpoint = this._endpoint + "/20260325";
|
|
1857
|
+
if (this.logger)
|
|
1858
|
+
this.logger.info(`WorkRequestManagementClient endpoint set to ${this._endpoint}`);
|
|
1859
|
+
}
|
|
1860
|
+
get logger() {
|
|
1861
|
+
return common.LOG.logger;
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1865
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1866
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1867
|
+
*/
|
|
1868
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1869
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1870
|
+
if (this.logger)
|
|
1871
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1872
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1873
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestManagementClient.serviceEndpointTemplate, this._region, WorkRequestManagementClient.endpointServiceName);
|
|
1874
|
+
}
|
|
1875
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1876
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestManagementClient.serviceEndpointTemplate, this._regionId, WorkRequestManagementClient.endpointServiceName);
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1881
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1882
|
+
* @param region The region of the service.
|
|
1883
|
+
*/
|
|
1884
|
+
set region(region) {
|
|
1885
|
+
this._region = region;
|
|
1886
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestManagementClient.serviceEndpointTemplate, region, WorkRequestManagementClient.endpointServiceName);
|
|
1887
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1891
|
+
*
|
|
1892
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1893
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1894
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1895
|
+
* @param regionId The public region ID.
|
|
1896
|
+
*/
|
|
1897
|
+
set regionId(regionId) {
|
|
1898
|
+
this._regionId = regionId;
|
|
1899
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestManagementClient.serviceEndpointTemplate, regionId, WorkRequestManagementClient.endpointServiceName);
|
|
1900
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Creates a new WorkRequestManagementWaiter for resources for this service.
|
|
1904
|
+
*
|
|
1905
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1906
|
+
* @return The service waiters.
|
|
1907
|
+
*/
|
|
1908
|
+
createWaiters(config) {
|
|
1909
|
+
this._waiters = new workrequestmanagement_waiter_1.WorkRequestManagementWaiter(this, config);
|
|
1910
|
+
return this._waiters;
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* Gets the waiters available for resources for this service.
|
|
1914
|
+
*
|
|
1915
|
+
* @return The service waiters.
|
|
1916
|
+
*/
|
|
1917
|
+
getWaiters() {
|
|
1918
|
+
if (this._waiters) {
|
|
1919
|
+
return this._waiters;
|
|
1920
|
+
}
|
|
1921
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1925
|
+
*/
|
|
1926
|
+
shutdownCircuitBreaker() {
|
|
1927
|
+
if (this._circuitBreaker) {
|
|
1928
|
+
this._circuitBreaker.shutdown();
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1933
|
+
*/
|
|
1934
|
+
closeProvider() {
|
|
1935
|
+
if (this._authProvider) {
|
|
1936
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1937
|
+
(this._authProvider).closeProvider();
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Close the client once it is no longer needed
|
|
1942
|
+
*/
|
|
1943
|
+
close() {
|
|
1944
|
+
this.shutdownCircuitBreaker();
|
|
1945
|
+
this.closeProvider();
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Cancels a work request.
|
|
1949
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1950
|
+
* @param CancelWorkRequestRequest
|
|
1951
|
+
* @return CancelWorkRequestResponse
|
|
1952
|
+
* @throws OciError when an error occurs
|
|
1953
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
1954
|
+
*/
|
|
1955
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
1956
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1957
|
+
if (this.logger)
|
|
1958
|
+
this.logger.debug("Calling operation WorkRequestManagementClient#cancelWorkRequest.");
|
|
1959
|
+
const operationName = "cancelWorkRequest";
|
|
1960
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/CancelWorkRequest";
|
|
1961
|
+
const pathParams = {
|
|
1962
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
1963
|
+
};
|
|
1964
|
+
const queryParams = {};
|
|
1965
|
+
let headerParams = {
|
|
1966
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1967
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
1968
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
1969
|
+
};
|
|
1970
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1971
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1972
|
+
if (this.logger)
|
|
1973
|
+
retrier.logger = this.logger;
|
|
1974
|
+
const request = yield oci_common_2.composeRequest({
|
|
1975
|
+
baseEndpoint: this._endpoint,
|
|
1976
|
+
defaultHeaders: this._defaultHeaders,
|
|
1977
|
+
path: "/workRequests/{workRequestId}",
|
|
1978
|
+
method: "DELETE",
|
|
1979
|
+
pathParams: pathParams,
|
|
1980
|
+
headerParams: headerParams,
|
|
1981
|
+
queryParams: queryParams
|
|
1982
|
+
});
|
|
1983
|
+
try {
|
|
1984
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1985
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1986
|
+
responseObject: {},
|
|
1987
|
+
responseHeaders: [
|
|
1988
|
+
{
|
|
1989
|
+
value: response.headers.get("opc-request-id"),
|
|
1990
|
+
key: "opcRequestId",
|
|
1991
|
+
dataType: "string"
|
|
1992
|
+
}
|
|
1993
|
+
]
|
|
1994
|
+
});
|
|
1995
|
+
return sdkResponse;
|
|
1996
|
+
}
|
|
1997
|
+
catch (err) {
|
|
1998
|
+
throw err;
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
/**
|
|
2003
|
+
* Gets the details of a work request.
|
|
2004
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2005
|
+
* @param GetWorkRequestRequest
|
|
2006
|
+
* @return GetWorkRequestResponse
|
|
2007
|
+
* @throws OciError when an error occurs
|
|
2008
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2009
|
+
*/
|
|
2010
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
2011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2012
|
+
if (this.logger)
|
|
2013
|
+
this.logger.debug("Calling operation WorkRequestManagementClient#getWorkRequest.");
|
|
2014
|
+
const operationName = "getWorkRequest";
|
|
2015
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/GetWorkRequest";
|
|
2016
|
+
const pathParams = {
|
|
2017
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
2018
|
+
};
|
|
2019
|
+
const queryParams = {};
|
|
2020
|
+
let headerParams = {
|
|
2021
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2022
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
2023
|
+
};
|
|
2024
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2025
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2026
|
+
if (this.logger)
|
|
2027
|
+
retrier.logger = this.logger;
|
|
2028
|
+
const request = yield oci_common_2.composeRequest({
|
|
2029
|
+
baseEndpoint: this._endpoint,
|
|
2030
|
+
defaultHeaders: this._defaultHeaders,
|
|
2031
|
+
path: "/workRequests/{workRequestId}",
|
|
2032
|
+
method: "GET",
|
|
2033
|
+
pathParams: pathParams,
|
|
2034
|
+
headerParams: headerParams,
|
|
2035
|
+
queryParams: queryParams
|
|
2036
|
+
});
|
|
2037
|
+
try {
|
|
2038
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2039
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2040
|
+
responseObject: {},
|
|
2041
|
+
body: yield response.json(),
|
|
2042
|
+
bodyKey: "workRequest",
|
|
2043
|
+
bodyModel: model.WorkRequest,
|
|
2044
|
+
type: "model.WorkRequest",
|
|
2045
|
+
responseHeaders: [
|
|
2046
|
+
{
|
|
2047
|
+
value: response.headers.get("etag"),
|
|
2048
|
+
key: "etag",
|
|
2049
|
+
dataType: "string"
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
value: response.headers.get("opc-request-id"),
|
|
2053
|
+
key: "opcRequestId",
|
|
2054
|
+
dataType: "string"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
value: response.headers.get("retry-after"),
|
|
2058
|
+
key: "retryAfter",
|
|
2059
|
+
dataType: "number"
|
|
2060
|
+
}
|
|
2061
|
+
]
|
|
2062
|
+
});
|
|
2063
|
+
return sdkResponse;
|
|
2064
|
+
}
|
|
2065
|
+
catch (err) {
|
|
2066
|
+
throw err;
|
|
2067
|
+
}
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
/**
|
|
2071
|
+
* Lists the errors for a work request.
|
|
2072
|
+
*
|
|
2073
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2074
|
+
* @param ListWorkRequestErrorsRequest
|
|
2075
|
+
* @return ListWorkRequestErrorsResponse
|
|
2076
|
+
* @throws OciError when an error occurs
|
|
2077
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2078
|
+
*/
|
|
2079
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2081
|
+
if (this.logger)
|
|
2082
|
+
this.logger.debug("Calling operation WorkRequestManagementClient#listWorkRequestErrors.");
|
|
2083
|
+
const operationName = "listWorkRequestErrors";
|
|
2084
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestError/ListWorkRequestErrors";
|
|
2085
|
+
const pathParams = {
|
|
2086
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
2087
|
+
};
|
|
2088
|
+
const queryParams = {
|
|
2089
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
2090
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
2091
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
2092
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
2093
|
+
};
|
|
2094
|
+
let headerParams = {
|
|
2095
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2096
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
2097
|
+
};
|
|
2098
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2099
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2100
|
+
if (this.logger)
|
|
2101
|
+
retrier.logger = this.logger;
|
|
2102
|
+
const request = yield oci_common_2.composeRequest({
|
|
2103
|
+
baseEndpoint: this._endpoint,
|
|
2104
|
+
defaultHeaders: this._defaultHeaders,
|
|
2105
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
2106
|
+
method: "GET",
|
|
2107
|
+
pathParams: pathParams,
|
|
2108
|
+
headerParams: headerParams,
|
|
2109
|
+
queryParams: queryParams
|
|
2110
|
+
});
|
|
2111
|
+
try {
|
|
2112
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2113
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2114
|
+
responseObject: {},
|
|
2115
|
+
body: yield response.json(),
|
|
2116
|
+
bodyKey: "workRequestErrorCollection",
|
|
2117
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
2118
|
+
type: "model.WorkRequestErrorCollection",
|
|
2119
|
+
responseHeaders: [
|
|
2120
|
+
{
|
|
2121
|
+
value: response.headers.get("opc-request-id"),
|
|
2122
|
+
key: "opcRequestId",
|
|
2123
|
+
dataType: "string"
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
value: response.headers.get("opc-next-page"),
|
|
2127
|
+
key: "opcNextPage",
|
|
2128
|
+
dataType: "string"
|
|
2129
|
+
}
|
|
2130
|
+
]
|
|
2131
|
+
});
|
|
2132
|
+
return sdkResponse;
|
|
2133
|
+
}
|
|
2134
|
+
catch (err) {
|
|
2135
|
+
throw err;
|
|
2136
|
+
}
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Lists the logs for a work request.
|
|
2141
|
+
*
|
|
2142
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2143
|
+
* @param ListWorkRequestLogsRequest
|
|
2144
|
+
* @return ListWorkRequestLogsResponse
|
|
2145
|
+
* @throws OciError when an error occurs
|
|
2146
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2147
|
+
*/
|
|
2148
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2150
|
+
if (this.logger)
|
|
2151
|
+
this.logger.debug("Calling operation WorkRequestManagementClient#listWorkRequestLogs.");
|
|
2152
|
+
const operationName = "listWorkRequestLogs";
|
|
2153
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestLogEntry/ListWorkRequestLogs";
|
|
2154
|
+
const pathParams = {
|
|
2155
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
2156
|
+
};
|
|
2157
|
+
const queryParams = {
|
|
2158
|
+
"page": listWorkRequestLogsRequest.page,
|
|
2159
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
2160
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
2161
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
2162
|
+
};
|
|
2163
|
+
let headerParams = {
|
|
2164
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2165
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
2166
|
+
};
|
|
2167
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2168
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
2169
|
+
if (this.logger)
|
|
2170
|
+
retrier.logger = this.logger;
|
|
2171
|
+
const request = yield oci_common_2.composeRequest({
|
|
2172
|
+
baseEndpoint: this._endpoint,
|
|
2173
|
+
defaultHeaders: this._defaultHeaders,
|
|
2174
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
2175
|
+
method: "GET",
|
|
2176
|
+
pathParams: pathParams,
|
|
2177
|
+
headerParams: headerParams,
|
|
2178
|
+
queryParams: queryParams
|
|
2179
|
+
});
|
|
2180
|
+
try {
|
|
2181
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2182
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2183
|
+
responseObject: {},
|
|
2184
|
+
body: yield response.json(),
|
|
2185
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
2186
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
2187
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
2188
|
+
responseHeaders: [
|
|
2189
|
+
{
|
|
2190
|
+
value: response.headers.get("opc-request-id"),
|
|
2191
|
+
key: "opcRequestId",
|
|
2192
|
+
dataType: "string"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
value: response.headers.get("opc-next-page"),
|
|
2196
|
+
key: "opcNextPage",
|
|
2197
|
+
dataType: "string"
|
|
2198
|
+
}
|
|
2199
|
+
]
|
|
2200
|
+
});
|
|
2201
|
+
return sdkResponse;
|
|
2202
|
+
}
|
|
2203
|
+
catch (err) {
|
|
2204
|
+
throw err;
|
|
2205
|
+
}
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* Lists the work requests in a compartment.
|
|
2210
|
+
*
|
|
2211
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2212
|
+
* @param ListWorkRequestsRequest
|
|
2213
|
+
* @return ListWorkRequestsResponse
|
|
2214
|
+
* @throws OciError when an error occurs
|
|
2215
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/functions/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2216
|
+
*/
|
|
2217
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
2218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2219
|
+
if (this.logger)
|
|
2220
|
+
this.logger.debug("Calling operation WorkRequestManagementClient#listWorkRequests.");
|
|
2221
|
+
const operationName = "listWorkRequests";
|
|
2222
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/ListWorkRequests";
|
|
2223
|
+
const pathParams = {};
|
|
2224
|
+
const queryParams = {
|
|
2225
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
2226
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
2227
|
+
"status": listWorkRequestsRequest.status,
|
|
2228
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
2229
|
+
"page": listWorkRequestsRequest.page,
|
|
2230
|
+
"limit": listWorkRequestsRequest.limit,
|
|
2231
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
2232
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
2233
|
+
};
|
|
2234
|
+
let headerParams = {
|
|
2235
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2236
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
2237
|
+
};
|
|
2238
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2239
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2240
|
+
if (this.logger)
|
|
2241
|
+
retrier.logger = this.logger;
|
|
2242
|
+
const request = yield oci_common_2.composeRequest({
|
|
2243
|
+
baseEndpoint: this._endpoint,
|
|
2244
|
+
defaultHeaders: this._defaultHeaders,
|
|
2245
|
+
path: "/workRequests",
|
|
2246
|
+
method: "GET",
|
|
2247
|
+
pathParams: pathParams,
|
|
2248
|
+
headerParams: headerParams,
|
|
2249
|
+
queryParams: queryParams
|
|
2250
|
+
});
|
|
2251
|
+
try {
|
|
2252
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2253
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2254
|
+
responseObject: {},
|
|
2255
|
+
body: yield response.json(),
|
|
2256
|
+
bodyKey: "workRequestSummaryCollection",
|
|
2257
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
2258
|
+
type: "model.WorkRequestSummaryCollection",
|
|
2259
|
+
responseHeaders: [
|
|
2260
|
+
{
|
|
2261
|
+
value: response.headers.get("opc-request-id"),
|
|
2262
|
+
key: "opcRequestId",
|
|
2263
|
+
dataType: "string"
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
value: response.headers.get("opc-next-page"),
|
|
2267
|
+
key: "opcNextPage",
|
|
2268
|
+
dataType: "string"
|
|
2269
|
+
}
|
|
2270
|
+
]
|
|
2271
|
+
});
|
|
2272
|
+
return sdkResponse;
|
|
2273
|
+
}
|
|
2274
|
+
catch (err) {
|
|
2275
|
+
throw err;
|
|
2276
|
+
}
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
exports.WorkRequestManagementClient = WorkRequestManagementClient;
|
|
2281
|
+
WorkRequestManagementClient.serviceEndpointTemplate = "https://functions.{region}.oci.{secondLevelDomain}";
|
|
2282
|
+
WorkRequestManagementClient.endpointServiceName = "";
|
|
1521
2283
|
//# sourceMappingURL=client.js.map
|