SubscriptionFeatureRegistrationsOperations Class
SubscriptionFeatureRegistrationsOperations async 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.objectSubscriptionFeatureRegistrationsOperations
Constructor
SubscriptionFeatureRegistrationsOperations(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 feature registration. |
| delete |
Deletes a feature registration. |
| get |
Returns a feature registration. |
| list_all_by_subscription |
Returns subscription feature registrations for given subscription. |
| list_by_subscription |
Returns subscription feature registrations for given subscription and provider namespace. |
create_or_update
Create or update a feature registration.
async create_or_update(provider_namespace: str, feature_name: str, subscription_feature_registration_type: Optional[azure.mgmt.resource.features.v2021_07_01.models._models_py3.SubscriptionFeatureRegistration] = None, **kwargs: Any) -> azure.mgmt.resource.features.v2021_07_01.models._models_py3.SubscriptionFeatureRegistration
Parameters
- subscription_feature_registration_type
- SubscriptionFeatureRegistration
Subscription Feature Registration Type details. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SubscriptionFeatureRegistration, or the result of cls(response)
Return type
Exceptions
delete
Deletes a feature registration.
async delete(provider_namespace: str, feature_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 a feature registration.
async get(provider_namespace: str, feature_name: str, **kwargs: Any) -> azure.mgmt.resource.features.v2021_07_01.models._models_py3.SubscriptionFeatureRegistration
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SubscriptionFeatureRegistration, or the result of cls(response)
Return type
Exceptions
list_all_by_subscription
Returns subscription feature registrations for given subscription.
list_all_by_subscription(**kwargs: Any) -> AsyncIterable[azure.mgmt.resource.features.v2021_07_01.models._models_py3.SubscriptionFeatureRegistrationList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SubscriptionFeatureRegistrationList or the result of cls(response)
Return type
Exceptions
list_by_subscription
Returns subscription feature registrations for given subscription and provider namespace.
list_by_subscription(provider_namespace: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.resource.features.v2021_07_01.models._models_py3.SubscriptionFeatureRegistrationList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SubscriptionFeatureRegistrationList or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.resource.features.v2021_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\resource\\features\\v2021_07_01\\models\\__init__.py'>
Feedback
Submit and view feedback for