你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Usage Class

AzureML resource usage.

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
Union[<xref:PathLike>, str, IO[AnyStr]]

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.