Share via


ISynonymMapsOperations.CreateOrUpdateWithHttpMessagesAsync Method

Definition

Overloads

CreateOrUpdateWithHttpMessagesAsync(SynonymMap, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new synonym map or updates a synonym map if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

CreateOrUpdateWithHttpMessagesAsync(String, SynonymMap, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new synonym map or updates a synonym map if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

CreateOrUpdateWithHttpMessagesAsync(SynonymMap, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new synonym map or updates a synonym map if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.SynonymMap>> CreateOrUpdateWithHttpMessagesAsync (Microsoft.Azure.Search.Models.SynonymMap synonymMap, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : Microsoft.Azure.Search.Models.SynonymMap * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.SynonymMap>>
Public Function CreateOrUpdateWithHttpMessagesAsync (synonymMap As SynonymMap, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SynonymMap))

Parameters

synonymMap
SynonymMap

The definition of the synonym map to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation.

accessCondition
AccessCondition

Additional parameters for the operation.

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

A response object containing the response body and response headers.

Exceptions

Thrown when the operation returned an invalid status code.

Thrown when unable to deserialize the response.

Thrown when a required parameter is null.

Thrown when a required parameter is null.

Applies to

CreateOrUpdateWithHttpMessagesAsync(String, SynonymMap, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new synonym map or updates a synonym map if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.SynonymMap>> CreateOrUpdateWithHttpMessagesAsync (string synonymMapName, Microsoft.Azure.Search.Models.SynonymMap synonymMap, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * Microsoft.Azure.Search.Models.SynonymMap * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.SynonymMap>>
Public Function CreateOrUpdateWithHttpMessagesAsync (synonymMapName As String, synonymMap As SynonymMap, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SynonymMap))

Parameters

synonymMapName
String

The name of the synonym map to create or update.

synonymMap
SynonymMap

The definition of the synonym map to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to