CapacitiesOperations Class

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

Constructor

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

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.

begin_create(resource_group_name: str, dedicated_capacity_name: str, capacity_parameters: _models.DedicatedCapacity, **kwargs: Any) -> LROPoller[_models.DedicatedCapacity]

Parameters

resource_group_name
str
Required

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
Required

The name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63.

capacity_parameters
DedicatedCapacity
Required

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 PollingMethod

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 LROPoller that returns either DedicatedCapacity or the result of cls(response)

Return type

Exceptions

begin_delete

Deletes the specified Dedicated capacity.

begin_delete(resource_group_name: str, dedicated_capacity_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

resource_group_name
str
Required

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
Required

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 PollingMethod

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 LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_resume

Resumes operation of the specified Dedicated capacity instance.

begin_resume(resource_group_name: str, dedicated_capacity_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

resource_group_name
str
Required

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
Required

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 PollingMethod

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 LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_suspend

Suspends operation of the specified dedicated capacity instance.

begin_suspend(resource_group_name: str, dedicated_capacity_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

resource_group_name
str
Required

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
Required

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 PollingMethod

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 LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_update

Updates the current state of the specified Dedicated capacity.

begin_update(resource_group_name: str, dedicated_capacity_name: str, capacity_update_parameters: _models.DedicatedCapacityUpdateParameters, **kwargs: Any) -> LROPoller[_models.DedicatedCapacity]

Parameters

resource_group_name
str
Required

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
Required

The name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.

capacity_update_parameters
DedicatedCapacityUpdateParameters
Required

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 PollingMethod

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 LROPoller that returns either DedicatedCapacity or the result of cls(response)

Return type

Exceptions

check_name_availability

Check the name availability in the target location.

check_name_availability(location: str, capacity_parameters: _models.CheckCapacityNameAvailabilityParameters, **kwargs: Any) -> _models.CheckCapacityNameAvailabilityResult

Parameters

location
str
Required

The region name which the operation will lookup into.

capacity_parameters
CheckCapacityNameAvailabilityParameters
Required

The name of the capacity.

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.

get_details(resource_group_name: str, dedicated_capacity_name: str, **kwargs: Any) -> _models.DedicatedCapacity

Parameters

resource_group_name
str
Required

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
Required

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: Any) -> Iterable[_models.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: Any) -> Iterable[_models.DedicatedCapacities]

Parameters

resource_group_name
str
Required

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.

list_skus(**kwargs: Any) -> _models.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.

list_skus_for_capacity(resource_group_name: str, dedicated_capacity_name: str, **kwargs: Any) -> _models.SkuEnumerationForExistingResourceResult

Parameters

resource_group_name
str
Required

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
Required

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