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 one of the following types: CheckNameAvailabilityParameters, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
CheckNameAvailabilityResult. The CheckNameAvailabilityResult is compatible with MutableMapping |
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. The BatchLocationQuota is compatible with MutableMapping |
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) -> ItemPaged[SupportedSku]
Parameters
| Name | Description |
|---|---|
|
location_name
Required
|
The region for which to retrieve Batch service supported SKUs. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
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 SupportedSku |
Exceptions
| Type | Description |
|---|---|