/**
 * Data Transfer Service API
 * Data Transfer Service API Specification
 * OpenAPI spec version: 1.0.015
 *
 *
 * 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 { ApplianceExportJobWaiter } from "./applianceexportjob-waiter" ; import { TransferApplianceWaiter } from "./transferappliance-waiter" ; import { TransferApplianceEntitlementWaiter } from "./transferapplianceentitlement-waiter" ; import { TransferDeviceWaiter } from "./transferdevice-waiter" ; import { TransferJobWaiter } from "./transferjob-waiter" ; import { TransferPackageWaiter } from "./transferpackage-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum ApplianceExportJobApiKeys { } /**
 * 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 ApplianceExportJobClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : ApplianceExportJobWaiter ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `ApplianceExportJobClient 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 ( ApplianceExportJobClient . 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 ( ApplianceExportJobClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new ApplianceExportJobWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeApplianceExportJobCompartmentRequest return throws example Click  https to see how to use ChangeApplianceExportJobCompartment API.
      public async changeApplianceExportJobCompartment ( changeApplianceExportJobCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ApplianceExportJobClient#changeApplianceExportJobCompartment." ) ; const pathParams = { "{applianceExportJobId}" : changeApplianceExportJobCompartmentRequest . applianceExportJobId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeApplianceExportJobCompartmentRequest . ifMatch , "opc-request-id" : changeApplianceExportJobCompartmentRequest . opcRequestId , "opc-retry-token" : changeApplianceExportJobCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeApplianceExportJobCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/applianceExportJobs/{applianceExportJobId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeApplianceExportJobCompartmentRequest . changeApplianceExportJobCompartmentDetails , "ChangeApplianceExportJobCompartmentDetails" , model . ChangeApplianceExportJobCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeApplianceExportJobCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateApplianceExportJobRequest return throws example Click  https to see how to use CreateApplianceExportJob API.
      public async createApplianceExportJob ( createApplianceExportJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ApplianceExportJobClient#createApplianceExportJob." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createApplianceExportJobRequest . opcRetryToken , "opc-request-id" : createApplianceExportJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createApplianceExportJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/applianceExportJobs" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createApplianceExportJobRequest . createApplianceExportJobDetails , "CreateApplianceExportJobDetails" , model . CreateApplianceExportJobDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateApplianceExportJobResponse > { } , body : await response . json ( ) , bodyKey : "applianceExportJob" , bodyModel : model . ApplianceExportJob , type : "model.ApplianceExportJob" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteApplianceExportJobRequest return throws example Click  https to see how to use DeleteApplianceExportJob API.
      public async deleteApplianceExportJob ( deleteApplianceExportJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ApplianceExportJobClient#deleteApplianceExportJob." ) ; const pathParams = { "{applianceExportJobId}" : deleteApplianceExportJobRequest . applianceExportJobId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteApplianceExportJobRequest . ifMatch , "opc-request-id" : deleteApplianceExportJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteApplianceExportJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/applianceExportJobs/{applianceExportJobId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteApplianceExportJobResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetApplianceExportJobRequest return throws example Click  https to see how to use GetApplianceExportJob API.
      public async getApplianceExportJob ( getApplianceExportJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ApplianceExportJobClient#getApplianceExportJob." ) ; const pathParams = { "{applianceExportJobId}" : getApplianceExportJobRequest . applianceExportJobId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getApplianceExportJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getApplianceExportJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/applianceExportJobs/{applianceExportJobId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetApplianceExportJobResponse > { } , body : await response . json ( ) , bodyKey : "applianceExportJob" , bodyModel : model . ApplianceExportJob , type : "model.ApplianceExportJob" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListApplianceExportJobsRequest return throws example Click  https to see how to use ListApplianceExportJobs API.
      public async listApplianceExportJobs ( listApplianceExportJobsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ApplianceExportJobClient#listApplianceExportJobs." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listApplianceExportJobsRequest . compartmentId , "lifecycleState" : listApplianceExportJobsRequest . lifecycleState , "displayName" : listApplianceExportJobsRequest . displayName , "limit" : listApplianceExportJobsRequest . limit , "page" : listApplianceExportJobsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listApplianceExportJobsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listApplianceExportJobsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/applianceExportJobs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListApplianceExportJobsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ApplianceExportJobSummary , type : "Array<model.ApplianceExportJobSummary>" , 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 listAllApplianceExportJobs ( request ) { return paginateRecords ( request , req => this . listApplianceExportJobs ( req ) ) ; } param request public listAllApplianceExportJobsResponses ( request ) { return paginateResponses ( request , req => this . listApplianceExportJobs ( req ) ) ; } param request public listApplianceExportJobsRecordIterator ( request ) { return paginateRecords ( request , req => this . listApplianceExportJobs ( req ) ) ; } param request public listApplianceExportJobsResponseIterator ( request ) { return paginateResponses ( request , req => this . listApplianceExportJobs ( req ) ) ; } param UpdateApplianceExportJobRequest return throws example Click  https to see how to use UpdateApplianceExportJob API.
      public async updateApplianceExportJob ( updateApplianceExportJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ApplianceExportJobClient#updateApplianceExportJob." ) ; const pathParams = { "{applianceExportJobId}" : updateApplianceExportJobRequest . applianceExportJobId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateApplianceExportJobRequest . ifMatch , "opc-request-id" : updateApplianceExportJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateApplianceExportJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/applianceExportJobs/{applianceExportJobId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateApplianceExportJobRequest . updateApplianceExportJobDetails , "UpdateApplianceExportJobDetails" , model . UpdateApplianceExportJobDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateApplianceExportJobResponse > { } , body : await response . json ( ) , bodyKey : "applianceExportJob" , bodyModel : model . ApplianceExportJob , type : "model.ApplianceExportJob" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum ShippingVendorsApiKeys { } /**
 * 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 ShippingVendorsClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `ShippingVendorsClient 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 ( ShippingVendorsClient . 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 ( ShippingVendorsClient . serviceEndpointTemplate , regionId ) ; } param ListShippingVendorsRequest return throws example Click  https to see how to use ListShippingVendors API.
      public async listShippingVendors ( listShippingVendorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ShippingVendorsClient#listShippingVendors." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listShippingVendorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/shippingVendors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListShippingVendorsResponse > { } , body : await response . json ( ) , bodyKey : "shippingVendors" , bodyModel : model . ShippingVendors , type : "model.ShippingVendors" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum TransferApplianceApiKeys { } /**
 * 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 TransferApplianceClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : TransferApplianceWaiter ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `TransferApplianceClient 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 ( TransferApplianceClient . 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 ( TransferApplianceClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new TransferApplianceWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateTransferApplianceRequest return throws example Click  https to see how to use CreateTransferAppliance API.
      public async createTransferAppliance ( createTransferApplianceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#createTransferAppliance." ) ; const pathParams = { "{id}" : createTransferApplianceRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createTransferApplianceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTransferApplianceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTransferApplianceRequest . createTransferApplianceDetails , "CreateTransferApplianceDetails" , model . CreateTransferApplianceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTransferApplianceResponse > { } , body : await response . json ( ) , bodyKey : "transferAppliance" , bodyModel : model . TransferAppliance , type : "model.TransferAppliance" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateTransferApplianceAdminCredentialsRequest return throws example Click  https to see how to use CreateTransferApplianceAdminCredentials API.
      public async createTransferApplianceAdminCredentials ( createTransferApplianceAdminCredentialsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#createTransferApplianceAdminCredentials." ) ; const pathParams = { "{id}" : createTransferApplianceAdminCredentialsRequest . id , "{transferApplianceLabel}" : createTransferApplianceAdminCredentialsRequest . transferApplianceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTransferApplianceAdminCredentialsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances/{transferApplianceLabel}/admin_credentials" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTransferApplianceAdminCredentialsRequest . adminPublicKey , "TransferAppliancePublicKey" , model . TransferAppliancePublicKey . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTransferApplianceAdminCredentialsResponse > { } , body : await response . json ( ) , bodyKey : "transferApplianceCertificate" , bodyModel : model . TransferApplianceCertificate , type : "model.TransferApplianceCertificate" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteTransferApplianceRequest return throws example Click  https to see how to use DeleteTransferAppliance API.
      public async deleteTransferAppliance ( deleteTransferApplianceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#deleteTransferAppliance." ) ; const pathParams = { "{id}" : deleteTransferApplianceRequest . id , "{transferApplianceLabel}" : deleteTransferApplianceRequest . transferApplianceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteTransferApplianceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances/{transferApplianceLabel}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteTransferApplianceResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferApplianceRequest return throws example Click  https to see how to use GetTransferAppliance API.
      public async getTransferAppliance ( getTransferApplianceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#getTransferAppliance." ) ; const pathParams = { "{id}" : getTransferApplianceRequest . id , "{transferApplianceLabel}" : getTransferApplianceRequest . transferApplianceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferApplianceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances/{transferApplianceLabel}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferApplianceResponse > { } , body : await response . json ( ) , bodyKey : "transferAppliance" , bodyModel : model . TransferAppliance , type : "model.TransferAppliance" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferApplianceCertificateAuthorityCertificateRequest return throws example Click  https to see how to use GetTransferApplianceCertificateAuthorityCertificate API.
      public async getTransferApplianceCertificateAuthorityCertificate ( getTransferApplianceCertificateAuthorityCertificateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#getTransferApplianceCertificateAuthorityCertificate." ) ; const pathParams = { "{id}" : getTransferApplianceCertificateAuthorityCertificateRequest . id , "{transferApplianceLabel}" : getTransferApplianceCertificateAuthorityCertificateRequest . transferApplianceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferApplianceCertificateAuthorityCertificateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances/{transferApplianceLabel}/certificate_authority_certificate" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferApplianceCertificateAuthorityCertificateResponse > { } , body : await response . json ( ) , bodyKey : "transferApplianceCertificate" , bodyModel : model . TransferApplianceCertificate , type : "model.TransferApplianceCertificate" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferApplianceEncryptionPassphraseRequest return throws example Click  https to see how to use GetTransferApplianceEncryptionPassphrase API.
      public async getTransferApplianceEncryptionPassphrase ( getTransferApplianceEncryptionPassphraseRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#getTransferApplianceEncryptionPassphrase." ) ; const pathParams = { "{id}" : getTransferApplianceEncryptionPassphraseRequest . id , "{transferApplianceLabel}" : getTransferApplianceEncryptionPassphraseRequest . transferApplianceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferApplianceEncryptionPassphraseRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances/{transferApplianceLabel}/encryptionPassphrase" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferApplianceEncryptionPassphraseResponse > { } , body : await response . json ( ) , bodyKey : "transferApplianceEncryptionPassphrase" , bodyModel : model . TransferApplianceEncryptionPassphrase , type : "model.TransferApplianceEncryptionPassphrase" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListTransferAppliancesRequest return throws example Click  https to see how to use ListTransferAppliances API.
      public async listTransferAppliances ( listTransferAppliancesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#listTransferAppliances." ) ; const pathParams = { "{id}" : listTransferAppliancesRequest . id } ; const queryParams = { "lifecycleState" : listTransferAppliancesRequest . lifecycleState } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTransferAppliancesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTransferAppliancesResponse > { } , body : await response . json ( ) , bodyKey : "multipleTransferAppliances" , bodyModel : model . MultipleTransferAppliances , type : "model.MultipleTransferAppliances" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateTransferApplianceRequest return throws example Click  https to see how to use UpdateTransferAppliance API.
      public async updateTransferAppliance ( updateTransferApplianceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceClient#updateTransferAppliance." ) ; const pathParams = { "{id}" : updateTransferApplianceRequest . id , "{transferApplianceLabel}" : updateTransferApplianceRequest . transferApplianceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateTransferApplianceRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateTransferApplianceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferAppliances/{transferApplianceLabel}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateTransferApplianceRequest . updateTransferApplianceDetails , "UpdateTransferApplianceDetails" , model . UpdateTransferApplianceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateTransferApplianceResponse > { } , body : await response . json ( ) , bodyKey : "transferAppliance" , bodyModel : model . TransferAppliance , type : "model.TransferAppliance" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum TransferApplianceEntitlementApiKeys { } /**
 * 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 TransferApplianceEntitlementClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : TransferApplianceEntitlementWaiter ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `TransferApplianceEntitlementClient 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 ( TransferApplianceEntitlementClient . 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 ( TransferApplianceEntitlementClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new TransferApplianceEntitlementWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateTransferApplianceEntitlementRequest return throws example Click  https to see how to use CreateTransferApplianceEntitlement API.
      public async createTransferApplianceEntitlement ( createTransferApplianceEntitlementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceEntitlementClient#createTransferApplianceEntitlement." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createTransferApplianceEntitlementRequest . opcRetryToken , "opc-request-id" : createTransferApplianceEntitlementRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTransferApplianceEntitlementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferApplianceEntitlement" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTransferApplianceEntitlementRequest . createTransferApplianceEntitlementDetails , "CreateTransferApplianceEntitlementDetails" , model . CreateTransferApplianceEntitlementDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTransferApplianceEntitlementResponse > { } , body : await response . json ( ) , bodyKey : "transferApplianceEntitlement" , bodyModel : model . TransferApplianceEntitlement , type : "model.TransferApplianceEntitlement" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferApplianceEntitlementRequest return throws example Click  https to see how to use GetTransferApplianceEntitlement API.
      public async getTransferApplianceEntitlement ( getTransferApplianceEntitlementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceEntitlementClient#getTransferApplianceEntitlement." ) ; const pathParams = { "{id}" : getTransferApplianceEntitlementRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : getTransferApplianceEntitlementRequest . opcRetryToken , "opc-request-id" : getTransferApplianceEntitlementRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferApplianceEntitlementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferApplianceEntitlement/{id}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferApplianceEntitlementResponse > { } , body : await response . json ( ) , bodyKey : "transferApplianceEntitlement" , bodyModel : model . TransferApplianceEntitlement , type : "model.TransferApplianceEntitlement" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListTransferApplianceEntitlementRequest return throws example Click  https to see how to use ListTransferApplianceEntitlement API.
      public async listTransferApplianceEntitlement ( listTransferApplianceEntitlementRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferApplianceEntitlementClient#listTransferApplianceEntitlement." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listTransferApplianceEntitlementRequest . compartmentId , "id" : listTransferApplianceEntitlementRequest . id , "displayName" : listTransferApplianceEntitlementRequest . displayName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listTransferApplianceEntitlementRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTransferApplianceEntitlementRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferApplianceEntitlement" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTransferApplianceEntitlementResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . TransferApplianceEntitlementSummary , type : "Array<model.TransferApplianceEntitlementSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum TransferDeviceApiKeys { } /**
 * 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 TransferDeviceClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : TransferDeviceWaiter ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `TransferDeviceClient 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 ( TransferDeviceClient . 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 ( TransferDeviceClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new TransferDeviceWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateTransferDeviceRequest return throws example Click  https to see how to use CreateTransferDevice API.
      public async createTransferDevice ( createTransferDeviceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferDeviceClient#createTransferDevice." ) ; const pathParams = { "{id}" : createTransferDeviceRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createTransferDeviceRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTransferDeviceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferDevices" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTransferDeviceRequest . createTransferDeviceDetails , "CreateTransferDeviceDetails" , model . CreateTransferDeviceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTransferDeviceResponse > { } , body : await response . json ( ) , bodyKey : "newTransferDevice" , bodyModel : model . NewTransferDevice , type : "model.NewTransferDevice" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteTransferDeviceRequest return throws example Click  https to see how to use DeleteTransferDevice API.
      public async deleteTransferDevice ( deleteTransferDeviceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferDeviceClient#deleteTransferDevice." ) ; const pathParams = { "{id}" : deleteTransferDeviceRequest . id , "{transferDeviceLabel}" : deleteTransferDeviceRequest . transferDeviceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteTransferDeviceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferDevices/{transferDeviceLabel}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteTransferDeviceResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferDeviceRequest return throws example Click  https to see how to use GetTransferDevice API.
      public async getTransferDevice ( getTransferDeviceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferDeviceClient#getTransferDevice." ) ; const pathParams = { "{id}" : getTransferDeviceRequest . id , "{transferDeviceLabel}" : getTransferDeviceRequest . transferDeviceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferDeviceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferDevices/{transferDeviceLabel}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferDeviceResponse > { } , body : await response . json ( ) , bodyKey : "transferDevice" , bodyModel : model . TransferDevice , type : "model.TransferDevice" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListTransferDevicesRequest return throws example Click  https to see how to use ListTransferDevices API.
      public async listTransferDevices ( listTransferDevicesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferDeviceClient#listTransferDevices." ) ; const pathParams = { "{id}" : listTransferDevicesRequest . id } ; const queryParams = { "lifecycleState" : listTransferDevicesRequest . lifecycleState , "displayName" : listTransferDevicesRequest . displayName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTransferDevicesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferDevices" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTransferDevicesResponse > { } , body : await response . json ( ) , bodyKey : "multipleTransferDevices" , bodyModel : model . MultipleTransferDevices , type : "model.MultipleTransferDevices" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateTransferDeviceRequest return throws example Click  https to see how to use UpdateTransferDevice API.
      public async updateTransferDevice ( updateTransferDeviceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferDeviceClient#updateTransferDevice." ) ; const pathParams = { "{id}" : updateTransferDeviceRequest . id , "{transferDeviceLabel}" : updateTransferDeviceRequest . transferDeviceLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateTransferDeviceRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateTransferDeviceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferDevices/{transferDeviceLabel}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateTransferDeviceRequest . updateTransferDeviceDetails , "UpdateTransferDeviceDetails" , model . UpdateTransferDeviceDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateTransferDeviceResponse > { } , body : await response . json ( ) , bodyKey : "transferDevice" , bodyModel : model . TransferDevice , type : "model.TransferDevice" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum TransferJobApiKeys { } /**
 * 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 TransferJobClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : TransferJobWaiter ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `TransferJobClient 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 ( TransferJobClient . 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 ( TransferJobClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new TransferJobWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeTransferJobCompartmentRequest return throws example Click  https to see how to use ChangeTransferJobCompartment API.
      public async changeTransferJobCompartment ( changeTransferJobCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferJobClient#changeTransferJobCompartment." ) ; const pathParams = { "{transferJobId}" : changeTransferJobCompartmentRequest . transferJobId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeTransferJobCompartmentRequest . ifMatch , "opc-request-id" : changeTransferJobCompartmentRequest . opcRequestId , "opc-retry-token" : changeTransferJobCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeTransferJobCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{transferJobId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeTransferJobCompartmentRequest . changeTransferJobCompartmentDetails , "ChangeTransferJobCompartmentDetails" , model . ChangeTransferJobCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeTransferJobCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateTransferJobRequest return throws example Click  https to see how to use CreateTransferJob API.
      public async createTransferJob ( createTransferJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferJobClient#createTransferJob." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createTransferJobRequest . opcRetryToken , "opc-request-id" : createTransferJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTransferJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTransferJobRequest . createTransferJobDetails , "CreateTransferJobDetails" , model . CreateTransferJobDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTransferJobResponse > { } , body : await response . json ( ) , bodyKey : "transferJob" , bodyModel : model . TransferJob , type : "model.TransferJob" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteTransferJobRequest return throws example Click  https to see how to use DeleteTransferJob API.
      public async deleteTransferJob ( deleteTransferJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferJobClient#deleteTransferJob." ) ; const pathParams = { "{id}" : deleteTransferJobRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteTransferJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteTransferJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteTransferJobResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferJobRequest return throws example Click  https to see how to use GetTransferJob API.
      public async getTransferJob ( getTransferJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferJobClient#getTransferJob." ) ; const pathParams = { "{id}" : getTransferJobRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getTransferJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferJobResponse > { } , body : await response . json ( ) , bodyKey : "transferJob" , bodyModel : model . TransferJob , type : "model.TransferJob" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListTransferJobsRequest return throws example Click  https to see how to use ListTransferJobs API.
      public async listTransferJobs ( listTransferJobsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferJobClient#listTransferJobs." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listTransferJobsRequest . compartmentId , "lifecycleState" : listTransferJobsRequest . lifecycleState , "displayName" : listTransferJobsRequest . displayName , "limit" : listTransferJobsRequest . limit , "page" : listTransferJobsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listTransferJobsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTransferJobsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTransferJobsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . TransferJobSummary , type : "Array<model.TransferJobSummary>" , 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 listAllTransferJobs ( request ) { return paginateRecords ( request , req => this . listTransferJobs ( req ) ) ; } param request public listAllTransferJobsResponses ( request ) { return paginateResponses ( request , req => this . listTransferJobs ( req ) ) ; } param request public listTransferJobsRecordIterator ( request ) { return paginateRecords ( request , req => this . listTransferJobs ( req ) ) ; } param request public listTransferJobsResponseIterator ( request ) { return paginateResponses ( request , req => this . listTransferJobs ( req ) ) ; } param UpdateTransferJobRequest return throws example Click  https to see how to use UpdateTransferJob API.
      public async updateTransferJob ( updateTransferJobRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferJobClient#updateTransferJob." ) ; const pathParams = { "{id}" : updateTransferJobRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateTransferJobRequest . ifMatch , "opc-request-id" : updateTransferJobRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateTransferJobRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateTransferJobRequest . updateTransferJobDetails , "UpdateTransferJobDetails" , model . UpdateTransferJobDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateTransferJobResponse > { } , body : await response . json ( ) , bodyKey : "transferJob" , bodyModel : model . TransferJob , type : "model.TransferJob" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum TransferPackageApiKeys { } /**
 * 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 TransferPackageClient { protected static serviceEndpointTemplate = "https://datatransfer.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : TransferPackageWaiter ; 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 + "/20171001" ; if ( this . logger ) this . logger . info ( `TransferPackageClient 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 ( TransferPackageClient . 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 ( TransferPackageClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new TransferPackageWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param AttachDevicesToTransferPackageRequest return throws example Click  https to see how to use AttachDevicesToTransferPackage API.
      public async attachDevicesToTransferPackage ( attachDevicesToTransferPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#attachDevicesToTransferPackage." ) ; const pathParams = { "{id}" : attachDevicesToTransferPackageRequest . id , "{transferPackageLabel}" : attachDevicesToTransferPackageRequest . transferPackageLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , attachDevicesToTransferPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages/{transferPackageLabel}/actions/attachDevices" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( attachDevicesToTransferPackageRequest . attachDevicesDetails , "AttachDevicesDetails" , model . AttachDevicesDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . AttachDevicesToTransferPackageResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateTransferPackageRequest return throws example Click  https to see how to use CreateTransferPackage API.
      public async createTransferPackage ( createTransferPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#createTransferPackage." ) ; const pathParams = { "{id}" : createTransferPackageRequest . id } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createTransferPackageRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTransferPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTransferPackageRequest . createTransferPackageDetails , "CreateTransferPackageDetails" , model . CreateTransferPackageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTransferPackageResponse > { } , body : await response . json ( ) , bodyKey : "transferPackage" , bodyModel : model . TransferPackage , type : "model.TransferPackage" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteTransferPackageRequest return throws example Click  https to see how to use DeleteTransferPackage API.
      public async deleteTransferPackage ( deleteTransferPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#deleteTransferPackage." ) ; const pathParams = { "{id}" : deleteTransferPackageRequest . id , "{transferPackageLabel}" : deleteTransferPackageRequest . transferPackageLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteTransferPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages/{transferPackageLabel}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteTransferPackageResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DetachDevicesFromTransferPackageRequest return throws example Click  https to see how to use DetachDevicesFromTransferPackage API.
      public async detachDevicesFromTransferPackage ( detachDevicesFromTransferPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#detachDevicesFromTransferPackage." ) ; const pathParams = { "{id}" : detachDevicesFromTransferPackageRequest . id , "{transferPackageLabel}" : detachDevicesFromTransferPackageRequest . transferPackageLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , detachDevicesFromTransferPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages/{transferPackageLabel}/actions/detachDevices" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( detachDevicesFromTransferPackageRequest . detachDevicesDetails , "DetachDevicesDetails" , model . DetachDevicesDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DetachDevicesFromTransferPackageResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetTransferPackageRequest return throws example Click  https to see how to use GetTransferPackage API.
      public async getTransferPackage ( getTransferPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#getTransferPackage." ) ; const pathParams = { "{id}" : getTransferPackageRequest . id , "{transferPackageLabel}" : getTransferPackageRequest . transferPackageLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTransferPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages/{transferPackageLabel}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTransferPackageResponse > { } , body : await response . json ( ) , bodyKey : "transferPackage" , bodyModel : model . TransferPackage , type : "model.TransferPackage" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListTransferPackagesRequest return throws example Click  https to see how to use ListTransferPackages API.
      public async listTransferPackages ( listTransferPackagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#listTransferPackages." ) ; const pathParams = { "{id}" : listTransferPackagesRequest . id } ; const queryParams = { "lifecycleState" : listTransferPackagesRequest . lifecycleState , "displayName" : listTransferPackagesRequest . displayName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTransferPackagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTransferPackagesResponse > { } , body : await response . json ( ) , bodyKey : "multipleTransferPackages" , bodyModel : model . MultipleTransferPackages , type : "model.MultipleTransferPackages" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateTransferPackageRequest return throws example Click  https to see how to use UpdateTransferPackage API.
      public async updateTransferPackage ( updateTransferPackageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation TransferPackageClient#updateTransferPackage." ) ; const pathParams = { "{id}" : updateTransferPackageRequest . id , "{transferPackageLabel}" : updateTransferPackageRequest . transferPackageLabel } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateTransferPackageRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateTransferPackageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/transferJobs/{id}/transferPackages/{transferPackageLabel}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateTransferPackageRequest . updateTransferPackageDetails , "UpdateTransferPackageDetails" , model . UpdateTransferPackageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateTransferPackageResponse > { } , body : await response . json ( ) , bodyKey : "transferPackage" , bodyModel : model . TransferPackage , type : "model.TransferPackage" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }