/**
 * Object Storage Service API
 * Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources.
For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
[Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).

 * OpenAPI spec version: 20160918
 * Contact: opc_casper_users_us_grp@oracle.com
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import common = require ( "oci-common" ) ; import * as requests from "./request" ; import * as model from "./model" ; import * as responses from "./response" ; import { paginateRecords , paginateResponses , genericPaginateRecords , genericPaginateResponses } from "oci-common" ; import { ObjectStorageWaiter } from "./objectstorage-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum ObjectStorageApiKeys { } /**
 * 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 ObjectStorageClient { protected static serviceEndpointTemplate = "https://objectstorage.{region}.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : ObjectStorageWaiter ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; if ( params . authenticationDetailsProvider && common . isRegionProvider ( params . authenticationDetailsProvider ) ) { const provider = params . authenticationDetailsProvider ; if ( provider . getRegion ( ) ) { this . region = provider . getRegion ( ) ; } } } /**
     * Get the endpoint that is being used to call (ex, https://www.example.com).
     */ public get endpoint ( ) { return this . _endpoint ; } param endpoint public set endpoint ( endpoint ) { this . _endpoint = endpoint ; if ( this . logger ) this . logger . info ( `ObjectStorageClient 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 ( ObjectStorageClient . 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 ( ObjectStorageClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new ObjectStorageWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param AbortMultipartUploadRequest return throws example Click  https to see how to use AbortMultipartUpload API.
      public async abortMultipartUpload ( abortMultipartUploadRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#abortMultipartUpload." ) ; const pathParams = { "{namespaceName}" : abortMultipartUploadRequest . namespaceName , "{bucketName}" : abortMultipartUploadRequest . bucketName , "{objectName}" : abortMultipartUploadRequest . objectName } ; const queryParams = { "uploadId" : abortMultipartUploadRequest . uploadId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : abortMultipartUploadRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , abortMultipartUploadRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/u/{objectName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . AbortMultipartUploadResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CancelWorkRequestRequest return throws example Click  https to see how to use CancelWorkRequest API.
      public async cancelWorkRequest ( cancelWorkRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#cancelWorkRequest." ) ; const pathParams = { "{workRequestId}" : cancelWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : cancelWorkRequestRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , cancelWorkRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/workRequests/{workRequestId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CancelWorkRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CommitMultipartUploadRequest return throws example Click  https to see how to use CommitMultipartUpload API.
      public async commitMultipartUpload ( commitMultipartUploadRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#commitMultipartUpload." ) ; const pathParams = { "{namespaceName}" : commitMultipartUploadRequest . namespaceName , "{bucketName}" : commitMultipartUploadRequest . bucketName , "{objectName}" : commitMultipartUploadRequest . objectName } ; const queryParams = { "uploadId" : commitMultipartUploadRequest . uploadId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : commitMultipartUploadRequest . ifMatch , "if-none-match" : commitMultipartUploadRequest . ifNoneMatch , "opc-client-request-id" : commitMultipartUploadRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , commitMultipartUploadRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/u/{objectName}" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( commitMultipartUploadRequest . commitMultipartUploadDetails , "CommitMultipartUploadDetails" , model . CommitMultipartUploadDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CommitMultipartUploadResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-multipart-md5" ) , key : "opcMultipartMd5" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } , { value : response . headers . get ( "version-id" ) , key : "versionId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CopyObjectRequest return throws example Click  https to see how to use CopyObject API.
      public async copyObject ( copyObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#copyObject." ) ; const pathParams = { "{namespaceName}" : copyObjectRequest . namespaceName , "{bucketName}" : copyObjectRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : copyObjectRequest . opcClientRequestId , "opc-sse-customer-algorithm" : copyObjectRequest . opcSseCustomerAlgorithm , "opc-sse-customer-key" : copyObjectRequest . opcSseCustomerKey , "opc-sse-customer-key-sha256" : copyObjectRequest . opcSseCustomerKeySha256 , "opc-source-sse-customer-algorithm" : copyObjectRequest . opcSourceSseCustomerAlgorithm , "opc-source-sse-customer-key" : copyObjectRequest . opcSourceSseCustomerKey , "opc-source-sse-customer-key-sha256" : copyObjectRequest . opcSourceSseCustomerKeySha256 , "opc-sse-kms-key-id" : copyObjectRequest . opcSseKmsKeyId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , copyObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/copyObject" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( copyObjectRequest . copyObjectDetails , "CopyObjectDetails" , model . CopyObjectDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CopyObjectResponse > { } , 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 ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateBucketRequest return throws example Click  https to see how to use CreateBucket API.
      public async createBucket ( createBucketRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#createBucket." ) ; const pathParams = { "{namespaceName}" : createBucketRequest . namespaceName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : createBucketRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createBucketRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createBucketRequest . createBucketDetails , "CreateBucketDetails" , model . CreateBucketDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateBucketResponse > { } , body : await response . json ( ) , bodyKey : "bucket" , bodyModel : model . Bucket , type : "model.Bucket" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } , { value : response . headers . get ( "Location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateMultipartUploadRequest return throws example Click  https to see how to use CreateMultipartUpload API.
      public async createMultipartUpload ( createMultipartUploadRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#createMultipartUpload." ) ; const pathParams = { "{namespaceName}" : createMultipartUploadRequest . namespaceName , "{bucketName}" : createMultipartUploadRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : createMultipartUploadRequest . ifMatch , "if-none-match" : createMultipartUploadRequest . ifNoneMatch , "opc-client-request-id" : createMultipartUploadRequest . opcClientRequestId , "opc-sse-customer-algorithm" : createMultipartUploadRequest . opcSseCustomerAlgorithm , "opc-sse-customer-key" : createMultipartUploadRequest . opcSseCustomerKey , "opc-sse-customer-key-sha256" : createMultipartUploadRequest . opcSseCustomerKeySha256 , "opc-sse-kms-key-id" : createMultipartUploadRequest . opcSseKmsKeyId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createMultipartUploadRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/u" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createMultipartUploadRequest . createMultipartUploadDetails , "CreateMultipartUploadDetails" , model . CreateMultipartUploadDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateMultipartUploadResponse > { } , body : await response . json ( ) , bodyKey : "multipartUpload" , bodyModel : model . MultipartUpload , type : "model.MultipartUpload" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , 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 ; } } param CreatePreauthenticatedRequestRequest return throws example Click  https to see how to use CreatePreauthenticatedRequest API.
      public async createPreauthenticatedRequest ( createPreauthenticatedRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#createPreauthenticatedRequest." ) ; const pathParams = { "{namespaceName}" : createPreauthenticatedRequestRequest . namespaceName , "{bucketName}" : createPreauthenticatedRequestRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : createPreauthenticatedRequestRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createPreauthenticatedRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/p" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createPreauthenticatedRequestRequest . createPreauthenticatedRequestDetails , "CreatePreauthenticatedRequestDetails" , model . CreatePreauthenticatedRequestDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreatePreauthenticatedRequestResponse > { } , body : await response . json ( ) , bodyKey : "preauthenticatedRequest" , bodyModel : model . PreauthenticatedRequest , type : "model.PreauthenticatedRequest" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateReplicationPolicyRequest return throws example Click  https to see how to use CreateReplicationPolicy API.
      public async createReplicationPolicy ( createReplicationPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#createReplicationPolicy." ) ; const pathParams = { "{namespaceName}" : createReplicationPolicyRequest . namespaceName , "{bucketName}" : createReplicationPolicyRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : createReplicationPolicyRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createReplicationPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/replicationPolicies" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createReplicationPolicyRequest . createReplicationPolicyDetails , "CreateReplicationPolicyDetails" , model . CreateReplicationPolicyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateReplicationPolicyResponse > { } , body : await response . json ( ) , bodyKey : "replicationPolicy" , bodyModel : model . ReplicationPolicy , type : "model.ReplicationPolicy" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateRetentionRuleRequest return throws example Click  https to see how to use CreateRetentionRule API.
      public async createRetentionRule ( createRetentionRuleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#createRetentionRule." ) ; const pathParams = { "{namespaceName}" : createRetentionRuleRequest . namespaceName , "{bucketName}" : createRetentionRuleRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : createRetentionRuleRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createRetentionRuleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/retentionRules" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createRetentionRuleRequest . createRetentionRuleDetails , "CreateRetentionRuleDetails" , model . CreateRetentionRuleDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateRetentionRuleResponse > { } , body : await response . json ( ) , bodyKey : "retentionRule" , bodyModel : model . RetentionRule , type : "model.RetentionRule" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } /**
     * Deletes a bucket if the bucket is already empty. If the bucket is not empty, use
     *  {@link #deleteObject(DeleteObjectRequest) deleteObject} first. In addition,
     * you cannot delete a bucket that has a multipart upload in progress or a pre-authenticated
     * request associated with that bucket.
     *
     * This operation does not retry by default if the user has not defined a retry configuration.
     *  param DeleteBucketRequest return throws example Click  https to see how to use DeleteBucket API.
      public async deleteBucket ( deleteBucketRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#deleteBucket." ) ; const pathParams = { "{namespaceName}" : deleteBucketRequest . namespaceName , "{bucketName}" : deleteBucketRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteBucketRequest . ifMatch , "opc-client-request-id" : deleteBucketRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteBucketRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteBucketResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteObjectRequest return throws example Click  https to see how to use DeleteObject API.
      public async deleteObject ( deleteObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#deleteObject." ) ; const pathParams = { "{namespaceName}" : deleteObjectRequest . namespaceName , "{bucketName}" : deleteObjectRequest . bucketName , "{objectName}" : deleteObjectRequest . objectName } ; const queryParams = { "versionId" : deleteObjectRequest . versionId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteObjectRequest . ifMatch , "opc-client-request-id" : deleteObjectRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/o/{objectName}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteObjectResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } , { value : response . headers . get ( "version-id" ) , key : "versionId" , dataType : "string" } , { value : response . headers . get ( "is-delete-marker" ) , key : "isDeleteMarker" , dataType : "boolean" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteObjectLifecyclePolicyRequest return throws example Click  https to see how to use DeleteObjectLifecyclePolicy API.
      public async deleteObjectLifecyclePolicy ( deleteObjectLifecyclePolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#deleteObjectLifecyclePolicy." ) ; const pathParams = { "{namespaceName}" : deleteObjectLifecyclePolicyRequest . namespaceName , "{bucketName}" : deleteObjectLifecyclePolicyRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : deleteObjectLifecyclePolicyRequest . opcClientRequestId , "if-match" : deleteObjectLifecyclePolicyRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteObjectLifecyclePolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/l" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteObjectLifecyclePolicyResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeletePreauthenticatedRequestRequest return throws example Click  https to see how to use DeletePreauthenticatedRequest API.
      public async deletePreauthenticatedRequest ( deletePreauthenticatedRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#deletePreauthenticatedRequest." ) ; const pathParams = { "{namespaceName}" : deletePreauthenticatedRequestRequest . namespaceName , "{bucketName}" : deletePreauthenticatedRequestRequest . bucketName , "{parId}" : deletePreauthenticatedRequestRequest . parId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : deletePreauthenticatedRequestRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deletePreauthenticatedRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/p/{parId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeletePreauthenticatedRequestResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteReplicationPolicyRequest return throws example Click  https to see how to use DeleteReplicationPolicy API.
      public async deleteReplicationPolicy ( deleteReplicationPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#deleteReplicationPolicy." ) ; const pathParams = { "{namespaceName}" : deleteReplicationPolicyRequest . namespaceName , "{bucketName}" : deleteReplicationPolicyRequest . bucketName , "{replicationId}" : deleteReplicationPolicyRequest . replicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : deleteReplicationPolicyRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteReplicationPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/replicationPolicies/{replicationId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteReplicationPolicyResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteRetentionRuleRequest return throws example Click  https to see how to use DeleteRetentionRule API.
      public async deleteRetentionRule ( deleteRetentionRuleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#deleteRetentionRule." ) ; const pathParams = { "{namespaceName}" : deleteRetentionRuleRequest . namespaceName , "{bucketName}" : deleteRetentionRuleRequest . bucketName , "{retentionRuleId}" : deleteRetentionRuleRequest . retentionRuleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteRetentionRuleRequest . ifMatch , "opc-client-request-id" : deleteRetentionRuleRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteRetentionRuleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteRetentionRuleResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetBucketRequest return throws example Click  https to see how to use GetBucket API.
      public async getBucket ( getBucketRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getBucket." ) ; const pathParams = { "{namespaceName}" : getBucketRequest . namespaceName , "{bucketName}" : getBucketRequest . bucketName } ; const queryParams = { "fields" : getBucketRequest . fields } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : getBucketRequest . ifMatch , "if-none-match" : getBucketRequest . ifNoneMatch , "opc-client-request-id" : getBucketRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getBucketRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetBucketResponse > { } , body : await response . json ( ) , bodyKey : "bucket" , bodyModel : model . Bucket , type : "model.Bucket" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , 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 ; } } param GetNamespaceRequest return throws example Click  https to see how to use GetNamespace API.
        public async getNamespace ( getNamespaceRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getNamespace." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : getNamespaceRequest . compartmentId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getNamespaceRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getNamespaceRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetNamespaceResponse > { } , body : await response . json ( ) , bodyKey : "value" , bodyModel : "string" , type : "string" , responseHeaders : [ ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetNamespaceMetadataRequest return throws example Click  https to see how to use GetNamespaceMetadata API.
        public async getNamespaceMetadata ( getNamespaceMetadataRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getNamespaceMetadata." ) ; const pathParams = { "{namespaceName}" : getNamespaceMetadataRequest . namespaceName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getNamespaceMetadataRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getNamespaceMetadataRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetNamespaceMetadataResponse > { } , body : await response . json ( ) , bodyKey : "namespaceMetadata" , bodyModel : model . NamespaceMetadata , type : "model.NamespaceMetadata" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } 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 ObjectStorageClient#getObject." ) ; const pathParams = { "{namespaceName}" : getObjectRequest . namespaceName , "{bucketName}" : getObjectRequest . bucketName , "{objectName}" : getObjectRequest . objectName } ; const queryParams = { "versionId" : getObjectRequest . versionId , "httpResponseContentDisposition" : getObjectRequest . httpResponseContentDisposition , "httpResponseCacheControl" : getObjectRequest . httpResponseCacheControl , "httpResponseContentType" : getObjectRequest . httpResponseContentType , "httpResponseContentLanguage" : getObjectRequest . httpResponseContentLanguage , "httpResponseContentEncoding" : getObjectRequest . httpResponseContentEncoding , "httpResponseExpires" : getObjectRequest . httpResponseExpires } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : getObjectRequest . ifMatch , "if-none-match" : getObjectRequest . ifNoneMatch , "opc-client-request-id" : getObjectRequest . opcClientRequestId , "range" : getObjectRequest . range , "opc-sse-customer-algorithm" : getObjectRequest . opcSseCustomerAlgorithm , "opc-sse-customer-key" : getObjectRequest . opcSseCustomerKey , "opc-sse-customer-key-sha256" : getObjectRequest . opcSseCustomerKeySha256 } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; 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 : "/n/{namespaceName}/b/{bucketName}/o/{objectName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetObjectResponse > { } , body : response . body ! , bodyKey : "value" , bodyModel : "string" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } , { value : response . headers . get ( "content-length" ) , key : "contentLength" , dataType : "number" } , { value : response . headers . get ( "content-range" ) , key : "contentRange" , dataType : "common.Range" } , { value : response . headers . get ( "content-md5" ) , key : "contentMd5" , dataType : "string" } , { value : response . headers . get ( "opc-multipart-md5" ) , key : "opcMultipartMd5" , dataType : "string" } , { value : response . headers . get ( "content-type" ) , key : "contentType" , dataType : "string" } , { value : response . headers . get ( "content-language" ) , key : "contentLanguage" , dataType : "string" } , { value : response . headers . get ( "content-encoding" ) , key : "contentEncoding" , dataType : "string" } , { value : response . headers . get ( "cache-control" ) , key : "cacheControl" , dataType : "string" } , { value : response . headers . get ( "content-disposition" ) , key : "contentDisposition" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } , { value : response . headers . get ( "storage-tier" ) , key : "storageTier" , dataType : "string" } , { value : response . headers . get ( "archival-state" ) , key : "archivalState" , dataType : "string" } , { value : response . headers . get ( "time-of-archival" ) , key : "timeOfArchival" , dataType : "Date" } , { value : response . headers . get ( "version-id" ) , key : "versionId" , dataType : "string" } , { value : response . headers . get ( "expires" ) , key : "expires" , dataType : "Date" } ] } ) ; const opcMeta = { } ; const pattern = "opc-meta-" ; response . headers . forEach ( ( v , k ) => { if ( k . startsWith ( pattern ) ) { Object . assign ( opcMeta , { [ k ] : v } ) ; } } ) ; sdkResponse . opcMeta = opcMeta ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetObjectLifecyclePolicyRequest return throws example Click  https to see how to use GetObjectLifecyclePolicy API.
      public async getObjectLifecyclePolicy ( getObjectLifecyclePolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getObjectLifecyclePolicy." ) ; const pathParams = { "{namespaceName}" : getObjectLifecyclePolicyRequest . namespaceName , "{bucketName}" : getObjectLifecyclePolicyRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getObjectLifecyclePolicyRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getObjectLifecyclePolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/l" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetObjectLifecyclePolicyResponse > { } , body : await response . json ( ) , bodyKey : "objectLifecyclePolicy" , bodyModel : model . ObjectLifecyclePolicy , type : "model.ObjectLifecyclePolicy" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetPreauthenticatedRequestRequest return throws example Click  https to see how to use GetPreauthenticatedRequest API.
      public async getPreauthenticatedRequest ( getPreauthenticatedRequestRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getPreauthenticatedRequest." ) ; const pathParams = { "{namespaceName}" : getPreauthenticatedRequestRequest . namespaceName , "{bucketName}" : getPreauthenticatedRequestRequest . bucketName , "{parId}" : getPreauthenticatedRequestRequest . parId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getPreauthenticatedRequestRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPreauthenticatedRequestRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/p/{parId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPreauthenticatedRequestResponse > { } , body : await response . json ( ) , bodyKey : "preauthenticatedRequestSummary" , bodyModel : model . PreauthenticatedRequestSummary , type : "model.PreauthenticatedRequestSummary" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetReplicationPolicyRequest return throws example Click  https to see how to use GetReplicationPolicy API.
      public async getReplicationPolicy ( getReplicationPolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getReplicationPolicy." ) ; const pathParams = { "{namespaceName}" : getReplicationPolicyRequest . namespaceName , "{bucketName}" : getReplicationPolicyRequest . bucketName , "{replicationId}" : getReplicationPolicyRequest . replicationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getReplicationPolicyRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getReplicationPolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/replicationPolicies/{replicationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetReplicationPolicyResponse > { } , body : await response . json ( ) , bodyKey : "replicationPolicy" , bodyModel : model . ReplicationPolicy , type : "model.ReplicationPolicy" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetRetentionRuleRequest return throws example Click  https to see how to use GetRetentionRule API.
      public async getRetentionRule ( getRetentionRuleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#getRetentionRule." ) ; const pathParams = { "{namespaceName}" : getRetentionRuleRequest . namespaceName , "{bucketName}" : getRetentionRuleRequest . bucketName , "{retentionRuleId}" : getRetentionRuleRequest . retentionRuleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getRetentionRuleRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRetentionRuleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRetentionRuleResponse > { } , body : await response . json ( ) , bodyKey : "retentionRule" , bodyModel : model . RetentionRule , type : "model.RetentionRule" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } 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 ObjectStorageClient#getWorkRequest." ) ; const pathParams = { "{workRequestId}" : getWorkRequestRequest . workRequestId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : getWorkRequestRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; 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 ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "retry-after" ) , key : "retryAfter" , dataType : "number" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param HeadBucketRequest return throws example Click  https to see how to use HeadBucket API.
      public async headBucket ( headBucketRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#headBucket." ) ; const pathParams = { "{namespaceName}" : headBucketRequest . namespaceName , "{bucketName}" : headBucketRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : headBucketRequest . ifMatch , "if-none-match" : headBucketRequest . ifNoneMatch , "opc-client-request-id" : headBucketRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , headBucketRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}" , method : "HEAD" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . HeadBucketResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , 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 ; } } param HeadObjectRequest return throws example Click  https to see how to use HeadObject API.
      public async headObject ( headObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#headObject." ) ; const pathParams = { "{namespaceName}" : headObjectRequest . namespaceName , "{bucketName}" : headObjectRequest . bucketName , "{objectName}" : headObjectRequest . objectName } ; const queryParams = { "versionId" : headObjectRequest . versionId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : headObjectRequest . ifMatch , "if-none-match" : headObjectRequest . ifNoneMatch , "opc-client-request-id" : headObjectRequest . opcClientRequestId , "opc-sse-customer-algorithm" : headObjectRequest . opcSseCustomerAlgorithm , "opc-sse-customer-key" : headObjectRequest . opcSseCustomerKey , "opc-sse-customer-key-sha256" : headObjectRequest . opcSseCustomerKeySha256 } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , headObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/o/{objectName}" , method : "HEAD" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . HeadObjectResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } , { value : response . headers . get ( "content-length" ) , key : "contentLength" , dataType : "number" } , { value : response . headers . get ( "content-md5" ) , key : "contentMd5" , dataType : "string" } , { value : response . headers . get ( "opc-multipart-md5" ) , key : "opcMultipartMd5" , dataType : "string" } , { value : response . headers . get ( "content-type" ) , key : "contentType" , dataType : "string" } , { value : response . headers . get ( "content-language" ) , key : "contentLanguage" , dataType : "string" } , { value : response . headers . get ( "content-encoding" ) , key : "contentEncoding" , dataType : "string" } , { value : response . headers . get ( "cache-control" ) , key : "cacheControl" , dataType : "string" } , { value : response . headers . get ( "content-disposition" ) , key : "contentDisposition" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } , { value : response . headers . get ( "storage-tier" ) , key : "storageTier" , dataType : "string" } , { value : response . headers . get ( "archival-state" ) , key : "archivalState" , dataType : "string" } , { value : response . headers . get ( "time-of-archival" ) , key : "timeOfArchival" , dataType : "Date" } , { value : response . headers . get ( "version-id" ) , key : "versionId" , dataType : "string" } ] } ) ; const opcMeta = { } ; const pattern = "opc-meta-" ; response . headers . forEach ( ( v , k ) => { if ( k . startsWith ( pattern ) ) { Object . assign ( opcMeta , { [ k ] : v } ) ; } } ) ; sdkResponse . opcMeta = opcMeta ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListBucketsRequest return throws example Click  https to see how to use ListBuckets API.
        public async listBuckets ( listBucketsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listBuckets." ) ; const pathParams = { "{namespaceName}" : listBucketsRequest . namespaceName } ; const queryParams = { "compartmentId" : listBucketsRequest . compartmentId , "limit" : listBucketsRequest . limit , "page" : listBucketsRequest . page , "fields" : listBucketsRequest . fields } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listBucketsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listBucketsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListBucketsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . BucketSummary , type : "Array<model.BucketSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { 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 request public listAllBuckets ( request ) { return paginateRecords ( request , req => this . listBuckets ( req ) ) ; } param request public listAllBucketsResponses ( request ) { return paginateResponses ( request , req => this . listBuckets ( req ) ) ; } param request public listBucketsRecordIterator ( request ) { return paginateRecords ( request , req => this . listBuckets ( req ) ) ; } param request public listBucketsResponseIterator ( request ) { return paginateResponses ( request , req => this . listBuckets ( req ) ) ; } param ListMultipartUploadPartsRequest return throws example Click  https to see how to use ListMultipartUploadParts API.
      public async listMultipartUploadParts ( listMultipartUploadPartsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listMultipartUploadParts." ) ; const pathParams = { "{namespaceName}" : listMultipartUploadPartsRequest . namespaceName , "{bucketName}" : listMultipartUploadPartsRequest . bucketName , "{objectName}" : listMultipartUploadPartsRequest . objectName } ; const queryParams = { "uploadId" : listMultipartUploadPartsRequest . uploadId , "limit" : listMultipartUploadPartsRequest . limit , "page" : listMultipartUploadPartsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listMultipartUploadPartsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listMultipartUploadPartsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/u/{objectName}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListMultipartUploadPartsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . MultipartUploadPartSummary , type : "Array<model.MultipartUploadPartSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { 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 request public listAllMultipartUploadParts ( request ) { return paginateRecords ( request , req => this . listMultipartUploadParts ( req ) ) ; } param request public listAllMultipartUploadPartsResponses ( request ) { return paginateResponses ( request , req => this . listMultipartUploadParts ( req ) ) ; } param request public listMultipartUploadPartsRecordIterator ( request ) { return paginateRecords ( request , req => this . listMultipartUploadParts ( req ) ) ; } param request public listMultipartUploadPartsResponseIterator ( request ) { return paginateResponses ( request , req => this . listMultipartUploadParts ( req ) ) ; } param ListMultipartUploadsRequest return throws example Click  https to see how to use ListMultipartUploads API.
      public async listMultipartUploads ( listMultipartUploadsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listMultipartUploads." ) ; const pathParams = { "{namespaceName}" : listMultipartUploadsRequest . namespaceName , "{bucketName}" : listMultipartUploadsRequest . bucketName } ; const queryParams = { "limit" : listMultipartUploadsRequest . limit , "page" : listMultipartUploadsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listMultipartUploadsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listMultipartUploadsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/u" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListMultipartUploadsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . MultipartUpload , type : "Array<model.MultipartUpload>" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { 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 request public listAllMultipartUploads ( request ) { return paginateRecords ( request , req => this . listMultipartUploads ( req ) ) ; } param request public listAllMultipartUploadsResponses ( request ) { return paginateResponses ( request , req => this . listMultipartUploads ( req ) ) ; } param request public listMultipartUploadsRecordIterator ( request ) { return paginateRecords ( request , req => this . listMultipartUploads ( req ) ) ; } param request public listMultipartUploadsResponseIterator ( request ) { return paginateResponses ( request , req => this . listMultipartUploads ( req ) ) ; } param ListObjectVersionsRequest return throws example Click  https to see how to use ListObjectVersions API.
        public async listObjectVersions ( listObjectVersionsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listObjectVersions." ) ; const pathParams = { "{namespaceName}" : listObjectVersionsRequest . namespaceName , "{bucketName}" : listObjectVersionsRequest . bucketName } ; const queryParams = { "prefix" : listObjectVersionsRequest . prefix , "start" : listObjectVersionsRequest . start , "end" : listObjectVersionsRequest . end , "limit" : listObjectVersionsRequest . limit , "delimiter" : listObjectVersionsRequest . delimiter , "fields" : listObjectVersionsRequest . fields , "startAfter" : listObjectVersionsRequest . startAfter , "page" : listObjectVersionsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listObjectVersionsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listObjectVersionsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/objectversions" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListObjectVersionsResponse > { } , body : await response . json ( ) , bodyKey : "objectVersionCollection" , bodyModel : model . ObjectVersionCollection , type : "model.ObjectVersionCollection" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { 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 ListObjectsRequest return throws example Click  https to see how to use ListObjects API.
        public async listObjects ( listObjectsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listObjects." ) ; const pathParams = { "{namespaceName}" : listObjectsRequest . namespaceName , "{bucketName}" : listObjectsRequest . bucketName } ; const queryParams = { "prefix" : listObjectsRequest . prefix , "start" : listObjectsRequest . start , "end" : listObjectsRequest . end , "limit" : listObjectsRequest . limit , "delimiter" : listObjectsRequest . delimiter , "fields" : listObjectsRequest . fields , "startAfter" : listObjectsRequest . startAfter } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listObjectsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listObjectsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/o" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListObjectsResponse > { } , body : await response . json ( ) , bodyKey : "listObjects" , bodyModel : model . ListObjects , type : "model.ListObjects" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllObjects ( request ) { return genericPaginateRecords ( request , req => this . listObjects ( req ) , res => res . listObjects . nextStartWith , ( req , nextPageToken ) => ( req . start = nextPageToken ) , res => res . listObjects . objects ) ; } param request public listAllObjectsResponses ( request ) { return genericPaginateResponses ( request , req => this . listObjects ( req ) , res => res . listObjects . nextStartWith , ( req , nextPageToken ) => ( req . start = nextPageToken ) ) ; } param request public listObjectsRecordIterator ( request ) { return genericPaginateRecords ( request , req => this . listObjects ( req ) , res => res . listObjects . nextStartWith , ( req , nextPageToken ) => ( req . start = nextPageToken ) , res => res . listObjects . objects ) ; } param request public listObjectsResponseIterator ( request ) { return genericPaginateResponses ( request , req => this . listObjects ( req ) , res => res . listObjects . nextStartWith , ( req , nextPageToken ) => ( req . start = nextPageToken ) ) ; } param ListPreauthenticatedRequestsRequest return throws example Click  https to see how to use ListPreauthenticatedRequests API.
      public async listPreauthenticatedRequests ( listPreauthenticatedRequestsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listPreauthenticatedRequests." ) ; const pathParams = { "{namespaceName}" : listPreauthenticatedRequestsRequest . namespaceName , "{bucketName}" : listPreauthenticatedRequestsRequest . bucketName } ; const queryParams = { "objectNamePrefix" : listPreauthenticatedRequestsRequest . objectNamePrefix , "limit" : listPreauthenticatedRequestsRequest . limit , "page" : listPreauthenticatedRequestsRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listPreauthenticatedRequestsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPreauthenticatedRequestsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/p" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPreauthenticatedRequestsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . PreauthenticatedRequestSummary , type : "Array<model.PreauthenticatedRequestSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { 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 request public listAllPreauthenticatedRequests ( request ) { return paginateRecords ( request , req => this . listPreauthenticatedRequests ( req ) ) ; } param request public listAllPreauthenticatedRequestsResponses ( request ) { return paginateResponses ( request , req => this . listPreauthenticatedRequests ( req ) ) ; } param request public listPreauthenticatedRequestsRecordIterator ( request ) { return paginateRecords ( request , req => this . listPreauthenticatedRequests ( req ) ) ; } param request public listPreauthenticatedRequestsResponseIterator ( request ) { return paginateResponses ( request , req => this . listPreauthenticatedRequests ( req ) ) ; } param ListReplicationPoliciesRequest return throws example Click  https to see how to use ListReplicationPolicies API.
      public async listReplicationPolicies ( listReplicationPoliciesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listReplicationPolicies." ) ; const pathParams = { "{namespaceName}" : listReplicationPoliciesRequest . namespaceName , "{bucketName}" : listReplicationPoliciesRequest . bucketName } ; const queryParams = { "page" : listReplicationPoliciesRequest . page , "limit" : listReplicationPoliciesRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listReplicationPoliciesRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listReplicationPoliciesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/replicationPolicies" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListReplicationPoliciesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ReplicationPolicySummary , type : "Array<model.ReplicationPolicySummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllReplicationPolicies ( request ) { return paginateRecords ( request , req => this . listReplicationPolicies ( req ) ) ; } param request public listAllReplicationPoliciesResponses ( request ) { return paginateResponses ( request , req => this . listReplicationPolicies ( req ) ) ; } param request public listReplicationPoliciesRecordIterator ( request ) { return paginateRecords ( request , req => this . listReplicationPolicies ( req ) ) ; } param request public listReplicationPoliciesResponseIterator ( request ) { return paginateResponses ( request , req => this . listReplicationPolicies ( req ) ) ; } param ListReplicationSourcesRequest return throws example Click  https to see how to use ListReplicationSources API.
      public async listReplicationSources ( listReplicationSourcesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listReplicationSources." ) ; const pathParams = { "{namespaceName}" : listReplicationSourcesRequest . namespaceName , "{bucketName}" : listReplicationSourcesRequest . bucketName } ; const queryParams = { "page" : listReplicationSourcesRequest . page , "limit" : listReplicationSourcesRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listReplicationSourcesRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listReplicationSourcesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/replicationSources" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListReplicationSourcesResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ReplicationSource , type : "Array<model.ReplicationSource>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllReplicationSources ( request ) { return paginateRecords ( request , req => this . listReplicationSources ( req ) ) ; } param request public listAllReplicationSourcesResponses ( request ) { return paginateResponses ( request , req => this . listReplicationSources ( req ) ) ; } param request public listReplicationSourcesRecordIterator ( request ) { return paginateRecords ( request , req => this . listReplicationSources ( req ) ) ; } param request public listReplicationSourcesResponseIterator ( request ) { return paginateResponses ( request , req => this . listReplicationSources ( req ) ) ; } param ListRetentionRulesRequest return throws example Click  https to see how to use ListRetentionRules API.
      public async listRetentionRules ( listRetentionRulesRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#listRetentionRules." ) ; const pathParams = { "{namespaceName}" : listRetentionRulesRequest . namespaceName , "{bucketName}" : listRetentionRulesRequest . bucketName } ; const queryParams = { "page" : listRetentionRulesRequest . page } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listRetentionRulesRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/retentionRules" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListRetentionRulesResponse > { } , body : await response . json ( ) , bodyKey : "retentionRuleCollection" , bodyModel : model . RetentionRuleCollection , type : "model.RetentionRuleCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } 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 ObjectStorageClient#listWorkRequestErrors." ) ; const pathParams = { "{workRequestId}" : listWorkRequestErrorsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestErrorsRequest . page , "limit" : listWorkRequestErrorsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listWorkRequestErrorsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; 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 : "items" , bodyModel : model . WorkRequestError , type : "Array<model.WorkRequestError>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestErrors ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listAllWorkRequestErrorsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestErrors ( req ) ) ; } param request public listWorkRequestErrorsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestErrors ( req ) ) ; } 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 ObjectStorageClient#listWorkRequestLogs." ) ; const pathParams = { "{workRequestId}" : listWorkRequestLogsRequest . workRequestId } ; const queryParams = { "page" : listWorkRequestLogsRequest . page , "limit" : listWorkRequestLogsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listWorkRequestLogsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; 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 : "items" , bodyModel : model . WorkRequestLogEntry , type : "Array<model.WorkRequestLogEntry>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequestLogs ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listAllWorkRequestLogsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequestLogs ( req ) ) ; } param request public listWorkRequestLogsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequestLogs ( req ) ) ; } 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 ObjectStorageClient#listWorkRequests." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listWorkRequestsRequest . compartmentId , "page" : listWorkRequestsRequest . page , "limit" : listWorkRequestsRequest . limit } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : listWorkRequestsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; 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 : "items" , bodyModel : model . WorkRequestSummary , type : "Array<model.WorkRequestSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllWorkRequests ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listAllWorkRequestsResponses ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsRecordIterator ( request ) { return paginateRecords ( request , req => this . listWorkRequests ( req ) ) ; } param request public listWorkRequestsResponseIterator ( request ) { return paginateResponses ( request , req => this . listWorkRequests ( req ) ) ; } param MakeBucketWritableRequest return throws example Click  https to see how to use MakeBucketWritable API.
      public async makeBucketWritable ( makeBucketWritableRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#makeBucketWritable." ) ; const pathParams = { "{namespaceName}" : makeBucketWritableRequest . namespaceName , "{bucketName}" : makeBucketWritableRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : makeBucketWritableRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , makeBucketWritableRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/makeBucketWritable" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . MakeBucketWritableResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param PutObjectRequest return throws example Click  https to see how to use PutObject API.
        public async putObject ( putObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#putObject." ) ; const pathParams = { "{namespaceName}" : putObjectRequest . namespaceName , "{bucketName}" : putObjectRequest . bucketName , "{objectName}" : putObjectRequest . objectName } ; const queryParams = { } ; let headerParams = { "if-match" : putObjectRequest . ifMatch , "if-none-match" : putObjectRequest . ifNoneMatch , "opc-client-request-id" : putObjectRequest . opcClientRequestId , "Expect" : putObjectRequest . expect , "Content-Length" : putObjectRequest . contentLength , "Content-MD5" : putObjectRequest . contentMD5 , "Content-Type" : putObjectRequest . contentType , "Content-Language" : putObjectRequest . contentLanguage , "Content-Encoding" : putObjectRequest . contentEncoding , "Content-Disposition" : putObjectRequest . contentDisposition , "Cache-Control" : putObjectRequest . cacheControl , "opc-sse-customer-algorithm" : putObjectRequest . opcSseCustomerAlgorithm , "opc-sse-customer-key" : putObjectRequest . opcSseCustomerKey , "opc-sse-customer-key-sha256" : putObjectRequest . opcSseCustomerKeySha256 , "opc-sse-kms-key-id" : putObjectRequest . opcSseKmsKeyId , "storage-tier" : putObjectRequest . storageTier } ; if ( putObjectRequest . opcMeta ) { Object . entries ( putObjectRequest . opcMeta ) . forEach ( ( [ key , value ] ) => { Object . assign ( headerParams , { [ "opc-meta-" + key ] : value } ) ; } ) ; } const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , putObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/o/{objectName}" , method : "PUT" , bodyContent : putObjectRequest . putObjectBody , pathParams : pathParams , headerParams : headerParams , backupBinaryBody : retrier . backUpBinaryBody , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request , true ) ; const sdkResponse = composeResponse ( { responseObject : < responses . PutObjectResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-content-md5" ) , key : "opcContentMd5" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } , { value : response . headers . get ( "version-id" ) , key : "versionId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param PutObjectLifecyclePolicyRequest return throws example Click  https to see how to use PutObjectLifecyclePolicy API.
      public async putObjectLifecyclePolicy ( putObjectLifecyclePolicyRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#putObjectLifecyclePolicy." ) ; const pathParams = { "{namespaceName}" : putObjectLifecyclePolicyRequest . namespaceName , "{bucketName}" : putObjectLifecyclePolicyRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : putObjectLifecyclePolicyRequest . opcClientRequestId , "if-match" : putObjectLifecyclePolicyRequest . ifMatch , "if-none-match" : putObjectLifecyclePolicyRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , putObjectLifecyclePolicyRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/l" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( putObjectLifecyclePolicyRequest . putObjectLifecyclePolicyDetails , "PutObjectLifecyclePolicyDetails" , model . PutObjectLifecyclePolicyDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . PutObjectLifecyclePolicyResponse > { } , body : await response . json ( ) , bodyKey : "objectLifecyclePolicy" , bodyModel : model . ObjectLifecyclePolicy , type : "model.ObjectLifecyclePolicy" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ReencryptBucketRequest return throws example Click  https to see how to use ReencryptBucket API.
        public async reencryptBucket ( reencryptBucketRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#reencryptBucket." ) ; const pathParams = { "{namespaceName}" : reencryptBucketRequest . namespaceName , "{bucketName}" : reencryptBucketRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : reencryptBucketRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , reencryptBucketRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/reencrypt" , method : "POST" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ReencryptBucketResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-work-request-id" ) , key : "opcWorkRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ReencryptObjectRequest return throws example Click  https to see how to use ReencryptObject API.
        public async reencryptObject ( reencryptObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#reencryptObject." ) ; const pathParams = { "{namespaceName}" : reencryptObjectRequest . namespaceName , "{bucketName}" : reencryptObjectRequest . bucketName , "{objectName}" : reencryptObjectRequest . objectName } ; const queryParams = { "versionId" : reencryptObjectRequest . versionId } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : reencryptObjectRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , reencryptObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/reencrypt/{objectName}" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( reencryptObjectRequest . reencryptObjectDetails , "ReencryptObjectDetails" , model . ReencryptObjectDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ReencryptObjectResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param RenameObjectRequest return throws example Click  https to see how to use RenameObject API.
        public async renameObject ( renameObjectRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#renameObject." ) ; const pathParams = { "{namespaceName}" : renameObjectRequest . namespaceName , "{bucketName}" : renameObjectRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : renameObjectRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , renameObjectRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/renameObject" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( renameObjectRequest . renameObjectDetails , "RenameObjectDetails" , model . RenameObjectDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RenameObjectResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } , { value : response . headers . get ( "last-modified" ) , key : "lastModified" , dataType : "Date" } , { value : response . headers . get ( "version-id" ) , key : "versionId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param RestoreObjectsRequest return throws example Click  https to see how to use RestoreObjects API.
      public async restoreObjects ( restoreObjectsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#restoreObjects." ) ; const pathParams = { "{namespaceName}" : restoreObjectsRequest . namespaceName , "{bucketName}" : restoreObjectsRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : restoreObjectsRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , restoreObjectsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/restoreObjects" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( restoreObjectsRequest . restoreObjectsDetails , "RestoreObjectsDetails" , model . RestoreObjectsDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . RestoreObjectsResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateBucketRequest return throws example Click  https to see how to use UpdateBucket API.
        public async updateBucket ( updateBucketRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#updateBucket." ) ; const pathParams = { "{namespaceName}" : updateBucketRequest . namespaceName , "{bucketName}" : updateBucketRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateBucketRequest . ifMatch , "opc-client-request-id" : updateBucketRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateBucketRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( updateBucketRequest . updateBucketDetails , "UpdateBucketDetails" , model . UpdateBucketDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateBucketResponse > { } , body : await response . json ( ) , bodyKey : "bucket" , bodyModel : model . Bucket , type : "model.Bucket" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , 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 ; } } param UpdateNamespaceMetadataRequest return throws example Click  https to see how to use UpdateNamespaceMetadata API.
        public async updateNamespaceMetadata ( updateNamespaceMetadataRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#updateNamespaceMetadata." ) ; const pathParams = { "{namespaceName}" : updateNamespaceMetadataRequest . namespaceName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : updateNamespaceMetadataRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateNamespaceMetadataRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateNamespaceMetadataRequest . updateNamespaceMetadataDetails , "UpdateNamespaceMetadataDetails" , model . UpdateNamespaceMetadataDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateNamespaceMetadataResponse > { } , body : await response . json ( ) , bodyKey : "namespaceMetadata" , bodyModel : model . NamespaceMetadata , type : "model.NamespaceMetadata" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateObjectStorageTierRequest return throws example Click  https to see how to use UpdateObjectStorageTier API.
      public async updateObjectStorageTier ( updateObjectStorageTierRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#updateObjectStorageTier." ) ; const pathParams = { "{namespaceName}" : updateObjectStorageTierRequest . namespaceName , "{bucketName}" : updateObjectStorageTierRequest . bucketName } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-client-request-id" : updateObjectStorageTierRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateObjectStorageTierRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/actions/updateObjectStorageTier" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( updateObjectStorageTierRequest . updateObjectStorageTierDetails , "UpdateObjectStorageTierDetails" , model . UpdateObjectStorageTierDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateObjectStorageTierResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateRetentionRuleRequest return throws example Click  https to see how to use UpdateRetentionRule API.
      public async updateRetentionRule ( updateRetentionRuleRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#updateRetentionRule." ) ; const pathParams = { "{namespaceName}" : updateRetentionRuleRequest . namespaceName , "{bucketName}" : updateRetentionRuleRequest . bucketName , "{retentionRuleId}" : updateRetentionRuleRequest . retentionRuleId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateRetentionRuleRequest . ifMatch , "opc-client-request-id" : updateRetentionRuleRequest . opcClientRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateRetentionRuleRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateRetentionRuleRequest . updateRetentionRuleDetails , "UpdateRetentionRuleDetails" , model . UpdateRetentionRuleDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateRetentionRuleResponse > { } , body : await response . json ( ) , bodyKey : "retentionRule" , bodyModel : model . RetentionRule , type : "model.RetentionRule" , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , 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 ; } } param UploadPartRequest return throws example Click  https to see how to use UploadPart API.
      public async uploadPart ( uploadPartRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation ObjectStorageClient#uploadPart." ) ; const pathParams = { "{namespaceName}" : uploadPartRequest . namespaceName , "{bucketName}" : uploadPartRequest . bucketName , "{objectName}" : uploadPartRequest . objectName } ; const queryParams = { "uploadId" : uploadPartRequest . uploadId , "uploadPartNum" : uploadPartRequest . uploadPartNum } ; let headerParams = { "opc-client-request-id" : uploadPartRequest . opcClientRequestId , "if-match" : uploadPartRequest . ifMatch , "if-none-match" : uploadPartRequest . ifNoneMatch , "Expect" : uploadPartRequest . expect , "Content-Length" : uploadPartRequest . contentLength , "Content-MD5" : uploadPartRequest . contentMD5 , "opc-sse-customer-algorithm" : uploadPartRequest . opcSseCustomerAlgorithm , "opc-sse-customer-key" : uploadPartRequest . opcSseCustomerKey , "opc-sse-customer-key-sha256" : uploadPartRequest . opcSseCustomerKeySha256 , "opc-sse-kms-key-id" : uploadPartRequest . opcSseKmsKeyId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , uploadPartRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/n/{namespaceName}/b/{bucketName}/u/{objectName}" , method : "PUT" , bodyContent : uploadPartRequest . uploadPartBody , pathParams : pathParams , headerParams : headerParams , backupBinaryBody : retrier . backUpBinaryBody , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request , true ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UploadPartResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-client-request-id" ) , key : "opcClientRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-content-md5" ) , key : "opcContentMd5" , dataType : "string" } , { value : response . headers . get ( "ETag" ) , key : "eTag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }