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.
Constructor
DataPathComputeBinding(mode='mount', path_on_compute=None, overwrite=False)
Parameters
| Name | Description |
|---|---|
|
mode
|
The operation on the data reference. "mount" and "download" are supported. Default value: mount
|
|
path_on_compute
|
The path on the compute target for the data reference. Default value: None
|
|
overwrite
|
Indicates whether to overwrite existing data. Default value: False
|
|
mode
Required
|
The operation on the data reference. "mount" and "download" are supported. |
|
path_on_compute
Required
|
The path on the compute target for the data reference. |
|
overwrite
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
| Name | Description |
|---|---|
|
data_reference_name
|
The name of the data reference to create. Default value: None
|
|
datapath
|
[Required] The data path to use to create the data reference. Default value: None
|
Returns
| Type | Description |
|---|---|
|
A DataReference object. |
create_from_data_reference
Create a DataPathComputeBinding from a DataReference.
static create_from_data_reference(data_reference)
Parameters
| Name | Description |
|---|---|
|
data_reference
Required
|
[Required] The data reference to use to create the data path compute binding. |
Returns
| Type | Description |
|---|---|
|
A DataPathComputeBinding object. |