你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LocationOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:location> attribute.
Constructor
LocationOperations(*args, **kwargs)
Methods
check_name_availability |
Checks whether the Batch account name is available in the specified region. |
get_quotas |
Gets the Batch service quotas for the specified subscription at the given location. |
list_supported_virtual_machine_skus |
Gets the list of Batch supported Virtual Machine VM sizes available at the given location. |
check_name_availability
Checks whether the Batch account name is available in the specified region.
check_name_availability(location_name: str, parameters: _models.CheckNameAvailabilityParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.CheckNameAvailabilityResult
Parameters
Name | Description |
---|---|
location_name
Required
|
The desired region for the name check. Required. |
parameters
Required
|
Properties needed to check the availability of a name. Is either a CheckNameAvailabilityParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
CheckNameAvailabilityResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get_quotas
Gets the Batch service quotas for the specified subscription at the given location.
get_quotas(location_name: str, **kwargs: Any) -> BatchLocationQuota
Parameters
Name | Description |
---|---|
location_name
Required
|
The region for which to retrieve Batch service quotas. Required. |
Returns
Type | Description |
---|---|
BatchLocationQuota or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_supported_virtual_machine_skus
Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
list_supported_virtual_machine_skus(location_name: str, maxresults: int | None = None, filter: str | None = None, **kwargs: Any) -> Iterable[SupportedSku]
Parameters
Name | Description |
---|---|
location_name
Required
|
The region for which to retrieve Batch service supported SKUs. Required. |
maxresults
|
The maximum number of items to return in the response. Default value is None. Default value: None
|
filter
|
OData filter expression. Valid properties for filtering are "familyName". Default value is None. Default value: None
|
Returns
Type | Description |
---|---|
An iterator like instance of either SupportedSku or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.batch.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv74\\Lib\\site-packages\\azure\\mgmt\\batch\\models\\__init__.py'>