Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ServiceClient class
- Package:
- @azure/core-client
Initializes a new instance of the ServiceClient.
Constructors
| ServiceClient(ServiceClientOptions) | The ServiceClient constructor |
Properties
| pipeline | The pipeline used by this client to make requests |
Methods
| sendOperationRequest<T>(OperationArguments, OperationSpec) | Send an HTTP request that is populated using the provided OperationSpec. |
| sendRequest(PipelineRequest) | Send the provided httpRequest. |
Constructor Details
ServiceClient(ServiceClientOptions)
The ServiceClient constructor
new ServiceClient(options?: ServiceClientOptions)
Parameters
- options
- ServiceClientOptions
The service client options that govern the behavior of the client.
Property Details
pipeline
Method Details
sendOperationRequest<T>(OperationArguments, OperationSpec)
Send an HTTP request that is populated using the provided OperationSpec.
function sendOperationRequest<T>(operationArguments: OperationArguments, operationSpec: OperationSpec): Promise<T>
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.
Returns
Promise<T>
sendRequest(PipelineRequest)
Send the provided httpRequest.
function sendRequest(request: PipelineRequest): Promise<PipelineResponse>
Parameters
- request
- PipelineRequest
Returns
Promise<PipelineResponse>
