/**
 * ManagementDashboard API
 * API for the Management Dashboard micro-service. Use this API for dashboard and saved search metadata preservation and to perform  tasks such as creating a dashboard, creating a saved search, and obtaining a list of dashboards and saved searches in a compartment.
    

 * OpenAPI spec version: 20200901
 *
 *
 * 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 { DashxApisWaiter } from "./dashxapis-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum DashxApisApiKeys { } /**
 * 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 DashxApisClient { protected static serviceEndpointTemplate = "https://managementdashboard.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : DashxApisWaiter ; 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 + "/20200901" ; if ( this . logger ) this . logger . info ( `DashxApisClient 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 ( DashxApisClient . 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 ( DashxApisClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new DashxApisWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeManagementDashboardsCompartmentRequest return throws example Click  https to see how to use ChangeManagementDashboardsCompartment API.
      public async changeManagementDashboardsCompartment ( changeManagementDashboardsCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#changeManagementDashboardsCompartment." ) ; const pathParams = { "{managementDashboardId}" : changeManagementDashboardsCompartmentRequest . managementDashboardId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeManagementDashboardsCompartmentRequest . ifMatch , "opc-retry-token" : changeManagementDashboardsCompartmentRequest . opcRetryToken , "opc-request-id" : changeManagementDashboardsCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeManagementDashboardsCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards/{managementDashboardId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeManagementDashboardsCompartmentRequest . changeManagementDashboardsCompartmentDetails , "ChangeManagementDashboardsCompartmentDetails" , model . ChangeManagementDashboardsCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeManagementDashboardsCompartmentResponse > { } , body : await response . json ( ) , bodyKey : "managementDashboard" , bodyModel : model . ManagementDashboard , type : "model.ManagementDashboard" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeManagementSavedSearchesCompartmentRequest return throws example Click  https to see how to use ChangeManagementSavedSearchesCompartment API.
      public async changeManagementSavedSearchesCompartment ( changeManagementSavedSearchesCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#changeManagementSavedSearchesCompartment." ) ; const pathParams = { "{managementSavedSearchId}" : changeManagementSavedSearchesCompartmentRequest . managementSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeManagementSavedSearchesCompartmentRequest . ifMatch , "opc-retry-token" : changeManagementSavedSearchesCompartmentRequest . opcRetryToken , "opc-request-id" : changeManagementSavedSearchesCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeManagementSavedSearchesCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementSavedSearches/{managementSavedSearchId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeManagementSavedSearchesCompartmentRequest . changeManagementSavedSearchesCompartmentDetails , "ChangeManagementSavedSearchesCompartmentDetails" , model . ChangeManagementSavedSearchesCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeManagementSavedSearchesCompartmentResponse > { } , body : await response . json ( ) , bodyKey : "managementSavedSearch" , bodyModel : model . ManagementSavedSearch , type : "model.ManagementSavedSearch" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateManagementDashboardRequest return throws example Click  https to see how to use CreateManagementDashboard API.
      public async createManagementDashboard ( createManagementDashboardRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#createManagementDashboard." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createManagementDashboardRequest . opcRetryToken , "opc-request-id" : createManagementDashboardRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createManagementDashboardRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createManagementDashboardRequest . createManagementDashboardDetails , "CreateManagementDashboardDetails" , model . CreateManagementDashboardDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateManagementDashboardResponse > { } , body : await response . json ( ) , bodyKey : "managementDashboard" , bodyModel : model . ManagementDashboard , type : "model.ManagementDashboard" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateManagementSavedSearchRequest return throws example Click  https to see how to use CreateManagementSavedSearch API.
        public async createManagementSavedSearch ( createManagementSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#createManagementSavedSearch." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createManagementSavedSearchRequest . opcRetryToken , "opc-request-id" : createManagementSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createManagementSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementSavedSearches" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createManagementSavedSearchRequest . createManagementSavedSearchDetails , "CreateManagementSavedSearchDetails" , model . CreateManagementSavedSearchDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateManagementSavedSearchResponse > { } , body : await response . json ( ) , bodyKey : "managementSavedSearch" , bodyModel : model . ManagementSavedSearch , type : "model.ManagementSavedSearch" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteManagementDashboardRequest return throws example Click  https to see how to use DeleteManagementDashboard API.
      public async deleteManagementDashboard ( deleteManagementDashboardRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#deleteManagementDashboard." ) ; const pathParams = { "{managementDashboardId}" : deleteManagementDashboardRequest . managementDashboardId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteManagementDashboardRequest . ifMatch , "opc-request-id" : deleteManagementDashboardRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteManagementDashboardRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards/{managementDashboardId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteManagementDashboardResponse > { } , 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 DeleteManagementSavedSearchRequest return throws example Click  https to see how to use DeleteManagementSavedSearch API.
      public async deleteManagementSavedSearch ( deleteManagementSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#deleteManagementSavedSearch." ) ; const pathParams = { "{managementSavedSearchId}" : deleteManagementSavedSearchRequest . managementSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteManagementSavedSearchRequest . ifMatch , "opc-request-id" : deleteManagementSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteManagementSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementSavedSearches/{managementSavedSearchId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteManagementSavedSearchResponse > { } , 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 ExportDashboardRequest return throws example Click  https to see how to use ExportDashboard API.
      public async exportDashboard ( exportDashboardRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#exportDashboard." ) ; const pathParams = { "{exportDashboardId}" : exportDashboardRequest . exportDashboardId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : exportDashboardRequest . opcRetryToken , "opc-request-id" : exportDashboardRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , exportDashboardRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards/actions/exportDashboard/{exportDashboardId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ExportDashboardResponse > { } , body : await response . json ( ) , bodyKey : "managementDashboardExportDetails" , bodyModel : model . ManagementDashboardExportDetails , type : "model.ManagementDashboardExportDetails" , 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 GetManagementDashboardRequest return throws example Click  https to see how to use GetManagementDashboard API.
      public async getManagementDashboard ( getManagementDashboardRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#getManagementDashboard." ) ; const pathParams = { "{managementDashboardId}" : getManagementDashboardRequest . managementDashboardId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : getManagementDashboardRequest . opcRetryToken , "opc-request-id" : getManagementDashboardRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getManagementDashboardRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards/{managementDashboardId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetManagementDashboardResponse > { } , body : await response . json ( ) , bodyKey : "managementDashboard" , bodyModel : model . ManagementDashboard , type : "model.ManagementDashboard" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetManagementSavedSearchRequest return throws example Click  https to see how to use GetManagementSavedSearch API.
      public async getManagementSavedSearch ( getManagementSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#getManagementSavedSearch." ) ; const pathParams = { "{managementSavedSearchId}" : getManagementSavedSearchRequest . managementSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : getManagementSavedSearchRequest . opcRetryToken , "opc-request-id" : getManagementSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getManagementSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementSavedSearches/{managementSavedSearchId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetManagementSavedSearchResponse > { } , body : await response . json ( ) , bodyKey : "managementSavedSearch" , bodyModel : model . ManagementSavedSearch , type : "model.ManagementSavedSearch" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ImportDashboardRequest return throws example Click  https to see how to use ImportDashboard API.
        public async importDashboard ( importDashboardRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#importDashboard." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : importDashboardRequest . ifMatch , "opc-retry-token" : importDashboardRequest . opcRetryToken , "opc-request-id" : importDashboardRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , importDashboardRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards/actions/importDashboard" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( importDashboardRequest . managementDashboardImportDetails , "ManagementDashboardImportDetails" , model . ManagementDashboardImportDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ImportDashboardResponse > { } , 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 ListManagementDashboardsRequest return throws example Click  https to see how to use ListManagementDashboards API.
      public async listManagementDashboards ( listManagementDashboardsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#listManagementDashboards." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listManagementDashboardsRequest . compartmentId , "displayName" : listManagementDashboardsRequest . displayName , "limit" : listManagementDashboardsRequest . limit , "page" : listManagementDashboardsRequest . page , "sortOrder" : listManagementDashboardsRequest . sortOrder , "sortBy" : listManagementDashboardsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listManagementDashboardsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listManagementDashboardsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListManagementDashboardsResponse > { } , body : await response . json ( ) , bodyKey : "managementDashboardCollection" , bodyModel : model . ManagementDashboardCollection , type : "model.ManagementDashboardCollection" , 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 ListManagementSavedSearchesRequest return throws example Click  https to see how to use ListManagementSavedSearches API.
      public async listManagementSavedSearches ( listManagementSavedSearchesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#listManagementSavedSearches." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listManagementSavedSearchesRequest . compartmentId , "displayName" : listManagementSavedSearchesRequest . displayName , "limit" : listManagementSavedSearchesRequest . limit , "page" : listManagementSavedSearchesRequest . page , "sortOrder" : listManagementSavedSearchesRequest . sortOrder , "sortBy" : listManagementSavedSearchesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listManagementSavedSearchesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listManagementSavedSearchesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementSavedSearches" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListManagementSavedSearchesResponse > { } , body : await response . json ( ) , bodyKey : "managementSavedSearchCollection" , bodyModel : model . ManagementSavedSearchCollection , type : "model.ManagementSavedSearchCollection" , 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 UpdateManagementDashboardRequest return throws example Click  https to see how to use UpdateManagementDashboard API.
      public async updateManagementDashboard ( updateManagementDashboardRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#updateManagementDashboard." ) ; const pathParams = { "{managementDashboardId}" : updateManagementDashboardRequest . managementDashboardId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateManagementDashboardRequest . ifMatch , "opc-retry-token" : updateManagementDashboardRequest . opcRetryToken , "opc-request-id" : updateManagementDashboardRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateManagementDashboardRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementDashboards/{managementDashboardId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateManagementDashboardRequest . updateManagementDashboardDetails , "UpdateManagementDashboardDetails" , model . UpdateManagementDashboardDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateManagementDashboardResponse > { } , body : await response . json ( ) , bodyKey : "managementDashboard" , bodyModel : model . ManagementDashboard , type : "model.ManagementDashboard" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateManagementSavedSearchRequest return throws example Click  https to see how to use UpdateManagementSavedSearch API.
      public async updateManagementSavedSearch ( updateManagementSavedSearchRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DashxApisClient#updateManagementSavedSearch." ) ; const pathParams = { "{managementSavedSearchId}" : updateManagementSavedSearchRequest . managementSavedSearchId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateManagementSavedSearchRequest . ifMatch , "opc-retry-token" : updateManagementSavedSearchRequest . opcRetryToken , "opc-request-id" : updateManagementSavedSearchRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateManagementSavedSearchRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/managementSavedSearches/{managementSavedSearchId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateManagementSavedSearchRequest . updateManagementSavedSearchDetails , "UpdateManagementSavedSearchDetails" , model . UpdateManagementSavedSearchDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateManagementSavedSearchResponse > { } , body : await response . json ( ) , bodyKey : "managementSavedSearch" , bodyModel : model . ManagementSavedSearch , type : "model.ManagementSavedSearch" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }