FeaturesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:features> attribute.
- Inheritance
-
builtins.objectFeaturesOperations
Constructor
FeaturesOperations(*args, **kwargs)
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.
get(resource_provider_namespace: str, feature_name: str, **kwargs: Any) -> FeatureResult
Parameters
Name | Description |
---|---|
resource_provider_namespace
Required
|
The resource provider namespace for the feature. Required. |
feature_name
Required
|
The name of the feature to get. Required. |
Returns
Type | Description |
---|---|
FeatureResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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) -> Iterable[FeatureResult]
Parameters
Name | Description |
---|---|
resource_provider_namespace
Required
|
The namespace of the resource provider for getting features. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either FeatureResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets all the preview features that are available through AFEC for the subscription.
list_all(**kwargs: Any) -> Iterable[FeatureResult]
Returns
Type | Description |
---|---|
An iterator like instance of either FeatureResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
register
Registers the preview feature for the subscription.
register(resource_provider_namespace: str, feature_name: str, **kwargs: Any) -> FeatureResult
Parameters
Name | Description |
---|---|
resource_provider_namespace
Required
|
The namespace of the resource provider. Required. |
feature_name
Required
|
The name of the feature to register. Required. |
Returns
Type | Description |
---|---|
FeatureResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
unregister
Unregisters the preview feature for the subscription.
unregister(resource_provider_namespace: str, feature_name: str, **kwargs: Any) -> FeatureResult
Parameters
Name | Description |
---|---|
resource_provider_namespace
Required
|
The namespace of the resource provider. Required. |
feature_name
Required
|
The name of the feature to unregister. Required. |
Returns
Type | Description |
---|---|
FeatureResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.resource.features.v2021_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\resource\\features\\v2021_07_01\\models\\__init__.py'>
Azure SDK for Python