LocationsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:locations> attribute.
Constructor
LocationsOperations(*args, **kwargs)
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, *, content_type: str = 'application/json', **kwargs: Any) -> _models.NameAvailabilityCheckResult
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The Azure location (region) for which to make the request. Required. |
|
parameters
Required
|
Is either a NameAvailabilityCheckRequestParameters type or a IO[bytes] type. Required. |
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) -> AsyncOperationResult
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The Azure location (region) for which to make the request. Required. |
|
operation_id
Required
|
The long running operation id. Required. |
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) -> CapabilitiesResult
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The Azure location (region) for which to make the request. Required. |
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) -> BillingResponseListResult
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The Azure location (region) for which to make the request. Required. |
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) -> UsagesListResult
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The Azure location (region) for which to make the request. Required. |
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, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ClusterCreateValidationResult
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The Azure location (region) for which to make the request. Required. |
|
parameters
Required
|
Is either a ClusterCreateRequestValidationParameters type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
ClusterCreateValidationResult or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.hdinsight.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv145\\Lib\\site-packages\\azure\\mgmt\\hdinsight\\models\\__init__.py'>