AliasOperations Class
AliasOperations 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.objectAliasOperations
Constructor
AliasOperations(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 |
Create Alias Subscription. |
| delete |
Delete Alias. |
| get |
Get Alias Subscription. |
| list |
List Alias Subscription. |
begin_create
Create Alias Subscription.
begin_create(alias_name: str, body: azure.mgmt.subscription.models._models_py3.PutAliasRequest, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.subscription.models._models_py3.SubscriptionAliasResponse]
Parameters
- alias_name
- str
AliasName is the name for the subscription creation request. Note that this is not the same as subscription name and this doesn't have any other lifecycle need beyond the request for subscription creation.
- body
- PutAliasRequest
- 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 SubscriptionAliasResponse or the result of cls(response)
Return type
Exceptions
delete
Delete Alias.
delete(alias_name: str, **kwargs: Any) -> None
Parameters
- alias_name
- str
AliasName is the name for the subscription creation request. Note that this is not the same as subscription name and this doesn't have any other lifecycle need beyond the request for subscription creation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Get Alias Subscription.
get(alias_name: str, **kwargs: Any) -> azure.mgmt.subscription.models._models_py3.SubscriptionAliasResponse
Parameters
- alias_name
- str
AliasName is the name for the subscription creation request. Note that this is not the same as subscription name and this doesn't have any other lifecycle need beyond the request for subscription creation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SubscriptionAliasResponse, or the result of cls(response)
Return type
Exceptions
list
List Alias Subscription.
list(**kwargs: Any) -> azure.mgmt.subscription.models._models_py3.SubscriptionAliasListResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SubscriptionAliasListResult, 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