/**
 * Certificates Service Management API
 * API for managing certificates.
 * OpenAPI spec version: 20210224
 *
 *
 * 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 { CertificatesManagementWaiter } from "./certificatesmanagement-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum CertificatesManagementApiKeys { } /**
 * 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 CertificatesManagementClient { protected static serviceEndpointTemplate = "https://certificatesmanagement.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : CertificatesManagementWaiter ; 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 + "/20210224" ; if ( this . logger ) this . logger . info ( `CertificatesManagementClient 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 ( CertificatesManagementClient . 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 ( CertificatesManagementClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new CertificatesManagementWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CancelCertificateAuthorityDeletionRequest return throws example Click  https to see how to use CancelCertificateAuthorityDeletion API.
      public async cancelCertificateAuthorityDeletion ( cancelCertificateAuthorityDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#cancelCertificateAuthorityDeletion." ) ; const pathParams = { "{certificateAuthorityId}" : cancelCertificateAuthorityDeletionRequest . certificateAuthorityId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : cancelCertificateAuthorityDeletionRequest . opcRequestId , "if-match" : cancelCertificateAuthorityDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelCertificateAuthorityDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelCertificateAuthorityDeletionResponse > { } , 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 CancelCertificateAuthorityVersionDeletionRequest return throws example Click  https to see how to use CancelCertificateAuthorityVersionDeletion API.
      public async cancelCertificateAuthorityVersionDeletion ( cancelCertificateAuthorityVersionDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#cancelCertificateAuthorityVersionDeletion." ) ; const pathParams = { "{certificateAuthorityId}" : cancelCertificateAuthorityVersionDeletionRequest . certificateAuthorityId , "{certificateAuthorityVersionNumber}" : cancelCertificateAuthorityVersionDeletionRequest . certificateAuthorityVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : cancelCertificateAuthorityVersionDeletionRequest . opcRequestId , "if-match" : cancelCertificateAuthorityVersionDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelCertificateAuthorityVersionDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/version/{certificateAuthorityVersionNumber}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelCertificateAuthorityVersionDeletionResponse > { } , 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 CancelCertificateDeletionRequest return throws example Click  https to see how to use CancelCertificateDeletion API.
      public async cancelCertificateDeletion ( cancelCertificateDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#cancelCertificateDeletion." ) ; const pathParams = { "{certificateId}" : cancelCertificateDeletionRequest . certificateId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : cancelCertificateDeletionRequest . opcRequestId , "if-match" : cancelCertificateDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelCertificateDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelCertificateDeletionResponse > { } , 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 CancelCertificateVersionDeletionRequest return throws example Click  https to see how to use CancelCertificateVersionDeletion API.
      public async cancelCertificateVersionDeletion ( cancelCertificateVersionDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#cancelCertificateVersionDeletion." ) ; const pathParams = { "{certificateId}" : cancelCertificateVersionDeletionRequest . certificateId , "{certificateVersionNumber}" : cancelCertificateVersionDeletionRequest . certificateVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : cancelCertificateVersionDeletionRequest . opcRequestId , "if-match" : cancelCertificateVersionDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelCertificateVersionDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/version/{certificateVersionNumber}/actions/cancelDeletion" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelCertificateVersionDeletionResponse > { } , 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 ChangeCaBundleCompartmentRequest return throws example Click  https to see how to use ChangeCaBundleCompartment API.
        public async changeCaBundleCompartment ( changeCaBundleCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#changeCaBundleCompartment." ) ; const pathParams = { "{caBundleId}" : changeCaBundleCompartmentRequest . caBundleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeCaBundleCompartmentRequest . ifMatch , "opc-request-id" : changeCaBundleCompartmentRequest . opcRequestId , "opc-retry-token" : changeCaBundleCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeCaBundleCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/caBundles/{caBundleId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeCaBundleCompartmentRequest . changeCaBundleCompartmentDetails , "ChangeCaBundleCompartmentDetails" , model . ChangeCaBundleCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeCaBundleCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeCertificateAuthorityCompartmentRequest return throws example Click  https to see how to use ChangeCertificateAuthorityCompartment API.
        public async changeCertificateAuthorityCompartment ( changeCertificateAuthorityCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#changeCertificateAuthorityCompartment." ) ; const pathParams = { "{certificateAuthorityId}" : changeCertificateAuthorityCompartmentRequest . certificateAuthorityId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeCertificateAuthorityCompartmentRequest . ifMatch , "opc-request-id" : changeCertificateAuthorityCompartmentRequest . opcRequestId , "opc-retry-token" : changeCertificateAuthorityCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeCertificateAuthorityCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeCertificateAuthorityCompartmentRequest . changeCertificateAuthorityCompartmentDetails , "ChangeCertificateAuthorityCompartmentDetails" , model . ChangeCertificateAuthorityCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeCertificateAuthorityCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeCertificateCompartmentRequest return throws example Click  https to see how to use ChangeCertificateCompartment API.
        public async changeCertificateCompartment ( changeCertificateCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#changeCertificateCompartment." ) ; const pathParams = { "{certificateId}" : changeCertificateCompartmentRequest . certificateId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeCertificateCompartmentRequest . ifMatch , "opc-request-id" : changeCertificateCompartmentRequest . opcRequestId , "opc-retry-token" : changeCertificateCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeCertificateCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeCertificateCompartmentRequest . changeCertificateCompartmentDetails , "ChangeCertificateCompartmentDetails" , model . ChangeCertificateCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeCertificateCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateCaBundleRequest return throws example Click  https to see how to use CreateCaBundle API.
      public async createCaBundle ( createCaBundleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#createCaBundle." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createCaBundleRequest . opcRequestId , "opc-retry-token" : createCaBundleRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createCaBundleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/caBundles" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createCaBundleRequest . createCaBundleDetails , "CreateCaBundleDetails" , model . CreateCaBundleDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateCaBundleResponse > { } , body : await response . json ( ) , bodyKey : "caBundle" , bodyModel : model . CaBundle , type : "model.CaBundle" , 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 CreateCertificateRequest return throws example Click  https to see how to use CreateCertificate API.
      public async createCertificate ( createCertificateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#createCertificate." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createCertificateRequest . opcRequestId , "opc-retry-token" : createCertificateRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createCertificateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createCertificateRequest . createCertificateDetails , "CreateCertificateDetails" , model . CreateCertificateDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateCertificateResponse > { } , body : await response . json ( ) , bodyKey : "certificate" , bodyModel : model . Certificate , type : "model.Certificate" , 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 CreateCertificateAuthorityRequest return throws example Click  https to see how to use CreateCertificateAuthority API.
      public async createCertificateAuthority ( createCertificateAuthorityRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#createCertificateAuthority." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createCertificateAuthorityRequest . opcRequestId , "opc-retry-token" : createCertificateAuthorityRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createCertificateAuthorityRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createCertificateAuthorityRequest . createCertificateAuthorityDetails , "CreateCertificateAuthorityDetails" , model . CreateCertificateAuthorityDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateCertificateAuthorityResponse > { } , body : await response . json ( ) , bodyKey : "certificateAuthority" , bodyModel : model . CertificateAuthority , type : "model.CertificateAuthority" , 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 DeleteCaBundleRequest return throws example Click  https to see how to use DeleteCaBundle API.
      public async deleteCaBundle ( deleteCaBundleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#deleteCaBundle." ) ; const pathParams = { "{caBundleId}" : deleteCaBundleRequest . caBundleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteCaBundleRequest . opcRequestId , "if-match" : deleteCaBundleRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteCaBundleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/caBundles/{caBundleId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteCaBundleResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetAssociationRequest return throws example Click  https to see how to use GetAssociation API.
      public async getAssociation ( getAssociationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#getAssociation." ) ; const pathParams = { "{associationId}" : getAssociationRequest . associationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAssociationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAssociationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/associations/{associationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAssociationResponse > { } , body : await response . json ( ) , bodyKey : "association" , bodyModel : model . Association , type : "model.Association" , 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 GetCaBundleRequest return throws example Click  https to see how to use GetCaBundle API.
      public async getCaBundle ( getCaBundleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#getCaBundle." ) ; const pathParams = { "{caBundleId}" : getCaBundleRequest . caBundleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCaBundleRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCaBundleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/caBundles/{caBundleId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCaBundleResponse > { } , body : await response . json ( ) , bodyKey : "caBundle" , bodyModel : model . CaBundle , type : "model.CaBundle" , 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 GetCertificateRequest return throws example Click  https to see how to use GetCertificate API.
      public async getCertificate ( getCertificateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#getCertificate." ) ; const pathParams = { "{certificateId}" : getCertificateRequest . certificateId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCertificateRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCertificateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCertificateResponse > { } , body : await response . json ( ) , bodyKey : "certificate" , bodyModel : model . Certificate , type : "model.Certificate" , 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 GetCertificateAuthorityRequest return throws example Click  https to see how to use GetCertificateAuthority API.
      public async getCertificateAuthority ( getCertificateAuthorityRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#getCertificateAuthority." ) ; const pathParams = { "{certificateAuthorityId}" : getCertificateAuthorityRequest . certificateAuthorityId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCertificateAuthorityRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCertificateAuthorityRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCertificateAuthorityResponse > { } , body : await response . json ( ) , bodyKey : "certificateAuthority" , bodyModel : model . CertificateAuthority , type : "model.CertificateAuthority" , 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 GetCertificateAuthorityVersionRequest return throws example Click  https to see how to use GetCertificateAuthorityVersion API.
      public async getCertificateAuthorityVersion ( getCertificateAuthorityVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#getCertificateAuthorityVersion." ) ; const pathParams = { "{certificateAuthorityId}" : getCertificateAuthorityVersionRequest . certificateAuthorityId , "{certificateAuthorityVersionNumber}" : getCertificateAuthorityVersionRequest . certificateAuthorityVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCertificateAuthorityVersionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCertificateAuthorityVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/version/{certificateAuthorityVersionNumber}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCertificateAuthorityVersionResponse > { } , body : await response . json ( ) , bodyKey : "certificateAuthorityVersion" , bodyModel : model . CertificateAuthorityVersion , type : "model.CertificateAuthorityVersion" , 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 GetCertificateVersionRequest return throws example Click  https to see how to use GetCertificateVersion API.
      public async getCertificateVersion ( getCertificateVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#getCertificateVersion." ) ; const pathParams = { "{certificateId}" : getCertificateVersionRequest . certificateId , "{certificateVersionNumber}" : getCertificateVersionRequest . certificateVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCertificateVersionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCertificateVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/version/{certificateVersionNumber}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCertificateVersionResponse > { } , body : await response . json ( ) , bodyKey : "certificateVersion" , bodyModel : model . CertificateVersion , type : "model.CertificateVersion" , 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 ListAssociationsRequest return throws example Click  https to see how to use ListAssociations API.
      public async listAssociations ( listAssociationsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#listAssociations." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listAssociationsRequest . compartmentId , "certificatesResourceId" : listAssociationsRequest . certificatesResourceId , "associatedResourceId" : listAssociationsRequest . associatedResourceId , "associationId" : listAssociationsRequest . associationId , "name" : listAssociationsRequest . name , "sortBy" : listAssociationsRequest . sortBy , "sortOrder" : listAssociationsRequest . sortOrder , "limit" : listAssociationsRequest . limit , "page" : listAssociationsRequest . page , "associationType" : listAssociationsRequest . associationType } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAssociationsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAssociationsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/associations" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAssociationsResponse > { } , body : await response . json ( ) , bodyKey : "associationCollection" , bodyModel : model . AssociationCollection , type : "model.AssociationCollection" , 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 ListCaBundlesRequest return throws example Click  https to see how to use ListCaBundles API.
      public async listCaBundles ( listCaBundlesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#listCaBundles." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listCaBundlesRequest . compartmentId , "lifecycleState" : listCaBundlesRequest . lifecycleState , "name" : listCaBundlesRequest . name , "sortBy" : listCaBundlesRequest . sortBy , "sortOrder" : listCaBundlesRequest . sortOrder , "limit" : listCaBundlesRequest . limit , "page" : listCaBundlesRequest . page , "caBundleId" : listCaBundlesRequest . caBundleId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCaBundlesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCaBundlesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/caBundles" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCaBundlesResponse > { } , body : await response . json ( ) , bodyKey : "caBundleCollection" , bodyModel : model . CaBundleCollection , type : "model.CaBundleCollection" , 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 ListCertificateAuthoritiesRequest return throws example Click  https to see how to use ListCertificateAuthorities API.
      public async listCertificateAuthorities ( listCertificateAuthoritiesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#listCertificateAuthorities." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listCertificateAuthoritiesRequest . compartmentId , "lifecycleState" : listCertificateAuthoritiesRequest . lifecycleState , "name" : listCertificateAuthoritiesRequest . name , "issuerCertificateAuthorityId" : listCertificateAuthoritiesRequest . issuerCertificateAuthorityId , "certificateAuthorityId" : listCertificateAuthoritiesRequest . certificateAuthorityId , "sortBy" : listCertificateAuthoritiesRequest . sortBy , "sortOrder" : listCertificateAuthoritiesRequest . sortOrder , "limit" : listCertificateAuthoritiesRequest . limit , "page" : listCertificateAuthoritiesRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCertificateAuthoritiesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCertificateAuthoritiesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCertificateAuthoritiesResponse > { } , body : await response . json ( ) , bodyKey : "certificateAuthorityCollection" , bodyModel : model . CertificateAuthorityCollection , type : "model.CertificateAuthorityCollection" , 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 ListCertificateAuthorityVersionsRequest return throws example Click  https to see how to use ListCertificateAuthorityVersions API.
      public async listCertificateAuthorityVersions ( listCertificateAuthorityVersionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#listCertificateAuthorityVersions." ) ; const pathParams = { "{certificateAuthorityId}" : listCertificateAuthorityVersionsRequest . certificateAuthorityId } ; const queryParams = { "versionNumber" : listCertificateAuthorityVersionsRequest . versionNumber , "limit" : listCertificateAuthorityVersionsRequest . limit , "page" : listCertificateAuthorityVersionsRequest . page , "sortBy" : listCertificateAuthorityVersionsRequest . sortBy , "sortOrder" : listCertificateAuthorityVersionsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCertificateAuthorityVersionsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCertificateAuthorityVersionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/versions" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCertificateAuthorityVersionsResponse > { } , body : await response . json ( ) , bodyKey : "certificateAuthorityVersionCollection" , bodyModel : model . CertificateAuthorityVersionCollection , type : "model.CertificateAuthorityVersionCollection" , 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 ListCertificateVersionsRequest return throws example Click  https to see how to use ListCertificateVersions API.
      public async listCertificateVersions ( listCertificateVersionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#listCertificateVersions." ) ; const pathParams = { "{certificateId}" : listCertificateVersionsRequest . certificateId } ; const queryParams = { "versionNumber" : listCertificateVersionsRequest . versionNumber , "limit" : listCertificateVersionsRequest . limit , "page" : listCertificateVersionsRequest . page , "sortBy" : listCertificateVersionsRequest . sortBy , "sortOrder" : listCertificateVersionsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCertificateVersionsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCertificateVersionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/versions" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCertificateVersionsResponse > { } , body : await response . json ( ) , bodyKey : "certificateVersionCollection" , bodyModel : model . CertificateVersionCollection , type : "model.CertificateVersionCollection" , 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 ListCertificatesRequest return throws example Click  https to see how to use ListCertificates API.
      public async listCertificates ( listCertificatesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#listCertificates." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listCertificatesRequest . compartmentId , "lifecycleState" : listCertificatesRequest . lifecycleState , "name" : listCertificatesRequest . name , "sortBy" : listCertificatesRequest . sortBy , "sortOrder" : listCertificatesRequest . sortOrder , "limit" : listCertificatesRequest . limit , "page" : listCertificatesRequest . page , "issuerCertificateAuthorityId" : listCertificatesRequest . issuerCertificateAuthorityId , "certificateId" : listCertificatesRequest . certificateId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCertificatesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCertificatesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCertificatesResponse > { } , body : await response . json ( ) , bodyKey : "certificateCollection" , bodyModel : model . CertificateCollection , type : "model.CertificateCollection" , 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 RevokeCertificateAuthorityVersionRequest return throws example Click  https to see how to use RevokeCertificateAuthorityVersion API.
      public async revokeCertificateAuthorityVersion ( revokeCertificateAuthorityVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#revokeCertificateAuthorityVersion." ) ; const pathParams = { "{certificateAuthorityId}" : revokeCertificateAuthorityVersionRequest . certificateAuthorityId , "{certificateAuthorityVersionNumber}" : revokeCertificateAuthorityVersionRequest . certificateAuthorityVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : revokeCertificateAuthorityVersionRequest . opcRequestId , "opc-retry-token" : revokeCertificateAuthorityVersionRequest . opcRetryToken , "if-match" : revokeCertificateAuthorityVersionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , revokeCertificateAuthorityVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/version/{certificateAuthorityVersionNumber}/actions/revoke" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( revokeCertificateAuthorityVersionRequest . revokeCertificateAuthorityVersionDetails , "RevokeCertificateAuthorityVersionDetails" , model . RevokeCertificateAuthorityVersionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RevokeCertificateAuthorityVersionResponse > { } , 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 RevokeCertificateVersionRequest return throws example Click  https to see how to use RevokeCertificateVersion API.
      public async revokeCertificateVersion ( revokeCertificateVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#revokeCertificateVersion." ) ; const pathParams = { "{certificateId}" : revokeCertificateVersionRequest . certificateId , "{certificateVersionNumber}" : revokeCertificateVersionRequest . certificateVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : revokeCertificateVersionRequest . opcRequestId , "opc-retry-token" : revokeCertificateVersionRequest . opcRetryToken , "if-match" : revokeCertificateVersionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , revokeCertificateVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/version/{certificateVersionNumber}/actions/revoke" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( revokeCertificateVersionRequest . revokeCertificateVersionDetails , "RevokeCertificateVersionDetails" , model . RevokeCertificateVersionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RevokeCertificateVersionResponse > { } , 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 ScheduleCertificateAuthorityDeletionRequest return throws example Click  https to see how to use ScheduleCertificateAuthorityDeletion API.
      public async scheduleCertificateAuthorityDeletion ( scheduleCertificateAuthorityDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#scheduleCertificateAuthorityDeletion." ) ; const pathParams = { "{certificateAuthorityId}" : scheduleCertificateAuthorityDeletionRequest . certificateAuthorityId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : scheduleCertificateAuthorityDeletionRequest . opcRequestId , "if-match" : scheduleCertificateAuthorityDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleCertificateAuthorityDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleCertificateAuthorityDeletionRequest . scheduleCertificateAuthorityDeletionDetails , "ScheduleCertificateAuthorityDeletionDetails" , model . ScheduleCertificateAuthorityDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleCertificateAuthorityDeletionResponse > { } , 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 ScheduleCertificateAuthorityVersionDeletionRequest return throws example Click  https to see how to use ScheduleCertificateAuthorityVersionDeletion API.
      public async scheduleCertificateAuthorityVersionDeletion ( scheduleCertificateAuthorityVersionDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#scheduleCertificateAuthorityVersionDeletion." ) ; const pathParams = { "{certificateAuthorityId}" : scheduleCertificateAuthorityVersionDeletionRequest . certificateAuthorityId , "{certificateAuthorityVersionNumber}" : scheduleCertificateAuthorityVersionDeletionRequest . certificateAuthorityVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : scheduleCertificateAuthorityVersionDeletionRequest . opcRequestId , "if-match" : scheduleCertificateAuthorityVersionDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleCertificateAuthorityVersionDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}/version/{certificateAuthorityVersionNumber}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleCertificateAuthorityVersionDeletionRequest . scheduleCertificateAuthorityVersionDeletionDetails , "ScheduleCertificateAuthorityVersionDeletionDetails" , model . ScheduleCertificateAuthorityVersionDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleCertificateAuthorityVersionDeletionResponse > { } , 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 ScheduleCertificateDeletionRequest return throws example Click  https to see how to use ScheduleCertificateDeletion API.
      public async scheduleCertificateDeletion ( scheduleCertificateDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#scheduleCertificateDeletion." ) ; const pathParams = { "{certificateId}" : scheduleCertificateDeletionRequest . certificateId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : scheduleCertificateDeletionRequest . opcRequestId , "if-match" : scheduleCertificateDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleCertificateDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleCertificateDeletionRequest . scheduleCertificateDeletionDetails , "ScheduleCertificateDeletionDetails" , model . ScheduleCertificateDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleCertificateDeletionResponse > { } , 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 ScheduleCertificateVersionDeletionRequest return throws example Click  https to see how to use ScheduleCertificateVersionDeletion API.
        public async scheduleCertificateVersionDeletion ( scheduleCertificateVersionDeletionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#scheduleCertificateVersionDeletion." ) ; const pathParams = { "{certificateId}" : scheduleCertificateVersionDeletionRequest . certificateId , "{certificateVersionNumber}" : scheduleCertificateVersionDeletionRequest . certificateVersionNumber } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : scheduleCertificateVersionDeletionRequest . opcRequestId , "if-match" : scheduleCertificateVersionDeletionRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , scheduleCertificateVersionDeletionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}/version/{certificateVersionNumber}/actions/scheduleDeletion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( scheduleCertificateVersionDeletionRequest . scheduleCertificateVersionDeletionDetails , "ScheduleCertificateVersionDeletionDetails" , model . ScheduleCertificateVersionDeletionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ScheduleCertificateVersionDeletionResponse > { } , 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 UpdateCaBundleRequest return throws example Click  https to see how to use UpdateCaBundle API.
      public async updateCaBundle ( updateCaBundleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#updateCaBundle." ) ; const pathParams = { "{caBundleId}" : updateCaBundleRequest . caBundleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateCaBundleRequest . opcRequestId , "if-match" : updateCaBundleRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateCaBundleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/caBundles/{caBundleId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateCaBundleRequest . updateCaBundleDetails , "UpdateCaBundleDetails" , model . UpdateCaBundleDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateCaBundleResponse > { } , body : await response . json ( ) , bodyKey : "caBundle" , bodyModel : model . CaBundle , type : "model.CaBundle" , 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 UpdateCertificateRequest return throws example Click  https to see how to use UpdateCertificate API.
      public async updateCertificate ( updateCertificateRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#updateCertificate." ) ; const pathParams = { "{certificateId}" : updateCertificateRequest . certificateId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateCertificateRequest . opcRequestId , "if-match" : updateCertificateRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateCertificateRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificates/{certificateId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateCertificateRequest . updateCertificateDetails , "UpdateCertificateDetails" , model . UpdateCertificateDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateCertificateResponse > { } , body : await response . json ( ) , bodyKey : "certificate" , bodyModel : model . Certificate , type : "model.Certificate" , 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 UpdateCertificateAuthorityRequest return throws example Click  https to see how to use UpdateCertificateAuthority API.
      public async updateCertificateAuthority ( updateCertificateAuthorityRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation CertificatesManagementClient#updateCertificateAuthority." ) ; const pathParams = { "{certificateAuthorityId}" : updateCertificateAuthorityRequest . certificateAuthorityId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateCertificateAuthorityRequest . opcRequestId , "if-match" : updateCertificateAuthorityRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateCertificateAuthorityRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/certificateAuthorities/{certificateAuthorityId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateCertificateAuthorityRequest . updateCertificateAuthorityDetails , "UpdateCertificateAuthorityDetails" , model . UpdateCertificateAuthorityDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateCertificateAuthorityResponse > { } , body : await response . json ( ) , bodyKey : "certificateAuthority" , bodyModel : model . CertificateAuthority , type : "model.CertificateAuthority" , 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 ; } } }