CapacitiesOperations Class
CapacitiesOperations 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.objectCapacitiesOperations
Constructor
CapacitiesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| begin_create |
Provisions the specified Dedicated capacity based on the configuration specified in the request. |
| begin_delete |
Deletes the specified Dedicated capacity. |
| begin_resume |
Resumes operation of the specified Dedicated capacity instance. |
| begin_suspend |
Suspends operation of the specified dedicated capacity instance. |
| begin_update |
Updates the current state of the specified Dedicated capacity. |
| check_name_availability |
Check the name availability in the target location. |
| get_details |
Gets details about the specified dedicated capacity. |
| list |
Lists all the Dedicated capacities for the given subscription. |
| list_by_resource_group |
Gets all the Dedicated capacities for the given resource group. |
| list_skus |
Lists eligible SKUs for PowerBI Dedicated resource provider. |
| list_skus_for_capacity |
Lists eligible SKUs for a PowerBI Dedicated resource. |
begin_create
Provisions the specified Dedicated capacity based on the configuration specified in the request.
async begin_create(resource_group_name: str, dedicated_capacity_name: str, capacity_parameters: azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacity, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacity]
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63.
- capacity_parameters
- DedicatedCapacity
Contains the information used to provision the Dedicated capacity.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either DedicatedCapacity or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes the specified Dedicated capacity.
async begin_delete(resource_group_name: str, dedicated_capacity_name: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_resume
Resumes operation of the specified Dedicated capacity instance.
async begin_resume(resource_group_name: str, dedicated_capacity_name: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_suspend
Suspends operation of the specified dedicated capacity instance.
async begin_suspend(resource_group_name: str, dedicated_capacity_name: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
Updates the current state of the specified Dedicated capacity.
async begin_update(resource_group_name: str, dedicated_capacity_name: str, capacity_update_parameters: azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacityUpdateParameters, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacity]
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.
- capacity_update_parameters
- DedicatedCapacityUpdateParameters
Request object that contains the updated information for the capacity.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either DedicatedCapacity or the result of cls(response)
Return type
Exceptions
check_name_availability
Check the name availability in the target location.
async check_name_availability(location: str, capacity_parameters: azure.mgmt.powerbidedicated.models._models_py3.CheckCapacityNameAvailabilityParameters, **kwargs) -> azure.mgmt.powerbidedicated.models._models_py3.CheckCapacityNameAvailabilityResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CheckCapacityNameAvailabilityResult, or the result of cls(response)
Return type
Exceptions
get_details
Gets details about the specified dedicated capacity.
async get_details(resource_group_name: str, dedicated_capacity_name: str, **kwargs) -> azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacity
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DedicatedCapacity, or the result of cls(response)
Return type
Exceptions
list
Lists all the Dedicated capacities for the given subscription.
list(**kwargs) -> AsyncIterable[azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacities]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DedicatedCapacities or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Gets all the Dedicated capacities for the given resource group.
list_by_resource_group(resource_group_name: str, **kwargs) -> AsyncIterable[azure.mgmt.powerbidedicated.models._models_py3.DedicatedCapacities]
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DedicatedCapacities or the result of cls(response)
Return type
Exceptions
list_skus
Lists eligible SKUs for PowerBI Dedicated resource provider.
async list_skus(**kwargs) -> azure.mgmt.powerbidedicated.models._models_py3.SkuEnumerationForNewResourceResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SkuEnumerationForNewResourceResult, or the result of cls(response)
Return type
Exceptions
list_skus_for_capacity
Lists eligible SKUs for a PowerBI Dedicated resource.
async list_skus_for_capacity(resource_group_name: str, dedicated_capacity_name: str, **kwargs) -> azure.mgmt.powerbidedicated.models._models_py3.SkuEnumerationForExistingResourceResult
Parameters
- resource_group_name
- str
The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.
- dedicated_capacity_name
- str
The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SkuEnumerationForExistingResourceResult, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.powerbidedicated.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\powerbidedicated\\models\\__init__.py'>
Feedback
Submit and view feedback for