DataPathComputeBinding 類別

設定 在計算目標上提供所 DataPath 定義資料的方式。

DataPath 組態會指出資料在計算目標上的使用方式、上傳或掛接的資料,以及是否應該覆寫資料。

初始化 DataPathComputeBinding。

繼承
builtins.object
DataPathComputeBinding

建構函式

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

參數

mode
str
預設值: mount

資料參考上的作業。 支援 「掛接」和「下載」。

path_on_compute
str
預設值: None

資料參考之計算目標上的路徑。

overwrite
bool
預設值: False

指出是否要覆寫現有的資料。

mode
str
必要

資料參考上的作業。 支援 「掛接」和「下載」。

path_on_compute
str
必要

資料參考之計算目標上的路徑。

overwrite
bool
必要

指出是否要覆寫現有的資料。

方法

create_data_reference

從 DataPath 和這個 DataPathComputeBinding 建立 DataReference。

create_from_data_reference

從 DataReference 建立 DataPathComputeBinding。

create_data_reference

從 DataPath 和這個 DataPathComputeBinding 建立 DataReference。

create_data_reference(data_reference_name=None, datapath=None)

參數

data_reference_name
str
預設值: None

要建立的資料參考名稱。

datapath
DataPath
預設值: None

[必要]用來建立資料參考的資料路徑。

傳回

DataReference 物件。

傳回類型

create_from_data_reference

從 DataReference 建立 DataPathComputeBinding。

static create_from_data_reference(data_reference)

參數

data_reference
DataReference
必要

[必要]用來建立資料路徑計算系結的資料參考。

傳回

DataPathComputeBinding 物件。

傳回類型