Share via


DataSourcesOperationsExtensions.CreateOrUpdate Method

Definition

Overloads

CreateOrUpdate(IDataSourcesOperations, DataSource, SearchRequestOptions, AccessCondition)

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

CreateOrUpdate(IDataSourcesOperations, String, DataSource, SearchRequestOptions, AccessCondition)

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

CreateOrUpdate(IDataSourcesOperations, DataSource, SearchRequestOptions, AccessCondition)

Source:
DataSourcesOperationsExtensions.Customization.cs

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

public static Microsoft.Azure.Search.Models.DataSource CreateOrUpdate (this Microsoft.Azure.Search.IDataSourcesOperations operations, Microsoft.Azure.Search.Models.DataSource dataSource, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default);
static member CreateOrUpdate : Microsoft.Azure.Search.IDataSourcesOperations * Microsoft.Azure.Search.Models.DataSource * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition -> Microsoft.Azure.Search.Models.DataSource
<Extension()>
Public Function CreateOrUpdate (operations As IDataSourcesOperations, dataSource As DataSource, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing) As DataSource

Parameters

operations
IDataSourcesOperations

The operations group for this extension method.

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.

Returns

The datasource that was created or updated.

Applies to

CreateOrUpdate(IDataSourcesOperations, String, DataSource, SearchRequestOptions, AccessCondition)

Source:
DataSourcesOperationsExtensions.cs

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

public static Microsoft.Azure.Search.Models.DataSource CreateOrUpdate (this Microsoft.Azure.Search.IDataSourcesOperations operations, string dataSourceName, Microsoft.Azure.Search.Models.DataSource dataSource, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default);
static member CreateOrUpdate : Microsoft.Azure.Search.IDataSourcesOperations * string * Microsoft.Azure.Search.Models.DataSource * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition -> Microsoft.Azure.Search.Models.DataSource
<Extension()>
Public Function CreateOrUpdate (operations As IDataSourcesOperations, dataSourceName As String, dataSource As DataSource, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing) As DataSource

Parameters

operations
IDataSourcesOperations

The operations group for this extension method.

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

Returns

Applies to