ServiceClientOptions interface
Options to be provided while creating the client.
- Extends
Properties
base |
If specified, this is the base URI that requests will be made against for this ServiceClient. If it is not specified, then all OperationSpecs must contain a baseUrl property. |
credential | Credential used to authenticate the request. |
credential |
If specified, will be used to build the BearerTokenAuthenticationPolicy. |
endpoint | If specified, this is the endpoint that requests will be made against for this ServiceClient. If it is not specified, then all OperationSpecs must contain a baseUrl property. to encourage customer to use endpoint, we mark the baseUri as deprecated. |
pipeline | A customized pipeline to use, otherwise a default one will be created. |
request |
The default request content type for the service. Used if no requestContentType is present on an OperationSpec. |
Inherited Properties
additional |
Additional policies to include in the HTTP pipeline. |
allow |
Set to true if the request is sent over HTTP instead of HTTPS |
http |
The HttpClient that will be used to send HTTP requests. |
proxy |
Options to configure a proxy for outgoing requests. |
redirect |
Options for how redirect responses are handled. |
retry |
Options that control how to retry failed requests. |
telemetry |
Options for setting common telemetry and tracing info to outgoing requests. |
tls |
Options for configuring TLS authentication |
user |
Options for adding user agent details to outgoing requests. |
Property Details
baseUri
Warning
This API is now deprecated.
This property is deprecated and will be removed soon, please use endpoint instead
If specified, this is the base URI that requests will be made against for this ServiceClient. If it is not specified, then all OperationSpecs must contain a baseUrl property.
baseUri?: string
Property Value
string
credential
Credential used to authenticate the request.
credential?: TokenCredential
Property Value
credentialScopes
If specified, will be used to build the BearerTokenAuthenticationPolicy.
credentialScopes?: string | string[]
Property Value
string | string[]
endpoint
If specified, this is the endpoint that requests will be made against for this ServiceClient. If it is not specified, then all OperationSpecs must contain a baseUrl property. to encourage customer to use endpoint, we mark the baseUri as deprecated.
endpoint?: string
Property Value
string
pipeline
A customized pipeline to use, otherwise a default one will be created.
pipeline?: Pipeline
Property Value
requestContentType
The default request content type for the service. Used if no requestContentType is present on an OperationSpec.
requestContentType?: string
Property Value
string
Inherited Property Details
additionalPolicies
Additional policies to include in the HTTP pipeline.
additionalPolicies?: AdditionalPolicyConfig[]
Property Value
Inherited From CommonClientOptions.additionalPolicies
allowInsecureConnection
Set to true if the request is sent over HTTP instead of HTTPS
allowInsecureConnection?: boolean
Property Value
boolean
Inherited From CommonClientOptions.allowInsecureConnection
httpClient
The HttpClient that will be used to send HTTP requests.
httpClient?: HttpClient
Property Value
Inherited From CommonClientOptions.httpClient
proxyOptions
Options to configure a proxy for outgoing requests.
proxyOptions?: ProxySettings
Property Value
Inherited From CommonClientOptions.proxyOptions
redirectOptions
Options for how redirect responses are handled.
redirectOptions?: RedirectPolicyOptions
Property Value
Inherited From CommonClientOptions.redirectOptions
retryOptions
Options that control how to retry failed requests.
retryOptions?: PipelineRetryOptions
Property Value
Inherited From CommonClientOptions.retryOptions
telemetryOptions
Options for setting common telemetry and tracing info to outgoing requests.
telemetryOptions?: TelemetryOptions
Property Value
Inherited From CommonClientOptions.telemetryOptions
tlsOptions
Options for configuring TLS authentication
tlsOptions?: TlsSettings
Property Value
Inherited From CommonClientOptions.tlsOptions
userAgentOptions
Options for adding user agent details to outgoing requests.
userAgentOptions?: UserAgentPolicyOptions
Property Value
Inherited From CommonClientOptions.userAgentOptions