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.
|
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python