Bagikan melalui


BatchServiceClient class

Memperluas

Konstruktor

BatchServiceClient(ServiceClientCredentials, string, AzureServiceClientOptions)

Menginisialisasi instans baru kelas BatchServiceClient.

Properti

account
application
certificate
computeNode
file
job
jobSchedule
pool
task

Properti yang Diwariskan

acceptLanguage
apiVersion
batchUrl
credentials
longRunningOperationRetryTimeout

Batas waktu coba lagi dalam detik untuk Operasi Jangka Panjang. Nilai defaultnya adalah 30.

Metode yang Diwarisi

beginLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

Kirim permintaan awal LRO (operasi jangka panjang) dan dapatkan kembali HttpLongRunningOperationResponse yang menyediakan metode untuk polling LRO dan periksa apakah LRO selesai.

restoreLROPoller(LROPollState)

Pulihkan LROPoller dari LROPollState yang disediakan. Metode ini dapat digunakan untuk membuat ulang LROPoller pada proses atau mesin yang berbeda.

sendLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

Menyediakan mekanisme untuk membuat permintaan yang akan melakukan polling dan memberikan hasil akhir.

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

Kirim permintaan awal LRO (operasi jangka panjang) dan dapatkan kembali LROPoller yang menyediakan metode untuk polling LRO dan periksa apakah LRO selesai.

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Kirim permintaan HTTP yang diisi menggunakan OperationSpec yang disediakan.

sendRequest(RequestPrepareOptions | WebResourceLike)

Kirim httpRequest yang disediakan.

Detail Konstruktor

BatchServiceClient(ServiceClientCredentials, string, AzureServiceClientOptions)

Menginisialisasi instans baru kelas BatchServiceClient.

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

Parameter

credentials
ServiceClientCredentials

Kredensial yang diperlukan klien untuk menyambungkan ke Azure.

batchUrl

string

URL dasar untuk semua permintaan layanan Azure Batch.

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

Opsi parameter

Detail Properti

account

account: Account

Nilai Properti

application

application: Application

Nilai Properti

certificate

certificate: CertificateOperations

Nilai Properti

computeNode

computeNode: ComputeNodeOperations

Nilai Properti

file

file: File

Nilai Properti

job

job: Job

Nilai Properti

Job

jobSchedule

jobSchedule: JobSchedule

Nilai Properti

pool

pool: Pool

Nilai Properti

task

task: Task

Nilai Properti

Detail Properti yang Diwariskan

acceptLanguage

acceptLanguage: string

Nilai Properti

string

Diwarisi DariBatchServiceClientContext.acceptLanguage

apiVersion

apiVersion?: string

Nilai Properti

string

Diwarisi DariBatchServiceClientContext.apiVersion

batchUrl

batchUrl: string

Nilai Properti

string

Diwarisi DariBatchServiceClientContext.batchUrl

credentials

credentials: ServiceClientCredentials

Nilai Properti

Diwariskan DariBatchServiceClientContext.credentials

longRunningOperationRetryTimeout

Batas waktu coba lagi dalam detik untuk Operasi Jangka Panjang. Nilai defaultnya adalah 30.

longRunningOperationRetryTimeout?: number

Nilai Properti

number

Diwarisi DariBatchServiceClientContext.longRunningOperationRetryTimeout

Detail Metode yang Diwarisi

beginLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

Kirim permintaan awal LRO (operasi jangka panjang) dan dapatkan kembali HttpLongRunningOperationResponse yang menyediakan metode untuk polling LRO dan periksa apakah LRO selesai.

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

Parameter

request

WebResource | RequestPrepareOptions

Objek permintaan

options
RequestOptionsBase

Opsi tambahan yang akan dikirim saat membuat permintaan

Mengembalikan

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

HttpLongRunningOperationResponse yang menyediakan metode untuk berinteraksi dengan LRO.

Diwarisi DariBatchServiceClientContext.beginLongRunningRequest

restoreLROPoller(LROPollState)

Pulihkan LROPoller dari LROPollState yang disediakan. Metode ini dapat digunakan untuk membuat ulang LROPoller pada proses atau mesin yang berbeda.

function restoreLROPoller(lroPollState: LROPollState): LROPoller

Parameter

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

Mengembalikan

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

Diwarisi DariBatchServiceClientContext.restoreLROPoller

sendLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)

Menyediakan mekanisme untuk membuat permintaan yang akan melakukan polling dan memberikan hasil akhir.

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

Parameter

request

WebResource | RequestPrepareOptions

Objek permintaan

options
RequestOptionsBase

Opsi tambahan yang akan dikirim saat membuat permintaan

Mengembalikan

HttpOperationResponse yang berisi permintaan polling akhir, respons, dan responseBody.

Diwarisi DariBatchServiceClientContext.sendLongRunningRequest

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

Kirim permintaan awal LRO (operasi jangka panjang) dan dapatkan kembali LROPoller yang menyediakan metode untuk polling LRO dan periksa apakah LRO selesai.

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

Parameter

operationArguments
OperationArguments

Argumen untuk operasi.

operationSpec
OperationSpec

Spesifikasi untuk operasi.

options
RequestOptionsBase

Opsi tambahan yang akan dikirim saat membuat permintaan.

Mengembalikan

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

Objek LROPoller yang menyediakan metode untuk berinteraksi dengan LRO.

Diwarisi DariBatchServiceClientContext.sendLRORequest

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Kirim permintaan HTTP yang diisi menggunakan OperationSpec yang disediakan.

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

Parameter

operationArguments
OperationArguments

Argumen tempat nilai templat permintaan HTTP akan diisi.

operationSpec
OperationSpec

OperationSpec yang digunakan untuk mengisi httpRequest.

callback

ServiceCallback<any>

Panggilan balik untuk memanggil saat respons diterima.

Mengembalikan

Promise<RestResponse>

Diwarisi DariBatchServiceClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Kirim httpRequest yang disediakan.

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

Parameter

Mengembalikan

Diwariskan DariBatchServiceClientContext.sendRequest