Component Class
Base class for component version, used to define a component. Can't be instantiated directly.
- Inheritance
-
azure.ai.ml.entities._assets.asset.AssetComponentazure.ai.ml.entities._validation.remote.RemoteValidatableMixinComponentazure.ai.ml.entities._mixins.TelemetryMixinComponentazure.ai.ml.entities._mixins.YamlTranslatableMixinComponentazure.ai.ml.entities._validation.path_aware_schema.PathAwareSchemaValidatableMixinComponentazure.ai.ml.entities._mixins.LocalizableMixinComponent
Constructor
Component(*, name: str | None = None, version: str | None = None, id: str | None = None, type: str | None = None, description: str | None = None, tags: Dict | None = None, properties: Dict | None = None, display_name: str | None = None, is_deterministic: bool = True, inputs: Dict | None = None, outputs: Dict | None = None, yaml_str: str | None = None, _schema: str | None = None, creation_context: SystemData | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
name
Required
|
Name of the resource. |
version
Required
|
Version of the resource. |
id
Required
|
Global ID of the resource, Azure Resource Manager ID. |
type
Required
|
Type of the command, supported is 'command'. |
description
Required
|
Description of the resource. |
tags
Required
|
Tag dictionary. Tags can be added, removed, and updated. |
properties
Required
|
Internal use only. |
display_name
Required
|
Display name of the component. |
is_deterministic
Required
|
Whether the component is deterministic. Defaults to True. |
inputs
Required
|
Inputs of the component. |
outputs
Required
|
Outputs of the component. |
yaml_str
Required
|
The YAML string of the component. |
_schema
Required
|
Schema of the component. |
creation_context
Required
|
Creation metadata of the component. |
kwargs
Required
|
Additional parameters for the component. |
Keyword-Only Parameters
Name | Description |
---|---|
name
Required
|
|
version
Required
|
|
id
Required
|
|
type
Required
|
|
description
Required
|
|
tags
Required
|
|
properties
Required
|
|
display_name
Required
|
|
is_deterministic
|
Default value: True
|
inputs
Required
|
|
outputs
Required
|
|
yaml_str
Required
|
|
_schema
Required
|
|
creation_context
Required
|
|
Methods
dump |
Dump the component content into a file in yaml format. |
dump
Dump the component 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 component'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
creation_context
The creation context of the resource.
Returns
Type | Description |
---|---|
The creation metadata for the resource. |
display_name
id
The resource ID.
Returns
Type | Description |
---|---|
The global ID of the resource, an Azure Resource Manager (ARM) ID. |
inputs
is_deterministic
Whether the component is deterministic.
Returns
Type | Description |
---|---|
Whether the component is deterministic |
outputs
type
version
Azure SDK for Python