AutoSuggestClient class
- Extends
Constructors
Auto |
Initializes a new instance of the AutoSuggestClient class. |
Inherited Properties
credentials | |
endpoint |
Methods
Inherited Methods
send |
Send an HTTP request that is populated using the provided OperationSpec. |
send |
Send the provided httpRequest. |
Constructor Details
AutoSuggestClient(ServiceClientCredentials, AutoSuggestClientOptions)
Initializes a new instance of the AutoSuggestClient class.
new AutoSuggestClient(credentials: ServiceClientCredentials, options?: AutoSuggestClientOptions)
Parameters
- credentials
- ServiceClientCredentials
Subscription credentials which uniquely identify client subscription.
- options
- AutoSuggestClientOptions
The parameter options
Inherited Property Details
credentials
credentials: ServiceClientCredentials
Property Value
Inherited From AutoSuggestClientContext.credentials
endpoint
Method Details
autoSuggest(string, AutoSuggestClientAutoSuggestOptionalParams)
function autoSuggest(query: string, options?: AutoSuggestClientAutoSuggestOptionalParams): Promise<AutoSuggestResponse>
Parameters
- query
-
string
The user's search term.
The optional parameters
Returns
Promise<AutoSuggestResponse>
Promise<Models.AutoSuggestResponse>
autoSuggest(string, AutoSuggestClientAutoSuggestOptionalParams, ServiceCallback<Suggestions>)
function autoSuggest(query: string, options: AutoSuggestClientAutoSuggestOptionalParams, callback: ServiceCallback<Suggestions>)
Parameters
- query
-
string
The user's search term.
The optional parameters
- callback
The callback
autoSuggest(string, ServiceCallback<Suggestions>)
function autoSuggest(query: string, callback: ServiceCallback<Suggestions>)
Parameters
- query
-
string
The user's search term.
- callback
The callback
Inherited Method Details
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 AutoSuggestClientContext.sendOperationRequest
sendRequest(RequestPrepareOptions | WebResourceLike)
Send the provided httpRequest.
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
Parameters
- options
Returns
Promise<HttpOperationResponse>
Inherited From AutoSuggestClientContext.sendRequest