共用方式為


ModelBatchDeployment 類別

注意

這是實驗性類別,可以隨時變更。 請參閱 https://aka.ms/azuremlexperimental 以取得詳細資訊。

作業定義實體。

繼承
azure.ai.ml.entities._deployment.deployment.Deployment
ModelBatchDeployment

建構函式

ModelBatchDeployment(*, name: str | None, endpoint_name: str | None = None, environment: str | Environment | None = None, properties: Dict[str, str] | None = None, model: str | Model | None = None, description: str | None = None, tags: Dict[str, Any] | None = None, settings: ModelBatchDeploymentSettings | None = None, resources: ResourceConfiguration | None = None, compute: str | None = None, code_configuration: CodeConfiguration | None = None, code_path: str | PathLike | None = None, scoring_script: str | PathLike | None = None, **kwargs)

參數

type
str
必要

作業定義類型。 允許的值為:管線

name
str
必要

作業名稱

job
Union[Job, str]
必要

工作定義

component
Union[Component, str]
必要

元件定義

settings
Dict[str, Any]
必要

工作設定

description
str
必要

作業描述。

tags
Dict[str, Any]
必要

作業標籤

properties
dict[str, str]
必要

資產屬性字典。

方法

dump

以 yaml 格式將部署內容傾印到檔案中。

dump

以 yaml 格式將部署內容傾印到檔案中。

dump(dest: str | PathLike | IO, **kwargs) -> None

參數

dest
Union[PathLike, str, IO[AnyStr]]
必要

接收此部署內容的目的地。 必須是本機檔案的路徑,或是已開啟的檔案資料流程。 如果 dest 是檔案路徑,則會建立新的檔案,並在檔案存在時引發例外狀況。 如果 dest 是開啟的檔案,檔案將直接寫入,如果檔案無法寫入,則會引發例外狀況。

屬性

base_path

資源的基底路徑。

傳回

資源的基底路徑。

傳回類型

str

code_path

creation_context

資源的建立內容。

傳回

資源的建立中繼資料。

傳回類型

id

資源識別碼。

傳回

資源的全域識別碼,Azure Resource Manager (ARM) 識別碼。

傳回類型

provisioning_state

批次部署布建狀態,唯讀。

傳回

批次部署布建狀態。

傳回類型

scoring_script

type