Usage Class
AzureML resource usage.
- Inheritance
-
azure.ai.ml.entities._mixins.RestTranslatableMixinUsage
Constructor
Usage(id: str | None = None, aml_workspace_location: str | None = None, type: str | None = None, unit: str | UsageUnit | None = None, current_value: int | None = None, limit: int | None = None, name: UsageName | None = None)
Parameters
Name | Description |
---|---|
id
|
The resource ID. default value: None
|
aml_workspace_location
|
The region of the AzureML workspace specified by the ID. default value: None
|
type
|
The resource type. default value: None
|
unit
|
The unit of measurement for usage. Accepted value is "Count". default value: None
|
current_value
|
The current usage of the resource. default value: None
|
limit
|
The maximum permitted usage for the resource. default value: None
|
name
|
The name of the usage type. default value: None
|
Methods
dump |
Dumps the job content into a file in YAML format. |
dump
Dumps the job content into a file in YAML format.
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
dest
Required
|
The local path or file stream to write the YAML content to. If dest is a file path, a new file will be created. If dest is an open file, the file will be written to directly. |
Exceptions
Type | Description |
---|---|
FileExistsError if dest is a file path and the file already exists.
|
|
IOError if dest is an open file and the file is not writable.
|
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for