AzureDataLakeDatastore 类

表示将连接信息保存到 Azure Data Lake Storage 的数据存储。

若要创建将连接信息保存到 Azure Data Lake Storage 的数据存储,请使用 Datastore 类的 register_azure_data_lake 方法。

注意:使用数据存储访问数据时,必须具有访问数据的权限,这取决于在数据存储中注册的凭据。

初始化新的 Azure Data Lake 数据存储。

继承
AzureDataLakeDatastore

构造函数

AzureDataLakeDatastore(workspace, name, store_name, tenant_id, client_id, client_secret, resource_url=None, authority_url=None, subscription_id=None, resource_group=None, service_data_access_auth_identity=None)

参数

workspace
str
必需

此数据存储所属的工作区。

name
str
必需

数据存储名称。

store_name
str
必需

Azure Data Lake 存储名称。

tenant_id
str
必需

服务主体的目录 ID/租户 ID。

client_id
str
必需

服务主体的客户端 ID/应用程序 ID。

client_secret
str
必需

服务主体的机密。

resource_url
str, <xref:optional>
默认值: None

确定将在 Data Lake Store 上执行哪些操作的资源 URL。

authority_url
str, <xref:optional>
默认值: None

用于对用户进行身份验证的颁发机构 URL。

subscription_id
str, <xref:optional>
默认值: None

ADLS 存储所属的订阅 ID。 使用 AzureDataLakeDatastore 作为数据传输目标时,请同时指定 subscription_idresource_group

resource_group
str, <xref:optional>
默认值: None

ADLS 存储所属的资源组。 使用 AzureDataLakeDatastore 作为数据传输目标时,请同时指定 subscription_idresource_group

service_data_access_auth_identity
str 或 <xref:_restclient.models.ServiceDataAccessAuthIdentity>
默认值: None

指示用于验证客户存储的服务数据访问的标识。 可能的值包括:"None"、"WorkspaceSystemAssignedIdentity"、"WorkspaceUserAssignedIdentity"

workspace
str
必需

此数据存储所属的工作区。

name
str
必需

数据存储名称。

store_name
str
必需

Azure Data Lake 存储名称。

tenant_id
str
必需

服务主体的目录 ID/租户 ID。

client_id
str
必需

服务主体的客户端 ID/应用程序 ID。

client_secret
str
必需

服务主体的机密。

resource_url
str, <xref:optional>
必需

确定将在 Data Lake Store 上执行哪些操作的资源 URL。

authority_url
str, <xref:optional>
必需

用于对用户进行身份验证的颁发机构 URL。

subscription_id
str, <xref:optional>
必需

ADLS 存储所属的订阅 ID。 使用 AzureDataLakeDatastore 作为数据传输目标时,请同时指定 subscription_idresource_group

resource_group
str, <xref:optional>
必需

ADLS 存储所属的资源组。 使用 AzureDataLakeDatastore 作为数据传输目标时,请同时指定 subscription_idresource_group

service_data_access_auth_identity
str 或 <xref:_restclient.models.ServiceDataAccessAuthIdentity>
必需

指示用于验证客户存储的服务数据访问的标识。 可能的值包括:"None"、"WorkspaceSystemAssignedIdentity"、"WorkspaceUserAssignedIdentity"

属性

resource_group

返回 ADLS 存储的资源组。

返回

ADLS 存储的资源组

返回类型

str

subscription_id

返回 ADLS 存储的订阅 ID。

返回

ADLS 存储的订阅 ID。

返回类型

str