Class AzureDataLakeStorageGen2DataFeedSource

java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedSource
com.azure.ai.metricsadvisor.administration.models.AzureDataLakeStorageGen2DataFeedSource

public final class AzureDataLakeStorageGen2DataFeedSource extends DataFeedSource
The AzureDataLakeStorageGen2DataFeedSource model.
  • Method Details

    • fromBasicCredential

      public static AzureDataLakeStorageGen2DataFeedSource fromBasicCredential(String accountName, String accountKey, String fileSystemName, String directoryTemplate, String fileTemplate)
      Create a AzureDataLakeStorageGen2DataFeedSource with the given accountKey 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.
    • fromSharedKeyCredential

      public static AzureDataLakeStorageGen2DataFeedSource fromSharedKeyCredential(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId)
      Create a AzureDataLakeStorageGen2DataFeedSource with the credentialId identifying a credential entity of type DataSourceSqlServerConnectionString that contains the shared access key.
      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 type DataSourceDataLakeGen2SharedKey.
      Returns:
      The AzureDataLakeStorageGen2DataFeedSource.
    • fromServicePrincipalCredential

      public static AzureDataLakeStorageGen2DataFeedSource fromServicePrincipalCredential(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId)
      Create a AzureDataLakeStorageGen2DataFeedSource with the credentialId identifying a credential entity of type DataSourceServicePrincipal, 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 type DataSourceServicePrincipal.
      Returns:
      The AzureDataLakeStorageGen2DataFeedSource.
    • fromServicePrincipalInKeyVaultCredential

      public static AzureDataLakeStorageGen2DataFeedSource fromServicePrincipalInKeyVaultCredential(String accountName, String fileSystemName, String directoryTemplate, String fileTemplate, String credentialId)
      Create a AzureDataLakeStorageGen2DataFeedSource with the credentialId identifying a credential entity of type DataSourceServicePrincipalInKeyVault, 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 type DataSourceServicePrincipalInKeyVault
      Returns:
      The AzureDataLakeStorageGen2DataFeedSource.
    • getAccountName

      public String getAccountName()
      Get the the account name for the AzureDataLakeStorageGen2DataFeedSource.
      Returns:
      the accountName value.
    • getFileSystemName

      public String getFileSystemName()
      Get the file system name or the container name.
      Returns:
      the fileSystemName value.
    • getDirectoryTemplate

      public String getDirectoryTemplate()
      Get the directory template.
      Returns:
      the directoryTemplate value.
    • getFileTemplate

      public String getFileTemplate()
      Get the file template.
      Returns:
      the fileTemplate value.
    • getCredentialId

      public String getCredentialId()
      Gets the id of the credential resource to authenticate the data source.
      Returns:
      The credential resource id.
    • getAuthenticationType

      public DataSourceAuthenticationType getAuthenticationType()
      Gets the authentication type to access the data source.
      Returns:
      The authentication type.