/**
 * Blockchain Platform Control Plane API
 * Blockchain Platform Control Plane API
 * OpenAPI spec version: 20191010
 *
 *
 * 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 { BlockchainPlatformWaiter } from "./blockchainplatform-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum BlockchainPlatformApiKeys { } /**
 * 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 BlockchainPlatformClient { protected static serviceEndpointTemplate = "https://blockchain.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : BlockchainPlatformWaiter ; 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 + "/20191010" ; if ( this . logger ) this . logger . info ( `BlockchainPlatformClient 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 ( BlockchainPlatformClient . 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 ( BlockchainPlatformClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new BlockchainPlatformWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeBlockchainPlatformCompartmentRequest return throws example Click  https to see how to use ChangeBlockchainPlatformCompartment API.
      public async changeBlockchainPlatformCompartment ( changeBlockchainPlatformCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#changeBlockchainPlatformCompartment." ) ; const pathParams = { "{blockchainPlatformId}" : changeBlockchainPlatformCompartmentRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeBlockchainPlatformCompartmentRequest . ifMatch , "opc-request-id" : changeBlockchainPlatformCompartmentRequest . opcRequestId , "opc-retry-token" : changeBlockchainPlatformCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeBlockchainPlatformCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeBlockchainPlatformCompartmentRequest . changeBlockchainPlatformCompartmentDetails , "ChangeBlockchainPlatformCompartmentDetails" , model . ChangeBlockchainPlatformCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeBlockchainPlatformCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateBlockchainPlatformRequest return throws example Click  https to see how to use CreateBlockchainPlatform API.
      public async createBlockchainPlatform ( createBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#createBlockchainPlatform." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createBlockchainPlatformRequest . opcRetryToken , "opc-request-id" : createBlockchainPlatformRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBlockchainPlatformRequest . createBlockchainPlatformDetails , "CreateBlockchainPlatformDetails" , model . CreateBlockchainPlatformDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateOsnRequest return throws example Click  https to see how to use CreateOsn API.
      public async createOsn ( createOsnRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#createOsn." ) ; const pathParams = { "{blockchainPlatformId}" : createOsnRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : createOsnRequest . ifMatch , "opc-request-id" : createOsnRequest . opcRequestId , "opc-retry-token" : createOsnRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createOsnRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/osns" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createOsnRequest . createOsnDetails , "CreateOsnDetails" , model . CreateOsnDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateOsnResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreatePeerRequest return throws example Click  https to see how to use CreatePeer API.
      public async createPeer ( createPeerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#createPeer." ) ; const pathParams = { "{blockchainPlatformId}" : createPeerRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createPeerRequest . opcRequestId , "opc-retry-token" : createPeerRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createPeerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/peers" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createPeerRequest . createPeerDetails , "CreatePeerDetails" , model . CreatePeerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreatePeerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteBlockchainPlatformRequest return throws example Click  https to see how to use DeleteBlockchainPlatform API.
      public async deleteBlockchainPlatform ( deleteBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#deleteBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : deleteBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteBlockchainPlatformRequest . opcRequestId , "if-match" : deleteBlockchainPlatformRequest . ifMatch , "opc-retry-token" : deleteBlockchainPlatformRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteOsnRequest return throws example Click  https to see how to use DeleteOsn API.
      public async deleteOsn ( deleteOsnRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#deleteOsn." ) ; const pathParams = { "{blockchainPlatformId}" : deleteOsnRequest . blockchainPlatformId , "{osnId}" : deleteOsnRequest . osnId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteOsnRequest . opcRequestId , "if-match" : deleteOsnRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteOsnRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteOsnResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeletePeerRequest return throws example Click  https to see how to use DeletePeer API.
      public async deletePeer ( deletePeerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#deletePeer." ) ; const pathParams = { "{blockchainPlatformId}" : deletePeerRequest . blockchainPlatformId , "{peerId}" : deletePeerRequest . peerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deletePeerRequest . opcRequestId , "if-match" : deletePeerRequest . ifMatch , "opc-retry-token" : deletePeerRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deletePeerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeletePeerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteWorkRequestRequest return throws example Click  https to see how to use DeleteWorkRequest API.
      public async deleteWorkRequest ( deleteWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#deleteWorkRequest." ) ; const pathParams = { "{workRequestId}" : deleteWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteWorkRequestRequest . opcRequestId , "if-match" : deleteWorkRequestRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteWorkRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetBlockchainPlatformRequest return throws example Click  https to see how to use GetBlockchainPlatform API.
      public async getBlockchainPlatform ( getBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#getBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : getBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBlockchainPlatformRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBlockchainPlatformResponse > { } , body : await response . json ( ) , bodyKey : "blockchainPlatform" , bodyModel : model . BlockchainPlatform , type : "model.BlockchainPlatform" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetOsnRequest return throws example Click  https to see how to use GetOsn API.
      public async getOsn ( getOsnRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#getOsn." ) ; const pathParams = { "{blockchainPlatformId}" : getOsnRequest . blockchainPlatformId , "{osnId}" : getOsnRequest . osnId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getOsnRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getOsnRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetOsnResponse > { } , body : await response . json ( ) , bodyKey : "osn" , bodyModel : model . Osn , type : "model.Osn" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetPeerRequest return throws example Click  https to see how to use GetPeer API.
      public async getPeer ( getPeerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#getPeer." ) ; const pathParams = { "{blockchainPlatformId}" : getPeerRequest . blockchainPlatformId , "{peerId}" : getPeerRequest . peerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getPeerRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPeerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPeerResponse > { } , body : await response . json ( ) , bodyKey : "peer" , bodyModel : model . Peer , type : "model.Peer" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetWorkRequestRequest return throws example Click  https to see how to use GetWorkRequest API.
      public async getWorkRequest ( getWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListBlockchainPlatformPatchesRequest return throws example Click  https to see how to use ListBlockchainPlatformPatches API.
      public async listBlockchainPlatformPatches ( listBlockchainPlatformPatchesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listBlockchainPlatformPatches." ) ; const pathParams = { "{blockchainPlatformId}" : listBlockchainPlatformPatchesRequest . blockchainPlatformId } ; const queryParams = { "page" : listBlockchainPlatformPatchesRequest . page , "limit" : listBlockchainPlatformPatchesRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBlockchainPlatformPatchesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBlockchainPlatformPatchesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/patches" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBlockchainPlatformPatchesResponse > { } , body : await response . json ( ) , bodyKey : "blockchainPlatformPatchCollection" , bodyModel : model . BlockchainPlatformPatchCollection , type : "model.BlockchainPlatformPatchCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListBlockchainPlatformsRequest return throws example Click  https to see how to use ListBlockchainPlatforms API.
      public async listBlockchainPlatforms ( listBlockchainPlatformsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listBlockchainPlatforms." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listBlockchainPlatformsRequest . compartmentId , "displayName" : listBlockchainPlatformsRequest . displayName , "page" : listBlockchainPlatformsRequest . page , "limit" : listBlockchainPlatformsRequest . limit , "sortOrder" : listBlockchainPlatformsRequest . sortOrder , "sortBy" : listBlockchainPlatformsRequest . sortBy , "lifecycleState" : listBlockchainPlatformsRequest . lifecycleState } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBlockchainPlatformsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBlockchainPlatformsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBlockchainPlatformsResponse > { } , body : await response . json ( ) , bodyKey : "blockchainPlatformCollection" , bodyModel : model . BlockchainPlatformCollection , type : "model.BlockchainPlatformCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListOsnsRequest return throws example Click  https to see how to use ListOsns API.
      public async listOsns ( listOsnsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listOsns." ) ; const pathParams = { "{blockchainPlatformId}" : listOsnsRequest . blockchainPlatformId } ; const queryParams = { "displayName" : listOsnsRequest . displayName , "sortOrder" : listOsnsRequest . sortOrder , "sortBy" : listOsnsRequest . sortBy , "page" : listOsnsRequest . page , "limit" : listOsnsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listOsnsRequest . opcRequestId , "opc-retry-token" : listOsnsRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listOsnsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/osns" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListOsnsResponse > { } , body : await response . json ( ) , bodyKey : "osnCollection" , bodyModel : model . OsnCollection , type : "model.OsnCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListPeersRequest return throws example Click  https to see how to use ListPeers API.
      public async listPeers ( listPeersRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listPeers." ) ; const pathParams = { "{blockchainPlatformId}" : listPeersRequest . blockchainPlatformId } ; const queryParams = { "displayName" : listPeersRequest . displayName , "sortOrder" : listPeersRequest . sortOrder , "sortBy" : listPeersRequest . sortBy , "page" : listPeersRequest . page , "limit" : listPeersRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPeersRequest . opcRequestId , "opc-retry-token" : listPeersRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPeersRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/peers" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPeersResponse > { } , body : await response . json ( ) , bodyKey : "peerCollection" , bodyModel : model . PeerCollection , type : "model.PeerCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestErrorsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestErrorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/errors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestErrorsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestErrorCollection" , bodyModel : model . WorkRequestErrorCollection , type : "model.WorkRequestErrorCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestLogsRequest return throws example Click  https to see how to use ListWorkRequestLogs API.
      public async listWorkRequestLogs ( listWorkRequestLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestLogsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestLogsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/logs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestLogsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestLogEntryCollection" , bodyModel : model . WorkRequestLogEntryCollection , type : "model.WorkRequestLogEntryCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListWorkRequestsRequest return throws example Click  https to see how to use ListWorkRequests API.
      public async listWorkRequests ( listWorkRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "blockchainPlatformId" : listWorkRequestsRequest . blockchainPlatformId , "sortOrder" : listWorkRequestsRequest . sortOrder , "sortBy" : listWorkRequestsRequest . sortBy , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestCollection" , bodyModel : model . WorkRequestCollection , type : "model.WorkRequestCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param PreviewScaleBlockchainPlatformRequest return throws example Click  https to see how to use PreviewScaleBlockchainPlatform API.
      public async previewScaleBlockchainPlatform ( previewScaleBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#previewScaleBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : previewScaleBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : previewScaleBlockchainPlatformRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , previewScaleBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/actions/scale/preview" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( previewScaleBlockchainPlatformRequest . scaleBlockchainPlatformDetails , "ScaleBlockchainPlatformDetails" , model . ScaleBlockchainPlatformDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . PreviewScaleBlockchainPlatformResponse > { } , body : await response . json ( ) , bodyKey : "scaledBlockchainPlatformPreview" , bodyModel : model . ScaledBlockchainPlatformPreview , type : "model.ScaledBlockchainPlatformPreview" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ScaleBlockchainPlatformRequest return throws example Click  https to see how to use ScaleBlockchainPlatform API.
      public async scaleBlockchainPlatform ( scaleBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#scaleBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : scaleBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : scaleBlockchainPlatformRequest . ifMatch , "opc-request-id" : scaleBlockchainPlatformRequest . opcRequestId , "opc-retry-token" : scaleBlockchainPlatformRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scaleBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/actions/scale" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scaleBlockchainPlatformRequest . scaleBlockchainPlatformDetails , "ScaleBlockchainPlatformDetails" , model . ScaleBlockchainPlatformDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScaleBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param StartBlockchainPlatformRequest return throws example Click  https to see how to use StartBlockchainPlatform API.
      public async startBlockchainPlatform ( startBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#startBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : startBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : startBlockchainPlatformRequest . ifMatch , "opc-request-id" : startBlockchainPlatformRequest . opcRequestId , "opc-retry-token" : startBlockchainPlatformRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , startBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/actions/start" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StartBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param StopBlockchainPlatformRequest return throws example Click  https to see how to use StopBlockchainPlatform API.
      public async stopBlockchainPlatform ( stopBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#stopBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : stopBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : stopBlockchainPlatformRequest . ifMatch , "opc-request-id" : stopBlockchainPlatformRequest . opcRequestId , "opc-retry-token" : stopBlockchainPlatformRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , stopBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/actions/stop" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . StopBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateBlockchainPlatformRequest return throws example Click  https to see how to use UpdateBlockchainPlatform API.
      public async updateBlockchainPlatform ( updateBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#updateBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : updateBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateBlockchainPlatformRequest . opcRequestId , "if-match" : updateBlockchainPlatformRequest . ifMatch , "opc-retry-token" : updateBlockchainPlatformRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBlockchainPlatformRequest . updateBlockchainPlatformDetails , "UpdateBlockchainPlatformDetails" , model . UpdateBlockchainPlatformDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateOsnRequest return throws example Click  https to see how to use UpdateOsn API.
      public async updateOsn ( updateOsnRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#updateOsn." ) ; const pathParams = { "{blockchainPlatformId}" : updateOsnRequest . blockchainPlatformId , "{osnId}" : updateOsnRequest . osnId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateOsnRequest . ifMatch , "opc-request-id" : updateOsnRequest . opcRequestId , "opc-retry-token" : updateOsnRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateOsnRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateOsnRequest . updateOsnDetails , "UpdateOsnDetails" , model . UpdateOsnDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateOsnResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdatePeerRequest return throws example Click  https to see how to use UpdatePeer API.
      public async updatePeer ( updatePeerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#updatePeer." ) ; const pathParams = { "{blockchainPlatformId}" : updatePeerRequest . blockchainPlatformId , "{peerId}" : updatePeerRequest . peerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updatePeerRequest . ifMatch , "opc-request-id" : updatePeerRequest . opcRequestId , "opc-retry-token" : updatePeerRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updatePeerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updatePeerRequest . updatePeerDetails , "UpdatePeerDetails" , model . UpdatePeerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdatePeerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpgradeBlockchainPlatformRequest return throws example Click  https to see how to use UpgradeBlockchainPlatform API.
      public async upgradeBlockchainPlatform ( upgradeBlockchainPlatformRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation BlockchainPlatformClient#upgradeBlockchainPlatform." ) ; const pathParams = { "{blockchainPlatformId}" : upgradeBlockchainPlatformRequest . blockchainPlatformId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : upgradeBlockchainPlatformRequest . ifMatch , "opc-request-id" : upgradeBlockchainPlatformRequest . opcRequestId , "opc-retry-token" : upgradeBlockchainPlatformRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , upgradeBlockchainPlatformRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/blockchainPlatforms/{blockchainPlatformId}/actions/upgrade" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( upgradeBlockchainPlatformRequest . upgradeBlockchainPlatformDetails , "UpgradeBlockchainPlatformDetails" , model . UpgradeBlockchainPlatformDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpgradeBlockchainPlatformResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }