LinkedSubscriptionsOperations Class
LinkedSubscriptionsOperations 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.objectLinkedSubscriptionsOperations
Constructor
LinkedSubscriptionsOperations(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
| create_or_update |
Create or update a linked subscription resource. |
| delete |
Delete the requested Linked Subscription resource. |
| get |
Returns the properties of a Linked Subscription resource. |
| list_by_resource_group |
Returns a list of all linked subscriptions under current resource group. |
| list_by_subscription |
Returns a list of all linked subscriptions under current subscription. |
| update |
Patch a Linked Subscription resource. |
create_or_update
Create or update a linked subscription resource.
create_or_update(resource_group: str, linked_subscription_name: str, resource: _models.LinkedSubscriptionParameter, **kwargs: Any) -> _models.LinkedSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
LinkedSubscription, or the result of cls(response)
Return type
Exceptions
delete
Delete the requested Linked Subscription resource.
delete(resource_group: str, linked_subscription_name: str, **kwargs: Any) -> None
Parameters
- 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
Returns the properties of a Linked Subscription resource.
get(resource_group: str, linked_subscription_name: str, **kwargs: Any) -> _models.LinkedSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
LinkedSubscription, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Returns a list of all linked subscriptions under current resource group.
list_by_resource_group(resource_group: str, **kwargs: Any) -> Iterable[_models.LinkedSubscriptionsList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either LinkedSubscriptionsList or the result of cls(response)
Return type
Exceptions
list_by_subscription
Returns a list of all linked subscriptions under current subscription.
list_by_subscription(**kwargs: Any) -> Iterable[_models.LinkedSubscriptionsList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either LinkedSubscriptionsList or the result of cls(response)
Return type
Exceptions
update
Patch a Linked Subscription resource.
update(resource_group: str, linked_subscription_name: str, resource: _models.LinkedSubscriptionParameter, **kwargs: Any) -> _models.LinkedSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
LinkedSubscription, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.azurestack.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\azurestack\\models\\__init__.py'>
Feedback
Submit and view feedback for