LocationOperations Class

LocationOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
LocationOperations

Constructor

LocationOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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_cloud_service_skus

Gets the list of Batch supported Cloud Service VM sizes available 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.

async check_name_availability(location_name: str, parameters: azure.mgmt.batch.models._models_py3.CheckNameAvailabilityParameters, **kwargs: Any) -> azure.mgmt.batch.models._models_py3.CheckNameAvailabilityResult

Parameters

location_name
str
Required

The desired region for the name check.

parameters
CheckNameAvailabilityParameters
Required

Properties needed to check the availability of a name.

cls
callable

A custom type or function that will be passed the direct response

Returns

CheckNameAvailabilityResult, or the result of cls(response)

Return type

Exceptions

get_quotas

Gets the Batch service quotas for the specified subscription at the given location.

async get_quotas(location_name: str, **kwargs: Any) -> azure.mgmt.batch.models._models_py3.BatchLocationQuota

Parameters

location_name
str
Required

The region for which to retrieve Batch service quotas.

cls
callable

A custom type or function that will be passed the direct response

Returns

BatchLocationQuota, or the result of cls(response)

Return type

Exceptions

list_supported_cloud_service_skus

Gets the list of Batch supported Cloud Service VM sizes available at the given location.

list_supported_cloud_service_skus(location_name: str, maxresults: Optional[int] = None, filter: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.batch.models._models_py3.SupportedSkusResult]

Parameters

location_name
str
Required

The region for which to retrieve Batch service supported SKUs.

maxresults
int
Required

The maximum number of items to return in the response. Default value is None.

filter
str
Required

OData filter expression. Valid properties for filtering are "familyName". Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either SupportedSkusResult or the result of cls(response)

Return type

Exceptions

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: Optional[int] = None, filter: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.batch.models._models_py3.SupportedSkusResult]

Parameters

location_name
str
Required

The region for which to retrieve Batch service supported SKUs.

maxresults
int
Required

The maximum number of items to return in the response. Default value is None.

filter
str
Required

OData filter expression. Valid properties for filtering are "familyName". Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either SupportedSkusResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.batch.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\batch\\models\\__init__.py'>