共用方式為


BatchServiceClient class

Extends

建構函式

BatchServiceClient(ServiceClientCredentials, string, AzureServiceClientOptions)

初始化 BatchServiceClient 類別的新實例。

屬性

account
application
certificate
computeNode
file
job
jobSchedule
pool
task

繼承的屬性

acceptLanguage
apiVersion
batchUrl
credentials
longRunningOperationRetryTimeout

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

繼承的方法

beginLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

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

restoreLROPoller(LROPollState)

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

sendLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

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

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

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

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

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

sendRequest(RequestPrepareOptions | WebResourceLike)

傳送提供的 HTTPRequest。

建構函式詳細資料

BatchServiceClient(ServiceClientCredentials, string, AzureServiceClientOptions)

初始化 BatchServiceClient 類別的新實例。

new BatchServiceClient(credentials: ServiceClientCredentials, batchUrl: string, options?: AzureServiceClientOptions)

參數

credentials
ServiceClientCredentials

用戶端連線至 Azure 所需的認證。

batchUrl

string

所有 Azure Batch 服務要求的基底 URL。

options
@azure/ms-rest-azure-js.AzureServiceClientOptions

參數選項

屬性詳細資料

account

account: Account

屬性值

application

application: Application

屬性值

certificate

certificate: CertificateOperations

屬性值

computeNode

computeNode: ComputeNodeOperations

屬性值

file

file: File

屬性值

job

job: Job

屬性值

Job

jobSchedule

jobSchedule: JobSchedule

屬性值

pool

pool: Pool

屬性值

task

task: Task

屬性值

繼承的屬性詳細資料

acceptLanguage

acceptLanguage: string

屬性值

string

繼承自BatchServiceClientContext.acceptLanguage

apiVersion

apiVersion?: string

屬性值

string

繼承自BatchServiceClientContext.apiVersion

batchUrl

batchUrl: string

屬性值

string

繼承自BatchServiceClientContext.batchUrl

credentials

credentials: ServiceClientCredentials

屬性值

繼承自BatchServiceClientContext.credentials

longRunningOperationRetryTimeout

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

longRunningOperationRetryTimeout?: number

屬性值

number

繼承自BatchServiceClientContext.longRunningOperationRetryTimeout

繼承的方法的詳細資料

beginLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

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

function beginLongRunningRequest(request: WebResource | RequestPrepareOptions, options?: RequestOptionsBase): Promise<LROPoller>

參數

request

WebResource | RequestPrepareOptions

要求物件

options
RequestOptionsBase

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

傳回

Promise<@azure/ms-rest-azure-js.LROPoller>

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

繼承自BatchServiceClientContext.beginLongRunningRequest

restoreLROPoller(LROPollState)

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

function restoreLROPoller(lroPollState: LROPollState): LROPoller

參數

lroPollState
@azure/ms-rest-azure-js.LROPollState

傳回

@azure/ms-rest-azure-js.LROPoller

繼承自BatchServiceClientContext.restoreLROPoller

sendLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

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

function sendLongRunningRequest(request: WebResource | RequestPrepareOptions, options?: RequestOptionsBase): Promise<HttpOperationResponse>

參數

request

WebResource | RequestPrepareOptions

要求物件

options
RequestOptionsBase

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

傳回

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

繼承自BatchServiceClientContext.sendLongRunningRequest

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

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

function sendLRORequest(operationArguments: OperationArguments, operationSpec: OperationSpec, options?: RequestOptionsBase): Promise<LROPoller>

參數

operationArguments
OperationArguments

作業的自變數。

operationSpec
OperationSpec

作業的規格。

options
RequestOptionsBase

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

傳回

Promise<@azure/ms-rest-azure-js.LROPoller>

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

繼承自BatchServiceClientContext.sendLRORequest

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

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

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

參數

operationArguments
OperationArguments

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

operationSpec
OperationSpec

要用來填入 HTTPRequest 的 OperationSpec。

callback

ServiceCallback<any>

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

傳回

Promise<RestResponse>

繼承自BatchServiceClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

傳送提供的 HTTPRequest。

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

參數

傳回

繼承自BatchServiceClientContext.sendRequest