DatastoreOperations 클래스
데이터 저장소에서 작업을 수행하기 위한 클라이언트를 나타냅니다.
이 클래스를 직접 인스턴스화해서는 안 됩니다. 대신 MLClient를 만들고 MLClient.datastores 속성을 통해 이 클라이언트를 사용해야 합니다.
- 상속
-
azure.ai.ml._scope_dependent_operations._ScopeDependentOperationsDatastoreOperations
생성자
DatastoreOperations(operation_scope: OperationScope, operation_config: OperationConfig, serviceclient_2023_04_01_preview: AzureMachineLearningWorkspaces, **kwargs: Dict)
매개 변수
- operation_scope
- <xref:azure.ai.ml._scope_dependent_operations.OperationScope>
MLClient 개체의 작업 클래스에 대한 범위 변수입니다.
- operation_config
- <xref:azure.ai.ml._scope_dependent_operations.OperationConfig>
MLClient 개체의 작업 클래스에 대한 일반적인 구성입니다.
- serviceclient_2022_10_01
- <xref:<xref:azure.ai.ml._restclient.v2022_10_01._azure_machine_learning_workspaces. AzureMachineLearningWorkspaces>>
최종 사용자가 Azure Machine Learning 작업 영역 리소스에서 작동할 수 있도록 하는 서비스 클라이언트입니다.
- serviceclient_2023_04_01_preview
메서드
create_or_update |
전달된 데이터 저장소를 작업 영역에 연결하거나 이미 있는 경우 데이터 저장소를 업데이트합니다. |
delete |
작업 영역에서 지정된 이름의 데이터 저장소 참조를 삭제합니다. 이 메서드는 데이터 저장소의 실제 데이터 저장소 또는 기본 데이터를 삭제하지 않습니다. |
get |
지정된 이름으로 참조되는 데이터 저장소에 대한 정보를 반환합니다. |
get_default |
작업 영역의 기본 데이터 저장소를 반환합니다. |
list |
작업 영역 내의 모든 데이터 저장소 및 관련 정보를 나열합니다. |
create_or_update
전달된 데이터 저장소를 작업 영역에 연결하거나 이미 있는 경우 데이터 저장소를 업데이트합니다.
create_or_update(datastore: Datastore) -> Datastore
매개 변수
반환
연결된 데이터 저장소입니다.
반환 형식
예제
데이터 저장소 예제를 만듭니다.
from azure.ai.ml.entities import AzureBlobDatastore
datastore_example = AzureBlobDatastore(
name="azure_blob_datastore",
account_name="sdkvnextclidcdnrc7zb7xyy", # cspell:disable-line
container_name="testblob",
)
ml_client.datastores.create_or_update(datastore_example)
delete
작업 영역에서 지정된 이름의 데이터 저장소 참조를 삭제합니다. 이 메서드는 데이터 저장소의 실제 데이터 저장소 또는 기본 데이터를 삭제하지 않습니다.
delete(name: str) -> None
매개 변수
예제
데이터 저장소 예제를 삭제합니다.
ml_client.datastores.delete("azure_blob_datastore")
get
지정된 이름으로 참조되는 데이터 저장소에 대한 정보를 반환합니다.
get(name: str, *, include_secrets: bool = False) -> Datastore
매개 변수
- include_secrets
- bool
반환된 데이터 저장소에 데이터 저장소 비밀 포함, 기본값은 False
반환
지정된 이름을 가진 데이터 저장소입니다.
반환 형식
예제
데이터 저장소 예제를 가져옵니다.
ml_client.datastores.get("azure_blob_datastore")
get_default
작업 영역의 기본 데이터 저장소를 반환합니다.
get_default(*, include_secrets: bool = False) -> Datastore
매개 변수
- include_secrets
- bool
반환된 데이터 저장소에 데이터 저장소 비밀 포함, 기본값은 False
반환
기본 데이터 저장소입니다.
반환 형식
예제
기본 데이터 저장소 예제를 가져옵니다.
ml_client.datastores.get_default()
list
Azure SDK for Python
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기