SubscriptionOperations Class

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

Constructor

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

accept_ownership_status

Accept subscription ownership status.

begin_accept_ownership

Accept subscription ownership.

cancel

The operation to cancel a subscription.

enable

The operation to enable a subscription.

rename

The operation to rename a subscription.

accept_ownership_status

Accept subscription ownership status.

accept_ownership_status(subscription_id: str, **kwargs: Any) -> azure.mgmt.subscription.models._models_py3.AcceptOwnershipStatusResponse

Parameters

subscription_id
str
Required

Subscription Id.

cls
callable

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

Returns

AcceptOwnershipStatusResponse, or the result of cls(response)

Return type

Exceptions

begin_accept_ownership

Accept subscription ownership.

begin_accept_ownership(subscription_id: str, body: azure.mgmt.subscription.models._models_py3.AcceptOwnershipRequest, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

subscription_id
str
Required

Subscription Id.

body
AcceptOwnershipRequest
Required
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

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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

cancel

The operation to cancel a subscription.

cancel(subscription_id: str, **kwargs: Any) -> azure.mgmt.subscription.models._models_py3.CanceledSubscriptionId

Parameters

subscription_id
str
Required

Subscription Id.

cls
callable

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

Returns

CanceledSubscriptionId, or the result of cls(response)

Return type

Exceptions

enable

The operation to enable a subscription.

enable(subscription_id: str, **kwargs: Any) -> azure.mgmt.subscription.models._models_py3.EnabledSubscriptionId

Parameters

subscription_id
str
Required

Subscription Id.

cls
callable

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

Returns

EnabledSubscriptionId, or the result of cls(response)

Return type

Exceptions

rename

The operation to rename a subscription.

rename(subscription_id: str, body: azure.mgmt.subscription.models._models_py3.SubscriptionName, **kwargs: Any) -> azure.mgmt.subscription.models._models_py3.RenamedSubscriptionId

Parameters

subscription_id
str
Required

Subscription Id.

body
SubscriptionName
Required

Subscription Name.

cls
callable

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

Returns

RenamedSubscriptionId, or the result of cls(response)

Return type

Exceptions

Attributes

models

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