BatchServiceClientContext class
- Extends
-
@azure/ms-rest-azure-js.AzureServiceClient
Constructors
Batch |
Initializes a new instance of the BatchServiceClient class. |
Properties
api |
|
batch |
|
credentials |
Inherited Properties
accept |
|
long |
The retry timeout in seconds for Long Running Operations. Default value is 30. |
Inherited Methods
begin |
Send the initial request of a LRO (long running operation) and get back an HttpLongRunningOperationResponse that provides methods for polling the LRO and checking if the LRO is finished. |
restore |
Restore an LROPoller from the provided LROPollState. This method can be used to recreate an LROPoller on a different process or machine. |
send |
Provides a mechanism to make a request that will poll and provide the final result. |
send |
Send the initial request of a LRO (long running operation) and get back an LROPoller that provides methods for polling the LRO and checking if the LRO is finished. |
send |
Send an HTTP request that is populated using the provided OperationSpec. |
send |
Send the provided httpRequest. |
Constructor Details
BatchServiceClientContext(ServiceClientCredentials, string, AzureServiceClientOptions)
Initializes a new instance of the BatchServiceClient class.
new BatchServiceClientContext(credentials: ServiceClientCredentials, batchUrl: string, options?: AzureServiceClientOptions)
Parameters
- credentials
- ServiceClientCredentials
Credentials needed for the client to connect to Azure.
- batchUrl
-
string
The base URL for all Azure Batch service requests.
- options
- @azure/ms-rest-azure-js.AzureServiceClientOptions
The parameter options
Property Details
apiVersion
apiVersion?: string
Property Value
string
batchUrl
batchUrl: string
Property Value
string
credentials
Inherited Property Details
acceptLanguage
acceptLanguage: string
Property Value
string
Inherited From msRestAzure.AzureServiceClient.acceptLanguage
longRunningOperationRetryTimeout
The retry timeout in seconds for Long Running Operations. Default value is 30.
longRunningOperationRetryTimeout?: number
Property Value
number
Inherited From msRestAzure.AzureServiceClient.longRunningOperationRetryTimeout
Inherited Method Details
beginLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)
Send the initial request of a LRO (long running operation) and get back an HttpLongRunningOperationResponse that provides methods for polling the LRO and checking if the LRO is finished.
function beginLongRunningRequest(request: WebResource | RequestPrepareOptions, options?: RequestOptionsBase): Promise<LROPoller>
Parameters
- request
The request object
- options
- RequestOptionsBase
Additional options to be sent while making the request
Returns
Promise<@azure/ms-rest-azure-js.LROPoller>
The HttpLongRunningOperationResponse that provides methods for interacting with the LRO.
Inherited From msRestAzure.AzureServiceClient.beginLongRunningRequest
restoreLROPoller(LROPollState)
Restore an LROPoller from the provided LROPollState. This method can be used to recreate an LROPoller on a different process or machine.
function restoreLROPoller(lroPollState: LROPollState): LROPoller
Parameters
- lroPollState
- @azure/ms-rest-azure-js.LROPollState
Returns
Inherited From msRestAzure.AzureServiceClient.restoreLROPoller
sendLongRunningRequest(WebResource | RequestPrepareOptions, RequestOptionsBase)
Provides a mechanism to make a request that will poll and provide the final result.
function sendLongRunningRequest(request: WebResource | RequestPrepareOptions, options?: RequestOptionsBase): Promise<HttpOperationResponse>
Parameters
- request
The request object
- options
- RequestOptionsBase
Additional options to be sent while making the request
Returns
Promise<HttpOperationResponse>
The HttpOperationResponse containing the final polling request, response and the responseBody.
Inherited From msRestAzure.AzureServiceClient.sendLongRunningRequest
sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)
Send the initial request of a LRO (long running operation) and get back an LROPoller that provides methods for polling the LRO and checking if the LRO is finished.
function sendLRORequest(operationArguments: OperationArguments, operationSpec: OperationSpec, options?: RequestOptionsBase): Promise<LROPoller>
Parameters
- operationArguments
- OperationArguments
The arguments to the operation.
- operationSpec
- OperationSpec
The specification for the operation.
- options
- RequestOptionsBase
Additional options to be sent while making the request.
Returns
Promise<@azure/ms-rest-azure-js.LROPoller>
The LROPoller object that provides methods for interacting with the LRO.
Inherited From msRestAzure.AzureServiceClient.sendLRORequest
sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)
Send an HTTP request that is populated using the provided OperationSpec.
function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>
Parameters
- operationArguments
- OperationArguments
The arguments that the HTTP request's templated values will be populated from.
- operationSpec
- OperationSpec
The OperationSpec to use to populate the httpRequest.
- callback
-
ServiceCallback<any>
The callback to call when the response is received.
Returns
Promise<RestResponse>
Inherited From msRestAzure.AzureServiceClient.sendOperationRequest
sendRequest(RequestPrepareOptions | WebResourceLike)
Send the provided httpRequest.
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
Parameters
- options
Returns
Promise<HttpOperationResponse>
Inherited From msRestAzure.AzureServiceClient.sendRequest