Class AzureDataLakeStorageGen2DataFeedSource
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedSource
com.azure.ai.metricsadvisor.administration.models.AzureDataLakeStorageGen2DataFeedSource
The AzureDataLakeStorageGen2DataFeedSource model.
-
Method Summary
Modifier and TypeMethodDescriptionfromBasicCredential
(String accountName, String accountKey, String fileSystemName, String directoryTemplate, String fileTemplate) Create a AzureDataLakeStorageGen2DataFeedSource with the givenaccountKey
for authentication.fromServicePrincipalCredential
(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId) Create a AzureDataLakeStorageGen2DataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipal
, the entity contains Service Principal to access the Data Lake storage.fromServicePrincipalInKeyVaultCredential
(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId) Create a AzureDataLakeStorageGen2DataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipalInKeyVault
, the entity contains details of the KeyVault holding the Service Principal to access the Data Lake storage.fromSharedKeyCredential
(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId) Create a AzureDataLakeStorageGen2DataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceSqlServerConnectionString
that contains the shared access key.Get the the account name for the AzureDataLakeStorageGen2DataFeedSource.Gets the authentication type to access the data source.Gets the id of thecredential resource
to authenticate the data source.Get the directory template.Get the file system name or the container name.Get the file template.
-
Method Details
-
fromBasicCredential
public static AzureDataLakeStorageGen2DataFeedSource fromBasicCredential(String accountName, String accountKey, String fileSystemName, String directoryTemplate, String fileTemplate) Create a AzureDataLakeStorageGen2DataFeedSource with the givenaccountKey
for authentication.- Parameters:
accountName
- the name of the storage account.accountKey
- the key of the storage account.fileSystemName
- the file system name.directoryTemplate
- the directory template of the storage account.fileTemplate
- the file template.- Returns:
- The AzureDataLakeStorageGen2DataFeedSource.
-
fromServicePrincipalCredential
public static AzureDataLakeStorageGen2DataFeedSource fromServicePrincipalCredential(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId) Create a AzureDataLakeStorageGen2DataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipal
, the entity contains Service Principal to access the Data Lake storage.- Parameters:
accountName
- the name of the storage account.fileSystemName
- the file system name.directoryTemplate
- the directory template of the storage account.fileTemplate
- the file template.credentialId
- The unique id of a credential entity of typeDataSourceServicePrincipal
.- Returns:
- The AzureDataLakeStorageGen2DataFeedSource.
-
fromServicePrincipalInKeyVaultCredential
public static AzureDataLakeStorageGen2DataFeedSource fromServicePrincipalInKeyVaultCredential(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId) Create a AzureDataLakeStorageGen2DataFeedSource with thecredentialId
identifying a credential entity of typeDataSourceServicePrincipalInKeyVault
, the entity contains details of the KeyVault holding the Service Principal to access the Data Lake storage.- Parameters:
accountName
- the name of the storage account.fileSystemName
- the file system name.directoryTemplate
- the directory template of the storage account.fileTemplate
- the file template.credentialId
- The unique id of a credential entity of typeDataSourceServicePrincipalInKeyVault
- Returns:
- The AzureDataLakeStorageGen2DataFeedSource.
-
getAccountName
Get the the account name for the AzureDataLakeStorageGen2DataFeedSource.- Returns:
- the accountName value.
-
getFileSystemName
Get the file system name or the container name.- Returns:
- the fileSystemName value.
-
getDirectoryTemplate
Get the directory template.- Returns:
- the directoryTemplate value.
-
getFileTemplate
Get the file template.- Returns:
- the fileTemplate value.
-
getCredentialId
Gets the id of thecredential resource
to authenticate the data source.- Returns:
- The credential resource id.
-
getAuthenticationType
Gets the authentication type to access the data source.- Returns:
- The authentication type.
-