Compute Class
Base class for compute resources.
This class should not be instantiated directly. Instead, use one of its subclasses.
- Inheritance
-
azure.ai.ml.entities._resource.ResourceComputeazure.ai.ml.entities._mixins.RestTranslatableMixinCompute
Constructor
Compute(name: str, location: str | None = None, description: str | None = None, resource_id: str | None = None, tags: Dict | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
type
Required
|
The compute type. Accepted values are "amlcompute", "computeinstance", "virtualmachine", "kubernetes", and "synapsespark". |
name
Required
|
Name of the compute resource. |
location
|
The resource location. Defaults to workspace location. Default value: None
|
description
|
Description of the resource. Defaults to None. Default value: None
|
resource_id
|
ARM resource id of the underlying compute. Defaults to None. Default value: None
|
tags
|
A set of tags. Contains resource tags defined as key/value pairs. Default value: None
|
Methods
dump |
Dump the compute content into a file in yaml format. |
dump
Dump the compute 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 compute'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
created_on
The compute resource creation timestamp.
Returns
Type | Description |
---|---|
The compute resource creation timestamp. |
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. |
provisioning_errors
The compute resource provisioning errors.
Returns
Type | Description |
---|---|
The compute resource provisioning errors. |
provisioning_state
The compute resource's provisioning state.
Returns
Type | Description |
---|---|
The compute resource's provisioning state. |
type
Azure SDK for Python