/**
 * Logging Management API
 * Use the Logging Management API to create, read, list, update, and delete log groups, log objects, and agent configurations.
 * OpenAPI spec version: 20200531
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import common = require ( "oci-common" ) ; import * as requests from "./request" ; import * as model from "./model" ; import * as responses from "./response" ; import { paginateRecords , paginateResponses } from "oci-common" ; import { LoggingManagementWaiter } from "./loggingmanagement-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum LoggingManagementApiKeys { } /**
 * 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 LoggingManagementClient { protected static serviceEndpointTemplate = "https://logging.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : LoggingManagementWaiter ; 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 + "/20200531" ; if ( this . logger ) this . logger . info ( `LoggingManagementClient 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 ( LoggingManagementClient . 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 ( LoggingManagementClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new LoggingManagementWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeLogGroupCompartmentRequest return throws example Click  https to see how to use ChangeLogGroupCompartment API.
      public async changeLogGroupCompartment ( changeLogGroupCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#changeLogGroupCompartment." ) ; const pathParams = { "{logGroupId}" : changeLogGroupCompartmentRequest . logGroupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeLogGroupCompartmentRequest . ifMatch , "opc-request-id" : changeLogGroupCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeLogGroupCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeLogGroupCompartmentRequest . changeLogGroupCompartmentDetails , "ChangeLogGroupCompartmentDetails" , model . ChangeLogGroupCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeLogGroupCompartmentResponse > { } , 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 ChangeLogLogGroupRequest return throws example Click  https to see how to use ChangeLogLogGroup API.
      public async changeLogLogGroup ( changeLogLogGroupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#changeLogLogGroup." ) ; const pathParams = { "{logGroupId}" : changeLogLogGroupRequest . logGroupId , "{logId}" : changeLogLogGroupRequest . logId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeLogLogGroupRequest . ifMatch , "opc-request-id" : changeLogLogGroupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeLogLogGroupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/logs/{logId}/actions/changeLogGroup" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeLogLogGroupRequest . changeLogLogGroupDetails , "ChangeLogLogGroupDetails" , model . ChangeLogLogGroupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeLogLogGroupResponse > { } , 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 ChangeLogSavedSearchCompartmentRequest return throws example Click  https to see how to use ChangeLogSavedSearchCompartment API.
      public async changeLogSavedSearchCompartment ( changeLogSavedSearchCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#changeLogSavedSearchCompartment." ) ; const pathParams = { "{logSavedSearchId}" : changeLogSavedSearchCompartmentRequest . logSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : changeLogSavedSearchCompartmentRequest . opcRetryToken , "if-match" : changeLogSavedSearchCompartmentRequest . ifMatch , "opc-request-id" : changeLogSavedSearchCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeLogSavedSearchCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logSavedSearches/{logSavedSearchId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeLogSavedSearchCompartmentRequest . changeLogSavedSearchCompartmentDetails , "ChangeLogSavedSearchCompartmentDetails" , model . ChangeLogSavedSearchCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeLogSavedSearchCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeUnifiedAgentConfigurationCompartmentRequest return throws example Click  https to see how to use ChangeUnifiedAgentConfigurationCompartment API.
      public async changeUnifiedAgentConfigurationCompartment ( changeUnifiedAgentConfigurationCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#changeUnifiedAgentConfigurationCompartment." ) ; const pathParams = { "{unifiedAgentConfigurationId}" : changeUnifiedAgentConfigurationCompartmentRequest . unifiedAgentConfigurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : changeUnifiedAgentConfigurationCompartmentRequest . opcRetryToken , "if-match" : changeUnifiedAgentConfigurationCompartmentRequest . ifMatch , "opc-request-id" : changeUnifiedAgentConfigurationCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeUnifiedAgentConfigurationCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/unifiedAgentConfigurations/{unifiedAgentConfigurationId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeUnifiedAgentConfigurationCompartmentRequest . changeUnifiedAgentConfigurationCompartmentDetails , "ChangeUnifiedAgentConfigurationCompartmentDetails" , model . ChangeUnifiedAgentConfigurationCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeUnifiedAgentConfigurationCompartmentResponse > { } , 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 CreateLogRequest return throws example Click  https to see how to use CreateLog API.
      public async createLog ( createLogRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#createLog." ) ; const pathParams = { "{logGroupId}" : createLogRequest . logGroupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createLogRequest . opcRetryToken , "opc-request-id" : createLogRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createLogRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/logs" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createLogRequest . createLogDetails , "CreateLogDetails" , model . CreateLogDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateLogResponse > { } , 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 CreateLogGroupRequest return throws example Click  https to see how to use CreateLogGroup API.
      public async createLogGroup ( createLogGroupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#createLogGroup." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createLogGroupRequest . opcRetryToken , "opc-request-id" : createLogGroupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createLogGroupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createLogGroupRequest . createLogGroupDetails , "CreateLogGroupDetails" , model . CreateLogGroupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateLogGroupResponse > { } , 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 CreateLogSavedSearchRequest return throws example Click  https to see how to use CreateLogSavedSearch API.
      public async createLogSavedSearch ( createLogSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#createLogSavedSearch." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createLogSavedSearchRequest . opcRetryToken , "opc-request-id" : createLogSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createLogSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logSavedSearches" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createLogSavedSearchRequest . createLogSavedSearchDetails , "CreateLogSavedSearchDetails" , model . CreateLogSavedSearchDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateLogSavedSearchResponse > { } , body : await response . json ( ) , bodyKey : "logSavedSearch" , bodyModel : model . LogSavedSearch , type : "model.LogSavedSearch" , 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 CreateUnifiedAgentConfigurationRequest return throws example Click  https to see how to use CreateUnifiedAgentConfiguration API.
      public async createUnifiedAgentConfiguration ( createUnifiedAgentConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#createUnifiedAgentConfiguration." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createUnifiedAgentConfigurationRequest . opcRequestId , "opc-retry-token" : createUnifiedAgentConfigurationRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createUnifiedAgentConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/unifiedAgentConfigurations" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createUnifiedAgentConfigurationRequest . createUnifiedAgentConfigurationDetails , "CreateUnifiedAgentConfigurationDetails" , model . CreateUnifiedAgentConfigurationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateUnifiedAgentConfigurationResponse > { } , 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 DeleteLogRequest return throws example Click  https to see how to use DeleteLog API.
      public async deleteLog ( deleteLogRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#deleteLog." ) ; const pathParams = { "{logGroupId}" : deleteLogRequest . logGroupId , "{logId}" : deleteLogRequest . logId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteLogRequest . ifMatch , "opc-request-id" : deleteLogRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteLogRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/logs/{logId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteLogResponse > { } , 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 DeleteLogGroupRequest return throws example Click  https to see how to use DeleteLogGroup API.
      public async deleteLogGroup ( deleteLogGroupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#deleteLogGroup." ) ; const pathParams = { "{logGroupId}" : deleteLogGroupRequest . logGroupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteLogGroupRequest . ifMatch , "opc-request-id" : deleteLogGroupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteLogGroupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteLogGroupResponse > { } , 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 DeleteLogSavedSearchRequest return throws example Click  https to see how to use DeleteLogSavedSearch API.
      public async deleteLogSavedSearch ( deleteLogSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#deleteLogSavedSearch." ) ; const pathParams = { "{logSavedSearchId}" : deleteLogSavedSearchRequest . logSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteLogSavedSearchRequest . ifMatch , "opc-request-id" : deleteLogSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteLogSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logSavedSearches/{logSavedSearchId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteLogSavedSearchResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteUnifiedAgentConfigurationRequest return throws example Click  https to see how to use DeleteUnifiedAgentConfiguration API.
      public async deleteUnifiedAgentConfiguration ( deleteUnifiedAgentConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#deleteUnifiedAgentConfiguration." ) ; const pathParams = { "{unifiedAgentConfigurationId}" : deleteUnifiedAgentConfigurationRequest . unifiedAgentConfigurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteUnifiedAgentConfigurationRequest . opcRequestId , "if-match" : deleteUnifiedAgentConfigurationRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteUnifiedAgentConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/unifiedAgentConfigurations/{unifiedAgentConfigurationId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteUnifiedAgentConfigurationResponse > { } , 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 DeleteWorkRequestRequest return throws example Click  https to see how to use DeleteWorkRequest API.
      public async deleteWorkRequest ( deleteWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#deleteWorkRequest." ) ; const pathParams = { "{workRequestId}" : deleteWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteWorkRequestRequest . ifMatch , "opc-request-id" : deleteWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteWorkRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-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 GetLogRequest return throws example Click  https to see how to use GetLog API.
      public async getLog ( getLogRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#getLog." ) ; const pathParams = { "{logGroupId}" : getLogRequest . logGroupId , "{logId}" : getLogRequest . logId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getLogRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getLogRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/logs/{logId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetLogResponse > { } , body : await response . json ( ) , bodyKey : "log" , bodyModel : model . Log , type : "model.Log" , 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 GetLogGroupRequest return throws example Click  https to see how to use GetLogGroup API.
      public async getLogGroup ( getLogGroupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#getLogGroup." ) ; const pathParams = { "{logGroupId}" : getLogGroupRequest . logGroupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getLogGroupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getLogGroupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetLogGroupResponse > { } , body : await response . json ( ) , bodyKey : "logGroup" , bodyModel : model . LogGroup , type : "model.LogGroup" , 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 GetLogIncludedSearchRequest return throws example Click  https to see how to use GetLogIncludedSearch API.
      public async getLogIncludedSearch ( getLogIncludedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#getLogIncludedSearch." ) ; const pathParams = { "{logIncludedSearchId}" : getLogIncludedSearchRequest . logIncludedSearchId } ; const queryParams = { "compartmentId" : getLogIncludedSearchRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getLogIncludedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getLogIncludedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logIncludedSearch/{logIncludedSearchId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetLogIncludedSearchResponse > { } , body : await response . json ( ) , bodyKey : "logIncludedSearch" , bodyModel : model . LogIncludedSearch , type : "model.LogIncludedSearch" , 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 GetLogSavedSearchRequest return throws example Click  https to see how to use GetLogSavedSearch API.
      public async getLogSavedSearch ( getLogSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#getLogSavedSearch." ) ; const pathParams = { "{logSavedSearchId}" : getLogSavedSearchRequest . logSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getLogSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getLogSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logSavedSearches/{logSavedSearchId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetLogSavedSearchResponse > { } , body : await response . json ( ) , bodyKey : "logSavedSearch" , bodyModel : model . LogSavedSearch , type : "model.LogSavedSearch" , 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 GetUnifiedAgentConfigurationRequest return throws example Click  https to see how to use GetUnifiedAgentConfiguration API.
      public async getUnifiedAgentConfiguration ( getUnifiedAgentConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#getUnifiedAgentConfiguration." ) ; const pathParams = { "{unifiedAgentConfigurationId}" : getUnifiedAgentConfigurationRequest . unifiedAgentConfigurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getUnifiedAgentConfigurationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getUnifiedAgentConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/unifiedAgentConfigurations/{unifiedAgentConfigurationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetUnifiedAgentConfigurationResponse > { } , body : await response . json ( ) , bodyKey : "unifiedAgentConfiguration" , bodyModel : model . UnifiedAgentConfiguration , type : "model.UnifiedAgentConfiguration" , 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 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 LoggingManagementClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListLogGroupsRequest return throws example Click  https to see how to use ListLogGroups API.
      public async listLogGroups ( listLogGroupsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listLogGroups." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listLogGroupsRequest . compartmentId , "isCompartmentIdInSubtree" : listLogGroupsRequest . isCompartmentIdInSubtree , "displayName" : listLogGroupsRequest . displayName , "page" : listLogGroupsRequest . page , "limit" : listLogGroupsRequest . limit , "sortBy" : listLogGroupsRequest . sortBy , "sortOrder" : listLogGroupsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listLogGroupsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listLogGroupsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListLogGroupsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . LogGroupSummary , type : "Array<model.LogGroupSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllLogGroups ( request ) { return paginateRecords ( request , req => this . listLogGroups ( req ) ) ; } param request public listAllLogGroupsResponses ( request ) { return paginateResponses ( request , req => this . listLogGroups ( req ) ) ; } param request public listLogGroupsRecordIterator ( request ) { return paginateRecords ( request , req => this . listLogGroups ( req ) ) ; } param request public listLogGroupsResponseIterator ( request ) { return paginateResponses ( request , req => this . listLogGroups ( req ) ) ; } param ListLogIncludedSearchesRequest return throws example Click  https to see how to use ListLogIncludedSearches API.
      public async listLogIncludedSearches ( listLogIncludedSearchesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listLogIncludedSearches." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listLogIncludedSearchesRequest . compartmentId , "logIncludedSearchId" : listLogIncludedSearchesRequest . logIncludedSearchId , "displayName" : listLogIncludedSearchesRequest . displayName , "page" : listLogIncludedSearchesRequest . page , "limit" : listLogIncludedSearchesRequest . limit , "sortBy" : listLogIncludedSearchesRequest . sortBy , "sortOrder" : listLogIncludedSearchesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listLogIncludedSearchesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listLogIncludedSearchesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logIncludedSearches" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListLogIncludedSearchesResponse > { } , body : await response . json ( ) , bodyKey : "logIncludedSearchSummaryCollection" , bodyModel : model . LogIncludedSearchSummaryCollection , type : "model.LogIncludedSearchSummaryCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListLogSavedSearchesRequest return throws example Click  https to see how to use ListLogSavedSearches API.
      public async listLogSavedSearches ( listLogSavedSearchesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listLogSavedSearches." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listLogSavedSearchesRequest . compartmentId , "logSavedSearchId" : listLogSavedSearchesRequest . logSavedSearchId , "name" : listLogSavedSearchesRequest . name , "page" : listLogSavedSearchesRequest . page , "limit" : listLogSavedSearchesRequest . limit , "sortBy" : listLogSavedSearchesRequest . sortBy , "sortOrder" : listLogSavedSearchesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listLogSavedSearchesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listLogSavedSearchesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logSavedSearches" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListLogSavedSearchesResponse > { } , body : await response . json ( ) , bodyKey : "logSavedSearchSummaryCollection" , bodyModel : model . LogSavedSearchSummaryCollection , type : "model.LogSavedSearchSummaryCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListLogsRequest return throws example Click  https to see how to use ListLogs API.
      public async listLogs ( listLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listLogs." ) ; const pathParams = { "{logGroupId}" : listLogsRequest . logGroupId } ; const queryParams = { "logType" : listLogsRequest . logType , "sourceService" : listLogsRequest . sourceService , "sourceResource" : listLogsRequest . sourceResource , "displayName" : listLogsRequest . displayName , "lifecycleState" : listLogsRequest . lifecycleState , "page" : listLogsRequest . page , "limit" : listLogsRequest . limit , "sortBy" : listLogsRequest . sortBy , "sortOrder" : listLogsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listLogsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listLogsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/logs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListLogsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . LogSummary , type : "Array<model.LogSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllLogs ( request ) { return paginateRecords ( request , req => this . listLogs ( req ) ) ; } param request public listAllLogsResponses ( request ) { return paginateResponses ( request , req => this . listLogs ( req ) ) ; } param request public listLogsRecordIterator ( request ) { return paginateRecords ( request , req => this . listLogs ( req ) ) ; } param request public listLogsResponseIterator ( request ) { return paginateResponses ( request , req => this . listLogs ( req ) ) ; } param ListServicesRequest return throws example Click  https to see how to use ListServices API.
      public async listServices ( listServicesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listServices." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listServicesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listServicesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/v2/registry/services" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListServicesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ServiceSummary , type : "Array<model.ServiceSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListUnifiedAgentConfigurationsRequest return throws example Click  https to see how to use ListUnifiedAgentConfigurations API.
      public async listUnifiedAgentConfigurations ( listUnifiedAgentConfigurationsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listUnifiedAgentConfigurations." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listUnifiedAgentConfigurationsRequest . compartmentId , "logId" : listUnifiedAgentConfigurationsRequest . logId , "isCompartmentIdInSubtree" : listUnifiedAgentConfigurationsRequest . isCompartmentIdInSubtree , "groupId" : listUnifiedAgentConfigurationsRequest . groupId , "displayName" : listUnifiedAgentConfigurationsRequest . displayName , "lifecycleState" : listUnifiedAgentConfigurationsRequest . lifecycleState , "limit" : listUnifiedAgentConfigurationsRequest . limit , "page" : listUnifiedAgentConfigurationsRequest . page , "sortBy" : listUnifiedAgentConfigurationsRequest . sortBy , "sortOrder" : listUnifiedAgentConfigurationsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listUnifiedAgentConfigurationsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listUnifiedAgentConfigurationsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/unifiedAgentConfigurations" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListUnifiedAgentConfigurationsResponse > { } , body : await response . json ( ) , bodyKey : "unifiedAgentConfigurationCollection" , bodyModel : model . UnifiedAgentConfigurationCollection , type : "model.UnifiedAgentConfigurationCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , 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 LoggingManagementClient#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 : "items" , bodyModel : model . WorkRequestError , type : "Array<model.WorkRequestError>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestErrors ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listAllWorkRequestErrorsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param ListWorkRequestLogsRequest return throws example Click  https to see how to use ListWorkRequestLogs API.
      public async listWorkRequestLogs ( listWorkRequestLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#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 : "items" , bodyModel : model . WorkRequestLog , type : "Array<model.WorkRequestLog>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestLogs ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listAllWorkRequestLogsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param ListWorkRequestsRequest return throws example Click  https to see how to use ListWorkRequests API.
      public async listWorkRequests ( listWorkRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "status" : listWorkRequestsRequest . status , "id" : listWorkRequestsRequest . id , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit , "sortOrder" : listWorkRequestsRequest . sortOrder , "sortBy" : listWorkRequestsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequestSummary , type : "Array<model.WorkRequestSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-previous-page" ) , key : "opcPreviousPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequests ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listAllWorkRequestsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param UpdateLogRequest return throws example Click  https to see how to use UpdateLog API.
      public async updateLog ( updateLogRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#updateLog." ) ; const pathParams = { "{logGroupId}" : updateLogRequest . logGroupId , "{logId}" : updateLogRequest . logId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateLogRequest . ifMatch , "opc-request-id" : updateLogRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateLogRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}/logs/{logId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateLogRequest . updateLogDetails , "UpdateLogDetails" , model . UpdateLogDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateLogResponse > { } , 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 UpdateLogGroupRequest return throws example Click  https to see how to use UpdateLogGroup API.
      public async updateLogGroup ( updateLogGroupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#updateLogGroup." ) ; const pathParams = { "{logGroupId}" : updateLogGroupRequest . logGroupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateLogGroupRequest . ifMatch , "opc-request-id" : updateLogGroupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateLogGroupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logGroups/{logGroupId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateLogGroupRequest . updateLogGroupDetails , "UpdateLogGroupDetails" , model . UpdateLogGroupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateLogGroupResponse > { } , 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 UpdateLogSavedSearchRequest return throws example Click  https to see how to use UpdateLogSavedSearch API.
      public async updateLogSavedSearch ( updateLogSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#updateLogSavedSearch." ) ; const pathParams = { "{logSavedSearchId}" : updateLogSavedSearchRequest . logSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateLogSavedSearchRequest . ifMatch , "opc-request-id" : updateLogSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateLogSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/logSavedSearches/{logSavedSearchId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateLogSavedSearchRequest . updateLogSavedSearchDetails , "UpdateLogSavedSearchDetails" , model . UpdateLogSavedSearchDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateLogSavedSearchResponse > { } , body : await response . json ( ) , bodyKey : "logSavedSearch" , bodyModel : model . LogSavedSearch , type : "model.LogSavedSearch" , 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 UpdateUnifiedAgentConfigurationRequest return throws example Click  https to see how to use UpdateUnifiedAgentConfiguration API.
      public async updateUnifiedAgentConfiguration ( updateUnifiedAgentConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation LoggingManagementClient#updateUnifiedAgentConfiguration." ) ; const pathParams = { "{unifiedAgentConfigurationId}" : updateUnifiedAgentConfigurationRequest . unifiedAgentConfigurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateUnifiedAgentConfigurationRequest . ifMatch , "opc-request-id" : updateUnifiedAgentConfigurationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateUnifiedAgentConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/unifiedAgentConfigurations/{unifiedAgentConfigurationId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateUnifiedAgentConfigurationRequest . updateUnifiedAgentConfigurationDetails , "UpdateUnifiedAgentConfigurationDetails" , model . UpdateUnifiedAgentConfigurationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateUnifiedAgentConfigurationResponse > { } , 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 ; } } }