IDataSourcesOperations.CreateOrUpdateWithHttpMessagesAsync Method

Definition

Overloads

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

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

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

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

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

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.DataSource>> CreateOrUpdateWithHttpMessagesAsync (Microsoft.Azure.Search.Models.DataSource dataSource, 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.DataSource * 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.DataSource>>
Public Function CreateOrUpdateWithHttpMessagesAsync (dataSource As DataSource, 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 DataSource))

Parameters

dataSource
DataSource

The definition of the datasource 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, DataSource, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.DataSource>> CreateOrUpdateWithHttpMessagesAsync (string dataSourceName, Microsoft.Azure.Search.Models.DataSource dataSource, 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.DataSource * 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.DataSource>>
Public Function CreateOrUpdateWithHttpMessagesAsync (dataSourceName As String, dataSource As DataSource, 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 DataSource))

Parameters

dataSourceName
String

The name of the datasource to create or update.

dataSource
DataSource

The definition of the datasource 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