/**
 * Management Agent API
 * API for Management Agent Cloud Service
 * OpenAPI spec version: 20200202
 *
 *
 * 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 { ManagementAgentWaiter } from "./managementagent-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum ManagementAgentApiKeys { } /**
 * 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 ManagementAgentClient { protected static serviceEndpointTemplate = "https://management-agent.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : ManagementAgentWaiter ; 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 + "/20200202" ; if ( this . logger ) this . logger . info ( `ManagementAgentClient 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 ( ManagementAgentClient . 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 ( ManagementAgentClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new ManagementAgentWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateManagementAgentInstallKeyRequest return throws example Click  https to see how to use CreateManagementAgentInstallKey API.
      public async createManagementAgentInstallKey ( createManagementAgentInstallKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#createManagementAgentInstallKey." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createManagementAgentInstallKeyRequest . opcRetryToken , "opc-request-id" : createManagementAgentInstallKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createManagementAgentInstallKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentInstallKeys" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createManagementAgentInstallKeyRequest . createManagementAgentInstallKeyDetails , "CreateManagementAgentInstallKeyDetails" , model . CreateManagementAgentInstallKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateManagementAgentInstallKeyResponse > { } , body : await response . json ( ) , bodyKey : "managementAgentInstallKey" , bodyModel : model . ManagementAgentInstallKey , type : "model.ManagementAgentInstallKey" , 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 DeleteManagementAgentRequest return throws example Click  https to see how to use DeleteManagementAgent API.
      public async deleteManagementAgent ( deleteManagementAgentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#deleteManagementAgent." ) ; const pathParams = { "{managementAgentId}" : deleteManagementAgentRequest . managementAgentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteManagementAgentRequest . ifMatch , "opc-request-id" : deleteManagementAgentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteManagementAgentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/{managementAgentId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteManagementAgentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteManagementAgentInstallKeyRequest return throws example Click  https to see how to use DeleteManagementAgentInstallKey API.
      public async deleteManagementAgentInstallKey ( deleteManagementAgentInstallKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#deleteManagementAgentInstallKey." ) ; const pathParams = { "{managementAgentInstallKeyId}" : deleteManagementAgentInstallKeyRequest . managementAgentInstallKeyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteManagementAgentInstallKeyRequest . ifMatch , "opc-request-id" : deleteManagementAgentInstallKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteManagementAgentInstallKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentInstallKeys/{managementAgentInstallKeyId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteManagementAgentInstallKeyResponse > { } , responseHeaders : [ { 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 ManagementAgentClient#deleteWorkRequest." ) ; const pathParams = { "{workRequestId}" : deleteWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteWorkRequestRequest . opcRequestId , "if-match" : deleteWorkRequestRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteWorkRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeployPluginsRequest return throws example Click  https to see how to use DeployPlugins API.
      public async deployPlugins ( deployPluginsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#deployPlugins." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : deployPluginsRequest . opcRetryToken , "opc-request-id" : deployPluginsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deployPluginsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/actions/deployPlugins" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( deployPluginsRequest . deployPluginsDetails , "DeployPluginsDetails" , model . DeployPluginsDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeployPluginsResponse > { } , 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 GetAutoUpgradableConfigRequest return throws example Click  https to see how to use GetAutoUpgradableConfig API.
      public async getAutoUpgradableConfig ( getAutoUpgradableConfigRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#getAutoUpgradableConfig." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : getAutoUpgradableConfigRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAutoUpgradableConfigRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAutoUpgradableConfigRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/actions/getAutoUpgradableConfig" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAutoUpgradableConfigResponse > { } , body : await response . json ( ) , bodyKey : "autoUpgradableConfig" , bodyModel : model . AutoUpgradableConfig , type : "model.AutoUpgradableConfig" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetManagementAgentRequest return throws example Click  https to see how to use GetManagementAgent API.
      public async getManagementAgent ( getManagementAgentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#getManagementAgent." ) ; const pathParams = { "{managementAgentId}" : getManagementAgentRequest . managementAgentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getManagementAgentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getManagementAgentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/{managementAgentId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetManagementAgentResponse > { } , body : await response . json ( ) , bodyKey : "managementAgent" , bodyModel : model . ManagementAgent , type : "model.ManagementAgent" , 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 GetManagementAgentInstallKeyRequest return throws example Click  https to see how to use GetManagementAgentInstallKey API.
      public async getManagementAgentInstallKey ( getManagementAgentInstallKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#getManagementAgentInstallKey." ) ; const pathParams = { "{managementAgentInstallKeyId}" : getManagementAgentInstallKeyRequest . managementAgentInstallKeyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getManagementAgentInstallKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getManagementAgentInstallKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentInstallKeys/{managementAgentInstallKeyId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetManagementAgentInstallKeyResponse > { } , body : await response . json ( ) , bodyKey : "managementAgentInstallKey" , bodyModel : model . ManagementAgentInstallKey , type : "model.ManagementAgentInstallKey" , 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 GetManagementAgentInstallKeyContentRequest return throws example Click  https to see how to use GetManagementAgentInstallKeyContent API.
      public async getManagementAgentInstallKeyContent ( getManagementAgentInstallKeyContentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#getManagementAgentInstallKeyContent." ) ; const pathParams = { "{managementAgentInstallKeyId}" : getManagementAgentInstallKeyContentRequest . managementAgentInstallKeyId } ; const queryParams = { "pluginName" : getManagementAgentInstallKeyContentRequest . pluginName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getManagementAgentInstallKeyContentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getManagementAgentInstallKeyContentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentInstallKeys/{managementAgentInstallKeyId}/content" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetManagementAgentInstallKeyContentResponse > { } , body : response . body ! , bodyKey : "value" , bodyModel : "string" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "content-length" ) , key : "contentLength" , dataType : "number" } , { value : response . headers . get ( "content-type" ) , key : "contentType" , 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 ManagementAgentClient#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" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListAvailabilityHistoriesRequest return throws example Click  https to see how to use ListAvailabilityHistories API.
      public async listAvailabilityHistories ( listAvailabilityHistoriesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#listAvailabilityHistories." ) ; const pathParams = { "{managementAgentId}" : listAvailabilityHistoriesRequest . managementAgentId } ; const queryParams = { "timeAvailabilityStatusEndedGreaterThan" : listAvailabilityHistoriesRequest . timeAvailabilityStatusEndedGreaterThan , "timeAvailabilityStatusStartedLessThan" : listAvailabilityHistoriesRequest . timeAvailabilityStatusStartedLessThan , "limit" : listAvailabilityHistoriesRequest . limit , "page" : listAvailabilityHistoriesRequest . page , "sortOrder" : listAvailabilityHistoriesRequest . sortOrder , "sortBy" : listAvailabilityHistoriesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAvailabilityHistoriesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAvailabilityHistoriesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/{managementAgentId}/availabilityHistories" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAvailabilityHistoriesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . AvailabilityHistorySummary , type : "Array<model.AvailabilityHistorySummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllAvailabilityHistories ( request ) { return paginateRecords ( request , req => this . listAvailabilityHistories ( req ) ) ; } param request public listAllAvailabilityHistoriesResponses ( request ) { return paginateResponses ( request , req => this . listAvailabilityHistories ( req ) ) ; } param request public listAvailabilityHistoriesRecordIterator ( request ) { return paginateRecords ( request , req => this . listAvailabilityHistories ( req ) ) ; } param request public listAvailabilityHistoriesResponseIterator ( request ) { return paginateResponses ( request , req => this . listAvailabilityHistories ( req ) ) ; } param ListManagementAgentImagesRequest return throws example Click  https to see how to use ListManagementAgentImages API.
      public async listManagementAgentImages ( listManagementAgentImagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#listManagementAgentImages." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listManagementAgentImagesRequest . compartmentId , "limit" : listManagementAgentImagesRequest . limit , "page" : listManagementAgentImagesRequest . page , "sortOrder" : listManagementAgentImagesRequest . sortOrder , "sortBy" : listManagementAgentImagesRequest . sortBy , "name" : listManagementAgentImagesRequest . name , "lifecycleState" : listManagementAgentImagesRequest . lifecycleState , "installType" : listManagementAgentImagesRequest . installType } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : listManagementAgentImagesRequest . opcRetryToken , "opc-request-id" : listManagementAgentImagesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listManagementAgentImagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentImages" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListManagementAgentImagesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ManagementAgentImageSummary , type : "Array<model.ManagementAgentImageSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllManagementAgentImages ( request ) { return paginateRecords ( request , req => this . listManagementAgentImages ( req ) ) ; } param request public listAllManagementAgentImagesResponses ( request ) { return paginateResponses ( request , req => this . listManagementAgentImages ( req ) ) ; } param request public listManagementAgentImagesRecordIterator ( request ) { return paginateRecords ( request , req => this . listManagementAgentImages ( req ) ) ; } param request public listManagementAgentImagesResponseIterator ( request ) { return paginateResponses ( request , req => this . listManagementAgentImages ( req ) ) ; } param ListManagementAgentInstallKeysRequest return throws example Click  https to see how to use ListManagementAgentInstallKeys API.
      public async listManagementAgentInstallKeys ( listManagementAgentInstallKeysRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#listManagementAgentInstallKeys." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listManagementAgentInstallKeysRequest . compartmentId , "compartmentIdInSubtree" : listManagementAgentInstallKeysRequest . compartmentIdInSubtree , "accessLevel" : listManagementAgentInstallKeysRequest . accessLevel , "lifecycleState" : listManagementAgentInstallKeysRequest . lifecycleState , "displayName" : listManagementAgentInstallKeysRequest . displayName , "page" : listManagementAgentInstallKeysRequest . page , "sortOrder" : listManagementAgentInstallKeysRequest . sortOrder , "sortBy" : listManagementAgentInstallKeysRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listManagementAgentInstallKeysRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listManagementAgentInstallKeysRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentInstallKeys" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListManagementAgentInstallKeysResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ManagementAgentInstallKeySummary , type : "Array<model.ManagementAgentInstallKeySummary>" , 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 listAllManagementAgentInstallKeys ( request ) { return paginateRecords ( request , req => this . listManagementAgentInstallKeys ( req ) ) ; } param request public listAllManagementAgentInstallKeysResponses ( request ) { return paginateResponses ( request , req => this . listManagementAgentInstallKeys ( req ) ) ; } param request public listManagementAgentInstallKeysRecordIterator ( request ) { return paginateRecords ( request , req => this . listManagementAgentInstallKeys ( req ) ) ; } param request public listManagementAgentInstallKeysResponseIterator ( request ) { return paginateResponses ( request , req => this . listManagementAgentInstallKeys ( req ) ) ; } param ListManagementAgentPluginsRequest return throws example Click  https to see how to use ListManagementAgentPlugins API.
      public async listManagementAgentPlugins ( listManagementAgentPluginsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#listManagementAgentPlugins." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listManagementAgentPluginsRequest . compartmentId , "displayName" : listManagementAgentPluginsRequest . displayName , "limit" : listManagementAgentPluginsRequest . limit , "page" : listManagementAgentPluginsRequest . page , "sortOrder" : listManagementAgentPluginsRequest . sortOrder , "sortBy" : listManagementAgentPluginsRequest . sortBy , "lifecycleState" : listManagementAgentPluginsRequest . lifecycleState , "platformType" : listManagementAgentPluginsRequest . platformType } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listManagementAgentPluginsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listManagementAgentPluginsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentPlugins" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListManagementAgentPluginsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ManagementAgentPluginSummary , type : "Array<model.ManagementAgentPluginSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllManagementAgentPlugins ( request ) { return paginateRecords ( request , req => this . listManagementAgentPlugins ( req ) ) ; } param request public listAllManagementAgentPluginsResponses ( request ) { return paginateResponses ( request , req => this . listManagementAgentPlugins ( req ) ) ; } param request public listManagementAgentPluginsRecordIterator ( request ) { return paginateRecords ( request , req => this . listManagementAgentPlugins ( req ) ) ; } param request public listManagementAgentPluginsResponseIterator ( request ) { return paginateResponses ( request , req => this . listManagementAgentPlugins ( req ) ) ; } param ListManagementAgentsRequest return throws example Click  https to see how to use ListManagementAgents API.
      public async listManagementAgents ( listManagementAgentsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#listManagementAgents." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listManagementAgentsRequest . compartmentId , "pluginName" : listManagementAgentsRequest . pluginName , "version" : listManagementAgentsRequest . version , "displayName" : listManagementAgentsRequest . displayName , "lifecycleState" : listManagementAgentsRequest . lifecycleState , "availabilityStatus" : listManagementAgentsRequest . availabilityStatus , "hostId" : listManagementAgentsRequest . hostId , "platformType" : listManagementAgentsRequest . platformType , "isCustomerDeployed" : listManagementAgentsRequest . isCustomerDeployed , "installType" : listManagementAgentsRequest . installType , "limit" : listManagementAgentsRequest . limit , "page" : listManagementAgentsRequest . page , "sortOrder" : listManagementAgentsRequest . sortOrder , "sortBy" : listManagementAgentsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listManagementAgentsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listManagementAgentsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListManagementAgentsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ManagementAgentSummary , type : "Array<model.ManagementAgentSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllManagementAgents ( request ) { return paginateRecords ( request , req => this . listManagementAgents ( req ) ) ; } param request public listAllManagementAgentsResponses ( request ) { return paginateResponses ( request , req => this . listManagementAgents ( req ) ) ; } param request public listManagementAgentsRecordIterator ( request ) { return paginateRecords ( request , req => this . listManagementAgents ( req ) ) ; } param request public listManagementAgentsResponseIterator ( request ) { return paginateResponses ( request , req => this . listManagementAgents ( req ) ) ; } param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit , "sortOrder" : listWorkRequestErrorsRequest . sortOrder , "sortBy" : listWorkRequestErrorsRequest . sortBy } ; 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 ManagementAgentClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit , "sortOrder" : listWorkRequestLogsRequest . sortOrder , "sortBy" : listWorkRequestLogsRequest . sortBy } ; 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 . WorkRequestLogEntry , type : "Array<model.WorkRequestLogEntry>" , 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 ManagementAgentClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "agentId" : listWorkRequestsRequest . agentId , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit , "status" : listWorkRequestsRequest . status , "timeCreatedGreaterThanOrEqualTo" : listWorkRequestsRequest . timeCreatedGreaterThanOrEqualTo , "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-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public 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 SetAutoUpgradableConfigRequest return throws example Click  https to see how to use SetAutoUpgradableConfig API.
      public async setAutoUpgradableConfig ( setAutoUpgradableConfigRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#setAutoUpgradableConfig." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : setAutoUpgradableConfigRequest . opcRetryToken , "opc-request-id" : setAutoUpgradableConfigRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , setAutoUpgradableConfigRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/actions/setAutoUpgradableConfig" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( setAutoUpgradableConfigRequest . setAutoUpgradableConfigDetails , "SetAutoUpgradableConfigDetails" , model . SetAutoUpgradableConfigDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SetAutoUpgradableConfigResponse > { } , body : await response . json ( ) , bodyKey : "autoUpgradableConfig" , bodyModel : model . AutoUpgradableConfig , type : "model.AutoUpgradableConfig" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param SummarizeManagementAgentCountsRequest return throws example Click  https to see how to use SummarizeManagementAgentCounts API.
      public async summarizeManagementAgentCounts ( summarizeManagementAgentCountsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#summarizeManagementAgentCounts." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : summarizeManagementAgentCountsRequest . compartmentId , "groupBy" : summarizeManagementAgentCountsRequest . groupBy , "hasPlugins" : summarizeManagementAgentCountsRequest . hasPlugins , "installType" : summarizeManagementAgentCountsRequest . installType , "page" : summarizeManagementAgentCountsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : summarizeManagementAgentCountsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , summarizeManagementAgentCountsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentCounts" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SummarizeManagementAgentCountsResponse > { } , body : await response . json ( ) , bodyKey : "managementAgentAggregationCollection" , bodyModel : model . ManagementAgentAggregationCollection , type : "model.ManagementAgentAggregationCollection" , 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 SummarizeManagementAgentPluginCountsRequest return throws example Click  https to see how to use SummarizeManagementAgentPluginCounts API.
      public async summarizeManagementAgentPluginCounts ( summarizeManagementAgentPluginCountsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#summarizeManagementAgentPluginCounts." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : summarizeManagementAgentPluginCountsRequest . compartmentId , "groupBy" : summarizeManagementAgentPluginCountsRequest . groupBy , "page" : summarizeManagementAgentPluginCountsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : summarizeManagementAgentPluginCountsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , summarizeManagementAgentPluginCountsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentPluginCounts" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SummarizeManagementAgentPluginCountsResponse > { } , body : await response . json ( ) , bodyKey : "managementAgentPluginAggregationCollection" , bodyModel : model . ManagementAgentPluginAggregationCollection , type : "model.ManagementAgentPluginAggregationCollection" , 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 UpdateManagementAgentRequest return throws example Click  https to see how to use UpdateManagementAgent API.
      public async updateManagementAgent ( updateManagementAgentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#updateManagementAgent." ) ; const pathParams = { "{managementAgentId}" : updateManagementAgentRequest . managementAgentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : updateManagementAgentRequest . opcRetryToken , "opc-request-id" : updateManagementAgentRequest . opcRequestId , "if-match" : updateManagementAgentRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateManagementAgentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgents/{managementAgentId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateManagementAgentRequest . updateManagementAgentDetails , "UpdateManagementAgentDetails" , model . UpdateManagementAgentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateManagementAgentResponse > { } , body : await response . json ( ) , bodyKey : "managementAgent" , bodyModel : model . ManagementAgent , type : "model.ManagementAgent" , 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 UpdateManagementAgentInstallKeyRequest return throws example Click  https to see how to use UpdateManagementAgentInstallKey API.
      public async updateManagementAgentInstallKey ( updateManagementAgentInstallKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ManagementAgentClient#updateManagementAgentInstallKey." ) ; const pathParams = { "{managementAgentInstallKeyId}" : updateManagementAgentInstallKeyRequest . managementAgentInstallKeyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : updateManagementAgentInstallKeyRequest . opcRetryToken , "opc-request-id" : updateManagementAgentInstallKeyRequest . opcRequestId , "if-match" : updateManagementAgentInstallKeyRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateManagementAgentInstallKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementAgentInstallKeys/{managementAgentInstallKeyId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateManagementAgentInstallKeyRequest . updateManagementAgentInstallKeyDetails , "UpdateManagementAgentInstallKeyDetails" , model . UpdateManagementAgentInstallKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateManagementAgentInstallKeyResponse > { } , body : await response . json ( ) , bodyKey : "managementAgentInstallKey" , bodyModel : model . ManagementAgentInstallKey , type : "model.ManagementAgentInstallKey" , 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 ; } } }