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.object
CustomerSubscriptionsOperations

Constructor

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

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

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

customer_subscription_name
str
Required

Name of the product.

customer_creation_parameters
CustomerSubscription
Required

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

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

customer_subscription_name
str
Required

Name of the product.

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

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

customer_subscription_name
str
Required

Name of the product.

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

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

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