/**
 * Database Tools
 * Database Tools APIs to manage Connections and Private Endpoints.
 * OpenAPI spec version: 20201005
 *
 *
 * 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 { DatabaseToolsWaiter } from "./databasetools-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum DatabaseToolsApiKeys { } /**
 * 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 DatabaseToolsClient { protected static serviceEndpointTemplate = "https://dbtools.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : DatabaseToolsWaiter ; 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 + "/20201005" ; if ( this . logger ) this . logger . info ( `DatabaseToolsClient 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 ( DatabaseToolsClient . 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 ( DatabaseToolsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new DatabaseToolsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeDatabaseToolsConnectionCompartmentRequest return throws example Click  https to see how to use ChangeDatabaseToolsConnectionCompartment API.
      public async changeDatabaseToolsConnectionCompartment ( changeDatabaseToolsConnectionCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#changeDatabaseToolsConnectionCompartment." ) ; const pathParams = { "{databaseToolsConnectionId}" : changeDatabaseToolsConnectionCompartmentRequest . databaseToolsConnectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeDatabaseToolsConnectionCompartmentRequest . ifMatch , "opc-request-id" : changeDatabaseToolsConnectionCompartmentRequest . opcRequestId , "opc-retry-token" : changeDatabaseToolsConnectionCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeDatabaseToolsConnectionCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections/{databaseToolsConnectionId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeDatabaseToolsConnectionCompartmentRequest . changeDatabaseToolsConnectionCompartmentDetails , "ChangeDatabaseToolsConnectionCompartmentDetails" , model . ChangeDatabaseToolsConnectionCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeDatabaseToolsConnectionCompartmentResponse > { } , 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 ChangeDatabaseToolsPrivateEndpointCompartmentRequest return throws example Click  https to see how to use ChangeDatabaseToolsPrivateEndpointCompartment API.
      public async changeDatabaseToolsPrivateEndpointCompartment ( changeDatabaseToolsPrivateEndpointCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#changeDatabaseToolsPrivateEndpointCompartment." ) ; const pathParams = { "{databaseToolsPrivateEndpointId}" : changeDatabaseToolsPrivateEndpointCompartmentRequest . databaseToolsPrivateEndpointId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeDatabaseToolsPrivateEndpointCompartmentRequest . ifMatch , "opc-request-id" : changeDatabaseToolsPrivateEndpointCompartmentRequest . opcRequestId , "opc-retry-token" : changeDatabaseToolsPrivateEndpointCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeDatabaseToolsPrivateEndpointCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeDatabaseToolsPrivateEndpointCompartmentRequest . changeDatabaseToolsPrivateEndpointCompartmentDetails , "ChangeDatabaseToolsPrivateEndpointCompartmentDetails" , model . ChangeDatabaseToolsPrivateEndpointCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeDatabaseToolsPrivateEndpointCompartmentResponse > { } , 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 CreateDatabaseToolsConnectionRequest return throws example Click  https to see how to use CreateDatabaseToolsConnection API.
      public async createDatabaseToolsConnection ( createDatabaseToolsConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#createDatabaseToolsConnection." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDatabaseToolsConnectionRequest . opcRetryToken , "opc-request-id" : createDatabaseToolsConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDatabaseToolsConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDatabaseToolsConnectionRequest . createDatabaseToolsConnectionDetails , "CreateDatabaseToolsConnectionDetails" , model . CreateDatabaseToolsConnectionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDatabaseToolsConnectionResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsConnection" , bodyModel : model . DatabaseToolsConnection , type : "model.DatabaseToolsConnection" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { 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 CreateDatabaseToolsPrivateEndpointRequest return throws example Click  https to see how to use CreateDatabaseToolsPrivateEndpoint API.
      public async createDatabaseToolsPrivateEndpoint ( createDatabaseToolsPrivateEndpointRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#createDatabaseToolsPrivateEndpoint." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDatabaseToolsPrivateEndpointRequest . opcRetryToken , "opc-request-id" : createDatabaseToolsPrivateEndpointRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDatabaseToolsPrivateEndpointRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsPrivateEndpoints" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDatabaseToolsPrivateEndpointRequest . createDatabaseToolsPrivateEndpointDetails , "CreateDatabaseToolsPrivateEndpointDetails" , model . CreateDatabaseToolsPrivateEndpointDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDatabaseToolsPrivateEndpointResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsPrivateEndpoint" , bodyModel : model . DatabaseToolsPrivateEndpoint , type : "model.DatabaseToolsPrivateEndpoint" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { 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 DeleteDatabaseToolsConnectionRequest return throws example Click  https to see how to use DeleteDatabaseToolsConnection API.
      public async deleteDatabaseToolsConnection ( deleteDatabaseToolsConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#deleteDatabaseToolsConnection." ) ; const pathParams = { "{databaseToolsConnectionId}" : deleteDatabaseToolsConnectionRequest . databaseToolsConnectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDatabaseToolsConnectionRequest . ifMatch , "opc-request-id" : deleteDatabaseToolsConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDatabaseToolsConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections/{databaseToolsConnectionId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDatabaseToolsConnectionResponse > { } , 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 DeleteDatabaseToolsPrivateEndpointRequest return throws example Click  https to see how to use DeleteDatabaseToolsPrivateEndpoint API.
      public async deleteDatabaseToolsPrivateEndpoint ( deleteDatabaseToolsPrivateEndpointRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#deleteDatabaseToolsPrivateEndpoint." ) ; const pathParams = { "{databaseToolsPrivateEndpointId}" : deleteDatabaseToolsPrivateEndpointRequest . databaseToolsPrivateEndpointId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDatabaseToolsPrivateEndpointRequest . ifMatch , "opc-request-id" : deleteDatabaseToolsPrivateEndpointRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDatabaseToolsPrivateEndpointRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDatabaseToolsPrivateEndpointResponse > { } , 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 GetDatabaseToolsConnectionRequest return throws example Click  https to see how to use GetDatabaseToolsConnection API.
      public async getDatabaseToolsConnection ( getDatabaseToolsConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#getDatabaseToolsConnection." ) ; const pathParams = { "{databaseToolsConnectionId}" : getDatabaseToolsConnectionRequest . databaseToolsConnectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDatabaseToolsConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDatabaseToolsConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections/{databaseToolsConnectionId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDatabaseToolsConnectionResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsConnection" , bodyModel : model . DatabaseToolsConnection , type : "model.DatabaseToolsConnection" , 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 GetDatabaseToolsEndpointServiceRequest return throws example Click  https to see how to use GetDatabaseToolsEndpointService API.
      public async getDatabaseToolsEndpointService ( getDatabaseToolsEndpointServiceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#getDatabaseToolsEndpointService." ) ; const pathParams = { "{databaseToolsEndpointServiceId}" : getDatabaseToolsEndpointServiceRequest . databaseToolsEndpointServiceId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDatabaseToolsEndpointServiceRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDatabaseToolsEndpointServiceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsEndpointServices/{databaseToolsEndpointServiceId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDatabaseToolsEndpointServiceResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsEndpointService" , bodyModel : model . DatabaseToolsEndpointService , type : "model.DatabaseToolsEndpointService" , 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 GetDatabaseToolsPrivateEndpointRequest return throws example Click  https to see how to use GetDatabaseToolsPrivateEndpoint API.
      public async getDatabaseToolsPrivateEndpoint ( getDatabaseToolsPrivateEndpointRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#getDatabaseToolsPrivateEndpoint." ) ; const pathParams = { "{databaseToolsPrivateEndpointId}" : getDatabaseToolsPrivateEndpointRequest . databaseToolsPrivateEndpointId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDatabaseToolsPrivateEndpointRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDatabaseToolsPrivateEndpointRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDatabaseToolsPrivateEndpointResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsPrivateEndpoint" , bodyModel : model . DatabaseToolsPrivateEndpoint , type : "model.DatabaseToolsPrivateEndpoint" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetWorkRequestRequest return throws example Click  https to see how to use GetWorkRequest API.
      public async getWorkRequest ( getWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListDatabaseToolsConnectionsRequest return throws example Click  https to see how to use ListDatabaseToolsConnections API.
      public async listDatabaseToolsConnections ( listDatabaseToolsConnectionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#listDatabaseToolsConnections." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDatabaseToolsConnectionsRequest . compartmentId , "lifecycleState" : listDatabaseToolsConnectionsRequest . lifecycleState , "displayName" : listDatabaseToolsConnectionsRequest . displayName , "type" : listDatabaseToolsConnectionsRequest . type , "limit" : listDatabaseToolsConnectionsRequest . limit , "page" : listDatabaseToolsConnectionsRequest . page , "sortOrder" : listDatabaseToolsConnectionsRequest . sortOrder , "sortBy" : listDatabaseToolsConnectionsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDatabaseToolsConnectionsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDatabaseToolsConnectionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDatabaseToolsConnectionsResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsConnectionCollection" , bodyModel : model . DatabaseToolsConnectionCollection , type : "model.DatabaseToolsConnectionCollection" , 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 ListDatabaseToolsEndpointServicesRequest return throws example Click  https to see how to use ListDatabaseToolsEndpointServices API.
      public async listDatabaseToolsEndpointServices ( listDatabaseToolsEndpointServicesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#listDatabaseToolsEndpointServices." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDatabaseToolsEndpointServicesRequest . compartmentId , "limit" : listDatabaseToolsEndpointServicesRequest . limit , "page" : listDatabaseToolsEndpointServicesRequest . page , "sortOrder" : listDatabaseToolsEndpointServicesRequest . sortOrder , "sortBy" : listDatabaseToolsEndpointServicesRequest . sortBy , "lifecycleState" : listDatabaseToolsEndpointServicesRequest . lifecycleState , "displayName" : listDatabaseToolsEndpointServicesRequest . displayName , "name" : listDatabaseToolsEndpointServicesRequest . name } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDatabaseToolsEndpointServicesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDatabaseToolsEndpointServicesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsEndpointServices" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDatabaseToolsEndpointServicesResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsEndpointServiceCollection" , bodyModel : model . DatabaseToolsEndpointServiceCollection , type : "model.DatabaseToolsEndpointServiceCollection" , 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 ListDatabaseToolsPrivateEndpointsRequest return throws example Click  https to see how to use ListDatabaseToolsPrivateEndpoints API.
      public async listDatabaseToolsPrivateEndpoints ( listDatabaseToolsPrivateEndpointsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#listDatabaseToolsPrivateEndpoints." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDatabaseToolsPrivateEndpointsRequest . compartmentId , "subnetId" : listDatabaseToolsPrivateEndpointsRequest . subnetId , "limit" : listDatabaseToolsPrivateEndpointsRequest . limit , "page" : listDatabaseToolsPrivateEndpointsRequest . page , "sortOrder" : listDatabaseToolsPrivateEndpointsRequest . sortOrder , "sortBy" : listDatabaseToolsPrivateEndpointsRequest . sortBy , "endpointServiceId" : listDatabaseToolsPrivateEndpointsRequest . endpointServiceId , "lifecycleState" : listDatabaseToolsPrivateEndpointsRequest . lifecycleState , "displayName" : listDatabaseToolsPrivateEndpointsRequest . displayName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDatabaseToolsPrivateEndpointsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDatabaseToolsPrivateEndpointsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsPrivateEndpoints" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDatabaseToolsPrivateEndpointsResponse > { } , body : await response . json ( ) , bodyKey : "databaseToolsPrivateEndpointCollection" , bodyModel : model . DatabaseToolsPrivateEndpointCollection , type : "model.DatabaseToolsPrivateEndpointCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "sortOrder" : listWorkRequestErrorsRequest . sortOrder , "sortBy" : listWorkRequestErrorsRequest . sortBy , "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestErrorsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestErrorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/errors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestErrorsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestErrorCollection" , bodyModel : model . WorkRequestErrorCollection , type : "model.WorkRequestErrorCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestLogsRequest return throws example Click  https to see how to use ListWorkRequestLogs API.
      public async listWorkRequestLogs ( listWorkRequestLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "sortOrder" : listWorkRequestLogsRequest . sortOrder , "sortBy" : listWorkRequestLogsRequest . sortBy , "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestLogsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestLogsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/logs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestLogsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestLogEntryCollection" , bodyModel : model . WorkRequestLogEntryCollection , type : "model.WorkRequestLogEntryCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestsRequest return throws example Click  https to see how to use ListWorkRequests API.
      public async listWorkRequests ( listWorkRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "resourceIdentifier" : listWorkRequestsRequest . resourceIdentifier , "sortOrder" : listWorkRequestsRequest . sortOrder , "sortBy" : listWorkRequestsRequest . sortBy , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestCollection" , bodyModel : model . WorkRequestCollection , type : "model.WorkRequestCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateDatabaseToolsConnectionRequest return throws example Click  https to see how to use UpdateDatabaseToolsConnection API.
      public async updateDatabaseToolsConnection ( updateDatabaseToolsConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#updateDatabaseToolsConnection." ) ; const pathParams = { "{databaseToolsConnectionId}" : updateDatabaseToolsConnectionRequest . databaseToolsConnectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDatabaseToolsConnectionRequest . ifMatch , "opc-request-id" : updateDatabaseToolsConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDatabaseToolsConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections/{databaseToolsConnectionId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDatabaseToolsConnectionRequest . updateDatabaseToolsConnectionDetails , "UpdateDatabaseToolsConnectionDetails" , model . UpdateDatabaseToolsConnectionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDatabaseToolsConnectionResponse > { } , 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 UpdateDatabaseToolsPrivateEndpointRequest return throws example Click  https to see how to use UpdateDatabaseToolsPrivateEndpoint API.
      public async updateDatabaseToolsPrivateEndpoint ( updateDatabaseToolsPrivateEndpointRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#updateDatabaseToolsPrivateEndpoint." ) ; const pathParams = { "{databaseToolsPrivateEndpointId}" : updateDatabaseToolsPrivateEndpointRequest . databaseToolsPrivateEndpointId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDatabaseToolsPrivateEndpointRequest . ifMatch , "opc-request-id" : updateDatabaseToolsPrivateEndpointRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDatabaseToolsPrivateEndpointRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDatabaseToolsPrivateEndpointRequest . updateDatabaseToolsPrivateEndpointDetails , "UpdateDatabaseToolsPrivateEndpointDetails" , model . UpdateDatabaseToolsPrivateEndpointDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDatabaseToolsPrivateEndpointResponse > { } , 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 ValidateDatabaseToolsConnectionRequest return throws example Click  https to see how to use ValidateDatabaseToolsConnection API.
      public async validateDatabaseToolsConnection ( validateDatabaseToolsConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DatabaseToolsClient#validateDatabaseToolsConnection." ) ; const pathParams = { "{databaseToolsConnectionId}" : validateDatabaseToolsConnectionRequest . databaseToolsConnectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : validateDatabaseToolsConnectionRequest . ifMatch , "opc-request-id" : validateDatabaseToolsConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , validateDatabaseToolsConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseToolsConnections/{databaseToolsConnectionId}/actions/validateConnection" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( validateDatabaseToolsConnectionRequest . validateDatabaseToolsConnectionDetails , "ValidateDatabaseToolsConnectionDetails" , model . ValidateDatabaseToolsConnectionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ValidateDatabaseToolsConnectionResponse > { } , body : await response . json ( ) , bodyKey : "validateDatabaseToolsConnectionResult" , bodyModel : model . ValidateDatabaseToolsConnectionResult , type : "model.ValidateDatabaseToolsConnectionResult" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }