/**
 * DevOps API
 * Use the DevOps API to create DevOps projects, configure code repositories,  add artifacts to deploy, build and test software applications, configure  target deployment environments, and deploy software applications.  For more information, see [DevOps](/Content/devops/using/home.htm).
 * OpenAPI spec version: 20210630
 *
 *
 * 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 { DevopsWaiter } from "./devops-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum DevopsApiKeys { } /**
 * 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 DevopsClient { protected static serviceEndpointTemplate = "https://devops.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : DevopsWaiter ; 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 + "/20210630" ; if ( this . logger ) this . logger . info ( `DevopsClient 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 ( DevopsClient . 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 ( DevopsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new DevopsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } /**
     * Submit stage approval.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ApproveDeploymentRequest return throws example Click  https to see how to use ApproveDeployment API.
      public async approveDeployment ( approveDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#approveDeployment." ) ; const pathParams = { "{deploymentId}" : approveDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : approveDeploymentRequest . ifMatch , "opc-request-id" : approveDeploymentRequest . opcRequestId , "opc-retry-token" : approveDeploymentRequest . opcRetryToken } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , approveDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}/actions/approve" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( approveDeploymentRequest . approveDeploymentDetails , "ApproveDeploymentDetails" , model . ApproveDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ApproveDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , 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 ; } } /**
     * Cancels the build run based on the build run ID provided in the request.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CancelBuildRunRequest return throws example Click  https to see how to use CancelBuildRun API.
      public async cancelBuildRun ( cancelBuildRunRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#cancelBuildRun." ) ; const pathParams = { "{buildRunId}" : cancelBuildRunRequest . buildRunId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : cancelBuildRunRequest . ifMatch , "opc-request-id" : cancelBuildRunRequest . opcRequestId , "opc-retry-token" : cancelBuildRunRequest . opcRetryToken } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelBuildRunRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildRuns/{buildRunId}/actions/cancel" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( cancelBuildRunRequest . cancelBuildRunDetails , "CancelBuildRunDetails" , model . CancelBuildRunDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelBuildRunResponse > { } , body : await response . json ( ) , bodyKey : "buildRun" , bodyModel : model . BuildRun , type : "model.BuildRun" , 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 ; } } /**
     * Cancels a deployment resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CancelDeploymentRequest return throws example Click  https to see how to use CancelDeployment API.
      public async cancelDeployment ( cancelDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#cancelDeployment." ) ; const pathParams = { "{deploymentId}" : cancelDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : cancelDeploymentRequest . ifMatch , "opc-request-id" : cancelDeploymentRequest . opcRequestId , "opc-retry-token" : cancelDeploymentRequest . opcRetryToken } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}/actions/cancel" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( cancelDeploymentRequest . cancelDeploymentDetails , "CancelDeploymentDetails" , model . CancelDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , 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 ; } } /**
     * Moves a project resource from one compartment OCID to another.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ChangeProjectCompartmentRequest return throws example Click  https to see how to use ChangeProjectCompartment API.
      public async changeProjectCompartment ( changeProjectCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#changeProjectCompartment." ) ; const pathParams = { "{projectId}" : changeProjectCompartmentRequest . projectId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeProjectCompartmentRequest . ifMatch , "opc-request-id" : changeProjectCompartmentRequest . opcRequestId , "opc-retry-token" : changeProjectCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeProjectCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/projects/{projectId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeProjectCompartmentRequest . changeProjectCompartmentDetails , "ChangeProjectCompartmentDetails" , model . ChangeProjectCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeProjectCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new build pipeline.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateBuildPipelineRequest return throws example Click  https to see how to use CreateBuildPipeline API.
      public async createBuildPipeline ( createBuildPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createBuildPipeline." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createBuildPipelineRequest . opcRetryToken , "opc-request-id" : createBuildPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBuildPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelines" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBuildPipelineRequest . createBuildPipelineDetails , "CreateBuildPipelineDetails" , model . CreateBuildPipelineDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBuildPipelineResponse > { } , body : await response . json ( ) , bodyKey : "buildPipeline" , bodyModel : model . BuildPipeline , type : "model.BuildPipeline" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new stage.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateBuildPipelineStageRequest return throws example Click  https to see how to use CreateBuildPipelineStage API.
      public async createBuildPipelineStage ( createBuildPipelineStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createBuildPipelineStage." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createBuildPipelineStageRequest . opcRetryToken , "opc-request-id" : createBuildPipelineStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBuildPipelineStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelineStages" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBuildPipelineStageRequest . createBuildPipelineStageDetails , "CreateBuildPipelineStageDetails" , model . CreateBuildPipelineStageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBuildPipelineStageResponse > { } , body : await response . json ( ) , bodyKey : "buildPipelineStage" , bodyModel : model . BuildPipelineStage , type : "model.BuildPipelineStage" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Starts a build pipeline run for a predefined build pipeline.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateBuildRunRequest return throws example Click  https to see how to use CreateBuildRun API.
      public async createBuildRun ( createBuildRunRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createBuildRun." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createBuildRunRequest . opcRetryToken , "opc-request-id" : createBuildRunRequest . opcRequestId , "if-match" : createBuildRunRequest . ifMatch } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBuildRunRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildRuns" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBuildRunRequest . createBuildRunDetails , "CreateBuildRunDetails" , model . CreateBuildRunDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBuildRunResponse > { } , body : await response . json ( ) , bodyKey : "buildRun" , bodyModel : model . BuildRun , type : "model.BuildRun" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new connection.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateConnectionRequest return throws example Click  https to see how to use CreateConnection API.
      public async createConnection ( createConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createConnection." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createConnectionRequest . opcRetryToken , "opc-request-id" : createConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/connections" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createConnectionRequest . createConnectionDetails , "CreateConnectionDetails" , model . CreateConnectionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateConnectionResponse > { } , body : await response . json ( ) , bodyKey : "connection" , bodyModel : model . Connection , type : "model.Connection" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new deployment artifact.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateDeployArtifactRequest return throws example Click  https to see how to use CreateDeployArtifact API.
      public async createDeployArtifact ( createDeployArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createDeployArtifact." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeployArtifactRequest . opcRetryToken , "opc-request-id" : createDeployArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeployArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployArtifacts" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeployArtifactRequest . createDeployArtifactDetails , "CreateDeployArtifactDetails" , model . CreateDeployArtifactDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeployArtifactResponse > { } , body : await response . json ( ) , bodyKey : "deployArtifact" , bodyModel : model . DeployArtifact , type : "model.DeployArtifact" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new deployment environment.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateDeployEnvironmentRequest return throws example Click  https to see how to use CreateDeployEnvironment API.
      public async createDeployEnvironment ( createDeployEnvironmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createDeployEnvironment." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeployEnvironmentRequest . opcRetryToken , "opc-request-id" : createDeployEnvironmentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeployEnvironmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployEnvironments" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeployEnvironmentRequest . createDeployEnvironmentDetails , "CreateDeployEnvironmentDetails" , model . CreateDeployEnvironmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeployEnvironmentResponse > { } , body : await response . json ( ) , bodyKey : "deployEnvironment" , bodyModel : model . DeployEnvironment , type : "model.DeployEnvironment" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new deployment pipeline.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateDeployPipelineRequest return throws example Click  https to see how to use CreateDeployPipeline API.
      public async createDeployPipeline ( createDeployPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createDeployPipeline." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeployPipelineRequest . opcRetryToken , "opc-request-id" : createDeployPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeployPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployPipelines" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeployPipelineRequest . createDeployPipelineDetails , "CreateDeployPipelineDetails" , model . CreateDeployPipelineDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeployPipelineResponse > { } , body : await response . json ( ) , bodyKey : "deployPipeline" , bodyModel : model . DeployPipeline , type : "model.DeployPipeline" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { 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 ; } } /**
     * Creates a new deployment stage.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateDeployStageRequest return throws example Click  https to see how to use CreateDeployStage API.
      public async createDeployStage ( createDeployStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createDeployStage." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeployStageRequest . opcRetryToken , "opc-request-id" : createDeployStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeployStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployStages" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeployStageRequest . createDeployStageDetails , "CreateDeployStageDetails" , model . CreateDeployStageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeployStageResponse > { } , body : await response . json ( ) , bodyKey : "deployStage" , bodyModel : model . DeployStage , type : "model.DeployStage" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new deployment.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateDeploymentRequest return throws example Click  https to see how to use CreateDeployment API.
      public async createDeployment ( createDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createDeployment." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createDeploymentRequest . opcRetryToken , "opc-request-id" : createDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createDeploymentRequest . createDeploymentDetails , "CreateDeploymentDetails" , model . CreateDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , 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 ; } } /**
     * Creates a new project.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateProjectRequest return throws example Click  https to see how to use CreateProject API.
      public async createProject ( createProjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createProject." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createProjectRequest . opcRetryToken , "opc-request-id" : createProjectRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createProjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/projects" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createProjectRequest . createProjectDetails , "CreateProjectDetails" , model . CreateProjectDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateProjectResponse > { } , body : await response . json ( ) , bodyKey : "project" , bodyModel : model . Project , type : "model.Project" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new repository.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  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 DevopsClient#createRepository." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createRepositoryRequest . opcRetryToken , "opc-request-id" : createRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; 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 ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new trigger.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param CreateTriggerRequest return throws example Click  https to see how to use CreateTrigger API.
      public async createTrigger ( createTriggerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#createTrigger." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createTriggerRequest . opcRetryToken , "opc-request-id" : createTriggerRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createTriggerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/triggers" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createTriggerRequest . createTriggerDetails , "CreateTriggerDetails" , model . CreateTriggerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateTriggerResponse > { } , body : await response . json ( ) , bodyKey : "triggerCreateResult" , bodyModel : model . TriggerCreateResult , type : "model.TriggerCreateResult" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a build pipeline resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteBuildPipelineRequest return throws example Click  https to see how to use DeleteBuildPipeline API.
      public async deleteBuildPipeline ( deleteBuildPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteBuildPipeline." ) ; const pathParams = { "{buildPipelineId}" : deleteBuildPipelineRequest . buildPipelineId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteBuildPipelineRequest . ifMatch , "opc-request-id" : deleteBuildPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBuildPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelines/{buildPipelineId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBuildPipelineResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a stage based on the stage ID provided in the request.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteBuildPipelineStageRequest return throws example Click  https to see how to use DeleteBuildPipelineStage API.
      public async deleteBuildPipelineStage ( deleteBuildPipelineStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteBuildPipelineStage." ) ; const pathParams = { "{buildPipelineStageId}" : deleteBuildPipelineStageRequest . buildPipelineStageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteBuildPipelineStageRequest . ifMatch , "opc-request-id" : deleteBuildPipelineStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBuildPipelineStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelineStages/{buildPipelineStageId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBuildPipelineStageResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a connection resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteConnectionRequest return throws example Click  https to see how to use DeleteConnection API.
      public async deleteConnection ( deleteConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteConnection." ) ; const pathParams = { "{connectionId}" : deleteConnectionRequest . connectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteConnectionRequest . ifMatch , "opc-request-id" : deleteConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/connections/{connectionId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteConnectionResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a deployment artifact resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteDeployArtifactRequest return throws example Click  https to see how to use DeleteDeployArtifact API.
      public async deleteDeployArtifact ( deleteDeployArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteDeployArtifact." ) ; const pathParams = { "{deployArtifactId}" : deleteDeployArtifactRequest . deployArtifactId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDeployArtifactRequest . ifMatch , "opc-request-id" : deleteDeployArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDeployArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployArtifacts/{deployArtifactId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDeployArtifactResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a deployment environment resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteDeployEnvironmentRequest return throws example Click  https to see how to use DeleteDeployEnvironment API.
      public async deleteDeployEnvironment ( deleteDeployEnvironmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteDeployEnvironment." ) ; const pathParams = { "{deployEnvironmentId}" : deleteDeployEnvironmentRequest . deployEnvironmentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDeployEnvironmentRequest . ifMatch , "opc-request-id" : deleteDeployEnvironmentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDeployEnvironmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployEnvironments/{deployEnvironmentId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDeployEnvironmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a deployment pipeline resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteDeployPipelineRequest return throws example Click  https to see how to use DeleteDeployPipeline API.
      public async deleteDeployPipeline ( deleteDeployPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteDeployPipeline." ) ; const pathParams = { "{deployPipelineId}" : deleteDeployPipelineRequest . deployPipelineId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDeployPipelineRequest . ifMatch , "opc-request-id" : deleteDeployPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDeployPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployPipelines/{deployPipelineId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDeployPipelineResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a deployment stage resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteDeployStageRequest return throws example Click  https to see how to use DeleteDeployStage API.
      public async deleteDeployStage ( deleteDeployStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteDeployStage." ) ; const pathParams = { "{deployStageId}" : deleteDeployStageRequest . deployStageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteDeployStageRequest . ifMatch , "opc-request-id" : deleteDeployStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteDeployStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployStages/{deployStageId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteDeployStageResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a project resource by identifier
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteProjectRequest return throws example Click  https to see how to use DeleteProject API.
      public async deleteProject ( deleteProjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteProject." ) ; const pathParams = { "{projectId}" : deleteProjectRequest . projectId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteProjectRequest . ifMatch , "opc-request-id" : deleteProjectRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteProjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/projects/{projectId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteProjectResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a Repository's Ref by its name. Returns an error if the name is ambiguous. Can be disambiguated by using full names like \"heads/<name>\" or \"tags/<name>\".
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteRefRequest return throws example Click  https to see how to use DeleteRef API.
      public async deleteRef ( deleteRefRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteRef." ) ; const pathParams = { "{repositoryId}" : deleteRefRequest . repositoryId , "{refName}" : deleteRefRequest . refName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteRefRequest . ifMatch , "opc-retry-token" : deleteRefRequest . opcRetryToken , "opc-request-id" : deleteRefRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteRefRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/refs/{refName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteRefResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a repository resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  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 DevopsClient#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 . OciSdkDefaultRetryConfiguration ; 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-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a trigger resource by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param DeleteTriggerRequest return throws example Click  https to see how to use DeleteTrigger API.
      public async deleteTrigger ( deleteTriggerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#deleteTrigger." ) ; const pathParams = { "{triggerId}" : deleteTriggerRequest . triggerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteTriggerRequest . ifMatch , "opc-request-id" : deleteTriggerRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteTriggerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/triggers/{triggerId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteTriggerResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Retrieves a build pipeline by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetBuildPipelineRequest return throws example Click  https to see how to use GetBuildPipeline API.
      public async getBuildPipeline ( getBuildPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getBuildPipeline." ) ; const pathParams = { "{buildPipelineId}" : getBuildPipelineRequest . buildPipelineId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBuildPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBuildPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelines/{buildPipelineId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBuildPipelineResponse > { } , body : await response . json ( ) , bodyKey : "buildPipeline" , bodyModel : model . BuildPipeline , type : "model.BuildPipeline" , 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 ; } } /**
     * Retrieves a stage based on the stage ID provided in the request.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetBuildPipelineStageRequest return throws example Click  https to see how to use GetBuildPipelineStage API.
      public async getBuildPipelineStage ( getBuildPipelineStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getBuildPipelineStage." ) ; const pathParams = { "{buildPipelineStageId}" : getBuildPipelineStageRequest . buildPipelineStageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBuildPipelineStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBuildPipelineStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelineStages/{buildPipelineStageId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBuildPipelineStageResponse > { } , body : await response . json ( ) , bodyKey : "buildPipelineStage" , bodyModel : model . BuildPipelineStage , type : "model.BuildPipelineStage" , 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 ; } } /**
     * Returns the details of a build run for a given build run ID.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetBuildRunRequest return throws example Click  https to see how to use GetBuildRun API.
      public async getBuildRun ( getBuildRunRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getBuildRun." ) ; const pathParams = { "{buildRunId}" : getBuildRunRequest . buildRunId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getBuildRunRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBuildRunRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildRuns/{buildRunId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBuildRunResponse > { } , body : await response . json ( ) , bodyKey : "buildRun" , bodyModel : model . BuildRun , type : "model.BuildRun" , 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 ; } } /**
     * Retrieves a repository's commit by commit ID.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetCommitRequest return throws example Click  https to see how to use GetCommit API.
      public async getCommit ( getCommitRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getCommit." ) ; const pathParams = { "{repositoryId}" : getCommitRequest . repositoryId , "{commitId}" : getCommitRequest . commitId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCommitRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCommitRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/commits/{commitId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCommitResponse > { } , body : await response . json ( ) , bodyKey : "repositoryCommit" , bodyModel : model . RepositoryCommit , type : "model.RepositoryCommit" , 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 ; } } /**
     * Compares two revisions for their differences. Supports comparison between two references or commits.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetCommitDiffRequest return throws example Click  https to see how to use GetCommitDiff API.
      public async getCommitDiff ( getCommitDiffRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getCommitDiff." ) ; const pathParams = { "{repositoryId}" : getCommitDiffRequest . repositoryId } ; const queryParams = { "baseVersion" : getCommitDiffRequest . baseVersion , "targetVersion" : getCommitDiffRequest . targetVersion , "isComparisonFromMergeBase" : getCommitDiffRequest . isComparisonFromMergeBase } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getCommitDiffRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getCommitDiffRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/diff" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetCommitDiffResponse > { } , body : await response . json ( ) , bodyKey : "diffResponse" , bodyModel : model . DiffResponse , type : "model.DiffResponse" , 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 ; } } /**
     * Retrieves a connection by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetConnectionRequest return throws example Click  https to see how to use GetConnection API.
      public async getConnection ( getConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getConnection." ) ; const pathParams = { "{connectionId}" : getConnectionRequest . connectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/connections/{connectionId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetConnectionResponse > { } , body : await response . json ( ) , bodyKey : "connection" , bodyModel : model . Connection , type : "model.Connection" , 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 ; } } /**
     * Retrieves a deployment artifact by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetDeployArtifactRequest return throws example Click  https to see how to use GetDeployArtifact API.
      public async getDeployArtifact ( getDeployArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getDeployArtifact." ) ; const pathParams = { "{deployArtifactId}" : getDeployArtifactRequest . deployArtifactId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeployArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeployArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployArtifacts/{deployArtifactId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeployArtifactResponse > { } , body : await response . json ( ) , bodyKey : "deployArtifact" , bodyModel : model . DeployArtifact , type : "model.DeployArtifact" , 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 ; } } /**
     * Retrieves a deployment environment by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetDeployEnvironmentRequest return throws example Click  https to see how to use GetDeployEnvironment API.
      public async getDeployEnvironment ( getDeployEnvironmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getDeployEnvironment." ) ; const pathParams = { "{deployEnvironmentId}" : getDeployEnvironmentRequest . deployEnvironmentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeployEnvironmentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeployEnvironmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployEnvironments/{deployEnvironmentId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeployEnvironmentResponse > { } , body : await response . json ( ) , bodyKey : "deployEnvironment" , bodyModel : model . DeployEnvironment , type : "model.DeployEnvironment" , 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 ; } } /**
     * Retrieves a deployment pipeline by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetDeployPipelineRequest return throws example Click  https to see how to use GetDeployPipeline API.
      public async getDeployPipeline ( getDeployPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getDeployPipeline." ) ; const pathParams = { "{deployPipelineId}" : getDeployPipelineRequest . deployPipelineId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeployPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeployPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployPipelines/{deployPipelineId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeployPipelineResponse > { } , body : await response . json ( ) , bodyKey : "deployPipeline" , bodyModel : model . DeployPipeline , type : "model.DeployPipeline" , 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 ; } } /**
     * Retrieves a deployment stage by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetDeployStageRequest return throws example Click  https to see how to use GetDeployStage API.
      public async getDeployStage ( getDeployStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getDeployStage." ) ; const pathParams = { "{deployStageId}" : getDeployStageRequest . deployStageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeployStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeployStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployStages/{deployStageId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeployStageResponse > { } , body : await response . json ( ) , bodyKey : "deployStage" , bodyModel : model . DeployStage , type : "model.DeployStage" , 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 ; } } /**
     * Retrieves a deployment by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetDeploymentRequest return throws example Click  https to see how to use GetDeployment API.
      public async getDeployment ( getDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getDeployment." ) ; const pathParams = { "{deploymentId}" : getDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , 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 ; } } /**
     * Gets the line-by-line difference between files on different commits.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetFileDiffRequest return throws example Click  https to see how to use GetFileDiff API.
      public async getFileDiff ( getFileDiffRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getFileDiff." ) ; const pathParams = { "{repositoryId}" : getFileDiffRequest . repositoryId , "{filePath}" : getFileDiffRequest . filePath } ; const queryParams = { "baseVersion" : getFileDiffRequest . baseVersion , "targetVersion" : getFileDiffRequest . targetVersion , "isComparisonFromMergeBase" : getFileDiffRequest . isComparisonFromMergeBase } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getFileDiffRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getFileDiffRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/diffs/{filePath}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetFileDiffResponse > { } , body : await response . json ( ) , bodyKey : "fileDiffResponse" , bodyModel : model . FileDiffResponse , type : "model.FileDiffResponse" , 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 ; } } /**
     * Returns either current mirror record or last successful mirror record for a specific mirror repository.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetMirrorRecordRequest return throws example Click  https to see how to use GetMirrorRecord API.
      public async getMirrorRecord ( getMirrorRecordRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getMirrorRecord." ) ; const pathParams = { "{repositoryId}" : getMirrorRecordRequest . repositoryId , "{mirrorRecordType}" : getMirrorRecordRequest . mirrorRecordType } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getMirrorRecordRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getMirrorRecordRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/mirrorRecords/{mirrorRecordType}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetMirrorRecordResponse > { } , body : await response . json ( ) , bodyKey : "repositoryMirrorRecord" , bodyModel : model . RepositoryMirrorRecord , type : "model.RepositoryMirrorRecord" , 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 ; } } /**
     * Retrieves blob of specific branch name/commit ID and file path.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetObjectRequest return throws example Click  https to see how to use GetObject API.
      public async getObject ( getObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getObject." ) ; const pathParams = { "{repositoryId}" : getObjectRequest . repositoryId } ; const queryParams = { "filePath" : getObjectRequest . filePath , "refName" : getObjectRequest . refName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getObjectRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/object" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetObjectResponse > { } , body : await response . json ( ) , bodyKey : "repositoryObject" , bodyModel : model . RepositoryObject , type : "model.RepositoryObject" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Retrieve contents of a specified object.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetObjectContentRequest return throws example Click  https to see how to use GetObjectContent API.
      public async getObjectContent ( getObjectContentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getObjectContent." ) ; const pathParams = { "{repositoryId}" : getObjectContentRequest . repositoryId , "{sha}" : getObjectContentRequest . sha } ; const queryParams = { "filePath" : getObjectContentRequest . filePath } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getObjectContentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getObjectContentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/objects/{sha}/content" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetObjectContentResponse > { } , body : response . body ! , bodyKey : "value" , bodyModel : "string" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "Content-Type" ) , key : "contentType" , dataType : "string" } , { value : response . headers . get ( "Content-Disposition" ) , key : "contentDisposition" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Retrieves a project by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetProjectRequest return throws example Click  https to see how to use GetProject API.
      public async getProject ( getProjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getProject." ) ; const pathParams = { "{projectId}" : getProjectRequest . projectId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getProjectRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getProjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/projects/{projectId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetProjectResponse > { } , body : await response . json ( ) , bodyKey : "project" , bodyModel : model . Project , type : "model.Project" , 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 ; } } /**
     * Retrieves a repository's reference by its name with preference for branches over tags if the name is ambiguous. This can be disambiguated by using full names like \"heads/<name>\" or \"tags/<name>\".
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetRefRequest return throws example Click  https to see how to use GetRef API.
      public async getRef ( getRefRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getRef." ) ; const pathParams = { "{repositoryId}" : getRefRequest . repositoryId , "{refName}" : getRefRequest . refName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRefRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRefRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/refs/{refName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRefResponse > { } , body : await response . json ( ) , bodyKey : "repositoryRef" , bodyModel : model . RepositoryRef , type : "model.RepositoryRef" , 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 ; } } /**
     * Retrieves a repository by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  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 DevopsClient#getRepository." ) ; const pathParams = { "{repositoryId}" : getRepositoryRequest . repositoryId } ; const queryParams = { "fields" : getRepositoryRequest . fields } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; 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 ; } } /**
     * Returns the archived repository information.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetRepositoryArchiveContentRequest return throws example Click  https to see how to use GetRepositoryArchiveContent API.
      public async getRepositoryArchiveContent ( getRepositoryArchiveContentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getRepositoryArchiveContent." ) ; const pathParams = { "{repositoryId}" : getRepositoryArchiveContentRequest . repositoryId } ; const queryParams = { "refName" : getRepositoryArchiveContentRequest . refName , "format" : getRepositoryArchiveContentRequest . format } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRepositoryArchiveContentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRepositoryArchiveContentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/archive/content" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRepositoryArchiveContentResponse > { } , body : response . body ! , bodyKey : "value" , bodyModel : "string" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "Content-Type" ) , key : "contentType" , dataType : "string" } , { value : response . headers . get ( "Content-Disposition" ) , key : "contentDisposition" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Retrieve lines of a specified file. Supports starting line number and limit.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetRepositoryFileLinesRequest return throws example Click  https to see how to use GetRepositoryFileLines API.
      public async getRepositoryFileLines ( getRepositoryFileLinesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getRepositoryFileLines." ) ; const pathParams = { "{repositoryId}" : getRepositoryFileLinesRequest . repositoryId , "{filePath}" : getRepositoryFileLinesRequest . filePath } ; const queryParams = { "revision" : getRepositoryFileLinesRequest . revision , "startLineNumber" : getRepositoryFileLinesRequest . startLineNumber , "limit" : getRepositoryFileLinesRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRepositoryFileLinesRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRepositoryFileLinesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/files/{filePath}/lines" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRepositoryFileLinesResponse > { } , body : await response . json ( ) , bodyKey : "repositoryFileLines" , bodyModel : model . RepositoryFileLines , type : "model.RepositoryFileLines" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Retrieves a trigger by identifier.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetTriggerRequest return throws example Click  https to see how to use GetTrigger API.
      public async getTrigger ( getTriggerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getTrigger." ) ; const pathParams = { "{triggerId}" : getTriggerRequest . triggerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getTriggerRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getTriggerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/triggers/{triggerId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetTriggerResponse > { } , body : await response . json ( ) , bodyKey : "trigger" , bodyModel : model . Trigger , type : "model.Trigger" , 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 ; } } /**
     * Retrieves the status of the work request with the given ID.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param GetWorkRequestRequest return throws example Click  https to see how to use GetWorkRequest API.
      public async getWorkRequest ( getWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getWorkRequestRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetWorkRequestResponse > { } , body : await response . json ( ) , bodyKey : "workRequest" , bodyModel : model . WorkRequest , type : "model.WorkRequest" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Retrieve a list of all the authors.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListAuthorsRequest return throws example Click  https to see how to use ListAuthors API.
      public async listAuthors ( listAuthorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listAuthors." ) ; const pathParams = { "{repositoryId}" : listAuthorsRequest . repositoryId } ; const queryParams = { "refName" : listAuthorsRequest . refName , "limit" : listAuthorsRequest . limit , "page" : listAuthorsRequest . page , "sortOrder" : listAuthorsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAuthorsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAuthorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/authors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAuthorsResponse > { } , body : await response . json ( ) , bodyKey : "repositoryAuthorCollection" , bodyModel : model . RepositoryAuthorCollection , type : "model.RepositoryAuthorCollection" , 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 ; } } /**
     * Returns a list of all stages in a compartment or build pipeline.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListBuildPipelineStagesRequest return throws example Click  https to see how to use ListBuildPipelineStages API.
      public async listBuildPipelineStages ( listBuildPipelineStagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listBuildPipelineStages." ) ; const pathParams = { } ; const queryParams = { "id" : listBuildPipelineStagesRequest . id , "buildPipelineId" : listBuildPipelineStagesRequest . buildPipelineId , "compartmentId" : listBuildPipelineStagesRequest . compartmentId , "lifecycleState" : listBuildPipelineStagesRequest . lifecycleState , "displayName" : listBuildPipelineStagesRequest . displayName , "limit" : listBuildPipelineStagesRequest . limit , "page" : listBuildPipelineStagesRequest . page , "sortOrder" : listBuildPipelineStagesRequest . sortOrder , "sortBy" : listBuildPipelineStagesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBuildPipelineStagesRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBuildPipelineStagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelineStages" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBuildPipelineStagesResponse > { } , body : await response . json ( ) , bodyKey : "buildPipelineStageCollection" , bodyModel : model . BuildPipelineStageCollection , type : "model.BuildPipelineStageCollection" , 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 ; } } /**
     * Returns a list of build pipelines.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListBuildPipelinesRequest return throws example Click  https to see how to use ListBuildPipelines API.
      public async listBuildPipelines ( listBuildPipelinesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listBuildPipelines." ) ; const pathParams = { } ; const queryParams = { "id" : listBuildPipelinesRequest . id , "projectId" : listBuildPipelinesRequest . projectId , "compartmentId" : listBuildPipelinesRequest . compartmentId , "lifecycleState" : listBuildPipelinesRequest . lifecycleState , "displayName" : listBuildPipelinesRequest . displayName , "limit" : listBuildPipelinesRequest . limit , "page" : listBuildPipelinesRequest . page , "sortOrder" : listBuildPipelinesRequest . sortOrder , "sortBy" : listBuildPipelinesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBuildPipelinesRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBuildPipelinesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelines" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBuildPipelinesResponse > { } , body : await response . json ( ) , bodyKey : "buildPipelineCollection" , bodyModel : model . BuildPipelineCollection , type : "model.BuildPipelineCollection" , 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 ; } } /**
     * Returns a list of build run summary.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListBuildRunsRequest return throws example Click  https to see how to use ListBuildRuns API.
      public async listBuildRuns ( listBuildRunsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listBuildRuns." ) ; const pathParams = { } ; const queryParams = { "id" : listBuildRunsRequest . id , "buildPipelineId" : listBuildRunsRequest . buildPipelineId , "projectId" : listBuildRunsRequest . projectId , "compartmentId" : listBuildRunsRequest . compartmentId , "displayName" : listBuildRunsRequest . displayName , "lifecycleState" : listBuildRunsRequest . lifecycleState , "limit" : listBuildRunsRequest . limit , "page" : listBuildRunsRequest . page , "sortOrder" : listBuildRunsRequest . sortOrder , "sortBy" : listBuildRunsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listBuildRunsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBuildRunsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildRuns" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBuildRunsResponse > { } , body : await response . json ( ) , bodyKey : "buildRunSummaryCollection" , bodyModel : model . BuildRunSummaryCollection , type : "model.BuildRunSummaryCollection" , 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 ; } } /**
     * Compares two revisions and lists the differences. Supports comparison between two references or commits.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListCommitDiffsRequest return throws example Click  https to see how to use ListCommitDiffs API.
      public async listCommitDiffs ( listCommitDiffsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listCommitDiffs." ) ; const pathParams = { "{repositoryId}" : listCommitDiffsRequest . repositoryId } ; const queryParams = { "baseVersion" : listCommitDiffsRequest . baseVersion , "targetVersion" : listCommitDiffsRequest . targetVersion , "isComparisonFromMergeBase" : listCommitDiffsRequest . isComparisonFromMergeBase , "limit" : listCommitDiffsRequest . limit , "page" : listCommitDiffsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCommitDiffsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCommitDiffsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/diffs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCommitDiffsResponse > { } , body : await response . json ( ) , bodyKey : "diffCollection" , bodyModel : model . DiffCollection , type : "model.DiffCollection" , 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 ; } } /**
     * Returns a list of commits.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListCommitsRequest return throws example Click  https to see how to use ListCommits API.
      public async listCommits ( listCommitsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listCommits." ) ; const pathParams = { "{repositoryId}" : listCommitsRequest . repositoryId } ; const queryParams = { "refName" : listCommitsRequest . refName , "excludeRefName" : listCommitsRequest . excludeRefName , "filePath" : listCommitsRequest . filePath , "timestampGreaterThanOrEqualTo" : listCommitsRequest . timestampGreaterThanOrEqualTo , "timestampLessThanOrEqualTo" : listCommitsRequest . timestampLessThanOrEqualTo , "commitMessage" : listCommitsRequest . commitMessage , "authorName" : listCommitsRequest . authorName , "limit" : listCommitsRequest . limit , "page" : listCommitsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listCommitsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listCommitsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/commits" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListCommitsResponse > { } , body : await response . json ( ) , bodyKey : "repositoryCommitCollection" , bodyModel : model . RepositoryCommitCollection , type : "model.RepositoryCommitCollection" , 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 ; } } /**
     * Returns a list of connections.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListConnectionsRequest return throws example Click  https to see how to use ListConnections API.
      public async listConnections ( listConnectionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listConnections." ) ; const pathParams = { } ; const queryParams = { "id" : listConnectionsRequest . id , "projectId" : listConnectionsRequest . projectId , "compartmentId" : listConnectionsRequest . compartmentId , "lifecycleState" : listConnectionsRequest . lifecycleState , "displayName" : listConnectionsRequest . displayName , "connectionType" : listConnectionsRequest . connectionType , "limit" : listConnectionsRequest . limit , "page" : listConnectionsRequest . page , "sortOrder" : listConnectionsRequest . sortOrder , "sortBy" : listConnectionsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listConnectionsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listConnectionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/connections" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListConnectionsResponse > { } , body : await response . json ( ) , bodyKey : "connectionCollection" , bodyModel : model . ConnectionCollection , type : "model.ConnectionCollection" , 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 ; } } /**
     * Returns a list of deployment artifacts.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListDeployArtifactsRequest return throws example Click  https to see how to use ListDeployArtifacts API.
      public async listDeployArtifacts ( listDeployArtifactsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listDeployArtifacts." ) ; const pathParams = { } ; const queryParams = { "id" : listDeployArtifactsRequest . id , "projectId" : listDeployArtifactsRequest . projectId , "compartmentId" : listDeployArtifactsRequest . compartmentId , "lifecycleState" : listDeployArtifactsRequest . lifecycleState , "displayName" : listDeployArtifactsRequest . displayName , "limit" : listDeployArtifactsRequest . limit , "page" : listDeployArtifactsRequest . page , "sortOrder" : listDeployArtifactsRequest . sortOrder , "sortBy" : listDeployArtifactsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeployArtifactsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeployArtifactsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployArtifacts" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeployArtifactsResponse > { } , body : await response . json ( ) , bodyKey : "deployArtifactCollection" , bodyModel : model . DeployArtifactCollection , type : "model.DeployArtifactCollection" , 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 ; } } /**
     * Returns a list of deployment environments.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListDeployEnvironmentsRequest return throws example Click  https to see how to use ListDeployEnvironments API.
      public async listDeployEnvironments ( listDeployEnvironmentsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listDeployEnvironments." ) ; const pathParams = { } ; const queryParams = { "projectId" : listDeployEnvironmentsRequest . projectId , "compartmentId" : listDeployEnvironmentsRequest . compartmentId , "id" : listDeployEnvironmentsRequest . id , "lifecycleState" : listDeployEnvironmentsRequest . lifecycleState , "displayName" : listDeployEnvironmentsRequest . displayName , "limit" : listDeployEnvironmentsRequest . limit , "page" : listDeployEnvironmentsRequest . page , "sortOrder" : listDeployEnvironmentsRequest . sortOrder , "sortBy" : listDeployEnvironmentsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeployEnvironmentsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeployEnvironmentsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployEnvironments" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeployEnvironmentsResponse > { } , body : await response . json ( ) , bodyKey : "deployEnvironmentCollection" , bodyModel : model . DeployEnvironmentCollection , type : "model.DeployEnvironmentCollection" , 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 ; } } /**
     * Returns a list of deployment pipelines.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListDeployPipelinesRequest return throws example Click  https to see how to use ListDeployPipelines API.
      public async listDeployPipelines ( listDeployPipelinesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listDeployPipelines." ) ; const pathParams = { } ; const queryParams = { "id" : listDeployPipelinesRequest . id , "projectId" : listDeployPipelinesRequest . projectId , "compartmentId" : listDeployPipelinesRequest . compartmentId , "lifecycleState" : listDeployPipelinesRequest . lifecycleState , "displayName" : listDeployPipelinesRequest . displayName , "limit" : listDeployPipelinesRequest . limit , "page" : listDeployPipelinesRequest . page , "sortOrder" : listDeployPipelinesRequest . sortOrder , "sortBy" : listDeployPipelinesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeployPipelinesRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeployPipelinesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployPipelines" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeployPipelinesResponse > { } , body : await response . json ( ) , bodyKey : "deployPipelineCollection" , bodyModel : model . DeployPipelineCollection , type : "model.DeployPipelineCollection" , 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 ; } } /**
     * Retrieves a list of deployment stages.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListDeployStagesRequest return throws example Click  https to see how to use ListDeployStages API.
      public async listDeployStages ( listDeployStagesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listDeployStages." ) ; const pathParams = { } ; const queryParams = { "id" : listDeployStagesRequest . id , "deployPipelineId" : listDeployStagesRequest . deployPipelineId , "compartmentId" : listDeployStagesRequest . compartmentId , "lifecycleState" : listDeployStagesRequest . lifecycleState , "displayName" : listDeployStagesRequest . displayName , "limit" : listDeployStagesRequest . limit , "page" : listDeployStagesRequest . page , "sortOrder" : listDeployStagesRequest . sortOrder , "sortBy" : listDeployStagesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeployStagesRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeployStagesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployStages" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeployStagesResponse > { } , body : await response . json ( ) , bodyKey : "deployStageCollection" , bodyModel : model . DeployStageCollection , type : "model.DeployStageCollection" , 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 ; } } /**
     * Returns a list of deployments.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListDeploymentsRequest return throws example Click  https to see how to use ListDeployments API.
      public async listDeployments ( listDeploymentsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listDeployments." ) ; const pathParams = { } ; const queryParams = { "deployPipelineId" : listDeploymentsRequest . deployPipelineId , "id" : listDeploymentsRequest . id , "compartmentId" : listDeploymentsRequest . compartmentId , "projectId" : listDeploymentsRequest . projectId , "lifecycleState" : listDeploymentsRequest . lifecycleState , "displayName" : listDeploymentsRequest . displayName , "limit" : listDeploymentsRequest . limit , "page" : listDeploymentsRequest . page , "sortOrder" : listDeploymentsRequest . sortOrder , "sortBy" : listDeploymentsRequest . sortBy , "timeCreatedLessThan" : listDeploymentsRequest . timeCreatedLessThan , "timeCreatedGreaterThanOrEqualTo" : listDeploymentsRequest . timeCreatedGreaterThanOrEqualTo } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listDeploymentsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listDeploymentsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListDeploymentsResponse > { } , body : await response . json ( ) , bodyKey : "deploymentCollection" , bodyModel : model . DeploymentCollection , type : "model.DeploymentCollection" , 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 ; } } /**
     * Returns a list of mirror entry in history within 30 days.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListMirrorRecordsRequest return throws example Click  https to see how to use ListMirrorRecords API.
      public async listMirrorRecords ( listMirrorRecordsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listMirrorRecords." ) ; const pathParams = { "{repositoryId}" : listMirrorRecordsRequest . repositoryId } ; const queryParams = { "limit" : listMirrorRecordsRequest . limit , "page" : listMirrorRecordsRequest . page , "sortOrder" : listMirrorRecordsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listMirrorRecordsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listMirrorRecordsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/mirrorRecords" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListMirrorRecordsResponse > { } , body : await response . json ( ) , bodyKey : "repositoryMirrorRecordCollection" , bodyModel : model . RepositoryMirrorRecordCollection , type : "model.RepositoryMirrorRecordCollection" , 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 ; } } /**
     * Retrieves a list of files and directories in a repository.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListPathsRequest return throws example Click  https to see how to use ListPaths API.
      public async listPaths ( listPathsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listPaths." ) ; const pathParams = { "{repositoryId}" : listPathsRequest . repositoryId } ; const queryParams = { "ref" : listPathsRequest . ref , "pathsInSubtree" : listPathsRequest . pathsInSubtree , "folderPath" : listPathsRequest . folderPath , "limit" : listPathsRequest . limit , "page" : listPathsRequest . page , "displayName" : listPathsRequest . displayName , "sortOrder" : listPathsRequest . sortOrder , "sortBy" : listPathsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPathsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPathsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/paths" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPathsResponse > { } , body : await response . json ( ) , bodyKey : "repositoryPathCollection" , bodyModel : model . RepositoryPathCollection , type : "model.RepositoryPathCollection" , 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 ; } } /**
     * Returns a list of projects.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListProjectsRequest return throws example Click  https to see how to use ListProjects API.
      public async listProjects ( listProjectsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listProjects." ) ; const pathParams = { } ; const queryParams = { "id" : listProjectsRequest . id , "compartmentId" : listProjectsRequest . compartmentId , "lifecycleState" : listProjectsRequest . lifecycleState , "name" : listProjectsRequest . name , "limit" : listProjectsRequest . limit , "page" : listProjectsRequest . page , "sortOrder" : listProjectsRequest . sortOrder , "sortBy" : listProjectsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listProjectsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listProjectsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/projects" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListProjectsResponse > { } , body : await response . json ( ) , bodyKey : "projectCollection" , bodyModel : model . ProjectCollection , type : "model.ProjectCollection" , 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 ; } } /**
     * Returns a list of references.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListRefsRequest return throws example Click  https to see how to use ListRefs API.
      public async listRefs ( listRefsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listRefs." ) ; const pathParams = { "{repositoryId}" : listRefsRequest . repositoryId } ; const queryParams = { "refType" : listRefsRequest . refType , "commitId" : listRefsRequest . commitId , "limit" : listRefsRequest . limit , "page" : listRefsRequest . page , "refName" : listRefsRequest . refName , "sortOrder" : listRefsRequest . sortOrder , "sortBy" : listRefsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listRefsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listRefsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/refs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListRefsResponse > { } , body : await response . json ( ) , bodyKey : "repositoryRefCollection" , bodyModel : model . RepositoryRefCollection , type : "model.RepositoryRefCollection" , 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 ; } } /**
     * Returns a list of repositories given a compartment ID or a project ID.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  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 DevopsClient#listRepositories." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listRepositoriesRequest . compartmentId , "projectId" : listRepositoriesRequest . projectId , "repositoryId" : listRepositoriesRequest . repositoryId , "lifecycleState" : listRepositoriesRequest . lifecycleState , "name" : listRepositoriesRequest . name , "limit" : listRepositoriesRequest . limit , "page" : listRepositoriesRequest . page , "sortOrder" : listRepositoriesRequest . sortOrder , "sortBy" : listRepositoriesRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listRepositoriesRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; 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-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Returns a list of triggers.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListTriggersRequest return throws example Click  https to see how to use ListTriggers API.
      public async listTriggers ( listTriggersRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listTriggers." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listTriggersRequest . compartmentId , "projectId" : listTriggersRequest . projectId , "lifecycleState" : listTriggersRequest . lifecycleState , "displayName" : listTriggersRequest . displayName , "id" : listTriggersRequest . id , "limit" : listTriggersRequest . limit , "page" : listTriggersRequest . page , "sortOrder" : listTriggersRequest . sortOrder , "sortBy" : listTriggersRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listTriggersRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listTriggersRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/triggers" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListTriggersResponse > { } , body : await response . json ( ) , bodyKey : "triggerCollection" , bodyModel : model . TriggerCollection , type : "model.TriggerCollection" , 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 ; } } /**
     * Returns a list of errors for a given work request.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListWorkRequestErrorsRequest return throws example Click  https to see how to use ListWorkRequestErrors API.
      public async listWorkRequestErrors ( listWorkRequestErrorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit , "sortOrder" : listWorkRequestErrorsRequest . sortOrder , "sortBy" : listWorkRequestErrorsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestErrorsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestErrorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/errors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestErrorsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestErrorCollection" , bodyModel : model . WorkRequestErrorCollection , type : "model.WorkRequestErrorCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Returns a list of logs for a given work request.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListWorkRequestLogsRequest return throws example Click  https to see how to use ListWorkRequestLogs API.
      public async listWorkRequestLogs ( listWorkRequestLogsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit , "sortOrder" : listWorkRequestLogsRequest . sortOrder , "sortBy" : listWorkRequestLogsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestLogsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestLogsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}/logs" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestLogsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestLogEntryCollection" , bodyModel : model . WorkRequestLogEntryCollection , type : "model.WorkRequestLogEntryCollection" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Lists the work requests in a compartment.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param ListWorkRequestsRequest return throws example Click  https to see how to use ListWorkRequests API.
      public async listWorkRequests ( listWorkRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "workRequestId" : listWorkRequestsRequest . workRequestId , "status" : listWorkRequestsRequest . status , "resourceId" : listWorkRequestsRequest . resourceId , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit , "sortOrder" : listWorkRequestsRequest . sortOrder , "sortBy" : listWorkRequestsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listWorkRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listWorkRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListWorkRequestsResponse > { } , body : await response . json ( ) , bodyKey : "workRequestCollection" , bodyModel : model . WorkRequestCollection , type : "model.WorkRequestCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Synchronize a mirrored repository to the latest version from external providers.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param MirrorRepositoryRequest return throws example Click  https to see how to use MirrorRepository API.
      public async mirrorRepository ( mirrorRepositoryRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#mirrorRepository." ) ; const pathParams = { "{repositoryId}" : mirrorRepositoryRequest . repositoryId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : mirrorRepositoryRequest . ifMatch , "opc-request-id" : mirrorRepositoryRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , mirrorRepositoryRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/actions/mirror" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . MirrorRepositoryResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Creates a new reference or updates an existing one.
     *
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param PutRepositoryRefRequest return throws example Click  https to see how to use PutRepositoryRef API.
      public async putRepositoryRef ( putRepositoryRefRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#putRepositoryRef." ) ; const pathParams = { "{repositoryId}" : putRepositoryRefRequest . repositoryId , "{refName}" : putRepositoryRefRequest . refName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : putRepositoryRefRequest . ifMatch , "opc-retry-token" : putRepositoryRefRequest . opcRetryToken , "opc-request-id" : putRepositoryRefRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , putRepositoryRefRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/repositories/{repositoryId}/refs/{refName}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( putRepositoryRefRequest . putRepositoryRefDetails , "PutRepositoryRefDetails" , model . PutRepositoryRefDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . PutRepositoryRefResponse > { } , body : await response . json ( ) , bodyKey : "repositoryRef" , bodyModel : model . RepositoryRef , type : "model.RepositoryRef" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the build pipeline.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateBuildPipelineRequest return throws example Click  https to see how to use UpdateBuildPipeline API.
      public async updateBuildPipeline ( updateBuildPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateBuildPipeline." ) ; const pathParams = { "{buildPipelineId}" : updateBuildPipelineRequest . buildPipelineId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateBuildPipelineRequest . ifMatch , "opc-request-id" : updateBuildPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBuildPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelines/{buildPipelineId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBuildPipelineRequest . updateBuildPipelineDetails , "UpdateBuildPipelineDetails" , model . UpdateBuildPipelineDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBuildPipelineResponse > { } , body : await response . json ( ) , bodyKey : "buildPipeline" , bodyModel : model . BuildPipeline , type : "model.BuildPipeline" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the stage based on the stage ID provided in the request.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateBuildPipelineStageRequest return throws example Click  https to see how to use UpdateBuildPipelineStage API.
      public async updateBuildPipelineStage ( updateBuildPipelineStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateBuildPipelineStage." ) ; const pathParams = { "{buildPipelineStageId}" : updateBuildPipelineStageRequest . buildPipelineStageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateBuildPipelineStageRequest . ifMatch , "opc-request-id" : updateBuildPipelineStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBuildPipelineStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildPipelineStages/{buildPipelineStageId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBuildPipelineStageRequest . updateBuildPipelineStageDetails , "UpdateBuildPipelineStageDetails" , model . UpdateBuildPipelineStageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBuildPipelineStageResponse > { } , body : await response . json ( ) , bodyKey : "buildPipelineStage" , bodyModel : model . BuildPipelineStage , type : "model.BuildPipelineStage" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the build run.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateBuildRunRequest return throws example Click  https to see how to use UpdateBuildRun API.
      public async updateBuildRun ( updateBuildRunRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateBuildRun." ) ; const pathParams = { "{buildRunId}" : updateBuildRunRequest . buildRunId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateBuildRunRequest . ifMatch , "opc-request-id" : updateBuildRunRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBuildRunRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/buildRuns/{buildRunId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateBuildRunRequest . updateBuildRunDetails , "UpdateBuildRunDetails" , model . UpdateBuildRunDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBuildRunResponse > { } , body : await response . json ( ) , bodyKey : "buildRun" , bodyModel : model . BuildRun , type : "model.BuildRun" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the connection.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateConnectionRequest return throws example Click  https to see how to use UpdateConnection API.
      public async updateConnection ( updateConnectionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateConnection." ) ; const pathParams = { "{connectionId}" : updateConnectionRequest . connectionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateConnectionRequest . ifMatch , "opc-request-id" : updateConnectionRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateConnectionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/connections/{connectionId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateConnectionRequest . updateConnectionDetails , "UpdateConnectionDetails" , model . UpdateConnectionDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateConnectionResponse > { } , body : await response . json ( ) , bodyKey : "connection" , bodyModel : model . Connection , type : "model.Connection" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the deployment artifact.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateDeployArtifactRequest return throws example Click  https to see how to use UpdateDeployArtifact API.
      public async updateDeployArtifact ( updateDeployArtifactRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateDeployArtifact." ) ; const pathParams = { "{deployArtifactId}" : updateDeployArtifactRequest . deployArtifactId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeployArtifactRequest . ifMatch , "opc-request-id" : updateDeployArtifactRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeployArtifactRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployArtifacts/{deployArtifactId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeployArtifactRequest . updateDeployArtifactDetails , "UpdateDeployArtifactDetails" , model . UpdateDeployArtifactDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeployArtifactResponse > { } , body : await response . json ( ) , bodyKey : "deployArtifact" , bodyModel : model . DeployArtifact , type : "model.DeployArtifact" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the deployment environment.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateDeployEnvironmentRequest return throws example Click  https to see how to use UpdateDeployEnvironment API.
      public async updateDeployEnvironment ( updateDeployEnvironmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateDeployEnvironment." ) ; const pathParams = { "{deployEnvironmentId}" : updateDeployEnvironmentRequest . deployEnvironmentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeployEnvironmentRequest . ifMatch , "opc-request-id" : updateDeployEnvironmentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeployEnvironmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployEnvironments/{deployEnvironmentId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeployEnvironmentRequest . updateDeployEnvironmentDetails , "UpdateDeployEnvironmentDetails" , model . UpdateDeployEnvironmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeployEnvironmentResponse > { } , body : await response . json ( ) , bodyKey : "deployEnvironment" , bodyModel : model . DeployEnvironment , type : "model.DeployEnvironment" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the deployment pipeline.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateDeployPipelineRequest return throws example Click  https to see how to use UpdateDeployPipeline API.
      public async updateDeployPipeline ( updateDeployPipelineRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateDeployPipeline." ) ; const pathParams = { "{deployPipelineId}" : updateDeployPipelineRequest . deployPipelineId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeployPipelineRequest . ifMatch , "opc-request-id" : updateDeployPipelineRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeployPipelineRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployPipelines/{deployPipelineId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeployPipelineRequest . updateDeployPipelineDetails , "UpdateDeployPipelineDetails" , model . UpdateDeployPipelineDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeployPipelineResponse > { } , body : await response . json ( ) , bodyKey : "deployPipeline" , bodyModel : model . DeployPipeline , type : "model.DeployPipeline" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the deployment stage.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateDeployStageRequest return throws example Click  https to see how to use UpdateDeployStage API.
      public async updateDeployStage ( updateDeployStageRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateDeployStage." ) ; const pathParams = { "{deployStageId}" : updateDeployStageRequest . deployStageId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeployStageRequest . ifMatch , "opc-request-id" : updateDeployStageRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeployStageRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployStages/{deployStageId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeployStageRequest . updateDeployStageDetails , "UpdateDeployStageDetails" , model . UpdateDeployStageDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeployStageResponse > { } , body : await response . json ( ) , bodyKey : "deployStage" , bodyModel : model . DeployStage , type : "model.DeployStage" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the deployment.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateDeploymentRequest return throws example Click  https to see how to use UpdateDeployment API.
      public async updateDeployment ( updateDeploymentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateDeployment." ) ; const pathParams = { "{deploymentId}" : updateDeploymentRequest . deploymentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateDeploymentRequest . ifMatch , "opc-request-id" : updateDeploymentRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateDeploymentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/deployments/{deploymentId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateDeploymentRequest . updateDeploymentDetails , "UpdateDeploymentDetails" , model . UpdateDeploymentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateDeploymentResponse > { } , body : await response . json ( ) , bodyKey : "deployment" , bodyModel : model . Deployment , type : "model.Deployment" , 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 ; } } /**
     * Updates the project.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateProjectRequest return throws example Click  https to see how to use UpdateProject API.
      public async updateProject ( updateProjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateProject." ) ; const pathParams = { "{projectId}" : updateProjectRequest . projectId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateProjectRequest . ifMatch , "opc-request-id" : updateProjectRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateProjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/projects/{projectId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateProjectRequest . updateProjectDetails , "UpdateProjectDetails" , model . UpdateProjectDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateProjectResponse > { } , body : await response . json ( ) , bodyKey : "project" , bodyModel : model . Project , type : "model.Project" , responseHeaders : [ { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the repository.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  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 DevopsClient#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 . OciSdkDefaultRetryConfiguration ; 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 ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Updates the trigger.
     * This operation uses  common . OciSdkDefaultRetryConfiguration by default if no retry configuration is defined by the user.
     *  param UpdateTriggerRequest return throws example Click  https to see how to use UpdateTrigger API.
      public async updateTrigger ( updateTriggerRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DevopsClient#updateTrigger." ) ; const pathParams = { "{triggerId}" : updateTriggerRequest . triggerId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateTriggerRequest . ifMatch , "opc-request-id" : updateTriggerRequest . opcRequestId } ; const specRetryConfiguration = common . OciSdkDefaultRetryConfiguration ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateTriggerRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/triggers/{triggerId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateTriggerRequest . updateTriggerDetails , "UpdateTriggerDetails" , model . UpdateTriggerDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateTriggerResponse > { } , body : await response . json ( ) , bodyKey : "trigger" , bodyModel : model . Trigger , type : "model.Trigger" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }