/**
 * NetworkLoadBalancer API
 * This describes the network load balancer API.
 * OpenAPI spec version: 20200501
 *
 *
 * 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 { NetworkLoadBalancerWaiter } from "./networkloadbalancer-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum NetworkLoadBalancerApiKeys { } /**
 * 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 NetworkLoadBalancerClient { protected static serviceEndpointTemplate = "https://network-load-balancer-api.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : NetworkLoadBalancerWaiter ; 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 + "/20200501" ; if ( this . logger ) this . logger . info ( `NetworkLoadBalancerClient 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 ( NetworkLoadBalancerClient . 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 ( NetworkLoadBalancerClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new NetworkLoadBalancerWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeNetworkLoadBalancerCompartmentRequest return throws example Click  https to see how to use ChangeNetworkLoadBalancerCompartment API.
      public async changeNetworkLoadBalancerCompartment ( changeNetworkLoadBalancerCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#changeNetworkLoadBalancerCompartment." ) ; const pathParams = { "{networkLoadBalancerId}" : changeNetworkLoadBalancerCompartmentRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : changeNetworkLoadBalancerCompartmentRequest . opcRequestId , "opc-retry-token" : changeNetworkLoadBalancerCompartmentRequest . opcRetryToken , "if-match" : changeNetworkLoadBalancerCompartmentRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeNetworkLoadBalancerCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeNetworkLoadBalancerCompartmentRequest . changeNetworkLoadBalancerCompartmentDetails , "ChangeNetworkLoadBalancerCompartmentDetails" , model . ChangeNetworkLoadBalancerCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeNetworkLoadBalancerCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateBackendRequest return throws example Click  https to see how to use CreateBackend API.
      public async createBackend ( createBackendRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#createBackend." ) ; const pathParams = { "{networkLoadBalancerId}" : createBackendRequest . networkLoadBalancerId , "{backendSetName}" : createBackendRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createBackendRequest . opcRequestId , "opc-retry-token" : createBackendRequest . opcRetryToken , "if-match" : createBackendRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBackendRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBackendRequest . createBackendDetails , "CreateBackendDetails" , model . CreateBackendDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBackendResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateBackendSetRequest return throws example Click  https to see how to use CreateBackendSet API.
      public async createBackendSet ( createBackendSetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#createBackendSet." ) ; const pathParams = { "{networkLoadBalancerId}" : createBackendSetRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createBackendSetRequest . opcRequestId , "opc-retry-token" : createBackendSetRequest . opcRetryToken , "if-match" : createBackendSetRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBackendSetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBackendSetRequest . createBackendSetDetails , "CreateBackendSetDetails" , model . CreateBackendSetDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBackendSetResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateListenerRequest return throws example Click  https to see how to use CreateListener API.
      public async createListener ( createListenerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#createListener." ) ; const pathParams = { "{networkLoadBalancerId}" : createListenerRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createListenerRequest . opcRequestId , "opc-retry-token" : createListenerRequest . opcRetryToken , "if-match" : createListenerRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createListenerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/listeners" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createListenerRequest . createListenerDetails , "CreateListenerDetails" , model . CreateListenerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateListenerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { 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 CreateNetworkLoadBalancerRequest return throws example Click  https to see how to use CreateNetworkLoadBalancer API.
      public async createNetworkLoadBalancer ( createNetworkLoadBalancerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#createNetworkLoadBalancer." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createNetworkLoadBalancerRequest . opcRetryToken , "opc-request-id" : createNetworkLoadBalancerRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createNetworkLoadBalancerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createNetworkLoadBalancerRequest . createNetworkLoadBalancerDetails , "CreateNetworkLoadBalancerDetails" , model . CreateNetworkLoadBalancerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateNetworkLoadBalancerResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancer" , bodyModel : model . NetworkLoadBalancer , type : "model.NetworkLoadBalancer" , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { 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 DeleteBackendRequest return throws example Click  https to see how to use DeleteBackend API.
      public async deleteBackend ( deleteBackendRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#deleteBackend." ) ; const pathParams = { "{networkLoadBalancerId}" : deleteBackendRequest . networkLoadBalancerId , "{backendSetName}" : deleteBackendRequest . backendSetName , "{backendName}" : deleteBackendRequest . backendName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteBackendRequest . opcRequestId , "if-match" : deleteBackendRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBackendRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBackendResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteBackendSetRequest return throws example Click  https to see how to use DeleteBackendSet API.
        public async deleteBackendSet ( deleteBackendSetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#deleteBackendSet." ) ; const pathParams = { "{networkLoadBalancerId}" : deleteBackendSetRequest . networkLoadBalancerId , "{backendSetName}" : deleteBackendSetRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteBackendSetRequest . opcRequestId , "if-match" : deleteBackendSetRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBackendSetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBackendSetResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteListenerRequest return throws example Click  https to see how to use DeleteListener API.
      public async deleteListener ( deleteListenerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#deleteListener." ) ; const pathParams = { "{networkLoadBalancerId}" : deleteListenerRequest . networkLoadBalancerId , "{listenerName}" : deleteListenerRequest . listenerName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteListenerRequest . opcRequestId , "if-match" : deleteListenerRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteListenerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteListenerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { 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 DeleteNetworkLoadBalancerRequest return throws example Click  https to see how to use DeleteNetworkLoadBalancer API.
      public async deleteNetworkLoadBalancer ( deleteNetworkLoadBalancerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#deleteNetworkLoadBalancer." ) ; const pathParams = { "{networkLoadBalancerId}" : deleteNetworkLoadBalancerRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteNetworkLoadBalancerRequest . ifMatch , "opc-request-id" : deleteNetworkLoadBalancerRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteNetworkLoadBalancerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteNetworkLoadBalancerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetBackendRequest return throws example Click  https to see how to use GetBackend API.
      public async getBackend ( getBackendRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getBackend." ) ; const pathParams = { "{networkLoadBalancerId}" : getBackendRequest . networkLoadBalancerId , "{backendSetName}" : getBackendRequest . backendSetName , "{backendName}" : getBackendRequest . backendName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBackendRequest . opcRequestId , "if-none-match" : getBackendRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBackendRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBackendResponse > { } , body : await response . json ( ) , bodyKey : "backend" , bodyModel : model . Backend , type : "model.Backend" , 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 GetBackendHealthRequest return throws example Click  https to see how to use GetBackendHealth API.
      public async getBackendHealth ( getBackendHealthRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getBackendHealth." ) ; const pathParams = { "{networkLoadBalancerId}" : getBackendHealthRequest . networkLoadBalancerId , "{backendSetName}" : getBackendHealthRequest . backendSetName , "{backendName}" : getBackendHealthRequest . backendName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBackendHealthRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBackendHealthRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBackendHealthResponse > { } , body : await response . json ( ) , bodyKey : "backendHealth" , bodyModel : model . BackendHealth , type : "model.BackendHealth" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetBackendSetRequest return throws example Click  https to see how to use GetBackendSet API.
      public async getBackendSet ( getBackendSetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getBackendSet." ) ; const pathParams = { "{networkLoadBalancerId}" : getBackendSetRequest . networkLoadBalancerId , "{backendSetName}" : getBackendSetRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBackendSetRequest . opcRequestId , "if-none-match" : getBackendSetRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBackendSetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBackendSetResponse > { } , body : await response . json ( ) , bodyKey : "backendSet" , bodyModel : model . BackendSet , type : "model.BackendSet" , 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 GetBackendSetHealthRequest return throws example Click  https to see how to use GetBackendSetHealth API.
      public async getBackendSetHealth ( getBackendSetHealthRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getBackendSetHealth." ) ; const pathParams = { "{networkLoadBalancerId}" : getBackendSetHealthRequest . networkLoadBalancerId , "{backendSetName}" : getBackendSetHealthRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBackendSetHealthRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBackendSetHealthRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/health" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBackendSetHealthResponse > { } , body : await response . json ( ) , bodyKey : "backendSetHealth" , bodyModel : model . BackendSetHealth , type : "model.BackendSetHealth" , 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 GetHealthCheckerRequest return throws example Click  https to see how to use GetHealthChecker API.
      public async getHealthChecker ( getHealthCheckerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getHealthChecker." ) ; const pathParams = { "{networkLoadBalancerId}" : getHealthCheckerRequest . networkLoadBalancerId , "{backendSetName}" : getHealthCheckerRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getHealthCheckerRequest . opcRequestId , "opc-retry-token" : getHealthCheckerRequest . opcRetryToken , "if-none-match" : getHealthCheckerRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getHealthCheckerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/healthChecker" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetHealthCheckerResponse > { } , body : await response . json ( ) , bodyKey : "healthChecker" , bodyModel : model . HealthChecker , type : "model.HealthChecker" , 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 GetListenerRequest return throws example Click  https to see how to use GetListener API.
      public async getListener ( getListenerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getListener." ) ; const pathParams = { "{networkLoadBalancerId}" : getListenerRequest . networkLoadBalancerId , "{listenerName}" : getListenerRequest . listenerName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getListenerRequest . opcRequestId , "if-none-match" : getListenerRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getListenerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetListenerResponse > { } , body : await response . json ( ) , bodyKey : "listener" , bodyModel : model . Listener , type : "model.Listener" , 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 GetNetworkLoadBalancerRequest return throws example Click  https to see how to use GetNetworkLoadBalancer API.
      public async getNetworkLoadBalancer ( getNetworkLoadBalancerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getNetworkLoadBalancer." ) ; const pathParams = { "{networkLoadBalancerId}" : getNetworkLoadBalancerRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-none-match" : getNetworkLoadBalancerRequest . ifNoneMatch , "opc-request-id" : getNetworkLoadBalancerRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getNetworkLoadBalancerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetNetworkLoadBalancerResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancer" , bodyModel : model . NetworkLoadBalancer , type : "model.NetworkLoadBalancer" , 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 GetNetworkLoadBalancerHealthRequest return throws example Click  https to see how to use GetNetworkLoadBalancerHealth API.
      public async getNetworkLoadBalancerHealth ( getNetworkLoadBalancerHealthRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#getNetworkLoadBalancerHealth." ) ; const pathParams = { "{networkLoadBalancerId}" : getNetworkLoadBalancerHealthRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getNetworkLoadBalancerHealthRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getNetworkLoadBalancerHealthRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/health" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetNetworkLoadBalancerHealthResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancerHealth" , bodyModel : model . NetworkLoadBalancerHealth , type : "model.NetworkLoadBalancerHealth" , responseHeaders : [ { 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 NetworkLoadBalancerClient#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 ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListBackendSetsRequest return throws example Click  https to see how to use ListBackendSets API.
      public async listBackendSets ( listBackendSetsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listBackendSets." ) ; const pathParams = { "{networkLoadBalancerId}" : listBackendSetsRequest . networkLoadBalancerId } ; const queryParams = { "limit" : listBackendSetsRequest . limit , "page" : listBackendSetsRequest . page , "sortOrder" : listBackendSetsRequest . sortOrder , "sortBy" : listBackendSetsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBackendSetsRequest . opcRequestId , "if-none-match" : listBackendSetsRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBackendSetsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBackendSetsResponse > { } , body : await response . json ( ) , bodyKey : "backendSetCollection" , bodyModel : model . BackendSetCollection , type : "model.BackendSetCollection" , 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 ListBackendsRequest return throws example Click  https to see how to use ListBackends API.
      public async listBackends ( listBackendsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listBackends." ) ; const pathParams = { "{networkLoadBalancerId}" : listBackendsRequest . networkLoadBalancerId , "{backendSetName}" : listBackendsRequest . backendSetName } ; const queryParams = { "limit" : listBackendsRequest . limit , "page" : listBackendsRequest . page , "sortOrder" : listBackendsRequest . sortOrder , "sortBy" : listBackendsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBackendsRequest . opcRequestId , "if-none-match" : listBackendsRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBackendsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBackendsResponse > { } , body : await response . json ( ) , bodyKey : "backendCollection" , bodyModel : model . BackendCollection , type : "model.BackendCollection" , 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 ListListenersRequest return throws example Click  https to see how to use ListListeners API.
      public async listListeners ( listListenersRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listListeners." ) ; const pathParams = { "{networkLoadBalancerId}" : listListenersRequest . networkLoadBalancerId } ; const queryParams = { "limit" : listListenersRequest . limit , "page" : listListenersRequest . page , "sortOrder" : listListenersRequest . sortOrder , "sortBy" : listListenersRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listListenersRequest . opcRequestId , "if-none-match" : listListenersRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listListenersRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/listeners" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListListenersResponse > { } , body : await response . json ( ) , bodyKey : "listenerCollection" , bodyModel : model . ListenerCollection , type : "model.ListenerCollection" , 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 ListNetworkLoadBalancerHealthsRequest return throws example Click  https to see how to use ListNetworkLoadBalancerHealths API.
      public async listNetworkLoadBalancerHealths ( listNetworkLoadBalancerHealthsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listNetworkLoadBalancerHealths." ) ; const pathParams = { } ; const queryParams = { "sortOrder" : listNetworkLoadBalancerHealthsRequest . sortOrder , "sortBy" : listNetworkLoadBalancerHealthsRequest . sortBy , "compartmentId" : listNetworkLoadBalancerHealthsRequest . compartmentId , "limit" : listNetworkLoadBalancerHealthsRequest . limit , "page" : listNetworkLoadBalancerHealthsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listNetworkLoadBalancerHealthsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listNetworkLoadBalancerHealthsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/health" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListNetworkLoadBalancerHealthsResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancerHealthCollection" , bodyModel : model . NetworkLoadBalancerHealthCollection , type : "model.NetworkLoadBalancerHealthCollection" , 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 ListNetworkLoadBalancersRequest return throws example Click  https to see how to use ListNetworkLoadBalancers API.
      public async listNetworkLoadBalancers ( listNetworkLoadBalancersRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listNetworkLoadBalancers." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listNetworkLoadBalancersRequest . compartmentId , "lifecycleState" : listNetworkLoadBalancersRequest . lifecycleState , "displayName" : listNetworkLoadBalancersRequest . displayName , "limit" : listNetworkLoadBalancersRequest . limit , "page" : listNetworkLoadBalancersRequest . page , "sortOrder" : listNetworkLoadBalancersRequest . sortOrder , "sortBy" : listNetworkLoadBalancersRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listNetworkLoadBalancersRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listNetworkLoadBalancersRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListNetworkLoadBalancersResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancerCollection" , bodyModel : model . NetworkLoadBalancerCollection , type : "model.NetworkLoadBalancerCollection" , 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 ListNetworkLoadBalancersPoliciesRequest return throws example Click  https to see how to use ListNetworkLoadBalancersPolicies API.
      public async listNetworkLoadBalancersPolicies ( listNetworkLoadBalancersPoliciesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listNetworkLoadBalancersPolicies." ) ; const pathParams = { } ; const queryParams = { "limit" : listNetworkLoadBalancersPoliciesRequest . limit , "page" : listNetworkLoadBalancersPoliciesRequest . page , "sortOrder" : listNetworkLoadBalancersPoliciesRequest . sortOrder , "sortBy" : listNetworkLoadBalancersPoliciesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listNetworkLoadBalancersPoliciesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listNetworkLoadBalancersPoliciesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancersPolicies" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListNetworkLoadBalancersPoliciesResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancersPolicyCollection" , bodyModel : model . NetworkLoadBalancersPolicyCollection , type : "model.NetworkLoadBalancersPolicyCollection" , 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 ListNetworkLoadBalancersProtocolsRequest return throws example Click  https to see how to use ListNetworkLoadBalancersProtocols API.
      public async listNetworkLoadBalancersProtocols ( listNetworkLoadBalancersProtocolsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#listNetworkLoadBalancersProtocols." ) ; const pathParams = { } ; const queryParams = { "limit" : listNetworkLoadBalancersProtocolsRequest . limit , "page" : listNetworkLoadBalancersProtocolsRequest . page , "sortOrder" : listNetworkLoadBalancersProtocolsRequest . sortOrder , "sortBy" : listNetworkLoadBalancersProtocolsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listNetworkLoadBalancersProtocolsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listNetworkLoadBalancersProtocolsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancersProtocols" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListNetworkLoadBalancersProtocolsResponse > { } , body : await response . json ( ) , bodyKey : "networkLoadBalancersProtocolCollection" , bodyModel : model . NetworkLoadBalancersProtocolCollection , type : "model.NetworkLoadBalancersProtocolCollection" , 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 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 NetworkLoadBalancerClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "compartmentId" : listWorkRequestErrorsRequest . compartmentId , "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit } ; 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 : "workRequestErrorCollection" , bodyModel : model . WorkRequestErrorCollection , type : "model.WorkRequestErrorCollection" , 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 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 NetworkLoadBalancerClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "compartmentId" : listWorkRequestLogsRequest . compartmentId , "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit } ; 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 : "workRequestLogEntryCollection" , bodyModel : model . WorkRequestLogEntryCollection , type : "model.WorkRequestLogEntryCollection" , 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 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 NetworkLoadBalancerClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "limit" : listWorkRequestsRequest . limit , "page" : listWorkRequestsRequest . page } ; 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 : "workRequestCollection" , bodyModel : model . WorkRequestCollection , type : "model.WorkRequestCollection" , 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 UpdateBackendRequest return throws example Click  https to see how to use UpdateBackend API.
      public async updateBackend ( updateBackendRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#updateBackend." ) ; const pathParams = { "{networkLoadBalancerId}" : updateBackendRequest . networkLoadBalancerId , "{backendSetName}" : updateBackendRequest . backendSetName , "{backendName}" : updateBackendRequest . backendName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateBackendRequest . opcRequestId , "opc-retry-token" : updateBackendRequest . opcRetryToken , "if-match" : updateBackendRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBackendRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBackendRequest . updateBackendDetails , "UpdateBackendDetails" , model . UpdateBackendDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBackendResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateBackendSetRequest return throws example Click  https to see how to use UpdateBackendSet API.
      public async updateBackendSet ( updateBackendSetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#updateBackendSet." ) ; const pathParams = { "{networkLoadBalancerId}" : updateBackendSetRequest . networkLoadBalancerId , "{backendSetName}" : updateBackendSetRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateBackendSetRequest . opcRequestId , "opc-retry-token" : updateBackendSetRequest . opcRetryToken , "if-match" : updateBackendSetRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBackendSetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBackendSetRequest . updateBackendSetDetails , "UpdateBackendSetDetails" , model . UpdateBackendSetDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBackendSetResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateHealthCheckerRequest return throws example Click  https to see how to use UpdateHealthChecker API.
      public async updateHealthChecker ( updateHealthCheckerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#updateHealthChecker." ) ; const pathParams = { "{networkLoadBalancerId}" : updateHealthCheckerRequest . networkLoadBalancerId , "{backendSetName}" : updateHealthCheckerRequest . backendSetName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateHealthCheckerRequest . opcRequestId , "opc-retry-token" : updateHealthCheckerRequest . opcRetryToken , "if-match" : updateHealthCheckerRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateHealthCheckerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/healthChecker" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateHealthCheckerRequest . updateHealthCheckerDetails , "UpdateHealthCheckerDetails" , model . UpdateHealthCheckerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateHealthCheckerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateListenerRequest return throws example Click  https to see how to use UpdateListener API.
      public async updateListener ( updateListenerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#updateListener." ) ; const pathParams = { "{networkLoadBalancerId}" : updateListenerRequest . networkLoadBalancerId , "{listenerName}" : updateListenerRequest . listenerName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateListenerRequest . opcRequestId , "opc-retry-token" : updateListenerRequest . opcRetryToken , "if-match" : updateListenerRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateListenerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateListenerRequest . updateListenerDetails , "UpdateListenerDetails" , model . UpdateListenerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateListenerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateNetworkLoadBalancerRequest return throws example Click  https to see how to use UpdateNetworkLoadBalancer API.
      public async updateNetworkLoadBalancer ( updateNetworkLoadBalancerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#updateNetworkLoadBalancer." ) ; const pathParams = { "{networkLoadBalancerId}" : updateNetworkLoadBalancerRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateNetworkLoadBalancerRequest . ifMatch , "opc-request-id" : updateNetworkLoadBalancerRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateNetworkLoadBalancerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateNetworkLoadBalancerRequest . updateNetworkLoadBalancerDetails , "UpdateNetworkLoadBalancerDetails" , model . UpdateNetworkLoadBalancerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateNetworkLoadBalancerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateNetworkSecurityGroupsRequest return throws example Click  https to see how to use UpdateNetworkSecurityGroups API.
      public async updateNetworkSecurityGroups ( updateNetworkSecurityGroupsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation NetworkLoadBalancerClient#updateNetworkSecurityGroups." ) ; const pathParams = { "{networkLoadBalancerId}" : updateNetworkSecurityGroupsRequest . networkLoadBalancerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateNetworkSecurityGroupsRequest . opcRequestId , "opc-retry-token" : updateNetworkSecurityGroupsRequest . opcRetryToken , "if-match" : updateNetworkSecurityGroupsRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateNetworkSecurityGroupsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkLoadBalancers/{networkLoadBalancerId}/networkSecurityGroups" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateNetworkSecurityGroupsRequest . updateNetworkSecurityGroupsDetails , "UpdateNetworkSecurityGroupsDetails" , model . UpdateNetworkSecurityGroupsDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateNetworkSecurityGroupsResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }