/**
 * Web Application Firewall (WAF) API
 * API for the Web Application Firewall service.
Use this API to manage regional Web App Firewalls and corresponding policies for protecting HTTP services.

 * OpenAPI spec version: 20210930
 *
 *
 * 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 { WafWaiter } from "./waf-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum WafApiKeys { } /**
 * 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 WafClient { protected static serviceEndpointTemplate = "https://waf.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : WafWaiter ; 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 + "/20210930" ; if ( this . logger ) this . logger . info ( `WafClient 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 ( WafClient . 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 ( WafClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new WafWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeNetworkAddressListCompartmentRequest return throws example Click  https to see how to use ChangeNetworkAddressListCompartment API.
      public async changeNetworkAddressListCompartment ( changeNetworkAddressListCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#changeNetworkAddressListCompartment." ) ; const pathParams = { "{networkAddressListId}" : changeNetworkAddressListCompartmentRequest . networkAddressListId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeNetworkAddressListCompartmentRequest . ifMatch , "opc-request-id" : changeNetworkAddressListCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeNetworkAddressListCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkAddressLists/{networkAddressListId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeNetworkAddressListCompartmentRequest . changeNetworkAddressListCompartmentDetails , "ChangeNetworkAddressListCompartmentDetails" , model . ChangeNetworkAddressListCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeNetworkAddressListCompartmentResponse > { } , 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 ChangeWebAppFirewallCompartmentRequest return throws example Click  https to see how to use ChangeWebAppFirewallCompartment API.
      public async changeWebAppFirewallCompartment ( changeWebAppFirewallCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#changeWebAppFirewallCompartment." ) ; const pathParams = { "{webAppFirewallId}" : changeWebAppFirewallCompartmentRequest . webAppFirewallId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeWebAppFirewallCompartmentRequest . ifMatch , "opc-request-id" : changeWebAppFirewallCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeWebAppFirewallCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewalls/{webAppFirewallId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeWebAppFirewallCompartmentRequest . changeWebAppFirewallCompartmentDetails , "ChangeWebAppFirewallCompartmentDetails" , model . ChangeWebAppFirewallCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeWebAppFirewallCompartmentResponse > { } , 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 ChangeWebAppFirewallPolicyCompartmentRequest return throws example Click  https to see how to use ChangeWebAppFirewallPolicyCompartment API.
      public async changeWebAppFirewallPolicyCompartment ( changeWebAppFirewallPolicyCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#changeWebAppFirewallPolicyCompartment." ) ; const pathParams = { "{webAppFirewallPolicyId}" : changeWebAppFirewallPolicyCompartmentRequest . webAppFirewallPolicyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeWebAppFirewallPolicyCompartmentRequest . ifMatch , "opc-request-id" : changeWebAppFirewallPolicyCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeWebAppFirewallPolicyCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewallPolicies/{webAppFirewallPolicyId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeWebAppFirewallPolicyCompartmentRequest . changeWebAppFirewallPolicyCompartmentDetails , "ChangeWebAppFirewallPolicyCompartmentDetails" , model . ChangeWebAppFirewallPolicyCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeWebAppFirewallPolicyCompartmentResponse > { } , 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 CreateNetworkAddressListRequest return throws example Click  https to see how to use CreateNetworkAddressList API.
      public async createNetworkAddressList ( createNetworkAddressListRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#createNetworkAddressList." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createNetworkAddressListRequest . opcRetryToken , "opc-request-id" : createNetworkAddressListRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createNetworkAddressListRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkAddressLists" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createNetworkAddressListRequest . createNetworkAddressListDetails , "CreateNetworkAddressListDetails" , model . CreateNetworkAddressListDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateNetworkAddressListResponse > { } , body : await response . json ( ) , bodyKey : "networkAddressList" , bodyModel : model . NetworkAddressList , type : "model.NetworkAddressList" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { 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 ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "content-location" ) , key : "contentLocation" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateWebAppFirewallRequest return throws example Click  https to see how to use CreateWebAppFirewall API.
      public async createWebAppFirewall ( createWebAppFirewallRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#createWebAppFirewall." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createWebAppFirewallRequest . opcRetryToken , "opc-request-id" : createWebAppFirewallRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createWebAppFirewallRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewalls" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createWebAppFirewallRequest . createWebAppFirewallDetails , "CreateWebAppFirewallDetails" , model . CreateWebAppFirewallDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateWebAppFirewallResponse > { } , body : await response . json ( ) , bodyKey : "webAppFirewall" , bodyModel : model . WebAppFirewall , type : "model.WebAppFirewall" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { 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 ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "content-location" ) , key : "contentLocation" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateWebAppFirewallPolicyRequest return throws example Click  https to see how to use CreateWebAppFirewallPolicy API.
      public async createWebAppFirewallPolicy ( createWebAppFirewallPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#createWebAppFirewallPolicy." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createWebAppFirewallPolicyRequest . opcRetryToken , "opc-request-id" : createWebAppFirewallPolicyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createWebAppFirewallPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewallPolicies" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createWebAppFirewallPolicyRequest . createWebAppFirewallPolicyDetails , "CreateWebAppFirewallPolicyDetails" , model . CreateWebAppFirewallPolicyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateWebAppFirewallPolicyResponse > { } , body : await response . json ( ) , bodyKey : "webAppFirewallPolicy" , bodyModel : model . WebAppFirewallPolicy , type : "model.WebAppFirewallPolicy" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { 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 ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "content-location" ) , key : "contentLocation" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteNetworkAddressListRequest return throws example Click  https to see how to use DeleteNetworkAddressList API.
      public async deleteNetworkAddressList ( deleteNetworkAddressListRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#deleteNetworkAddressList." ) ; const pathParams = { "{networkAddressListId}" : deleteNetworkAddressListRequest . networkAddressListId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteNetworkAddressListRequest . ifMatch , "opc-request-id" : deleteNetworkAddressListRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteNetworkAddressListRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkAddressLists/{networkAddressListId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteNetworkAddressListResponse > { } , 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 DeleteWebAppFirewallRequest return throws example Click  https to see how to use DeleteWebAppFirewall API.
      public async deleteWebAppFirewall ( deleteWebAppFirewallRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#deleteWebAppFirewall." ) ; const pathParams = { "{webAppFirewallId}" : deleteWebAppFirewallRequest . webAppFirewallId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteWebAppFirewallRequest . ifMatch , "opc-request-id" : deleteWebAppFirewallRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteWebAppFirewallRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewalls/{webAppFirewallId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteWebAppFirewallResponse > { } , 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 DeleteWebAppFirewallPolicyRequest return throws example Click  https to see how to use DeleteWebAppFirewallPolicy API.
      public async deleteWebAppFirewallPolicy ( deleteWebAppFirewallPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#deleteWebAppFirewallPolicy." ) ; const pathParams = { "{webAppFirewallPolicyId}" : deleteWebAppFirewallPolicyRequest . webAppFirewallPolicyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteWebAppFirewallPolicyRequest . ifMatch , "opc-request-id" : deleteWebAppFirewallPolicyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteWebAppFirewallPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewallPolicies/{webAppFirewallPolicyId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteWebAppFirewallPolicyResponse > { } , 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 GetNetworkAddressListRequest return throws example Click  https to see how to use GetNetworkAddressList API.
      public async getNetworkAddressList ( getNetworkAddressListRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#getNetworkAddressList." ) ; const pathParams = { "{networkAddressListId}" : getNetworkAddressListRequest . networkAddressListId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getNetworkAddressListRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getNetworkAddressListRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkAddressLists/{networkAddressListId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetNetworkAddressListResponse > { } , body : await response . json ( ) , bodyKey : "networkAddressList" , bodyModel : model . NetworkAddressList , type : "model.NetworkAddressList" , 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 GetWebAppFirewallRequest return throws example Click  https to see how to use GetWebAppFirewall API.
      public async getWebAppFirewall ( getWebAppFirewallRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#getWebAppFirewall." ) ; const pathParams = { "{webAppFirewallId}" : getWebAppFirewallRequest . webAppFirewallId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWebAppFirewallRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWebAppFirewallRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewalls/{webAppFirewallId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWebAppFirewallResponse > { } , body : await response . json ( ) , bodyKey : "webAppFirewall" , bodyModel : model . WebAppFirewall , type : "model.WebAppFirewall" , 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 GetWebAppFirewallPolicyRequest return throws example Click  https to see how to use GetWebAppFirewallPolicy API.
      public async getWebAppFirewallPolicy ( getWebAppFirewallPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#getWebAppFirewallPolicy." ) ; const pathParams = { "{webAppFirewallPolicyId}" : getWebAppFirewallPolicyRequest . webAppFirewallPolicyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWebAppFirewallPolicyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWebAppFirewallPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewallPolicies/{webAppFirewallPolicyId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWebAppFirewallPolicyResponse > { } , body : await response . json ( ) , bodyKey : "webAppFirewallPolicy" , bodyModel : model . WebAppFirewallPolicy , type : "model.WebAppFirewallPolicy" , 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 WafClient#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 ListNetworkAddressListsRequest return throws example Click  https to see how to use ListNetworkAddressLists API.
      public async listNetworkAddressLists ( listNetworkAddressListsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#listNetworkAddressLists." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listNetworkAddressListsRequest . compartmentId , "lifecycleState" : listNetworkAddressListsRequest . lifecycleState , "displayName" : listNetworkAddressListsRequest . displayName , "id" : listNetworkAddressListsRequest . id , "limit" : listNetworkAddressListsRequest . limit , "page" : listNetworkAddressListsRequest . page , "sortOrder" : listNetworkAddressListsRequest . sortOrder , "sortBy" : listNetworkAddressListsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listNetworkAddressListsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listNetworkAddressListsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkAddressLists" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListNetworkAddressListsResponse > { } , body : await response . json ( ) , bodyKey : "networkAddressListCollection" , bodyModel : model . NetworkAddressListCollection , type : "model.NetworkAddressListCollection" , 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 ListProtectionCapabilitiesRequest return throws example Click  https to see how to use ListProtectionCapabilities API.
      public async listProtectionCapabilities ( listProtectionCapabilitiesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#listProtectionCapabilities." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listProtectionCapabilitiesRequest . compartmentId , "page" : listProtectionCapabilitiesRequest . page , "limit" : listProtectionCapabilitiesRequest . limit , "key" : listProtectionCapabilitiesRequest . key , "isLatestVersion" : listProtectionCapabilitiesRequest . isLatestVersion , "type" : listProtectionCapabilitiesRequest . type , "groupTag" : listProtectionCapabilitiesRequest . groupTag , "displayName" : listProtectionCapabilitiesRequest . displayName , "sortOrder" : listProtectionCapabilitiesRequest . sortOrder , "sortBy" : listProtectionCapabilitiesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listProtectionCapabilitiesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listProtectionCapabilitiesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/protectionCapabilities" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListProtectionCapabilitiesResponse > { } , body : await response . json ( ) , bodyKey : "protectionCapabilityCollection" , bodyModel : model . ProtectionCapabilityCollection , type : "model.ProtectionCapabilityCollection" , 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 ListProtectionCapabilityGroupTagsRequest return throws example Click  https to see how to use ListProtectionCapabilityGroupTags API.
      public async listProtectionCapabilityGroupTags ( listProtectionCapabilityGroupTagsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#listProtectionCapabilityGroupTags." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listProtectionCapabilityGroupTagsRequest . compartmentId , "page" : listProtectionCapabilityGroupTagsRequest . page , "limit" : listProtectionCapabilityGroupTagsRequest . limit , "type" : listProtectionCapabilityGroupTagsRequest . type , "sortOrder" : listProtectionCapabilityGroupTagsRequest . sortOrder , "sortBy" : listProtectionCapabilityGroupTagsRequest . sortBy , "name" : listProtectionCapabilityGroupTagsRequest . name } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listProtectionCapabilityGroupTagsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listProtectionCapabilityGroupTagsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/protectionCapabilities/groupTags" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListProtectionCapabilityGroupTagsResponse > { } , body : await response . json ( ) , bodyKey : "protectionCapabilityGroupTagCollection" , bodyModel : model . ProtectionCapabilityGroupTagCollection , type : "model.ProtectionCapabilityGroupTagCollection" , 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 ListWebAppFirewallPoliciesRequest return throws example Click  https to see how to use ListWebAppFirewallPolicies API.
      public async listWebAppFirewallPolicies ( listWebAppFirewallPoliciesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#listWebAppFirewallPolicies." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWebAppFirewallPoliciesRequest . compartmentId , "lifecycleState" : listWebAppFirewallPoliciesRequest . lifecycleState , "displayName" : listWebAppFirewallPoliciesRequest . displayName , "id" : listWebAppFirewallPoliciesRequest . id , "limit" : listWebAppFirewallPoliciesRequest . limit , "page" : listWebAppFirewallPoliciesRequest . page , "sortOrder" : listWebAppFirewallPoliciesRequest . sortOrder , "sortBy" : listWebAppFirewallPoliciesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWebAppFirewallPoliciesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWebAppFirewallPoliciesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewallPolicies" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWebAppFirewallPoliciesResponse > { } , body : await response . json ( ) , bodyKey : "webAppFirewallPolicyCollection" , bodyModel : model . WebAppFirewallPolicyCollection , type : "model.WebAppFirewallPolicyCollection" , 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 ListWebAppFirewallsRequest return throws example Click  https to see how to use ListWebAppFirewalls API.
      public async listWebAppFirewalls ( listWebAppFirewallsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#listWebAppFirewalls." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWebAppFirewallsRequest . compartmentId , "id" : listWebAppFirewallsRequest . id , "webAppFirewallPolicyId" : listWebAppFirewallsRequest . webAppFirewallPolicyId , "lifecycleState" : listWebAppFirewallsRequest . lifecycleState , "displayName" : listWebAppFirewallsRequest . displayName , "limit" : listWebAppFirewallsRequest . limit , "page" : listWebAppFirewallsRequest . page , "sortOrder" : listWebAppFirewallsRequest . sortOrder , "sortBy" : listWebAppFirewallsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWebAppFirewallsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWebAppFirewallsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewalls" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWebAppFirewallsResponse > { } , body : await response . json ( ) , bodyKey : "webAppFirewallCollection" , bodyModel : model . WebAppFirewallCollection , type : "model.WebAppFirewallCollection" , 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 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 WafClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "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 WafClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "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 WafClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "workRequestId" : listWorkRequestsRequest . workRequestId , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit } ; 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-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateNetworkAddressListRequest return throws example Click  https to see how to use UpdateNetworkAddressList API.
      public async updateNetworkAddressList ( updateNetworkAddressListRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#updateNetworkAddressList." ) ; const pathParams = { "{networkAddressListId}" : updateNetworkAddressListRequest . networkAddressListId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateNetworkAddressListRequest . ifMatch , "opc-request-id" : updateNetworkAddressListRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateNetworkAddressListRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/networkAddressLists/{networkAddressListId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateNetworkAddressListRequest . updateNetworkAddressListDetails , "UpdateNetworkAddressListDetails" , model . UpdateNetworkAddressListDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateNetworkAddressListResponse > { } , 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 UpdateWebAppFirewallRequest return throws example Click  https to see how to use UpdateWebAppFirewall API.
      public async updateWebAppFirewall ( updateWebAppFirewallRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#updateWebAppFirewall." ) ; const pathParams = { "{webAppFirewallId}" : updateWebAppFirewallRequest . webAppFirewallId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateWebAppFirewallRequest . ifMatch , "opc-request-id" : updateWebAppFirewallRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateWebAppFirewallRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewalls/{webAppFirewallId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateWebAppFirewallRequest . updateWebAppFirewallDetails , "UpdateWebAppFirewallDetails" , model . UpdateWebAppFirewallDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateWebAppFirewallResponse > { } , 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 UpdateWebAppFirewallPolicyRequest return throws example Click  https to see how to use UpdateWebAppFirewallPolicy API.
      public async updateWebAppFirewallPolicy ( updateWebAppFirewallPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WafClient#updateWebAppFirewallPolicy." ) ; const pathParams = { "{webAppFirewallPolicyId}" : updateWebAppFirewallPolicyRequest . webAppFirewallPolicyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateWebAppFirewallPolicyRequest . ifMatch , "opc-request-id" : updateWebAppFirewallPolicyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateWebAppFirewallPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/webAppFirewallPolicies/{webAppFirewallPolicyId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateWebAppFirewallPolicyRequest . updateWebAppFirewallPolicyDetails , "UpdateWebAppFirewallPolicyDetails" , model . UpdateWebAppFirewallPolicyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateWebAppFirewallPolicyResponse > { } , 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 ; } } }