WorkspaceConnectionsOperations 類別
WorkspaceConnectionsOperations。
您不應該直接具現化此類別。 相反地,您應該建立 MLClient 實例,為您具現化它,並將它附加為屬性。
- 繼承
-
azure.ai.ml._scope_dependent_operations._ScopeDependentOperationsWorkspaceConnectionsOperations
建構函式
WorkspaceConnectionsOperations(operation_scope: azure.ai.ml._scope_dependent_operations.OperationScope, operation_config: azure.ai.ml._scope_dependent_operations.OperationConfig, service_client: azure.ai.ml._restclient.v2022_05_01._azure_machine_learning_workspaces.AzureMachineLearningWorkspaces, all_operations: azure.ai.ml._scope_dependent_operations.OperationsContainer, credentials: Optional[azure.core.credentials.TokenCredential] = None, **kwargs: Dict)
參數
- operation_scope
- operation_config
- service_client
- all_operations
- credentials
預設值: None
方法
create_or_update |
建立或更新工作區連線。 |
delete |
刪除工作區連線。 |
get |
依名稱取得工作區連線。 |
list |
列出工作區中的所有環境資產。 |
create_or_update
建立或更新工作區連線。
create_or_update(workspace_connection, **kwargs) -> azure.ai.ml.entities._workspace.connections.workspace_connection.WorkspaceConnection
參數
傳回
已建立或更新工作區連線。
傳回類型
delete
get
依名稱取得工作區連線。
get(name: str, **kwargs: Dict) -> azure.ai.ml.entities._workspace.connections.workspace_connection.WorkspaceConnection
參數
傳回
具有所提供名稱的工作區連線。
傳回類型
list
列出工作區中的所有環境資產。
list(connection_type=None) -> Iterable[azure.ai.ml.entities._workspace.connections.workspace_connection.WorkspaceConnection]
參數
傳回
反覆運算器,例如工作區連線物件的實例
傳回類型
<xref:Iterable>[WorkspaceConnection]
意見反應
提交並檢視相關的意見反應