Deployment Class
Endpoint Deployment base class.
Endpoint Deployment base class.
Constructor of Endpoint Deployment base class.
- Inheritance
-
azure.ai.ml.entities._resource.ResourceDeploymentazure.ai.ml.entities._mixins.RestTranslatableMixinDeployment
Constructor
Deployment(name: str | None = None, *, endpoint_name: str | None = None, description: str | None = None, tags: Dict[str, Any] | None = None, properties: Dict[str, Any] | None = None, model: str | Model | None = None, code_configuration: CodeConfiguration | None = None, environment: str | Environment | None = None, environment_variables: Dict[str, str] | None = None, code_path: PathLike | str | None = None, scoring_script: PathLike | str | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
name
|
Name of the deployment resource, defaults to None Default value: None
|
name
Required
|
Name of the deployment resource, defaults to None |
Keyword-Only Parameters
Name | Description |
---|---|
endpoint_name
|
Name of the Endpoint resource, defaults to None |
description
|
Description of the deployment resource, defaults to None |
tags
|
Tag dictionary. Tags can be added, removed, and updated, defaults to None |
properties
|
The asset property dictionary, defaults to None |
model
|
The Model entity, defaults to None |
code_configuration
|
Code Configuration, defaults to None |
environment
|
The Environment entity, defaults to None |
environment_variables
|
Environment variables that will be set in deployment, defaults to None |
code_path
|
Folder path to local code assets. Equivalent to code_configuration.code.path , defaults to None |
scoring_script
|
Scoring script name. Equivalent to code_configuration.code.scoring_script , defaults to None |
endpoint_name
|
Name of the Endpoint resource, defaults to None |
description
|
Description of the deployment resource, defaults to None |
tags
|
Tag dictionary. Tags can be added, removed, and updated, defaults to None |
properties
|
The asset property dictionary, defaults to None |
model
|
The Model entity, defaults to None |
code_configuration
|
Code Configuration, defaults to None |
environment
|
The Environment entity, defaults to None |
environment_variables
|
Environment variables that will be set in deployment, defaults to None |
code_path
|
Folder path to local code assets. Equivalent to code_configuration.code.path , defaults to None |
scoring_script
|
Scoring script name. Equivalent to code_configuration.code.scoring_script , defaults to None |
Methods
dump |
Dump the deployment content into a file in yaml format. |
dump
Dump the deployment content into a file in yaml format.
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
dest
Required
|
The destination to receive this deployment's content. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable. |
Attributes
base_path
code_path
The code directory containing the scoring script.
Returns
Type | Description |
---|---|
creation_context
The creation context of the resource.
Returns
Type | Description |
---|---|
The creation metadata for the resource. |
id
The resource ID.
Returns
Type | Description |
---|---|
The global ID of the resource, an Azure Resource Manager (ARM) ID. |
scoring_script
The scoring script file path relative to the code directory.
Returns
Type | Description |
---|---|
type
Azure SDK for Python