ServiceClient class
Initializes a new instance of the ServiceClient.
Constructors
Service |
The ServiceClient constructor |
Properties
pipeline | The pipeline used by this client to make requests |
Methods
send |
Send an HTTP request that is populated using the provided OperationSpec. |
send |
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>