LocationsOperations Class

LocationsOperations 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
LocationsOperations

Constructor

LocationsOperations(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

Check the cluster name is available or not.

get_azure_async_operation_status

Get the async operation status.

get_capabilities

Gets the capabilities for the specified location.

list_billing_specs

Lists the billingSpecs for the specified subscription and location.

list_usages

Lists the usages for the specified location.

validate_cluster_create_request

Validate the cluster create request spec is valid or not.

check_name_availability

Check the cluster name is available or not.

check_name_availability(location: str, parameters: _models.NameAvailabilityCheckRequestParameters, **kwargs: Any) -> _models.NameAvailabilityCheckResult

Parameters

location
str
Required

The Azure location (region) for which to make the request.

cls
callable

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

Returns

NameAvailabilityCheckResult, or the result of cls(response)

Return type

Exceptions

get_azure_async_operation_status

Get the async operation status.

get_azure_async_operation_status(location: str, operation_id: str, **kwargs: Any) -> _models.AsyncOperationResult

Parameters

location
str
Required

The Azure location (region) for which to make the request.

operation_id
str
Required

The long running operation id.

cls
callable

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

Returns

AsyncOperationResult, or the result of cls(response)

Return type

Exceptions

get_capabilities

Gets the capabilities for the specified location.

get_capabilities(location: str, **kwargs: Any) -> _models.CapabilitiesResult

Parameters

location
str
Required

The Azure location (region) for which to make the request.

cls
callable

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

Returns

CapabilitiesResult, or the result of cls(response)

Return type

Exceptions

list_billing_specs

Lists the billingSpecs for the specified subscription and location.

list_billing_specs(location: str, **kwargs: Any) -> _models.BillingResponseListResult

Parameters

location
str
Required

The Azure location (region) for which to make the request.

cls
callable

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

Returns

BillingResponseListResult, or the result of cls(response)

Return type

Exceptions

list_usages

Lists the usages for the specified location.

list_usages(location: str, **kwargs: Any) -> _models.UsagesListResult

Parameters

location
str
Required

The Azure location (region) for which to make the request.

cls
callable

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

Returns

UsagesListResult, or the result of cls(response)

Return type

Exceptions

validate_cluster_create_request

Validate the cluster create request spec is valid or not.

validate_cluster_create_request(location: str, parameters: _models.ClusterCreateRequestValidationParameters, **kwargs: Any) -> _models.ClusterCreateValidationResult

Parameters

location
str
Required

The Azure location (region) for which to make the request.

cls
callable

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

Returns

ClusterCreateValidationResult, or the result of cls(response)

Return type

Exceptions

Attributes

models

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