/**
 * Vault Service Key Management API
 * API for managing and performing operations with keys and vaults. (For the API for managing secrets, see the Vault Service
Secret Management API. For the API for retrieving secrets, see the Vault Service Secret Retrieval API.)

 * OpenAPI spec version: release
 * Contact: sparta_kms_us_grp@oracle.com
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import common = require ( "oci-common" ) ; import * as requests from "./request" ; import * as model from "./model" ; import * as responses from "./response" ; import { paginateRecords , paginateResponses } from "oci-common" ; import { KmsManagementWaiter } from "./kmsmanagement-waiter" ; import { KmsVaultWaiter } from "./kmsvault-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum KmsCryptoApiKeys { } /**
 * 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 KmsCryptoClient { protected static serviceEndpointTemplate = "https://kms.{region}.{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 ) ; } /**
     * 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 ; if ( this . logger ) this . logger . info ( `KmsCryptoClient endpoint set to ${ this . _endpoint }` ) ; } public get logger ( ) { return common . LOG . logger ; } param DecryptRequest return throws example Click  https to see how to use Decrypt API.
      public async decrypt ( decryptRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsCryptoClient#decrypt." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : decryptRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , decryptRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/decrypt" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( decryptRequest . decryptDataDetails , "DecryptDataDetails" , model . DecryptDataDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DecryptResponse > { } , body : await response . json ( ) , bodyKey : "decryptedData" , bodyModel : model . DecryptedData , type : "model.DecryptedData" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param EncryptRequest return throws example Click  https to see how to use Encrypt API.
      public async encrypt ( encryptRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsCryptoClient#encrypt." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : encryptRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , encryptRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/encrypt" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( encryptRequest . encryptDataDetails , "EncryptDataDetails" , model . EncryptDataDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . EncryptResponse > { } , body : await response . json ( ) , bodyKey : "encryptedData" , bodyModel : model . EncryptedData , type : "model.EncryptedData" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ExportKeyRequest return throws example Click  https to see how to use ExportKey API.
      public async exportKey ( exportKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsCryptoClient#exportKey." ) ; 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 , exportKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/exportKey" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( exportKeyRequest . exportKeyDetails , "ExportKeyDetails" , model . ExportKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ExportKeyResponse > { } , body : await response . json ( ) , bodyKey : "exportedKeyData" , bodyModel : model . ExportedKeyData , type : "model.ExportedKeyData" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GenerateDataEncryptionKeyRequest return throws example Click  https to see how to use GenerateDataEncryptionKey API.
      public async generateDataEncryptionKey ( generateDataEncryptionKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsCryptoClient#generateDataEncryptionKey." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : generateDataEncryptionKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , generateDataEncryptionKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/generateDataEncryptionKey" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( generateDataEncryptionKeyRequest . generateKeyDetails , "GenerateKeyDetails" , model . GenerateKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GenerateDataEncryptionKeyResponse > { } , body : await response . json ( ) , bodyKey : "generatedKey" , bodyModel : model . GeneratedKey , type : "model.GeneratedKey" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param SignRequest return throws example Click  https to see how to use Sign API.
      public async sign ( signRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsCryptoClient#sign." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : signRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , signRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/sign" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( signRequest . signDataDetails , "SignDataDetails" , model . SignDataDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SignResponse > { } , body : await response . json ( ) , bodyKey : "signedData" , bodyModel : model . SignedData , type : "model.SignedData" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param VerifyRequest return throws example Click  https to see how to use Verify API.
      public async verify ( verifyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsCryptoClient#verify." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : verifyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , verifyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/verify" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( verifyRequest . verifyDataDetails , "VerifyDataDetails" , model . VerifyDataDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . VerifyResponse > { } , body : await response . json ( ) , bodyKey : "verifiedData" , bodyModel : model . VerifiedData , type : "model.VerifiedData" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum KmsManagementApiKeys { } /**
 * 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 KmsManagementClient { protected static serviceEndpointTemplate = "https://kms.{region}.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : KmsManagementWaiter ; 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 ) ; } /**
     * 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 ; if ( this . logger ) this . logger . info ( `KmsManagementClient endpoint set to ${ this . _endpoint }` ) ; } public get logger ( ) { return common . LOG . logger ; } param config return public createWaiters ( config ? ) { this . _waiters = new KmsManagementWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param BackupKeyRequest return throws example Click  https to see how to use BackupKey API.
      public async backupKey ( backupKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#backupKey." ) ; const pathParams = { "{keyId}" : backupKeyRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : backupKeyRequest . ifMatch , "opc-request-id" : backupKeyRequest . opcRequestId , "opc-retry-token" : backupKeyRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , backupKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/actions/backup" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( backupKeyRequest . backupKeyDetails , "BackupKeyDetails" , model . BackupKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . BackupKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CancelKeyDeletionRequest return throws example Click  https to see how to use CancelKeyDeletion API.
        public async cancelKeyDeletion ( cancelKeyDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#cancelKeyDeletion." ) ; const pathParams = { "{keyId}" : cancelKeyDeletionRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : cancelKeyDeletionRequest . ifMatch , "opc-request-id" : cancelKeyDeletionRequest . opcRequestId , "opc-retry-token" : cancelKeyDeletionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelKeyDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelKeyDeletionResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 CancelKeyVersionDeletionRequest return throws example Click  https to see how to use CancelKeyVersionDeletion API.
        public async cancelKeyVersionDeletion ( cancelKeyVersionDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#cancelKeyVersionDeletion." ) ; const pathParams = { "{keyId}" : cancelKeyVersionDeletionRequest . keyId , "{keyVersionId}" : cancelKeyVersionDeletionRequest . keyVersionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : cancelKeyVersionDeletionRequest . ifMatch , "opc-request-id" : cancelKeyVersionDeletionRequest . opcRequestId , "opc-retry-token" : cancelKeyVersionDeletionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelKeyVersionDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/keyVersions/{keyVersionId}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelKeyVersionDeletionResponse > { } , body : await response . json ( ) , bodyKey : "keyVersion" , bodyModel : model . KeyVersion , type : "model.KeyVersion" , 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 ChangeKeyCompartmentRequest return throws example Click  https to see how to use ChangeKeyCompartment API.
        public async changeKeyCompartment ( changeKeyCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#changeKeyCompartment." ) ; const pathParams = { "{keyId}" : changeKeyCompartmentRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeKeyCompartmentRequest . ifMatch , "opc-request-id" : changeKeyCompartmentRequest . opcRequestId , "opc-retry-token" : changeKeyCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeKeyCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeKeyCompartmentRequest . changeKeyCompartmentDetails , "ChangeKeyCompartmentDetails" , model . ChangeKeyCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeKeyCompartmentResponse > { } , 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 CreateKeyRequest return throws example Click  https to see how to use CreateKey API.
        public async createKey ( createKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#createKey." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createKeyRequest . opcRequestId , "opc-retry-token" : createKeyRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createKeyRequest . createKeyDetails , "CreateKeyDetails" , model . CreateKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 CreateKeyVersionRequest return throws example Click  https to see how to use CreateKeyVersion API.
        public async createKeyVersion ( createKeyVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#createKeyVersion." ) ; const pathParams = { "{keyId}" : createKeyVersionRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createKeyVersionRequest . opcRequestId , "opc-retry-token" : createKeyVersionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createKeyVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/keyVersions" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateKeyVersionResponse > { } , body : await response . json ( ) , bodyKey : "keyVersion" , bodyModel : model . KeyVersion , type : "model.KeyVersion" , 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 DisableKeyRequest return throws example Click  https to see how to use DisableKey API.
        public async disableKey ( disableKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#disableKey." ) ; const pathParams = { "{keyId}" : disableKeyRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : disableKeyRequest . ifMatch , "opc-request-id" : disableKeyRequest . opcRequestId , "opc-retry-token" : disableKeyRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , disableKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/actions/disable" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DisableKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 EnableKeyRequest return throws example Click  https to see how to use EnableKey API.
        public async enableKey ( enableKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#enableKey." ) ; const pathParams = { "{keyId}" : enableKeyRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : enableKeyRequest . ifMatch , "opc-request-id" : enableKeyRequest . opcRequestId , "opc-retry-token" : enableKeyRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , enableKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/actions/enable" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . EnableKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 GetKeyRequest return throws example Click  https to see how to use GetKey API.
        public async getKey ( getKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#getKey." ) ; const pathParams = { "{keyId}" : getKeyRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 GetKeyVersionRequest return throws example Click  https to see how to use GetKeyVersion API.
        public async getKeyVersion ( getKeyVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#getKeyVersion." ) ; const pathParams = { "{keyId}" : getKeyVersionRequest . keyId , "{keyVersionId}" : getKeyVersionRequest . keyVersionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getKeyVersionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getKeyVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/keyVersions/{keyVersionId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetKeyVersionResponse > { } , body : await response . json ( ) , bodyKey : "keyVersion" , bodyModel : model . KeyVersion , type : "model.KeyVersion" , 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 GetReplicationStatusRequest return throws example Click  https to see how to use GetReplicationStatus API.
      public async getReplicationStatus ( getReplicationStatusRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#getReplicationStatus." ) ; const pathParams = { "{replicationId}" : getReplicationStatusRequest . replicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getReplicationStatusRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getReplicationStatusRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/replicaOperations/{replicationId}/status" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetReplicationStatusResponse > { } , body : await response . json ( ) , bodyKey : "replicationStatusDetails" , bodyModel : model . ReplicationStatusDetails , type : "model.ReplicationStatusDetails" , 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 GetWrappingKeyRequest return throws example Click  https to see how to use GetWrappingKey API.
      public async getWrappingKey ( getWrappingKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#getWrappingKey." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWrappingKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWrappingKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/wrappingKeys" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWrappingKeyResponse > { } , body : await response . json ( ) , bodyKey : "wrappingKey" , bodyModel : model . WrappingKey , type : "model.WrappingKey" , 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 ImportKeyRequest return throws example Click  https to see how to use ImportKey API.
      public async importKey ( importKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#importKey." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : importKeyRequest . opcRequestId , "opc-retry-token" : importKeyRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , importKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/import" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( importKeyRequest . importKeyDetails , "ImportKeyDetails" , model . ImportKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ImportKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 ImportKeyVersionRequest return throws example Click  https to see how to use ImportKeyVersion API.
      public async importKeyVersion ( importKeyVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#importKeyVersion." ) ; const pathParams = { "{keyId}" : importKeyVersionRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : importKeyVersionRequest . opcRequestId , "opc-retry-token" : importKeyVersionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , importKeyVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/keyVersions/import" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( importKeyVersionRequest . importKeyVersionDetails , "ImportKeyVersionDetails" , model . ImportKeyVersionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ImportKeyVersionResponse > { } , body : await response . json ( ) , bodyKey : "keyVersion" , bodyModel : model . KeyVersion , type : "model.KeyVersion" , 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 ListKeyVersionsRequest return throws example Click  https to see how to use ListKeyVersions API.
        public async listKeyVersions ( listKeyVersionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#listKeyVersions." ) ; const pathParams = { "{keyId}" : listKeyVersionsRequest . keyId } ; const queryParams = { "limit" : listKeyVersionsRequest . limit , "page" : listKeyVersionsRequest . page , "sortBy" : listKeyVersionsRequest . sortBy , "sortOrder" : listKeyVersionsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listKeyVersionsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listKeyVersionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/keyVersions" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListKeyVersionsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . KeyVersionSummary , type : "Array<model.KeyVersionSummary>" , 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 listAllKeyVersions ( request ) { return paginateRecords ( request , req => this . listKeyVersions ( req ) ) ; } param request public listAllKeyVersionsResponses ( request ) { return paginateResponses ( request , req => this . listKeyVersions ( req ) ) ; } param request public listKeyVersionsRecordIterator ( request ) { return paginateRecords ( request , req => this . listKeyVersions ( req ) ) ; } param request public listKeyVersionsResponseIterator ( request ) { return paginateResponses ( request , req => this . listKeyVersions ( req ) ) ; } param ListKeysRequest return throws example Click  https to see how to use ListKeys API.
        public async listKeys ( listKeysRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#listKeys." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listKeysRequest . compartmentId , "limit" : listKeysRequest . limit , "page" : listKeysRequest . page , "sortBy" : listKeysRequest . sortBy , "sortOrder" : listKeysRequest . sortOrder , "protectionMode" : listKeysRequest . protectionMode , "algorithm" : listKeysRequest . algorithm , "length" : listKeysRequest . length , "curveId" : listKeysRequest . curveId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listKeysRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listKeysRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListKeysResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . KeySummary , type : "Array<model.KeySummary>" , 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 listAllKeys ( request ) { return paginateRecords ( request , req => this . listKeys ( req ) ) ; } param request public listAllKeysResponses ( request ) { return paginateResponses ( request , req => this . listKeys ( req ) ) ; } param request public listKeysRecordIterator ( request ) { return paginateRecords ( request , req => this . listKeys ( req ) ) ; } param request public listKeysResponseIterator ( request ) { return paginateResponses ( request , req => this . listKeys ( req ) ) ; } param RestoreKeyFromFileRequest return throws example Click  https to see how to use RestoreKeyFromFile API.
      public async restoreKeyFromFile ( restoreKeyFromFileRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#restoreKeyFromFile." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "content-length" : restoreKeyFromFileRequest . contentLength , "if-match" : restoreKeyFromFileRequest . ifMatch , "content-md5" : restoreKeyFromFileRequest . contentMd5 , "opc-request-id" : restoreKeyFromFileRequest . opcRequestId , "opc-retry-token" : restoreKeyFromFileRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreKeyFromFileRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/actions/restoreFromFile" , method : "POST" , bodyContent : restoreKeyFromFileRequest . restoreKeyFromFileDetails , pathParams : pathParams , headerParams : headerParams , backupBinaryBody : retrier . backUpBinaryBody , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreKeyFromFileResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-content-md5" ) , key : "opcContentMd5" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param RestoreKeyFromObjectStoreRequest return throws example Click  https to see how to use RestoreKeyFromObjectStore API.
      public async restoreKeyFromObjectStore ( restoreKeyFromObjectStoreRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#restoreKeyFromObjectStore." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restoreKeyFromObjectStoreRequest . ifMatch , "opc-request-id" : restoreKeyFromObjectStoreRequest . opcRequestId , "opc-retry-token" : restoreKeyFromObjectStoreRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreKeyFromObjectStoreRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/actions/restoreFromObjectStore" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( restoreKeyFromObjectStoreRequest . restoreKeyFromObjectStoreDetails , "RestoreKeyFromObjectStoreDetails" , model . RestoreKeyFromObjectStoreDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreKeyFromObjectStoreResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ScheduleKeyDeletionRequest return throws example Click  https to see how to use ScheduleKeyDeletion API.
        public async scheduleKeyDeletion ( scheduleKeyDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#scheduleKeyDeletion." ) ; const pathParams = { "{keyId}" : scheduleKeyDeletionRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : scheduleKeyDeletionRequest . ifMatch , "opc-request-id" : scheduleKeyDeletionRequest . opcRequestId , "opc-retry-token" : scheduleKeyDeletionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleKeyDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleKeyDeletionRequest . scheduleKeyDeletionDetails , "ScheduleKeyDeletionDetails" , model . ScheduleKeyDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleKeyDeletionResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , 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 ScheduleKeyVersionDeletionRequest return throws example Click  https to see how to use ScheduleKeyVersionDeletion API.
        public async scheduleKeyVersionDeletion ( scheduleKeyVersionDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#scheduleKeyVersionDeletion." ) ; const pathParams = { "{keyId}" : scheduleKeyVersionDeletionRequest . keyId , "{keyVersionId}" : scheduleKeyVersionDeletionRequest . keyVersionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : scheduleKeyVersionDeletionRequest . ifMatch , "opc-request-id" : scheduleKeyVersionDeletionRequest . opcRequestId , "opc-retry-token" : scheduleKeyVersionDeletionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleKeyVersionDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}/keyVersions/{keyVersionId}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleKeyVersionDeletionRequest . scheduleKeyVersionDeletionDetails , "ScheduleKeyVersionDeletionDetails" , model . ScheduleKeyVersionDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleKeyVersionDeletionResponse > { } , body : await response . json ( ) , bodyKey : "keyVersion" , bodyModel : model . KeyVersion , type : "model.KeyVersion" , 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 UpdateKeyRequest return throws example Click  https to see how to use UpdateKey API.
        public async updateKey ( updateKeyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsManagementClient#updateKey." ) ; const pathParams = { "{keyId}" : updateKeyRequest . keyId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateKeyRequest . ifMatch , "opc-request-id" : updateKeyRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateKeyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/keys/{keyId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateKeyRequest . updateKeyDetails , "UpdateKeyDetails" , model . UpdateKeyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateKeyResponse > { } , body : await response . json ( ) , bodyKey : "key" , bodyModel : model . Key , type : "model.Key" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum KmsVaultApiKeys { } /**
 * 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 KmsVaultClient { protected static serviceEndpointTemplate = "https://kms.{region}.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : KmsVaultWaiter ; 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 ; if ( this . logger ) this . logger . info ( `KmsVaultClient 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 ( KmsVaultClient . 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 ( KmsVaultClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new KmsVaultWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param BackupVaultRequest return throws example Click  https to see how to use BackupVault API.
      public async backupVault ( backupVaultRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#backupVault." ) ; const pathParams = { "{vaultId}" : backupVaultRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : backupVaultRequest . ifMatch , "opc-request-id" : backupVaultRequest . opcRequestId , "opc-retry-token" : backupVaultRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , backupVaultRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/backup" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( backupVaultRequest . backupVaultDetails , "BackupVaultDetails" , model . BackupVaultDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . BackupVaultResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CancelVaultDeletionRequest return throws example Click  https to see how to use CancelVaultDeletion API.
        public async cancelVaultDeletion ( cancelVaultDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#cancelVaultDeletion." ) ; const pathParams = { "{vaultId}" : cancelVaultDeletionRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : cancelVaultDeletionRequest . ifMatch , "opc-request-id" : cancelVaultDeletionRequest . opcRequestId , "opc-retry-token" : cancelVaultDeletionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelVaultDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelVaultDeletionResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , 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 ChangeVaultCompartmentRequest return throws example Click  https to see how to use ChangeVaultCompartment API.
        public async changeVaultCompartment ( changeVaultCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#changeVaultCompartment." ) ; const pathParams = { "{vaultId}" : changeVaultCompartmentRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeVaultCompartmentRequest . ifMatch , "opc-request-id" : changeVaultCompartmentRequest . opcRequestId , "opc-retry-token" : changeVaultCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeVaultCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeVaultCompartmentRequest . changeVaultCompartmentDetails , "ChangeVaultCompartmentDetails" , model . ChangeVaultCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeVaultCompartmentResponse > { } , 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 CreateVaultRequest return throws example Click  https to see how to use CreateVault API.
        public async createVault ( createVaultRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#createVault." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createVaultRequest . opcRequestId , "opc-retry-token" : createVaultRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createVaultRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createVaultRequest . createVaultDetails , "CreateVaultDetails" , model . CreateVaultDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateVaultResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , 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 CreateVaultReplicaRequest return throws example Click  https to see how to use CreateVaultReplica API.
        public async createVaultReplica ( createVaultReplicaRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#createVaultReplica." ) ; const pathParams = { "{vaultId}" : createVaultReplicaRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : createVaultReplicaRequest . ifMatch , "opc-request-id" : createVaultReplicaRequest . opcRequestId , "opc-retry-token" : createVaultReplicaRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createVaultReplicaRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/createReplica" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createVaultReplicaRequest . createVaultReplicaDetails , "CreateVaultReplicaDetails" , model . CreateVaultReplicaDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateVaultReplicaResponse > { } , 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 DeleteVaultReplicaRequest return throws example Click  https to see how to use DeleteVaultReplica API.
        public async deleteVaultReplica ( deleteVaultReplicaRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#deleteVaultReplica." ) ; const pathParams = { "{vaultId}" : deleteVaultReplicaRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteVaultReplicaRequest . ifMatch , "opc-request-id" : deleteVaultReplicaRequest . opcRequestId , "opc-retry-token" : deleteVaultReplicaRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteVaultReplicaRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/deleteReplica" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( deleteVaultReplicaRequest . deleteVaultReplicaDetails , "DeleteVaultReplicaDetails" , model . DeleteVaultReplicaDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteVaultReplicaResponse > { } , 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 GetVaultRequest return throws example Click  https to see how to use GetVault API.
        public async getVault ( getVaultRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#getVault." ) ; const pathParams = { "{vaultId}" : getVaultRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getVaultRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getVaultRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetVaultResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , 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 GetVaultUsageRequest return throws example Click  https to see how to use GetVaultUsage API.
      public async getVaultUsage ( getVaultUsageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#getVaultUsage." ) ; const pathParams = { "{vaultId}" : getVaultUsageRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getVaultUsageRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getVaultUsageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/usage" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetVaultUsageResponse > { } , body : await response . json ( ) , bodyKey : "vaultUsage" , bodyModel : model . VaultUsage , type : "model.VaultUsage" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListVaultReplicasRequest return throws example Click  https to see how to use ListVaultReplicas API.
        public async listVaultReplicas ( listVaultReplicasRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#listVaultReplicas." ) ; const pathParams = { "{vaultId}" : listVaultReplicasRequest . vaultId } ; const queryParams = { "limit" : listVaultReplicasRequest . limit , "page" : listVaultReplicasRequest . page , "sortBy" : listVaultReplicasRequest . sortBy , "sortOrder" : listVaultReplicasRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : listVaultReplicasRequest . ifMatch , "opc-request-id" : listVaultReplicasRequest . opcRequestId , "opc-retry-token" : listVaultReplicasRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listVaultReplicasRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/listReplicas" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListVaultReplicasResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . VaultReplicaSummary , type : "Array<model.VaultReplicaSummary>" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { 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 listAllVaultReplicas ( request ) { return paginateRecords ( request , req => this . listVaultReplicas ( req ) ) ; } param request public listAllVaultReplicasResponses ( request ) { return paginateResponses ( request , req => this . listVaultReplicas ( req ) ) ; } param request public listVaultReplicasRecordIterator ( request ) { return paginateRecords ( request , req => this . listVaultReplicas ( req ) ) ; } param request public listVaultReplicasResponseIterator ( request ) { return paginateResponses ( request , req => this . listVaultReplicas ( req ) ) ; } param ListVaultsRequest return throws example Click  https to see how to use ListVaults API.
        public async listVaults ( listVaultsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#listVaults." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listVaultsRequest . compartmentId , "limit" : listVaultsRequest . limit , "page" : listVaultsRequest . page , "sortBy" : listVaultsRequest . sortBy , "sortOrder" : listVaultsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listVaultsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listVaultsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListVaultsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . VaultSummary , type : "Array<model.VaultSummary>" , 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 listAllVaults ( request ) { return paginateRecords ( request , req => this . listVaults ( req ) ) ; } param request public listAllVaultsResponses ( request ) { return paginateResponses ( request , req => this . listVaults ( req ) ) ; } param request public listVaultsRecordIterator ( request ) { return paginateRecords ( request , req => this . listVaults ( req ) ) ; } param request public listVaultsResponseIterator ( request ) { return paginateResponses ( request , req => this . listVaults ( req ) ) ; } param RestoreVaultFromFileRequest return throws example Click  https to see how to use RestoreVaultFromFile API.
      public async restoreVaultFromFile ( restoreVaultFromFileRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#restoreVaultFromFile." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : restoreVaultFromFileRequest . compartmentId } ; let headerParams = { "content-length" : restoreVaultFromFileRequest . contentLength , "if-match" : restoreVaultFromFileRequest . ifMatch , "content-md5" : restoreVaultFromFileRequest . contentMd5 , "opc-request-id" : restoreVaultFromFileRequest . opcRequestId , "opc-retry-token" : restoreVaultFromFileRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreVaultFromFileRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/actions/restoreFromFile" , method : "POST" , bodyContent : restoreVaultFromFileRequest . restoreVaultFromFileDetails , pathParams : pathParams , headerParams : headerParams , backupBinaryBody : retrier . backUpBinaryBody , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreVaultFromFileResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-content-md5" ) , key : "opcContentMd5" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param RestoreVaultFromObjectStoreRequest return throws example Click  https to see how to use RestoreVaultFromObjectStore API.
      public async restoreVaultFromObjectStore ( restoreVaultFromObjectStoreRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#restoreVaultFromObjectStore." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : restoreVaultFromObjectStoreRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restoreVaultFromObjectStoreRequest . ifMatch , "opc-request-id" : restoreVaultFromObjectStoreRequest . opcRequestId , "opc-retry-token" : restoreVaultFromObjectStoreRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreVaultFromObjectStoreRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/actions/restoreFromObjectStore" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( restoreVaultFromObjectStoreRequest . restoreVaultFromObjectStoreDetails , "RestoreVaultFromObjectStoreDetails" , model . RestoreVaultFromObjectStoreDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreVaultFromObjectStoreResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ScheduleVaultDeletionRequest return throws example Click  https to see how to use ScheduleVaultDeletion API.
        public async scheduleVaultDeletion ( scheduleVaultDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#scheduleVaultDeletion." ) ; const pathParams = { "{vaultId}" : scheduleVaultDeletionRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : scheduleVaultDeletionRequest . ifMatch , "opc-request-id" : scheduleVaultDeletionRequest . opcRequestId , "opc-retry-token" : scheduleVaultDeletionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleVaultDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleVaultDeletionRequest . scheduleVaultDeletionDetails , "ScheduleVaultDeletionDetails" , model . ScheduleVaultDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleVaultDeletionResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , 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 UpdateVaultRequest return throws example Click  https to see how to use UpdateVault API.
        public async updateVault ( updateVaultRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation KmsVaultClient#updateVault." ) ; const pathParams = { "{vaultId}" : updateVaultRequest . vaultId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateVaultRequest . ifMatch , "opc-request-id" : updateVaultRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateVaultRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/20180608/vaults/{vaultId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateVaultRequest . updateVaultDetails , "UpdateVaultDetails" , model . UpdateVaultDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateVaultResponse > { } , body : await response . json ( ) , bodyKey : "vault" , bodyModel : model . Vault , type : "model.Vault" , 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 ; } } }