/**
 * Analytics API
 * Analytics API.

 * OpenAPI spec version: 20190331
 *
 *
 * 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 { AnalyticsWaiter } from "./analytics-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum AnalyticsApiKeys { } /**
 * 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 AnalyticsClient { protected static serviceEndpointTemplate = "https://analytics.{region}.ocp.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : AnalyticsWaiter ; 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 + "/20190331" ; if ( this . logger ) this . logger . info ( `AnalyticsClient 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 ( AnalyticsClient . 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 ( AnalyticsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new AnalyticsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeAnalyticsInstanceCompartmentRequest return throws example Click  https to see how to use ChangeAnalyticsInstanceCompartment API.
      public async changeAnalyticsInstanceCompartment ( changeAnalyticsInstanceCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#changeAnalyticsInstanceCompartment." ) ; const pathParams = { "{analyticsInstanceId}" : changeAnalyticsInstanceCompartmentRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeAnalyticsInstanceCompartmentRequest . ifMatch , "opc-request-id" : changeAnalyticsInstanceCompartmentRequest . opcRequestId , "opc-retry-token" : changeAnalyticsInstanceCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeAnalyticsInstanceCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeAnalyticsInstanceCompartmentRequest . changeCompartmentDetails , "ChangeCompartmentDetails" , model . ChangeCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeAnalyticsInstanceCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeAnalyticsInstanceNetworkEndpointRequest return throws example Click  https to see how to use ChangeAnalyticsInstanceNetworkEndpoint API.
      public async changeAnalyticsInstanceNetworkEndpoint ( changeAnalyticsInstanceNetworkEndpointRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#changeAnalyticsInstanceNetworkEndpoint." ) ; const pathParams = { "{analyticsInstanceId}" : changeAnalyticsInstanceNetworkEndpointRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeAnalyticsInstanceNetworkEndpointRequest . ifMatch , "opc-request-id" : changeAnalyticsInstanceNetworkEndpointRequest . opcRequestId , "opc-retry-token" : changeAnalyticsInstanceNetworkEndpointRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeAnalyticsInstanceNetworkEndpointRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/actions/changeNetworkEndpoint" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeAnalyticsInstanceNetworkEndpointRequest . changeAnalyticsInstanceNetworkEndpointDetails , "ChangeAnalyticsInstanceNetworkEndpointDetails" , model . ChangeAnalyticsInstanceNetworkEndpointDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeAnalyticsInstanceNetworkEndpointResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateAnalyticsInstanceRequest return throws example Click  https to see how to use CreateAnalyticsInstance API.
      public async createAnalyticsInstance ( createAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#createAnalyticsInstance." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createAnalyticsInstanceRequest . opcRequestId , "opc-retry-token" : createAnalyticsInstanceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createAnalyticsInstanceRequest . createAnalyticsInstanceDetails , "CreateAnalyticsInstanceDetails" , model . CreateAnalyticsInstanceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateAnalyticsInstanceResponse > { } , body : await response . json ( ) , bodyKey : "analyticsInstance" , bodyModel : model . AnalyticsInstance , type : "model.AnalyticsInstance" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreatePrivateAccessChannelRequest return throws example Click  https to see how to use CreatePrivateAccessChannel API.
      public async createPrivateAccessChannel ( createPrivateAccessChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#createPrivateAccessChannel." ) ; const pathParams = { "{analyticsInstanceId}" : createPrivateAccessChannelRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createPrivateAccessChannelRequest . opcRequestId , "opc-retry-token" : createPrivateAccessChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createPrivateAccessChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/privateAccessChannels" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createPrivateAccessChannelRequest . createPrivateAccessChannelDetails , "CreatePrivateAccessChannelDetails" , model . CreatePrivateAccessChannelDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreatePrivateAccessChannelResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateVanityUrlRequest return throws example Click  https to see how to use CreateVanityUrl API.
      public async createVanityUrl ( createVanityUrlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#createVanityUrl." ) ; const pathParams = { "{analyticsInstanceId}" : createVanityUrlRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createVanityUrlRequest . opcRequestId , "opc-retry-token" : createVanityUrlRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createVanityUrlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/vanityUrls" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createVanityUrlRequest . createVanityUrlDetails , "CreateVanityUrlDetails" , model . CreateVanityUrlDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateVanityUrlResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteAnalyticsInstanceRequest return throws example Click  https to see how to use DeleteAnalyticsInstance API.
      public async deleteAnalyticsInstance ( deleteAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#deleteAnalyticsInstance." ) ; const pathParams = { "{analyticsInstanceId}" : deleteAnalyticsInstanceRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteAnalyticsInstanceRequest . ifMatch , "opc-request-id" : deleteAnalyticsInstanceRequest . opcRequestId , "opc-retry-token" : deleteAnalyticsInstanceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteAnalyticsInstanceResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeletePrivateAccessChannelRequest return throws example Click  https to see how to use DeletePrivateAccessChannel API.
      public async deletePrivateAccessChannel ( deletePrivateAccessChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#deletePrivateAccessChannel." ) ; const pathParams = { "{privateAccessChannelKey}" : deletePrivateAccessChannelRequest . privateAccessChannelKey , "{analyticsInstanceId}" : deletePrivateAccessChannelRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deletePrivateAccessChannelRequest . ifMatch , "opc-request-id" : deletePrivateAccessChannelRequest . opcRequestId , "opc-retry-token" : deletePrivateAccessChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deletePrivateAccessChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/privateAccessChannels/{privateAccessChannelKey}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeletePrivateAccessChannelResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteVanityUrlRequest return throws example Click  https to see how to use DeleteVanityUrl API.
      public async deleteVanityUrl ( deleteVanityUrlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#deleteVanityUrl." ) ; const pathParams = { "{analyticsInstanceId}" : deleteVanityUrlRequest . analyticsInstanceId , "{vanityUrlKey}" : deleteVanityUrlRequest . vanityUrlKey } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteVanityUrlRequest . ifMatch , "opc-request-id" : deleteVanityUrlRequest . opcRequestId , "opc-retry-token" : deleteVanityUrlRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteVanityUrlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/vanityUrls/{vanityUrlKey}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteVanityUrlResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteWorkRequestRequest return throws example Click  https to see how to use DeleteWorkRequest API.
      public async deleteWorkRequest ( deleteWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#deleteWorkRequest." ) ; const pathParams = { "{workRequestId}" : deleteWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteWorkRequestRequest . ifMatch , "opc-request-id" : deleteWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteWorkRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetAnalyticsInstanceRequest return throws example Click  https to see how to use GetAnalyticsInstance API.
      public async getAnalyticsInstance ( getAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#getAnalyticsInstance." ) ; const pathParams = { "{analyticsInstanceId}" : getAnalyticsInstanceRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAnalyticsInstanceRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAnalyticsInstanceResponse > { } , body : await response . json ( ) , bodyKey : "analyticsInstance" , bodyModel : model . AnalyticsInstance , type : "model.AnalyticsInstance" , 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 GetPrivateAccessChannelRequest return throws example Click  https to see how to use GetPrivateAccessChannel API.
      public async getPrivateAccessChannel ( getPrivateAccessChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#getPrivateAccessChannel." ) ; const pathParams = { "{privateAccessChannelKey}" : getPrivateAccessChannelRequest . privateAccessChannelKey , "{analyticsInstanceId}" : getPrivateAccessChannelRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getPrivateAccessChannelRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPrivateAccessChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/privateAccessChannels/{privateAccessChannelKey}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPrivateAccessChannelResponse > { } , body : await response . json ( ) , bodyKey : "privateAccessChannel" , bodyModel : model . PrivateAccessChannel , type : "model.PrivateAccessChannel" , 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 GetWorkRequestRequest return throws example Click  https to see how to use GetWorkRequest API.
      public async getWorkRequest ( getWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListAnalyticsInstancesRequest return throws example Click  https to see how to use ListAnalyticsInstances API.
      public async listAnalyticsInstances ( listAnalyticsInstancesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#listAnalyticsInstances." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listAnalyticsInstancesRequest . compartmentId , "name" : listAnalyticsInstancesRequest . name , "capacityType" : listAnalyticsInstancesRequest . capacityType , "featureSet" : listAnalyticsInstancesRequest . featureSet , "lifecycleState" : listAnalyticsInstancesRequest . lifecycleState , "limit" : listAnalyticsInstancesRequest . limit , "page" : listAnalyticsInstancesRequest . page , "sortBy" : listAnalyticsInstancesRequest . sortBy , "sortOrder" : listAnalyticsInstancesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAnalyticsInstancesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAnalyticsInstancesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAnalyticsInstancesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . AnalyticsInstanceSummary , type : "Array<model.AnalyticsInstanceSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllAnalyticsInstances ( request ) { return paginateRecords ( request , req => this . listAnalyticsInstances ( req ) ) ; } param request public listAllAnalyticsInstancesResponses ( request ) { return paginateResponses ( request , req => this . listAnalyticsInstances ( req ) ) ; } param request public listAnalyticsInstancesRecordIterator ( request ) { return paginateRecords ( request , req => this . listAnalyticsInstances ( req ) ) ; } param request public listAnalyticsInstancesResponseIterator ( request ) { return paginateResponses ( request , req => this . listAnalyticsInstances ( req ) ) ; } param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "limit" : listWorkRequestErrorsRequest . limit , "page" : listWorkRequestErrorsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestErrorsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestErrorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/errors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestErrorsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequestError , type : "Array<model.WorkRequestError>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestErrors ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listAllWorkRequestErrorsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param ListWorkRequestLogsRequest return throws example Click  https to see how to use ListWorkRequestLogs API.
      public async listWorkRequestLogs ( listWorkRequestLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "limit" : listWorkRequestLogsRequest . limit , "page" : listWorkRequestLogsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestLogsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestLogsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/logs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestLogsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequestLog , type : "Array<model.WorkRequestLog>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestLogs ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listAllWorkRequestLogsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param ListWorkRequestsRequest return throws example Click  https to see how to use ListWorkRequests API.
      public async listWorkRequests ( listWorkRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "resourceId" : listWorkRequestsRequest . resourceId , "resourceType" : listWorkRequestsRequest . resourceType , "status" : listWorkRequestsRequest . status , "limit" : listWorkRequestsRequest . limit , "page" : listWorkRequestsRequest . page , "sortBy" : listWorkRequestsRequest . sortBy , "sortOrder" : listWorkRequestsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequestSummary , type : "Array<model.WorkRequestSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequests ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listAllWorkRequestsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param ScaleAnalyticsInstanceRequest return throws example Click  https to see how to use ScaleAnalyticsInstance API.
      public async scaleAnalyticsInstance ( scaleAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#scaleAnalyticsInstance." ) ; const pathParams = { "{analyticsInstanceId}" : scaleAnalyticsInstanceRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : scaleAnalyticsInstanceRequest . ifMatch , "opc-request-id" : scaleAnalyticsInstanceRequest . opcRequestId , "opc-retry-token" : scaleAnalyticsInstanceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scaleAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/actions/scale" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scaleAnalyticsInstanceRequest . scaleAnalyticsInstanceDetails , "ScaleAnalyticsInstanceDetails" , model . ScaleAnalyticsInstanceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScaleAnalyticsInstanceResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param StartAnalyticsInstanceRequest return throws example Click  https to see how to use StartAnalyticsInstance API.
      public async startAnalyticsInstance ( startAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#startAnalyticsInstance." ) ; const pathParams = { "{analyticsInstanceId}" : startAnalyticsInstanceRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : startAnalyticsInstanceRequest . ifMatch , "opc-request-id" : startAnalyticsInstanceRequest . opcRequestId , "opc-retry-token" : startAnalyticsInstanceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , startAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/actions/start" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StartAnalyticsInstanceResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param StopAnalyticsInstanceRequest return throws example Click  https to see how to use StopAnalyticsInstance API.
      public async stopAnalyticsInstance ( stopAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#stopAnalyticsInstance." ) ; const pathParams = { "{analyticsInstanceId}" : stopAnalyticsInstanceRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : stopAnalyticsInstanceRequest . ifMatch , "opc-request-id" : stopAnalyticsInstanceRequest . opcRequestId , "opc-retry-token" : stopAnalyticsInstanceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , stopAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/actions/stop" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StopAnalyticsInstanceResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateAnalyticsInstanceRequest return throws example Click  https to see how to use UpdateAnalyticsInstance API.
      public async updateAnalyticsInstance ( updateAnalyticsInstanceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#updateAnalyticsInstance." ) ; const pathParams = { "{analyticsInstanceId}" : updateAnalyticsInstanceRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateAnalyticsInstanceRequest . ifMatch , "opc-request-id" : updateAnalyticsInstanceRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateAnalyticsInstanceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateAnalyticsInstanceRequest . updateAnalyticsInstanceDetails , "UpdateAnalyticsInstanceDetails" , model . UpdateAnalyticsInstanceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateAnalyticsInstanceResponse > { } , body : await response . json ( ) , bodyKey : "analyticsInstance" , bodyModel : model . AnalyticsInstance , type : "model.AnalyticsInstance" , 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 UpdatePrivateAccessChannelRequest return throws example Click  https to see how to use UpdatePrivateAccessChannel API.
      public async updatePrivateAccessChannel ( updatePrivateAccessChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#updatePrivateAccessChannel." ) ; const pathParams = { "{privateAccessChannelKey}" : updatePrivateAccessChannelRequest . privateAccessChannelKey , "{analyticsInstanceId}" : updatePrivateAccessChannelRequest . analyticsInstanceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updatePrivateAccessChannelRequest . ifMatch , "opc-request-id" : updatePrivateAccessChannelRequest . opcRequestId , "opc-retry-token" : updatePrivateAccessChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updatePrivateAccessChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/privateAccessChannels/{privateAccessChannelKey}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updatePrivateAccessChannelRequest . updatePrivateAccessChannelDetails , "UpdatePrivateAccessChannelDetails" , model . UpdatePrivateAccessChannelDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdatePrivateAccessChannelResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateVanityUrlRequest return throws example Click  https to see how to use UpdateVanityUrl API.
      public async updateVanityUrl ( updateVanityUrlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AnalyticsClient#updateVanityUrl." ) ; const pathParams = { "{analyticsInstanceId}" : updateVanityUrlRequest . analyticsInstanceId , "{vanityUrlKey}" : updateVanityUrlRequest . vanityUrlKey } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateVanityUrlRequest . ifMatch , "opc-request-id" : updateVanityUrlRequest . opcRequestId , "opc-retry-token" : updateVanityUrlRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateVanityUrlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/analyticsInstances/{analyticsInstanceId}/vanityUrls/{vanityUrlKey}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateVanityUrlRequest . updateVanityUrlDetails , "UpdateVanityUrlDetails" , model . UpdateVanityUrlDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateVanityUrlResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }