FeaturesOperations Class
FeaturesOperations 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.objectFeaturesOperations
Constructor
FeaturesOperations(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
| get |
Gets the preview feature with the specified name. |
| list |
Gets all the preview features in a provider namespace that are available through AFEC for the subscription. |
| list_all |
Gets all the preview features that are available through AFEC for the subscription. |
| register |
Registers the preview feature for the subscription. |
| unregister |
Unregisters the preview feature for the subscription. |
get
Gets the preview feature with the specified name.
async get(resource_provider_namespace: str, feature_name: str, **kwargs: Any) -> azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
FeatureResult, or the result of cls(response)
Return type
Exceptions
list
Gets all the preview features in a provider namespace that are available through AFEC for the subscription.
list(resource_provider_namespace: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureOperationsListResult]
Parameters
- resource_provider_namespace
- str
The namespace of the resource provider for getting features.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either FeatureOperationsListResult or the result of cls(response)
Return type
Exceptions
list_all
Gets all the preview features that are available through AFEC for the subscription.
list_all(**kwargs: Any) -> AsyncIterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureOperationsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either FeatureOperationsListResult or the result of cls(response)
Return type
Exceptions
register
Registers the preview feature for the subscription.
async register(resource_provider_namespace: str, feature_name: str, **kwargs: Any) -> azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
FeatureResult, or the result of cls(response)
Return type
Exceptions
unregister
Unregisters the preview feature for the subscription.
async unregister(resource_provider_namespace: str, feature_name: str, **kwargs: Any) -> azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
FeatureResult, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.resource.features.v2015_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\resource\\features\\v2015_12_01\\models\\__init__.py'>
Feedback
Submit and view feedback for