DataPathComputeBinding 클래스
컴퓨팅 대상에서 정의된 DataPath 데이터를 사용할 수 있는 방법을 구성합니다.
DataPath 구성은 업로드 또는 탑재된 컴퓨팅 대상에서 데이터를 사용하는 방법과 데이터를 덮어써야 하는 경우를 나타냅니다.
DataPathComputeBinding을 초기화합니다.
생성자
DataPathComputeBinding(mode='mount', path_on_compute=None, overwrite=False)
매개 변수
| Name | Description |
|---|---|
|
mode
|
데이터 참조에 대한 작업입니다. "mount" 및 "download"가 지원됩니다. Default value: mount
|
|
path_on_compute
|
데이터 참조에 대한 컴퓨팅 대상의 경로입니다. Default value: None
|
|
overwrite
|
기존 데이터를 덮어쓸지 여부를 나타냅니다. Default value: False
|
|
mode
필수
|
데이터 참조에 대한 작업입니다. "mount" 및 "download"가 지원됩니다. |
|
path_on_compute
필수
|
데이터 참조에 대한 컴퓨팅 대상의 경로입니다. |
|
overwrite
필수
|
기존 데이터를 덮어쓸지 여부를 나타냅니다. |
메서드
| 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)
매개 변수
| Name | Description |
|---|---|
|
data_reference_name
|
만들 데이터 참조의 이름입니다. Default value: None
|
|
datapath
|
[필수] 데이터 참조를 만드는 데 사용할 데이터 경로입니다. Default value: None
|
반환
| 형식 | Description |
|---|---|
|
DataReference 개체입니다. |
create_from_data_reference
DataReference에서 DataPathComputeBinding을 만듭니다.
static create_from_data_reference(data_reference)
매개 변수
| Name | Description |
|---|---|
|
data_reference
필수
|
[필수] 데이터 경로 컴퓨팅 바인딩을 만드는 데 사용할 데이터 참조입니다. |
반환
| 형식 | Description |
|---|---|
|
DataPathComputeBinding 개체입니다. |