CustomerSubscriptionsOperations Class
CustomerSubscriptionsOperations 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.objectCustomerSubscriptionsOperations
Constructor
CustomerSubscriptionsOperations(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 |
Creates a new customer subscription under a registration. |
| delete |
Deletes a customer subscription under a registration. |
| get |
Returns the specified product. |
| list |
Returns a list of products. |
create
Creates a new customer subscription under a registration.
create(resource_group: str, registration_name: str, customer_subscription_name: str, customer_creation_parameters: _models.CustomerSubscription, **kwargs: Any) -> _models.CustomerSubscription
Parameters
- customer_creation_parameters
- CustomerSubscription
Parameters use to create a customer subscription.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CustomerSubscription, or the result of cls(response)
Return type
Exceptions
delete
Deletes a customer subscription under a registration.
delete(resource_group: str, registration_name: str, customer_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 specified product.
get(resource_group: str, registration_name: str, customer_subscription_name: str, **kwargs: Any) -> _models.CustomerSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CustomerSubscription, or the result of cls(response)
Return type
Exceptions
list
Returns a list of products.
list(resource_group: str, registration_name: str, **kwargs: Any) -> Iterable[_models.CustomerSubscriptionList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either CustomerSubscriptionList 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