DataPathComputeBinding Class

Configure how data defined by DataPath is made available on a compute target.

DataPath configuration indicates how the data will be used on the compute target, that is uploaded or mounted, as well as if the data should be overwritten.

Initialize DataPathComputeBinding.

Inheritance
builtins.object
DataPathComputeBinding

Constructor

DataPathComputeBinding(mode='mount', path_on_compute=None, overwrite=False)

Parameters

mode
str
default value: mount

The operation on the data reference. "mount" and "download" are supported.

path_on_compute
str
default value: None

The path on the compute target for the data reference.

overwrite
bool
default value: False

Indicates whether to overwrite existing data.

mode
str
Required

The operation on the data reference. "mount" and "download" are supported.

path_on_compute
str
Required

The path on the compute target for the data reference.

overwrite
bool
Required

Indicates whether to overwrite existing data.

Methods

create_data_reference

Create a DataReference from a DataPath and this DataPathComputeBinding.

create_from_data_reference

Create a DataPathComputeBinding from a DataReference.

create_data_reference

Create a DataReference from a DataPath and this DataPathComputeBinding.

create_data_reference(data_reference_name=None, datapath=None)

Parameters

data_reference_name
str
default value: None

The name of the data reference to create.

datapath
DataPath
default value: None

[Required] The data path to use to create the data reference.

Returns

A DataReference object.

Return type

create_from_data_reference

Create a DataPathComputeBinding from a DataReference.

static create_from_data_reference(data_reference)

Parameters

data_reference
DataReference
Required

[Required] The data reference to use to create the data path compute binding.

Returns

A DataPathComputeBinding object.

Return type