次の方法で共有


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.

Constructor

LocationsOperations(client, config, serializer, deserializer)

Parameters

Name Description
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

Name Description
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

Name Description
location
Required
str

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

parameters
Required

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

NameAvailabilityCheckResult, or the result of cls(response)

Exceptions

Type Description

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

Name Description
location
Required
str

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

operation_id
Required
str

The long running operation id.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

AsyncOperationResult, or the result of cls(response)

Exceptions

Type Description

get_capabilities

Gets the capabilities for the specified location.

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

Parameters

Name Description
location
Required
str

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

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

CapabilitiesResult, or the result of cls(response)

Exceptions

Type Description

list_billing_specs

Lists the billingSpecs for the specified subscription and location.

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

Parameters

Name Description
location
Required
str

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

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

BillingResponseListResult, or the result of cls(response)

Exceptions

Type Description

list_usages

Lists the usages for the specified location.

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

Parameters

Name Description
location
Required
str

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

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

UsagesListResult, or the result of cls(response)

Exceptions

Type Description

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

Name Description
location
Required
str

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

parameters
Required

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

ClusterCreateValidationResult, or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.hdinsight.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv131\\Lib\\site-packages\\azure\\mgmt\\hdinsight\\models\\__init__.py'>