DatacacheStore 类

注意

这是一个试验性的类,随时可能更改。 有关详细信息,请参阅 https://aka.ms/azuremlexperimental

表示通过 Azure 机器学习存储帐户的存储抽象。

DatacacheStore 附加到工作区,用于存储与基础 Datacache 解决方案相关的信息。 目前,仅支持分区 Blob 解决方案。 Datacachestore 定义可用于缓存的各种 Blob 数据存储。

使用此类可以执行管理操作,包括注册、列出、获取和更新Datacachestore。 每个服务的 DatacacheStore 都是使用此类的 register* 方法创建的。

按名称获取 datacachestore。 此调用将向 datacache 服务发出请求。

继承
builtins.object
DatacacheStore

构造函数

DatacacheStore(workspace, name, **kwargs)

参数

workspace
Workspace
必需

工作区。

name
str
必需

datacachestore 的名称

方法

get_by_name

按名称获取 datacachestore。

list

列出工作区中的所有 datacachestore。

register

将 datacachestore 注册到工作区。

update

更新 datacachestore 的 datacache 策略。

get_by_name

按名称获取 datacachestore。

static get_by_name(workspace, name)

参数

workspace
Workspace
必需

工作区。

name
str
必需

datacachestore 的名称

返回

该名称的相应数据存储。

返回类型

list

列出工作区中的所有 datacachestore。

static list(workspace)

参数

workspace
Workspace
必需

工作区。

返回

DatacacheStore 对象的列表。

返回类型

register

将 datacachestore 注册到工作区。

static register(workspace, name, data_store_list, data_management_compute_target, data_management_compute_auth, ttl_in_days, ttl_expiration_policy, default_replica_count, data_factory_resource_id=None, **kwargs)

参数

workspace
Workspace
必需

工作区。

name
Union[list(str), list(<xref:AbstractDataStore>)]
必需

datacachestore 的名称。

data_store_list
必需

基础数据存储的列表。

data_management_compute_target
ComputeTarget
必需

数据管理计算。

data_management_compute_auth
ServicePrincipalAuthentication
必需

用于将数据管理作业提交到数据管理计算的服务主体。

ttl_in_days
<xref:Int>
必需

生存时间(以天表示)。

ttl_expiration_policy
str, <xref:one> of [<xref:"LastAccessTime">, <xref:"CreationTime">]
必需

TTL 过期策略。

default_replica_count
<xref:Int>
必需

要冻结的默认副本数。

data_factory_resource_id
<xref:str.>
默认值: None

用于冻结的 ADF 的资源 ID。

返回

DatacacheStore 对象

返回类型

update

更新 datacachestore 的 datacache 策略。

static update(workspace, name, data_management_compute_target=None, data_management_compute_auth=None, ttl_in_days=None, ttl_expiration_policy=None, default_replica_count=None, data_factory_resource_id=None, **kwargs)

参数

workspace
Workspace
必需

工作区。

name
str
必需

datacachestore 的名称。

data_management_compute_target
ComputeTarget
默认值: None

数据管理计算。

data_management_compute_auth
ServicePrincipalAuthentication
默认值: None

用于将数据管理作业提交到数据管理计算的服务主体。

ttl_in_days
<xref:Int>
默认值: None

生存时间(以天表示)。

ttl_expiration_policy
str, <xref:one> of [<xref:"LastAccessTime">, <xref:"CreationTime">]
默认值: None

TTL 过期策略。

default_replica_count
<xref:Int>
默认值: None

要冻结的默认副本数。

data_factory_resource_id
<xref:str.>
默认值: None

用于冻结的 ADF 的资源 ID。

返回

DatacacheStore 对象

返回类型

属性

data_factory_resource_id

返回可用于冻结的 Azure 数据工厂的资源 ID。

返回

用于冻结的 ADF 的资源 ID。

返回类型

str

data_management_compute_target

返回用于冻结的数据管理计算的名称。

返回

数据管理计算。

返回类型

str

data_store_list

返回 datacachestore 的基础数据存储列表。

返回

要用作 datacachestore 的数据存储列表。

返回类型

list(<xref:AbstractDataStore>)

default_replica_count

返回冻结期间的默认副本数。

返回

要冻结的默认副本数。

返回类型

<xref:Int>

name

返回 datacache 存储的名称。

返回

DatacacheStore 名称。

返回类型

str

ttl_expiration_policy

返回生存时间过期策略。

返回

TTL 过期策略。

返回类型

str

ttl_in_days

返回生存时间策略。

返回

生存时间(以天表示)。

返回类型

<xref:Int>

workspace

返回工作区信息。

返回

工作区。

返回类型