/**
 * Container Images API
 * API covering the [Registry](/iaas/Content/Registry/Concepts/registryoverview.htm) services.
Use this API to manage resources such as container images and repositories.

 * OpenAPI spec version: 20160918
 *
 *
 * 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 { ArtifactsWaiter } from "./artifacts-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum ArtifactsApiKeys { } /**
 * 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 ArtifactsClient { protected static serviceEndpointTemplate = "https://artifacts.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : ArtifactsWaiter ; 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 + "/20160918" ; if ( this . logger ) this . logger . info ( `ArtifactsClient 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 ( ArtifactsClient . 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 ( ArtifactsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new ArtifactsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeContainerRepositoryCompartmentRequest return throws example Click  https to see how to use ChangeContainerRepositoryCompartment API.
      public async changeContainerRepositoryCompartment ( changeContainerRepositoryCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#changeContainerRepositoryCompartment." ) ; const pathParams = { "{repositoryId}" : changeContainerRepositoryCompartmentRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeContainerRepositoryCompartmentRequest . ifMatch , "opc-request-id" : changeContainerRepositoryCompartmentRequest . opcRequestId , "opc-retry-token" : changeContainerRepositoryCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeContainerRepositoryCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/repositories/{repositoryId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeContainerRepositoryCompartmentRequest . changeContainerRepositoryCompartmentDetails , "ChangeContainerRepositoryCompartmentDetails" , model . ChangeContainerRepositoryCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeContainerRepositoryCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeRepositoryCompartmentRequest return throws example Click  https to see how to use ChangeRepositoryCompartment API.
      public async changeRepositoryCompartment ( changeRepositoryCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#changeRepositoryCompartment." ) ; const pathParams = { "{repositoryId}" : changeRepositoryCompartmentRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeRepositoryCompartmentRequest . ifMatch , "opc-request-id" : changeRepositoryCompartmentRequest . opcRequestId , "opc-retry-token" : changeRepositoryCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeRepositoryCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeRepositoryCompartmentRequest . changeRepositoryCompartmentDetails , "ChangeRepositoryCompartmentDetails" , model . ChangeRepositoryCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeRepositoryCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateContainerImageSignatureRequest return throws example Click  https to see how to use CreateContainerImageSignature API.
      public async createContainerImageSignature ( createContainerImageSignatureRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#createContainerImageSignature." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createContainerImageSignatureRequest . opcRequestId , "opc-retry-token" : createContainerImageSignatureRequest . opcRetryToken , "if-match" : createContainerImageSignatureRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createContainerImageSignatureRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/imageSignatures" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createContainerImageSignatureRequest . createContainerImageSignatureDetails , "CreateContainerImageSignatureDetails" , model . CreateContainerImageSignatureDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateContainerImageSignatureResponse > { } , body : await response . json ( ) , bodyKey : "containerImageSignature" , bodyModel : model . ContainerImageSignature , type : "model.ContainerImageSignature" , 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 CreateContainerRepositoryRequest return throws example Click  https to see how to use CreateContainerRepository API.
      public async createContainerRepository ( createContainerRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#createContainerRepository." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createContainerRepositoryRequest . opcRequestId , "opc-retry-token" : createContainerRepositoryRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createContainerRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/repositories" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createContainerRepositoryRequest . createContainerRepositoryDetails , "CreateContainerRepositoryDetails" , model . CreateContainerRepositoryDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateContainerRepositoryResponse > { } , body : await response . json ( ) , bodyKey : "containerRepository" , bodyModel : model . ContainerRepository , type : "model.ContainerRepository" , 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 CreateRepositoryRequest return throws example Click  https to see how to use CreateRepository API.
      public async createRepository ( createRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#createRepository." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createRepositoryRequest . opcRequestId , "opc-retry-token" : createRepositoryRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createRepositoryRequest . createRepositoryDetails , "CreateRepositoryDetails" , model . CreateRepositoryDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateRepositoryResponse > { } , body : await response . json ( ) , bodyKey : "repository" , bodyModel : model . Repository , type : "model.Repository" , 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 DeleteContainerImageRequest return throws example Click  https to see how to use DeleteContainerImage API.
      public async deleteContainerImage ( deleteContainerImageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#deleteContainerImage." ) ; const pathParams = { "{imageId}" : deleteContainerImageRequest . imageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteContainerImageRequest . ifMatch , "opc-request-id" : deleteContainerImageRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteContainerImageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/images/{imageId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteContainerImageResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteContainerImageSignatureRequest return throws example Click  https to see how to use DeleteContainerImageSignature API.
      public async deleteContainerImageSignature ( deleteContainerImageSignatureRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#deleteContainerImageSignature." ) ; const pathParams = { "{imageSignatureId}" : deleteContainerImageSignatureRequest . imageSignatureId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteContainerImageSignatureRequest . opcRequestId , "if-match" : deleteContainerImageSignatureRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteContainerImageSignatureRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/imageSignatures/{imageSignatureId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteContainerImageSignatureResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteContainerRepositoryRequest return throws example Click  https to see how to use DeleteContainerRepository API.
      public async deleteContainerRepository ( deleteContainerRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#deleteContainerRepository." ) ; const pathParams = { "{repositoryId}" : deleteContainerRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteContainerRepositoryRequest . ifMatch , "opc-request-id" : deleteContainerRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteContainerRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/repositories/{repositoryId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteContainerRepositoryResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteGenericArtifactRequest return throws example Click  https to see how to use DeleteGenericArtifact API.
      public async deleteGenericArtifact ( deleteGenericArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#deleteGenericArtifact." ) ; const pathParams = { "{artifactId}" : deleteGenericArtifactRequest . artifactId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteGenericArtifactRequest . ifMatch , "opc-request-id" : deleteGenericArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteGenericArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/artifacts/{artifactId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteGenericArtifactResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteGenericArtifactByPathRequest return throws example Click  https to see how to use DeleteGenericArtifactByPath API.
      public async deleteGenericArtifactByPath ( deleteGenericArtifactByPathRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#deleteGenericArtifactByPath." ) ; const pathParams = { "{repositoryId}" : deleteGenericArtifactByPathRequest . repositoryId , "{artifactPath}" : deleteGenericArtifactByPathRequest . artifactPath , "{version}" : deleteGenericArtifactByPathRequest . version } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteGenericArtifactByPathRequest . ifMatch , "opc-request-id" : deleteGenericArtifactByPathRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteGenericArtifactByPathRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/repositories/{repositoryId}/artifactPaths/{artifactPath}/versions/{version}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteGenericArtifactByPathResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteRepositoryRequest return throws example Click  https to see how to use DeleteRepository API.
      public async deleteRepository ( deleteRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#deleteRepository." ) ; const pathParams = { "{repositoryId}" : deleteRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteRepositoryRequest . ifMatch , "opc-request-id" : deleteRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteRepositoryResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetContainerConfigurationRequest return throws example Click  https to see how to use GetContainerConfiguration API.
      public async getContainerConfiguration ( getContainerConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getContainerConfiguration." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : getContainerConfigurationRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getContainerConfigurationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getContainerConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/configuration" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetContainerConfigurationResponse > { } , body : await response . json ( ) , bodyKey : "containerConfiguration" , bodyModel : model . ContainerConfiguration , type : "model.ContainerConfiguration" , 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 GetContainerImageRequest return throws example Click  https to see how to use GetContainerImage API.
      public async getContainerImage ( getContainerImageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getContainerImage." ) ; const pathParams = { "{imageId}" : getContainerImageRequest . imageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getContainerImageRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getContainerImageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/images/{imageId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetContainerImageResponse > { } , body : await response . json ( ) , bodyKey : "containerImage" , bodyModel : model . ContainerImage , type : "model.ContainerImage" , 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 GetContainerImageSignatureRequest return throws example Click  https to see how to use GetContainerImageSignature API.
      public async getContainerImageSignature ( getContainerImageSignatureRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getContainerImageSignature." ) ; const pathParams = { "{imageSignatureId}" : getContainerImageSignatureRequest . imageSignatureId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getContainerImageSignatureRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getContainerImageSignatureRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/imageSignatures/{imageSignatureId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetContainerImageSignatureResponse > { } , body : await response . json ( ) , bodyKey : "containerImageSignature" , bodyModel : model . ContainerImageSignature , type : "model.ContainerImageSignature" , 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 GetContainerRepositoryRequest return throws example Click  https to see how to use GetContainerRepository API.
      public async getContainerRepository ( getContainerRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getContainerRepository." ) ; const pathParams = { "{repositoryId}" : getContainerRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getContainerRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getContainerRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/repositories/{repositoryId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetContainerRepositoryResponse > { } , body : await response . json ( ) , bodyKey : "containerRepository" , bodyModel : model . ContainerRepository , type : "model.ContainerRepository" , 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 GetGenericArtifactRequest return throws example Click  https to see how to use GetGenericArtifact API.
      public async getGenericArtifact ( getGenericArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getGenericArtifact." ) ; const pathParams = { "{artifactId}" : getGenericArtifactRequest . artifactId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getGenericArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getGenericArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/artifacts/{artifactId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetGenericArtifactResponse > { } , body : await response . json ( ) , bodyKey : "genericArtifact" , bodyModel : model . GenericArtifact , type : "model.GenericArtifact" , 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 GetGenericArtifactByPathRequest return throws example Click  https to see how to use GetGenericArtifactByPath API.
      public async getGenericArtifactByPath ( getGenericArtifactByPathRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getGenericArtifactByPath." ) ; const pathParams = { "{repositoryId}" : getGenericArtifactByPathRequest . repositoryId , "{artifactPath}" : getGenericArtifactByPathRequest . artifactPath , "{version}" : getGenericArtifactByPathRequest . version } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getGenericArtifactByPathRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getGenericArtifactByPathRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/repositories/{repositoryId}/artifactPaths/{artifactPath}/versions/{version}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetGenericArtifactByPathResponse > { } , body : await response . json ( ) , bodyKey : "genericArtifact" , bodyModel : model . GenericArtifact , type : "model.GenericArtifact" , 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 GetRepositoryRequest return throws example Click  https to see how to use GetRepository API.
      public async getRepository ( getRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#getRepository." ) ; const pathParams = { "{repositoryId}" : getRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRepositoryResponse > { } , body : await response . json ( ) , bodyKey : "repository" , bodyModel : model . Repository , type : "model.Repository" , 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 ListContainerImageSignaturesRequest return throws example Click  https to see how to use ListContainerImageSignatures API.
      public async listContainerImageSignatures ( listContainerImageSignaturesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#listContainerImageSignatures." ) ; const pathParams = { } ; const queryParams = { "compartmentIdInSubtree" : listContainerImageSignaturesRequest . compartmentIdInSubtree , "compartmentId" : listContainerImageSignaturesRequest . compartmentId , "imageId" : listContainerImageSignaturesRequest . imageId , "repositoryId" : listContainerImageSignaturesRequest . repositoryId , "repositoryName" : listContainerImageSignaturesRequest . repositoryName , "imageDigest" : listContainerImageSignaturesRequest . imageDigest , "displayName" : listContainerImageSignaturesRequest . displayName , "kmsKeyId" : listContainerImageSignaturesRequest . kmsKeyId , "kmsKeyVersionId" : listContainerImageSignaturesRequest . kmsKeyVersionId , "signingAlgorithm" : listContainerImageSignaturesRequest . signingAlgorithm , "limit" : listContainerImageSignaturesRequest . limit , "page" : listContainerImageSignaturesRequest . page , "sortBy" : listContainerImageSignaturesRequest . sortBy , "sortOrder" : listContainerImageSignaturesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listContainerImageSignaturesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listContainerImageSignaturesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/imageSignatures" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListContainerImageSignaturesResponse > { } , body : await response . json ( ) , bodyKey : "containerImageSignatureCollection" , bodyModel : model . ContainerImageSignatureCollection , type : "model.ContainerImageSignatureCollection" , 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 ListContainerImagesRequest return throws example Click  https to see how to use ListContainerImages API.
      public async listContainerImages ( listContainerImagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#listContainerImages." ) ; const pathParams = { } ; const queryParams = { "compartmentIdInSubtree" : listContainerImagesRequest . compartmentIdInSubtree , "compartmentId" : listContainerImagesRequest . compartmentId , "displayName" : listContainerImagesRequest . displayName , "imageId" : listContainerImagesRequest . imageId , "isVersioned" : listContainerImagesRequest . isVersioned , "repositoryId" : listContainerImagesRequest . repositoryId , "repositoryName" : listContainerImagesRequest . repositoryName , "version" : listContainerImagesRequest . version , "lifecycleState" : listContainerImagesRequest . lifecycleState , "limit" : listContainerImagesRequest . limit , "page" : listContainerImagesRequest . page , "sortBy" : listContainerImagesRequest . sortBy , "sortOrder" : listContainerImagesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listContainerImagesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listContainerImagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/images" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListContainerImagesResponse > { } , body : await response . json ( ) , bodyKey : "containerImageCollection" , bodyModel : model . ContainerImageCollection , type : "model.ContainerImageCollection" , 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 ListContainerRepositoriesRequest return throws example Click  https to see how to use ListContainerRepositories API.
      public async listContainerRepositories ( listContainerRepositoriesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#listContainerRepositories." ) ; const pathParams = { } ; const queryParams = { "compartmentIdInSubtree" : listContainerRepositoriesRequest . compartmentIdInSubtree , "compartmentId" : listContainerRepositoriesRequest . compartmentId , "repositoryId" : listContainerRepositoriesRequest . repositoryId , "displayName" : listContainerRepositoriesRequest . displayName , "isPublic" : listContainerRepositoriesRequest . isPublic , "lifecycleState" : listContainerRepositoriesRequest . lifecycleState , "limit" : listContainerRepositoriesRequest . limit , "page" : listContainerRepositoriesRequest . page , "sortBy" : listContainerRepositoriesRequest . sortBy , "sortOrder" : listContainerRepositoriesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listContainerRepositoriesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listContainerRepositoriesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/repositories" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListContainerRepositoriesResponse > { } , body : await response . json ( ) , bodyKey : "containerRepositoryCollection" , bodyModel : model . ContainerRepositoryCollection , type : "model.ContainerRepositoryCollection" , 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 ListGenericArtifactsRequest return throws example Click  https to see how to use ListGenericArtifacts API.
      public async listGenericArtifacts ( listGenericArtifactsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#listGenericArtifacts." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listGenericArtifactsRequest . compartmentId , "repositoryId" : listGenericArtifactsRequest . repositoryId , "id" : listGenericArtifactsRequest . id , "displayName" : listGenericArtifactsRequest . displayName , "artifactPath" : listGenericArtifactsRequest . artifactPath , "version" : listGenericArtifactsRequest . version , "sha256" : listGenericArtifactsRequest . sha256 , "lifecycleState" : listGenericArtifactsRequest . lifecycleState , "limit" : listGenericArtifactsRequest . limit , "page" : listGenericArtifactsRequest . page , "sortBy" : listGenericArtifactsRequest . sortBy , "sortOrder" : listGenericArtifactsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listGenericArtifactsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listGenericArtifactsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/artifacts" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListGenericArtifactsResponse > { } , body : await response . json ( ) , bodyKey : "genericArtifactCollection" , bodyModel : model . GenericArtifactCollection , type : "model.GenericArtifactCollection" , 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 ListRepositoriesRequest return throws example Click  https to see how to use ListRepositories API.
      public async listRepositories ( listRepositoriesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#listRepositories." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listRepositoriesRequest . compartmentId , "id" : listRepositoriesRequest . id , "displayName" : listRepositoriesRequest . displayName , "isImmutable" : listRepositoriesRequest . isImmutable , "lifecycleState" : listRepositoriesRequest . lifecycleState , "limit" : listRepositoriesRequest . limit , "page" : listRepositoriesRequest . page , "sortBy" : listRepositoriesRequest . sortBy , "sortOrder" : listRepositoriesRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listRepositoriesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listRepositoriesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListRepositoriesResponse > { } , body : await response . json ( ) , bodyKey : "repositoryCollection" , bodyModel : model . RepositoryCollection , type : "model.RepositoryCollection" , 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 RemoveContainerVersionRequest return throws example Click  https to see how to use RemoveContainerVersion API.
      public async removeContainerVersion ( removeContainerVersionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#removeContainerVersion." ) ; const pathParams = { "{imageId}" : removeContainerVersionRequest . imageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : removeContainerVersionRequest . ifMatch , "opc-request-id" : removeContainerVersionRequest . opcRequestId , "opc-retry-token" : removeContainerVersionRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , removeContainerVersionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/images/{imageId}/actions/removeVersion" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( removeContainerVersionRequest . removeContainerVersionDetails , "RemoveContainerVersionDetails" , model . RemoveContainerVersionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RemoveContainerVersionResponse > { } , body : await response . json ( ) , bodyKey : "containerImage" , bodyModel : model . ContainerImage , type : "model.ContainerImage" , 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 RestoreContainerImageRequest return throws example Click  https to see how to use RestoreContainerImage API.
      public async restoreContainerImage ( restoreContainerImageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#restoreContainerImage." ) ; const pathParams = { "{imageId}" : restoreContainerImageRequest . imageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : restoreContainerImageRequest . ifMatch , "opc-request-id" : restoreContainerImageRequest . opcRequestId , "opc-retry-token" : restoreContainerImageRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreContainerImageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/images/{imageId}/actions/restore" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( restoreContainerImageRequest . restoreContainerImageDetails , "RestoreContainerImageDetails" , model . RestoreContainerImageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreContainerImageResponse > { } , body : await response . json ( ) , bodyKey : "containerImage" , bodyModel : model . ContainerImage , type : "model.ContainerImage" , 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 UpdateContainerConfigurationRequest return throws example Click  https to see how to use UpdateContainerConfiguration API.
      public async updateContainerConfiguration ( updateContainerConfigurationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#updateContainerConfiguration." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : updateContainerConfigurationRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateContainerConfigurationRequest . ifMatch , "opc-request-id" : updateContainerConfigurationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateContainerConfigurationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/configuration" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateContainerConfigurationRequest . updateContainerConfigurationDetails , "UpdateContainerConfigurationDetails" , model . UpdateContainerConfigurationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateContainerConfigurationResponse > { } , body : await response . json ( ) , bodyKey : "containerConfiguration" , bodyModel : model . ContainerConfiguration , type : "model.ContainerConfiguration" , 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 UpdateContainerRepositoryRequest return throws example Click  https to see how to use UpdateContainerRepository API.
      public async updateContainerRepository ( updateContainerRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#updateContainerRepository." ) ; const pathParams = { "{repositoryId}" : updateContainerRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateContainerRepositoryRequest . ifMatch , "opc-request-id" : updateContainerRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateContainerRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/container/repositories/{repositoryId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateContainerRepositoryRequest . updateContainerRepositoryDetails , "UpdateContainerRepositoryDetails" , model . UpdateContainerRepositoryDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateContainerRepositoryResponse > { } , body : await response . json ( ) , bodyKey : "containerRepository" , bodyModel : model . ContainerRepository , type : "model.ContainerRepository" , 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 UpdateGenericArtifactRequest return throws example Click  https to see how to use UpdateGenericArtifact API.
      public async updateGenericArtifact ( updateGenericArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#updateGenericArtifact." ) ; const pathParams = { "{artifactId}" : updateGenericArtifactRequest . artifactId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateGenericArtifactRequest . ifMatch , "opc-request-id" : updateGenericArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateGenericArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/artifacts/{artifactId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateGenericArtifactRequest . updateGenericArtifactDetails , "UpdateGenericArtifactDetails" , model . UpdateGenericArtifactDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateGenericArtifactResponse > { } , body : await response . json ( ) , bodyKey : "genericArtifact" , bodyModel : model . GenericArtifact , type : "model.GenericArtifact" , 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 UpdateGenericArtifactByPathRequest return throws example Click  https to see how to use UpdateGenericArtifactByPath API.
      public async updateGenericArtifactByPath ( updateGenericArtifactByPathRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#updateGenericArtifactByPath." ) ; const pathParams = { "{repositoryId}" : updateGenericArtifactByPathRequest . repositoryId , "{artifactPath}" : updateGenericArtifactByPathRequest . artifactPath , "{version}" : updateGenericArtifactByPathRequest . version } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateGenericArtifactByPathRequest . ifMatch , "opc-request-id" : updateGenericArtifactByPathRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateGenericArtifactByPathRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/generic/repositories/{repositoryId}/artifactPaths/{artifactPath}/versions/{version}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateGenericArtifactByPathRequest . updateGenericArtifactByPathDetails , "UpdateGenericArtifactByPathDetails" , model . UpdateGenericArtifactByPathDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateGenericArtifactByPathResponse > { } , body : await response . json ( ) , bodyKey : "genericArtifact" , bodyModel : model . GenericArtifact , type : "model.GenericArtifact" , 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 UpdateRepositoryRequest return throws example Click  https to see how to use UpdateRepository API.
      public async updateRepository ( updateRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ArtifactsClient#updateRepository." ) ; const pathParams = { "{repositoryId}" : updateRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateRepositoryRequest . ifMatch , "opc-request-id" : updateRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateRepositoryRequest . updateRepositoryDetails , "UpdateRepositoryDetails" , model . UpdateRepositoryDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateRepositoryResponse > { } , body : await response . json ( ) , bodyKey : "repository" , bodyModel : model . Repository , type : "model.Repository" , 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 ; } } }