oci-marketplacepublisher 2.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +778 -0
- package/lib/client.js +4726 -0
- package/lib/client.js.map +1 -0
- package/lib/marketplacepublisher-waiter.d.ts +116 -0
- package/lib/marketplacepublisher-waiter.js +196 -0
- package/lib/marketplacepublisher-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/artifact-collection.d.ts +26 -0
- package/lib/model/artifact-collection.js +61 -0
- package/lib/model/artifact-collection.js.map +1 -0
- package/lib/model/artifact-summary.d.ts +88 -0
- package/lib/model/artifact-summary.js +29 -0
- package/lib/model/artifact-summary.js.map +1 -0
- package/lib/model/artifact-type-enum.d.ts +28 -0
- package/lib/model/artifact-type-enum.js +39 -0
- package/lib/model/artifact-type-enum.js.map +1 -0
- package/lib/model/artifact.d.ts +115 -0
- package/lib/model/artifact.js +97 -0
- package/lib/model/artifact.js.map +1 -0
- package/lib/model/category-collection.d.ts +26 -0
- package/lib/model/category-collection.js +61 -0
- package/lib/model/category-collection.js.map +1 -0
- package/lib/model/category-summary.d.ts +51 -0
- package/lib/model/category-summary.js +29 -0
- package/lib/model/category-summary.js.map +1 -0
- package/lib/model/category.d.ts +60 -0
- package/lib/model/category.js +39 -0
- package/lib/model/category.js.map +1 -0
- package/lib/model/change-artifact-compartment-details.d.ts +25 -0
- package/lib/model/change-artifact-compartment-details.js +29 -0
- package/lib/model/change-artifact-compartment-details.js.map +1 -0
- package/lib/model/change-listing-compartment-details.d.ts +25 -0
- package/lib/model/change-listing-compartment-details.js +29 -0
- package/lib/model/change-listing-compartment-details.js.map +1 -0
- package/lib/model/change-term-compartment-details.d.ts +25 -0
- package/lib/model/change-term-compartment-details.js +29 -0
- package/lib/model/change-term-compartment-details.js.map +1 -0
- package/lib/model/container-image-artifact.d.ts +26 -0
- package/lib/model/container-image-artifact.js +60 -0
- package/lib/model/container-image-artifact.js.map +1 -0
- package/lib/model/container-image-details.d.ts +46 -0
- package/lib/model/container-image-details.js +29 -0
- package/lib/model/container-image-details.js.map +1 -0
- package/lib/model/container-package.d.ts +24 -0
- package/lib/model/container-package.js +54 -0
- package/lib/model/container-package.js.map +1 -0
- package/lib/model/create-artifact-details.d.ts +48 -0
- package/lib/model/create-artifact-details.js +72 -0
- package/lib/model/create-artifact-details.js.map +1 -0
- package/lib/model/create-container-image-artifact-details.d.ts +26 -0
- package/lib/model/create-container-image-artifact-details.js +62 -0
- package/lib/model/create-container-image-artifact-details.js.map +1 -0
- package/lib/model/create-container-image-details.d.ts +29 -0
- package/lib/model/create-container-image-details.js +29 -0
- package/lib/model/create-container-image-details.js.map +1 -0
- package/lib/model/create-helm-chart-image-details.d.ts +33 -0
- package/lib/model/create-helm-chart-image-details.js +29 -0
- package/lib/model/create-helm-chart-image-details.js.map +1 -0
- package/lib/model/create-kubernetes-image-artifact-details.d.ts +30 -0
- package/lib/model/create-kubernetes-image-artifact-details.js +62 -0
- package/lib/model/create-kubernetes-image-artifact-details.js.map +1 -0
- package/lib/model/create-listing-details.d.ts +56 -0
- package/lib/model/create-listing-details.js +29 -0
- package/lib/model/create-listing-details.js.map +1 -0
- package/lib/model/create-listing-revision-attachment-details.d.ts +53 -0
- package/lib/model/create-listing-revision-attachment-details.js +76 -0
- package/lib/model/create-listing-revision-attachment-details.js.map +1 -0
- package/lib/model/create-listing-revision-details.d.ts +106 -0
- package/lib/model/create-listing-revision-details.js +93 -0
- package/lib/model/create-listing-revision-details.js.map +1 -0
- package/lib/model/create-listing-revision-note-details.d.ts +47 -0
- package/lib/model/create-listing-revision-note-details.js +29 -0
- package/lib/model/create-listing-revision-note-details.js.map +1 -0
- package/lib/model/create-listing-revision-package-details.d.ts +71 -0
- package/lib/model/create-listing-revision-package-details.js +29 -0
- package/lib/model/create-listing-revision-package-details.js.map +1 -0
- package/lib/model/create-related-document-attachment-details.d.ts +29 -0
- package/lib/model/create-related-document-attachment-details.js +54 -0
- package/lib/model/create-related-document-attachment-details.js.map +1 -0
- package/lib/model/create-screen-shot-attachment-details.d.ts +25 -0
- package/lib/model/create-screen-shot-attachment-details.js +54 -0
- package/lib/model/create-screen-shot-attachment-details.js.map +1 -0
- package/lib/model/create-term-details.d.ts +47 -0
- package/lib/model/create-term-details.js +29 -0
- package/lib/model/create-term-details.js.map +1 -0
- package/lib/model/create-video-attachment-details.d.ts +26 -0
- package/lib/model/create-video-attachment-details.js +62 -0
- package/lib/model/create-video-attachment-details.js.map +1 -0
- package/lib/model/create-video-details.d.ts +25 -0
- package/lib/model/create-video-details.js +29 -0
- package/lib/model/create-video-details.js.map +1 -0
- package/lib/model/helm-chart-image-details.d.ts +50 -0
- package/lib/model/helm-chart-image-details.js +29 -0
- package/lib/model/helm-chart-image-details.js.map +1 -0
- package/lib/model/helm-chart-package.d.ts +24 -0
- package/lib/model/helm-chart-package.js +54 -0
- package/lib/model/helm-chart-package.js.map +1 -0
- package/lib/model/index.d.ts +224 -0
- package/lib/model/index.js +249 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/kubernetes-image-artifact.d.ts +30 -0
- package/lib/model/kubernetes-image-artifact.js +60 -0
- package/lib/model/kubernetes-image-artifact.js.map +1 -0
- package/lib/model/language-item.d.ts +29 -0
- package/lib/model/language-item.js +29 -0
- package/lib/model/language-item.js.map +1 -0
- package/lib/model/listing-collection.d.ts +26 -0
- package/lib/model/listing-collection.js +61 -0
- package/lib/model/listing-collection.js.map +1 -0
- package/lib/model/listing-revision-attachment-collection.d.ts +26 -0
- package/lib/model/listing-revision-attachment-collection.js +61 -0
- package/lib/model/listing-revision-attachment-collection.js.map +1 -0
- package/lib/model/listing-revision-attachment-summary.d.ts +97 -0
- package/lib/model/listing-revision-attachment-summary.js +29 -0
- package/lib/model/listing-revision-attachment-summary.js.map +1 -0
- package/lib/model/listing-revision-attachment.d.ts +92 -0
- package/lib/model/listing-revision-attachment.js +87 -0
- package/lib/model/listing-revision-attachment.js.map +1 -0
- package/lib/model/listing-revision-collection.d.ts +26 -0
- package/lib/model/listing-revision-collection.js +61 -0
- package/lib/model/listing-revision-collection.js.map +1 -0
- package/lib/model/listing-revision-icon-attachment.d.ts +29 -0
- package/lib/model/listing-revision-icon-attachment.js +29 -0
- package/lib/model/listing-revision-icon-attachment.js.map +1 -0
- package/lib/model/listing-revision-note-collection.d.ts +26 -0
- package/lib/model/listing-revision-note-collection.js +61 -0
- package/lib/model/listing-revision-note-collection.js.map +1 -0
- package/lib/model/listing-revision-note-summary.d.ts +89 -0
- package/lib/model/listing-revision-note-summary.js +29 -0
- package/lib/model/listing-revision-note-summary.js.map +1 -0
- package/lib/model/listing-revision-note.d.ts +107 -0
- package/lib/model/listing-revision-note.js +49 -0
- package/lib/model/listing-revision-note.js.map +1 -0
- package/lib/model/listing-revision-package-collection.d.ts +26 -0
- package/lib/model/listing-revision-package-collection.js +61 -0
- package/lib/model/listing-revision-package-collection.js.map +1 -0
- package/lib/model/listing-revision-package-summary.d.ts +102 -0
- package/lib/model/listing-revision-package-summary.js +29 -0
- package/lib/model/listing-revision-package-summary.js.map +1 -0
- package/lib/model/listing-revision-package.d.ts +153 -0
- package/lib/model/listing-revision-package.js +102 -0
- package/lib/model/listing-revision-package.js.map +1 -0
- package/lib/model/listing-revision-summary.d.ts +114 -0
- package/lib/model/listing-revision-summary.js +55 -0
- package/lib/model/listing-revision-summary.js.map +1 -0
- package/lib/model/listing-revision.d.ts +207 -0
- package/lib/model/listing-revision.js +143 -0
- package/lib/model/listing-revision.js.map +1 -0
- package/lib/model/listing-summary.d.ts +88 -0
- package/lib/model/listing-summary.js +29 -0
- package/lib/model/listing-summary.js.map +1 -0
- package/lib/model/listing-type.d.ts +28 -0
- package/lib/model/listing-type.js +39 -0
- package/lib/model/listing-type.js.map +1 -0
- package/lib/model/listing.d.ts +117 -0
- package/lib/model/listing.js +44 -0
- package/lib/model/listing.js.map +1 -0
- package/lib/model/market-collection.d.ts +26 -0
- package/lib/model/market-collection.js +61 -0
- package/lib/model/market-collection.js.map +1 -0
- package/lib/model/market-summary.d.ts +55 -0
- package/lib/model/market-summary.js +29 -0
- package/lib/model/market-summary.js.map +1 -0
- package/lib/model/market.d.ts +68 -0
- package/lib/model/market.js +39 -0
- package/lib/model/market.js.map +1 -0
- package/lib/model/named-link.d.ts +29 -0
- package/lib/model/named-link.js +29 -0
- package/lib/model/named-link.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +41 -0
- package/lib/model/operation-type.js +52 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/opn-membership.d.ts +51 -0
- package/lib/model/opn-membership.js +40 -0
- package/lib/model/opn-membership.js.map +1 -0
- package/lib/model/package-type.d.ts +28 -0
- package/lib/model/package-type.js +39 -0
- package/lib/model/package-type.js.map +1 -0
- package/lib/model/private-offer-account-details.d.ts +29 -0
- package/lib/model/private-offer-account-details.js +29 -0
- package/lib/model/private-offer-account-details.js.map +1 -0
- package/lib/model/product-collection.d.ts +26 -0
- package/lib/model/product-collection.js +61 -0
- package/lib/model/product-collection.js.map +1 -0
- package/lib/model/product-summary.d.ts +51 -0
- package/lib/model/product-summary.js +29 -0
- package/lib/model/product-summary.js.map +1 -0
- package/lib/model/product.d.ts +60 -0
- package/lib/model/product.js +39 -0
- package/lib/model/product.js.map +1 -0
- package/lib/model/publication-status.d.ts +30 -0
- package/lib/model/publication-status.js +41 -0
- package/lib/model/publication-status.js.map +1 -0
- package/lib/model/publish-listing-revision-as-private-details.d.ts +25 -0
- package/lib/model/publish-listing-revision-as-private-details.js +29 -0
- package/lib/model/publish-listing-revision-as-private-details.js.map +1 -0
- package/lib/model/publisher-collection.d.ts +26 -0
- package/lib/model/publisher-collection.js +61 -0
- package/lib/model/publisher-collection.js.map +1 -0
- package/lib/model/publisher-summary.d.ts +128 -0
- package/lib/model/publisher-summary.js +63 -0
- package/lib/model/publisher-summary.js.map +1 -0
- package/lib/model/publisher.d.ts +151 -0
- package/lib/model/publisher.js +89 -0
- package/lib/model/publisher.js.map +1 -0
- package/lib/model/related-document-attachment.d.ts +50 -0
- package/lib/model/related-document-attachment.js +69 -0
- package/lib/model/related-document-attachment.js.map +1 -0
- package/lib/model/screen-shot-attachment.d.ts +32 -0
- package/lib/model/screen-shot-attachment.js +54 -0
- package/lib/model/screen-shot-attachment.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/submit-listing-revision-for-review-details.d.ts +29 -0
- package/lib/model/submit-listing-revision-for-review-details.js +29 -0
- package/lib/model/submit-listing-revision-for-review-details.js.map +1 -0
- package/lib/model/support-contact.d.ts +37 -0
- package/lib/model/support-contact.js +29 -0
- package/lib/model/support-contact.js.map +1 -0
- package/lib/model/term-collection.d.ts +26 -0
- package/lib/model/term-collection.js +61 -0
- package/lib/model/term-collection.js.map +1 -0
- package/lib/model/term-summary.d.ts +83 -0
- package/lib/model/term-summary.js +29 -0
- package/lib/model/term-summary.js.map +1 -0
- package/lib/model/term-version-attachment.d.ts +29 -0
- package/lib/model/term-version-attachment.js +29 -0
- package/lib/model/term-version-attachment.js.map +1 -0
- package/lib/model/term-version-collection.d.ts +26 -0
- package/lib/model/term-version-collection.js +61 -0
- package/lib/model/term-version-collection.js.map +1 -0
- package/lib/model/term-version-summary.d.ts +83 -0
- package/lib/model/term-version-summary.js +29 -0
- package/lib/model/term-version-summary.js.map +1 -0
- package/lib/model/term-version.d.ts +116 -0
- package/lib/model/term-version.js +78 -0
- package/lib/model/term-version.js.map +1 -0
- package/lib/model/term.d.ts +105 -0
- package/lib/model/term.js +49 -0
- package/lib/model/term.js.map +1 -0
- package/lib/model/update-artifact-details.d.ts +49 -0
- package/lib/model/update-artifact-details.js +72 -0
- package/lib/model/update-artifact-details.js.map +1 -0
- package/lib/model/update-container-image-artifact-details.d.ts +26 -0
- package/lib/model/update-container-image-artifact-details.js +62 -0
- package/lib/model/update-container-image-artifact-details.js.map +1 -0
- package/lib/model/update-container-image-details.d.ts +29 -0
- package/lib/model/update-container-image-details.js +29 -0
- package/lib/model/update-container-image-details.js.map +1 -0
- package/lib/model/update-helm-chart-image-details.d.ts +33 -0
- package/lib/model/update-helm-chart-image-details.js +29 -0
- package/lib/model/update-helm-chart-image-details.js.map +1 -0
- package/lib/model/update-kubernetes-image-artifact-details.d.ts +30 -0
- package/lib/model/update-kubernetes-image-artifact-details.js +62 -0
- package/lib/model/update-kubernetes-image-artifact-details.js.map +1 -0
- package/lib/model/update-listing-details.d.ts +39 -0
- package/lib/model/update-listing-details.js +29 -0
- package/lib/model/update-listing-details.js.map +1 -0
- package/lib/model/update-listing-revision-attachment-details.d.ts +49 -0
- package/lib/model/update-listing-revision-attachment-details.js +76 -0
- package/lib/model/update-listing-revision-attachment-details.js.map +1 -0
- package/lib/model/update-listing-revision-details.d.ts +98 -0
- package/lib/model/update-listing-revision-details.js +93 -0
- package/lib/model/update-listing-revision-details.js.map +1 -0
- package/lib/model/update-listing-revision-package-details.d.ts +67 -0
- package/lib/model/update-listing-revision-package-details.js +29 -0
- package/lib/model/update-listing-revision-package-details.js.map +1 -0
- package/lib/model/update-related-document-attachment-details.d.ts +29 -0
- package/lib/model/update-related-document-attachment-details.js +54 -0
- package/lib/model/update-related-document-attachment-details.js.map +1 -0
- package/lib/model/update-screen-shot-attachment-details.d.ts +25 -0
- package/lib/model/update-screen-shot-attachment-details.js +54 -0
- package/lib/model/update-screen-shot-attachment-details.js.map +1 -0
- package/lib/model/update-term-details.d.ts +39 -0
- package/lib/model/update-term-details.js +29 -0
- package/lib/model/update-term-details.js.map +1 -0
- package/lib/model/update-term-version-details.d.ts +43 -0
- package/lib/model/update-term-version-details.js +29 -0
- package/lib/model/update-term-version-details.js.map +1 -0
- package/lib/model/update-video-attachment-details.d.ts +25 -0
- package/lib/model/update-video-attachment-details.js +54 -0
- package/lib/model/update-video-attachment-details.js.map +1 -0
- package/lib/model/upload-data.d.ts +33 -0
- package/lib/model/upload-data.js +29 -0
- package/lib/model/upload-data.js.map +1 -0
- package/lib/model/validation-status.d.ts +30 -0
- package/lib/model/validation-status.js +41 -0
- package/lib/model/validation-status.js.map +1 -0
- package/lib/model/version-details.d.ts +33 -0
- package/lib/model/version-details.js +29 -0
- package/lib/model/version-details.js.map +1 -0
- package/lib/model/video-attachment.d.ts +28 -0
- package/lib/model/video-attachment.js +54 -0
- package/lib/model/video-attachment.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +67 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +67 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/activate-term-version-request.d.ts +35 -0
- package/lib/request/activate-term-version-request.js +15 -0
- package/lib/request/activate-term-version-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/cascading-delete-listing-request.d.ts +44 -0
- package/lib/request/cascading-delete-listing-request.js +15 -0
- package/lib/request/cascading-delete-listing-request.js.map +1 -0
- package/lib/request/cascading-delete-listing-revision-request.d.ts +44 -0
- package/lib/request/cascading-delete-listing-revision-request.js +15 -0
- package/lib/request/cascading-delete-listing-revision-request.js.map +1 -0
- package/lib/request/change-artifact-compartment-request.d.ts +49 -0
- package/lib/request/change-artifact-compartment-request.js +15 -0
- package/lib/request/change-artifact-compartment-request.js.map +1 -0
- package/lib/request/change-listing-compartment-request.d.ts +49 -0
- package/lib/request/change-listing-compartment-request.js +15 -0
- package/lib/request/change-listing-compartment-request.js.map +1 -0
- package/lib/request/change-listing-revision-to-new-status-request.d.ts +35 -0
- package/lib/request/change-listing-revision-to-new-status-request.js +15 -0
- package/lib/request/change-listing-revision-to-new-status-request.js.map +1 -0
- package/lib/request/change-term-compartment-request.d.ts +49 -0
- package/lib/request/change-term-compartment-request.js +15 -0
- package/lib/request/change-term-compartment-request.js.map +1 -0
- package/lib/request/clone-listing-revision-request.d.ts +44 -0
- package/lib/request/clone-listing-revision-request.js +15 -0
- package/lib/request/clone-listing-revision-request.js.map +1 -0
- package/lib/request/create-artifact-request.d.ts +36 -0
- package/lib/request/create-artifact-request.js +15 -0
- package/lib/request/create-artifact-request.js.map +1 -0
- package/lib/request/create-listing-request.d.ts +36 -0
- package/lib/request/create-listing-request.js +15 -0
- package/lib/request/create-listing-request.js.map +1 -0
- package/lib/request/create-listing-revision-attachment-request.d.ts +36 -0
- package/lib/request/create-listing-revision-attachment-request.js +15 -0
- package/lib/request/create-listing-revision-attachment-request.js.map +1 -0
- package/lib/request/create-listing-revision-note-request.d.ts +36 -0
- package/lib/request/create-listing-revision-note-request.js +15 -0
- package/lib/request/create-listing-revision-note-request.js.map +1 -0
- package/lib/request/create-listing-revision-package-request.d.ts +36 -0
- package/lib/request/create-listing-revision-package-request.js +15 -0
- package/lib/request/create-listing-revision-package-request.js.map +1 -0
- package/lib/request/create-listing-revision-request.d.ts +36 -0
- package/lib/request/create-listing-revision-request.js +15 -0
- package/lib/request/create-listing-revision-request.js.map +1 -0
- package/lib/request/create-term-request.d.ts +36 -0
- package/lib/request/create-term-request.js +15 -0
- package/lib/request/create-term-request.js.map +1 -0
- package/lib/request/create-term-version-request.d.ts +45 -0
- package/lib/request/create-term-version-request.js +15 -0
- package/lib/request/create-term-version-request.js.map +1 -0
- package/lib/request/delete-artifact-request.d.ts +44 -0
- package/lib/request/delete-artifact-request.js +15 -0
- package/lib/request/delete-artifact-request.js.map +1 -0
- package/lib/request/delete-listing-request.d.ts +35 -0
- package/lib/request/delete-listing-request.js +15 -0
- package/lib/request/delete-listing-request.js.map +1 -0
- package/lib/request/delete-listing-revision-attachment-request.d.ts +35 -0
- package/lib/request/delete-listing-revision-attachment-request.js +15 -0
- package/lib/request/delete-listing-revision-attachment-request.js.map +1 -0
- package/lib/request/delete-listing-revision-note-request.d.ts +35 -0
- package/lib/request/delete-listing-revision-note-request.js +15 -0
- package/lib/request/delete-listing-revision-note-request.js.map +1 -0
- package/lib/request/delete-listing-revision-package-request.d.ts +35 -0
- package/lib/request/delete-listing-revision-package-request.js +15 -0
- package/lib/request/delete-listing-revision-package-request.js.map +1 -0
- package/lib/request/delete-listing-revision-request.d.ts +35 -0
- package/lib/request/delete-listing-revision-request.js +15 -0
- package/lib/request/delete-listing-revision-request.js.map +1 -0
- package/lib/request/delete-term-request.d.ts +35 -0
- package/lib/request/delete-term-request.js +15 -0
- package/lib/request/delete-term-request.js.map +1 -0
- package/lib/request/delete-term-version-request.d.ts +35 -0
- package/lib/request/delete-term-version-request.js +15 -0
- package/lib/request/delete-term-version-request.js.map +1 -0
- package/lib/request/get-artifact-request.d.ts +26 -0
- package/lib/request/get-artifact-request.js +15 -0
- package/lib/request/get-artifact-request.js.map +1 -0
- package/lib/request/get-category-request.d.ts +30 -0
- package/lib/request/get-category-request.js +15 -0
- package/lib/request/get-category-request.js.map +1 -0
- package/lib/request/get-listing-request.d.ts +26 -0
- package/lib/request/get-listing-request.js +15 -0
- package/lib/request/get-listing-request.js.map +1 -0
- package/lib/request/get-listing-revision-attachment-request.d.ts +26 -0
- package/lib/request/get-listing-revision-attachment-request.js +15 -0
- package/lib/request/get-listing-revision-attachment-request.js.map +1 -0
- package/lib/request/get-listing-revision-note-request.d.ts +26 -0
- package/lib/request/get-listing-revision-note-request.js +15 -0
- package/lib/request/get-listing-revision-note-request.js.map +1 -0
- package/lib/request/get-listing-revision-package-request.d.ts +26 -0
- package/lib/request/get-listing-revision-package-request.js +15 -0
- package/lib/request/get-listing-revision-package-request.js.map +1 -0
- package/lib/request/get-listing-revision-request.d.ts +26 -0
- package/lib/request/get-listing-revision-request.js +15 -0
- package/lib/request/get-listing-revision-request.js.map +1 -0
- package/lib/request/get-market-request.d.ts +26 -0
- package/lib/request/get-market-request.js +15 -0
- package/lib/request/get-market-request.js.map +1 -0
- package/lib/request/get-product-request.d.ts +26 -0
- package/lib/request/get-product-request.js +15 -0
- package/lib/request/get-product-request.js.map +1 -0
- package/lib/request/get-publisher-request.d.ts +26 -0
- package/lib/request/get-publisher-request.js +15 -0
- package/lib/request/get-publisher-request.js.map +1 -0
- package/lib/request/get-term-request.d.ts +26 -0
- package/lib/request/get-term-request.js +15 -0
- package/lib/request/get-term-request.js.map +1 -0
- package/lib/request/get-term-version-request.d.ts +26 -0
- package/lib/request/get-term-version-request.js +15 -0
- package/lib/request/get-term-version-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 +154 -0
- package/lib/request/index.js +65 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-artifacts-request.d.ts +62 -0
- package/lib/request/list-artifacts-request.js +24 -0
- package/lib/request/list-artifacts-request.js.map +1 -0
- package/lib/request/list-categories-request.d.ts +58 -0
- package/lib/request/list-categories-request.js +24 -0
- package/lib/request/list-categories-request.js.map +1 -0
- package/lib/request/list-listing-revision-attachments-request.d.ts +62 -0
- package/lib/request/list-listing-revision-attachments-request.js +24 -0
- package/lib/request/list-listing-revision-attachments-request.js.map +1 -0
- package/lib/request/list-listing-revision-notes-request.d.ts +54 -0
- package/lib/request/list-listing-revision-notes-request.js +24 -0
- package/lib/request/list-listing-revision-notes-request.js.map +1 -0
- package/lib/request/list-listing-revision-packages-request.d.ts +62 -0
- package/lib/request/list-listing-revision-packages-request.js +24 -0
- package/lib/request/list-listing-revision-packages-request.js.map +1 -0
- package/lib/request/list-listing-revisions-request.d.ts +66 -0
- package/lib/request/list-listing-revisions-request.js +24 -0
- package/lib/request/list-listing-revisions-request.js.map +1 -0
- package/lib/request/list-listings-request.d.ts +58 -0
- package/lib/request/list-listings-request.js +24 -0
- package/lib/request/list-listings-request.js.map +1 -0
- package/lib/request/list-markets-request.d.ts +54 -0
- package/lib/request/list-markets-request.js +24 -0
- package/lib/request/list-markets-request.js.map +1 -0
- package/lib/request/list-products-request.d.ts +54 -0
- package/lib/request/list-products-request.js +24 -0
- package/lib/request/list-products-request.js.map +1 -0
- package/lib/request/list-publishers-request.d.ts +54 -0
- package/lib/request/list-publishers-request.js +24 -0
- package/lib/request/list-publishers-request.js.map +1 -0
- package/lib/request/list-term-versions-request.d.ts +58 -0
- package/lib/request/list-term-versions-request.js +24 -0
- package/lib/request/list-term-versions-request.js.map +1 -0
- package/lib/request/list-terms-request.d.ts +54 -0
- package/lib/request/list-terms-request.js +24 -0
- package/lib/request/list-terms-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/mark-listing-revision-package-as-default-request.d.ts +44 -0
- package/lib/request/mark-listing-revision-package-as-default-request.js +15 -0
- package/lib/request/mark-listing-revision-package-as-default-request.js.map +1 -0
- package/lib/request/publish-listing-revision-as-private-request.d.ts +49 -0
- package/lib/request/publish-listing-revision-as-private-request.js +15 -0
- package/lib/request/publish-listing-revision-as-private-request.js.map +1 -0
- package/lib/request/publish-listing-revision-package-request.d.ts +44 -0
- package/lib/request/publish-listing-revision-package-request.js +15 -0
- package/lib/request/publish-listing-revision-package-request.js.map +1 -0
- package/lib/request/publish-listing-revision-request.d.ts +44 -0
- package/lib/request/publish-listing-revision-request.js +15 -0
- package/lib/request/publish-listing-revision-request.js.map +1 -0
- package/lib/request/submit-listing-revision-for-review-request.d.ts +49 -0
- package/lib/request/submit-listing-revision-for-review-request.js +15 -0
- package/lib/request/submit-listing-revision-for-review-request.js.map +1 -0
- package/lib/request/un-publish-listing-revision-package-request.d.ts +44 -0
- package/lib/request/un-publish-listing-revision-package-request.js +15 -0
- package/lib/request/un-publish-listing-revision-package-request.js.map +1 -0
- package/lib/request/update-artifact-request.d.ts +40 -0
- package/lib/request/update-artifact-request.js +15 -0
- package/lib/request/update-artifact-request.js.map +1 -0
- package/lib/request/update-listing-request.d.ts +40 -0
- package/lib/request/update-listing-request.js +15 -0
- package/lib/request/update-listing-request.js.map +1 -0
- package/lib/request/update-listing-revision-attachment-content-request.d.ts +41 -0
- package/lib/request/update-listing-revision-attachment-content-request.js +15 -0
- package/lib/request/update-listing-revision-attachment-content-request.js.map +1 -0
- package/lib/request/update-listing-revision-attachment-request.d.ts +40 -0
- package/lib/request/update-listing-revision-attachment-request.js +15 -0
- package/lib/request/update-listing-revision-attachment-request.js.map +1 -0
- package/lib/request/update-listing-revision-icon-content-request.d.ts +41 -0
- package/lib/request/update-listing-revision-icon-content-request.js +15 -0
- package/lib/request/update-listing-revision-icon-content-request.js.map +1 -0
- package/lib/request/update-listing-revision-package-request.d.ts +40 -0
- package/lib/request/update-listing-revision-package-request.js +15 -0
- package/lib/request/update-listing-revision-package-request.js.map +1 -0
- package/lib/request/update-listing-revision-request.d.ts +40 -0
- package/lib/request/update-listing-revision-request.js +15 -0
- package/lib/request/update-listing-revision-request.js.map +1 -0
- package/lib/request/update-term-request.d.ts +40 -0
- package/lib/request/update-term-request.js +15 -0
- package/lib/request/update-term-request.js.map +1 -0
- package/lib/request/update-term-version-content-request.d.ts +45 -0
- package/lib/request/update-term-version-content-request.js +15 -0
- package/lib/request/update-term-version-content-request.js.map +1 -0
- package/lib/request/update-term-version-request.d.ts +40 -0
- package/lib/request/update-term-version-request.js +15 -0
- package/lib/request/update-term-version-request.js.map +1 -0
- package/lib/request/validate-and-publish-artifact-request.d.ts +44 -0
- package/lib/request/validate-and-publish-artifact-request.js +15 -0
- package/lib/request/validate-and-publish-artifact-request.js.map +1 -0
- package/lib/request/withdraw-listing-revision-request.d.ts +44 -0
- package/lib/request/withdraw-listing-revision-request.js +15 -0
- package/lib/request/withdraw-listing-revision-request.js.map +1 -0
- package/lib/response/activate-term-version-response.d.ts +30 -0
- package/lib/response/activate-term-version-response.js +15 -0
- package/lib/response/activate-term-version-response.js.map +1 -0
- 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/cascading-delete-listing-response.d.ts +25 -0
- package/lib/response/cascading-delete-listing-response.js +15 -0
- package/lib/response/cascading-delete-listing-response.js.map +1 -0
- package/lib/response/cascading-delete-listing-revision-response.d.ts +25 -0
- package/lib/response/cascading-delete-listing-revision-response.js +15 -0
- package/lib/response/cascading-delete-listing-revision-response.js.map +1 -0
- package/lib/response/change-artifact-compartment-response.d.ts +20 -0
- package/lib/response/change-artifact-compartment-response.js +15 -0
- package/lib/response/change-artifact-compartment-response.js.map +1 -0
- package/lib/response/change-listing-compartment-response.d.ts +20 -0
- package/lib/response/change-listing-compartment-response.js +15 -0
- package/lib/response/change-listing-compartment-response.js.map +1 -0
- package/lib/response/change-listing-revision-to-new-status-response.d.ts +30 -0
- package/lib/response/change-listing-revision-to-new-status-response.js +15 -0
- package/lib/response/change-listing-revision-to-new-status-response.js.map +1 -0
- package/lib/response/change-term-compartment-response.d.ts +20 -0
- package/lib/response/change-term-compartment-response.js +15 -0
- package/lib/response/change-term-compartment-response.js.map +1 -0
- package/lib/response/clone-listing-revision-response.d.ts +25 -0
- package/lib/response/clone-listing-revision-response.js +15 -0
- package/lib/response/clone-listing-revision-response.js.map +1 -0
- package/lib/response/create-artifact-response.d.ts +25 -0
- package/lib/response/create-artifact-response.js +15 -0
- package/lib/response/create-artifact-response.js.map +1 -0
- package/lib/response/create-listing-response.d.ts +30 -0
- package/lib/response/create-listing-response.js +15 -0
- package/lib/response/create-listing-response.js.map +1 -0
- package/lib/response/create-listing-revision-attachment-response.d.ts +30 -0
- package/lib/response/create-listing-revision-attachment-response.js +15 -0
- package/lib/response/create-listing-revision-attachment-response.js.map +1 -0
- package/lib/response/create-listing-revision-note-response.d.ts +30 -0
- package/lib/response/create-listing-revision-note-response.js +15 -0
- package/lib/response/create-listing-revision-note-response.js.map +1 -0
- package/lib/response/create-listing-revision-package-response.d.ts +30 -0
- package/lib/response/create-listing-revision-package-response.js +15 -0
- package/lib/response/create-listing-revision-package-response.js.map +1 -0
- package/lib/response/create-listing-revision-response.d.ts +30 -0
- package/lib/response/create-listing-revision-response.js +15 -0
- package/lib/response/create-listing-revision-response.js.map +1 -0
- package/lib/response/create-term-response.d.ts +30 -0
- package/lib/response/create-term-response.js +15 -0
- package/lib/response/create-term-response.js.map +1 -0
- package/lib/response/create-term-version-response.d.ts +30 -0
- package/lib/response/create-term-version-response.js +15 -0
- package/lib/response/create-term-version-response.js.map +1 -0
- package/lib/response/delete-artifact-response.d.ts +25 -0
- package/lib/response/delete-artifact-response.js +15 -0
- package/lib/response/delete-artifact-response.js.map +1 -0
- package/lib/response/delete-listing-response.d.ts +20 -0
- package/lib/response/delete-listing-response.js +15 -0
- package/lib/response/delete-listing-response.js.map +1 -0
- package/lib/response/delete-listing-revision-attachment-response.d.ts +20 -0
- package/lib/response/delete-listing-revision-attachment-response.js +15 -0
- package/lib/response/delete-listing-revision-attachment-response.js.map +1 -0
- package/lib/response/delete-listing-revision-note-response.d.ts +20 -0
- package/lib/response/delete-listing-revision-note-response.js +15 -0
- package/lib/response/delete-listing-revision-note-response.js.map +1 -0
- package/lib/response/delete-listing-revision-package-response.d.ts +20 -0
- package/lib/response/delete-listing-revision-package-response.js +15 -0
- package/lib/response/delete-listing-revision-package-response.js.map +1 -0
- package/lib/response/delete-listing-revision-response.d.ts +20 -0
- package/lib/response/delete-listing-revision-response.js +15 -0
- package/lib/response/delete-listing-revision-response.js.map +1 -0
- package/lib/response/delete-term-response.d.ts +20 -0
- package/lib/response/delete-term-response.js +15 -0
- package/lib/response/delete-term-response.js.map +1 -0
- package/lib/response/delete-term-version-response.d.ts +20 -0
- package/lib/response/delete-term-version-response.js +15 -0
- package/lib/response/delete-term-version-response.js.map +1 -0
- package/lib/response/get-artifact-response.d.ts +30 -0
- package/lib/response/get-artifact-response.js +15 -0
- package/lib/response/get-artifact-response.js.map +1 -0
- package/lib/response/get-category-response.d.ts +30 -0
- package/lib/response/get-category-response.js +15 -0
- package/lib/response/get-category-response.js.map +1 -0
- package/lib/response/get-listing-response.d.ts +30 -0
- package/lib/response/get-listing-response.js +15 -0
- package/lib/response/get-listing-response.js.map +1 -0
- package/lib/response/get-listing-revision-attachment-response.d.ts +30 -0
- package/lib/response/get-listing-revision-attachment-response.js +15 -0
- package/lib/response/get-listing-revision-attachment-response.js.map +1 -0
- package/lib/response/get-listing-revision-note-response.d.ts +30 -0
- package/lib/response/get-listing-revision-note-response.js +15 -0
- package/lib/response/get-listing-revision-note-response.js.map +1 -0
- package/lib/response/get-listing-revision-package-response.d.ts +30 -0
- package/lib/response/get-listing-revision-package-response.js +15 -0
- package/lib/response/get-listing-revision-package-response.js.map +1 -0
- package/lib/response/get-listing-revision-response.d.ts +30 -0
- package/lib/response/get-listing-revision-response.js +15 -0
- package/lib/response/get-listing-revision-response.js.map +1 -0
- package/lib/response/get-market-response.d.ts +30 -0
- package/lib/response/get-market-response.js +15 -0
- package/lib/response/get-market-response.js.map +1 -0
- package/lib/response/get-product-response.d.ts +30 -0
- package/lib/response/get-product-response.js +15 -0
- package/lib/response/get-product-response.js.map +1 -0
- package/lib/response/get-publisher-response.d.ts +30 -0
- package/lib/response/get-publisher-response.js +15 -0
- package/lib/response/get-publisher-response.js.map +1 -0
- package/lib/response/get-term-response.d.ts +30 -0
- package/lib/response/get-term-response.js +15 -0
- package/lib/response/get-term-response.js.map +1 -0
- package/lib/response/get-term-version-response.d.ts +30 -0
- package/lib/response/get-term-version-response.js +15 -0
- package/lib/response/get-term-version-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 +154 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-artifacts-response.d.ts +32 -0
- package/lib/response/list-artifacts-response.js +15 -0
- package/lib/response/list-artifacts-response.js.map +1 -0
- package/lib/response/list-categories-response.d.ts +32 -0
- package/lib/response/list-categories-response.js +15 -0
- package/lib/response/list-categories-response.js.map +1 -0
- package/lib/response/list-listing-revision-attachments-response.d.ts +32 -0
- package/lib/response/list-listing-revision-attachments-response.js +15 -0
- package/lib/response/list-listing-revision-attachments-response.js.map +1 -0
- package/lib/response/list-listing-revision-notes-response.d.ts +32 -0
- package/lib/response/list-listing-revision-notes-response.js +15 -0
- package/lib/response/list-listing-revision-notes-response.js.map +1 -0
- package/lib/response/list-listing-revision-packages-response.d.ts +32 -0
- package/lib/response/list-listing-revision-packages-response.js +15 -0
- package/lib/response/list-listing-revision-packages-response.js.map +1 -0
- package/lib/response/list-listing-revisions-response.d.ts +32 -0
- package/lib/response/list-listing-revisions-response.js +15 -0
- package/lib/response/list-listing-revisions-response.js.map +1 -0
- package/lib/response/list-listings-response.d.ts +32 -0
- package/lib/response/list-listings-response.js +15 -0
- package/lib/response/list-listings-response.js.map +1 -0
- package/lib/response/list-markets-response.d.ts +32 -0
- package/lib/response/list-markets-response.js +15 -0
- package/lib/response/list-markets-response.js.map +1 -0
- package/lib/response/list-products-response.d.ts +32 -0
- package/lib/response/list-products-response.js +15 -0
- package/lib/response/list-products-response.js.map +1 -0
- package/lib/response/list-publishers-response.d.ts +32 -0
- package/lib/response/list-publishers-response.js +15 -0
- package/lib/response/list-publishers-response.js.map +1 -0
- package/lib/response/list-term-versions-response.d.ts +32 -0
- package/lib/response/list-term-versions-response.js +15 -0
- package/lib/response/list-term-versions-response.js.map +1 -0
- package/lib/response/list-terms-response.d.ts +32 -0
- package/lib/response/list-terms-response.js +15 -0
- package/lib/response/list-terms-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/mark-listing-revision-package-as-default-response.d.ts +25 -0
- package/lib/response/mark-listing-revision-package-as-default-response.js +15 -0
- package/lib/response/mark-listing-revision-package-as-default-response.js.map +1 -0
- package/lib/response/publish-listing-revision-as-private-response.d.ts +25 -0
- package/lib/response/publish-listing-revision-as-private-response.js +15 -0
- package/lib/response/publish-listing-revision-as-private-response.js.map +1 -0
- package/lib/response/publish-listing-revision-package-response.d.ts +25 -0
- package/lib/response/publish-listing-revision-package-response.js +15 -0
- package/lib/response/publish-listing-revision-package-response.js.map +1 -0
- package/lib/response/publish-listing-revision-response.d.ts +25 -0
- package/lib/response/publish-listing-revision-response.js +15 -0
- package/lib/response/publish-listing-revision-response.js.map +1 -0
- package/lib/response/submit-listing-revision-for-review-response.d.ts +30 -0
- package/lib/response/submit-listing-revision-for-review-response.js +15 -0
- package/lib/response/submit-listing-revision-for-review-response.js.map +1 -0
- package/lib/response/un-publish-listing-revision-package-response.d.ts +25 -0
- package/lib/response/un-publish-listing-revision-package-response.js +15 -0
- package/lib/response/un-publish-listing-revision-package-response.js.map +1 -0
- package/lib/response/update-artifact-response.d.ts +25 -0
- package/lib/response/update-artifact-response.js +15 -0
- package/lib/response/update-artifact-response.js.map +1 -0
- package/lib/response/update-listing-response.d.ts +30 -0
- package/lib/response/update-listing-response.js +15 -0
- package/lib/response/update-listing-response.js.map +1 -0
- package/lib/response/update-listing-revision-attachment-content-response.d.ts +30 -0
- package/lib/response/update-listing-revision-attachment-content-response.js +15 -0
- package/lib/response/update-listing-revision-attachment-content-response.js.map +1 -0
- package/lib/response/update-listing-revision-attachment-response.d.ts +30 -0
- package/lib/response/update-listing-revision-attachment-response.js +15 -0
- package/lib/response/update-listing-revision-attachment-response.js.map +1 -0
- package/lib/response/update-listing-revision-icon-content-response.d.ts +30 -0
- package/lib/response/update-listing-revision-icon-content-response.js +15 -0
- package/lib/response/update-listing-revision-icon-content-response.js.map +1 -0
- package/lib/response/update-listing-revision-package-response.d.ts +30 -0
- package/lib/response/update-listing-revision-package-response.js +15 -0
- package/lib/response/update-listing-revision-package-response.js.map +1 -0
- package/lib/response/update-listing-revision-response.d.ts +30 -0
- package/lib/response/update-listing-revision-response.js +15 -0
- package/lib/response/update-listing-revision-response.js.map +1 -0
- package/lib/response/update-term-response.d.ts +30 -0
- package/lib/response/update-term-response.js +15 -0
- package/lib/response/update-term-response.js.map +1 -0
- package/lib/response/update-term-version-content-response.d.ts +30 -0
- package/lib/response/update-term-version-content-response.js +15 -0
- package/lib/response/update-term-version-content-response.js.map +1 -0
- package/lib/response/update-term-version-response.d.ts +30 -0
- package/lib/response/update-term-version-response.js +15 -0
- package/lib/response/update-term-version-response.js.map +1 -0
- package/lib/response/validate-and-publish-artifact-response.d.ts +25 -0
- package/lib/response/validate-and-publish-artifact-response.js +15 -0
- package/lib/response/validate-and-publish-artifact-response.js.map +1 -0
- package/lib/response/withdraw-listing-revision-response.d.ts +25 -0
- package/lib/response/withdraw-listing-revision-response.js +15 -0
- package/lib/response/withdraw-listing-revision-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,4726 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MarketplacePublisherService API
|
|
4
|
+
* Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud Infrastructure Marketplace.
|
|
5
|
+
* OpenAPI spec version: 20220901
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.MarketplacePublisherClient = exports.MarketplacePublisherApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const marketplacepublisher_waiter_1 = require("./marketplacepublisher-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
var MarketplacePublisherApiKeys;
|
|
52
|
+
(function (MarketplacePublisherApiKeys) {
|
|
53
|
+
})(MarketplacePublisherApiKeys = exports.MarketplacePublisherApiKeys || (exports.MarketplacePublisherApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
56
|
+
*/
|
|
57
|
+
class MarketplacePublisherClient {
|
|
58
|
+
constructor(params, clientConfiguration) {
|
|
59
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
60
|
+
this["_endpoint"] = "";
|
|
61
|
+
this["_defaultHeaders"] = {};
|
|
62
|
+
this._circuitBreaker = null;
|
|
63
|
+
this._httpOptions = undefined;
|
|
64
|
+
this._bodyDuplexMode = undefined;
|
|
65
|
+
this.targetService = "MarketplacePublisher";
|
|
66
|
+
this._regionId = "";
|
|
67
|
+
this._lastSetRegionOrRegionId = "";
|
|
68
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
69
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
70
|
+
: null;
|
|
71
|
+
if (clientConfiguration) {
|
|
72
|
+
this._clientConfiguration = clientConfiguration;
|
|
73
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
74
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
75
|
+
: null;
|
|
76
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
77
|
+
? clientConfiguration.httpOptions
|
|
78
|
+
: undefined;
|
|
79
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
80
|
+
? clientConfiguration.bodyDuplexMode
|
|
81
|
+
: undefined;
|
|
82
|
+
}
|
|
83
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
84
|
+
const specCircuitBreakerEnabled = true;
|
|
85
|
+
if (!this._circuitBreaker &&
|
|
86
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
87
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
88
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
89
|
+
}
|
|
90
|
+
this._httpClient =
|
|
91
|
+
params.httpClient ||
|
|
92
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
93
|
+
if (params.authenticationDetailsProvider &&
|
|
94
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
95
|
+
const provider = params.authenticationDetailsProvider;
|
|
96
|
+
if (provider.getRegion()) {
|
|
97
|
+
this.region = provider.getRegion();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
103
|
+
*/
|
|
104
|
+
get endpoint() {
|
|
105
|
+
return this._endpoint;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
109
|
+
* @param endpoint The endpoint of the service.
|
|
110
|
+
*/
|
|
111
|
+
set endpoint(endpoint) {
|
|
112
|
+
this._endpoint = endpoint;
|
|
113
|
+
this._endpoint = this._endpoint + "/20220901";
|
|
114
|
+
if (this.logger)
|
|
115
|
+
this.logger.info(`MarketplacePublisherClient endpoint set to ${this._endpoint}`);
|
|
116
|
+
}
|
|
117
|
+
get logger() {
|
|
118
|
+
return common.LOG.logger;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
122
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
123
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
124
|
+
*/
|
|
125
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
126
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
127
|
+
if (this.logger)
|
|
128
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
129
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
130
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MarketplacePublisherClient.serviceEndpointTemplate, this._region, MarketplacePublisherClient.endpointServiceName);
|
|
131
|
+
}
|
|
132
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
133
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MarketplacePublisherClient.serviceEndpointTemplate, this._regionId, MarketplacePublisherClient.endpointServiceName);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
138
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
139
|
+
* @param region The region of the service.
|
|
140
|
+
*/
|
|
141
|
+
set region(region) {
|
|
142
|
+
this._region = region;
|
|
143
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MarketplacePublisherClient.serviceEndpointTemplate, region, MarketplacePublisherClient.endpointServiceName);
|
|
144
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
148
|
+
*
|
|
149
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
150
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
151
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
152
|
+
* @param regionId The public region ID.
|
|
153
|
+
*/
|
|
154
|
+
set regionId(regionId) {
|
|
155
|
+
this._regionId = regionId;
|
|
156
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MarketplacePublisherClient.serviceEndpointTemplate, regionId, MarketplacePublisherClient.endpointServiceName);
|
|
157
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new MarketplacePublisherWaiter for resources for this service.
|
|
161
|
+
*
|
|
162
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
163
|
+
* @return The service waiters.
|
|
164
|
+
*/
|
|
165
|
+
createWaiters(config) {
|
|
166
|
+
this._waiters = new marketplacepublisher_waiter_1.MarketplacePublisherWaiter(this, config);
|
|
167
|
+
return this._waiters;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Gets the waiters available for resources for this service.
|
|
171
|
+
*
|
|
172
|
+
* @return The service waiters.
|
|
173
|
+
*/
|
|
174
|
+
getWaiters() {
|
|
175
|
+
if (this._waiters) {
|
|
176
|
+
return this._waiters;
|
|
177
|
+
}
|
|
178
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Mark the Term Version identified by the id as active
|
|
182
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
183
|
+
* @param ActivateTermVersionRequest
|
|
184
|
+
* @return ActivateTermVersionResponse
|
|
185
|
+
* @throws OciError when an error occurs
|
|
186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ActivateTermVersion.ts.html |here} to see how to use ActivateTermVersion API.
|
|
187
|
+
*/
|
|
188
|
+
activateTermVersion(activateTermVersionRequest) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (this.logger)
|
|
191
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#activateTermVersion.");
|
|
192
|
+
const operationName = "activateTermVersion";
|
|
193
|
+
const apiReferenceLink = "";
|
|
194
|
+
const pathParams = {
|
|
195
|
+
"{termVersionId}": activateTermVersionRequest.termVersionId
|
|
196
|
+
};
|
|
197
|
+
const queryParams = {};
|
|
198
|
+
let headerParams = {
|
|
199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
200
|
+
"if-match": activateTermVersionRequest.ifMatch,
|
|
201
|
+
"opc-request-id": activateTermVersionRequest.opcRequestId
|
|
202
|
+
};
|
|
203
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
204
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateTermVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
205
|
+
if (this.logger)
|
|
206
|
+
retrier.logger = this.logger;
|
|
207
|
+
const request = yield oci_common_1.composeRequest({
|
|
208
|
+
baseEndpoint: this._endpoint,
|
|
209
|
+
defaultHeaders: this._defaultHeaders,
|
|
210
|
+
path: "/termVersions/{termVersionId}/actions/Activate",
|
|
211
|
+
method: "POST",
|
|
212
|
+
pathParams: pathParams,
|
|
213
|
+
headerParams: headerParams,
|
|
214
|
+
queryParams: queryParams
|
|
215
|
+
});
|
|
216
|
+
try {
|
|
217
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
218
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
219
|
+
responseObject: {},
|
|
220
|
+
body: yield response.json(),
|
|
221
|
+
bodyKey: "termVersion",
|
|
222
|
+
bodyModel: model.TermVersion,
|
|
223
|
+
type: "model.TermVersion",
|
|
224
|
+
responseHeaders: [
|
|
225
|
+
{
|
|
226
|
+
value: response.headers.get("etag"),
|
|
227
|
+
key: "etag",
|
|
228
|
+
dataType: "string"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
value: response.headers.get("opc-request-id"),
|
|
232
|
+
key: "opcRequestId",
|
|
233
|
+
dataType: "string"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
});
|
|
237
|
+
return sdkResponse;
|
|
238
|
+
}
|
|
239
|
+
catch (err) {
|
|
240
|
+
throw err;
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Cancels the work request with the given ID.
|
|
246
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
247
|
+
* @param CancelWorkRequestRequest
|
|
248
|
+
* @return CancelWorkRequestResponse
|
|
249
|
+
* @throws OciError when an error occurs
|
|
250
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
251
|
+
*/
|
|
252
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
if (this.logger)
|
|
255
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#cancelWorkRequest.");
|
|
256
|
+
const operationName = "cancelWorkRequest";
|
|
257
|
+
const apiReferenceLink = "";
|
|
258
|
+
const pathParams = {
|
|
259
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
260
|
+
};
|
|
261
|
+
const queryParams = {};
|
|
262
|
+
let headerParams = {
|
|
263
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
264
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
265
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
266
|
+
};
|
|
267
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
268
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
269
|
+
if (this.logger)
|
|
270
|
+
retrier.logger = this.logger;
|
|
271
|
+
const request = yield oci_common_1.composeRequest({
|
|
272
|
+
baseEndpoint: this._endpoint,
|
|
273
|
+
defaultHeaders: this._defaultHeaders,
|
|
274
|
+
path: "/workRequests/{workRequestId}",
|
|
275
|
+
method: "DELETE",
|
|
276
|
+
pathParams: pathParams,
|
|
277
|
+
headerParams: headerParams,
|
|
278
|
+
queryParams: queryParams
|
|
279
|
+
});
|
|
280
|
+
try {
|
|
281
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
282
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
283
|
+
responseObject: {},
|
|
284
|
+
responseHeaders: [
|
|
285
|
+
{
|
|
286
|
+
value: response.headers.get("opc-request-id"),
|
|
287
|
+
key: "opcRequestId",
|
|
288
|
+
dataType: "string"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
});
|
|
292
|
+
return sdkResponse;
|
|
293
|
+
}
|
|
294
|
+
catch (err) {
|
|
295
|
+
throw err;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Cascade delete the listing and its subresources.
|
|
301
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
302
|
+
* @param CascadingDeleteListingRequest
|
|
303
|
+
* @return CascadingDeleteListingResponse
|
|
304
|
+
* @throws OciError when an error occurs
|
|
305
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CascadingDeleteListing.ts.html |here} to see how to use CascadingDeleteListing API.
|
|
306
|
+
*/
|
|
307
|
+
cascadingDeleteListing(cascadingDeleteListingRequest) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
if (this.logger)
|
|
310
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#cascadingDeleteListing.");
|
|
311
|
+
const operationName = "cascadingDeleteListing";
|
|
312
|
+
const apiReferenceLink = "";
|
|
313
|
+
const pathParams = {
|
|
314
|
+
"{listingId}": cascadingDeleteListingRequest.listingId
|
|
315
|
+
};
|
|
316
|
+
const queryParams = {};
|
|
317
|
+
let headerParams = {
|
|
318
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
319
|
+
"if-match": cascadingDeleteListingRequest.ifMatch,
|
|
320
|
+
"opc-request-id": cascadingDeleteListingRequest.opcRequestId,
|
|
321
|
+
"opc-retry-token": cascadingDeleteListingRequest.opcRetryToken
|
|
322
|
+
};
|
|
323
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
324
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cascadingDeleteListingRequest.retryConfiguration, specRetryConfiguration);
|
|
325
|
+
if (this.logger)
|
|
326
|
+
retrier.logger = this.logger;
|
|
327
|
+
const request = yield oci_common_1.composeRequest({
|
|
328
|
+
baseEndpoint: this._endpoint,
|
|
329
|
+
defaultHeaders: this._defaultHeaders,
|
|
330
|
+
path: "/listings/{listingId}/actions/cascadingDelete",
|
|
331
|
+
method: "POST",
|
|
332
|
+
pathParams: pathParams,
|
|
333
|
+
headerParams: headerParams,
|
|
334
|
+
queryParams: queryParams
|
|
335
|
+
});
|
|
336
|
+
try {
|
|
337
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
338
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
339
|
+
responseObject: {},
|
|
340
|
+
responseHeaders: [
|
|
341
|
+
{
|
|
342
|
+
value: response.headers.get("opc-work-request-id"),
|
|
343
|
+
key: "opcWorkRequestId",
|
|
344
|
+
dataType: "string"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
value: response.headers.get("opc-request-id"),
|
|
348
|
+
key: "opcRequestId",
|
|
349
|
+
dataType: "string"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
});
|
|
353
|
+
return sdkResponse;
|
|
354
|
+
}
|
|
355
|
+
catch (err) {
|
|
356
|
+
throw err;
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Cascade delete listing revision and its subresources.
|
|
362
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
363
|
+
* @param CascadingDeleteListingRevisionRequest
|
|
364
|
+
* @return CascadingDeleteListingRevisionResponse
|
|
365
|
+
* @throws OciError when an error occurs
|
|
366
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CascadingDeleteListingRevision.ts.html |here} to see how to use CascadingDeleteListingRevision API.
|
|
367
|
+
*/
|
|
368
|
+
cascadingDeleteListingRevision(cascadingDeleteListingRevisionRequest) {
|
|
369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
370
|
+
if (this.logger)
|
|
371
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#cascadingDeleteListingRevision.");
|
|
372
|
+
const operationName = "cascadingDeleteListingRevision";
|
|
373
|
+
const apiReferenceLink = "";
|
|
374
|
+
const pathParams = {
|
|
375
|
+
"{listingRevisionId}": cascadingDeleteListingRevisionRequest.listingRevisionId
|
|
376
|
+
};
|
|
377
|
+
const queryParams = {};
|
|
378
|
+
let headerParams = {
|
|
379
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
380
|
+
"if-match": cascadingDeleteListingRevisionRequest.ifMatch,
|
|
381
|
+
"opc-request-id": cascadingDeleteListingRevisionRequest.opcRequestId,
|
|
382
|
+
"opc-retry-token": cascadingDeleteListingRevisionRequest.opcRetryToken
|
|
383
|
+
};
|
|
384
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
385
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cascadingDeleteListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
386
|
+
if (this.logger)
|
|
387
|
+
retrier.logger = this.logger;
|
|
388
|
+
const request = yield oci_common_1.composeRequest({
|
|
389
|
+
baseEndpoint: this._endpoint,
|
|
390
|
+
defaultHeaders: this._defaultHeaders,
|
|
391
|
+
path: "/listingRevisions/{listingRevisionId}/actions/cascadingDelete",
|
|
392
|
+
method: "POST",
|
|
393
|
+
pathParams: pathParams,
|
|
394
|
+
headerParams: headerParams,
|
|
395
|
+
queryParams: queryParams
|
|
396
|
+
});
|
|
397
|
+
try {
|
|
398
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
399
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
400
|
+
responseObject: {},
|
|
401
|
+
responseHeaders: [
|
|
402
|
+
{
|
|
403
|
+
value: response.headers.get("opc-work-request-id"),
|
|
404
|
+
key: "opcWorkRequestId",
|
|
405
|
+
dataType: "string"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
value: response.headers.get("opc-request-id"),
|
|
409
|
+
key: "opcRequestId",
|
|
410
|
+
dataType: "string"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
});
|
|
414
|
+
return sdkResponse;
|
|
415
|
+
}
|
|
416
|
+
catch (err) {
|
|
417
|
+
throw err;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Moves the specified artifact to the specified compartment within the same tenancy.
|
|
423
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
424
|
+
* @param ChangeArtifactCompartmentRequest
|
|
425
|
+
* @return ChangeArtifactCompartmentResponse
|
|
426
|
+
* @throws OciError when an error occurs
|
|
427
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ChangeArtifactCompartment.ts.html |here} to see how to use ChangeArtifactCompartment API.
|
|
428
|
+
*/
|
|
429
|
+
changeArtifactCompartment(changeArtifactCompartmentRequest) {
|
|
430
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
if (this.logger)
|
|
432
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#changeArtifactCompartment.");
|
|
433
|
+
const operationName = "changeArtifactCompartment";
|
|
434
|
+
const apiReferenceLink = "";
|
|
435
|
+
const pathParams = {
|
|
436
|
+
"{artifactId}": changeArtifactCompartmentRequest.artifactId
|
|
437
|
+
};
|
|
438
|
+
const queryParams = {};
|
|
439
|
+
let headerParams = {
|
|
440
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
441
|
+
"opc-retry-token": changeArtifactCompartmentRequest.opcRetryToken,
|
|
442
|
+
"opc-request-id": changeArtifactCompartmentRequest.opcRequestId,
|
|
443
|
+
"if-match": changeArtifactCompartmentRequest.ifMatch
|
|
444
|
+
};
|
|
445
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
446
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeArtifactCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
447
|
+
if (this.logger)
|
|
448
|
+
retrier.logger = this.logger;
|
|
449
|
+
const request = yield oci_common_1.composeRequest({
|
|
450
|
+
baseEndpoint: this._endpoint,
|
|
451
|
+
defaultHeaders: this._defaultHeaders,
|
|
452
|
+
path: "/artifacts/{artifactId}/actions/changeCompartment",
|
|
453
|
+
method: "POST",
|
|
454
|
+
bodyContent: common.ObjectSerializer.serialize(changeArtifactCompartmentRequest.changeArtifactCompartmentDetails, "ChangeArtifactCompartmentDetails", model.ChangeArtifactCompartmentDetails.getJsonObj),
|
|
455
|
+
pathParams: pathParams,
|
|
456
|
+
headerParams: headerParams,
|
|
457
|
+
queryParams: queryParams
|
|
458
|
+
});
|
|
459
|
+
try {
|
|
460
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
461
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
462
|
+
responseObject: {},
|
|
463
|
+
responseHeaders: [
|
|
464
|
+
{
|
|
465
|
+
value: response.headers.get("opc-request-id"),
|
|
466
|
+
key: "opcRequestId",
|
|
467
|
+
dataType: "string"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
});
|
|
471
|
+
return sdkResponse;
|
|
472
|
+
}
|
|
473
|
+
catch (err) {
|
|
474
|
+
throw err;
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Moves a listing from one compartment to another
|
|
480
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
481
|
+
* @param ChangeListingCompartmentRequest
|
|
482
|
+
* @return ChangeListingCompartmentResponse
|
|
483
|
+
* @throws OciError when an error occurs
|
|
484
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ChangeListingCompartment.ts.html |here} to see how to use ChangeListingCompartment API.
|
|
485
|
+
*/
|
|
486
|
+
changeListingCompartment(changeListingCompartmentRequest) {
|
|
487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
488
|
+
if (this.logger)
|
|
489
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#changeListingCompartment.");
|
|
490
|
+
const operationName = "changeListingCompartment";
|
|
491
|
+
const apiReferenceLink = "";
|
|
492
|
+
const pathParams = {
|
|
493
|
+
"{listingId}": changeListingCompartmentRequest.listingId
|
|
494
|
+
};
|
|
495
|
+
const queryParams = {};
|
|
496
|
+
let headerParams = {
|
|
497
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
498
|
+
"opc-retry-token": changeListingCompartmentRequest.opcRetryToken,
|
|
499
|
+
"opc-request-id": changeListingCompartmentRequest.opcRequestId,
|
|
500
|
+
"if-match": changeListingCompartmentRequest.ifMatch
|
|
501
|
+
};
|
|
502
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
503
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeListingCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
504
|
+
if (this.logger)
|
|
505
|
+
retrier.logger = this.logger;
|
|
506
|
+
const request = yield oci_common_1.composeRequest({
|
|
507
|
+
baseEndpoint: this._endpoint,
|
|
508
|
+
defaultHeaders: this._defaultHeaders,
|
|
509
|
+
path: "/listings/{listingId}/actions/changeCompartment",
|
|
510
|
+
method: "POST",
|
|
511
|
+
bodyContent: common.ObjectSerializer.serialize(changeListingCompartmentRequest.changeListingCompartmentDetails, "ChangeListingCompartmentDetails", model.ChangeListingCompartmentDetails.getJsonObj),
|
|
512
|
+
pathParams: pathParams,
|
|
513
|
+
headerParams: headerParams,
|
|
514
|
+
queryParams: queryParams
|
|
515
|
+
});
|
|
516
|
+
try {
|
|
517
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
518
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
519
|
+
responseObject: {},
|
|
520
|
+
responseHeaders: [
|
|
521
|
+
{
|
|
522
|
+
value: response.headers.get("opc-request-id"),
|
|
523
|
+
key: "opcRequestId",
|
|
524
|
+
dataType: "string"
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
});
|
|
528
|
+
return sdkResponse;
|
|
529
|
+
}
|
|
530
|
+
catch (err) {
|
|
531
|
+
throw err;
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Updates the Listing Revision to New status
|
|
537
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
538
|
+
* @param ChangeListingRevisionToNewStatusRequest
|
|
539
|
+
* @return ChangeListingRevisionToNewStatusResponse
|
|
540
|
+
* @throws OciError when an error occurs
|
|
541
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ChangeListingRevisionToNewStatus.ts.html |here} to see how to use ChangeListingRevisionToNewStatus API.
|
|
542
|
+
*/
|
|
543
|
+
changeListingRevisionToNewStatus(changeListingRevisionToNewStatusRequest) {
|
|
544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
+
if (this.logger)
|
|
546
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#changeListingRevisionToNewStatus.");
|
|
547
|
+
const operationName = "changeListingRevisionToNewStatus";
|
|
548
|
+
const apiReferenceLink = "";
|
|
549
|
+
const pathParams = {
|
|
550
|
+
"{listingRevisionId}": changeListingRevisionToNewStatusRequest.listingRevisionId
|
|
551
|
+
};
|
|
552
|
+
const queryParams = {};
|
|
553
|
+
let headerParams = {
|
|
554
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
555
|
+
"if-match": changeListingRevisionToNewStatusRequest.ifMatch,
|
|
556
|
+
"opc-request-id": changeListingRevisionToNewStatusRequest.opcRequestId
|
|
557
|
+
};
|
|
558
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
559
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeListingRevisionToNewStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
560
|
+
if (this.logger)
|
|
561
|
+
retrier.logger = this.logger;
|
|
562
|
+
const request = yield oci_common_1.composeRequest({
|
|
563
|
+
baseEndpoint: this._endpoint,
|
|
564
|
+
defaultHeaders: this._defaultHeaders,
|
|
565
|
+
path: "/listingRevisions/{listingRevisionId}/actions/changeToNewStatus",
|
|
566
|
+
method: "POST",
|
|
567
|
+
pathParams: pathParams,
|
|
568
|
+
headerParams: headerParams,
|
|
569
|
+
queryParams: queryParams
|
|
570
|
+
});
|
|
571
|
+
try {
|
|
572
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
573
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
574
|
+
responseObject: {},
|
|
575
|
+
body: yield response.json(),
|
|
576
|
+
bodyKey: "listingRevision",
|
|
577
|
+
bodyModel: model.ListingRevision,
|
|
578
|
+
type: "model.ListingRevision",
|
|
579
|
+
responseHeaders: [
|
|
580
|
+
{
|
|
581
|
+
value: response.headers.get("etag"),
|
|
582
|
+
key: "etag",
|
|
583
|
+
dataType: "string"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
value: response.headers.get("opc-request-id"),
|
|
587
|
+
key: "opcRequestId",
|
|
588
|
+
dataType: "string"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
});
|
|
592
|
+
return sdkResponse;
|
|
593
|
+
}
|
|
594
|
+
catch (err) {
|
|
595
|
+
throw err;
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Moves a term from one compartment to another
|
|
601
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
602
|
+
* @param ChangeTermCompartmentRequest
|
|
603
|
+
* @return ChangeTermCompartmentResponse
|
|
604
|
+
* @throws OciError when an error occurs
|
|
605
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ChangeTermCompartment.ts.html |here} to see how to use ChangeTermCompartment API.
|
|
606
|
+
*/
|
|
607
|
+
changeTermCompartment(changeTermCompartmentRequest) {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
if (this.logger)
|
|
610
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#changeTermCompartment.");
|
|
611
|
+
const operationName = "changeTermCompartment";
|
|
612
|
+
const apiReferenceLink = "";
|
|
613
|
+
const pathParams = {
|
|
614
|
+
"{termId}": changeTermCompartmentRequest.termId
|
|
615
|
+
};
|
|
616
|
+
const queryParams = {};
|
|
617
|
+
let headerParams = {
|
|
618
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
619
|
+
"opc-retry-token": changeTermCompartmentRequest.opcRetryToken,
|
|
620
|
+
"opc-request-id": changeTermCompartmentRequest.opcRequestId,
|
|
621
|
+
"if-match": changeTermCompartmentRequest.ifMatch
|
|
622
|
+
};
|
|
623
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
624
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeTermCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
625
|
+
if (this.logger)
|
|
626
|
+
retrier.logger = this.logger;
|
|
627
|
+
const request = yield oci_common_1.composeRequest({
|
|
628
|
+
baseEndpoint: this._endpoint,
|
|
629
|
+
defaultHeaders: this._defaultHeaders,
|
|
630
|
+
path: "/terms/{termId}/actions/changeCompartment",
|
|
631
|
+
method: "POST",
|
|
632
|
+
bodyContent: common.ObjectSerializer.serialize(changeTermCompartmentRequest.changeTermCompartmentDetails, "ChangeTermCompartmentDetails", model.ChangeTermCompartmentDetails.getJsonObj),
|
|
633
|
+
pathParams: pathParams,
|
|
634
|
+
headerParams: headerParams,
|
|
635
|
+
queryParams: queryParams
|
|
636
|
+
});
|
|
637
|
+
try {
|
|
638
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
639
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
640
|
+
responseObject: {},
|
|
641
|
+
responseHeaders: [
|
|
642
|
+
{
|
|
643
|
+
value: response.headers.get("opc-request-id"),
|
|
644
|
+
key: "opcRequestId",
|
|
645
|
+
dataType: "string"
|
|
646
|
+
}
|
|
647
|
+
]
|
|
648
|
+
});
|
|
649
|
+
return sdkResponse;
|
|
650
|
+
}
|
|
651
|
+
catch (err) {
|
|
652
|
+
throw err;
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Clone the published/withdrawn Listing Revision identified by the identifier.
|
|
658
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
659
|
+
* @param CloneListingRevisionRequest
|
|
660
|
+
* @return CloneListingRevisionResponse
|
|
661
|
+
* @throws OciError when an error occurs
|
|
662
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CloneListingRevision.ts.html |here} to see how to use CloneListingRevision API.
|
|
663
|
+
*/
|
|
664
|
+
cloneListingRevision(cloneListingRevisionRequest) {
|
|
665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
+
if (this.logger)
|
|
667
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#cloneListingRevision.");
|
|
668
|
+
const operationName = "cloneListingRevision";
|
|
669
|
+
const apiReferenceLink = "";
|
|
670
|
+
const pathParams = {
|
|
671
|
+
"{listingRevisionId}": cloneListingRevisionRequest.listingRevisionId
|
|
672
|
+
};
|
|
673
|
+
const queryParams = {};
|
|
674
|
+
let headerParams = {
|
|
675
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
676
|
+
"if-match": cloneListingRevisionRequest.ifMatch,
|
|
677
|
+
"opc-request-id": cloneListingRevisionRequest.opcRequestId,
|
|
678
|
+
"opc-retry-token": cloneListingRevisionRequest.opcRetryToken
|
|
679
|
+
};
|
|
680
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
681
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cloneListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
682
|
+
if (this.logger)
|
|
683
|
+
retrier.logger = this.logger;
|
|
684
|
+
const request = yield oci_common_1.composeRequest({
|
|
685
|
+
baseEndpoint: this._endpoint,
|
|
686
|
+
defaultHeaders: this._defaultHeaders,
|
|
687
|
+
path: "/listingRevisions/{listingRevisionId}/actions/clone",
|
|
688
|
+
method: "POST",
|
|
689
|
+
pathParams: pathParams,
|
|
690
|
+
headerParams: headerParams,
|
|
691
|
+
queryParams: queryParams
|
|
692
|
+
});
|
|
693
|
+
try {
|
|
694
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
695
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
696
|
+
responseObject: {},
|
|
697
|
+
responseHeaders: [
|
|
698
|
+
{
|
|
699
|
+
value: response.headers.get("opc-work-request-id"),
|
|
700
|
+
key: "opcWorkRequestId",
|
|
701
|
+
dataType: "string"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
value: response.headers.get("opc-request-id"),
|
|
705
|
+
key: "opcRequestId",
|
|
706
|
+
dataType: "string"
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
});
|
|
710
|
+
return sdkResponse;
|
|
711
|
+
}
|
|
712
|
+
catch (err) {
|
|
713
|
+
throw err;
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Creates a new artifact in your compartment.
|
|
719
|
+
* You must specify your compartment ID in the request object.
|
|
720
|
+
* <p>
|
|
721
|
+
You must also specify a *name* for the artifact(although it can be an empty string). It does not
|
|
722
|
+
* have to be unique, and you can change it anytime with {@link #updateArtifact(UpdateArtifactRequest) updateArtifact}..
|
|
723
|
+
* <p>
|
|
724
|
+
You must also specify a *artifactType* for the artifact. Allowed values are CONTAINER_IMAGE and HELM_CHART
|
|
725
|
+
* <p>
|
|
726
|
+
You must also provide the container or helm chart registry details for the corresponding images.
|
|
727
|
+
* Oracle container registry details (Registry/Concepts/registryoverview.htm).
|
|
728
|
+
* <p>
|
|
729
|
+
After you send your request, the new object's `status` will temporarily be IN_PROGRESS and `lifecycleState` will be CREATING.
|
|
730
|
+
* Before using the object, first make sure its `lifecycleState` has changed to ACTIVE and the status has changed to \u2018AVAILABLE\u2019 for the new Artifact.
|
|
731
|
+
*
|
|
732
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
733
|
+
* @param CreateArtifactRequest
|
|
734
|
+
* @return CreateArtifactResponse
|
|
735
|
+
* @throws OciError when an error occurs
|
|
736
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateArtifact.ts.html |here} to see how to use CreateArtifact API.
|
|
737
|
+
*/
|
|
738
|
+
createArtifact(createArtifactRequest) {
|
|
739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
740
|
+
if (this.logger)
|
|
741
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createArtifact.");
|
|
742
|
+
const operationName = "createArtifact";
|
|
743
|
+
const apiReferenceLink = "";
|
|
744
|
+
const pathParams = {};
|
|
745
|
+
const queryParams = {};
|
|
746
|
+
let headerParams = {
|
|
747
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
748
|
+
"opc-retry-token": createArtifactRequest.opcRetryToken,
|
|
749
|
+
"opc-request-id": createArtifactRequest.opcRequestId
|
|
750
|
+
};
|
|
751
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
752
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
753
|
+
if (this.logger)
|
|
754
|
+
retrier.logger = this.logger;
|
|
755
|
+
const request = yield oci_common_1.composeRequest({
|
|
756
|
+
baseEndpoint: this._endpoint,
|
|
757
|
+
defaultHeaders: this._defaultHeaders,
|
|
758
|
+
path: "/artifacts",
|
|
759
|
+
method: "POST",
|
|
760
|
+
bodyContent: common.ObjectSerializer.serialize(createArtifactRequest.createArtifactDetails, "CreateArtifactDetails", model.CreateArtifactDetails.getJsonObj),
|
|
761
|
+
pathParams: pathParams,
|
|
762
|
+
headerParams: headerParams,
|
|
763
|
+
queryParams: queryParams
|
|
764
|
+
});
|
|
765
|
+
try {
|
|
766
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
767
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
768
|
+
responseObject: {},
|
|
769
|
+
responseHeaders: [
|
|
770
|
+
{
|
|
771
|
+
value: response.headers.get("opc-work-request-id"),
|
|
772
|
+
key: "opcWorkRequestId",
|
|
773
|
+
dataType: "string"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
value: response.headers.get("opc-request-id"),
|
|
777
|
+
key: "opcRequestId",
|
|
778
|
+
dataType: "string"
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
});
|
|
782
|
+
return sdkResponse;
|
|
783
|
+
}
|
|
784
|
+
catch (err) {
|
|
785
|
+
throw err;
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Creates a new listing in your compartment.
|
|
791
|
+
* You must specify your compartment ID in the request object.
|
|
792
|
+
* <p>
|
|
793
|
+
You must also specify a *name* for the listing and cannot be updated later.
|
|
794
|
+
* <p>
|
|
795
|
+
You must also specify a *packageType* for the listing. Allowed values are CONTAINER_IMAGE and HELM_CHART
|
|
796
|
+
* <p>
|
|
797
|
+
After you send your request, the new object's `lifecycleState` will be CREATING.
|
|
798
|
+
* Before using the object, first make sure its `lifecycleState` has changed to ACTIVE.
|
|
799
|
+
*
|
|
800
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
801
|
+
* @param CreateListingRequest
|
|
802
|
+
* @return CreateListingResponse
|
|
803
|
+
* @throws OciError when an error occurs
|
|
804
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateListing.ts.html |here} to see how to use CreateListing API.
|
|
805
|
+
*/
|
|
806
|
+
createListing(createListingRequest) {
|
|
807
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
808
|
+
if (this.logger)
|
|
809
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createListing.");
|
|
810
|
+
const operationName = "createListing";
|
|
811
|
+
const apiReferenceLink = "";
|
|
812
|
+
const pathParams = {};
|
|
813
|
+
const queryParams = {};
|
|
814
|
+
let headerParams = {
|
|
815
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
816
|
+
"opc-retry-token": createListingRequest.opcRetryToken,
|
|
817
|
+
"opc-request-id": createListingRequest.opcRequestId
|
|
818
|
+
};
|
|
819
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
820
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createListingRequest.retryConfiguration, specRetryConfiguration);
|
|
821
|
+
if (this.logger)
|
|
822
|
+
retrier.logger = this.logger;
|
|
823
|
+
const request = yield oci_common_1.composeRequest({
|
|
824
|
+
baseEndpoint: this._endpoint,
|
|
825
|
+
defaultHeaders: this._defaultHeaders,
|
|
826
|
+
path: "/listings",
|
|
827
|
+
method: "POST",
|
|
828
|
+
bodyContent: common.ObjectSerializer.serialize(createListingRequest.createListingDetails, "CreateListingDetails", model.CreateListingDetails.getJsonObj),
|
|
829
|
+
pathParams: pathParams,
|
|
830
|
+
headerParams: headerParams,
|
|
831
|
+
queryParams: queryParams
|
|
832
|
+
});
|
|
833
|
+
try {
|
|
834
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
835
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
836
|
+
responseObject: {},
|
|
837
|
+
body: yield response.json(),
|
|
838
|
+
bodyKey: "listing",
|
|
839
|
+
bodyModel: model.Listing,
|
|
840
|
+
type: "model.Listing",
|
|
841
|
+
responseHeaders: [
|
|
842
|
+
{
|
|
843
|
+
value: response.headers.get("etag"),
|
|
844
|
+
key: "etag",
|
|
845
|
+
dataType: "string"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
value: response.headers.get("opc-request-id"),
|
|
849
|
+
key: "opcRequestId",
|
|
850
|
+
dataType: "string"
|
|
851
|
+
}
|
|
852
|
+
]
|
|
853
|
+
});
|
|
854
|
+
return sdkResponse;
|
|
855
|
+
}
|
|
856
|
+
catch (err) {
|
|
857
|
+
throw err;
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Creates a new Listing Revision.
|
|
863
|
+
*
|
|
864
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
865
|
+
* @param CreateListingRevisionRequest
|
|
866
|
+
* @return CreateListingRevisionResponse
|
|
867
|
+
* @throws OciError when an error occurs
|
|
868
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateListingRevision.ts.html |here} to see how to use CreateListingRevision API.
|
|
869
|
+
*/
|
|
870
|
+
createListingRevision(createListingRevisionRequest) {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
if (this.logger)
|
|
873
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createListingRevision.");
|
|
874
|
+
const operationName = "createListingRevision";
|
|
875
|
+
const apiReferenceLink = "";
|
|
876
|
+
const pathParams = {};
|
|
877
|
+
const queryParams = {};
|
|
878
|
+
let headerParams = {
|
|
879
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
880
|
+
"opc-retry-token": createListingRevisionRequest.opcRetryToken,
|
|
881
|
+
"opc-request-id": createListingRevisionRequest.opcRequestId
|
|
882
|
+
};
|
|
883
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
884
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
885
|
+
if (this.logger)
|
|
886
|
+
retrier.logger = this.logger;
|
|
887
|
+
const request = yield oci_common_1.composeRequest({
|
|
888
|
+
baseEndpoint: this._endpoint,
|
|
889
|
+
defaultHeaders: this._defaultHeaders,
|
|
890
|
+
path: "/listingRevisions",
|
|
891
|
+
method: "POST",
|
|
892
|
+
bodyContent: common.ObjectSerializer.serialize(createListingRevisionRequest.createListingRevisionDetails, "CreateListingRevisionDetails", model.CreateListingRevisionDetails.getJsonObj),
|
|
893
|
+
pathParams: pathParams,
|
|
894
|
+
headerParams: headerParams,
|
|
895
|
+
queryParams: queryParams
|
|
896
|
+
});
|
|
897
|
+
try {
|
|
898
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
899
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
900
|
+
responseObject: {},
|
|
901
|
+
body: yield response.json(),
|
|
902
|
+
bodyKey: "listingRevision",
|
|
903
|
+
bodyModel: model.ListingRevision,
|
|
904
|
+
type: "model.ListingRevision",
|
|
905
|
+
responseHeaders: [
|
|
906
|
+
{
|
|
907
|
+
value: response.headers.get("etag"),
|
|
908
|
+
key: "etag",
|
|
909
|
+
dataType: "string"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
value: response.headers.get("opc-request-id"),
|
|
913
|
+
key: "opcRequestId",
|
|
914
|
+
dataType: "string"
|
|
915
|
+
}
|
|
916
|
+
]
|
|
917
|
+
});
|
|
918
|
+
return sdkResponse;
|
|
919
|
+
}
|
|
920
|
+
catch (err) {
|
|
921
|
+
throw err;
|
|
922
|
+
}
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Creates a new listing revision attachment.
|
|
927
|
+
*
|
|
928
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
929
|
+
* @param CreateListingRevisionAttachmentRequest
|
|
930
|
+
* @return CreateListingRevisionAttachmentResponse
|
|
931
|
+
* @throws OciError when an error occurs
|
|
932
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateListingRevisionAttachment.ts.html |here} to see how to use CreateListingRevisionAttachment API.
|
|
933
|
+
*/
|
|
934
|
+
createListingRevisionAttachment(createListingRevisionAttachmentRequest) {
|
|
935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
936
|
+
if (this.logger)
|
|
937
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createListingRevisionAttachment.");
|
|
938
|
+
const operationName = "createListingRevisionAttachment";
|
|
939
|
+
const apiReferenceLink = "";
|
|
940
|
+
const pathParams = {};
|
|
941
|
+
const queryParams = {};
|
|
942
|
+
let headerParams = {
|
|
943
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
944
|
+
"opc-retry-token": createListingRevisionAttachmentRequest.opcRetryToken,
|
|
945
|
+
"opc-request-id": createListingRevisionAttachmentRequest.opcRequestId
|
|
946
|
+
};
|
|
947
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
948
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createListingRevisionAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
949
|
+
if (this.logger)
|
|
950
|
+
retrier.logger = this.logger;
|
|
951
|
+
const request = yield oci_common_1.composeRequest({
|
|
952
|
+
baseEndpoint: this._endpoint,
|
|
953
|
+
defaultHeaders: this._defaultHeaders,
|
|
954
|
+
path: "/listingRevisionAttachments",
|
|
955
|
+
method: "POST",
|
|
956
|
+
bodyContent: common.ObjectSerializer.serialize(createListingRevisionAttachmentRequest.createListingRevisionAttachmentDetails, "CreateListingRevisionAttachmentDetails", model.CreateListingRevisionAttachmentDetails.getJsonObj),
|
|
957
|
+
pathParams: pathParams,
|
|
958
|
+
headerParams: headerParams,
|
|
959
|
+
queryParams: queryParams
|
|
960
|
+
});
|
|
961
|
+
try {
|
|
962
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
963
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
964
|
+
responseObject: {},
|
|
965
|
+
body: yield response.json(),
|
|
966
|
+
bodyKey: "listingRevisionAttachment",
|
|
967
|
+
bodyModel: model.ListingRevisionAttachment,
|
|
968
|
+
type: "model.ListingRevisionAttachment",
|
|
969
|
+
responseHeaders: [
|
|
970
|
+
{
|
|
971
|
+
value: response.headers.get("opc-request-id"),
|
|
972
|
+
key: "opcRequestId",
|
|
973
|
+
dataType: "string"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
value: response.headers.get("etag"),
|
|
977
|
+
key: "etag",
|
|
978
|
+
dataType: "string"
|
|
979
|
+
}
|
|
980
|
+
]
|
|
981
|
+
});
|
|
982
|
+
return sdkResponse;
|
|
983
|
+
}
|
|
984
|
+
catch (err) {
|
|
985
|
+
throw err;
|
|
986
|
+
}
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Creates a new Listing Revision Note.
|
|
991
|
+
*
|
|
992
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
993
|
+
* @param CreateListingRevisionNoteRequest
|
|
994
|
+
* @return CreateListingRevisionNoteResponse
|
|
995
|
+
* @throws OciError when an error occurs
|
|
996
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateListingRevisionNote.ts.html |here} to see how to use CreateListingRevisionNote API.
|
|
997
|
+
*/
|
|
998
|
+
createListingRevisionNote(createListingRevisionNoteRequest) {
|
|
999
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1000
|
+
if (this.logger)
|
|
1001
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createListingRevisionNote.");
|
|
1002
|
+
const operationName = "createListingRevisionNote";
|
|
1003
|
+
const apiReferenceLink = "";
|
|
1004
|
+
const pathParams = {};
|
|
1005
|
+
const queryParams = {};
|
|
1006
|
+
let headerParams = {
|
|
1007
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1008
|
+
"opc-retry-token": createListingRevisionNoteRequest.opcRetryToken,
|
|
1009
|
+
"opc-request-id": createListingRevisionNoteRequest.opcRequestId
|
|
1010
|
+
};
|
|
1011
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1012
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createListingRevisionNoteRequest.retryConfiguration, specRetryConfiguration);
|
|
1013
|
+
if (this.logger)
|
|
1014
|
+
retrier.logger = this.logger;
|
|
1015
|
+
const request = yield oci_common_1.composeRequest({
|
|
1016
|
+
baseEndpoint: this._endpoint,
|
|
1017
|
+
defaultHeaders: this._defaultHeaders,
|
|
1018
|
+
path: "/listingRevisionNotes",
|
|
1019
|
+
method: "POST",
|
|
1020
|
+
bodyContent: common.ObjectSerializer.serialize(createListingRevisionNoteRequest.createListingRevisionNoteDetails, "CreateListingRevisionNoteDetails", model.CreateListingRevisionNoteDetails.getJsonObj),
|
|
1021
|
+
pathParams: pathParams,
|
|
1022
|
+
headerParams: headerParams,
|
|
1023
|
+
queryParams: queryParams
|
|
1024
|
+
});
|
|
1025
|
+
try {
|
|
1026
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1027
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1028
|
+
responseObject: {},
|
|
1029
|
+
body: yield response.json(),
|
|
1030
|
+
bodyKey: "listingRevisionNote",
|
|
1031
|
+
bodyModel: model.ListingRevisionNote,
|
|
1032
|
+
type: "model.ListingRevisionNote",
|
|
1033
|
+
responseHeaders: [
|
|
1034
|
+
{
|
|
1035
|
+
value: response.headers.get("opc-request-id"),
|
|
1036
|
+
key: "opcRequestId",
|
|
1037
|
+
dataType: "string"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
value: response.headers.get("etag"),
|
|
1041
|
+
key: "etag",
|
|
1042
|
+
dataType: "string"
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
});
|
|
1046
|
+
return sdkResponse;
|
|
1047
|
+
}
|
|
1048
|
+
catch (err) {
|
|
1049
|
+
throw err;
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Creates a new Listing Revision Package.
|
|
1055
|
+
*
|
|
1056
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1057
|
+
* @param CreateListingRevisionPackageRequest
|
|
1058
|
+
* @return CreateListingRevisionPackageResponse
|
|
1059
|
+
* @throws OciError when an error occurs
|
|
1060
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateListingRevisionPackage.ts.html |here} to see how to use CreateListingRevisionPackage API.
|
|
1061
|
+
*/
|
|
1062
|
+
createListingRevisionPackage(createListingRevisionPackageRequest) {
|
|
1063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
|
+
if (this.logger)
|
|
1065
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createListingRevisionPackage.");
|
|
1066
|
+
const operationName = "createListingRevisionPackage";
|
|
1067
|
+
const apiReferenceLink = "";
|
|
1068
|
+
const pathParams = {};
|
|
1069
|
+
const queryParams = {};
|
|
1070
|
+
let headerParams = {
|
|
1071
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1072
|
+
"opc-retry-token": createListingRevisionPackageRequest.opcRetryToken,
|
|
1073
|
+
"opc-request-id": createListingRevisionPackageRequest.opcRequestId
|
|
1074
|
+
};
|
|
1075
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1076
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createListingRevisionPackageRequest.retryConfiguration, specRetryConfiguration);
|
|
1077
|
+
if (this.logger)
|
|
1078
|
+
retrier.logger = this.logger;
|
|
1079
|
+
const request = yield oci_common_1.composeRequest({
|
|
1080
|
+
baseEndpoint: this._endpoint,
|
|
1081
|
+
defaultHeaders: this._defaultHeaders,
|
|
1082
|
+
path: "/listingRevisionPackages",
|
|
1083
|
+
method: "POST",
|
|
1084
|
+
bodyContent: common.ObjectSerializer.serialize(createListingRevisionPackageRequest.createListingRevisionPackageDetails, "CreateListingRevisionPackageDetails", model.CreateListingRevisionPackageDetails.getJsonObj),
|
|
1085
|
+
pathParams: pathParams,
|
|
1086
|
+
headerParams: headerParams,
|
|
1087
|
+
queryParams: queryParams
|
|
1088
|
+
});
|
|
1089
|
+
try {
|
|
1090
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1091
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1092
|
+
responseObject: {},
|
|
1093
|
+
body: yield response.json(),
|
|
1094
|
+
bodyKey: "listingRevisionPackage",
|
|
1095
|
+
bodyModel: model.ListingRevisionPackage,
|
|
1096
|
+
type: "model.ListingRevisionPackage",
|
|
1097
|
+
responseHeaders: [
|
|
1098
|
+
{
|
|
1099
|
+
value: response.headers.get("opc-request-id"),
|
|
1100
|
+
key: "opcRequestId",
|
|
1101
|
+
dataType: "string"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
value: response.headers.get("etag"),
|
|
1105
|
+
key: "etag",
|
|
1106
|
+
dataType: "string"
|
|
1107
|
+
}
|
|
1108
|
+
]
|
|
1109
|
+
});
|
|
1110
|
+
return sdkResponse;
|
|
1111
|
+
}
|
|
1112
|
+
catch (err) {
|
|
1113
|
+
throw err;
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Creates a new Term.
|
|
1119
|
+
*
|
|
1120
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1121
|
+
* @param CreateTermRequest
|
|
1122
|
+
* @return CreateTermResponse
|
|
1123
|
+
* @throws OciError when an error occurs
|
|
1124
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateTerm.ts.html |here} to see how to use CreateTerm API.
|
|
1125
|
+
*/
|
|
1126
|
+
createTerm(createTermRequest) {
|
|
1127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1128
|
+
if (this.logger)
|
|
1129
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createTerm.");
|
|
1130
|
+
const operationName = "createTerm";
|
|
1131
|
+
const apiReferenceLink = "";
|
|
1132
|
+
const pathParams = {};
|
|
1133
|
+
const queryParams = {};
|
|
1134
|
+
let headerParams = {
|
|
1135
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1136
|
+
"opc-retry-token": createTermRequest.opcRetryToken,
|
|
1137
|
+
"opc-request-id": createTermRequest.opcRequestId
|
|
1138
|
+
};
|
|
1139
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1140
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createTermRequest.retryConfiguration, specRetryConfiguration);
|
|
1141
|
+
if (this.logger)
|
|
1142
|
+
retrier.logger = this.logger;
|
|
1143
|
+
const request = yield oci_common_1.composeRequest({
|
|
1144
|
+
baseEndpoint: this._endpoint,
|
|
1145
|
+
defaultHeaders: this._defaultHeaders,
|
|
1146
|
+
path: "/terms",
|
|
1147
|
+
method: "POST",
|
|
1148
|
+
bodyContent: common.ObjectSerializer.serialize(createTermRequest.createTermDetails, "CreateTermDetails", model.CreateTermDetails.getJsonObj),
|
|
1149
|
+
pathParams: pathParams,
|
|
1150
|
+
headerParams: headerParams,
|
|
1151
|
+
queryParams: queryParams
|
|
1152
|
+
});
|
|
1153
|
+
try {
|
|
1154
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1155
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1156
|
+
responseObject: {},
|
|
1157
|
+
body: yield response.json(),
|
|
1158
|
+
bodyKey: "term",
|
|
1159
|
+
bodyModel: model.Term,
|
|
1160
|
+
type: "model.Term",
|
|
1161
|
+
responseHeaders: [
|
|
1162
|
+
{
|
|
1163
|
+
value: response.headers.get("etag"),
|
|
1164
|
+
key: "etag",
|
|
1165
|
+
dataType: "string"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
value: response.headers.get("opc-request-id"),
|
|
1169
|
+
key: "opcRequestId",
|
|
1170
|
+
dataType: "string"
|
|
1171
|
+
}
|
|
1172
|
+
]
|
|
1173
|
+
});
|
|
1174
|
+
return sdkResponse;
|
|
1175
|
+
}
|
|
1176
|
+
catch (err) {
|
|
1177
|
+
throw err;
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Creates a new Term Version.
|
|
1183
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1184
|
+
* @param CreateTermVersionRequest
|
|
1185
|
+
* @return CreateTermVersionResponse
|
|
1186
|
+
* @throws OciError when an error occurs
|
|
1187
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/CreateTermVersion.ts.html |here} to see how to use CreateTermVersion API.
|
|
1188
|
+
*/
|
|
1189
|
+
createTermVersion(createTermVersionRequest) {
|
|
1190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1191
|
+
if (this.logger)
|
|
1192
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#createTermVersion.");
|
|
1193
|
+
const operationName = "createTermVersion";
|
|
1194
|
+
const apiReferenceLink = "";
|
|
1195
|
+
const pathParams = {};
|
|
1196
|
+
const queryParams = {};
|
|
1197
|
+
let headerParams = {
|
|
1198
|
+
"opc-retry-token": createTermVersionRequest.opcRetryToken,
|
|
1199
|
+
"opc-request-id": createTermVersionRequest.opcRequestId,
|
|
1200
|
+
"display-name": createTermVersionRequest.displayName,
|
|
1201
|
+
"term-id": createTermVersionRequest.termId
|
|
1202
|
+
};
|
|
1203
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1204
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createTermVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
1205
|
+
if (this.logger)
|
|
1206
|
+
retrier.logger = this.logger;
|
|
1207
|
+
const request = yield oci_common_1.composeRequest({
|
|
1208
|
+
baseEndpoint: this._endpoint,
|
|
1209
|
+
defaultHeaders: this._defaultHeaders,
|
|
1210
|
+
path: "/termVersions",
|
|
1211
|
+
method: "POST",
|
|
1212
|
+
bodyContent: createTermVersionRequest.createTermVersionContent,
|
|
1213
|
+
pathParams: pathParams,
|
|
1214
|
+
headerParams: headerParams,
|
|
1215
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
1216
|
+
queryParams: queryParams
|
|
1217
|
+
});
|
|
1218
|
+
try {
|
|
1219
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1220
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1221
|
+
responseObject: {},
|
|
1222
|
+
body: yield response.json(),
|
|
1223
|
+
bodyKey: "termVersion",
|
|
1224
|
+
bodyModel: model.TermVersion,
|
|
1225
|
+
type: "model.TermVersion",
|
|
1226
|
+
responseHeaders: [
|
|
1227
|
+
{
|
|
1228
|
+
value: response.headers.get("etag"),
|
|
1229
|
+
key: "etag",
|
|
1230
|
+
dataType: "string"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
value: response.headers.get("opc-request-id"),
|
|
1234
|
+
key: "opcRequestId",
|
|
1235
|
+
dataType: "string"
|
|
1236
|
+
}
|
|
1237
|
+
]
|
|
1238
|
+
});
|
|
1239
|
+
return sdkResponse;
|
|
1240
|
+
}
|
|
1241
|
+
catch (err) {
|
|
1242
|
+
throw err;
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Deletes the specified artifact.
|
|
1248
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1249
|
+
* @param DeleteArtifactRequest
|
|
1250
|
+
* @return DeleteArtifactResponse
|
|
1251
|
+
* @throws OciError when an error occurs
|
|
1252
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteArtifact.ts.html |here} to see how to use DeleteArtifact API.
|
|
1253
|
+
*/
|
|
1254
|
+
deleteArtifact(deleteArtifactRequest) {
|
|
1255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1256
|
+
if (this.logger)
|
|
1257
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteArtifact.");
|
|
1258
|
+
const operationName = "deleteArtifact";
|
|
1259
|
+
const apiReferenceLink = "";
|
|
1260
|
+
const pathParams = {
|
|
1261
|
+
"{artifactId}": deleteArtifactRequest.artifactId
|
|
1262
|
+
};
|
|
1263
|
+
const queryParams = {};
|
|
1264
|
+
let headerParams = {
|
|
1265
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1266
|
+
"if-match": deleteArtifactRequest.ifMatch,
|
|
1267
|
+
"opc-request-id": deleteArtifactRequest.opcRequestId,
|
|
1268
|
+
"opc-retry-token": deleteArtifactRequest.opcRetryToken
|
|
1269
|
+
};
|
|
1270
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1271
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
1272
|
+
if (this.logger)
|
|
1273
|
+
retrier.logger = this.logger;
|
|
1274
|
+
const request = yield oci_common_1.composeRequest({
|
|
1275
|
+
baseEndpoint: this._endpoint,
|
|
1276
|
+
defaultHeaders: this._defaultHeaders,
|
|
1277
|
+
path: "/artifacts/{artifactId}",
|
|
1278
|
+
method: "DELETE",
|
|
1279
|
+
pathParams: pathParams,
|
|
1280
|
+
headerParams: headerParams,
|
|
1281
|
+
queryParams: queryParams
|
|
1282
|
+
});
|
|
1283
|
+
try {
|
|
1284
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1285
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1286
|
+
responseObject: {},
|
|
1287
|
+
responseHeaders: [
|
|
1288
|
+
{
|
|
1289
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1290
|
+
key: "opcWorkRequestId",
|
|
1291
|
+
dataType: "string"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
value: response.headers.get("opc-request-id"),
|
|
1295
|
+
key: "opcRequestId",
|
|
1296
|
+
dataType: "string"
|
|
1297
|
+
}
|
|
1298
|
+
]
|
|
1299
|
+
});
|
|
1300
|
+
return sdkResponse;
|
|
1301
|
+
}
|
|
1302
|
+
catch (err) {
|
|
1303
|
+
throw err;
|
|
1304
|
+
}
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* Deletes a listing by the identifier
|
|
1309
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1310
|
+
* @param DeleteListingRequest
|
|
1311
|
+
* @return DeleteListingResponse
|
|
1312
|
+
* @throws OciError when an error occurs
|
|
1313
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteListing.ts.html |here} to see how to use DeleteListing API.
|
|
1314
|
+
*/
|
|
1315
|
+
deleteListing(deleteListingRequest) {
|
|
1316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
+
if (this.logger)
|
|
1318
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteListing.");
|
|
1319
|
+
const operationName = "deleteListing";
|
|
1320
|
+
const apiReferenceLink = "";
|
|
1321
|
+
const pathParams = {
|
|
1322
|
+
"{listingId}": deleteListingRequest.listingId
|
|
1323
|
+
};
|
|
1324
|
+
const queryParams = {};
|
|
1325
|
+
let headerParams = {
|
|
1326
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1327
|
+
"if-match": deleteListingRequest.ifMatch,
|
|
1328
|
+
"opc-request-id": deleteListingRequest.opcRequestId
|
|
1329
|
+
};
|
|
1330
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1331
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteListingRequest.retryConfiguration, specRetryConfiguration);
|
|
1332
|
+
if (this.logger)
|
|
1333
|
+
retrier.logger = this.logger;
|
|
1334
|
+
const request = yield oci_common_1.composeRequest({
|
|
1335
|
+
baseEndpoint: this._endpoint,
|
|
1336
|
+
defaultHeaders: this._defaultHeaders,
|
|
1337
|
+
path: "/listings/{listingId}",
|
|
1338
|
+
method: "DELETE",
|
|
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_1.composeResponse({
|
|
1346
|
+
responseObject: {},
|
|
1347
|
+
responseHeaders: [
|
|
1348
|
+
{
|
|
1349
|
+
value: response.headers.get("opc-request-id"),
|
|
1350
|
+
key: "opcRequestId",
|
|
1351
|
+
dataType: "string"
|
|
1352
|
+
}
|
|
1353
|
+
]
|
|
1354
|
+
});
|
|
1355
|
+
return sdkResponse;
|
|
1356
|
+
}
|
|
1357
|
+
catch (err) {
|
|
1358
|
+
throw err;
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Deletes a listing by the identifier
|
|
1364
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1365
|
+
* @param DeleteListingRevisionRequest
|
|
1366
|
+
* @return DeleteListingRevisionResponse
|
|
1367
|
+
* @throws OciError when an error occurs
|
|
1368
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteListingRevision.ts.html |here} to see how to use DeleteListingRevision API.
|
|
1369
|
+
*/
|
|
1370
|
+
deleteListingRevision(deleteListingRevisionRequest) {
|
|
1371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1372
|
+
if (this.logger)
|
|
1373
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteListingRevision.");
|
|
1374
|
+
const operationName = "deleteListingRevision";
|
|
1375
|
+
const apiReferenceLink = "";
|
|
1376
|
+
const pathParams = {
|
|
1377
|
+
"{listingRevisionId}": deleteListingRevisionRequest.listingRevisionId
|
|
1378
|
+
};
|
|
1379
|
+
const queryParams = {};
|
|
1380
|
+
let headerParams = {
|
|
1381
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1382
|
+
"if-match": deleteListingRevisionRequest.ifMatch,
|
|
1383
|
+
"opc-request-id": deleteListingRevisionRequest.opcRequestId
|
|
1384
|
+
};
|
|
1385
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1386
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
1387
|
+
if (this.logger)
|
|
1388
|
+
retrier.logger = this.logger;
|
|
1389
|
+
const request = yield oci_common_1.composeRequest({
|
|
1390
|
+
baseEndpoint: this._endpoint,
|
|
1391
|
+
defaultHeaders: this._defaultHeaders,
|
|
1392
|
+
path: "/listingRevisions/{listingRevisionId}",
|
|
1393
|
+
method: "DELETE",
|
|
1394
|
+
pathParams: pathParams,
|
|
1395
|
+
headerParams: headerParams,
|
|
1396
|
+
queryParams: queryParams
|
|
1397
|
+
});
|
|
1398
|
+
try {
|
|
1399
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1400
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1401
|
+
responseObject: {},
|
|
1402
|
+
responseHeaders: [
|
|
1403
|
+
{
|
|
1404
|
+
value: response.headers.get("opc-request-id"),
|
|
1405
|
+
key: "opcRequestId",
|
|
1406
|
+
dataType: "string"
|
|
1407
|
+
}
|
|
1408
|
+
]
|
|
1409
|
+
});
|
|
1410
|
+
return sdkResponse;
|
|
1411
|
+
}
|
|
1412
|
+
catch (err) {
|
|
1413
|
+
throw err;
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Deletes a listing revision attachment by the identifier
|
|
1419
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1420
|
+
* @param DeleteListingRevisionAttachmentRequest
|
|
1421
|
+
* @return DeleteListingRevisionAttachmentResponse
|
|
1422
|
+
* @throws OciError when an error occurs
|
|
1423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteListingRevisionAttachment.ts.html |here} to see how to use DeleteListingRevisionAttachment API.
|
|
1424
|
+
*/
|
|
1425
|
+
deleteListingRevisionAttachment(deleteListingRevisionAttachmentRequest) {
|
|
1426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1427
|
+
if (this.logger)
|
|
1428
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteListingRevisionAttachment.");
|
|
1429
|
+
const operationName = "deleteListingRevisionAttachment";
|
|
1430
|
+
const apiReferenceLink = "";
|
|
1431
|
+
const pathParams = {
|
|
1432
|
+
"{listingRevisionAttachmentId}": deleteListingRevisionAttachmentRequest.listingRevisionAttachmentId
|
|
1433
|
+
};
|
|
1434
|
+
const queryParams = {};
|
|
1435
|
+
let headerParams = {
|
|
1436
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1437
|
+
"if-match": deleteListingRevisionAttachmentRequest.ifMatch,
|
|
1438
|
+
"opc-request-id": deleteListingRevisionAttachmentRequest.opcRequestId
|
|
1439
|
+
};
|
|
1440
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1441
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteListingRevisionAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1442
|
+
if (this.logger)
|
|
1443
|
+
retrier.logger = this.logger;
|
|
1444
|
+
const request = yield oci_common_1.composeRequest({
|
|
1445
|
+
baseEndpoint: this._endpoint,
|
|
1446
|
+
defaultHeaders: this._defaultHeaders,
|
|
1447
|
+
path: "/listingRevisionAttachments/{listingRevisionAttachmentId}",
|
|
1448
|
+
method: "DELETE",
|
|
1449
|
+
pathParams: pathParams,
|
|
1450
|
+
headerParams: headerParams,
|
|
1451
|
+
queryParams: queryParams
|
|
1452
|
+
});
|
|
1453
|
+
try {
|
|
1454
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1455
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1456
|
+
responseObject: {},
|
|
1457
|
+
responseHeaders: [
|
|
1458
|
+
{
|
|
1459
|
+
value: response.headers.get("opc-request-id"),
|
|
1460
|
+
key: "opcRequestId",
|
|
1461
|
+
dataType: "string"
|
|
1462
|
+
}
|
|
1463
|
+
]
|
|
1464
|
+
});
|
|
1465
|
+
return sdkResponse;
|
|
1466
|
+
}
|
|
1467
|
+
catch (err) {
|
|
1468
|
+
throw err;
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
/**
|
|
1473
|
+
* Deletes a listing revision note by the identifier.
|
|
1474
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1475
|
+
* @param DeleteListingRevisionNoteRequest
|
|
1476
|
+
* @return DeleteListingRevisionNoteResponse
|
|
1477
|
+
* @throws OciError when an error occurs
|
|
1478
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteListingRevisionNote.ts.html |here} to see how to use DeleteListingRevisionNote API.
|
|
1479
|
+
*/
|
|
1480
|
+
deleteListingRevisionNote(deleteListingRevisionNoteRequest) {
|
|
1481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1482
|
+
if (this.logger)
|
|
1483
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteListingRevisionNote.");
|
|
1484
|
+
const operationName = "deleteListingRevisionNote";
|
|
1485
|
+
const apiReferenceLink = "";
|
|
1486
|
+
const pathParams = {
|
|
1487
|
+
"{listingRevisionNoteId}": deleteListingRevisionNoteRequest.listingRevisionNoteId
|
|
1488
|
+
};
|
|
1489
|
+
const queryParams = {};
|
|
1490
|
+
let headerParams = {
|
|
1491
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1492
|
+
"if-match": deleteListingRevisionNoteRequest.ifMatch,
|
|
1493
|
+
"opc-request-id": deleteListingRevisionNoteRequest.opcRequestId
|
|
1494
|
+
};
|
|
1495
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1496
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteListingRevisionNoteRequest.retryConfiguration, specRetryConfiguration);
|
|
1497
|
+
if (this.logger)
|
|
1498
|
+
retrier.logger = this.logger;
|
|
1499
|
+
const request = yield oci_common_1.composeRequest({
|
|
1500
|
+
baseEndpoint: this._endpoint,
|
|
1501
|
+
defaultHeaders: this._defaultHeaders,
|
|
1502
|
+
path: "/listingRevisionNotes/{listingRevisionNoteId}",
|
|
1503
|
+
method: "DELETE",
|
|
1504
|
+
pathParams: pathParams,
|
|
1505
|
+
headerParams: headerParams,
|
|
1506
|
+
queryParams: queryParams
|
|
1507
|
+
});
|
|
1508
|
+
try {
|
|
1509
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1510
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1511
|
+
responseObject: {},
|
|
1512
|
+
responseHeaders: [
|
|
1513
|
+
{
|
|
1514
|
+
value: response.headers.get("opc-request-id"),
|
|
1515
|
+
key: "opcRequestId",
|
|
1516
|
+
dataType: "string"
|
|
1517
|
+
}
|
|
1518
|
+
]
|
|
1519
|
+
});
|
|
1520
|
+
return sdkResponse;
|
|
1521
|
+
}
|
|
1522
|
+
catch (err) {
|
|
1523
|
+
throw err;
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* Deletes a listing revision package by the identifier
|
|
1529
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1530
|
+
* @param DeleteListingRevisionPackageRequest
|
|
1531
|
+
* @return DeleteListingRevisionPackageResponse
|
|
1532
|
+
* @throws OciError when an error occurs
|
|
1533
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteListingRevisionPackage.ts.html |here} to see how to use DeleteListingRevisionPackage API.
|
|
1534
|
+
*/
|
|
1535
|
+
deleteListingRevisionPackage(deleteListingRevisionPackageRequest) {
|
|
1536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1537
|
+
if (this.logger)
|
|
1538
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteListingRevisionPackage.");
|
|
1539
|
+
const operationName = "deleteListingRevisionPackage";
|
|
1540
|
+
const apiReferenceLink = "";
|
|
1541
|
+
const pathParams = {
|
|
1542
|
+
"{listingRevisionPackageId}": deleteListingRevisionPackageRequest.listingRevisionPackageId
|
|
1543
|
+
};
|
|
1544
|
+
const queryParams = {};
|
|
1545
|
+
let headerParams = {
|
|
1546
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1547
|
+
"if-match": deleteListingRevisionPackageRequest.ifMatch,
|
|
1548
|
+
"opc-request-id": deleteListingRevisionPackageRequest.opcRequestId
|
|
1549
|
+
};
|
|
1550
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1551
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteListingRevisionPackageRequest.retryConfiguration, specRetryConfiguration);
|
|
1552
|
+
if (this.logger)
|
|
1553
|
+
retrier.logger = this.logger;
|
|
1554
|
+
const request = yield oci_common_1.composeRequest({
|
|
1555
|
+
baseEndpoint: this._endpoint,
|
|
1556
|
+
defaultHeaders: this._defaultHeaders,
|
|
1557
|
+
path: "/listingRevisionPackages/{listingRevisionPackageId}",
|
|
1558
|
+
method: "DELETE",
|
|
1559
|
+
pathParams: pathParams,
|
|
1560
|
+
headerParams: headerParams,
|
|
1561
|
+
queryParams: queryParams
|
|
1562
|
+
});
|
|
1563
|
+
try {
|
|
1564
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1565
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1566
|
+
responseObject: {},
|
|
1567
|
+
responseHeaders: [
|
|
1568
|
+
{
|
|
1569
|
+
value: response.headers.get("opc-request-id"),
|
|
1570
|
+
key: "opcRequestId",
|
|
1571
|
+
dataType: "string"
|
|
1572
|
+
}
|
|
1573
|
+
]
|
|
1574
|
+
});
|
|
1575
|
+
return sdkResponse;
|
|
1576
|
+
}
|
|
1577
|
+
catch (err) {
|
|
1578
|
+
throw err;
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Deletes a Term by the identifier
|
|
1584
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1585
|
+
* @param DeleteTermRequest
|
|
1586
|
+
* @return DeleteTermResponse
|
|
1587
|
+
* @throws OciError when an error occurs
|
|
1588
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteTerm.ts.html |here} to see how to use DeleteTerm API.
|
|
1589
|
+
*/
|
|
1590
|
+
deleteTerm(deleteTermRequest) {
|
|
1591
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1592
|
+
if (this.logger)
|
|
1593
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteTerm.");
|
|
1594
|
+
const operationName = "deleteTerm";
|
|
1595
|
+
const apiReferenceLink = "";
|
|
1596
|
+
const pathParams = {
|
|
1597
|
+
"{termId}": deleteTermRequest.termId
|
|
1598
|
+
};
|
|
1599
|
+
const queryParams = {};
|
|
1600
|
+
let headerParams = {
|
|
1601
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1602
|
+
"if-match": deleteTermRequest.ifMatch,
|
|
1603
|
+
"opc-request-id": deleteTermRequest.opcRequestId
|
|
1604
|
+
};
|
|
1605
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1606
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteTermRequest.retryConfiguration, specRetryConfiguration);
|
|
1607
|
+
if (this.logger)
|
|
1608
|
+
retrier.logger = this.logger;
|
|
1609
|
+
const request = yield oci_common_1.composeRequest({
|
|
1610
|
+
baseEndpoint: this._endpoint,
|
|
1611
|
+
defaultHeaders: this._defaultHeaders,
|
|
1612
|
+
path: "/terms/{termId}",
|
|
1613
|
+
method: "DELETE",
|
|
1614
|
+
pathParams: pathParams,
|
|
1615
|
+
headerParams: headerParams,
|
|
1616
|
+
queryParams: queryParams
|
|
1617
|
+
});
|
|
1618
|
+
try {
|
|
1619
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1620
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1621
|
+
responseObject: {},
|
|
1622
|
+
responseHeaders: [
|
|
1623
|
+
{
|
|
1624
|
+
value: response.headers.get("opc-request-id"),
|
|
1625
|
+
key: "opcRequestId",
|
|
1626
|
+
dataType: "string"
|
|
1627
|
+
}
|
|
1628
|
+
]
|
|
1629
|
+
});
|
|
1630
|
+
return sdkResponse;
|
|
1631
|
+
}
|
|
1632
|
+
catch (err) {
|
|
1633
|
+
throw err;
|
|
1634
|
+
}
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Deletes a Term by the identifier
|
|
1639
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1640
|
+
* @param DeleteTermVersionRequest
|
|
1641
|
+
* @return DeleteTermVersionResponse
|
|
1642
|
+
* @throws OciError when an error occurs
|
|
1643
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/DeleteTermVersion.ts.html |here} to see how to use DeleteTermVersion API.
|
|
1644
|
+
*/
|
|
1645
|
+
deleteTermVersion(deleteTermVersionRequest) {
|
|
1646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1647
|
+
if (this.logger)
|
|
1648
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#deleteTermVersion.");
|
|
1649
|
+
const operationName = "deleteTermVersion";
|
|
1650
|
+
const apiReferenceLink = "";
|
|
1651
|
+
const pathParams = {
|
|
1652
|
+
"{termVersionId}": deleteTermVersionRequest.termVersionId
|
|
1653
|
+
};
|
|
1654
|
+
const queryParams = {};
|
|
1655
|
+
let headerParams = {
|
|
1656
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1657
|
+
"if-match": deleteTermVersionRequest.ifMatch,
|
|
1658
|
+
"opc-request-id": deleteTermVersionRequest.opcRequestId
|
|
1659
|
+
};
|
|
1660
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1661
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteTermVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
1662
|
+
if (this.logger)
|
|
1663
|
+
retrier.logger = this.logger;
|
|
1664
|
+
const request = yield oci_common_1.composeRequest({
|
|
1665
|
+
baseEndpoint: this._endpoint,
|
|
1666
|
+
defaultHeaders: this._defaultHeaders,
|
|
1667
|
+
path: "/termVersions/{termVersionId}",
|
|
1668
|
+
method: "DELETE",
|
|
1669
|
+
pathParams: pathParams,
|
|
1670
|
+
headerParams: headerParams,
|
|
1671
|
+
queryParams: queryParams
|
|
1672
|
+
});
|
|
1673
|
+
try {
|
|
1674
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1675
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1676
|
+
responseObject: {},
|
|
1677
|
+
responseHeaders: [
|
|
1678
|
+
{
|
|
1679
|
+
value: response.headers.get("opc-request-id"),
|
|
1680
|
+
key: "opcRequestId",
|
|
1681
|
+
dataType: "string"
|
|
1682
|
+
}
|
|
1683
|
+
]
|
|
1684
|
+
});
|
|
1685
|
+
return sdkResponse;
|
|
1686
|
+
}
|
|
1687
|
+
catch (err) {
|
|
1688
|
+
throw err;
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Gets the specified artifact's information.
|
|
1694
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1695
|
+
* @param GetArtifactRequest
|
|
1696
|
+
* @return GetArtifactResponse
|
|
1697
|
+
* @throws OciError when an error occurs
|
|
1698
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetArtifact.ts.html |here} to see how to use GetArtifact API.
|
|
1699
|
+
*/
|
|
1700
|
+
getArtifact(getArtifactRequest) {
|
|
1701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1702
|
+
if (this.logger)
|
|
1703
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getArtifact.");
|
|
1704
|
+
const operationName = "getArtifact";
|
|
1705
|
+
const apiReferenceLink = "";
|
|
1706
|
+
const pathParams = {
|
|
1707
|
+
"{artifactId}": getArtifactRequest.artifactId
|
|
1708
|
+
};
|
|
1709
|
+
const queryParams = {};
|
|
1710
|
+
let headerParams = {
|
|
1711
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1712
|
+
"opc-request-id": getArtifactRequest.opcRequestId
|
|
1713
|
+
};
|
|
1714
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1715
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
1716
|
+
if (this.logger)
|
|
1717
|
+
retrier.logger = this.logger;
|
|
1718
|
+
const request = yield oci_common_1.composeRequest({
|
|
1719
|
+
baseEndpoint: this._endpoint,
|
|
1720
|
+
defaultHeaders: this._defaultHeaders,
|
|
1721
|
+
path: "/artifacts/{artifactId}",
|
|
1722
|
+
method: "GET",
|
|
1723
|
+
pathParams: pathParams,
|
|
1724
|
+
headerParams: headerParams,
|
|
1725
|
+
queryParams: queryParams
|
|
1726
|
+
});
|
|
1727
|
+
try {
|
|
1728
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1729
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1730
|
+
responseObject: {},
|
|
1731
|
+
body: yield response.json(),
|
|
1732
|
+
bodyKey: "artifact",
|
|
1733
|
+
bodyModel: model.Artifact,
|
|
1734
|
+
type: "model.Artifact",
|
|
1735
|
+
responseHeaders: [
|
|
1736
|
+
{
|
|
1737
|
+
value: response.headers.get("etag"),
|
|
1738
|
+
key: "etag",
|
|
1739
|
+
dataType: "string"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
value: response.headers.get("opc-request-id"),
|
|
1743
|
+
key: "opcRequestId",
|
|
1744
|
+
dataType: "string"
|
|
1745
|
+
}
|
|
1746
|
+
]
|
|
1747
|
+
});
|
|
1748
|
+
return sdkResponse;
|
|
1749
|
+
}
|
|
1750
|
+
catch (err) {
|
|
1751
|
+
throw err;
|
|
1752
|
+
}
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Gets the specified category's information.
|
|
1757
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1758
|
+
* @param GetCategoryRequest
|
|
1759
|
+
* @return GetCategoryResponse
|
|
1760
|
+
* @throws OciError when an error occurs
|
|
1761
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetCategory.ts.html |here} to see how to use GetCategory API.
|
|
1762
|
+
*/
|
|
1763
|
+
getCategory(getCategoryRequest) {
|
|
1764
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1765
|
+
if (this.logger)
|
|
1766
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getCategory.");
|
|
1767
|
+
const operationName = "getCategory";
|
|
1768
|
+
const apiReferenceLink = "";
|
|
1769
|
+
const pathParams = {
|
|
1770
|
+
"{categoryCode}": getCategoryRequest.categoryCode
|
|
1771
|
+
};
|
|
1772
|
+
const queryParams = {
|
|
1773
|
+
"compartmentId": getCategoryRequest.compartmentId
|
|
1774
|
+
};
|
|
1775
|
+
let headerParams = {
|
|
1776
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1777
|
+
"opc-request-id": getCategoryRequest.opcRequestId
|
|
1778
|
+
};
|
|
1779
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1780
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCategoryRequest.retryConfiguration, specRetryConfiguration);
|
|
1781
|
+
if (this.logger)
|
|
1782
|
+
retrier.logger = this.logger;
|
|
1783
|
+
const request = yield oci_common_1.composeRequest({
|
|
1784
|
+
baseEndpoint: this._endpoint,
|
|
1785
|
+
defaultHeaders: this._defaultHeaders,
|
|
1786
|
+
path: "/categories/{categoryCode}",
|
|
1787
|
+
method: "GET",
|
|
1788
|
+
pathParams: pathParams,
|
|
1789
|
+
headerParams: headerParams,
|
|
1790
|
+
queryParams: queryParams
|
|
1791
|
+
});
|
|
1792
|
+
try {
|
|
1793
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1794
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1795
|
+
responseObject: {},
|
|
1796
|
+
body: yield response.json(),
|
|
1797
|
+
bodyKey: "category",
|
|
1798
|
+
bodyModel: model.Category,
|
|
1799
|
+
type: "model.Category",
|
|
1800
|
+
responseHeaders: [
|
|
1801
|
+
{
|
|
1802
|
+
value: response.headers.get("etag"),
|
|
1803
|
+
key: "etag",
|
|
1804
|
+
dataType: "string"
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
value: response.headers.get("opc-request-id"),
|
|
1808
|
+
key: "opcRequestId",
|
|
1809
|
+
dataType: "string"
|
|
1810
|
+
}
|
|
1811
|
+
]
|
|
1812
|
+
});
|
|
1813
|
+
return sdkResponse;
|
|
1814
|
+
}
|
|
1815
|
+
catch (err) {
|
|
1816
|
+
throw err;
|
|
1817
|
+
}
|
|
1818
|
+
});
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Gets the details for a listing.
|
|
1822
|
+
*
|
|
1823
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1824
|
+
* @param GetListingRequest
|
|
1825
|
+
* @return GetListingResponse
|
|
1826
|
+
* @throws OciError when an error occurs
|
|
1827
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetListing.ts.html |here} to see how to use GetListing API.
|
|
1828
|
+
*/
|
|
1829
|
+
getListing(getListingRequest) {
|
|
1830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1831
|
+
if (this.logger)
|
|
1832
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getListing.");
|
|
1833
|
+
const operationName = "getListing";
|
|
1834
|
+
const apiReferenceLink = "";
|
|
1835
|
+
const pathParams = {
|
|
1836
|
+
"{listingId}": getListingRequest.listingId
|
|
1837
|
+
};
|
|
1838
|
+
const queryParams = {};
|
|
1839
|
+
let headerParams = {
|
|
1840
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1841
|
+
"opc-request-id": getListingRequest.opcRequestId
|
|
1842
|
+
};
|
|
1843
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1844
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getListingRequest.retryConfiguration, specRetryConfiguration);
|
|
1845
|
+
if (this.logger)
|
|
1846
|
+
retrier.logger = this.logger;
|
|
1847
|
+
const request = yield oci_common_1.composeRequest({
|
|
1848
|
+
baseEndpoint: this._endpoint,
|
|
1849
|
+
defaultHeaders: this._defaultHeaders,
|
|
1850
|
+
path: "/listings/{listingId}",
|
|
1851
|
+
method: "GET",
|
|
1852
|
+
pathParams: pathParams,
|
|
1853
|
+
headerParams: headerParams,
|
|
1854
|
+
queryParams: queryParams
|
|
1855
|
+
});
|
|
1856
|
+
try {
|
|
1857
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1858
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1859
|
+
responseObject: {},
|
|
1860
|
+
body: yield response.json(),
|
|
1861
|
+
bodyKey: "listing",
|
|
1862
|
+
bodyModel: model.Listing,
|
|
1863
|
+
type: "model.Listing",
|
|
1864
|
+
responseHeaders: [
|
|
1865
|
+
{
|
|
1866
|
+
value: response.headers.get("etag"),
|
|
1867
|
+
key: "etag",
|
|
1868
|
+
dataType: "string"
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
value: response.headers.get("opc-request-id"),
|
|
1872
|
+
key: "opcRequestId",
|
|
1873
|
+
dataType: "string"
|
|
1874
|
+
}
|
|
1875
|
+
]
|
|
1876
|
+
});
|
|
1877
|
+
return sdkResponse;
|
|
1878
|
+
}
|
|
1879
|
+
catch (err) {
|
|
1880
|
+
throw err;
|
|
1881
|
+
}
|
|
1882
|
+
});
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Gets the details for a listing revision.
|
|
1886
|
+
*
|
|
1887
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1888
|
+
* @param GetListingRevisionRequest
|
|
1889
|
+
* @return GetListingRevisionResponse
|
|
1890
|
+
* @throws OciError when an error occurs
|
|
1891
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetListingRevision.ts.html |here} to see how to use GetListingRevision API.
|
|
1892
|
+
*/
|
|
1893
|
+
getListingRevision(getListingRevisionRequest) {
|
|
1894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1895
|
+
if (this.logger)
|
|
1896
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getListingRevision.");
|
|
1897
|
+
const operationName = "getListingRevision";
|
|
1898
|
+
const apiReferenceLink = "";
|
|
1899
|
+
const pathParams = {
|
|
1900
|
+
"{listingRevisionId}": getListingRevisionRequest.listingRevisionId
|
|
1901
|
+
};
|
|
1902
|
+
const queryParams = {};
|
|
1903
|
+
let headerParams = {
|
|
1904
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1905
|
+
"opc-request-id": getListingRevisionRequest.opcRequestId
|
|
1906
|
+
};
|
|
1907
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1908
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
1909
|
+
if (this.logger)
|
|
1910
|
+
retrier.logger = this.logger;
|
|
1911
|
+
const request = yield oci_common_1.composeRequest({
|
|
1912
|
+
baseEndpoint: this._endpoint,
|
|
1913
|
+
defaultHeaders: this._defaultHeaders,
|
|
1914
|
+
path: "/listingRevisions/{listingRevisionId}",
|
|
1915
|
+
method: "GET",
|
|
1916
|
+
pathParams: pathParams,
|
|
1917
|
+
headerParams: headerParams,
|
|
1918
|
+
queryParams: queryParams
|
|
1919
|
+
});
|
|
1920
|
+
try {
|
|
1921
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1922
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1923
|
+
responseObject: {},
|
|
1924
|
+
body: yield response.json(),
|
|
1925
|
+
bodyKey: "listingRevision",
|
|
1926
|
+
bodyModel: model.ListingRevision,
|
|
1927
|
+
type: "model.ListingRevision",
|
|
1928
|
+
responseHeaders: [
|
|
1929
|
+
{
|
|
1930
|
+
value: response.headers.get("etag"),
|
|
1931
|
+
key: "etag",
|
|
1932
|
+
dataType: "string"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
value: response.headers.get("opc-request-id"),
|
|
1936
|
+
key: "opcRequestId",
|
|
1937
|
+
dataType: "string"
|
|
1938
|
+
}
|
|
1939
|
+
]
|
|
1940
|
+
});
|
|
1941
|
+
return sdkResponse;
|
|
1942
|
+
}
|
|
1943
|
+
catch (err) {
|
|
1944
|
+
throw err;
|
|
1945
|
+
}
|
|
1946
|
+
});
|
|
1947
|
+
}
|
|
1948
|
+
/**
|
|
1949
|
+
* Get the details of the specified listing revision attachment.
|
|
1950
|
+
*
|
|
1951
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1952
|
+
* @param GetListingRevisionAttachmentRequest
|
|
1953
|
+
* @return GetListingRevisionAttachmentResponse
|
|
1954
|
+
* @throws OciError when an error occurs
|
|
1955
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetListingRevisionAttachment.ts.html |here} to see how to use GetListingRevisionAttachment API.
|
|
1956
|
+
*/
|
|
1957
|
+
getListingRevisionAttachment(getListingRevisionAttachmentRequest) {
|
|
1958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1959
|
+
if (this.logger)
|
|
1960
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getListingRevisionAttachment.");
|
|
1961
|
+
const operationName = "getListingRevisionAttachment";
|
|
1962
|
+
const apiReferenceLink = "";
|
|
1963
|
+
const pathParams = {
|
|
1964
|
+
"{listingRevisionAttachmentId}": getListingRevisionAttachmentRequest.listingRevisionAttachmentId
|
|
1965
|
+
};
|
|
1966
|
+
const queryParams = {};
|
|
1967
|
+
let headerParams = {
|
|
1968
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1969
|
+
"opc-request-id": getListingRevisionAttachmentRequest.opcRequestId
|
|
1970
|
+
};
|
|
1971
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1972
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getListingRevisionAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1973
|
+
if (this.logger)
|
|
1974
|
+
retrier.logger = this.logger;
|
|
1975
|
+
const request = yield oci_common_1.composeRequest({
|
|
1976
|
+
baseEndpoint: this._endpoint,
|
|
1977
|
+
defaultHeaders: this._defaultHeaders,
|
|
1978
|
+
path: "/listingRevisionAttachments/{listingRevisionAttachmentId}",
|
|
1979
|
+
method: "GET",
|
|
1980
|
+
pathParams: pathParams,
|
|
1981
|
+
headerParams: headerParams,
|
|
1982
|
+
queryParams: queryParams
|
|
1983
|
+
});
|
|
1984
|
+
try {
|
|
1985
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1986
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1987
|
+
responseObject: {},
|
|
1988
|
+
body: yield response.json(),
|
|
1989
|
+
bodyKey: "listingRevisionAttachment",
|
|
1990
|
+
bodyModel: model.ListingRevisionAttachment,
|
|
1991
|
+
type: "model.ListingRevisionAttachment",
|
|
1992
|
+
responseHeaders: [
|
|
1993
|
+
{
|
|
1994
|
+
value: response.headers.get("opc-request-id"),
|
|
1995
|
+
key: "opcRequestId",
|
|
1996
|
+
dataType: "string"
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
value: response.headers.get("etag"),
|
|
2000
|
+
key: "etag",
|
|
2001
|
+
dataType: "string"
|
|
2002
|
+
}
|
|
2003
|
+
]
|
|
2004
|
+
});
|
|
2005
|
+
return sdkResponse;
|
|
2006
|
+
}
|
|
2007
|
+
catch (err) {
|
|
2008
|
+
throw err;
|
|
2009
|
+
}
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Get note details by the identifier
|
|
2014
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2015
|
+
* @param GetListingRevisionNoteRequest
|
|
2016
|
+
* @return GetListingRevisionNoteResponse
|
|
2017
|
+
* @throws OciError when an error occurs
|
|
2018
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetListingRevisionNote.ts.html |here} to see how to use GetListingRevisionNote API.
|
|
2019
|
+
*/
|
|
2020
|
+
getListingRevisionNote(getListingRevisionNoteRequest) {
|
|
2021
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2022
|
+
if (this.logger)
|
|
2023
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getListingRevisionNote.");
|
|
2024
|
+
const operationName = "getListingRevisionNote";
|
|
2025
|
+
const apiReferenceLink = "";
|
|
2026
|
+
const pathParams = {
|
|
2027
|
+
"{listingRevisionNoteId}": getListingRevisionNoteRequest.listingRevisionNoteId
|
|
2028
|
+
};
|
|
2029
|
+
const queryParams = {};
|
|
2030
|
+
let headerParams = {
|
|
2031
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2032
|
+
"opc-request-id": getListingRevisionNoteRequest.opcRequestId
|
|
2033
|
+
};
|
|
2034
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2035
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getListingRevisionNoteRequest.retryConfiguration, specRetryConfiguration);
|
|
2036
|
+
if (this.logger)
|
|
2037
|
+
retrier.logger = this.logger;
|
|
2038
|
+
const request = yield oci_common_1.composeRequest({
|
|
2039
|
+
baseEndpoint: this._endpoint,
|
|
2040
|
+
defaultHeaders: this._defaultHeaders,
|
|
2041
|
+
path: "/listingRevisionNotes/{listingRevisionNoteId}",
|
|
2042
|
+
method: "GET",
|
|
2043
|
+
pathParams: pathParams,
|
|
2044
|
+
headerParams: headerParams,
|
|
2045
|
+
queryParams: queryParams
|
|
2046
|
+
});
|
|
2047
|
+
try {
|
|
2048
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2049
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2050
|
+
responseObject: {},
|
|
2051
|
+
body: yield response.json(),
|
|
2052
|
+
bodyKey: "listingRevisionNote",
|
|
2053
|
+
bodyModel: model.ListingRevisionNote,
|
|
2054
|
+
type: "model.ListingRevisionNote",
|
|
2055
|
+
responseHeaders: [
|
|
2056
|
+
{
|
|
2057
|
+
value: response.headers.get("opc-request-id"),
|
|
2058
|
+
key: "opcRequestId",
|
|
2059
|
+
dataType: "string"
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
value: response.headers.get("etag"),
|
|
2063
|
+
key: "etag",
|
|
2064
|
+
dataType: "string"
|
|
2065
|
+
}
|
|
2066
|
+
]
|
|
2067
|
+
});
|
|
2068
|
+
return sdkResponse;
|
|
2069
|
+
}
|
|
2070
|
+
catch (err) {
|
|
2071
|
+
throw err;
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Get the details of the specified version of a package.
|
|
2077
|
+
*
|
|
2078
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2079
|
+
* @param GetListingRevisionPackageRequest
|
|
2080
|
+
* @return GetListingRevisionPackageResponse
|
|
2081
|
+
* @throws OciError when an error occurs
|
|
2082
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetListingRevisionPackage.ts.html |here} to see how to use GetListingRevisionPackage API.
|
|
2083
|
+
*/
|
|
2084
|
+
getListingRevisionPackage(getListingRevisionPackageRequest) {
|
|
2085
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2086
|
+
if (this.logger)
|
|
2087
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getListingRevisionPackage.");
|
|
2088
|
+
const operationName = "getListingRevisionPackage";
|
|
2089
|
+
const apiReferenceLink = "";
|
|
2090
|
+
const pathParams = {
|
|
2091
|
+
"{listingRevisionPackageId}": getListingRevisionPackageRequest.listingRevisionPackageId
|
|
2092
|
+
};
|
|
2093
|
+
const queryParams = {};
|
|
2094
|
+
let headerParams = {
|
|
2095
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2096
|
+
"opc-request-id": getListingRevisionPackageRequest.opcRequestId
|
|
2097
|
+
};
|
|
2098
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2099
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getListingRevisionPackageRequest.retryConfiguration, specRetryConfiguration);
|
|
2100
|
+
if (this.logger)
|
|
2101
|
+
retrier.logger = this.logger;
|
|
2102
|
+
const request = yield oci_common_1.composeRequest({
|
|
2103
|
+
baseEndpoint: this._endpoint,
|
|
2104
|
+
defaultHeaders: this._defaultHeaders,
|
|
2105
|
+
path: "/listingRevisionPackages/{listingRevisionPackageId}",
|
|
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_1.composeResponse({
|
|
2114
|
+
responseObject: {},
|
|
2115
|
+
body: yield response.json(),
|
|
2116
|
+
bodyKey: "listingRevisionPackage",
|
|
2117
|
+
bodyModel: model.ListingRevisionPackage,
|
|
2118
|
+
type: "model.ListingRevisionPackage",
|
|
2119
|
+
responseHeaders: [
|
|
2120
|
+
{
|
|
2121
|
+
value: response.headers.get("opc-request-id"),
|
|
2122
|
+
key: "opcRequestId",
|
|
2123
|
+
dataType: "string"
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
value: response.headers.get("etag"),
|
|
2127
|
+
key: "etag",
|
|
2128
|
+
dataType: "string"
|
|
2129
|
+
}
|
|
2130
|
+
]
|
|
2131
|
+
});
|
|
2132
|
+
return sdkResponse;
|
|
2133
|
+
}
|
|
2134
|
+
catch (err) {
|
|
2135
|
+
throw err;
|
|
2136
|
+
}
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Gets the specified market's information.
|
|
2141
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2142
|
+
* @param GetMarketRequest
|
|
2143
|
+
* @return GetMarketResponse
|
|
2144
|
+
* @throws OciError when an error occurs
|
|
2145
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetMarket.ts.html |here} to see how to use GetMarket API.
|
|
2146
|
+
*/
|
|
2147
|
+
getMarket(getMarketRequest) {
|
|
2148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2149
|
+
if (this.logger)
|
|
2150
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getMarket.");
|
|
2151
|
+
const operationName = "getMarket";
|
|
2152
|
+
const apiReferenceLink = "";
|
|
2153
|
+
const pathParams = {
|
|
2154
|
+
"{marketCode}": getMarketRequest.marketCode
|
|
2155
|
+
};
|
|
2156
|
+
const queryParams = {};
|
|
2157
|
+
let headerParams = {
|
|
2158
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2159
|
+
"opc-request-id": getMarketRequest.opcRequestId
|
|
2160
|
+
};
|
|
2161
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2162
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMarketRequest.retryConfiguration, specRetryConfiguration);
|
|
2163
|
+
if (this.logger)
|
|
2164
|
+
retrier.logger = this.logger;
|
|
2165
|
+
const request = yield oci_common_1.composeRequest({
|
|
2166
|
+
baseEndpoint: this._endpoint,
|
|
2167
|
+
defaultHeaders: this._defaultHeaders,
|
|
2168
|
+
path: "/markets/{marketCode}",
|
|
2169
|
+
method: "GET",
|
|
2170
|
+
pathParams: pathParams,
|
|
2171
|
+
headerParams: headerParams,
|
|
2172
|
+
queryParams: queryParams
|
|
2173
|
+
});
|
|
2174
|
+
try {
|
|
2175
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2176
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2177
|
+
responseObject: {},
|
|
2178
|
+
body: yield response.json(),
|
|
2179
|
+
bodyKey: "market",
|
|
2180
|
+
bodyModel: model.Market,
|
|
2181
|
+
type: "model.Market",
|
|
2182
|
+
responseHeaders: [
|
|
2183
|
+
{
|
|
2184
|
+
value: response.headers.get("etag"),
|
|
2185
|
+
key: "etag",
|
|
2186
|
+
dataType: "string"
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
value: response.headers.get("opc-request-id"),
|
|
2190
|
+
key: "opcRequestId",
|
|
2191
|
+
dataType: "string"
|
|
2192
|
+
}
|
|
2193
|
+
]
|
|
2194
|
+
});
|
|
2195
|
+
return sdkResponse;
|
|
2196
|
+
}
|
|
2197
|
+
catch (err) {
|
|
2198
|
+
throw err;
|
|
2199
|
+
}
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
/**
|
|
2203
|
+
* Gets a Product by code identifier
|
|
2204
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2205
|
+
* @param GetProductRequest
|
|
2206
|
+
* @return GetProductResponse
|
|
2207
|
+
* @throws OciError when an error occurs
|
|
2208
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetProduct.ts.html |here} to see how to use GetProduct API.
|
|
2209
|
+
*/
|
|
2210
|
+
getProduct(getProductRequest) {
|
|
2211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2212
|
+
if (this.logger)
|
|
2213
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getProduct.");
|
|
2214
|
+
const operationName = "getProduct";
|
|
2215
|
+
const apiReferenceLink = "";
|
|
2216
|
+
const pathParams = {
|
|
2217
|
+
"{productCode}": getProductRequest.productCode
|
|
2218
|
+
};
|
|
2219
|
+
const queryParams = {};
|
|
2220
|
+
let headerParams = {
|
|
2221
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2222
|
+
"opc-request-id": getProductRequest.opcRequestId
|
|
2223
|
+
};
|
|
2224
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2225
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProductRequest.retryConfiguration, specRetryConfiguration);
|
|
2226
|
+
if (this.logger)
|
|
2227
|
+
retrier.logger = this.logger;
|
|
2228
|
+
const request = yield oci_common_1.composeRequest({
|
|
2229
|
+
baseEndpoint: this._endpoint,
|
|
2230
|
+
defaultHeaders: this._defaultHeaders,
|
|
2231
|
+
path: "/products/{productCode}",
|
|
2232
|
+
method: "GET",
|
|
2233
|
+
pathParams: pathParams,
|
|
2234
|
+
headerParams: headerParams,
|
|
2235
|
+
queryParams: queryParams
|
|
2236
|
+
});
|
|
2237
|
+
try {
|
|
2238
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2239
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2240
|
+
responseObject: {},
|
|
2241
|
+
body: yield response.json(),
|
|
2242
|
+
bodyKey: "product",
|
|
2243
|
+
bodyModel: model.Product,
|
|
2244
|
+
type: "model.Product",
|
|
2245
|
+
responseHeaders: [
|
|
2246
|
+
{
|
|
2247
|
+
value: response.headers.get("etag"),
|
|
2248
|
+
key: "etag",
|
|
2249
|
+
dataType: "string"
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
value: response.headers.get("opc-request-id"),
|
|
2253
|
+
key: "opcRequestId",
|
|
2254
|
+
dataType: "string"
|
|
2255
|
+
}
|
|
2256
|
+
]
|
|
2257
|
+
});
|
|
2258
|
+
return sdkResponse;
|
|
2259
|
+
}
|
|
2260
|
+
catch (err) {
|
|
2261
|
+
throw err;
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Gets a Publisher by identifier
|
|
2267
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2268
|
+
* @param GetPublisherRequest
|
|
2269
|
+
* @return GetPublisherResponse
|
|
2270
|
+
* @throws OciError when an error occurs
|
|
2271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetPublisher.ts.html |here} to see how to use GetPublisher API.
|
|
2272
|
+
*/
|
|
2273
|
+
getPublisher(getPublisherRequest) {
|
|
2274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2275
|
+
if (this.logger)
|
|
2276
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getPublisher.");
|
|
2277
|
+
const operationName = "getPublisher";
|
|
2278
|
+
const apiReferenceLink = "";
|
|
2279
|
+
const pathParams = {
|
|
2280
|
+
"{publisherId}": getPublisherRequest.publisherId
|
|
2281
|
+
};
|
|
2282
|
+
const queryParams = {};
|
|
2283
|
+
let headerParams = {
|
|
2284
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2285
|
+
"opc-request-id": getPublisherRequest.opcRequestId
|
|
2286
|
+
};
|
|
2287
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2288
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPublisherRequest.retryConfiguration, specRetryConfiguration);
|
|
2289
|
+
if (this.logger)
|
|
2290
|
+
retrier.logger = this.logger;
|
|
2291
|
+
const request = yield oci_common_1.composeRequest({
|
|
2292
|
+
baseEndpoint: this._endpoint,
|
|
2293
|
+
defaultHeaders: this._defaultHeaders,
|
|
2294
|
+
path: "/publishers/{publisherId}",
|
|
2295
|
+
method: "GET",
|
|
2296
|
+
pathParams: pathParams,
|
|
2297
|
+
headerParams: headerParams,
|
|
2298
|
+
queryParams: queryParams
|
|
2299
|
+
});
|
|
2300
|
+
try {
|
|
2301
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2302
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2303
|
+
responseObject: {},
|
|
2304
|
+
body: yield response.json(),
|
|
2305
|
+
bodyKey: "publisher",
|
|
2306
|
+
bodyModel: model.Publisher,
|
|
2307
|
+
type: "model.Publisher",
|
|
2308
|
+
responseHeaders: [
|
|
2309
|
+
{
|
|
2310
|
+
value: response.headers.get("etag"),
|
|
2311
|
+
key: "etag",
|
|
2312
|
+
dataType: "string"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
value: response.headers.get("opc-request-id"),
|
|
2316
|
+
key: "opcRequestId",
|
|
2317
|
+
dataType: "string"
|
|
2318
|
+
}
|
|
2319
|
+
]
|
|
2320
|
+
});
|
|
2321
|
+
return sdkResponse;
|
|
2322
|
+
}
|
|
2323
|
+
catch (err) {
|
|
2324
|
+
throw err;
|
|
2325
|
+
}
|
|
2326
|
+
});
|
|
2327
|
+
}
|
|
2328
|
+
/**
|
|
2329
|
+
* Gets a Term by identifier
|
|
2330
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2331
|
+
* @param GetTermRequest
|
|
2332
|
+
* @return GetTermResponse
|
|
2333
|
+
* @throws OciError when an error occurs
|
|
2334
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetTerm.ts.html |here} to see how to use GetTerm API.
|
|
2335
|
+
*/
|
|
2336
|
+
getTerm(getTermRequest) {
|
|
2337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2338
|
+
if (this.logger)
|
|
2339
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getTerm.");
|
|
2340
|
+
const operationName = "getTerm";
|
|
2341
|
+
const apiReferenceLink = "";
|
|
2342
|
+
const pathParams = {
|
|
2343
|
+
"{termId}": getTermRequest.termId
|
|
2344
|
+
};
|
|
2345
|
+
const queryParams = {};
|
|
2346
|
+
let headerParams = {
|
|
2347
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2348
|
+
"opc-request-id": getTermRequest.opcRequestId
|
|
2349
|
+
};
|
|
2350
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2351
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getTermRequest.retryConfiguration, specRetryConfiguration);
|
|
2352
|
+
if (this.logger)
|
|
2353
|
+
retrier.logger = this.logger;
|
|
2354
|
+
const request = yield oci_common_1.composeRequest({
|
|
2355
|
+
baseEndpoint: this._endpoint,
|
|
2356
|
+
defaultHeaders: this._defaultHeaders,
|
|
2357
|
+
path: "/terms/{termId}",
|
|
2358
|
+
method: "GET",
|
|
2359
|
+
pathParams: pathParams,
|
|
2360
|
+
headerParams: headerParams,
|
|
2361
|
+
queryParams: queryParams
|
|
2362
|
+
});
|
|
2363
|
+
try {
|
|
2364
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2365
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2366
|
+
responseObject: {},
|
|
2367
|
+
body: yield response.json(),
|
|
2368
|
+
bodyKey: "term",
|
|
2369
|
+
bodyModel: model.Term,
|
|
2370
|
+
type: "model.Term",
|
|
2371
|
+
responseHeaders: [
|
|
2372
|
+
{
|
|
2373
|
+
value: response.headers.get("etag"),
|
|
2374
|
+
key: "etag",
|
|
2375
|
+
dataType: "string"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
value: response.headers.get("opc-request-id"),
|
|
2379
|
+
key: "opcRequestId",
|
|
2380
|
+
dataType: "string"
|
|
2381
|
+
}
|
|
2382
|
+
]
|
|
2383
|
+
});
|
|
2384
|
+
return sdkResponse;
|
|
2385
|
+
}
|
|
2386
|
+
catch (err) {
|
|
2387
|
+
throw err;
|
|
2388
|
+
}
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2391
|
+
/**
|
|
2392
|
+
* Gets a Term Version by the identifier
|
|
2393
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2394
|
+
* @param GetTermVersionRequest
|
|
2395
|
+
* @return GetTermVersionResponse
|
|
2396
|
+
* @throws OciError when an error occurs
|
|
2397
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetTermVersion.ts.html |here} to see how to use GetTermVersion API.
|
|
2398
|
+
*/
|
|
2399
|
+
getTermVersion(getTermVersionRequest) {
|
|
2400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2401
|
+
if (this.logger)
|
|
2402
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getTermVersion.");
|
|
2403
|
+
const operationName = "getTermVersion";
|
|
2404
|
+
const apiReferenceLink = "";
|
|
2405
|
+
const pathParams = {
|
|
2406
|
+
"{termVersionId}": getTermVersionRequest.termVersionId
|
|
2407
|
+
};
|
|
2408
|
+
const queryParams = {};
|
|
2409
|
+
let headerParams = {
|
|
2410
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2411
|
+
"opc-request-id": getTermVersionRequest.opcRequestId
|
|
2412
|
+
};
|
|
2413
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2414
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getTermVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
2415
|
+
if (this.logger)
|
|
2416
|
+
retrier.logger = this.logger;
|
|
2417
|
+
const request = yield oci_common_1.composeRequest({
|
|
2418
|
+
baseEndpoint: this._endpoint,
|
|
2419
|
+
defaultHeaders: this._defaultHeaders,
|
|
2420
|
+
path: "/termVersions/{termVersionId}",
|
|
2421
|
+
method: "GET",
|
|
2422
|
+
pathParams: pathParams,
|
|
2423
|
+
headerParams: headerParams,
|
|
2424
|
+
queryParams: queryParams
|
|
2425
|
+
});
|
|
2426
|
+
try {
|
|
2427
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2428
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2429
|
+
responseObject: {},
|
|
2430
|
+
body: yield response.json(),
|
|
2431
|
+
bodyKey: "termVersion",
|
|
2432
|
+
bodyModel: model.TermVersion,
|
|
2433
|
+
type: "model.TermVersion",
|
|
2434
|
+
responseHeaders: [
|
|
2435
|
+
{
|
|
2436
|
+
value: response.headers.get("etag"),
|
|
2437
|
+
key: "etag",
|
|
2438
|
+
dataType: "string"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
value: response.headers.get("opc-request-id"),
|
|
2442
|
+
key: "opcRequestId",
|
|
2443
|
+
dataType: "string"
|
|
2444
|
+
}
|
|
2445
|
+
]
|
|
2446
|
+
});
|
|
2447
|
+
return sdkResponse;
|
|
2448
|
+
}
|
|
2449
|
+
catch (err) {
|
|
2450
|
+
throw err;
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* Gets details of the work request with the given ID.
|
|
2456
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2457
|
+
* @param GetWorkRequestRequest
|
|
2458
|
+
* @return GetWorkRequestResponse
|
|
2459
|
+
* @throws OciError when an error occurs
|
|
2460
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2461
|
+
*/
|
|
2462
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
2463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2464
|
+
if (this.logger)
|
|
2465
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#getWorkRequest.");
|
|
2466
|
+
const operationName = "getWorkRequest";
|
|
2467
|
+
const apiReferenceLink = "";
|
|
2468
|
+
const pathParams = {
|
|
2469
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
2470
|
+
};
|
|
2471
|
+
const queryParams = {};
|
|
2472
|
+
let headerParams = {
|
|
2473
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2474
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
2475
|
+
};
|
|
2476
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2477
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2478
|
+
if (this.logger)
|
|
2479
|
+
retrier.logger = this.logger;
|
|
2480
|
+
const request = yield oci_common_1.composeRequest({
|
|
2481
|
+
baseEndpoint: this._endpoint,
|
|
2482
|
+
defaultHeaders: this._defaultHeaders,
|
|
2483
|
+
path: "/workRequests/{workRequestId}",
|
|
2484
|
+
method: "GET",
|
|
2485
|
+
pathParams: pathParams,
|
|
2486
|
+
headerParams: headerParams,
|
|
2487
|
+
queryParams: queryParams
|
|
2488
|
+
});
|
|
2489
|
+
try {
|
|
2490
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2491
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2492
|
+
responseObject: {},
|
|
2493
|
+
body: yield response.json(),
|
|
2494
|
+
bodyKey: "workRequest",
|
|
2495
|
+
bodyModel: model.WorkRequest,
|
|
2496
|
+
type: "model.WorkRequest",
|
|
2497
|
+
responseHeaders: [
|
|
2498
|
+
{
|
|
2499
|
+
value: response.headers.get("etag"),
|
|
2500
|
+
key: "etag",
|
|
2501
|
+
dataType: "string"
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
value: response.headers.get("opc-request-id"),
|
|
2505
|
+
key: "opcRequestId",
|
|
2506
|
+
dataType: "string"
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
value: response.headers.get("retry-after"),
|
|
2510
|
+
key: "retryAfter",
|
|
2511
|
+
dataType: "number"
|
|
2512
|
+
}
|
|
2513
|
+
]
|
|
2514
|
+
});
|
|
2515
|
+
return sdkResponse;
|
|
2516
|
+
}
|
|
2517
|
+
catch (err) {
|
|
2518
|
+
throw err;
|
|
2519
|
+
}
|
|
2520
|
+
});
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Lists the artifacts in your compartment. You must specify your compartment's OCID as the value for
|
|
2524
|
+
* the compartment ID.
|
|
2525
|
+
* For information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm).
|
|
2526
|
+
*
|
|
2527
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2528
|
+
* @param ListArtifactsRequest
|
|
2529
|
+
* @return ListArtifactsResponse
|
|
2530
|
+
* @throws OciError when an error occurs
|
|
2531
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListArtifacts.ts.html |here} to see how to use ListArtifacts API.
|
|
2532
|
+
*/
|
|
2533
|
+
listArtifacts(listArtifactsRequest) {
|
|
2534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2535
|
+
if (this.logger)
|
|
2536
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listArtifacts.");
|
|
2537
|
+
const operationName = "listArtifacts";
|
|
2538
|
+
const apiReferenceLink = "";
|
|
2539
|
+
const pathParams = {};
|
|
2540
|
+
const queryParams = {
|
|
2541
|
+
"compartmentId": listArtifactsRequest.compartmentId,
|
|
2542
|
+
"lifecycleState": listArtifactsRequest.lifecycleState,
|
|
2543
|
+
"displayName": listArtifactsRequest.displayName,
|
|
2544
|
+
"status": listArtifactsRequest.status,
|
|
2545
|
+
"limit": listArtifactsRequest.limit,
|
|
2546
|
+
"page": listArtifactsRequest.page,
|
|
2547
|
+
"sortOrder": listArtifactsRequest.sortOrder,
|
|
2548
|
+
"sortBy": listArtifactsRequest.sortBy
|
|
2549
|
+
};
|
|
2550
|
+
let headerParams = {
|
|
2551
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2552
|
+
"opc-request-id": listArtifactsRequest.opcRequestId
|
|
2553
|
+
};
|
|
2554
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2555
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listArtifactsRequest.retryConfiguration, specRetryConfiguration);
|
|
2556
|
+
if (this.logger)
|
|
2557
|
+
retrier.logger = this.logger;
|
|
2558
|
+
const request = yield oci_common_1.composeRequest({
|
|
2559
|
+
baseEndpoint: this._endpoint,
|
|
2560
|
+
defaultHeaders: this._defaultHeaders,
|
|
2561
|
+
path: "/artifacts",
|
|
2562
|
+
method: "GET",
|
|
2563
|
+
pathParams: pathParams,
|
|
2564
|
+
headerParams: headerParams,
|
|
2565
|
+
queryParams: queryParams
|
|
2566
|
+
});
|
|
2567
|
+
try {
|
|
2568
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2569
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2570
|
+
responseObject: {},
|
|
2571
|
+
body: yield response.json(),
|
|
2572
|
+
bodyKey: "artifactCollection",
|
|
2573
|
+
bodyModel: model.ArtifactCollection,
|
|
2574
|
+
type: "model.ArtifactCollection",
|
|
2575
|
+
responseHeaders: [
|
|
2576
|
+
{
|
|
2577
|
+
value: response.headers.get("opc-request-id"),
|
|
2578
|
+
key: "opcRequestId",
|
|
2579
|
+
dataType: "string"
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
value: response.headers.get("opc-next-page"),
|
|
2583
|
+
key: "opcNextPage",
|
|
2584
|
+
dataType: "string"
|
|
2585
|
+
}
|
|
2586
|
+
]
|
|
2587
|
+
});
|
|
2588
|
+
return sdkResponse;
|
|
2589
|
+
}
|
|
2590
|
+
catch (err) {
|
|
2591
|
+
throw err;
|
|
2592
|
+
}
|
|
2593
|
+
});
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
* Lists the categories in your compartment. You must specify your compartment's OCID as the value for
|
|
2597
|
+
* the compartment ID.
|
|
2598
|
+
* For information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm).
|
|
2599
|
+
*
|
|
2600
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2601
|
+
* @param ListCategoriesRequest
|
|
2602
|
+
* @return ListCategoriesResponse
|
|
2603
|
+
* @throws OciError when an error occurs
|
|
2604
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListCategories.ts.html |here} to see how to use ListCategories API.
|
|
2605
|
+
*/
|
|
2606
|
+
listCategories(listCategoriesRequest) {
|
|
2607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2608
|
+
if (this.logger)
|
|
2609
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listCategories.");
|
|
2610
|
+
const operationName = "listCategories";
|
|
2611
|
+
const apiReferenceLink = "";
|
|
2612
|
+
const pathParams = {};
|
|
2613
|
+
const queryParams = {
|
|
2614
|
+
"limit": listCategoriesRequest.limit,
|
|
2615
|
+
"page": listCategoriesRequest.page,
|
|
2616
|
+
"compartmentId": listCategoriesRequest.compartmentId,
|
|
2617
|
+
"productCode": listCategoriesRequest.productCode,
|
|
2618
|
+
"sortOrder": listCategoriesRequest.sortOrder,
|
|
2619
|
+
"sortBy": listCategoriesRequest.sortBy,
|
|
2620
|
+
"name": listCategoriesRequest.name
|
|
2621
|
+
};
|
|
2622
|
+
let headerParams = {
|
|
2623
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2624
|
+
"opc-request-id": listCategoriesRequest.opcRequestId
|
|
2625
|
+
};
|
|
2626
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2627
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCategoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
2628
|
+
if (this.logger)
|
|
2629
|
+
retrier.logger = this.logger;
|
|
2630
|
+
const request = yield oci_common_1.composeRequest({
|
|
2631
|
+
baseEndpoint: this._endpoint,
|
|
2632
|
+
defaultHeaders: this._defaultHeaders,
|
|
2633
|
+
path: "/categories",
|
|
2634
|
+
method: "GET",
|
|
2635
|
+
pathParams: pathParams,
|
|
2636
|
+
headerParams: headerParams,
|
|
2637
|
+
queryParams: queryParams
|
|
2638
|
+
});
|
|
2639
|
+
try {
|
|
2640
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2641
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2642
|
+
responseObject: {},
|
|
2643
|
+
body: yield response.json(),
|
|
2644
|
+
bodyKey: "categoryCollection",
|
|
2645
|
+
bodyModel: model.CategoryCollection,
|
|
2646
|
+
type: "model.CategoryCollection",
|
|
2647
|
+
responseHeaders: [
|
|
2648
|
+
{
|
|
2649
|
+
value: response.headers.get("opc-next-page"),
|
|
2650
|
+
key: "opcNextPage",
|
|
2651
|
+
dataType: "string"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
value: response.headers.get("opc-request-id"),
|
|
2655
|
+
key: "opcRequestId",
|
|
2656
|
+
dataType: "string"
|
|
2657
|
+
}
|
|
2658
|
+
]
|
|
2659
|
+
});
|
|
2660
|
+
return sdkResponse;
|
|
2661
|
+
}
|
|
2662
|
+
catch (err) {
|
|
2663
|
+
throw err;
|
|
2664
|
+
}
|
|
2665
|
+
});
|
|
2666
|
+
}
|
|
2667
|
+
/**
|
|
2668
|
+
* Gets the list of attachments for a listing revision in a compartment
|
|
2669
|
+
*
|
|
2670
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2671
|
+
* @param ListListingRevisionAttachmentsRequest
|
|
2672
|
+
* @return ListListingRevisionAttachmentsResponse
|
|
2673
|
+
* @throws OciError when an error occurs
|
|
2674
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListListingRevisionAttachments.ts.html |here} to see how to use ListListingRevisionAttachments API.
|
|
2675
|
+
*/
|
|
2676
|
+
listListingRevisionAttachments(listListingRevisionAttachmentsRequest) {
|
|
2677
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2678
|
+
if (this.logger)
|
|
2679
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listListingRevisionAttachments.");
|
|
2680
|
+
const operationName = "listListingRevisionAttachments";
|
|
2681
|
+
const apiReferenceLink = "";
|
|
2682
|
+
const pathParams = {};
|
|
2683
|
+
const queryParams = {
|
|
2684
|
+
"listingRevisionId": listListingRevisionAttachmentsRequest.listingRevisionId,
|
|
2685
|
+
"displayName": listListingRevisionAttachmentsRequest.displayName,
|
|
2686
|
+
"lifecycleState": listListingRevisionAttachmentsRequest.lifecycleState,
|
|
2687
|
+
"compartmentId": listListingRevisionAttachmentsRequest.compartmentId,
|
|
2688
|
+
"limit": listListingRevisionAttachmentsRequest.limit,
|
|
2689
|
+
"page": listListingRevisionAttachmentsRequest.page,
|
|
2690
|
+
"sortOrder": listListingRevisionAttachmentsRequest.sortOrder,
|
|
2691
|
+
"sortBy": listListingRevisionAttachmentsRequest.sortBy
|
|
2692
|
+
};
|
|
2693
|
+
let headerParams = {
|
|
2694
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2695
|
+
"opc-request-id": listListingRevisionAttachmentsRequest.opcRequestId
|
|
2696
|
+
};
|
|
2697
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2698
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listListingRevisionAttachmentsRequest.retryConfiguration, specRetryConfiguration);
|
|
2699
|
+
if (this.logger)
|
|
2700
|
+
retrier.logger = this.logger;
|
|
2701
|
+
const request = yield oci_common_1.composeRequest({
|
|
2702
|
+
baseEndpoint: this._endpoint,
|
|
2703
|
+
defaultHeaders: this._defaultHeaders,
|
|
2704
|
+
path: "/listingRevisionAttachments",
|
|
2705
|
+
method: "GET",
|
|
2706
|
+
pathParams: pathParams,
|
|
2707
|
+
headerParams: headerParams,
|
|
2708
|
+
queryParams: queryParams
|
|
2709
|
+
});
|
|
2710
|
+
try {
|
|
2711
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2712
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2713
|
+
responseObject: {},
|
|
2714
|
+
body: yield response.json(),
|
|
2715
|
+
bodyKey: "listingRevisionAttachmentCollection",
|
|
2716
|
+
bodyModel: model.ListingRevisionAttachmentCollection,
|
|
2717
|
+
type: "model.ListingRevisionAttachmentCollection",
|
|
2718
|
+
responseHeaders: [
|
|
2719
|
+
{
|
|
2720
|
+
value: response.headers.get("opc-request-id"),
|
|
2721
|
+
key: "opcRequestId",
|
|
2722
|
+
dataType: "string"
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
value: response.headers.get("opc-next-page"),
|
|
2726
|
+
key: "opcNextPage",
|
|
2727
|
+
dataType: "string"
|
|
2728
|
+
}
|
|
2729
|
+
]
|
|
2730
|
+
});
|
|
2731
|
+
return sdkResponse;
|
|
2732
|
+
}
|
|
2733
|
+
catch (err) {
|
|
2734
|
+
throw err;
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
}
|
|
2738
|
+
/**
|
|
2739
|
+
* Gets the list of notes for a listing revision.
|
|
2740
|
+
*
|
|
2741
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2742
|
+
* @param ListListingRevisionNotesRequest
|
|
2743
|
+
* @return ListListingRevisionNotesResponse
|
|
2744
|
+
* @throws OciError when an error occurs
|
|
2745
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListListingRevisionNotes.ts.html |here} to see how to use ListListingRevisionNotes API.
|
|
2746
|
+
*/
|
|
2747
|
+
listListingRevisionNotes(listListingRevisionNotesRequest) {
|
|
2748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2749
|
+
if (this.logger)
|
|
2750
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listListingRevisionNotes.");
|
|
2751
|
+
const operationName = "listListingRevisionNotes";
|
|
2752
|
+
const apiReferenceLink = "";
|
|
2753
|
+
const pathParams = {};
|
|
2754
|
+
const queryParams = {
|
|
2755
|
+
"compartmentId": listListingRevisionNotesRequest.compartmentId,
|
|
2756
|
+
"listingRevisionId": listListingRevisionNotesRequest.listingRevisionId,
|
|
2757
|
+
"limit": listListingRevisionNotesRequest.limit,
|
|
2758
|
+
"page": listListingRevisionNotesRequest.page,
|
|
2759
|
+
"sortOrder": listListingRevisionNotesRequest.sortOrder,
|
|
2760
|
+
"sortBy": listListingRevisionNotesRequest.sortBy
|
|
2761
|
+
};
|
|
2762
|
+
let headerParams = {
|
|
2763
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2764
|
+
"opc-request-id": listListingRevisionNotesRequest.opcRequestId
|
|
2765
|
+
};
|
|
2766
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2767
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listListingRevisionNotesRequest.retryConfiguration, specRetryConfiguration);
|
|
2768
|
+
if (this.logger)
|
|
2769
|
+
retrier.logger = this.logger;
|
|
2770
|
+
const request = yield oci_common_1.composeRequest({
|
|
2771
|
+
baseEndpoint: this._endpoint,
|
|
2772
|
+
defaultHeaders: this._defaultHeaders,
|
|
2773
|
+
path: "/listingRevisionNotes",
|
|
2774
|
+
method: "GET",
|
|
2775
|
+
pathParams: pathParams,
|
|
2776
|
+
headerParams: headerParams,
|
|
2777
|
+
queryParams: queryParams
|
|
2778
|
+
});
|
|
2779
|
+
try {
|
|
2780
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2781
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2782
|
+
responseObject: {},
|
|
2783
|
+
body: yield response.json(),
|
|
2784
|
+
bodyKey: "listingRevisionNoteCollection",
|
|
2785
|
+
bodyModel: model.ListingRevisionNoteCollection,
|
|
2786
|
+
type: "model.ListingRevisionNoteCollection",
|
|
2787
|
+
responseHeaders: [
|
|
2788
|
+
{
|
|
2789
|
+
value: response.headers.get("opc-request-id"),
|
|
2790
|
+
key: "opcRequestId",
|
|
2791
|
+
dataType: "string"
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
value: response.headers.get("opc-next-page"),
|
|
2795
|
+
key: "opcNextPage",
|
|
2796
|
+
dataType: "string"
|
|
2797
|
+
}
|
|
2798
|
+
]
|
|
2799
|
+
});
|
|
2800
|
+
return sdkResponse;
|
|
2801
|
+
}
|
|
2802
|
+
catch (err) {
|
|
2803
|
+
throw err;
|
|
2804
|
+
}
|
|
2805
|
+
});
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* Gets the list of packages for a listing revision.
|
|
2809
|
+
*
|
|
2810
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2811
|
+
* @param ListListingRevisionPackagesRequest
|
|
2812
|
+
* @return ListListingRevisionPackagesResponse
|
|
2813
|
+
* @throws OciError when an error occurs
|
|
2814
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListListingRevisionPackages.ts.html |here} to see how to use ListListingRevisionPackages API.
|
|
2815
|
+
*/
|
|
2816
|
+
listListingRevisionPackages(listListingRevisionPackagesRequest) {
|
|
2817
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2818
|
+
if (this.logger)
|
|
2819
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listListingRevisionPackages.");
|
|
2820
|
+
const operationName = "listListingRevisionPackages";
|
|
2821
|
+
const apiReferenceLink = "";
|
|
2822
|
+
const pathParams = {};
|
|
2823
|
+
const queryParams = {
|
|
2824
|
+
"compartmentId": listListingRevisionPackagesRequest.compartmentId,
|
|
2825
|
+
"listingRevisionId": listListingRevisionPackagesRequest.listingRevisionId,
|
|
2826
|
+
"displayName": listListingRevisionPackagesRequest.displayName,
|
|
2827
|
+
"lifecycleState": listListingRevisionPackagesRequest.lifecycleState,
|
|
2828
|
+
"limit": listListingRevisionPackagesRequest.limit,
|
|
2829
|
+
"page": listListingRevisionPackagesRequest.page,
|
|
2830
|
+
"sortOrder": listListingRevisionPackagesRequest.sortOrder,
|
|
2831
|
+
"sortBy": listListingRevisionPackagesRequest.sortBy
|
|
2832
|
+
};
|
|
2833
|
+
let headerParams = {
|
|
2834
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2835
|
+
"opc-request-id": listListingRevisionPackagesRequest.opcRequestId
|
|
2836
|
+
};
|
|
2837
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2838
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listListingRevisionPackagesRequest.retryConfiguration, specRetryConfiguration);
|
|
2839
|
+
if (this.logger)
|
|
2840
|
+
retrier.logger = this.logger;
|
|
2841
|
+
const request = yield oci_common_1.composeRequest({
|
|
2842
|
+
baseEndpoint: this._endpoint,
|
|
2843
|
+
defaultHeaders: this._defaultHeaders,
|
|
2844
|
+
path: "/listingRevisionPackages",
|
|
2845
|
+
method: "GET",
|
|
2846
|
+
pathParams: pathParams,
|
|
2847
|
+
headerParams: headerParams,
|
|
2848
|
+
queryParams: queryParams
|
|
2849
|
+
});
|
|
2850
|
+
try {
|
|
2851
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2852
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2853
|
+
responseObject: {},
|
|
2854
|
+
body: yield response.json(),
|
|
2855
|
+
bodyKey: "listingRevisionPackageCollection",
|
|
2856
|
+
bodyModel: model.ListingRevisionPackageCollection,
|
|
2857
|
+
type: "model.ListingRevisionPackageCollection",
|
|
2858
|
+
responseHeaders: [
|
|
2859
|
+
{
|
|
2860
|
+
value: response.headers.get("opc-request-id"),
|
|
2861
|
+
key: "opcRequestId",
|
|
2862
|
+
dataType: "string"
|
|
2863
|
+
},
|
|
2864
|
+
{
|
|
2865
|
+
value: response.headers.get("opc-next-page"),
|
|
2866
|
+
key: "opcNextPage",
|
|
2867
|
+
dataType: "string"
|
|
2868
|
+
}
|
|
2869
|
+
]
|
|
2870
|
+
});
|
|
2871
|
+
return sdkResponse;
|
|
2872
|
+
}
|
|
2873
|
+
catch (err) {
|
|
2874
|
+
throw err;
|
|
2875
|
+
}
|
|
2876
|
+
});
|
|
2877
|
+
}
|
|
2878
|
+
/**
|
|
2879
|
+
* Lists the list of listing revisions for a specific listing ID, compartment ID or listing revision status.
|
|
2880
|
+
* <p>
|
|
2881
|
+
You can specify your compartment's OCID as the value for the compartment ID.
|
|
2882
|
+
* For information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm).
|
|
2883
|
+
*
|
|
2884
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2885
|
+
* @param ListListingRevisionsRequest
|
|
2886
|
+
* @return ListListingRevisionsResponse
|
|
2887
|
+
* @throws OciError when an error occurs
|
|
2888
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListListingRevisions.ts.html |here} to see how to use ListListingRevisions API.
|
|
2889
|
+
*/
|
|
2890
|
+
listListingRevisions(listListingRevisionsRequest) {
|
|
2891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2892
|
+
if (this.logger)
|
|
2893
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listListingRevisions.");
|
|
2894
|
+
const operationName = "listListingRevisions";
|
|
2895
|
+
const apiReferenceLink = "";
|
|
2896
|
+
const pathParams = {};
|
|
2897
|
+
const queryParams = {
|
|
2898
|
+
"listingId": listListingRevisionsRequest.listingId,
|
|
2899
|
+
"displayName": listListingRevisionsRequest.displayName,
|
|
2900
|
+
"lifecycleState": listListingRevisionsRequest.lifecycleState,
|
|
2901
|
+
"compartmentId": listListingRevisionsRequest.compartmentId,
|
|
2902
|
+
"listingRevisionStatus": listListingRevisionsRequest.listingRevisionStatus,
|
|
2903
|
+
"limit": listListingRevisionsRequest.limit,
|
|
2904
|
+
"page": listListingRevisionsRequest.page,
|
|
2905
|
+
"sortOrder": listListingRevisionsRequest.sortOrder,
|
|
2906
|
+
"sortBy": listListingRevisionsRequest.sortBy
|
|
2907
|
+
};
|
|
2908
|
+
let headerParams = {
|
|
2909
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2910
|
+
"opc-request-id": listListingRevisionsRequest.opcRequestId
|
|
2911
|
+
};
|
|
2912
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2913
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listListingRevisionsRequest.retryConfiguration, specRetryConfiguration);
|
|
2914
|
+
if (this.logger)
|
|
2915
|
+
retrier.logger = this.logger;
|
|
2916
|
+
const request = yield oci_common_1.composeRequest({
|
|
2917
|
+
baseEndpoint: this._endpoint,
|
|
2918
|
+
defaultHeaders: this._defaultHeaders,
|
|
2919
|
+
path: "/listingRevisions",
|
|
2920
|
+
method: "GET",
|
|
2921
|
+
pathParams: pathParams,
|
|
2922
|
+
headerParams: headerParams,
|
|
2923
|
+
queryParams: queryParams
|
|
2924
|
+
});
|
|
2925
|
+
try {
|
|
2926
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2927
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2928
|
+
responseObject: {},
|
|
2929
|
+
body: yield response.json(),
|
|
2930
|
+
bodyKey: "listingRevisionCollection",
|
|
2931
|
+
bodyModel: model.ListingRevisionCollection,
|
|
2932
|
+
type: "model.ListingRevisionCollection",
|
|
2933
|
+
responseHeaders: [
|
|
2934
|
+
{
|
|
2935
|
+
value: response.headers.get("opc-request-id"),
|
|
2936
|
+
key: "opcRequestId",
|
|
2937
|
+
dataType: "string"
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
value: response.headers.get("opc-next-page"),
|
|
2941
|
+
key: "opcNextPage",
|
|
2942
|
+
dataType: "string"
|
|
2943
|
+
}
|
|
2944
|
+
]
|
|
2945
|
+
});
|
|
2946
|
+
return sdkResponse;
|
|
2947
|
+
}
|
|
2948
|
+
catch (err) {
|
|
2949
|
+
throw err;
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
/**
|
|
2954
|
+
* Lists the listings in your compartment. You must specify your compartment's OCID as the value for
|
|
2955
|
+
* the compartment ID.
|
|
2956
|
+
* For information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm).
|
|
2957
|
+
*
|
|
2958
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2959
|
+
* @param ListListingsRequest
|
|
2960
|
+
* @return ListListingsResponse
|
|
2961
|
+
* @throws OciError when an error occurs
|
|
2962
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListListings.ts.html |here} to see how to use ListListings API.
|
|
2963
|
+
*/
|
|
2964
|
+
listListings(listListingsRequest) {
|
|
2965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2966
|
+
if (this.logger)
|
|
2967
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listListings.");
|
|
2968
|
+
const operationName = "listListings";
|
|
2969
|
+
const apiReferenceLink = "";
|
|
2970
|
+
const pathParams = {};
|
|
2971
|
+
const queryParams = {
|
|
2972
|
+
"compartmentId": listListingsRequest.compartmentId,
|
|
2973
|
+
"lifecycleState": listListingsRequest.lifecycleState,
|
|
2974
|
+
"name": listListingsRequest.name,
|
|
2975
|
+
"limit": listListingsRequest.limit,
|
|
2976
|
+
"page": listListingsRequest.page,
|
|
2977
|
+
"sortOrder": listListingsRequest.sortOrder,
|
|
2978
|
+
"sortBy": listListingsRequest.sortBy
|
|
2979
|
+
};
|
|
2980
|
+
let headerParams = {
|
|
2981
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2982
|
+
"opc-request-id": listListingsRequest.opcRequestId
|
|
2983
|
+
};
|
|
2984
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2985
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listListingsRequest.retryConfiguration, specRetryConfiguration);
|
|
2986
|
+
if (this.logger)
|
|
2987
|
+
retrier.logger = this.logger;
|
|
2988
|
+
const request = yield oci_common_1.composeRequest({
|
|
2989
|
+
baseEndpoint: this._endpoint,
|
|
2990
|
+
defaultHeaders: this._defaultHeaders,
|
|
2991
|
+
path: "/listings",
|
|
2992
|
+
method: "GET",
|
|
2993
|
+
pathParams: pathParams,
|
|
2994
|
+
headerParams: headerParams,
|
|
2995
|
+
queryParams: queryParams
|
|
2996
|
+
});
|
|
2997
|
+
try {
|
|
2998
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2999
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3000
|
+
responseObject: {},
|
|
3001
|
+
body: yield response.json(),
|
|
3002
|
+
bodyKey: "listingCollection",
|
|
3003
|
+
bodyModel: model.ListingCollection,
|
|
3004
|
+
type: "model.ListingCollection",
|
|
3005
|
+
responseHeaders: [
|
|
3006
|
+
{
|
|
3007
|
+
value: response.headers.get("opc-request-id"),
|
|
3008
|
+
key: "opcRequestId",
|
|
3009
|
+
dataType: "string"
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
value: response.headers.get("opc-next-page"),
|
|
3013
|
+
key: "opcNextPage",
|
|
3014
|
+
dataType: "string"
|
|
3015
|
+
}
|
|
3016
|
+
]
|
|
3017
|
+
});
|
|
3018
|
+
return sdkResponse;
|
|
3019
|
+
}
|
|
3020
|
+
catch (err) {
|
|
3021
|
+
throw err;
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
}
|
|
3025
|
+
/**
|
|
3026
|
+
* Lists the markets in your compartment. You must specify your compartment's OCID as the value for
|
|
3027
|
+
* the compartment ID.
|
|
3028
|
+
* For information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm).
|
|
3029
|
+
*
|
|
3030
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3031
|
+
* @param ListMarketsRequest
|
|
3032
|
+
* @return ListMarketsResponse
|
|
3033
|
+
* @throws OciError when an error occurs
|
|
3034
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListMarkets.ts.html |here} to see how to use ListMarkets API.
|
|
3035
|
+
*/
|
|
3036
|
+
listMarkets(listMarketsRequest) {
|
|
3037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3038
|
+
if (this.logger)
|
|
3039
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listMarkets.");
|
|
3040
|
+
const operationName = "listMarkets";
|
|
3041
|
+
const apiReferenceLink = "";
|
|
3042
|
+
const pathParams = {};
|
|
3043
|
+
const queryParams = {
|
|
3044
|
+
"limit": listMarketsRequest.limit,
|
|
3045
|
+
"page": listMarketsRequest.page,
|
|
3046
|
+
"compartmentId": listMarketsRequest.compartmentId,
|
|
3047
|
+
"sortOrder": listMarketsRequest.sortOrder,
|
|
3048
|
+
"sortBy": listMarketsRequest.sortBy,
|
|
3049
|
+
"name": listMarketsRequest.name
|
|
3050
|
+
};
|
|
3051
|
+
let headerParams = {
|
|
3052
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3053
|
+
"opc-request-id": listMarketsRequest.opcRequestId
|
|
3054
|
+
};
|
|
3055
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3056
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMarketsRequest.retryConfiguration, specRetryConfiguration);
|
|
3057
|
+
if (this.logger)
|
|
3058
|
+
retrier.logger = this.logger;
|
|
3059
|
+
const request = yield oci_common_1.composeRequest({
|
|
3060
|
+
baseEndpoint: this._endpoint,
|
|
3061
|
+
defaultHeaders: this._defaultHeaders,
|
|
3062
|
+
path: "/markets",
|
|
3063
|
+
method: "GET",
|
|
3064
|
+
pathParams: pathParams,
|
|
3065
|
+
headerParams: headerParams,
|
|
3066
|
+
queryParams: queryParams
|
|
3067
|
+
});
|
|
3068
|
+
try {
|
|
3069
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3070
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3071
|
+
responseObject: {},
|
|
3072
|
+
body: yield response.json(),
|
|
3073
|
+
bodyKey: "marketCollection",
|
|
3074
|
+
bodyModel: model.MarketCollection,
|
|
3075
|
+
type: "model.MarketCollection",
|
|
3076
|
+
responseHeaders: [
|
|
3077
|
+
{
|
|
3078
|
+
value: response.headers.get("opc-next-page"),
|
|
3079
|
+
key: "opcNextPage",
|
|
3080
|
+
dataType: "string"
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
value: response.headers.get("opc-request-id"),
|
|
3084
|
+
key: "opcRequestId",
|
|
3085
|
+
dataType: "string"
|
|
3086
|
+
}
|
|
3087
|
+
]
|
|
3088
|
+
});
|
|
3089
|
+
return sdkResponse;
|
|
3090
|
+
}
|
|
3091
|
+
catch (err) {
|
|
3092
|
+
throw err;
|
|
3093
|
+
}
|
|
3094
|
+
});
|
|
3095
|
+
}
|
|
3096
|
+
/**
|
|
3097
|
+
* Lists the products in your compartment. You must specify your compartment's OCID as the value for
|
|
3098
|
+
* the compartment ID.
|
|
3099
|
+
* For information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm).
|
|
3100
|
+
*
|
|
3101
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3102
|
+
* @param ListProductsRequest
|
|
3103
|
+
* @return ListProductsResponse
|
|
3104
|
+
* @throws OciError when an error occurs
|
|
3105
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListProducts.ts.html |here} to see how to use ListProducts API.
|
|
3106
|
+
*/
|
|
3107
|
+
listProducts(listProductsRequest) {
|
|
3108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3109
|
+
if (this.logger)
|
|
3110
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listProducts.");
|
|
3111
|
+
const operationName = "listProducts";
|
|
3112
|
+
const apiReferenceLink = "";
|
|
3113
|
+
const pathParams = {};
|
|
3114
|
+
const queryParams = {
|
|
3115
|
+
"limit": listProductsRequest.limit,
|
|
3116
|
+
"page": listProductsRequest.page,
|
|
3117
|
+
"compartmentId": listProductsRequest.compartmentId,
|
|
3118
|
+
"sortOrder": listProductsRequest.sortOrder,
|
|
3119
|
+
"sortBy": listProductsRequest.sortBy,
|
|
3120
|
+
"name": listProductsRequest.name
|
|
3121
|
+
};
|
|
3122
|
+
let headerParams = {
|
|
3123
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3124
|
+
"opc-request-id": listProductsRequest.opcRequestId
|
|
3125
|
+
};
|
|
3126
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3127
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProductsRequest.retryConfiguration, specRetryConfiguration);
|
|
3128
|
+
if (this.logger)
|
|
3129
|
+
retrier.logger = this.logger;
|
|
3130
|
+
const request = yield oci_common_1.composeRequest({
|
|
3131
|
+
baseEndpoint: this._endpoint,
|
|
3132
|
+
defaultHeaders: this._defaultHeaders,
|
|
3133
|
+
path: "/products",
|
|
3134
|
+
method: "GET",
|
|
3135
|
+
pathParams: pathParams,
|
|
3136
|
+
headerParams: headerParams,
|
|
3137
|
+
queryParams: queryParams
|
|
3138
|
+
});
|
|
3139
|
+
try {
|
|
3140
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3141
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3142
|
+
responseObject: {},
|
|
3143
|
+
body: yield response.json(),
|
|
3144
|
+
bodyKey: "productCollection",
|
|
3145
|
+
bodyModel: model.ProductCollection,
|
|
3146
|
+
type: "model.ProductCollection",
|
|
3147
|
+
responseHeaders: [
|
|
3148
|
+
{
|
|
3149
|
+
value: response.headers.get("opc-next-page"),
|
|
3150
|
+
key: "opcNextPage",
|
|
3151
|
+
dataType: "string"
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
value: response.headers.get("opc-request-id"),
|
|
3155
|
+
key: "opcRequestId",
|
|
3156
|
+
dataType: "string"
|
|
3157
|
+
}
|
|
3158
|
+
]
|
|
3159
|
+
});
|
|
3160
|
+
return sdkResponse;
|
|
3161
|
+
}
|
|
3162
|
+
catch (err) {
|
|
3163
|
+
throw err;
|
|
3164
|
+
}
|
|
3165
|
+
});
|
|
3166
|
+
}
|
|
3167
|
+
/**
|
|
3168
|
+
* Returns a list of publishers.
|
|
3169
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3170
|
+
* @param ListPublishersRequest
|
|
3171
|
+
* @return ListPublishersResponse
|
|
3172
|
+
* @throws OciError when an error occurs
|
|
3173
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListPublishers.ts.html |here} to see how to use ListPublishers API.
|
|
3174
|
+
*/
|
|
3175
|
+
listPublishers(listPublishersRequest) {
|
|
3176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3177
|
+
if (this.logger)
|
|
3178
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listPublishers.");
|
|
3179
|
+
const operationName = "listPublishers";
|
|
3180
|
+
const apiReferenceLink = "";
|
|
3181
|
+
const pathParams = {};
|
|
3182
|
+
const queryParams = {
|
|
3183
|
+
"limit": listPublishersRequest.limit,
|
|
3184
|
+
"page": listPublishersRequest.page,
|
|
3185
|
+
"compartmentId": listPublishersRequest.compartmentId,
|
|
3186
|
+
"sortOrder": listPublishersRequest.sortOrder,
|
|
3187
|
+
"sortBy": listPublishersRequest.sortBy,
|
|
3188
|
+
"name": listPublishersRequest.name
|
|
3189
|
+
};
|
|
3190
|
+
let headerParams = {
|
|
3191
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3192
|
+
"opc-request-id": listPublishersRequest.opcRequestId
|
|
3193
|
+
};
|
|
3194
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3195
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPublishersRequest.retryConfiguration, specRetryConfiguration);
|
|
3196
|
+
if (this.logger)
|
|
3197
|
+
retrier.logger = this.logger;
|
|
3198
|
+
const request = yield oci_common_1.composeRequest({
|
|
3199
|
+
baseEndpoint: this._endpoint,
|
|
3200
|
+
defaultHeaders: this._defaultHeaders,
|
|
3201
|
+
path: "/publishers",
|
|
3202
|
+
method: "GET",
|
|
3203
|
+
pathParams: pathParams,
|
|
3204
|
+
headerParams: headerParams,
|
|
3205
|
+
queryParams: queryParams
|
|
3206
|
+
});
|
|
3207
|
+
try {
|
|
3208
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3209
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3210
|
+
responseObject: {},
|
|
3211
|
+
body: yield response.json(),
|
|
3212
|
+
bodyKey: "publisherCollection",
|
|
3213
|
+
bodyModel: model.PublisherCollection,
|
|
3214
|
+
type: "model.PublisherCollection",
|
|
3215
|
+
responseHeaders: [
|
|
3216
|
+
{
|
|
3217
|
+
value: response.headers.get("opc-next-page"),
|
|
3218
|
+
key: "opcNextPage",
|
|
3219
|
+
dataType: "string"
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
value: response.headers.get("opc-request-id"),
|
|
3223
|
+
key: "opcRequestId",
|
|
3224
|
+
dataType: "string"
|
|
3225
|
+
}
|
|
3226
|
+
]
|
|
3227
|
+
});
|
|
3228
|
+
return sdkResponse;
|
|
3229
|
+
}
|
|
3230
|
+
catch (err) {
|
|
3231
|
+
throw err;
|
|
3232
|
+
}
|
|
3233
|
+
});
|
|
3234
|
+
}
|
|
3235
|
+
/**
|
|
3236
|
+
* Returns a list of the publisher term versions.
|
|
3237
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3238
|
+
* @param ListTermVersionsRequest
|
|
3239
|
+
* @return ListTermVersionsResponse
|
|
3240
|
+
* @throws OciError when an error occurs
|
|
3241
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListTermVersions.ts.html |here} to see how to use ListTermVersions API.
|
|
3242
|
+
*/
|
|
3243
|
+
listTermVersions(listTermVersionsRequest) {
|
|
3244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3245
|
+
if (this.logger)
|
|
3246
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listTermVersions.");
|
|
3247
|
+
const operationName = "listTermVersions";
|
|
3248
|
+
const apiReferenceLink = "";
|
|
3249
|
+
const pathParams = {};
|
|
3250
|
+
const queryParams = {
|
|
3251
|
+
"termId": listTermVersionsRequest.termId,
|
|
3252
|
+
"compartmentId": listTermVersionsRequest.compartmentId,
|
|
3253
|
+
"limit": listTermVersionsRequest.limit,
|
|
3254
|
+
"page": listTermVersionsRequest.page,
|
|
3255
|
+
"sortOrder": listTermVersionsRequest.sortOrder,
|
|
3256
|
+
"sortBy": listTermVersionsRequest.sortBy,
|
|
3257
|
+
"displayName": listTermVersionsRequest.displayName
|
|
3258
|
+
};
|
|
3259
|
+
let headerParams = {
|
|
3260
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3261
|
+
"opc-request-id": listTermVersionsRequest.opcRequestId
|
|
3262
|
+
};
|
|
3263
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3264
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTermVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
3265
|
+
if (this.logger)
|
|
3266
|
+
retrier.logger = this.logger;
|
|
3267
|
+
const request = yield oci_common_1.composeRequest({
|
|
3268
|
+
baseEndpoint: this._endpoint,
|
|
3269
|
+
defaultHeaders: this._defaultHeaders,
|
|
3270
|
+
path: "/termVersions",
|
|
3271
|
+
method: "GET",
|
|
3272
|
+
pathParams: pathParams,
|
|
3273
|
+
headerParams: headerParams,
|
|
3274
|
+
queryParams: queryParams
|
|
3275
|
+
});
|
|
3276
|
+
try {
|
|
3277
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3278
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3279
|
+
responseObject: {},
|
|
3280
|
+
body: yield response.json(),
|
|
3281
|
+
bodyKey: "termVersionCollection",
|
|
3282
|
+
bodyModel: model.TermVersionCollection,
|
|
3283
|
+
type: "model.TermVersionCollection",
|
|
3284
|
+
responseHeaders: [
|
|
3285
|
+
{
|
|
3286
|
+
value: response.headers.get("opc-next-page"),
|
|
3287
|
+
key: "opcNextPage",
|
|
3288
|
+
dataType: "string"
|
|
3289
|
+
},
|
|
3290
|
+
{
|
|
3291
|
+
value: response.headers.get("opc-request-id"),
|
|
3292
|
+
key: "opcRequestId",
|
|
3293
|
+
dataType: "string"
|
|
3294
|
+
}
|
|
3295
|
+
]
|
|
3296
|
+
});
|
|
3297
|
+
return sdkResponse;
|
|
3298
|
+
}
|
|
3299
|
+
catch (err) {
|
|
3300
|
+
throw err;
|
|
3301
|
+
}
|
|
3302
|
+
});
|
|
3303
|
+
}
|
|
3304
|
+
/**
|
|
3305
|
+
* Returns a list of the publisher terms.
|
|
3306
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3307
|
+
* @param ListTermsRequest
|
|
3308
|
+
* @return ListTermsResponse
|
|
3309
|
+
* @throws OciError when an error occurs
|
|
3310
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListTerms.ts.html |here} to see how to use ListTerms API.
|
|
3311
|
+
*/
|
|
3312
|
+
listTerms(listTermsRequest) {
|
|
3313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3314
|
+
if (this.logger)
|
|
3315
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listTerms.");
|
|
3316
|
+
const operationName = "listTerms";
|
|
3317
|
+
const apiReferenceLink = "";
|
|
3318
|
+
const pathParams = {};
|
|
3319
|
+
const queryParams = {
|
|
3320
|
+
"limit": listTermsRequest.limit,
|
|
3321
|
+
"page": listTermsRequest.page,
|
|
3322
|
+
"compartmentId": listTermsRequest.compartmentId,
|
|
3323
|
+
"sortOrder": listTermsRequest.sortOrder,
|
|
3324
|
+
"sortBy": listTermsRequest.sortBy,
|
|
3325
|
+
"name": listTermsRequest.name
|
|
3326
|
+
};
|
|
3327
|
+
let headerParams = {
|
|
3328
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3329
|
+
"opc-request-id": listTermsRequest.opcRequestId
|
|
3330
|
+
};
|
|
3331
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3332
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTermsRequest.retryConfiguration, specRetryConfiguration);
|
|
3333
|
+
if (this.logger)
|
|
3334
|
+
retrier.logger = this.logger;
|
|
3335
|
+
const request = yield oci_common_1.composeRequest({
|
|
3336
|
+
baseEndpoint: this._endpoint,
|
|
3337
|
+
defaultHeaders: this._defaultHeaders,
|
|
3338
|
+
path: "/terms",
|
|
3339
|
+
method: "GET",
|
|
3340
|
+
pathParams: pathParams,
|
|
3341
|
+
headerParams: headerParams,
|
|
3342
|
+
queryParams: queryParams
|
|
3343
|
+
});
|
|
3344
|
+
try {
|
|
3345
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3346
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3347
|
+
responseObject: {},
|
|
3348
|
+
body: yield response.json(),
|
|
3349
|
+
bodyKey: "termCollection",
|
|
3350
|
+
bodyModel: model.TermCollection,
|
|
3351
|
+
type: "model.TermCollection",
|
|
3352
|
+
responseHeaders: [
|
|
3353
|
+
{
|
|
3354
|
+
value: response.headers.get("opc-next-page"),
|
|
3355
|
+
key: "opcNextPage",
|
|
3356
|
+
dataType: "string"
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
value: response.headers.get("opc-request-id"),
|
|
3360
|
+
key: "opcRequestId",
|
|
3361
|
+
dataType: "string"
|
|
3362
|
+
}
|
|
3363
|
+
]
|
|
3364
|
+
});
|
|
3365
|
+
return sdkResponse;
|
|
3366
|
+
}
|
|
3367
|
+
catch (err) {
|
|
3368
|
+
throw err;
|
|
3369
|
+
}
|
|
3370
|
+
});
|
|
3371
|
+
}
|
|
3372
|
+
/**
|
|
3373
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
3374
|
+
*
|
|
3375
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3376
|
+
* @param ListWorkRequestErrorsRequest
|
|
3377
|
+
* @return ListWorkRequestErrorsResponse
|
|
3378
|
+
* @throws OciError when an error occurs
|
|
3379
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
3380
|
+
*/
|
|
3381
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
3382
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3383
|
+
if (this.logger)
|
|
3384
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listWorkRequestErrors.");
|
|
3385
|
+
const operationName = "listWorkRequestErrors";
|
|
3386
|
+
const apiReferenceLink = "";
|
|
3387
|
+
const pathParams = {
|
|
3388
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
3389
|
+
};
|
|
3390
|
+
const queryParams = {
|
|
3391
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
3392
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
3393
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
3394
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
3395
|
+
};
|
|
3396
|
+
let headerParams = {
|
|
3397
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3398
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
3399
|
+
};
|
|
3400
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3401
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
3402
|
+
if (this.logger)
|
|
3403
|
+
retrier.logger = this.logger;
|
|
3404
|
+
const request = yield oci_common_1.composeRequest({
|
|
3405
|
+
baseEndpoint: this._endpoint,
|
|
3406
|
+
defaultHeaders: this._defaultHeaders,
|
|
3407
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
3408
|
+
method: "GET",
|
|
3409
|
+
pathParams: pathParams,
|
|
3410
|
+
headerParams: headerParams,
|
|
3411
|
+
queryParams: queryParams
|
|
3412
|
+
});
|
|
3413
|
+
try {
|
|
3414
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3415
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3416
|
+
responseObject: {},
|
|
3417
|
+
body: yield response.json(),
|
|
3418
|
+
bodyKey: "workRequestErrorCollection",
|
|
3419
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
3420
|
+
type: "model.WorkRequestErrorCollection",
|
|
3421
|
+
responseHeaders: [
|
|
3422
|
+
{
|
|
3423
|
+
value: response.headers.get("opc-next-page"),
|
|
3424
|
+
key: "opcNextPage",
|
|
3425
|
+
dataType: "string"
|
|
3426
|
+
},
|
|
3427
|
+
{
|
|
3428
|
+
value: response.headers.get("opc-request-id"),
|
|
3429
|
+
key: "opcRequestId",
|
|
3430
|
+
dataType: "string"
|
|
3431
|
+
}
|
|
3432
|
+
]
|
|
3433
|
+
});
|
|
3434
|
+
return sdkResponse;
|
|
3435
|
+
}
|
|
3436
|
+
catch (err) {
|
|
3437
|
+
throw err;
|
|
3438
|
+
}
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3441
|
+
/**
|
|
3442
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
3443
|
+
*
|
|
3444
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3445
|
+
* @param ListWorkRequestLogsRequest
|
|
3446
|
+
* @return ListWorkRequestLogsResponse
|
|
3447
|
+
* @throws OciError when an error occurs
|
|
3448
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3449
|
+
*/
|
|
3450
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3452
|
+
if (this.logger)
|
|
3453
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listWorkRequestLogs.");
|
|
3454
|
+
const operationName = "listWorkRequestLogs";
|
|
3455
|
+
const apiReferenceLink = "";
|
|
3456
|
+
const pathParams = {
|
|
3457
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
3458
|
+
};
|
|
3459
|
+
const queryParams = {
|
|
3460
|
+
"page": listWorkRequestLogsRequest.page,
|
|
3461
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
3462
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
3463
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
3464
|
+
};
|
|
3465
|
+
let headerParams = {
|
|
3466
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3467
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
3468
|
+
};
|
|
3469
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3470
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
3471
|
+
if (this.logger)
|
|
3472
|
+
retrier.logger = this.logger;
|
|
3473
|
+
const request = yield oci_common_1.composeRequest({
|
|
3474
|
+
baseEndpoint: this._endpoint,
|
|
3475
|
+
defaultHeaders: this._defaultHeaders,
|
|
3476
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
3477
|
+
method: "GET",
|
|
3478
|
+
pathParams: pathParams,
|
|
3479
|
+
headerParams: headerParams,
|
|
3480
|
+
queryParams: queryParams
|
|
3481
|
+
});
|
|
3482
|
+
try {
|
|
3483
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3484
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3485
|
+
responseObject: {},
|
|
3486
|
+
body: yield response.json(),
|
|
3487
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
3488
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
3489
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
3490
|
+
responseHeaders: [
|
|
3491
|
+
{
|
|
3492
|
+
value: response.headers.get("opc-next-page"),
|
|
3493
|
+
key: "opcNextPage",
|
|
3494
|
+
dataType: "string"
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
value: response.headers.get("opc-request-id"),
|
|
3498
|
+
key: "opcRequestId",
|
|
3499
|
+
dataType: "string"
|
|
3500
|
+
}
|
|
3501
|
+
]
|
|
3502
|
+
});
|
|
3503
|
+
return sdkResponse;
|
|
3504
|
+
}
|
|
3505
|
+
catch (err) {
|
|
3506
|
+
throw err;
|
|
3507
|
+
}
|
|
3508
|
+
});
|
|
3509
|
+
}
|
|
3510
|
+
/**
|
|
3511
|
+
* Lists the work requests in a compartment.
|
|
3512
|
+
*
|
|
3513
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3514
|
+
* @param ListWorkRequestsRequest
|
|
3515
|
+
* @return ListWorkRequestsResponse
|
|
3516
|
+
* @throws OciError when an error occurs
|
|
3517
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
3518
|
+
*/
|
|
3519
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
3520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3521
|
+
if (this.logger)
|
|
3522
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#listWorkRequests.");
|
|
3523
|
+
const operationName = "listWorkRequests";
|
|
3524
|
+
const apiReferenceLink = "";
|
|
3525
|
+
const pathParams = {};
|
|
3526
|
+
const queryParams = {
|
|
3527
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
3528
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
3529
|
+
"status": listWorkRequestsRequest.status,
|
|
3530
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
3531
|
+
"page": listWorkRequestsRequest.page,
|
|
3532
|
+
"limit": listWorkRequestsRequest.limit,
|
|
3533
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
3534
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
3535
|
+
};
|
|
3536
|
+
let headerParams = {
|
|
3537
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3538
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
3539
|
+
};
|
|
3540
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3541
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
3542
|
+
if (this.logger)
|
|
3543
|
+
retrier.logger = this.logger;
|
|
3544
|
+
const request = yield oci_common_1.composeRequest({
|
|
3545
|
+
baseEndpoint: this._endpoint,
|
|
3546
|
+
defaultHeaders: this._defaultHeaders,
|
|
3547
|
+
path: "/workRequests",
|
|
3548
|
+
method: "GET",
|
|
3549
|
+
pathParams: pathParams,
|
|
3550
|
+
headerParams: headerParams,
|
|
3551
|
+
queryParams: queryParams
|
|
3552
|
+
});
|
|
3553
|
+
try {
|
|
3554
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3555
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3556
|
+
responseObject: {},
|
|
3557
|
+
body: yield response.json(),
|
|
3558
|
+
bodyKey: "workRequestSummaryCollection",
|
|
3559
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
3560
|
+
type: "model.WorkRequestSummaryCollection",
|
|
3561
|
+
responseHeaders: [
|
|
3562
|
+
{
|
|
3563
|
+
value: response.headers.get("opc-request-id"),
|
|
3564
|
+
key: "opcRequestId",
|
|
3565
|
+
dataType: "string"
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
value: response.headers.get("opc-next-page"),
|
|
3569
|
+
key: "opcNextPage",
|
|
3570
|
+
dataType: "string"
|
|
3571
|
+
}
|
|
3572
|
+
]
|
|
3573
|
+
});
|
|
3574
|
+
return sdkResponse;
|
|
3575
|
+
}
|
|
3576
|
+
catch (err) {
|
|
3577
|
+
throw err;
|
|
3578
|
+
}
|
|
3579
|
+
});
|
|
3580
|
+
}
|
|
3581
|
+
/**
|
|
3582
|
+
* Mark the Listing Revision Package identified by the id and package version as default
|
|
3583
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3584
|
+
* @param MarkListingRevisionPackageAsDefaultRequest
|
|
3585
|
+
* @return MarkListingRevisionPackageAsDefaultResponse
|
|
3586
|
+
* @throws OciError when an error occurs
|
|
3587
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/MarkListingRevisionPackageAsDefault.ts.html |here} to see how to use MarkListingRevisionPackageAsDefault API.
|
|
3588
|
+
*/
|
|
3589
|
+
markListingRevisionPackageAsDefault(markListingRevisionPackageAsDefaultRequest) {
|
|
3590
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3591
|
+
if (this.logger)
|
|
3592
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#markListingRevisionPackageAsDefault.");
|
|
3593
|
+
const operationName = "markListingRevisionPackageAsDefault";
|
|
3594
|
+
const apiReferenceLink = "";
|
|
3595
|
+
const pathParams = {
|
|
3596
|
+
"{listingRevisionPackageId}": markListingRevisionPackageAsDefaultRequest.listingRevisionPackageId
|
|
3597
|
+
};
|
|
3598
|
+
const queryParams = {};
|
|
3599
|
+
let headerParams = {
|
|
3600
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3601
|
+
"if-match": markListingRevisionPackageAsDefaultRequest.ifMatch,
|
|
3602
|
+
"opc-request-id": markListingRevisionPackageAsDefaultRequest.opcRequestId,
|
|
3603
|
+
"opc-retry-token": markListingRevisionPackageAsDefaultRequest.opcRetryToken
|
|
3604
|
+
};
|
|
3605
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3606
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, markListingRevisionPackageAsDefaultRequest.retryConfiguration, specRetryConfiguration);
|
|
3607
|
+
if (this.logger)
|
|
3608
|
+
retrier.logger = this.logger;
|
|
3609
|
+
const request = yield oci_common_1.composeRequest({
|
|
3610
|
+
baseEndpoint: this._endpoint,
|
|
3611
|
+
defaultHeaders: this._defaultHeaders,
|
|
3612
|
+
path: "/listingRevisionPackages/{listingRevisionPackageId}/actions/markAsDefault",
|
|
3613
|
+
method: "POST",
|
|
3614
|
+
pathParams: pathParams,
|
|
3615
|
+
headerParams: headerParams,
|
|
3616
|
+
queryParams: queryParams
|
|
3617
|
+
});
|
|
3618
|
+
try {
|
|
3619
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3620
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3621
|
+
responseObject: {},
|
|
3622
|
+
responseHeaders: [
|
|
3623
|
+
{
|
|
3624
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3625
|
+
key: "opcWorkRequestId",
|
|
3626
|
+
dataType: "string"
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
value: response.headers.get("opc-request-id"),
|
|
3630
|
+
key: "opcRequestId",
|
|
3631
|
+
dataType: "string"
|
|
3632
|
+
}
|
|
3633
|
+
]
|
|
3634
|
+
});
|
|
3635
|
+
return sdkResponse;
|
|
3636
|
+
}
|
|
3637
|
+
catch (err) {
|
|
3638
|
+
throw err;
|
|
3639
|
+
}
|
|
3640
|
+
});
|
|
3641
|
+
}
|
|
3642
|
+
/**
|
|
3643
|
+
* Publish the Listing revision identified by Identifier.
|
|
3644
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3645
|
+
* @param PublishListingRevisionRequest
|
|
3646
|
+
* @return PublishListingRevisionResponse
|
|
3647
|
+
* @throws OciError when an error occurs
|
|
3648
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/PublishListingRevision.ts.html |here} to see how to use PublishListingRevision API.
|
|
3649
|
+
*/
|
|
3650
|
+
publishListingRevision(publishListingRevisionRequest) {
|
|
3651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3652
|
+
if (this.logger)
|
|
3653
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#publishListingRevision.");
|
|
3654
|
+
const operationName = "publishListingRevision";
|
|
3655
|
+
const apiReferenceLink = "";
|
|
3656
|
+
const pathParams = {
|
|
3657
|
+
"{listingRevisionId}": publishListingRevisionRequest.listingRevisionId
|
|
3658
|
+
};
|
|
3659
|
+
const queryParams = {};
|
|
3660
|
+
let headerParams = {
|
|
3661
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3662
|
+
"if-match": publishListingRevisionRequest.ifMatch,
|
|
3663
|
+
"opc-request-id": publishListingRevisionRequest.opcRequestId,
|
|
3664
|
+
"opc-retry-token": publishListingRevisionRequest.opcRetryToken
|
|
3665
|
+
};
|
|
3666
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3667
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, publishListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
3668
|
+
if (this.logger)
|
|
3669
|
+
retrier.logger = this.logger;
|
|
3670
|
+
const request = yield oci_common_1.composeRequest({
|
|
3671
|
+
baseEndpoint: this._endpoint,
|
|
3672
|
+
defaultHeaders: this._defaultHeaders,
|
|
3673
|
+
path: "/listingRevisions/{listingRevisionId}/actions/publish",
|
|
3674
|
+
method: "POST",
|
|
3675
|
+
pathParams: pathParams,
|
|
3676
|
+
headerParams: headerParams,
|
|
3677
|
+
queryParams: queryParams
|
|
3678
|
+
});
|
|
3679
|
+
try {
|
|
3680
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3681
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3682
|
+
responseObject: {},
|
|
3683
|
+
responseHeaders: [
|
|
3684
|
+
{
|
|
3685
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3686
|
+
key: "opcWorkRequestId",
|
|
3687
|
+
dataType: "string"
|
|
3688
|
+
},
|
|
3689
|
+
{
|
|
3690
|
+
value: response.headers.get("opc-request-id"),
|
|
3691
|
+
key: "opcRequestId",
|
|
3692
|
+
dataType: "string"
|
|
3693
|
+
}
|
|
3694
|
+
]
|
|
3695
|
+
});
|
|
3696
|
+
return sdkResponse;
|
|
3697
|
+
}
|
|
3698
|
+
catch (err) {
|
|
3699
|
+
throw err;
|
|
3700
|
+
}
|
|
3701
|
+
});
|
|
3702
|
+
}
|
|
3703
|
+
/**
|
|
3704
|
+
* Updates the Listing Revision to PublishAsPrivate
|
|
3705
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3706
|
+
* @param PublishListingRevisionAsPrivateRequest
|
|
3707
|
+
* @return PublishListingRevisionAsPrivateResponse
|
|
3708
|
+
* @throws OciError when an error occurs
|
|
3709
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/PublishListingRevisionAsPrivate.ts.html |here} to see how to use PublishListingRevisionAsPrivate API.
|
|
3710
|
+
*/
|
|
3711
|
+
publishListingRevisionAsPrivate(publishListingRevisionAsPrivateRequest) {
|
|
3712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3713
|
+
if (this.logger)
|
|
3714
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#publishListingRevisionAsPrivate.");
|
|
3715
|
+
const operationName = "publishListingRevisionAsPrivate";
|
|
3716
|
+
const apiReferenceLink = "";
|
|
3717
|
+
const pathParams = {
|
|
3718
|
+
"{listingRevisionId}": publishListingRevisionAsPrivateRequest.listingRevisionId
|
|
3719
|
+
};
|
|
3720
|
+
const queryParams = {};
|
|
3721
|
+
let headerParams = {
|
|
3722
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3723
|
+
"if-match": publishListingRevisionAsPrivateRequest.ifMatch,
|
|
3724
|
+
"opc-request-id": publishListingRevisionAsPrivateRequest.opcRequestId,
|
|
3725
|
+
"opc-retry-token": publishListingRevisionAsPrivateRequest.opcRetryToken
|
|
3726
|
+
};
|
|
3727
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3728
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, publishListingRevisionAsPrivateRequest.retryConfiguration, specRetryConfiguration);
|
|
3729
|
+
if (this.logger)
|
|
3730
|
+
retrier.logger = this.logger;
|
|
3731
|
+
const request = yield oci_common_1.composeRequest({
|
|
3732
|
+
baseEndpoint: this._endpoint,
|
|
3733
|
+
defaultHeaders: this._defaultHeaders,
|
|
3734
|
+
path: "/listingRevisions/{listingRevisionId}/actions/publishAsPrivate",
|
|
3735
|
+
method: "POST",
|
|
3736
|
+
bodyContent: common.ObjectSerializer.serialize(publishListingRevisionAsPrivateRequest.publishListingRevisionAsPrivateDetails, "PublishListingRevisionAsPrivateDetails", model.PublishListingRevisionAsPrivateDetails.getJsonObj),
|
|
3737
|
+
pathParams: pathParams,
|
|
3738
|
+
headerParams: headerParams,
|
|
3739
|
+
queryParams: queryParams
|
|
3740
|
+
});
|
|
3741
|
+
try {
|
|
3742
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3743
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3744
|
+
responseObject: {},
|
|
3745
|
+
responseHeaders: [
|
|
3746
|
+
{
|
|
3747
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3748
|
+
key: "opcWorkRequestId",
|
|
3749
|
+
dataType: "string"
|
|
3750
|
+
},
|
|
3751
|
+
{
|
|
3752
|
+
value: response.headers.get("opc-request-id"),
|
|
3753
|
+
key: "opcRequestId",
|
|
3754
|
+
dataType: "string"
|
|
3755
|
+
}
|
|
3756
|
+
]
|
|
3757
|
+
});
|
|
3758
|
+
return sdkResponse;
|
|
3759
|
+
}
|
|
3760
|
+
catch (err) {
|
|
3761
|
+
throw err;
|
|
3762
|
+
}
|
|
3763
|
+
});
|
|
3764
|
+
}
|
|
3765
|
+
/**
|
|
3766
|
+
* Updates the Listing Revision Package to publish status
|
|
3767
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3768
|
+
* @param PublishListingRevisionPackageRequest
|
|
3769
|
+
* @return PublishListingRevisionPackageResponse
|
|
3770
|
+
* @throws OciError when an error occurs
|
|
3771
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/PublishListingRevisionPackage.ts.html |here} to see how to use PublishListingRevisionPackage API.
|
|
3772
|
+
*/
|
|
3773
|
+
publishListingRevisionPackage(publishListingRevisionPackageRequest) {
|
|
3774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3775
|
+
if (this.logger)
|
|
3776
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#publishListingRevisionPackage.");
|
|
3777
|
+
const operationName = "publishListingRevisionPackage";
|
|
3778
|
+
const apiReferenceLink = "";
|
|
3779
|
+
const pathParams = {
|
|
3780
|
+
"{listingRevisionPackageId}": publishListingRevisionPackageRequest.listingRevisionPackageId
|
|
3781
|
+
};
|
|
3782
|
+
const queryParams = {};
|
|
3783
|
+
let headerParams = {
|
|
3784
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3785
|
+
"if-match": publishListingRevisionPackageRequest.ifMatch,
|
|
3786
|
+
"opc-request-id": publishListingRevisionPackageRequest.opcRequestId,
|
|
3787
|
+
"opc-retry-token": publishListingRevisionPackageRequest.opcRetryToken
|
|
3788
|
+
};
|
|
3789
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3790
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, publishListingRevisionPackageRequest.retryConfiguration, specRetryConfiguration);
|
|
3791
|
+
if (this.logger)
|
|
3792
|
+
retrier.logger = this.logger;
|
|
3793
|
+
const request = yield oci_common_1.composeRequest({
|
|
3794
|
+
baseEndpoint: this._endpoint,
|
|
3795
|
+
defaultHeaders: this._defaultHeaders,
|
|
3796
|
+
path: "/listingRevisionPackages/{listingRevisionPackageId}/actions/publish",
|
|
3797
|
+
method: "POST",
|
|
3798
|
+
pathParams: pathParams,
|
|
3799
|
+
headerParams: headerParams,
|
|
3800
|
+
queryParams: queryParams
|
|
3801
|
+
});
|
|
3802
|
+
try {
|
|
3803
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3804
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3805
|
+
responseObject: {},
|
|
3806
|
+
responseHeaders: [
|
|
3807
|
+
{
|
|
3808
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3809
|
+
key: "opcWorkRequestId",
|
|
3810
|
+
dataType: "string"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
value: response.headers.get("opc-request-id"),
|
|
3814
|
+
key: "opcRequestId",
|
|
3815
|
+
dataType: "string"
|
|
3816
|
+
}
|
|
3817
|
+
]
|
|
3818
|
+
});
|
|
3819
|
+
return sdkResponse;
|
|
3820
|
+
}
|
|
3821
|
+
catch (err) {
|
|
3822
|
+
throw err;
|
|
3823
|
+
}
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
/**
|
|
3827
|
+
* Update the Listing Revision identified by the id for review
|
|
3828
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3829
|
+
* @param SubmitListingRevisionForReviewRequest
|
|
3830
|
+
* @return SubmitListingRevisionForReviewResponse
|
|
3831
|
+
* @throws OciError when an error occurs
|
|
3832
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/SubmitListingRevisionForReview.ts.html |here} to see how to use SubmitListingRevisionForReview API.
|
|
3833
|
+
*/
|
|
3834
|
+
submitListingRevisionForReview(submitListingRevisionForReviewRequest) {
|
|
3835
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3836
|
+
if (this.logger)
|
|
3837
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#submitListingRevisionForReview.");
|
|
3838
|
+
const operationName = "submitListingRevisionForReview";
|
|
3839
|
+
const apiReferenceLink = "";
|
|
3840
|
+
const pathParams = {
|
|
3841
|
+
"{listingRevisionId}": submitListingRevisionForReviewRequest.listingRevisionId
|
|
3842
|
+
};
|
|
3843
|
+
const queryParams = {};
|
|
3844
|
+
let headerParams = {
|
|
3845
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3846
|
+
"if-match": submitListingRevisionForReviewRequest.ifMatch,
|
|
3847
|
+
"opc-request-id": submitListingRevisionForReviewRequest.opcRequestId,
|
|
3848
|
+
"opc-retry-token": submitListingRevisionForReviewRequest.opcRetryToken
|
|
3849
|
+
};
|
|
3850
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3851
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, submitListingRevisionForReviewRequest.retryConfiguration, specRetryConfiguration);
|
|
3852
|
+
if (this.logger)
|
|
3853
|
+
retrier.logger = this.logger;
|
|
3854
|
+
const request = yield oci_common_1.composeRequest({
|
|
3855
|
+
baseEndpoint: this._endpoint,
|
|
3856
|
+
defaultHeaders: this._defaultHeaders,
|
|
3857
|
+
path: "/listingRevisions/{listingRevisionId}/actions/submitForReview",
|
|
3858
|
+
method: "POST",
|
|
3859
|
+
bodyContent: common.ObjectSerializer.serialize(submitListingRevisionForReviewRequest.submitListingRevisionForReviewDetails, "SubmitListingRevisionForReviewDetails", model.SubmitListingRevisionForReviewDetails.getJsonObj),
|
|
3860
|
+
pathParams: pathParams,
|
|
3861
|
+
headerParams: headerParams,
|
|
3862
|
+
queryParams: queryParams
|
|
3863
|
+
});
|
|
3864
|
+
try {
|
|
3865
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3866
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3867
|
+
responseObject: {},
|
|
3868
|
+
body: yield response.json(),
|
|
3869
|
+
bodyKey: "listingRevision",
|
|
3870
|
+
bodyModel: model.ListingRevision,
|
|
3871
|
+
type: "model.ListingRevision",
|
|
3872
|
+
responseHeaders: [
|
|
3873
|
+
{
|
|
3874
|
+
value: response.headers.get("etag"),
|
|
3875
|
+
key: "etag",
|
|
3876
|
+
dataType: "string"
|
|
3877
|
+
},
|
|
3878
|
+
{
|
|
3879
|
+
value: response.headers.get("opc-request-id"),
|
|
3880
|
+
key: "opcRequestId",
|
|
3881
|
+
dataType: "string"
|
|
3882
|
+
}
|
|
3883
|
+
]
|
|
3884
|
+
});
|
|
3885
|
+
return sdkResponse;
|
|
3886
|
+
}
|
|
3887
|
+
catch (err) {
|
|
3888
|
+
throw err;
|
|
3889
|
+
}
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
* Updates the Listing Revision Package to Unpublish status
|
|
3894
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3895
|
+
* @param UnPublishListingRevisionPackageRequest
|
|
3896
|
+
* @return UnPublishListingRevisionPackageResponse
|
|
3897
|
+
* @throws OciError when an error occurs
|
|
3898
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UnPublishListingRevisionPackage.ts.html |here} to see how to use UnPublishListingRevisionPackage API.
|
|
3899
|
+
*/
|
|
3900
|
+
unPublishListingRevisionPackage(unPublishListingRevisionPackageRequest) {
|
|
3901
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3902
|
+
if (this.logger)
|
|
3903
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#unPublishListingRevisionPackage.");
|
|
3904
|
+
const operationName = "unPublishListingRevisionPackage";
|
|
3905
|
+
const apiReferenceLink = "";
|
|
3906
|
+
const pathParams = {
|
|
3907
|
+
"{listingRevisionPackageId}": unPublishListingRevisionPackageRequest.listingRevisionPackageId
|
|
3908
|
+
};
|
|
3909
|
+
const queryParams = {};
|
|
3910
|
+
let headerParams = {
|
|
3911
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3912
|
+
"if-match": unPublishListingRevisionPackageRequest.ifMatch,
|
|
3913
|
+
"opc-request-id": unPublishListingRevisionPackageRequest.opcRequestId,
|
|
3914
|
+
"opc-retry-token": unPublishListingRevisionPackageRequest.opcRetryToken
|
|
3915
|
+
};
|
|
3916
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3917
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, unPublishListingRevisionPackageRequest.retryConfiguration, specRetryConfiguration);
|
|
3918
|
+
if (this.logger)
|
|
3919
|
+
retrier.logger = this.logger;
|
|
3920
|
+
const request = yield oci_common_1.composeRequest({
|
|
3921
|
+
baseEndpoint: this._endpoint,
|
|
3922
|
+
defaultHeaders: this._defaultHeaders,
|
|
3923
|
+
path: "/listingRevisionPackages/{listingRevisionPackageId}/actions/unPublish",
|
|
3924
|
+
method: "POST",
|
|
3925
|
+
pathParams: pathParams,
|
|
3926
|
+
headerParams: headerParams,
|
|
3927
|
+
queryParams: queryParams
|
|
3928
|
+
});
|
|
3929
|
+
try {
|
|
3930
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3931
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3932
|
+
responseObject: {},
|
|
3933
|
+
responseHeaders: [
|
|
3934
|
+
{
|
|
3935
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3936
|
+
key: "opcWorkRequestId",
|
|
3937
|
+
dataType: "string"
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
value: response.headers.get("opc-request-id"),
|
|
3941
|
+
key: "opcRequestId",
|
|
3942
|
+
dataType: "string"
|
|
3943
|
+
}
|
|
3944
|
+
]
|
|
3945
|
+
});
|
|
3946
|
+
return sdkResponse;
|
|
3947
|
+
}
|
|
3948
|
+
catch (err) {
|
|
3949
|
+
throw err;
|
|
3950
|
+
}
|
|
3951
|
+
});
|
|
3952
|
+
}
|
|
3953
|
+
/**
|
|
3954
|
+
* Updates the specified artifact identified by the id.
|
|
3955
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3956
|
+
* @param UpdateArtifactRequest
|
|
3957
|
+
* @return UpdateArtifactResponse
|
|
3958
|
+
* @throws OciError when an error occurs
|
|
3959
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateArtifact.ts.html |here} to see how to use UpdateArtifact API.
|
|
3960
|
+
*/
|
|
3961
|
+
updateArtifact(updateArtifactRequest) {
|
|
3962
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3963
|
+
if (this.logger)
|
|
3964
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateArtifact.");
|
|
3965
|
+
const operationName = "updateArtifact";
|
|
3966
|
+
const apiReferenceLink = "";
|
|
3967
|
+
const pathParams = {
|
|
3968
|
+
"{artifactId}": updateArtifactRequest.artifactId
|
|
3969
|
+
};
|
|
3970
|
+
const queryParams = {};
|
|
3971
|
+
let headerParams = {
|
|
3972
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3973
|
+
"if-match": updateArtifactRequest.ifMatch,
|
|
3974
|
+
"opc-request-id": updateArtifactRequest.opcRequestId
|
|
3975
|
+
};
|
|
3976
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3977
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
3978
|
+
if (this.logger)
|
|
3979
|
+
retrier.logger = this.logger;
|
|
3980
|
+
const request = yield oci_common_1.composeRequest({
|
|
3981
|
+
baseEndpoint: this._endpoint,
|
|
3982
|
+
defaultHeaders: this._defaultHeaders,
|
|
3983
|
+
path: "/artifacts/{artifactId}",
|
|
3984
|
+
method: "PUT",
|
|
3985
|
+
bodyContent: common.ObjectSerializer.serialize(updateArtifactRequest.updateArtifactDetails, "UpdateArtifactDetails", model.UpdateArtifactDetails.getJsonObj),
|
|
3986
|
+
pathParams: pathParams,
|
|
3987
|
+
headerParams: headerParams,
|
|
3988
|
+
queryParams: queryParams
|
|
3989
|
+
});
|
|
3990
|
+
try {
|
|
3991
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3992
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3993
|
+
responseObject: {},
|
|
3994
|
+
responseHeaders: [
|
|
3995
|
+
{
|
|
3996
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3997
|
+
key: "opcWorkRequestId",
|
|
3998
|
+
dataType: "string"
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
value: response.headers.get("opc-request-id"),
|
|
4002
|
+
key: "opcRequestId",
|
|
4003
|
+
dataType: "string"
|
|
4004
|
+
}
|
|
4005
|
+
]
|
|
4006
|
+
});
|
|
4007
|
+
return sdkResponse;
|
|
4008
|
+
}
|
|
4009
|
+
catch (err) {
|
|
4010
|
+
throw err;
|
|
4011
|
+
}
|
|
4012
|
+
});
|
|
4013
|
+
}
|
|
4014
|
+
/**
|
|
4015
|
+
* Updates the specified Listing identified by the id.
|
|
4016
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4017
|
+
* @param UpdateListingRequest
|
|
4018
|
+
* @return UpdateListingResponse
|
|
4019
|
+
* @throws OciError when an error occurs
|
|
4020
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateListing.ts.html |here} to see how to use UpdateListing API.
|
|
4021
|
+
*/
|
|
4022
|
+
updateListing(updateListingRequest) {
|
|
4023
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4024
|
+
if (this.logger)
|
|
4025
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateListing.");
|
|
4026
|
+
const operationName = "updateListing";
|
|
4027
|
+
const apiReferenceLink = "";
|
|
4028
|
+
const pathParams = {
|
|
4029
|
+
"{listingId}": updateListingRequest.listingId
|
|
4030
|
+
};
|
|
4031
|
+
const queryParams = {};
|
|
4032
|
+
let headerParams = {
|
|
4033
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4034
|
+
"if-match": updateListingRequest.ifMatch,
|
|
4035
|
+
"opc-request-id": updateListingRequest.opcRequestId
|
|
4036
|
+
};
|
|
4037
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4038
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateListingRequest.retryConfiguration, specRetryConfiguration);
|
|
4039
|
+
if (this.logger)
|
|
4040
|
+
retrier.logger = this.logger;
|
|
4041
|
+
const request = yield oci_common_1.composeRequest({
|
|
4042
|
+
baseEndpoint: this._endpoint,
|
|
4043
|
+
defaultHeaders: this._defaultHeaders,
|
|
4044
|
+
path: "/listings/{listingId}",
|
|
4045
|
+
method: "PUT",
|
|
4046
|
+
bodyContent: common.ObjectSerializer.serialize(updateListingRequest.updateListingDetails, "UpdateListingDetails", model.UpdateListingDetails.getJsonObj),
|
|
4047
|
+
pathParams: pathParams,
|
|
4048
|
+
headerParams: headerParams,
|
|
4049
|
+
queryParams: queryParams
|
|
4050
|
+
});
|
|
4051
|
+
try {
|
|
4052
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4053
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4054
|
+
responseObject: {},
|
|
4055
|
+
body: yield response.json(),
|
|
4056
|
+
bodyKey: "listing",
|
|
4057
|
+
bodyModel: model.Listing,
|
|
4058
|
+
type: "model.Listing",
|
|
4059
|
+
responseHeaders: [
|
|
4060
|
+
{
|
|
4061
|
+
value: response.headers.get("etag"),
|
|
4062
|
+
key: "etag",
|
|
4063
|
+
dataType: "string"
|
|
4064
|
+
},
|
|
4065
|
+
{
|
|
4066
|
+
value: response.headers.get("opc-request-id"),
|
|
4067
|
+
key: "opcRequestId",
|
|
4068
|
+
dataType: "string"
|
|
4069
|
+
}
|
|
4070
|
+
]
|
|
4071
|
+
});
|
|
4072
|
+
return sdkResponse;
|
|
4073
|
+
}
|
|
4074
|
+
catch (err) {
|
|
4075
|
+
throw err;
|
|
4076
|
+
}
|
|
4077
|
+
});
|
|
4078
|
+
}
|
|
4079
|
+
/**
|
|
4080
|
+
* Updates the Listing Revision
|
|
4081
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4082
|
+
* @param UpdateListingRevisionRequest
|
|
4083
|
+
* @return UpdateListingRevisionResponse
|
|
4084
|
+
* @throws OciError when an error occurs
|
|
4085
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateListingRevision.ts.html |here} to see how to use UpdateListingRevision API.
|
|
4086
|
+
*/
|
|
4087
|
+
updateListingRevision(updateListingRevisionRequest) {
|
|
4088
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4089
|
+
if (this.logger)
|
|
4090
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateListingRevision.");
|
|
4091
|
+
const operationName = "updateListingRevision";
|
|
4092
|
+
const apiReferenceLink = "";
|
|
4093
|
+
const pathParams = {
|
|
4094
|
+
"{listingRevisionId}": updateListingRevisionRequest.listingRevisionId
|
|
4095
|
+
};
|
|
4096
|
+
const queryParams = {};
|
|
4097
|
+
let headerParams = {
|
|
4098
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4099
|
+
"if-match": updateListingRevisionRequest.ifMatch,
|
|
4100
|
+
"opc-request-id": updateListingRevisionRequest.opcRequestId
|
|
4101
|
+
};
|
|
4102
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4103
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
4104
|
+
if (this.logger)
|
|
4105
|
+
retrier.logger = this.logger;
|
|
4106
|
+
const request = yield oci_common_1.composeRequest({
|
|
4107
|
+
baseEndpoint: this._endpoint,
|
|
4108
|
+
defaultHeaders: this._defaultHeaders,
|
|
4109
|
+
path: "/listingRevisions/{listingRevisionId}",
|
|
4110
|
+
method: "PUT",
|
|
4111
|
+
bodyContent: common.ObjectSerializer.serialize(updateListingRevisionRequest.updateListingRevisionDetails, "UpdateListingRevisionDetails", model.UpdateListingRevisionDetails.getJsonObj),
|
|
4112
|
+
pathParams: pathParams,
|
|
4113
|
+
headerParams: headerParams,
|
|
4114
|
+
queryParams: queryParams
|
|
4115
|
+
});
|
|
4116
|
+
try {
|
|
4117
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4118
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4119
|
+
responseObject: {},
|
|
4120
|
+
body: yield response.json(),
|
|
4121
|
+
bodyKey: "listingRevision",
|
|
4122
|
+
bodyModel: model.ListingRevision,
|
|
4123
|
+
type: "model.ListingRevision",
|
|
4124
|
+
responseHeaders: [
|
|
4125
|
+
{
|
|
4126
|
+
value: response.headers.get("etag"),
|
|
4127
|
+
key: "etag",
|
|
4128
|
+
dataType: "string"
|
|
4129
|
+
},
|
|
4130
|
+
{
|
|
4131
|
+
value: response.headers.get("opc-request-id"),
|
|
4132
|
+
key: "opcRequestId",
|
|
4133
|
+
dataType: "string"
|
|
4134
|
+
}
|
|
4135
|
+
]
|
|
4136
|
+
});
|
|
4137
|
+
return sdkResponse;
|
|
4138
|
+
}
|
|
4139
|
+
catch (err) {
|
|
4140
|
+
throw err;
|
|
4141
|
+
}
|
|
4142
|
+
});
|
|
4143
|
+
}
|
|
4144
|
+
/**
|
|
4145
|
+
* Updates the Listing Revision Attachment
|
|
4146
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4147
|
+
* @param UpdateListingRevisionAttachmentRequest
|
|
4148
|
+
* @return UpdateListingRevisionAttachmentResponse
|
|
4149
|
+
* @throws OciError when an error occurs
|
|
4150
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateListingRevisionAttachment.ts.html |here} to see how to use UpdateListingRevisionAttachment API.
|
|
4151
|
+
*/
|
|
4152
|
+
updateListingRevisionAttachment(updateListingRevisionAttachmentRequest) {
|
|
4153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4154
|
+
if (this.logger)
|
|
4155
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateListingRevisionAttachment.");
|
|
4156
|
+
const operationName = "updateListingRevisionAttachment";
|
|
4157
|
+
const apiReferenceLink = "";
|
|
4158
|
+
const pathParams = {
|
|
4159
|
+
"{listingRevisionAttachmentId}": updateListingRevisionAttachmentRequest.listingRevisionAttachmentId
|
|
4160
|
+
};
|
|
4161
|
+
const queryParams = {};
|
|
4162
|
+
let headerParams = {
|
|
4163
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4164
|
+
"if-match": updateListingRevisionAttachmentRequest.ifMatch,
|
|
4165
|
+
"opc-request-id": updateListingRevisionAttachmentRequest.opcRequestId
|
|
4166
|
+
};
|
|
4167
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4168
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateListingRevisionAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
4169
|
+
if (this.logger)
|
|
4170
|
+
retrier.logger = this.logger;
|
|
4171
|
+
const request = yield oci_common_1.composeRequest({
|
|
4172
|
+
baseEndpoint: this._endpoint,
|
|
4173
|
+
defaultHeaders: this._defaultHeaders,
|
|
4174
|
+
path: "/listingRevisionAttachments/{listingRevisionAttachmentId}",
|
|
4175
|
+
method: "PUT",
|
|
4176
|
+
bodyContent: common.ObjectSerializer.serialize(updateListingRevisionAttachmentRequest.updateListingRevisionAttachmentDetails, "UpdateListingRevisionAttachmentDetails", model.UpdateListingRevisionAttachmentDetails.getJsonObj),
|
|
4177
|
+
pathParams: pathParams,
|
|
4178
|
+
headerParams: headerParams,
|
|
4179
|
+
queryParams: queryParams
|
|
4180
|
+
});
|
|
4181
|
+
try {
|
|
4182
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4183
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4184
|
+
responseObject: {},
|
|
4185
|
+
body: yield response.json(),
|
|
4186
|
+
bodyKey: "listingRevisionAttachment",
|
|
4187
|
+
bodyModel: model.ListingRevisionAttachment,
|
|
4188
|
+
type: "model.ListingRevisionAttachment",
|
|
4189
|
+
responseHeaders: [
|
|
4190
|
+
{
|
|
4191
|
+
value: response.headers.get("opc-request-id"),
|
|
4192
|
+
key: "opcRequestId",
|
|
4193
|
+
dataType: "string"
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
value: response.headers.get("etag"),
|
|
4197
|
+
key: "etag",
|
|
4198
|
+
dataType: "string"
|
|
4199
|
+
}
|
|
4200
|
+
]
|
|
4201
|
+
});
|
|
4202
|
+
return sdkResponse;
|
|
4203
|
+
}
|
|
4204
|
+
catch (err) {
|
|
4205
|
+
throw err;
|
|
4206
|
+
}
|
|
4207
|
+
});
|
|
4208
|
+
}
|
|
4209
|
+
/**
|
|
4210
|
+
* Update a file to listing revision attachment
|
|
4211
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4212
|
+
* @param UpdateListingRevisionAttachmentContentRequest
|
|
4213
|
+
* @return UpdateListingRevisionAttachmentContentResponse
|
|
4214
|
+
* @throws OciError when an error occurs
|
|
4215
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateListingRevisionAttachmentContent.ts.html |here} to see how to use UpdateListingRevisionAttachmentContent API.
|
|
4216
|
+
*/
|
|
4217
|
+
updateListingRevisionAttachmentContent(updateListingRevisionAttachmentContentRequest) {
|
|
4218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4219
|
+
if (this.logger)
|
|
4220
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateListingRevisionAttachmentContent.");
|
|
4221
|
+
const operationName = "updateListingRevisionAttachmentContent";
|
|
4222
|
+
const apiReferenceLink = "";
|
|
4223
|
+
const pathParams = {
|
|
4224
|
+
"{listingRevisionAttachmentId}": updateListingRevisionAttachmentContentRequest.listingRevisionAttachmentId
|
|
4225
|
+
};
|
|
4226
|
+
const queryParams = {};
|
|
4227
|
+
let headerParams = {
|
|
4228
|
+
"if-match": updateListingRevisionAttachmentContentRequest.ifMatch,
|
|
4229
|
+
"opc-request-id": updateListingRevisionAttachmentContentRequest.opcRequestId
|
|
4230
|
+
};
|
|
4231
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4232
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateListingRevisionAttachmentContentRequest.retryConfiguration, specRetryConfiguration);
|
|
4233
|
+
if (this.logger)
|
|
4234
|
+
retrier.logger = this.logger;
|
|
4235
|
+
const request = yield oci_common_1.composeRequest({
|
|
4236
|
+
baseEndpoint: this._endpoint,
|
|
4237
|
+
defaultHeaders: this._defaultHeaders,
|
|
4238
|
+
path: "/listingRevisionAttachments/{listingRevisionAttachmentId}/content",
|
|
4239
|
+
method: "PUT",
|
|
4240
|
+
bodyContent: updateListingRevisionAttachmentContentRequest.updateListingRevisionAttachmentContent,
|
|
4241
|
+
pathParams: pathParams,
|
|
4242
|
+
headerParams: headerParams,
|
|
4243
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
4244
|
+
queryParams: queryParams
|
|
4245
|
+
});
|
|
4246
|
+
try {
|
|
4247
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4248
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4249
|
+
responseObject: {},
|
|
4250
|
+
body: yield response.json(),
|
|
4251
|
+
bodyKey: "listingRevisionAttachment",
|
|
4252
|
+
bodyModel: model.ListingRevisionAttachment,
|
|
4253
|
+
type: "model.ListingRevisionAttachment",
|
|
4254
|
+
responseHeaders: [
|
|
4255
|
+
{
|
|
4256
|
+
value: response.headers.get("opc-request-id"),
|
|
4257
|
+
key: "opcRequestId",
|
|
4258
|
+
dataType: "string"
|
|
4259
|
+
},
|
|
4260
|
+
{
|
|
4261
|
+
value: response.headers.get("etag"),
|
|
4262
|
+
key: "etag",
|
|
4263
|
+
dataType: "string"
|
|
4264
|
+
}
|
|
4265
|
+
]
|
|
4266
|
+
});
|
|
4267
|
+
return sdkResponse;
|
|
4268
|
+
}
|
|
4269
|
+
catch (err) {
|
|
4270
|
+
throw err;
|
|
4271
|
+
}
|
|
4272
|
+
});
|
|
4273
|
+
}
|
|
4274
|
+
/**
|
|
4275
|
+
* Updates the Listing Revision
|
|
4276
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4277
|
+
* @param UpdateListingRevisionIconContentRequest
|
|
4278
|
+
* @return UpdateListingRevisionIconContentResponse
|
|
4279
|
+
* @throws OciError when an error occurs
|
|
4280
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateListingRevisionIconContent.ts.html |here} to see how to use UpdateListingRevisionIconContent API.
|
|
4281
|
+
*/
|
|
4282
|
+
updateListingRevisionIconContent(updateListingRevisionIconContentRequest) {
|
|
4283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4284
|
+
if (this.logger)
|
|
4285
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateListingRevisionIconContent.");
|
|
4286
|
+
const operationName = "updateListingRevisionIconContent";
|
|
4287
|
+
const apiReferenceLink = "";
|
|
4288
|
+
const pathParams = {
|
|
4289
|
+
"{listingRevisionId}": updateListingRevisionIconContentRequest.listingRevisionId
|
|
4290
|
+
};
|
|
4291
|
+
const queryParams = {};
|
|
4292
|
+
let headerParams = {
|
|
4293
|
+
"if-match": updateListingRevisionIconContentRequest.ifMatch,
|
|
4294
|
+
"opc-request-id": updateListingRevisionIconContentRequest.opcRequestId
|
|
4295
|
+
};
|
|
4296
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4297
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateListingRevisionIconContentRequest.retryConfiguration, specRetryConfiguration);
|
|
4298
|
+
if (this.logger)
|
|
4299
|
+
retrier.logger = this.logger;
|
|
4300
|
+
const request = yield oci_common_1.composeRequest({
|
|
4301
|
+
baseEndpoint: this._endpoint,
|
|
4302
|
+
defaultHeaders: this._defaultHeaders,
|
|
4303
|
+
path: "/listingRevisions/{listingRevisionId}/icon/content",
|
|
4304
|
+
method: "PUT",
|
|
4305
|
+
bodyContent: updateListingRevisionIconContentRequest.updateListingRevisionIconContent,
|
|
4306
|
+
pathParams: pathParams,
|
|
4307
|
+
headerParams: headerParams,
|
|
4308
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
4309
|
+
queryParams: queryParams
|
|
4310
|
+
});
|
|
4311
|
+
try {
|
|
4312
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4313
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4314
|
+
responseObject: {},
|
|
4315
|
+
body: yield response.json(),
|
|
4316
|
+
bodyKey: "listingRevision",
|
|
4317
|
+
bodyModel: model.ListingRevision,
|
|
4318
|
+
type: "model.ListingRevision",
|
|
4319
|
+
responseHeaders: [
|
|
4320
|
+
{
|
|
4321
|
+
value: response.headers.get("etag"),
|
|
4322
|
+
key: "etag",
|
|
4323
|
+
dataType: "string"
|
|
4324
|
+
},
|
|
4325
|
+
{
|
|
4326
|
+
value: response.headers.get("opc-request-id"),
|
|
4327
|
+
key: "opcRequestId",
|
|
4328
|
+
dataType: "string"
|
|
4329
|
+
}
|
|
4330
|
+
]
|
|
4331
|
+
});
|
|
4332
|
+
return sdkResponse;
|
|
4333
|
+
}
|
|
4334
|
+
catch (err) {
|
|
4335
|
+
throw err;
|
|
4336
|
+
}
|
|
4337
|
+
});
|
|
4338
|
+
}
|
|
4339
|
+
/**
|
|
4340
|
+
* Updates the Listing Revision Package.
|
|
4341
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4342
|
+
* @param UpdateListingRevisionPackageRequest
|
|
4343
|
+
* @return UpdateListingRevisionPackageResponse
|
|
4344
|
+
* @throws OciError when an error occurs
|
|
4345
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateListingRevisionPackage.ts.html |here} to see how to use UpdateListingRevisionPackage API.
|
|
4346
|
+
*/
|
|
4347
|
+
updateListingRevisionPackage(updateListingRevisionPackageRequest) {
|
|
4348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4349
|
+
if (this.logger)
|
|
4350
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateListingRevisionPackage.");
|
|
4351
|
+
const operationName = "updateListingRevisionPackage";
|
|
4352
|
+
const apiReferenceLink = "";
|
|
4353
|
+
const pathParams = {
|
|
4354
|
+
"{listingRevisionPackageId}": updateListingRevisionPackageRequest.listingRevisionPackageId
|
|
4355
|
+
};
|
|
4356
|
+
const queryParams = {};
|
|
4357
|
+
let headerParams = {
|
|
4358
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4359
|
+
"if-match": updateListingRevisionPackageRequest.ifMatch,
|
|
4360
|
+
"opc-request-id": updateListingRevisionPackageRequest.opcRequestId
|
|
4361
|
+
};
|
|
4362
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4363
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateListingRevisionPackageRequest.retryConfiguration, specRetryConfiguration);
|
|
4364
|
+
if (this.logger)
|
|
4365
|
+
retrier.logger = this.logger;
|
|
4366
|
+
const request = yield oci_common_1.composeRequest({
|
|
4367
|
+
baseEndpoint: this._endpoint,
|
|
4368
|
+
defaultHeaders: this._defaultHeaders,
|
|
4369
|
+
path: "/listingRevisionPackages/{listingRevisionPackageId}",
|
|
4370
|
+
method: "PUT",
|
|
4371
|
+
bodyContent: common.ObjectSerializer.serialize(updateListingRevisionPackageRequest.updateListingRevisionPackageDetails, "UpdateListingRevisionPackageDetails", model.UpdateListingRevisionPackageDetails.getJsonObj),
|
|
4372
|
+
pathParams: pathParams,
|
|
4373
|
+
headerParams: headerParams,
|
|
4374
|
+
queryParams: queryParams
|
|
4375
|
+
});
|
|
4376
|
+
try {
|
|
4377
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4378
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4379
|
+
responseObject: {},
|
|
4380
|
+
body: yield response.json(),
|
|
4381
|
+
bodyKey: "listingRevisionPackage",
|
|
4382
|
+
bodyModel: model.ListingRevisionPackage,
|
|
4383
|
+
type: "model.ListingRevisionPackage",
|
|
4384
|
+
responseHeaders: [
|
|
4385
|
+
{
|
|
4386
|
+
value: response.headers.get("opc-request-id"),
|
|
4387
|
+
key: "opcRequestId",
|
|
4388
|
+
dataType: "string"
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
value: response.headers.get("etag"),
|
|
4392
|
+
key: "etag",
|
|
4393
|
+
dataType: "string"
|
|
4394
|
+
}
|
|
4395
|
+
]
|
|
4396
|
+
});
|
|
4397
|
+
return sdkResponse;
|
|
4398
|
+
}
|
|
4399
|
+
catch (err) {
|
|
4400
|
+
throw err;
|
|
4401
|
+
}
|
|
4402
|
+
});
|
|
4403
|
+
}
|
|
4404
|
+
/**
|
|
4405
|
+
* Updates the Term
|
|
4406
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4407
|
+
* @param UpdateTermRequest
|
|
4408
|
+
* @return UpdateTermResponse
|
|
4409
|
+
* @throws OciError when an error occurs
|
|
4410
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateTerm.ts.html |here} to see how to use UpdateTerm API.
|
|
4411
|
+
*/
|
|
4412
|
+
updateTerm(updateTermRequest) {
|
|
4413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4414
|
+
if (this.logger)
|
|
4415
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateTerm.");
|
|
4416
|
+
const operationName = "updateTerm";
|
|
4417
|
+
const apiReferenceLink = "";
|
|
4418
|
+
const pathParams = {
|
|
4419
|
+
"{termId}": updateTermRequest.termId
|
|
4420
|
+
};
|
|
4421
|
+
const queryParams = {};
|
|
4422
|
+
let headerParams = {
|
|
4423
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4424
|
+
"if-match": updateTermRequest.ifMatch,
|
|
4425
|
+
"opc-request-id": updateTermRequest.opcRequestId
|
|
4426
|
+
};
|
|
4427
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4428
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateTermRequest.retryConfiguration, specRetryConfiguration);
|
|
4429
|
+
if (this.logger)
|
|
4430
|
+
retrier.logger = this.logger;
|
|
4431
|
+
const request = yield oci_common_1.composeRequest({
|
|
4432
|
+
baseEndpoint: this._endpoint,
|
|
4433
|
+
defaultHeaders: this._defaultHeaders,
|
|
4434
|
+
path: "/terms/{termId}",
|
|
4435
|
+
method: "PUT",
|
|
4436
|
+
bodyContent: common.ObjectSerializer.serialize(updateTermRequest.updateTermDetails, "UpdateTermDetails", model.UpdateTermDetails.getJsonObj),
|
|
4437
|
+
pathParams: pathParams,
|
|
4438
|
+
headerParams: headerParams,
|
|
4439
|
+
queryParams: queryParams
|
|
4440
|
+
});
|
|
4441
|
+
try {
|
|
4442
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4443
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4444
|
+
responseObject: {},
|
|
4445
|
+
body: yield response.json(),
|
|
4446
|
+
bodyKey: "term",
|
|
4447
|
+
bodyModel: model.Term,
|
|
4448
|
+
type: "model.Term",
|
|
4449
|
+
responseHeaders: [
|
|
4450
|
+
{
|
|
4451
|
+
value: response.headers.get("etag"),
|
|
4452
|
+
key: "etag",
|
|
4453
|
+
dataType: "string"
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
value: response.headers.get("opc-request-id"),
|
|
4457
|
+
key: "opcRequestId",
|
|
4458
|
+
dataType: "string"
|
|
4459
|
+
}
|
|
4460
|
+
]
|
|
4461
|
+
});
|
|
4462
|
+
return sdkResponse;
|
|
4463
|
+
}
|
|
4464
|
+
catch (err) {
|
|
4465
|
+
throw err;
|
|
4466
|
+
}
|
|
4467
|
+
});
|
|
4468
|
+
}
|
|
4469
|
+
/**
|
|
4470
|
+
* Updates the Term Version
|
|
4471
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4472
|
+
* @param UpdateTermVersionRequest
|
|
4473
|
+
* @return UpdateTermVersionResponse
|
|
4474
|
+
* @throws OciError when an error occurs
|
|
4475
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateTermVersion.ts.html |here} to see how to use UpdateTermVersion API.
|
|
4476
|
+
*/
|
|
4477
|
+
updateTermVersion(updateTermVersionRequest) {
|
|
4478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4479
|
+
if (this.logger)
|
|
4480
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateTermVersion.");
|
|
4481
|
+
const operationName = "updateTermVersion";
|
|
4482
|
+
const apiReferenceLink = "";
|
|
4483
|
+
const pathParams = {
|
|
4484
|
+
"{termVersionId}": updateTermVersionRequest.termVersionId
|
|
4485
|
+
};
|
|
4486
|
+
const queryParams = {};
|
|
4487
|
+
let headerParams = {
|
|
4488
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4489
|
+
"if-match": updateTermVersionRequest.ifMatch,
|
|
4490
|
+
"opc-request-id": updateTermVersionRequest.opcRequestId
|
|
4491
|
+
};
|
|
4492
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4493
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateTermVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
4494
|
+
if (this.logger)
|
|
4495
|
+
retrier.logger = this.logger;
|
|
4496
|
+
const request = yield oci_common_1.composeRequest({
|
|
4497
|
+
baseEndpoint: this._endpoint,
|
|
4498
|
+
defaultHeaders: this._defaultHeaders,
|
|
4499
|
+
path: "/termVersions/{termVersionId}",
|
|
4500
|
+
method: "PUT",
|
|
4501
|
+
bodyContent: common.ObjectSerializer.serialize(updateTermVersionRequest.updateTermVersionDetails, "UpdateTermVersionDetails", model.UpdateTermVersionDetails.getJsonObj),
|
|
4502
|
+
pathParams: pathParams,
|
|
4503
|
+
headerParams: headerParams,
|
|
4504
|
+
queryParams: queryParams
|
|
4505
|
+
});
|
|
4506
|
+
try {
|
|
4507
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4508
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4509
|
+
responseObject: {},
|
|
4510
|
+
body: yield response.json(),
|
|
4511
|
+
bodyKey: "termVersion",
|
|
4512
|
+
bodyModel: model.TermVersion,
|
|
4513
|
+
type: "model.TermVersion",
|
|
4514
|
+
responseHeaders: [
|
|
4515
|
+
{
|
|
4516
|
+
value: response.headers.get("etag"),
|
|
4517
|
+
key: "etag",
|
|
4518
|
+
dataType: "string"
|
|
4519
|
+
},
|
|
4520
|
+
{
|
|
4521
|
+
value: response.headers.get("opc-request-id"),
|
|
4522
|
+
key: "opcRequestId",
|
|
4523
|
+
dataType: "string"
|
|
4524
|
+
}
|
|
4525
|
+
]
|
|
4526
|
+
});
|
|
4527
|
+
return sdkResponse;
|
|
4528
|
+
}
|
|
4529
|
+
catch (err) {
|
|
4530
|
+
throw err;
|
|
4531
|
+
}
|
|
4532
|
+
});
|
|
4533
|
+
}
|
|
4534
|
+
/**
|
|
4535
|
+
* Updates the Term Version attachment
|
|
4536
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4537
|
+
* @param UpdateTermVersionContentRequest
|
|
4538
|
+
* @return UpdateTermVersionContentResponse
|
|
4539
|
+
* @throws OciError when an error occurs
|
|
4540
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/UpdateTermVersionContent.ts.html |here} to see how to use UpdateTermVersionContent API.
|
|
4541
|
+
*/
|
|
4542
|
+
updateTermVersionContent(updateTermVersionContentRequest) {
|
|
4543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4544
|
+
if (this.logger)
|
|
4545
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#updateTermVersionContent.");
|
|
4546
|
+
const operationName = "updateTermVersionContent";
|
|
4547
|
+
const apiReferenceLink = "";
|
|
4548
|
+
const pathParams = {
|
|
4549
|
+
"{termVersionId}": updateTermVersionContentRequest.termVersionId
|
|
4550
|
+
};
|
|
4551
|
+
const queryParams = {};
|
|
4552
|
+
let headerParams = {
|
|
4553
|
+
"if-match": updateTermVersionContentRequest.ifMatch,
|
|
4554
|
+
"opc-request-id": updateTermVersionContentRequest.opcRequestId,
|
|
4555
|
+
"display-name": updateTermVersionContentRequest.displayName
|
|
4556
|
+
};
|
|
4557
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4558
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateTermVersionContentRequest.retryConfiguration, specRetryConfiguration);
|
|
4559
|
+
if (this.logger)
|
|
4560
|
+
retrier.logger = this.logger;
|
|
4561
|
+
const request = yield oci_common_1.composeRequest({
|
|
4562
|
+
baseEndpoint: this._endpoint,
|
|
4563
|
+
defaultHeaders: this._defaultHeaders,
|
|
4564
|
+
path: "/termVersions/{termVersionId}/content",
|
|
4565
|
+
method: "PUT",
|
|
4566
|
+
bodyContent: updateTermVersionContentRequest.updateTermVersionContent,
|
|
4567
|
+
pathParams: pathParams,
|
|
4568
|
+
headerParams: headerParams,
|
|
4569
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
4570
|
+
queryParams: queryParams
|
|
4571
|
+
});
|
|
4572
|
+
try {
|
|
4573
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4574
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4575
|
+
responseObject: {},
|
|
4576
|
+
body: yield response.json(),
|
|
4577
|
+
bodyKey: "termVersion",
|
|
4578
|
+
bodyModel: model.TermVersion,
|
|
4579
|
+
type: "model.TermVersion",
|
|
4580
|
+
responseHeaders: [
|
|
4581
|
+
{
|
|
4582
|
+
value: response.headers.get("etag"),
|
|
4583
|
+
key: "etag",
|
|
4584
|
+
dataType: "string"
|
|
4585
|
+
},
|
|
4586
|
+
{
|
|
4587
|
+
value: response.headers.get("opc-request-id"),
|
|
4588
|
+
key: "opcRequestId",
|
|
4589
|
+
dataType: "string"
|
|
4590
|
+
}
|
|
4591
|
+
]
|
|
4592
|
+
});
|
|
4593
|
+
return sdkResponse;
|
|
4594
|
+
}
|
|
4595
|
+
catch (err) {
|
|
4596
|
+
throw err;
|
|
4597
|
+
}
|
|
4598
|
+
});
|
|
4599
|
+
}
|
|
4600
|
+
/**
|
|
4601
|
+
* Validate and publish artifact.
|
|
4602
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4603
|
+
* @param ValidateAndPublishArtifactRequest
|
|
4604
|
+
* @return ValidateAndPublishArtifactResponse
|
|
4605
|
+
* @throws OciError when an error occurs
|
|
4606
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/ValidateAndPublishArtifact.ts.html |here} to see how to use ValidateAndPublishArtifact API.
|
|
4607
|
+
*/
|
|
4608
|
+
validateAndPublishArtifact(validateAndPublishArtifactRequest) {
|
|
4609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4610
|
+
if (this.logger)
|
|
4611
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#validateAndPublishArtifact.");
|
|
4612
|
+
const operationName = "validateAndPublishArtifact";
|
|
4613
|
+
const apiReferenceLink = "";
|
|
4614
|
+
const pathParams = {
|
|
4615
|
+
"{artifactId}": validateAndPublishArtifactRequest.artifactId
|
|
4616
|
+
};
|
|
4617
|
+
const queryParams = {};
|
|
4618
|
+
let headerParams = {
|
|
4619
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4620
|
+
"if-match": validateAndPublishArtifactRequest.ifMatch,
|
|
4621
|
+
"opc-request-id": validateAndPublishArtifactRequest.opcRequestId,
|
|
4622
|
+
"opc-retry-token": validateAndPublishArtifactRequest.opcRetryToken
|
|
4623
|
+
};
|
|
4624
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4625
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateAndPublishArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
4626
|
+
if (this.logger)
|
|
4627
|
+
retrier.logger = this.logger;
|
|
4628
|
+
const request = yield oci_common_1.composeRequest({
|
|
4629
|
+
baseEndpoint: this._endpoint,
|
|
4630
|
+
defaultHeaders: this._defaultHeaders,
|
|
4631
|
+
path: "/artifacts/{artifactId}/actions/validateAndPublish",
|
|
4632
|
+
method: "POST",
|
|
4633
|
+
pathParams: pathParams,
|
|
4634
|
+
headerParams: headerParams,
|
|
4635
|
+
queryParams: queryParams
|
|
4636
|
+
});
|
|
4637
|
+
try {
|
|
4638
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4639
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4640
|
+
responseObject: {},
|
|
4641
|
+
responseHeaders: [
|
|
4642
|
+
{
|
|
4643
|
+
value: response.headers.get("opc-work-request-id"),
|
|
4644
|
+
key: "opcWorkRequestId",
|
|
4645
|
+
dataType: "string"
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
value: response.headers.get("opc-request-id"),
|
|
4649
|
+
key: "opcRequestId",
|
|
4650
|
+
dataType: "string"
|
|
4651
|
+
}
|
|
4652
|
+
]
|
|
4653
|
+
});
|
|
4654
|
+
return sdkResponse;
|
|
4655
|
+
}
|
|
4656
|
+
catch (err) {
|
|
4657
|
+
throw err;
|
|
4658
|
+
}
|
|
4659
|
+
});
|
|
4660
|
+
}
|
|
4661
|
+
/**
|
|
4662
|
+
* Update the Listing Revision identified by the id as Withdraw/UnPublished.
|
|
4663
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4664
|
+
* @param WithdrawListingRevisionRequest
|
|
4665
|
+
* @return WithdrawListingRevisionResponse
|
|
4666
|
+
* @throws OciError when an error occurs
|
|
4667
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.71.0/marketplacepublisher/WithdrawListingRevision.ts.html |here} to see how to use WithdrawListingRevision API.
|
|
4668
|
+
*/
|
|
4669
|
+
withdrawListingRevision(withdrawListingRevisionRequest) {
|
|
4670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4671
|
+
if (this.logger)
|
|
4672
|
+
this.logger.debug("Calling operation MarketplacePublisherClient#withdrawListingRevision.");
|
|
4673
|
+
const operationName = "withdrawListingRevision";
|
|
4674
|
+
const apiReferenceLink = "";
|
|
4675
|
+
const pathParams = {
|
|
4676
|
+
"{listingRevisionId}": withdrawListingRevisionRequest.listingRevisionId
|
|
4677
|
+
};
|
|
4678
|
+
const queryParams = {};
|
|
4679
|
+
let headerParams = {
|
|
4680
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4681
|
+
"if-match": withdrawListingRevisionRequest.ifMatch,
|
|
4682
|
+
"opc-request-id": withdrawListingRevisionRequest.opcRequestId,
|
|
4683
|
+
"opc-retry-token": withdrawListingRevisionRequest.opcRetryToken
|
|
4684
|
+
};
|
|
4685
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4686
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, withdrawListingRevisionRequest.retryConfiguration, specRetryConfiguration);
|
|
4687
|
+
if (this.logger)
|
|
4688
|
+
retrier.logger = this.logger;
|
|
4689
|
+
const request = yield oci_common_1.composeRequest({
|
|
4690
|
+
baseEndpoint: this._endpoint,
|
|
4691
|
+
defaultHeaders: this._defaultHeaders,
|
|
4692
|
+
path: "/listingRevisions/{listingRevisionId}/actions/withdraw",
|
|
4693
|
+
method: "POST",
|
|
4694
|
+
pathParams: pathParams,
|
|
4695
|
+
headerParams: headerParams,
|
|
4696
|
+
queryParams: queryParams
|
|
4697
|
+
});
|
|
4698
|
+
try {
|
|
4699
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4700
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4701
|
+
responseObject: {},
|
|
4702
|
+
responseHeaders: [
|
|
4703
|
+
{
|
|
4704
|
+
value: response.headers.get("opc-work-request-id"),
|
|
4705
|
+
key: "opcWorkRequestId",
|
|
4706
|
+
dataType: "string"
|
|
4707
|
+
},
|
|
4708
|
+
{
|
|
4709
|
+
value: response.headers.get("opc-request-id"),
|
|
4710
|
+
key: "opcRequestId",
|
|
4711
|
+
dataType: "string"
|
|
4712
|
+
}
|
|
4713
|
+
]
|
|
4714
|
+
});
|
|
4715
|
+
return sdkResponse;
|
|
4716
|
+
}
|
|
4717
|
+
catch (err) {
|
|
4718
|
+
throw err;
|
|
4719
|
+
}
|
|
4720
|
+
});
|
|
4721
|
+
}
|
|
4722
|
+
}
|
|
4723
|
+
exports.MarketplacePublisherClient = MarketplacePublisherClient;
|
|
4724
|
+
MarketplacePublisherClient.serviceEndpointTemplate = "https://marketplace-publisher.{region}.oci.{secondLevelDomain}";
|
|
4725
|
+
MarketplacePublisherClient.endpointServiceName = "";
|
|
4726
|
+
//# sourceMappingURL=client.js.map
|