DataSource Class

Definition

Represents a datasource definition in Azure Search, which can be used to configure an indexer.

public class DataSource : Microsoft.Azure.Search.Models.IResourceWithETag
type DataSource = class
    interface IResourceWithETag
Public Class DataSource
Implements IResourceWithETag
Inheritance
DataSource
Implements

Constructors

DataSource()

Initializes a new instance of the DataSource class.

DataSource(String, DataSourceType, DataSourceCredentials, DataContainer, String, DataChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Initializes a new instance of the DataSource class.

Properties

Container

Gets or sets the data container for the datasource.

Credentials

Gets or sets credentials for the datasource.

DataChangeDetectionPolicy

Gets or sets the data change detection policy for the datasource.

DataDeletionDetectionPolicy

Gets or sets the data deletion detection policy for the datasource.

Description

Gets or sets the description of the datasource.

ETag

Gets or sets the ETag of the DataSource.

Name

Gets or sets the name of the datasource.

Type

Gets or sets the type of the datasource. Possible values include: 'azuresql', 'cosmosdb', 'azureblob', 'azuretable'

Methods

AzureBlobStorage(String, String, String, String, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to an Azure Blob container.

AzureSql(String, String, String, DataChangeDetectionPolicy, String)

Creates a new DataSource to connect to an Azure SQL database with change detection enabled.

AzureSql(String, String, String, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to an Azure SQL database.

AzureSql(String, String, String, HighWaterMarkChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to an Azure SQL database with change detection and deletion detection enabled.

AzureTableStorage(String, String, String, String, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to an Azure Table.

CosmosDb(String, String, String, String, Boolean, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to a CosmosDb database.

DocumentDb(String, String, String, String, Boolean, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to a DocumentDb database.

SqlServerOnAzureVM(String, String, String, DataChangeDetectionPolicy, String)

Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection enabled.

SqlServerOnAzureVM(String, String, String, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to a VM-hosted SQL Server database.

SqlServerOnAzureVM(String, String, String, HighWaterMarkChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection and deletion detection enabled.

Validate()

Validate the object.

Applies to