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

Constructor

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

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

resource_provider_namespace
str
Required

The resource provider namespace for the feature.

feature_name
str
Required

The name of the feature to get.

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
Required

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

resource_provider_namespace
str
Required

The namespace of the resource provider.

feature_name
str
Required

The name of the feature to register.

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

resource_provider_namespace
str
Required

The namespace of the resource provider.

feature_name
str
Required

The name of the feature to unregister.

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