/**
 * File Storage API
 * API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see [Overview of File Storage](/iaas/Content/File/Concepts/filestorageoverview.htm).

 * OpenAPI spec version: 20171215
 *
 *
 * 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 } from "oci-common" ; import { FileStorageWaiter } from "./filestorage-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum FileStorageApiKeys { } /**
 * 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 FileStorageClient { protected static serviceEndpointTemplate = "https://filestorage.{region}.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : FileStorageWaiter ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; if ( params . authenticationDetailsProvider && common . isRegionProvider ( params . authenticationDetailsProvider ) ) { const provider = params . authenticationDetailsProvider ; if ( provider . getRegion ( ) ) { this . region = provider . getRegion ( ) ; } } } /**
     * Get the endpoint that is being used to call (ex, https://www.example.com).
     */ public get endpoint ( ) { return this . _endpoint ; } param endpoint public set endpoint ( endpoint ) { this . _endpoint = endpoint ; this . _endpoint = this . _endpoint + "/20171215" ; if ( this . logger ) this . logger . info ( `FileStorageClient 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 ( FileStorageClient . 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 ( FileStorageClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new FileStorageWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param ChangeFileSystemCompartmentRequest return throws example Click  https to see how to use ChangeFileSystemCompartment API.
      public async changeFileSystemCompartment ( changeFileSystemCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#changeFileSystemCompartment." ) ; const pathParams = { "{fileSystemId}" : changeFileSystemCompartmentRequest . fileSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeFileSystemCompartmentRequest . ifMatch , "opc-request-id" : changeFileSystemCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeFileSystemCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/fileSystems/{fileSystemId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeFileSystemCompartmentRequest . changeFileSystemCompartmentDetails , "ChangeFileSystemCompartmentDetails" , model . ChangeFileSystemCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeFileSystemCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangeMountTargetCompartmentRequest return throws example Click  https to see how to use ChangeMountTargetCompartment API.
      public async changeMountTargetCompartment ( changeMountTargetCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#changeMountTargetCompartment." ) ; const pathParams = { "{mountTargetId}" : changeMountTargetCompartmentRequest . mountTargetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeMountTargetCompartmentRequest . ifMatch , "opc-request-id" : changeMountTargetCompartmentRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeMountTargetCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/mountTargets/{mountTargetId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeMountTargetCompartmentRequest . changeMountTargetCompartmentDetails , "ChangeMountTargetCompartmentDetails" , model . ChangeMountTargetCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeMountTargetCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateExportRequest return throws example Click  https to see how to use CreateExport API.
      public async createExport ( createExportRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#createExport." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createExportRequest . opcRetryToken , "opc-request-id" : createExportRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createExportRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exports" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createExportRequest . createExportDetails , "CreateExportDetails" , model . CreateExportDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateExportResponse > { } , body : await response . json ( ) , bodyKey : "export" , bodyModel : model . Export , type : "model.Export" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateFileSystemRequest return throws example Click  https to see how to use CreateFileSystem API.
        public async createFileSystem ( createFileSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#createFileSystem." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createFileSystemRequest . opcRetryToken , "opc-request-id" : createFileSystemRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createFileSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/fileSystems" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createFileSystemRequest . createFileSystemDetails , "CreateFileSystemDetails" , model . CreateFileSystemDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateFileSystemResponse > { } , body : await response . json ( ) , bodyKey : "fileSystem" , bodyModel : model . FileSystem , type : "model.FileSystem" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateMountTargetRequest return throws example Click  https to see how to use CreateMountTarget API.
        public async createMountTarget ( createMountTargetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#createMountTarget." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createMountTargetRequest . opcRetryToken , "opc-request-id" : createMountTargetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createMountTargetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/mountTargets" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createMountTargetRequest . createMountTargetDetails , "CreateMountTargetDetails" , model . CreateMountTargetDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateMountTargetResponse > { } , body : await response . json ( ) , bodyKey : "mountTarget" , bodyModel : model . MountTarget , type : "model.MountTarget" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateSnapshotRequest return throws example Click  https to see how to use CreateSnapshot API.
      public async createSnapshot ( createSnapshotRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#createSnapshot." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createSnapshotRequest . opcRetryToken , "opc-request-id" : createSnapshotRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createSnapshotRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/snapshots" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createSnapshotRequest . createSnapshotDetails , "CreateSnapshotDetails" , model . CreateSnapshotDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateSnapshotResponse > { } , body : await response . json ( ) , bodyKey : "snapshot" , bodyModel : model . Snapshot , type : "model.Snapshot" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteExportRequest return throws example Click  https to see how to use DeleteExport API.
      public async deleteExport ( deleteExportRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#deleteExport." ) ; const pathParams = { "{exportId}" : deleteExportRequest . exportId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteExportRequest . ifMatch , "opc-request-id" : deleteExportRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteExportRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exports/{exportId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteExportResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteFileSystemRequest return throws example Click  https to see how to use DeleteFileSystem API.
      public async deleteFileSystem ( deleteFileSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#deleteFileSystem." ) ; const pathParams = { "{fileSystemId}" : deleteFileSystemRequest . fileSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteFileSystemRequest . ifMatch , "opc-request-id" : deleteFileSystemRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteFileSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/fileSystems/{fileSystemId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteFileSystemResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteMountTargetRequest return throws example Click  https to see how to use DeleteMountTarget API.
      public async deleteMountTarget ( deleteMountTargetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#deleteMountTarget." ) ; const pathParams = { "{mountTargetId}" : deleteMountTargetRequest . mountTargetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteMountTargetRequest . ifMatch , "opc-request-id" : deleteMountTargetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteMountTargetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/mountTargets/{mountTargetId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteMountTargetResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteSnapshotRequest return throws example Click  https to see how to use DeleteSnapshot API.
      public async deleteSnapshot ( deleteSnapshotRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#deleteSnapshot." ) ; const pathParams = { "{snapshotId}" : deleteSnapshotRequest . snapshotId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteSnapshotRequest . ifMatch , "opc-request-id" : deleteSnapshotRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteSnapshotRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/snapshots/{snapshotId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteSnapshotResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetExportRequest return throws example Click  https to see how to use GetExport API.
      public async getExport ( getExportRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#getExport." ) ; const pathParams = { "{exportId}" : getExportRequest . exportId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getExportRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getExportRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exports/{exportId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetExportResponse > { } , body : await response . json ( ) , bodyKey : "export" , bodyModel : model . Export , type : "model.Export" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetExportSetRequest return throws example Click  https to see how to use GetExportSet API.
      public async getExportSet ( getExportSetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#getExportSet." ) ; const pathParams = { "{exportSetId}" : getExportSetRequest . exportSetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getExportSetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getExportSetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exportSets/{exportSetId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetExportSetResponse > { } , body : await response . json ( ) , bodyKey : "exportSet" , bodyModel : model . ExportSet , type : "model.ExportSet" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetFileSystemRequest return throws example Click  https to see how to use GetFileSystem API.
      public async getFileSystem ( getFileSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#getFileSystem." ) ; const pathParams = { "{fileSystemId}" : getFileSystemRequest . fileSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getFileSystemRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getFileSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/fileSystems/{fileSystemId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetFileSystemResponse > { } , body : await response . json ( ) , bodyKey : "fileSystem" , bodyModel : model . FileSystem , type : "model.FileSystem" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetMountTargetRequest return throws example Click  https to see how to use GetMountTarget API.
      public async getMountTarget ( getMountTargetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#getMountTarget." ) ; const pathParams = { "{mountTargetId}" : getMountTargetRequest . mountTargetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getMountTargetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getMountTargetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/mountTargets/{mountTargetId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetMountTargetResponse > { } , body : await response . json ( ) , bodyKey : "mountTarget" , bodyModel : model . MountTarget , type : "model.MountTarget" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetSnapshotRequest return throws example Click  https to see how to use GetSnapshot API.
      public async getSnapshot ( getSnapshotRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#getSnapshot." ) ; const pathParams = { "{snapshotId}" : getSnapshotRequest . snapshotId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getSnapshotRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getSnapshotRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/snapshots/{snapshotId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetSnapshotResponse > { } , body : await response . json ( ) , bodyKey : "snapshot" , bodyModel : model . Snapshot , type : "model.Snapshot" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListExportSetsRequest return throws example Click  https to see how to use ListExportSets API.
      public async listExportSets ( listExportSetsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#listExportSets." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listExportSetsRequest . compartmentId , "availabilityDomain" : listExportSetsRequest . availabilityDomain , "limit" : listExportSetsRequest . limit , "page" : listExportSetsRequest . page , "displayName" : listExportSetsRequest . displayName , "lifecycleState" : listExportSetsRequest . lifecycleState , "id" : listExportSetsRequest . id , "sortBy" : listExportSetsRequest . sortBy , "sortOrder" : listExportSetsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listExportSetsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listExportSetsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exportSets" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListExportSetsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ExportSetSummary , type : "Array<model.ExportSetSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllExportSets ( request ) { return paginateRecords ( request , req => this . listExportSets ( req ) ) ; } param request public listAllExportSetsResponses ( request ) { return paginateResponses ( request , req => this . listExportSets ( req ) ) ; } param request public listExportSetsRecordIterator ( request ) { return paginateRecords ( request , req => this . listExportSets ( req ) ) ; } param request public listExportSetsResponseIterator ( request ) { return paginateResponses ( request , req => this . listExportSets ( req ) ) ; } param ListExportsRequest return throws example Click  https to see how to use ListExports API.
      public async listExports ( listExportsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#listExports." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listExportsRequest . compartmentId , "limit" : listExportsRequest . limit , "page" : listExportsRequest . page , "exportSetId" : listExportsRequest . exportSetId , "fileSystemId" : listExportsRequest . fileSystemId , "lifecycleState" : listExportsRequest . lifecycleState , "id" : listExportsRequest . id , "sortBy" : listExportsRequest . sortBy , "sortOrder" : listExportsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listExportsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listExportsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exports" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListExportsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . ExportSummary , type : "Array<model.ExportSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllExports ( request ) { return paginateRecords ( request , req => this . listExports ( req ) ) ; } param request public listAllExportsResponses ( request ) { return paginateResponses ( request , req => this . listExports ( req ) ) ; } param request public listExportsRecordIterator ( request ) { return paginateRecords ( request , req => this . listExports ( req ) ) ; } param request public listExportsResponseIterator ( request ) { return paginateResponses ( request , req => this . listExports ( req ) ) ; } param ListFileSystemsRequest return throws example Click  https to see how to use ListFileSystems API.
      public async listFileSystems ( listFileSystemsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#listFileSystems." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listFileSystemsRequest . compartmentId , "availabilityDomain" : listFileSystemsRequest . availabilityDomain , "limit" : listFileSystemsRequest . limit , "page" : listFileSystemsRequest . page , "displayName" : listFileSystemsRequest . displayName , "lifecycleState" : listFileSystemsRequest . lifecycleState , "id" : listFileSystemsRequest . id , "sourceSnapshotId" : listFileSystemsRequest . sourceSnapshotId , "parentFileSystemId" : listFileSystemsRequest . parentFileSystemId , "sortBy" : listFileSystemsRequest . sortBy , "sortOrder" : listFileSystemsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listFileSystemsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listFileSystemsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/fileSystems" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListFileSystemsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . FileSystemSummary , type : "Array<model.FileSystemSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllFileSystems ( request ) { return paginateRecords ( request , req => this . listFileSystems ( req ) ) ; } param request public listAllFileSystemsResponses ( request ) { return paginateResponses ( request , req => this . listFileSystems ( req ) ) ; } param request public listFileSystemsRecordIterator ( request ) { return paginateRecords ( request , req => this . listFileSystems ( req ) ) ; } param request public listFileSystemsResponseIterator ( request ) { return paginateResponses ( request , req => this . listFileSystems ( req ) ) ; } param ListMountTargetsRequest return throws example Click  https to see how to use ListMountTargets API.
      public async listMountTargets ( listMountTargetsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#listMountTargets." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listMountTargetsRequest . compartmentId , "availabilityDomain" : listMountTargetsRequest . availabilityDomain , "limit" : listMountTargetsRequest . limit , "page" : listMountTargetsRequest . page , "displayName" : listMountTargetsRequest . displayName , "exportSetId" : listMountTargetsRequest . exportSetId , "lifecycleState" : listMountTargetsRequest . lifecycleState , "id" : listMountTargetsRequest . id , "sortBy" : listMountTargetsRequest . sortBy , "sortOrder" : listMountTargetsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listMountTargetsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listMountTargetsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/mountTargets" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListMountTargetsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . MountTargetSummary , type : "Array<model.MountTargetSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllMountTargets ( request ) { return paginateRecords ( request , req => this . listMountTargets ( req ) ) ; } param request public listAllMountTargetsResponses ( request ) { return paginateResponses ( request , req => this . listMountTargets ( req ) ) ; } param request public listMountTargetsRecordIterator ( request ) { return paginateRecords ( request , req => this . listMountTargets ( req ) ) ; } param request public listMountTargetsResponseIterator ( request ) { return paginateResponses ( request , req => this . listMountTargets ( req ) ) ; } param ListSnapshotsRequest return throws example Click  https to see how to use ListSnapshots API.
      public async listSnapshots ( listSnapshotsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#listSnapshots." ) ; const pathParams = { } ; const queryParams = { "fileSystemId" : listSnapshotsRequest . fileSystemId , "limit" : listSnapshotsRequest . limit , "page" : listSnapshotsRequest . page , "lifecycleState" : listSnapshotsRequest . lifecycleState , "id" : listSnapshotsRequest . id , "sortOrder" : listSnapshotsRequest . sortOrder } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listSnapshotsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listSnapshotsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/snapshots" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListSnapshotsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . SnapshotSummary , type : "Array<model.SnapshotSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllSnapshots ( request ) { return paginateRecords ( request , req => this . listSnapshots ( req ) ) ; } param request public listAllSnapshotsResponses ( request ) { return paginateResponses ( request , req => this . listSnapshots ( req ) ) ; } param request public listSnapshotsRecordIterator ( request ) { return paginateRecords ( request , req => this . listSnapshots ( req ) ) ; } param request public listSnapshotsResponseIterator ( request ) { return paginateResponses ( request , req => this . listSnapshots ( req ) ) ; } param UpdateExportRequest return throws example Click  https to see how to use UpdateExport API.
      public async updateExport ( updateExportRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#updateExport." ) ; const pathParams = { "{exportId}" : updateExportRequest . exportId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateExportRequest . ifMatch , "opc-request-id" : updateExportRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateExportRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exports/{exportId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateExportRequest . updateExportDetails , "UpdateExportDetails" , model . UpdateExportDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateExportResponse > { } , body : await response . json ( ) , bodyKey : "export" , bodyModel : model . Export , type : "model.Export" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateExportSetRequest return throws example Click  https to see how to use UpdateExportSet API.
      public async updateExportSet ( updateExportSetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#updateExportSet." ) ; const pathParams = { "{exportSetId}" : updateExportSetRequest . exportSetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateExportSetRequest . ifMatch , "opc-request-id" : updateExportSetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateExportSetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/exportSets/{exportSetId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateExportSetRequest . updateExportSetDetails , "UpdateExportSetDetails" , model . UpdateExportSetDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateExportSetResponse > { } , body : await response . json ( ) , bodyKey : "exportSet" , bodyModel : model . ExportSet , type : "model.ExportSet" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateFileSystemRequest return throws example Click  https to see how to use UpdateFileSystem API.
      public async updateFileSystem ( updateFileSystemRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#updateFileSystem." ) ; const pathParams = { "{fileSystemId}" : updateFileSystemRequest . fileSystemId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateFileSystemRequest . ifMatch , "opc-request-id" : updateFileSystemRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateFileSystemRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/fileSystems/{fileSystemId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateFileSystemRequest . updateFileSystemDetails , "UpdateFileSystemDetails" , model . UpdateFileSystemDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateFileSystemResponse > { } , body : await response . json ( ) , bodyKey : "fileSystem" , bodyModel : model . FileSystem , type : "model.FileSystem" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateMountTargetRequest return throws example Click  https to see how to use UpdateMountTarget API.
      public async updateMountTarget ( updateMountTargetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#updateMountTarget." ) ; const pathParams = { "{mountTargetId}" : updateMountTargetRequest . mountTargetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateMountTargetRequest . ifMatch , "opc-request-id" : updateMountTargetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateMountTargetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/mountTargets/{mountTargetId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateMountTargetRequest . updateMountTargetDetails , "UpdateMountTargetDetails" , model . UpdateMountTargetDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateMountTargetResponse > { } , body : await response . json ( ) , bodyKey : "mountTarget" , bodyModel : model . MountTarget , type : "model.MountTarget" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateSnapshotRequest return throws example Click  https to see how to use UpdateSnapshot API.
      public async updateSnapshot ( updateSnapshotRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation FileStorageClient#updateSnapshot." ) ; const pathParams = { "{snapshotId}" : updateSnapshotRequest . snapshotId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateSnapshotRequest . ifMatch , "opc-request-id" : updateSnapshotRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateSnapshotRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/snapshots/{snapshotId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateSnapshotRequest . updateSnapshotDetails , "UpdateSnapshotDetails" , model . UpdateSnapshotDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateSnapshotResponse > { } , body : await response . json ( ) , bodyKey : "snapshot" , bodyModel : model . Snapshot , type : "model.Snapshot" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }