/**
 * OperatorAccessControl API
 * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure.
Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator.

Use the table of contents and search tool to explore the OperatorAccessControl API.

 * OpenAPI spec version: 20200630
 *
 *
 * 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 { AccessRequestsWaiter } from "./accessrequests-waiter" ; import { OperatorControlWaiter } from "./operatorcontrol-waiter" ; import { OperatorControlAssignmentWaiter } from "./operatorcontrolassignment-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum AccessRequestsApiKeys { } /**
 * 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 AccessRequestsClient { protected static serviceEndpointTemplate = "https://operator-access-control.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : AccessRequestsWaiter ; 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 + "/20200630" ; if ( this . logger ) this . logger . info ( `AccessRequestsClient 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 ( AccessRequestsClient . 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 ( AccessRequestsClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new AccessRequestsWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ApproveAccessRequestRequest return throws example Click  https to see how to use ApproveAccessRequest API.
      public async approveAccessRequest ( approveAccessRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#approveAccessRequest." ) ; const pathParams = { "{accessRequestId}" : approveAccessRequestRequest . accessRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : approveAccessRequestRequest . opcRetryToken , "if-match" : approveAccessRequestRequest . ifMatch , "opc-request-id" : approveAccessRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , approveAccessRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests/{accessRequestId}/action/approve" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( approveAccessRequestRequest . approveAccessRequestDetails , "ApproveAccessRequestDetails" , model . ApproveAccessRequestDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ApproveAccessRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetAccessRequestRequest return throws example Click  https to see how to use GetAccessRequest API.
      public async getAccessRequest ( getAccessRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#getAccessRequest." ) ; const pathParams = { "{accessRequestId}" : getAccessRequestRequest . accessRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAccessRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAccessRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests/{accessRequestId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAccessRequestResponse > { } , body : await response . json ( ) , bodyKey : "accessRequest" , bodyModel : model . AccessRequest , type : "model.AccessRequest" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListAccessRequestHistoriesRequest return throws example Click  https to see how to use ListAccessRequestHistories API.
      public async listAccessRequestHistories ( listAccessRequestHistoriesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#listAccessRequestHistories." ) ; const pathParams = { "{accessRequestId}" : listAccessRequestHistoriesRequest . accessRequestId } ; const queryParams = { "limit" : listAccessRequestHistoriesRequest . limit , "page" : listAccessRequestHistoriesRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAccessRequestHistoriesRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAccessRequestHistoriesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests/{accessRequestId}/history" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAccessRequestHistoriesResponse > { } , body : await response . json ( ) , bodyKey : "accessRequestHistoryCollection" , bodyModel : model . AccessRequestHistoryCollection , type : "model.AccessRequestHistoryCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListAccessRequestsRequest return throws example Click  https to see how to use ListAccessRequests API.
      public async listAccessRequests ( listAccessRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#listAccessRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listAccessRequestsRequest . compartmentId , "resourceName" : listAccessRequestsRequest . resourceName , "resourceType" : listAccessRequestsRequest . resourceType , "lifecycleState" : listAccessRequestsRequest . lifecycleState , "timeStart" : listAccessRequestsRequest . timeStart , "timeEnd" : listAccessRequestsRequest . timeEnd , "limit" : listAccessRequestsRequest . limit , "page" : listAccessRequestsRequest . page , "sortOrder" : listAccessRequestsRequest . sortOrder , "sortBy" : listAccessRequestsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAccessRequestsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAccessRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAccessRequestsResponse > { } , body : await response . json ( ) , bodyKey : "accessRequestCollection" , bodyModel : model . AccessRequestCollection , type : "model.AccessRequestCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param RejectAccessRequestRequest return throws example Click  https to see how to use RejectAccessRequest API.
      public async rejectAccessRequest ( rejectAccessRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#rejectAccessRequest." ) ; const pathParams = { "{accessRequestId}" : rejectAccessRequestRequest . accessRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : rejectAccessRequestRequest . opcRetryToken , "if-match" : rejectAccessRequestRequest . ifMatch , "opc-request-id" : rejectAccessRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , rejectAccessRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests/{accessRequestId}/action/reject" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( rejectAccessRequestRequest . rejectAccessRequestDetails , "RejectAccessRequestDetails" , model . RejectAccessRequestDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RejectAccessRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ReviewAccessRequestRequest return throws example Click  https to see how to use ReviewAccessRequest API.
      public async reviewAccessRequest ( reviewAccessRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#reviewAccessRequest." ) ; const pathParams = { "{accessRequestId}" : reviewAccessRequestRequest . accessRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : reviewAccessRequestRequest . opcRetryToken , "if-match" : reviewAccessRequestRequest . ifMatch , "opc-request-id" : reviewAccessRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , reviewAccessRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests/{accessRequestId}/action/review" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( reviewAccessRequestRequest . reviewAccessRequestDetails , "ReviewAccessRequestDetails" , model . ReviewAccessRequestDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ReviewAccessRequestResponse > { } , body : await response . json ( ) , bodyKey : "accessRequest" , bodyModel : model . AccessRequest , type : "model.AccessRequest" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param RevokeAccessRequestRequest return throws example Click  https to see how to use RevokeAccessRequest API.
      public async revokeAccessRequest ( revokeAccessRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation AccessRequestsClient#revokeAccessRequest." ) ; const pathParams = { "{accessRequestId}" : revokeAccessRequestRequest . accessRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : revokeAccessRequestRequest . opcRetryToken , "if-match" : revokeAccessRequestRequest . ifMatch , "opc-request-id" : revokeAccessRequestRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , revokeAccessRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/accessRequests/{accessRequestId}/action/revoke" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( revokeAccessRequestRequest . revokeAccessRequestDetails , "RevokeAccessRequestDetails" , model . RevokeAccessRequestDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RevokeAccessRequestResponse > { } , 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 ; } } } export enum OperatorActionsApiKeys { } /**
 * 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 OperatorActionsClient { protected static serviceEndpointTemplate = "https://operator-access-control.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; 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 + "/20200630" ; if ( this . logger ) this . logger . info ( `OperatorActionsClient 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 ( OperatorActionsClient . 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 ( OperatorActionsClient . serviceEndpointTemplate , regionId ) ; } param GetOperatorActionRequest return throws example Click  https to see how to use GetOperatorAction API.
      public async getOperatorAction ( getOperatorActionRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorActionsClient#getOperatorAction." ) ; const pathParams = { "{operatorActionId}" : getOperatorActionRequest . operatorActionId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getOperatorActionRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getOperatorActionRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorActions/{operatorActionId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetOperatorActionResponse > { } , body : await response . json ( ) , bodyKey : "operatorAction" , bodyModel : model . OperatorAction , type : "model.OperatorAction" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListOperatorActionsRequest return throws example Click  https to see how to use ListOperatorActions API.
      public async listOperatorActions ( listOperatorActionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorActionsClient#listOperatorActions." ) ; const pathParams = { } ; const queryParams = { "name" : listOperatorActionsRequest . name , "resourceType" : listOperatorActionsRequest . resourceType , "compartmentId" : listOperatorActionsRequest . compartmentId , "lifecycleState" : listOperatorActionsRequest . lifecycleState , "limit" : listOperatorActionsRequest . limit , "page" : listOperatorActionsRequest . page , "sortOrder" : listOperatorActionsRequest . sortOrder , "sortBy" : listOperatorActionsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listOperatorActionsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listOperatorActionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorActions" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListOperatorActionsResponse > { } , body : await response . json ( ) , bodyKey : "operatorActionCollection" , bodyModel : model . OperatorActionCollection , type : "model.OperatorActionCollection" , 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 ; } } } export enum OperatorControlApiKeys { } /**
 * 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 OperatorControlClient { protected static serviceEndpointTemplate = "https://operator-access-control.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : OperatorControlWaiter ; 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 + "/20200630" ; if ( this . logger ) this . logger . info ( `OperatorControlClient 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 ( OperatorControlClient . 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 ( OperatorControlClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new OperatorControlWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeOperatorControlCompartmentRequest return throws example Click  https to see how to use ChangeOperatorControlCompartment API.
      public async changeOperatorControlCompartment ( changeOperatorControlCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlClient#changeOperatorControlCompartment." ) ; const pathParams = { "{operatorControlId}" : changeOperatorControlCompartmentRequest . operatorControlId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : changeOperatorControlCompartmentRequest . opcRetryToken , "if-match" : changeOperatorControlCompartmentRequest . ifMatch , "opc-request-id" : changeOperatorControlCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeOperatorControlCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControls/{operatorControlId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeOperatorControlCompartmentRequest . changeOperatorControlCompartmentDetails , "ChangeOperatorControlCompartmentDetails" , model . ChangeOperatorControlCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeOperatorControlCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateOperatorControlRequest return throws example Click  https to see how to use CreateOperatorControl API.
      public async createOperatorControl ( createOperatorControlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlClient#createOperatorControl." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createOperatorControlRequest . opcRetryToken , "opc-request-id" : createOperatorControlRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createOperatorControlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControls" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createOperatorControlRequest . createOperatorControlDetails , "CreateOperatorControlDetails" , model . CreateOperatorControlDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateOperatorControlResponse > { } , body : await response . json ( ) , bodyKey : "operatorControl" , bodyModel : model . OperatorControl , type : "model.OperatorControl" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteOperatorControlRequest return throws example Click  https to see how to use DeleteOperatorControl API.
      public async deleteOperatorControl ( deleteOperatorControlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlClient#deleteOperatorControl." ) ; const pathParams = { "{operatorControlId}" : deleteOperatorControlRequest . operatorControlId } ; const queryParams = { "description" : deleteOperatorControlRequest . description } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteOperatorControlRequest . ifMatch , "opc-request-id" : deleteOperatorControlRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteOperatorControlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControls/{operatorControlId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteOperatorControlResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetOperatorControlRequest return throws example Click  https to see how to use GetOperatorControl API.
      public async getOperatorControl ( getOperatorControlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlClient#getOperatorControl." ) ; const pathParams = { "{operatorControlId}" : getOperatorControlRequest . operatorControlId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getOperatorControlRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getOperatorControlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControls/{operatorControlId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetOperatorControlResponse > { } , body : await response . json ( ) , bodyKey : "operatorControl" , bodyModel : model . OperatorControl , type : "model.OperatorControl" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListOperatorControlsRequest return throws example Click  https to see how to use ListOperatorControls API.
      public async listOperatorControls ( listOperatorControlsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlClient#listOperatorControls." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listOperatorControlsRequest . compartmentId , "lifecycleState" : listOperatorControlsRequest . lifecycleState , "displayName" : listOperatorControlsRequest . displayName , "resourceType" : listOperatorControlsRequest . resourceType , "limit" : listOperatorControlsRequest . limit , "page" : listOperatorControlsRequest . page , "sortOrder" : listOperatorControlsRequest . sortOrder , "sortBy" : listOperatorControlsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listOperatorControlsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listOperatorControlsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControls" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListOperatorControlsResponse > { } , body : await response . json ( ) , bodyKey : "operatorControlCollection" , bodyModel : model . OperatorControlCollection , type : "model.OperatorControlCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateOperatorControlRequest return throws example Click  https to see how to use UpdateOperatorControl API.
      public async updateOperatorControl ( updateOperatorControlRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlClient#updateOperatorControl." ) ; const pathParams = { "{operatorControlId}" : updateOperatorControlRequest . operatorControlId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateOperatorControlRequest . ifMatch , "opc-request-id" : updateOperatorControlRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateOperatorControlRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControls/{operatorControlId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateOperatorControlRequest . updateOperatorControlDetails , "UpdateOperatorControlDetails" , model . UpdateOperatorControlDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateOperatorControlResponse > { } , body : await response . json ( ) , bodyKey : "operatorControl" , bodyModel : model . OperatorControl , type : "model.OperatorControl" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } } export enum OperatorControlAssignmentApiKeys { } /**
 * 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 OperatorControlAssignmentClient { protected static serviceEndpointTemplate = "https://operator-access-control.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : OperatorControlAssignmentWaiter ; 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 + "/20200630" ; if ( this . logger ) this . logger . info ( `OperatorControlAssignmentClient 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 ( OperatorControlAssignmentClient . 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 ( OperatorControlAssignmentClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new OperatorControlAssignmentWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeOperatorControlAssignmentCompartmentRequest return throws example Click  https to see how to use ChangeOperatorControlAssignmentCompartment API.
      public async changeOperatorControlAssignmentCompartment ( changeOperatorControlAssignmentCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlAssignmentClient#changeOperatorControlAssignmentCompartment." ) ; const pathParams = { "{operatorControlAssignmentId}" : changeOperatorControlAssignmentCompartmentRequest . operatorControlAssignmentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : changeOperatorControlAssignmentCompartmentRequest . opcRetryToken , "if-match" : changeOperatorControlAssignmentCompartmentRequest . ifMatch , "opc-request-id" : changeOperatorControlAssignmentCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeOperatorControlAssignmentCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControlAssignments/{operatorControlAssignmentId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeOperatorControlAssignmentCompartmentRequest . changeOperatorControlAssignmentCompartmentDetails , "ChangeOperatorControlAssignmentCompartmentDetails" , model . ChangeOperatorControlAssignmentCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeOperatorControlAssignmentCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateOperatorControlAssignmentRequest return throws example Click  https to see how to use CreateOperatorControlAssignment API.
      public async createOperatorControlAssignment ( createOperatorControlAssignmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlAssignmentClient#createOperatorControlAssignment." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createOperatorControlAssignmentRequest . opcRetryToken , "opc-request-id" : createOperatorControlAssignmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createOperatorControlAssignmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControlAssignments" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createOperatorControlAssignmentRequest . createOperatorControlAssignmentDetails , "CreateOperatorControlAssignmentDetails" , model . CreateOperatorControlAssignmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateOperatorControlAssignmentResponse > { } , body : await response . json ( ) , bodyKey : "operatorControlAssignment" , bodyModel : model . OperatorControlAssignment , type : "model.OperatorControlAssignment" , 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" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteOperatorControlAssignmentRequest return throws example Click  https to see how to use DeleteOperatorControlAssignment API.
      public async deleteOperatorControlAssignment ( deleteOperatorControlAssignmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlAssignmentClient#deleteOperatorControlAssignment." ) ; const pathParams = { "{operatorControlAssignmentId}" : deleteOperatorControlAssignmentRequest . operatorControlAssignmentId } ; const queryParams = { "description" : deleteOperatorControlAssignmentRequest . description } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteOperatorControlAssignmentRequest . ifMatch , "opc-request-id" : deleteOperatorControlAssignmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteOperatorControlAssignmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControlAssignments/{operatorControlAssignmentId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteOperatorControlAssignmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetOperatorControlAssignmentRequest return throws example Click  https to see how to use GetOperatorControlAssignment API.
      public async getOperatorControlAssignment ( getOperatorControlAssignmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlAssignmentClient#getOperatorControlAssignment." ) ; const pathParams = { "{operatorControlAssignmentId}" : getOperatorControlAssignmentRequest . operatorControlAssignmentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getOperatorControlAssignmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getOperatorControlAssignmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControlAssignments/{operatorControlAssignmentId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetOperatorControlAssignmentResponse > { } , body : await response . json ( ) , bodyKey : "operatorControlAssignment" , bodyModel : model . OperatorControlAssignment , type : "model.OperatorControlAssignment" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListOperatorControlAssignmentsRequest return throws example Click  https to see how to use ListOperatorControlAssignments API.
      public async listOperatorControlAssignments ( listOperatorControlAssignmentsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlAssignmentClient#listOperatorControlAssignments." ) ; const pathParams = { } ; const queryParams = { "operatorControlName" : listOperatorControlAssignmentsRequest . operatorControlName , "resourceName" : listOperatorControlAssignmentsRequest . resourceName , "compartmentId" : listOperatorControlAssignmentsRequest . compartmentId , "resourceType" : listOperatorControlAssignmentsRequest . resourceType , "lifecycleState" : listOperatorControlAssignmentsRequest . lifecycleState , "limit" : listOperatorControlAssignmentsRequest . limit , "page" : listOperatorControlAssignmentsRequest . page , "sortOrder" : listOperatorControlAssignmentsRequest . sortOrder , "sortBy" : listOperatorControlAssignmentsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listOperatorControlAssignmentsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listOperatorControlAssignmentsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControlAssignments" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListOperatorControlAssignmentsResponse > { } , body : await response . json ( ) , bodyKey : "operatorControlAssignmentCollection" , bodyModel : model . OperatorControlAssignmentCollection , type : "model.OperatorControlAssignmentCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateOperatorControlAssignmentRequest return throws example Click  https to see how to use UpdateOperatorControlAssignment API.
      public async updateOperatorControlAssignment ( updateOperatorControlAssignmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation OperatorControlAssignmentClient#updateOperatorControlAssignment." ) ; const pathParams = { "{operatorControlAssignmentId}" : updateOperatorControlAssignmentRequest . operatorControlAssignmentId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateOperatorControlAssignmentRequest . ifMatch , "opc-request-id" : updateOperatorControlAssignmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateOperatorControlAssignmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/operatorControlAssignments/{operatorControlAssignmentId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateOperatorControlAssignmentRequest . updateOperatorControlAssignmentDetails , "UpdateOperatorControlAssignmentDetails" , model . UpdateOperatorControlAssignmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateOperatorControlAssignmentResponse > { } , body : await response . json ( ) , bodyKey : "operatorControlAssignment" , bodyModel : model . OperatorControlAssignment , type : "model.OperatorControlAssignment" , 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 ; } } }