/**
 * GoldenGate API
 * Use the Oracle Cloud Infrastructure GoldenGate APIs to perform data replication operations.

 * OpenAPI spec version: 20200407
 *
 *
 * 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 { GoldenGateWaiter } from "./goldengate-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum GoldenGateApiKeys { } /**
 * 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 GoldenGateClient { protected static serviceEndpointTemplate = "https://goldengate.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : GoldenGateWaiter ; 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 + "/20200407" ; if ( this . logger ) this . logger . info ( `GoldenGateClient 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 ( GoldenGateClient . 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 ( GoldenGateClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new GoldenGateWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CancelDeploymentBackupRequest return throws example Click  https to see how to use CancelDeploymentBackup API.
      public async cancelDeploymentBackup ( cancelDeploymentBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#cancelDeploymentBackup." ) ; const pathParams = { "{deploymentBackupId}" : cancelDeploymentBackupRequest . deploymentBackupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : cancelDeploymentBackupRequest . ifMatch , "opc-request-id" : cancelDeploymentBackupRequest . opcRequestId , "opc-retry-token" : cancelDeploymentBackupRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelDeploymentBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups/{deploymentBackupId}/actions/cancel" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( cancelDeploymentBackupRequest . cancelDeploymentBackupDetails , "CancelDeploymentBackupDetails" , model . CancelDeploymentBackupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelDeploymentBackupResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeDatabaseRegistrationCompartmentRequest return throws example Click  https to see how to use ChangeDatabaseRegistrationCompartment API.
      public async changeDatabaseRegistrationCompartment ( changeDatabaseRegistrationCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#changeDatabaseRegistrationCompartment." ) ; const pathParams = { "{databaseRegistrationId}" : changeDatabaseRegistrationCompartmentRequest . databaseRegistrationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeDatabaseRegistrationCompartmentRequest . ifMatch , "opc-request-id" : changeDatabaseRegistrationCompartmentRequest . opcRequestId , "opc-retry-token" : changeDatabaseRegistrationCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeDatabaseRegistrationCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseRegistrations/{databaseRegistrationId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeDatabaseRegistrationCompartmentRequest . changeDatabaseRegistrationCompartmentDetails , "ChangeDatabaseRegistrationCompartmentDetails" , model . ChangeDatabaseRegistrationCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeDatabaseRegistrationCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeDeploymentBackupCompartmentRequest return throws example Click  https to see how to use ChangeDeploymentBackupCompartment API.
      public async changeDeploymentBackupCompartment ( changeDeploymentBackupCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#changeDeploymentBackupCompartment." ) ; const pathParams = { "{deploymentBackupId}" : changeDeploymentBackupCompartmentRequest . deploymentBackupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeDeploymentBackupCompartmentRequest . ifMatch , "opc-request-id" : changeDeploymentBackupCompartmentRequest . opcRequestId , "opc-retry-token" : changeDeploymentBackupCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeDeploymentBackupCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups/{deploymentBackupId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeDeploymentBackupCompartmentRequest . changeDeploymentBackupCompartmentDetails , "ChangeDeploymentBackupCompartmentDetails" , model . ChangeDeploymentBackupCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeDeploymentBackupCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeDeploymentCompartmentRequest return throws example Click  https to see how to use ChangeDeploymentCompartment API.
      public async changeDeploymentCompartment ( changeDeploymentCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#changeDeploymentCompartment." ) ; const pathParams = { "{deploymentId}" : changeDeploymentCompartmentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeDeploymentCompartmentRequest . ifMatch , "opc-request-id" : changeDeploymentCompartmentRequest . opcRequestId , "opc-retry-token" : changeDeploymentCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeDeploymentCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeDeploymentCompartmentRequest . changeDeploymentCompartmentDetails , "ChangeDeploymentCompartmentDetails" , model . ChangeDeploymentCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeDeploymentCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateDatabaseRegistrationRequest return throws example Click  https to see how to use CreateDatabaseRegistration API.
      public async createDatabaseRegistration ( createDatabaseRegistrationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#createDatabaseRegistration." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDatabaseRegistrationRequest . opcRetryToken , "opc-request-id" : createDatabaseRegistrationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDatabaseRegistrationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseRegistrations" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDatabaseRegistrationRequest . createDatabaseRegistrationDetails , "CreateDatabaseRegistrationDetails" , model . CreateDatabaseRegistrationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDatabaseRegistrationResponse > { } , body : await response . json ( ) , bodyKey : "databaseRegistration" , bodyModel : model . DatabaseRegistration , type : "model.DatabaseRegistration" , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateDeploymentRequest return throws example Click  https to see how to use CreateDeployment API.
      public async createDeployment ( createDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#createDeployment." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeploymentRequest . opcRetryToken , "opc-request-id" : createDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeploymentRequest . createDeploymentDetails , "CreateDeploymentDetails" , model . CreateDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateDeploymentBackupRequest return throws example Click  https to see how to use CreateDeploymentBackup API.
      public async createDeploymentBackup ( createDeploymentBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#createDeploymentBackup." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeploymentBackupRequest . opcRetryToken , "opc-request-id" : createDeploymentBackupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeploymentBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeploymentBackupRequest . createDeploymentBackupDetails , "CreateDeploymentBackupDetails" , model . CreateDeploymentBackupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeploymentBackupResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteDatabaseRegistrationRequest return throws example Click  https to see how to use DeleteDatabaseRegistration API.
      public async deleteDatabaseRegistration ( deleteDatabaseRegistrationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#deleteDatabaseRegistration." ) ; const pathParams = { "{databaseRegistrationId}" : deleteDatabaseRegistrationRequest . databaseRegistrationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDatabaseRegistrationRequest . ifMatch , "opc-request-id" : deleteDatabaseRegistrationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDatabaseRegistrationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseRegistrations/{databaseRegistrationId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDatabaseRegistrationResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteDeploymentRequest return throws example Click  https to see how to use DeleteDeployment API.
      public async deleteDeployment ( deleteDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#deleteDeployment." ) ; const pathParams = { "{deploymentId}" : deleteDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDeploymentRequest . ifMatch , "opc-request-id" : deleteDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDeploymentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteDeploymentBackupRequest return throws example Click  https to see how to use DeleteDeploymentBackup API.
      public async deleteDeploymentBackup ( deleteDeploymentBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#deleteDeploymentBackup." ) ; const pathParams = { "{deploymentBackupId}" : deleteDeploymentBackupRequest . deploymentBackupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDeploymentBackupRequest . ifMatch , "opc-request-id" : deleteDeploymentBackupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDeploymentBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups/{deploymentBackupId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDeploymentBackupResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetDatabaseRegistrationRequest return throws example Click  https to see how to use GetDatabaseRegistration API.
      public async getDatabaseRegistration ( getDatabaseRegistrationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#getDatabaseRegistration." ) ; const pathParams = { "{databaseRegistrationId}" : getDatabaseRegistrationRequest . databaseRegistrationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDatabaseRegistrationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDatabaseRegistrationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseRegistrations/{databaseRegistrationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDatabaseRegistrationResponse > { } , body : await response . json ( ) , bodyKey : "databaseRegistration" , bodyModel : model . DatabaseRegistration , type : "model.DatabaseRegistration" , 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 GetDeploymentRequest return throws example Click  https to see how to use GetDeployment API.
      public async getDeployment ( getDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#getDeployment." ) ; const pathParams = { "{deploymentId}" : getDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , 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 GetDeploymentBackupRequest return throws example Click  https to see how to use GetDeploymentBackup API.
      public async getDeploymentBackup ( getDeploymentBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#getDeploymentBackup." ) ; const pathParams = { "{deploymentBackupId}" : getDeploymentBackupRequest . deploymentBackupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeploymentBackupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeploymentBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups/{deploymentBackupId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeploymentBackupResponse > { } , body : await response . json ( ) , bodyKey : "deploymentBackup" , bodyModel : model . DeploymentBackup , type : "model.DeploymentBackup" , 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 GetDeploymentUpgradeRequest return throws example Click  https to see how to use GetDeploymentUpgrade API.
      public async getDeploymentUpgrade ( getDeploymentUpgradeRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#getDeploymentUpgrade." ) ; const pathParams = { "{deploymentUpgradeId}" : getDeploymentUpgradeRequest . deploymentUpgradeId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeploymentUpgradeRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeploymentUpgradeRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentUpgrades/{deploymentUpgradeId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeploymentUpgradeResponse > { } , body : await response . json ( ) , bodyKey : "deploymentUpgrade" , bodyModel : model . DeploymentUpgrade , type : "model.DeploymentUpgrade" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetWorkRequestRequest return throws example Click  https to see how to use GetWorkRequest API.
      public async getWorkRequest ( getWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListDatabaseRegistrationsRequest return throws example Click  https to see how to use ListDatabaseRegistrations API.
      public async listDatabaseRegistrations ( listDatabaseRegistrationsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listDatabaseRegistrations." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDatabaseRegistrationsRequest . compartmentId , "lifecycleState" : listDatabaseRegistrationsRequest . lifecycleState , "displayName" : listDatabaseRegistrationsRequest . displayName , "limit" : listDatabaseRegistrationsRequest . limit , "page" : listDatabaseRegistrationsRequest . page , "sortOrder" : listDatabaseRegistrationsRequest . sortOrder , "sortBy" : listDatabaseRegistrationsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDatabaseRegistrationsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDatabaseRegistrationsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseRegistrations" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDatabaseRegistrationsResponse > { } , body : await response . json ( ) , bodyKey : "databaseRegistrationCollection" , bodyModel : model . DatabaseRegistrationCollection , type : "model.DatabaseRegistrationCollection" , 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 ListDeploymentBackupsRequest return throws example Click  https to see how to use ListDeploymentBackups API.
      public async listDeploymentBackups ( listDeploymentBackupsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listDeploymentBackups." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDeploymentBackupsRequest . compartmentId , "deploymentId" : listDeploymentBackupsRequest . deploymentId , "lifecycleState" : listDeploymentBackupsRequest . lifecycleState , "displayName" : listDeploymentBackupsRequest . displayName , "limit" : listDeploymentBackupsRequest . limit , "page" : listDeploymentBackupsRequest . page , "sortOrder" : listDeploymentBackupsRequest . sortOrder , "sortBy" : listDeploymentBackupsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeploymentBackupsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeploymentBackupsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeploymentBackupsResponse > { } , body : await response . json ( ) , bodyKey : "deploymentBackupCollection" , bodyModel : model . DeploymentBackupCollection , type : "model.DeploymentBackupCollection" , 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 ListDeploymentUpgradesRequest return throws example Click  https to see how to use ListDeploymentUpgrades API.
      public async listDeploymentUpgrades ( listDeploymentUpgradesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listDeploymentUpgrades." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDeploymentUpgradesRequest . compartmentId , "deploymentId" : listDeploymentUpgradesRequest . deploymentId , "lifecycleState" : listDeploymentUpgradesRequest . lifecycleState , "displayName" : listDeploymentUpgradesRequest . displayName , "limit" : listDeploymentUpgradesRequest . limit , "page" : listDeploymentUpgradesRequest . page , "sortOrder" : listDeploymentUpgradesRequest . sortOrder , "sortBy" : listDeploymentUpgradesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeploymentUpgradesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeploymentUpgradesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentUpgrades" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeploymentUpgradesResponse > { } , body : await response . json ( ) , bodyKey : "deploymentUpgradeCollection" , bodyModel : model . DeploymentUpgradeCollection , type : "model.DeploymentUpgradeCollection" , 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 ListDeploymentsRequest return throws example Click  https to see how to use ListDeployments API.
      public async listDeployments ( listDeploymentsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listDeployments." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listDeploymentsRequest . compartmentId , "lifecycleState" : listDeploymentsRequest . lifecycleState , "lifecycleSubState" : listDeploymentsRequest . lifecycleSubState , "displayName" : listDeploymentsRequest . displayName , "fqdn" : listDeploymentsRequest . fqdn , "limit" : listDeploymentsRequest . limit , "page" : listDeploymentsRequest . page , "sortOrder" : listDeploymentsRequest . sortOrder , "sortBy" : listDeploymentsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeploymentsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeploymentsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeploymentsResponse > { } , body : await response . json ( ) , bodyKey : "deploymentCollection" , bodyModel : model . DeploymentCollection , type : "model.DeploymentCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestErrorsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestErrorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/errors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestErrorsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequestError , type : "Array<model.WorkRequestError>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestErrors ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listAllWorkRequestErrorsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param ListWorkRequestLogsRequest return throws example Click  https to see how to use ListWorkRequestLogs API.
      public async listWorkRequestLogs ( listWorkRequestLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestLogsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestLogsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/logs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestLogsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequestLogEntry , type : "Array<model.WorkRequestLogEntry>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestLogs ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listAllWorkRequestLogsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param ListWorkRequestsRequest return throws example Click  https to see how to use ListWorkRequests API.
      public async listWorkRequests ( listWorkRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "resourceId" : listWorkRequestsRequest . resourceId , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . WorkRequest , type : "Array<model.WorkRequest>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequests ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listAllWorkRequestsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param RestoreDeploymentRequest return throws example Click  https to see how to use RestoreDeployment API.
      public async restoreDeployment ( restoreDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#restoreDeployment." ) ; const pathParams = { "{deploymentBackupId}" : restoreDeploymentRequest . deploymentBackupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restoreDeploymentRequest . ifMatch , "opc-request-id" : restoreDeploymentRequest . opcRequestId , "opc-retry-token" : restoreDeploymentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups/{deploymentBackupId}/actions/restore" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( restoreDeploymentRequest . restoreDeploymentDetails , "RestoreDeploymentDetails" , model . RestoreDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreDeploymentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param StartDeploymentRequest return throws example Click  https to see how to use StartDeployment API.
      public async startDeployment ( startDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#startDeployment." ) ; const pathParams = { "{deploymentId}" : startDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : startDeploymentRequest . ifMatch , "opc-request-id" : startDeploymentRequest . opcRequestId , "opc-retry-token" : startDeploymentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , startDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}/actions/start" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( startDeploymentRequest . startDeploymentDetails , "StartDeploymentDetails" , model . StartDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StartDeploymentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param StopDeploymentRequest return throws example Click  https to see how to use StopDeployment API.
      public async stopDeployment ( stopDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#stopDeployment." ) ; const pathParams = { "{deploymentId}" : stopDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : stopDeploymentRequest . ifMatch , "opc-request-id" : stopDeploymentRequest . opcRequestId , "opc-retry-token" : stopDeploymentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , stopDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}/actions/stop" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( stopDeploymentRequest . stopDeploymentDetails , "StopDeploymentDetails" , model . StopDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StopDeploymentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateDatabaseRegistrationRequest return throws example Click  https to see how to use UpdateDatabaseRegistration API.
      public async updateDatabaseRegistration ( updateDatabaseRegistrationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#updateDatabaseRegistration." ) ; const pathParams = { "{databaseRegistrationId}" : updateDatabaseRegistrationRequest . databaseRegistrationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDatabaseRegistrationRequest . ifMatch , "opc-request-id" : updateDatabaseRegistrationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDatabaseRegistrationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/databaseRegistrations/{databaseRegistrationId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDatabaseRegistrationRequest . updateDatabaseRegistrationDetails , "UpdateDatabaseRegistrationDetails" , model . UpdateDatabaseRegistrationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDatabaseRegistrationResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateDeploymentRequest return throws example Click  https to see how to use UpdateDeployment API.
      public async updateDeployment ( updateDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#updateDeployment." ) ; const pathParams = { "{deploymentId}" : updateDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeploymentRequest . ifMatch , "opc-request-id" : updateDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeploymentRequest . updateDeploymentDetails , "UpdateDeploymentDetails" , model . UpdateDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeploymentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateDeploymentBackupRequest return throws example Click  https to see how to use UpdateDeploymentBackup API.
      public async updateDeploymentBackup ( updateDeploymentBackupRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#updateDeploymentBackup." ) ; const pathParams = { "{deploymentBackupId}" : updateDeploymentBackupRequest . deploymentBackupId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeploymentBackupRequest . ifMatch , "opc-request-id" : updateDeploymentBackupRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeploymentBackupRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deploymentBackups/{deploymentBackupId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeploymentBackupRequest . updateDeploymentBackupDetails , "UpdateDeploymentBackupDetails" , model . UpdateDeploymentBackupDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeploymentBackupResponse > { } , body : await response . json ( ) , bodyKey : "deploymentBackup" , bodyModel : model . DeploymentBackup , type : "model.DeploymentBackup" , 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 UpgradeDeploymentRequest return throws example Click  https to see how to use UpgradeDeployment API.
      public async upgradeDeployment ( upgradeDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation GoldenGateClient#upgradeDeployment." ) ; const pathParams = { "{deploymentId}" : upgradeDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : upgradeDeploymentRequest . ifMatch , "opc-request-id" : upgradeDeploymentRequest . opcRequestId , "opc-retry-token" : upgradeDeploymentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , upgradeDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}/actions/upgrade" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( upgradeDeploymentRequest . upgradeDeploymentDetails , "UpgradeDeploymentDetails" , model . UpgradeDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpgradeDeploymentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }