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.objectSubscriptionOperations
Constructor
SubscriptionOperations(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
| 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
- 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
- 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
- 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
- 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
- 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'>
Feedback
Submit and view feedback for