/**
 * MySQL Database Service API
 * The API for the MySQL Database Service
 * OpenAPI spec version: 20190415
 * Contact: mysql-cloud-dev_ww_grp@oracle.com
 *
 * 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 { ChannelsWaiter } from "./channels-waiter" ; import { DbBackupsWaiter } from "./dbbackups-waiter" ; import { DbSystemWaiter } from "./dbsystem-waiter" ; import { MysqlaasWaiter } from "./mysqlaas-waiter" ; import { WorkRequestsWaiter } from "./workrequests-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum ChannelsApiKeys { } /**
 * 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 ChannelsClient { protected static serviceEndpointTemplate = "https://mysql.{region}.ocp.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : ChannelsWaiter ; 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 + "/20190415" ; if ( this . logger ) this . logger . info ( `ChannelsClient 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 ( ChannelsClient . 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 ( ChannelsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new ChannelsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateChannelRequest return throws example Click  https to see how to use CreateChannel API.
      public async createChannel ( createChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#createChannel." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createChannelRequest . opcRequestId , "opc-retry-token" : createChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createChannelRequest . createChannelDetails , "CreateChannelDetails" , model . CreateChannelDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateChannelResponse > { } , body : await response . json ( ) , bodyKey : "channel" , bodyModel : model . Channel , type : "model.Channel" , 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 DeleteChannelRequest return throws example Click  https to see how to use DeleteChannel API.
      public async deleteChannel ( deleteChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#deleteChannel." ) ; const pathParams = { "{channelId}" : deleteChannelRequest . channelId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteChannelRequest . ifMatch , "opc-request-id" : deleteChannelRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels/{channelId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteChannelResponse > { } , responseHeaders : [ { 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 GetChannelRequest return throws example Click  https to see how to use GetChannel API.
      public async getChannel ( getChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#getChannel." ) ; const pathParams = { "{channelId}" : getChannelRequest . channelId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getChannelRequest . opcRequestId , "if-none-match" : getChannelRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels/{channelId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetChannelResponse > { } , body : await response . json ( ) , bodyKey : "channel" , bodyModel : model . Channel , type : "model.Channel" , 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 ListChannelsRequest return throws example Click  https to see how to use ListChannels API.
      public async listChannels ( listChannelsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#listChannels." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listChannelsRequest . compartmentId , "dbSystemId" : listChannelsRequest . dbSystemId , "channelId" : listChannelsRequest . channelId , "displayName" : listChannelsRequest . displayName , "lifecycleState" : listChannelsRequest . lifecycleState , "isEnabled" : listChannelsRequest . isEnabled , "sortBy" : listChannelsRequest . sortBy , "sortOrder" : listChannelsRequest . sortOrder , "limit" : listChannelsRequest . limit , "page" : listChannelsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listChannelsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listChannelsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListChannelsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ChannelSummary , type : "Array<model.ChannelSummary>" , 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 listAllChannels ( request ) { return paginateRecords ( request , req => this . listChannels ( req ) ) ; } param request public listAllChannelsResponses ( request ) { return paginateResponses ( request , req => this . listChannels ( req ) ) ; } param request public listChannelsRecordIterator ( request ) { return paginateRecords ( request , req => this . listChannels ( req ) ) ; } param request public listChannelsResponseIterator ( request ) { return paginateResponses ( request , req => this . listChannels ( req ) ) ; } param ResetChannelRequest return throws example Click  https to see how to use ResetChannel API.
      public async resetChannel ( resetChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#resetChannel." ) ; const pathParams = { "{channelId}" : resetChannelRequest . channelId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : resetChannelRequest . ifMatch , "opc-request-id" : resetChannelRequest . opcRequestId , "opc-retry-token" : resetChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , resetChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels/{channelId}/actions/reset" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ResetChannelResponse > { } , responseHeaders : [ { 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 ResumeChannelRequest return throws example Click  https to see how to use ResumeChannel API.
      public async resumeChannel ( resumeChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#resumeChannel." ) ; const pathParams = { "{channelId}" : resumeChannelRequest . channelId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : resumeChannelRequest . ifMatch , "opc-request-id" : resumeChannelRequest . opcRequestId , "opc-retry-token" : resumeChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , resumeChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels/{channelId}/actions/resume" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ResumeChannelResponse > { } , responseHeaders : [ { 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 UpdateChannelRequest return throws example Click  https to see how to use UpdateChannel API.
      public async updateChannel ( updateChannelRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ChannelsClient#updateChannel." ) ; const pathParams = { "{channelId}" : updateChannelRequest . channelId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateChannelRequest . ifMatch , "opc-request-id" : updateChannelRequest . opcRequestId , "opc-retry-token" : updateChannelRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateChannelRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/channels/{channelId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateChannelRequest . updateChannelDetails , "UpdateChannelDetails" , model . UpdateChannelDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateChannelResponse > { } , responseHeaders : [ { 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 ; } } } export enum DbBackupsApiKeys { } /**
 * 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 DbBackupsClient { protected static serviceEndpointTemplate = "https://mysql.{region}.ocp.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : DbBackupsWaiter ; 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 + "/20190415" ; if ( this . logger ) this . logger . info ( `DbBackupsClient 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 ( DbBackupsClient . 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 ( DbBackupsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new DbBackupsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeBackupCompartmentRequest return throws example Click  https to see how to use ChangeBackupCompartment API.
      public async changeBackupCompartment ( changeBackupCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbBackupsClient#changeBackupCompartment." ) ; const pathParams = { "{backupId}" : changeBackupCompartmentRequest . backupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeBackupCompartmentRequest . ifMatch , "opc-request-id" : changeBackupCompartmentRequest . opcRequestId , "opc-retry-token" : changeBackupCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeBackupCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/backups/{backupId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeBackupCompartmentRequest . changeBackupCompartmentDetails , "ChangeBackupCompartmentDetails" , model . ChangeBackupCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeBackupCompartmentResponse > { } , responseHeaders : [ { 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 CreateBackupRequest return throws example Click  https to see how to use CreateBackup API.
      public async createBackup ( createBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbBackupsClient#createBackup." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createBackupRequest . opcRequestId , "opc-retry-token" : createBackupRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/backups" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBackupRequest . createBackupDetails , "CreateBackupDetails" , model . CreateBackupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBackupResponse > { } , body : await response . json ( ) , bodyKey : "backup" , bodyModel : model . Backup , type : "model.Backup" , 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 DeleteBackupRequest return throws example Click  https to see how to use DeleteBackup API.
      public async deleteBackup ( deleteBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbBackupsClient#deleteBackup." ) ; const pathParams = { "{backupId}" : deleteBackupRequest . backupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteBackupRequest . ifMatch , "opc-request-id" : deleteBackupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/backups/{backupId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBackupResponse > { } , responseHeaders : [ { 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 GetBackupRequest return throws example Click  https to see how to use GetBackup API.
      public async getBackup ( getBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbBackupsClient#getBackup." ) ; const pathParams = { "{backupId}" : getBackupRequest . backupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBackupRequest . opcRequestId , "if-none-match" : getBackupRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/backups/{backupId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBackupResponse > { } , body : await response . json ( ) , bodyKey : "backup" , bodyModel : model . Backup , type : "model.Backup" , 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 ListBackupsRequest return throws example Click  https to see how to use ListBackups API.
      public async listBackups ( listBackupsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbBackupsClient#listBackups." ) ; const pathParams = { } ; const queryParams = { "backupId" : listBackupsRequest . backupId , "lifecycleState" : listBackupsRequest . lifecycleState , "compartmentId" : listBackupsRequest . compartmentId , "dbSystemId" : listBackupsRequest . dbSystemId , "displayName" : listBackupsRequest . displayName , "creationType" : listBackupsRequest . creationType , "sortBy" : listBackupsRequest . sortBy , "sortOrder" : listBackupsRequest . sortOrder , "limit" : listBackupsRequest . limit , "page" : listBackupsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBackupsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBackupsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/backups" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBackupsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . BackupSummary , type : "Array<model.BackupSummary>" , 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 listAllBackups ( request ) { return paginateRecords ( request , req => this . listBackups ( req ) ) ; } param request public listAllBackupsResponses ( request ) { return paginateResponses ( request , req => this . listBackups ( req ) ) ; } param request public listBackupsRecordIterator ( request ) { return paginateRecords ( request , req => this . listBackups ( req ) ) ; } param request public listBackupsResponseIterator ( request ) { return paginateResponses ( request , req => this . listBackups ( req ) ) ; } param UpdateBackupRequest return throws example Click  https to see how to use UpdateBackup API.
      public async updateBackup ( updateBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbBackupsClient#updateBackup." ) ; const pathParams = { "{backupId}" : updateBackupRequest . backupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateBackupRequest . ifMatch , "opc-request-id" : updateBackupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/backups/{backupId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBackupRequest . updateBackupDetails , "UpdateBackupDetails" , model . UpdateBackupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBackupResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum DbSystemApiKeys { } /**
 * 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 DbSystemClient { protected static serviceEndpointTemplate = "https://mysql.{region}.ocp.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : DbSystemWaiter ; 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 + "/20190415" ; if ( this . logger ) this . logger . info ( `DbSystemClient 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 ( DbSystemClient . 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 ( DbSystemClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new DbSystemWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param AddAnalyticsClusterRequest return throws example Click  https to see how to use AddAnalyticsCluster API.
      public async addAnalyticsCluster ( addAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#addAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : addAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : addAnalyticsClusterRequest . ifMatch , "opc-request-id" : addAnalyticsClusterRequest . opcRequestId , "opc-retry-token" : addAnalyticsClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , addAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster/actions/add" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( addAnalyticsClusterRequest . addAnalyticsClusterDetails , "AddAnalyticsClusterDetails" , model . AddAnalyticsClusterDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . AddAnalyticsClusterResponse > { } , body : await response . json ( ) , bodyKey : "analyticsCluster" , bodyModel : model . AnalyticsCluster , type : "model.AnalyticsCluster" , 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 AddHeatWaveClusterRequest return throws example Click  https to see how to use AddHeatWaveCluster API.
      public async addHeatWaveCluster ( addHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#addHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : addHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : addHeatWaveClusterRequest . ifMatch , "opc-request-id" : addHeatWaveClusterRequest . opcRequestId , "opc-retry-token" : addHeatWaveClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , addHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster/actions/add" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( addHeatWaveClusterRequest . addHeatWaveClusterDetails , "AddHeatWaveClusterDetails" , model . AddHeatWaveClusterDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . AddHeatWaveClusterResponse > { } , body : await response . json ( ) , bodyKey : "heatWaveCluster" , bodyModel : model . HeatWaveCluster , type : "model.HeatWaveCluster" , 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 CreateDbSystemRequest return throws example Click  https to see how to use CreateDbSystem API.
      public async createDbSystem ( createDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#createDbSystem." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createDbSystemRequest . opcRequestId , "opc-retry-token" : createDbSystemRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDbSystemRequest . createDbSystemDetails , "CreateDbSystemDetails" , model . CreateDbSystemDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDbSystemResponse > { } , body : await response . json ( ) , bodyKey : "dbSystem" , bodyModel : model . DbSystem , type : "model.DbSystem" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , 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 DeleteAnalyticsClusterRequest return throws example Click  https to see how to use DeleteAnalyticsCluster API.
      public async deleteAnalyticsCluster ( deleteAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#deleteAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : deleteAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteAnalyticsClusterRequest . ifMatch , "opc-request-id" : deleteAnalyticsClusterRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteAnalyticsClusterResponse > { } , responseHeaders : [ { 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 DeleteDbSystemRequest return throws example Click  https to see how to use DeleteDbSystem API.
      public async deleteDbSystem ( deleteDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#deleteDbSystem." ) ; const pathParams = { "{dbSystemId}" : deleteDbSystemRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDbSystemRequest . ifMatch , "opc-request-id" : deleteDbSystemRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDbSystemResponse > { } , responseHeaders : [ { 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 DeleteHeatWaveClusterRequest return throws example Click  https to see how to use DeleteHeatWaveCluster API.
      public async deleteHeatWaveCluster ( deleteHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#deleteHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : deleteHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteHeatWaveClusterRequest . ifMatch , "opc-request-id" : deleteHeatWaveClusterRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteHeatWaveClusterResponse > { } , responseHeaders : [ { 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 GenerateAnalyticsClusterMemoryEstimateRequest return throws example Click  https to see how to use GenerateAnalyticsClusterMemoryEstimate API.
      public async generateAnalyticsClusterMemoryEstimate ( generateAnalyticsClusterMemoryEstimateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#generateAnalyticsClusterMemoryEstimate." ) ; const pathParams = { "{dbSystemId}" : generateAnalyticsClusterMemoryEstimateRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : generateAnalyticsClusterMemoryEstimateRequest . opcRequestId , "opc-retry-token" : generateAnalyticsClusterMemoryEstimateRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , generateAnalyticsClusterMemoryEstimateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsClusterMemoryEstimate/actions/generate" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GenerateAnalyticsClusterMemoryEstimateResponse > { } , body : await response . json ( ) , bodyKey : "analyticsClusterMemoryEstimate" , bodyModel : model . AnalyticsClusterMemoryEstimate , type : "model.AnalyticsClusterMemoryEstimate" , responseHeaders : [ { 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 GenerateHeatWaveClusterMemoryEstimateRequest return throws example Click  https to see how to use GenerateHeatWaveClusterMemoryEstimate API.
      public async generateHeatWaveClusterMemoryEstimate ( generateHeatWaveClusterMemoryEstimateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#generateHeatWaveClusterMemoryEstimate." ) ; const pathParams = { "{dbSystemId}" : generateHeatWaveClusterMemoryEstimateRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : generateHeatWaveClusterMemoryEstimateRequest . opcRequestId , "opc-retry-token" : generateHeatWaveClusterMemoryEstimateRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , generateHeatWaveClusterMemoryEstimateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate/actions/generate" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GenerateHeatWaveClusterMemoryEstimateResponse > { } , body : await response . json ( ) , bodyKey : "heatWaveClusterMemoryEstimate" , bodyModel : model . HeatWaveClusterMemoryEstimate , type : "model.HeatWaveClusterMemoryEstimate" , responseHeaders : [ { 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 GetAnalyticsClusterRequest return throws example Click  https to see how to use GetAnalyticsCluster API.
      public async getAnalyticsCluster ( getAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#getAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : getAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAnalyticsClusterRequest . opcRequestId , "if-none-match" : getAnalyticsClusterRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAnalyticsClusterResponse > { } , body : await response . json ( ) , bodyKey : "analyticsCluster" , bodyModel : model . AnalyticsCluster , type : "model.AnalyticsCluster" , 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 GetAnalyticsClusterMemoryEstimateRequest return throws example Click  https to see how to use GetAnalyticsClusterMemoryEstimate API.
      public async getAnalyticsClusterMemoryEstimate ( getAnalyticsClusterMemoryEstimateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#getAnalyticsClusterMemoryEstimate." ) ; const pathParams = { "{dbSystemId}" : getAnalyticsClusterMemoryEstimateRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAnalyticsClusterMemoryEstimateRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAnalyticsClusterMemoryEstimateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsClusterMemoryEstimate" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAnalyticsClusterMemoryEstimateResponse > { } , body : await response . json ( ) , bodyKey : "analyticsClusterMemoryEstimate" , bodyModel : model . AnalyticsClusterMemoryEstimate , type : "model.AnalyticsClusterMemoryEstimate" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetDbSystemRequest return throws example Click  https to see how to use GetDbSystem API.
      public async getDbSystem ( getDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#getDbSystem." ) ; const pathParams = { "{dbSystemId}" : getDbSystemRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDbSystemRequest . opcRequestId , "if-none-match" : getDbSystemRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDbSystemResponse > { } , body : await response . json ( ) , bodyKey : "dbSystem" , bodyModel : model . DbSystem , type : "model.DbSystem" , 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 GetHeatWaveClusterRequest return throws example Click  https to see how to use GetHeatWaveCluster API.
      public async getHeatWaveCluster ( getHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#getHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : getHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getHeatWaveClusterRequest . opcRequestId , "if-none-match" : getHeatWaveClusterRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetHeatWaveClusterResponse > { } , body : await response . json ( ) , bodyKey : "heatWaveCluster" , bodyModel : model . HeatWaveCluster , type : "model.HeatWaveCluster" , 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 GetHeatWaveClusterMemoryEstimateRequest return throws example Click  https to see how to use GetHeatWaveClusterMemoryEstimate API.
      public async getHeatWaveClusterMemoryEstimate ( getHeatWaveClusterMemoryEstimateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#getHeatWaveClusterMemoryEstimate." ) ; const pathParams = { "{dbSystemId}" : getHeatWaveClusterMemoryEstimateRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getHeatWaveClusterMemoryEstimateRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getHeatWaveClusterMemoryEstimateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetHeatWaveClusterMemoryEstimateResponse > { } , body : await response . json ( ) , bodyKey : "heatWaveClusterMemoryEstimate" , bodyModel : model . HeatWaveClusterMemoryEstimate , type : "model.HeatWaveClusterMemoryEstimate" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListDbSystemsRequest return throws example Click  https to see how to use ListDbSystems API.
      public async listDbSystems ( listDbSystemsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#listDbSystems." ) ; const pathParams = { } ; const queryParams = { "isAnalyticsClusterAttached" : listDbSystemsRequest . isAnalyticsClusterAttached , "isHeatWaveClusterAttached" : listDbSystemsRequest . isHeatWaveClusterAttached , "compartmentId" : listDbSystemsRequest . compartmentId , "dbSystemId" : listDbSystemsRequest . dbSystemId , "displayName" : listDbSystemsRequest . displayName , "lifecycleState" : listDbSystemsRequest . lifecycleState , "configurationId" : listDbSystemsRequest . configurationId , "isUpToDate" : listDbSystemsRequest . isUpToDate , "sortBy" : listDbSystemsRequest . sortBy , "sortOrder" : listDbSystemsRequest . sortOrder , "limit" : listDbSystemsRequest . limit , "page" : listDbSystemsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDbSystemsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDbSystemsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDbSystemsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . DbSystemSummary , type : "Array<model.DbSystemSummary>" , 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 listAllDbSystems ( request ) { return paginateRecords ( request , req => this . listDbSystems ( req ) ) ; } param request public listAllDbSystemsResponses ( request ) { return paginateResponses ( request , req => this . listDbSystems ( req ) ) ; } param request public listDbSystemsRecordIterator ( request ) { return paginateRecords ( request , req => this . listDbSystems ( req ) ) ; } param request public listDbSystemsResponseIterator ( request ) { return paginateResponses ( request , req => this . listDbSystems ( req ) ) ; } param RestartAnalyticsClusterRequest return throws example Click  https to see how to use RestartAnalyticsCluster API.
      public async restartAnalyticsCluster ( restartAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#restartAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : restartAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restartAnalyticsClusterRequest . ifMatch , "opc-request-id" : restartAnalyticsClusterRequest . opcRequestId , "opc-retry-token" : restartAnalyticsClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restartAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster/actions/restart" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestartAnalyticsClusterResponse > { } , responseHeaders : [ { 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 RestartDbSystemRequest return throws example Click  https to see how to use RestartDbSystem API.
      public async restartDbSystem ( restartDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#restartDbSystem." ) ; const pathParams = { "{dbSystemId}" : restartDbSystemRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restartDbSystemRequest . ifMatch , "opc-request-id" : restartDbSystemRequest . opcRequestId , "opc-retry-token" : restartDbSystemRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restartDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/actions/restart" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( restartDbSystemRequest . restartDbSystemDetails , "RestartDbSystemDetails" , model . RestartDbSystemDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestartDbSystemResponse > { } , responseHeaders : [ { 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 RestartHeatWaveClusterRequest return throws example Click  https to see how to use RestartHeatWaveCluster API.
      public async restartHeatWaveCluster ( restartHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#restartHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : restartHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restartHeatWaveClusterRequest . ifMatch , "opc-request-id" : restartHeatWaveClusterRequest . opcRequestId , "opc-retry-token" : restartHeatWaveClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restartHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster/actions/restart" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestartHeatWaveClusterResponse > { } , responseHeaders : [ { 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 StartAnalyticsClusterRequest return throws example Click  https to see how to use StartAnalyticsCluster API.
      public async startAnalyticsCluster ( startAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#startAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : startAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : startAnalyticsClusterRequest . ifMatch , "opc-request-id" : startAnalyticsClusterRequest . opcRequestId , "opc-retry-token" : startAnalyticsClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , startAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster/actions/start" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StartAnalyticsClusterResponse > { } , responseHeaders : [ { 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 StartDbSystemRequest return throws example Click  https to see how to use StartDbSystem API.
      public async startDbSystem ( startDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#startDbSystem." ) ; const pathParams = { "{dbSystemId}" : startDbSystemRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : startDbSystemRequest . ifMatch , "opc-request-id" : startDbSystemRequest . opcRequestId , "opc-retry-token" : startDbSystemRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , startDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/actions/start" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StartDbSystemResponse > { } , responseHeaders : [ { 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 StartHeatWaveClusterRequest return throws example Click  https to see how to use StartHeatWaveCluster API.
      public async startHeatWaveCluster ( startHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#startHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : startHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : startHeatWaveClusterRequest . ifMatch , "opc-request-id" : startHeatWaveClusterRequest . opcRequestId , "opc-retry-token" : startHeatWaveClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , startHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster/actions/start" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StartHeatWaveClusterResponse > { } , responseHeaders : [ { 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 StopAnalyticsClusterRequest return throws example Click  https to see how to use StopAnalyticsCluster API.
      public async stopAnalyticsCluster ( stopAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#stopAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : stopAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : stopAnalyticsClusterRequest . ifMatch , "opc-request-id" : stopAnalyticsClusterRequest . opcRequestId , "opc-retry-token" : stopAnalyticsClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , stopAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster/actions/stop" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StopAnalyticsClusterResponse > { } , responseHeaders : [ { 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 StopDbSystemRequest return throws example Click  https to see how to use StopDbSystem API.
        public async stopDbSystem ( stopDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#stopDbSystem." ) ; const pathParams = { "{dbSystemId}" : stopDbSystemRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : stopDbSystemRequest . ifMatch , "opc-request-id" : stopDbSystemRequest . opcRequestId , "opc-retry-token" : stopDbSystemRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , stopDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/actions/stop" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( stopDbSystemRequest . stopDbSystemDetails , "StopDbSystemDetails" , model . StopDbSystemDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StopDbSystemResponse > { } , responseHeaders : [ { 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 StopHeatWaveClusterRequest return throws example Click  https to see how to use StopHeatWaveCluster API.
      public async stopHeatWaveCluster ( stopHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#stopHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : stopHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : stopHeatWaveClusterRequest . ifMatch , "opc-request-id" : stopHeatWaveClusterRequest . opcRequestId , "opc-retry-token" : stopHeatWaveClusterRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , stopHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster/actions/stop" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StopHeatWaveClusterResponse > { } , responseHeaders : [ { 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 UpdateAnalyticsClusterRequest return throws example Click  https to see how to use UpdateAnalyticsCluster API.
      public async updateAnalyticsCluster ( updateAnalyticsClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#updateAnalyticsCluster." ) ; const pathParams = { "{dbSystemId}" : updateAnalyticsClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateAnalyticsClusterRequest . ifMatch , "opc-request-id" : updateAnalyticsClusterRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateAnalyticsClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/analyticsCluster" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateAnalyticsClusterRequest . updateAnalyticsClusterDetails , "UpdateAnalyticsClusterDetails" , model . UpdateAnalyticsClusterDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateAnalyticsClusterResponse > { } , responseHeaders : [ { 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 UpdateDbSystemRequest return throws example Click  https to see how to use UpdateDbSystem API.
        public async updateDbSystem ( updateDbSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#updateDbSystem." ) ; const pathParams = { "{dbSystemId}" : updateDbSystemRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDbSystemRequest . ifMatch , "opc-request-id" : updateDbSystemRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDbSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDbSystemRequest . updateDbSystemDetails , "UpdateDbSystemDetails" , model . UpdateDbSystemDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDbSystemResponse > { } , responseHeaders : [ { 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 UpdateHeatWaveClusterRequest return throws example Click  https to see how to use UpdateHeatWaveCluster API.
      public async updateHeatWaveCluster ( updateHeatWaveClusterRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DbSystemClient#updateHeatWaveCluster." ) ; const pathParams = { "{dbSystemId}" : updateHeatWaveClusterRequest . dbSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateHeatWaveClusterRequest . ifMatch , "opc-request-id" : updateHeatWaveClusterRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateHeatWaveClusterRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/dbSystems/{dbSystemId}/heatWaveCluster" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateHeatWaveClusterRequest . updateHeatWaveClusterDetails , "UpdateHeatWaveClusterDetails" , model . UpdateHeatWaveClusterDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateHeatWaveClusterResponse > { } , responseHeaders : [ { 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 ; } } } export enum MysqlaasApiKeys { } /**
 * 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 MysqlaasClient { protected static serviceEndpointTemplate = "https://mysql.{region}.ocp.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : MysqlaasWaiter ; 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 + "/20190415" ; if ( this . logger ) this . logger . info ( `MysqlaasClient 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 ( MysqlaasClient . 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 ( MysqlaasClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new MysqlaasWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateConfigurationRequest return throws example Click  https to see how to use CreateConfiguration API.
      public async createConfiguration ( createConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#createConfiguration." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createConfigurationRequest . opcRequestId , "opc-retry-token" : createConfigurationRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/configurations" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createConfigurationRequest . createConfigurationDetails , "CreateConfigurationDetails" , model . CreateConfigurationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateConfigurationResponse > { } , body : await response . json ( ) , bodyKey : "configuration" , bodyModel : model . Configuration , type : "model.Configuration" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { 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 DeleteConfigurationRequest return throws example Click  https to see how to use DeleteConfiguration API.
      public async deleteConfiguration ( deleteConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#deleteConfiguration." ) ; const pathParams = { "{configurationId}" : deleteConfigurationRequest . configurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteConfigurationRequest . ifMatch , "opc-request-id" : deleteConfigurationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/configurations/{configurationId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteConfigurationResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetConfigurationRequest return throws example Click  https to see how to use GetConfiguration API.
      public async getConfiguration ( getConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#getConfiguration." ) ; const pathParams = { "{configurationId}" : getConfigurationRequest . configurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getConfigurationRequest . opcRequestId , "if-none-match" : getConfigurationRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/configurations/{configurationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetConfigurationResponse > { } , body : await response . json ( ) , bodyKey : "configuration" , bodyModel : model . Configuration , type : "model.Configuration" , 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 ListConfigurationsRequest return throws example Click  https to see how to use ListConfigurations API.
        public async listConfigurations ( listConfigurationsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#listConfigurations." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listConfigurationsRequest . compartmentId , "configurationId" : listConfigurationsRequest . configurationId , "lifecycleState" : listConfigurationsRequest . lifecycleState , "type" : listConfigurationsRequest . type , "displayName" : listConfigurationsRequest . displayName , "shapeName" : listConfigurationsRequest . shapeName , "sortBy" : listConfigurationsRequest . sortBy , "sortOrder" : listConfigurationsRequest . sortOrder , "limit" : listConfigurationsRequest . limit , "page" : listConfigurationsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listConfigurationsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listConfigurationsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/configurations" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListConfigurationsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ConfigurationSummary , type : "Array<model.ConfigurationSummary>" , 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 listAllConfigurations ( request ) { return paginateRecords ( request , req => this . listConfigurations ( req ) ) ; } param request public listAllConfigurationsResponses ( request ) { return paginateResponses ( request , req => this . listConfigurations ( req ) ) ; } param request public listConfigurationsRecordIterator ( request ) { return paginateRecords ( request , req => this . listConfigurations ( req ) ) ; } param request public listConfigurationsResponseIterator ( request ) { return paginateResponses ( request , req => this . listConfigurations ( req ) ) ; } param ListShapesRequest return throws example Click  https to see how to use ListShapes API.
      public async listShapes ( listShapesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#listShapes." ) ; const pathParams = { } ; const queryParams = { "isSupportedFor" : listShapesRequest . isSupportedFor , "availabilityDomain" : listShapesRequest . availabilityDomain , "compartmentId" : listShapesRequest . compartmentId , "name" : listShapesRequest . name } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listShapesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listShapesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/shapes" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListShapesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ShapeSummary , type : "Array<model.ShapeSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListVersionsRequest return throws example Click  https to see how to use ListVersions API.
        public async listVersions ( listVersionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#listVersions." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listVersionsRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listVersionsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listVersionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/versions" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListVersionsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . VersionSummary , type : "Array<model.VersionSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateConfigurationRequest return throws example Click  https to see how to use UpdateConfiguration API.
      public async updateConfiguration ( updateConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation MysqlaasClient#updateConfiguration." ) ; const pathParams = { "{configurationId}" : updateConfigurationRequest . configurationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateConfigurationRequest . ifMatch , "opc-request-id" : updateConfigurationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/configurations/{configurationId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateConfigurationRequest . updateConfigurationDetails , "UpdateConfigurationDetails" , model . UpdateConfigurationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateConfigurationResponse > { } , body : await response . json ( ) , bodyKey : "configuration" , bodyModel : model . Configuration , type : "model.Configuration" , 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 ; } } } export enum WorkRequestsApiKeys { } /**
 * 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 WorkRequestsClient { protected static serviceEndpointTemplate = "https://mysql.{region}.ocp.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : WorkRequestsWaiter ; 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 + "/20190415" ; if ( this . logger ) this . logger . info ( `WorkRequestsClient 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 ( WorkRequestsClient . 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 ( WorkRequestsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new WorkRequestsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } 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 WorkRequestsClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-none-match" : getWorkRequestRequest . ifNoneMatch , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "Retry-After" ) , key : "retryAfter" , dataType : "number" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation WorkRequestsClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "limit" : listWorkRequestErrorsRequest . limit , "page" : listWorkRequestErrorsRequest . page } ; 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-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 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 WorkRequestsClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "limit" : listWorkRequestLogsRequest . limit , "page" : listWorkRequestLogsRequest . page } ; 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-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 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 WorkRequestsClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "sortBy" : listWorkRequestsRequest . sortBy , "sortOrder" : listWorkRequestsRequest . sortOrder , "limit" : listWorkRequestsRequest . limit , "page" : listWorkRequestsRequest . page } ; 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 ) ) ; } }