共用方式為


StorageManagementClientContext class

Extends

AzureServiceClient

建構函式

StorageManagementClientContext(ServiceClientCredentials | TokenCredential, string, Models.StorageManagementClientOptions)

初始化 StorageManagementClient 類別的新實例。

屬性

acceptLanguage
apiVersion
credentials
longRunningOperationRetryTimeout

長時間執行作業的重試逾時以秒為單位。 預設值為 30。

subscriptionId

方法

beginLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

傳送 LRO 的初始要求(長時間執行作業),並取得 HttpLongRunningOperationResponse,提供輪詢 LRO 的方法,並檢查 LRO 是否已完成。

restoreLROPoller(LROPollState)

從提供的 LROPollState 還原 LROPoller。 這個方法可用來在不同的進程或計算機上重新建立 LROPoller。

sendLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

提供機制來提出要求,以輪詢並提供最終結果。

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

傳送 LRO 的初始要求(長時間執行作業),並取得 LROPoller,該 LROPoller 提供輪詢 LRO 的方法,並檢查 LRO 是否已完成。

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

傳送使用提供的 OperationSpec 填入的 HTTP 要求。

sendRequest(RequestPrepareOptions | WebResourceLike)

傳送提供的 HTTPRequest。

建構函式詳細資料

StorageManagementClientContext(ServiceClientCredentials | TokenCredential, string, Models.StorageManagementClientOptions)

初始化 StorageManagementClient 類別的新實例。

new StorageManagementClientContext(credentials: ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions)

參數

credentials

ServiceClientCredentials | TokenCredential

用戶端連線至 Azure 所需的認證。 建議從 @azure/identity 套件實作 TokenCredential 介面的認證。 如需這些認證的詳細資訊,請參閱 <xref:https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40azure%2Fidentity>。 從舊版套件實作 ServiceClientCredentials 介面的認證 @azure/ms-rest-nodeauth 和

subscriptionId

string

目標訂用帳戶的標識碼。

options
Models.StorageManagementClientOptions

屬性詳細資料

acceptLanguage

acceptLanguage: string

屬性值

string

apiVersion

apiVersion?: undefined | string

屬性值

undefined | string

credentials

credentials: ServiceClientCredentials | TokenCredential

屬性值

ServiceClientCredentials | TokenCredential

longRunningOperationRetryTimeout

長時間執行作業的重試逾時以秒為單位。 預設值為 30。

longRunningOperationRetryTimeout?: undefined | number

屬性值

undefined | number

subscriptionId

subscriptionId: string

屬性值

string

方法詳細資料

beginLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

傳送 LRO 的初始要求(長時間執行作業),並取得 HttpLongRunningOperationResponse,提供輪詢 LRO 的方法,並檢查 LRO 是否已完成。

function beginLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase)

參數

request

RequestPrepareOptions | WebResource

要求物件

options

RequestOptionsBase

傳回

Promise<LROPoller>

HttpLongRunningOperationResponse,提供與 LRO 互動的方法。

restoreLROPoller(LROPollState)

從提供的 LROPollState 還原 LROPoller。 這個方法可用來在不同的進程或計算機上重新建立 LROPoller。

function restoreLROPoller(lroPollState: LROPollState)

參數

lroPollState

LROPollState

傳回

LROPoller

sendLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

提供機制來提出要求,以輪詢並提供最終結果。

function sendLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase)

參數

request

RequestPrepareOptions | WebResource

要求物件

options

RequestOptionsBase

傳回

Promise<HttpOperationResponse>

包含最終輪詢要求、回應和 responseBody 的 HttpOperationResponse。

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

傳送 LRO 的初始要求(長時間執行作業),並取得 LROPoller,該 LROPoller 提供輪詢 LRO 的方法,並檢查 LRO 是否已完成。

function sendLRORequest(operationArguments: OperationArguments, operationSpec: OperationSpec, options?: RequestOptionsBase)

參數

operationArguments

OperationArguments

作業的自變數。

operationSpec

OperationSpec

作業的規格。

options

RequestOptionsBase

提出要求時要傳送的其他選項。

傳回

Promise<LROPoller>

提供與 LRO 互動之方法的 LROPoller 物件。

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

傳送使用提供的 OperationSpec 填入的 HTTP 要求。

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>)

參數

operationArguments

OperationArguments

HTTP 要求樣板化值的自變數將會從 中填入。

operationSpec

OperationSpec

要用來填入 HTTPRequest 的 OperationSpec。

callback

ServiceCallback<any>

收到回應時要呼叫的回呼。

傳回

Promise<RestResponse>

sendRequest(RequestPrepareOptions | WebResourceLike)

傳送提供的 HTTPRequest。

function sendRequest(options: RequestPrepareOptions | WebResourceLike)

參數

options

RequestPrepareOptions | WebResourceLike

傳回

Promise<HttpOperationResponse>