/**
 * Marketplace Service API
 * Manage applications in Oracle Cloud Infrastructure Marketplace.
 * OpenAPI spec version: 20181001
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * 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.
 */ import common = require ( "oci-common" ) ; import * as requests from "./request" ; import * as model from "./model" ; import * as responses from "./response" ; import { paginateRecords , paginateResponses } from "oci-common" ; import { MarketplaceWaiter } from "./marketplace-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum AccountApiKeys { } /**
 * This service client uses  common . CircuitBreaker . DefaultConfiguration for all the operations by default if no circuit breaker configuration is defined by the user.
  export class AccountClient { protected static serviceEndpointTemplate = "https://marketplace.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; if ( params . authenticationDetailsProvider && common . isRegionProvider ( params . authenticationDetailsProvider ) ) { const provider = params . authenticationDetailsProvider ; if ( provider . getRegion ( ) ) { this . region = provider . getRegion ( ) ; } } } /**
     * Get the endpoint that is being used to call (ex, https://www.example.com).
     */ public get endpoint ( ) { return this . _endpoint ; } param endpoint public set endpoint ( endpoint ) { this . _endpoint = endpoint ; this . _endpoint = this . _endpoint + "/20181001" ; if ( this . logger ) this . logger . info ( `AccountClient endpoint set to ${ this . _endpoint }` ) ; } public get logger ( ) { return common . LOG . logger ; } /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     * Note, this will call  {@link #endpoint(String) endpoint} after resolving the endpoint.
     *  param region public set region ( region ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegion ( AccountClient . serviceEndpointTemplate , region ) ; } /**
     * Sets the regionId to call (ex, 'us-phoenix-1').
     *
     * Note, this will first try to map the region ID to a known Region and call  {@link #region(Region) region} .
     * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
     * and then call  {@link #endpoint(String) endpoint} .
     *  param regionId public set regionId ( regionId ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegionId ( AccountClient . serviceEndpointTemplate , regionId ) ; } param GetLaunchEligibilityRequest return throws example Click  https to see how to use GetLaunchEligibility API.
      public async getLaunchEligibility ( getLaunchEligibilityRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccountClient#getLaunchEligibility." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : getLaunchEligibilityRequest . compartmentId , "imageId" : getLaunchEligibilityRequest . imageId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getLaunchEligibilityRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getLaunchEligibilityRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/launchEligibility" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetLaunchEligibilityResponse > { } , body : await response . json ( ) , bodyKey : "launchEligibility" , bodyModel : model . LaunchEligibility , type : "model.LaunchEligibility" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetThirdPartyPaidListingEligibilityRequest return throws example Click  https to see how to use GetThirdPartyPaidListingEligibility API.
      public async getThirdPartyPaidListingEligibility ( getThirdPartyPaidListingEligibilityRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccountClient#getThirdPartyPaidListingEligibility." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : getThirdPartyPaidListingEligibilityRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getThirdPartyPaidListingEligibilityRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getThirdPartyPaidListingEligibilityRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/thirdPartyPaidListingEligibility" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetThirdPartyPaidListingEligibilityResponse > { } , body : await response . json ( ) , bodyKey : "thirdPartyPaidListingEligibility" , bodyModel : model . ThirdPartyPaidListingEligibility , type : "model.ThirdPartyPaidListingEligibility" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum MarketplaceApiKeys { } /**
 * This service client uses  common . CircuitBreaker . DefaultConfiguration for all the operations by default if no circuit breaker configuration is defined by the user.
  export class MarketplaceClient { protected static serviceEndpointTemplate = "https://marketplace.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : MarketplaceWaiter ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; if ( params . authenticationDetailsProvider && common . isRegionProvider ( params . authenticationDetailsProvider ) ) { const provider = params . authenticationDetailsProvider ; if ( provider . getRegion ( ) ) { this . region = provider . getRegion ( ) ; } } } /**
     * Get the endpoint that is being used to call (ex, https://www.example.com).
     */ public get endpoint ( ) { return this . _endpoint ; } param endpoint public set endpoint ( endpoint ) { this . _endpoint = endpoint ; this . _endpoint = this . _endpoint + "/20181001" ; if ( this . logger ) this . logger . info ( `MarketplaceClient endpoint set to ${ this . _endpoint }` ) ; } public get logger ( ) { return common . LOG . logger ; } /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     * Note, this will call  {@link #endpoint(String) endpoint} after resolving the endpoint.
     *  param region public set region ( region ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegion ( MarketplaceClient . serviceEndpointTemplate , region ) ; } /**
     * Sets the regionId to call (ex, 'us-phoenix-1').
     *
     * Note, this will first try to map the region ID to a known Region and call  {@link #region(Region) region} .
     * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
     * and then call  {@link #endpoint(String) endpoint} .
     *  param regionId public set regionId ( regionId ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegionId ( MarketplaceClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new MarketplaceWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangePublicationCompartmentRequest return throws example Click  https to see how to use ChangePublicationCompartment API.
      public async changePublicationCompartment ( changePublicationCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#changePublicationCompartment." ) ; const pathParams = { "{publicationId}" : changePublicationCompartmentRequest . publicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : changePublicationCompartmentRequest . opcRetryToken , "opc-request-id" : changePublicationCompartmentRequest . opcRequestId , "if-match" : changePublicationCompartmentRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changePublicationCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications/{publicationId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changePublicationCompartmentRequest . changePublicationCompartmentDetails , "ChangePublicationCompartmentDetails" , model . ChangePublicationCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangePublicationCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateAcceptedAgreementRequest return throws example Click  https to see how to use CreateAcceptedAgreement API.
      public async createAcceptedAgreement ( createAcceptedAgreementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#createAcceptedAgreement." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createAcceptedAgreementRequest . opcRequestId , "opc-retry-token" : createAcceptedAgreementRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createAcceptedAgreementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/acceptedAgreements" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createAcceptedAgreementRequest . createAcceptedAgreementDetails , "CreateAcceptedAgreementDetails" , model . CreateAcceptedAgreementDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateAcceptedAgreementResponse > { } , body : await response . json ( ) , bodyKey : "acceptedAgreement" , bodyModel : model . AcceptedAgreement , type : "model.AcceptedAgreement" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreatePublicationRequest return throws example Click  https to see how to use CreatePublication API.
      public async createPublication ( createPublicationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#createPublication." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createPublicationRequest . opcRetryToken , "opc-request-id" : createPublicationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createPublicationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createPublicationRequest . createPublicationDetails , "CreatePublicationDetails" , model . CreatePublicationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreatePublicationResponse > { } , body : await response . json ( ) , bodyKey : "publication" , bodyModel : model . Publication , type : "model.Publication" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteAcceptedAgreementRequest return throws example Click  https to see how to use DeleteAcceptedAgreement API.
      public async deleteAcceptedAgreement ( deleteAcceptedAgreementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#deleteAcceptedAgreement." ) ; const pathParams = { "{acceptedAgreementId}" : deleteAcceptedAgreementRequest . acceptedAgreementId } ; const queryParams = { "signature" : deleteAcceptedAgreementRequest . signature } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteAcceptedAgreementRequest . opcRequestId , "if-match" : deleteAcceptedAgreementRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteAcceptedAgreementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/acceptedAgreements/{acceptedAgreementId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteAcceptedAgreementResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeletePublicationRequest return throws example Click  https to see how to use DeletePublication API.
      public async deletePublication ( deletePublicationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#deletePublication." ) ; const pathParams = { "{publicationId}" : deletePublicationRequest . publicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deletePublicationRequest . ifMatch , "opc-request-id" : deletePublicationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deletePublicationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications/{publicationId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeletePublicationResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetAcceptedAgreementRequest return throws example Click  https to see how to use GetAcceptedAgreement API.
      public async getAcceptedAgreement ( getAcceptedAgreementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#getAcceptedAgreement." ) ; const pathParams = { "{acceptedAgreementId}" : getAcceptedAgreementRequest . acceptedAgreementId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAcceptedAgreementRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAcceptedAgreementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/acceptedAgreements/{acceptedAgreementId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAcceptedAgreementResponse > { } , body : await response . json ( ) , bodyKey : "acceptedAgreement" , bodyModel : model . AcceptedAgreement , type : "model.AcceptedAgreement" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetAgreementRequest return throws example Click  https to see how to use GetAgreement API.
      public async getAgreement ( getAgreementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#getAgreement." ) ; const pathParams = { "{listingId}" : getAgreementRequest . listingId , "{packageVersion}" : getAgreementRequest . packageVersion , "{agreementId}" : getAgreementRequest . agreementId } ; const queryParams = { "compartmentId" : getAgreementRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAgreementRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAgreementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings/{listingId}/packages/{packageVersion}/agreements/{agreementId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAgreementResponse > { } , body : await response . json ( ) , bodyKey : "agreement" , bodyModel : model . Agreement , type : "model.Agreement" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetListingRequest return throws example Click  https to see how to use GetListing API.
        public async getListing ( getListingRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#getListing." ) ; const pathParams = { "{listingId}" : getListingRequest . listingId } ; const queryParams = { "compartmentId" : getListingRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getListingRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getListingRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings/{listingId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetListingResponse > { } , body : await response . json ( ) , bodyKey : "listing" , bodyModel : model . Listing , type : "model.Listing" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetPackageRequest return throws example Click  https to see how to use GetPackage API.
        public async getPackage ( getPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#getPackage." ) ; const pathParams = { "{listingId}" : getPackageRequest . listingId , "{packageVersion}" : getPackageRequest . packageVersion } ; const queryParams = { "compartmentId" : getPackageRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getPackageRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings/{listingId}/packages/{packageVersion}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPackageResponse > { } , body : await response . json ( ) , bodyKey : "listingPackage" , bodyModel : model . ListingPackage , type : "model.ListingPackage" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetPublicationRequest return throws example Click  https to see how to use GetPublication API.
      public async getPublication ( getPublicationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#getPublication." ) ; const pathParams = { "{publicationId}" : getPublicationRequest . publicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getPublicationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPublicationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications/{publicationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPublicationResponse > { } , body : await response . json ( ) , bodyKey : "publication" , bodyModel : model . Publication , type : "model.Publication" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetPublicationPackageRequest return throws example Click  https to see how to use GetPublicationPackage API.
      public async getPublicationPackage ( getPublicationPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#getPublicationPackage." ) ; const pathParams = { "{publicationId}" : getPublicationPackageRequest . publicationId , "{packageVersion}" : getPublicationPackageRequest . packageVersion } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getPublicationPackageRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPublicationPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications/{publicationId}/packages/{packageVersion}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPublicationPackageResponse > { } , body : await response . json ( ) , bodyKey : "publicationPackage" , bodyModel : model . PublicationPackage , type : "model.PublicationPackage" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListAcceptedAgreementsRequest return throws example Click  https to see how to use ListAcceptedAgreements API.
      public async listAcceptedAgreements ( listAcceptedAgreementsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listAcceptedAgreements." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listAcceptedAgreementsRequest . compartmentId , "displayName" : listAcceptedAgreementsRequest . displayName , "listingId" : listAcceptedAgreementsRequest . listingId , "packageVersion" : listAcceptedAgreementsRequest . packageVersion , "acceptedAgreementId" : listAcceptedAgreementsRequest . acceptedAgreementId , "sortBy" : listAcceptedAgreementsRequest . sortBy , "sortOrder" : listAcceptedAgreementsRequest . sortOrder , "limit" : listAcceptedAgreementsRequest . limit , "page" : listAcceptedAgreementsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAcceptedAgreementsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAcceptedAgreementsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/acceptedAgreements" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAcceptedAgreementsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . AcceptedAgreementSummary , type : "Array<model.AcceptedAgreementSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllAcceptedAgreements ( request ) { return paginateRecords ( request , req => this . listAcceptedAgreements ( req ) ) ; } param request public listAllAcceptedAgreementsResponses ( request ) { return paginateResponses ( request , req => this . listAcceptedAgreements ( req ) ) ; } param request public listAcceptedAgreementsRecordIterator ( request ) { return paginateRecords ( request , req => this . listAcceptedAgreements ( req ) ) ; } param request public listAcceptedAgreementsResponseIterator ( request ) { return paginateResponses ( request , req => this . listAcceptedAgreements ( req ) ) ; } param ListAgreementsRequest return throws example Click  https to see how to use ListAgreements API.
      public async listAgreements ( listAgreementsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listAgreements." ) ; const pathParams = { "{listingId}" : listAgreementsRequest . listingId , "{packageVersion}" : listAgreementsRequest . packageVersion } ; const queryParams = { "limit" : listAgreementsRequest . limit , "page" : listAgreementsRequest . page , "compartmentId" : listAgreementsRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAgreementsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAgreementsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings/{listingId}/packages/{packageVersion}/agreements" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAgreementsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . AgreementSummary , type : "Array<model.AgreementSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllAgreements ( request ) { return paginateRecords ( request , req => this . listAgreements ( req ) ) ; } param request public listAllAgreementsResponses ( request ) { return paginateResponses ( request , req => this . listAgreements ( req ) ) ; } param request public listAgreementsRecordIterator ( request ) { return paginateRecords ( request , req => this . listAgreements ( req ) ) ; } param request public listAgreementsResponseIterator ( request ) { return paginateResponses ( request , req => this . listAgreements ( req ) ) ; } param ListCategoriesRequest return throws example Click  https to see how to use ListCategories API.
      public async listCategories ( listCategoriesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listCategories." ) ; const pathParams = { } ; const queryParams = { "limit" : listCategoriesRequest . limit , "page" : listCategoriesRequest . page , "compartmentId" : listCategoriesRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCategoriesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCategoriesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/categories" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCategoriesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . CategorySummary , type : "Array<model.CategorySummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllCategories ( request ) { return paginateRecords ( request , req => this . listCategories ( req ) ) ; } param request public listAllCategoriesResponses ( request ) { return paginateResponses ( request , req => this . listCategories ( req ) ) ; } param request public listCategoriesRecordIterator ( request ) { return paginateRecords ( request , req => this . listCategories ( req ) ) ; } param request public listCategoriesResponseIterator ( request ) { return paginateResponses ( request , req => this . listCategories ( req ) ) ; } param ListListingsRequest return throws example Click  https to see how to use ListListings API.
        public async listListings ( listListingsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listListings." ) ; const pathParams = { } ; const queryParams = { "name" : listListingsRequest . name , "listingId" : listListingsRequest . listingId , "publisherId" : listListingsRequest . publisherId , "packageType" : listListingsRequest . packageType , "limit" : listListingsRequest . limit , "page" : listListingsRequest . page , "sortBy" : listListingsRequest . sortBy , "sortOrder" : listListingsRequest . sortOrder , "category" : listListingsRequest . category , "pricing" : listListingsRequest . pricing , "isFeatured" : listListingsRequest . isFeatured , "listingTypes" : listListingsRequest . listingTypes , "operatingSystems" : listListingsRequest . operatingSystems , "compartmentId" : listListingsRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listListingsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listListingsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListListingsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ListingSummary , type : "Array<model.ListingSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllListings ( request ) { return paginateRecords ( request , req => this . listListings ( req ) ) ; } param request public listAllListingsResponses ( request ) { return paginateResponses ( request , req => this . listListings ( req ) ) ; } param request public listListingsRecordIterator ( request ) { return paginateRecords ( request , req => this . listListings ( req ) ) ; } param request public listListingsResponseIterator ( request ) { return paginateResponses ( request , req => this . listListings ( req ) ) ; } param ListPackagesRequest return throws example Click  https to see how to use ListPackages API.
        public async listPackages ( listPackagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listPackages." ) ; const pathParams = { "{listingId}" : listPackagesRequest . listingId } ; const queryParams = { "packageVersion" : listPackagesRequest . packageVersion , "packageType" : listPackagesRequest . packageType , "limit" : listPackagesRequest . limit , "page" : listPackagesRequest . page , "sortBy" : listPackagesRequest . sortBy , "sortOrder" : listPackagesRequest . sortOrder , "compartmentId" : listPackagesRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPackagesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPackagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings/{listingId}/packages" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPackagesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ListingPackageSummary , type : "Array<model.ListingPackageSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllPackages ( request ) { return paginateRecords ( request , req => this . listPackages ( req ) ) ; } param request public listAllPackagesResponses ( request ) { return paginateResponses ( request , req => this . listPackages ( req ) ) ; } param request public listPackagesRecordIterator ( request ) { return paginateRecords ( request , req => this . listPackages ( req ) ) ; } param request public listPackagesResponseIterator ( request ) { return paginateResponses ( request , req => this . listPackages ( req ) ) ; } param ListPublicationPackagesRequest return throws example Click  https to see how to use ListPublicationPackages API.
      public async listPublicationPackages ( listPublicationPackagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listPublicationPackages." ) ; const pathParams = { "{publicationId}" : listPublicationPackagesRequest . publicationId } ; const queryParams = { "packageVersion" : listPublicationPackagesRequest . packageVersion , "packageType" : listPublicationPackagesRequest . packageType , "sortBy" : listPublicationPackagesRequest . sortBy , "sortOrder" : listPublicationPackagesRequest . sortOrder , "limit" : listPublicationPackagesRequest . limit , "page" : listPublicationPackagesRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPublicationPackagesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPublicationPackagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications/{publicationId}/packages" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPublicationPackagesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . PublicationPackageSummary , type : "Array<model.PublicationPackageSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllPublicationPackages ( request ) { return paginateRecords ( request , req => this . listPublicationPackages ( req ) ) ; } param request public listAllPublicationPackagesResponses ( request ) { return paginateResponses ( request , req => this . listPublicationPackages ( req ) ) ; } param request public listPublicationPackagesRecordIterator ( request ) { return paginateRecords ( request , req => this . listPublicationPackages ( req ) ) ; } param request public listPublicationPackagesResponseIterator ( request ) { return paginateResponses ( request , req => this . listPublicationPackages ( req ) ) ; } param ListPublicationsRequest return throws example Click  https to see how to use ListPublications API.
      public async listPublications ( listPublicationsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listPublications." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listPublicationsRequest . compartmentId , "name" : listPublicationsRequest . name , "listingType" : listPublicationsRequest . listingType , "publicationId" : listPublicationsRequest . publicationId , "operatingSystems" : listPublicationsRequest . operatingSystems , "sortBy" : listPublicationsRequest . sortBy , "sortOrder" : listPublicationsRequest . sortOrder , "limit" : listPublicationsRequest . limit , "page" : listPublicationsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPublicationsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPublicationsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPublicationsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . PublicationSummary , type : "Array<model.PublicationSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllPublications ( request ) { return paginateRecords ( request , req => this . listPublications ( req ) ) ; } param request public listAllPublicationsResponses ( request ) { return paginateResponses ( request , req => this . listPublications ( req ) ) ; } param request public listPublicationsRecordIterator ( request ) { return paginateRecords ( request , req => this . listPublications ( req ) ) ; } param request public listPublicationsResponseIterator ( request ) { return paginateResponses ( request , req => this . listPublications ( req ) ) ; } param ListPublishersRequest return throws example Click  https to see how to use ListPublishers API.
      public async listPublishers ( listPublishersRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listPublishers." ) ; const pathParams = { } ; const queryParams = { "publisherId" : listPublishersRequest . publisherId , "limit" : listPublishersRequest . limit , "page" : listPublishersRequest . page , "compartmentId" : listPublishersRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPublishersRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPublishersRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publishers" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPublishersResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . PublisherSummary , type : "Array<model.PublisherSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllPublishers ( request ) { return paginateRecords ( request , req => this . listPublishers ( req ) ) ; } param request public listAllPublishersResponses ( request ) { return paginateResponses ( request , req => this . listPublishers ( req ) ) ; } param request public listPublishersRecordIterator ( request ) { return paginateRecords ( request , req => this . listPublishers ( req ) ) ; } param request public listPublishersResponseIterator ( request ) { return paginateResponses ( request , req => this . listPublishers ( req ) ) ; } param ListReportTypesRequest return throws example Click  https to see how to use ListReportTypes API.
      public async listReportTypes ( listReportTypesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listReportTypes." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listReportTypesRequest . compartmentId , "page" : listReportTypesRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listReportTypesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listReportTypesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/reportTypes" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListReportTypesResponse > { } , body : await response . json ( ) , bodyKey : "reportTypeCollection" , bodyModel : model . ReportTypeCollection , type : "model.ReportTypeCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListReportsRequest return throws example Click  https to see how to use ListReports API.
      public async listReports ( listReportsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listReports." ) ; const pathParams = { } ; const queryParams = { "reportType" : listReportsRequest . reportType , "date" : listReportsRequest . date , "compartmentId" : listReportsRequest . compartmentId , "page" : listReportsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listReportsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listReportsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/reports" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListReportsResponse > { } , body : await response . json ( ) , bodyKey : "reportCollection" , bodyModel : model . ReportCollection , type : "model.ReportCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListTaxesRequest return throws example Click  https to see how to use ListTaxes API.
      public async listTaxes ( listTaxesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#listTaxes." ) ; const pathParams = { "{listingId}" : listTaxesRequest . listingId } ; const queryParams = { "compartmentId" : listTaxesRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listTaxesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTaxesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/listings/{listingId}/taxes" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTaxesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . TaxSummary , type : "Array<model.TaxSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param SearchListingsRequest return throws example Click  https to see how to use SearchListings API.
      public async searchListings ( searchListingsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#searchListings." ) ; const pathParams = { } ; const queryParams = { "page" : searchListingsRequest . page , "limit" : searchListingsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : searchListingsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , searchListingsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/searchListings" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( searchListingsRequest . searchListingsDetails , "SearchListingsDetails" , model . SearchListingsDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SearchListingsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ListingSummary , type : "Array<model.ListingSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public searchAllListings ( request ) { return paginateRecords ( request , req => this . searchListings ( req ) ) ; } param request public searchAllListingsResponses ( request ) { return paginateResponses ( request , req => this . searchListings ( req ) ) ; } param request public searchListingsRecordIterator ( request ) { return paginateRecords ( request , req => this . searchListings ( req ) ) ; } param request public searchListingsResponseIterator ( request ) { return paginateResponses ( request , req => this . searchListings ( req ) ) ; } param UpdateAcceptedAgreementRequest return throws example Click  https to see how to use UpdateAcceptedAgreement API.
      public async updateAcceptedAgreement ( updateAcceptedAgreementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#updateAcceptedAgreement." ) ; const pathParams = { "{acceptedAgreementId}" : updateAcceptedAgreementRequest . acceptedAgreementId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateAcceptedAgreementRequest . opcRequestId , "opc-retry-token" : updateAcceptedAgreementRequest . opcRetryToken , "if-match" : updateAcceptedAgreementRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateAcceptedAgreementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/acceptedAgreements/{acceptedAgreementId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateAcceptedAgreementRequest . updateAcceptedAgreementDetails , "UpdateAcceptedAgreementDetails" , model . UpdateAcceptedAgreementDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateAcceptedAgreementResponse > { } , body : await response . json ( ) , bodyKey : "acceptedAgreement" , bodyModel : model . AcceptedAgreement , type : "model.AcceptedAgreement" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdatePublicationRequest return throws example Click  https to see how to use UpdatePublication API.
      public async updatePublication ( updatePublicationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MarketplaceClient#updatePublication." ) ; const pathParams = { "{publicationId}" : updatePublicationRequest . publicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updatePublicationRequest . opcRequestId , "opc-retry-token" : updatePublicationRequest . opcRetryToken , "if-match" : updatePublicationRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updatePublicationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/publications/{publicationId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updatePublicationRequest . updatePublicationDetails , "UpdatePublicationDetails" , model . UpdatePublicationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdatePublicationResponse > { } , body : await response . json ( ) , bodyKey : "publication" , bodyModel : model . Publication , type : "model.Publication" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }