azure.mgmt.resource.features.v2015_12_01.aio.operations package

class azure.mgmt.resource.features.v2015_12_01.aio.operations.FeatureClientOperationsMixin[source]
list_operations(**kwargs) → AsyncIterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.OperationListResult][source]

Lists all of the available Microsoft.Features REST API operations.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either OperationListResult or the result of cls(response)

Return type

AsyncItemPaged[OperationListResult]

Raises

~azure.core.exceptions.HttpResponseError

class azure.mgmt.resource.features.v2015_12_01.aio.operations.FeaturesOperations(client, config, serializer, deserializer)[source]

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.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

async get(resource_provider_namespace: str, feature_name: str, **kwargs) → azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult[source]

Gets the preview feature with the specified name.

Parameters
  • resource_provider_namespace (str) – The resource provider namespace for the feature.

  • feature_name (str) – The name of the feature to get.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

FeatureResult, or the result of cls(response)

Return type

FeatureResult

Raises

~azure.core.exceptions.HttpResponseError

list(resource_provider_namespace: str, **kwargs) → AsyncIterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureOperationsListResult][source]

Gets all the preview features in a provider namespace that are available through AFEC for the subscription.

Parameters

resource_provider_namespace (str) – The namespace of the resource provider for getting features.

Keyword Arguments

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

AsyncItemPaged[FeatureOperationsListResult]

Raises

~azure.core.exceptions.HttpResponseError

list_all(**kwargs) → AsyncIterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureOperationsListResult][source]

Gets all the preview features that are available through AFEC for the subscription.

Keyword Arguments

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

AsyncItemPaged[FeatureOperationsListResult]

Raises

~azure.core.exceptions.HttpResponseError

async register(resource_provider_namespace: str, feature_name: str, **kwargs) → azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult[source]

Registers the preview feature for the subscription.

Parameters
  • resource_provider_namespace (str) – The namespace of the resource provider.

  • feature_name (str) – The name of the feature to register.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

FeatureResult, or the result of cls(response)

Return type

FeatureResult

Raises

~azure.core.exceptions.HttpResponseError

async unregister(resource_provider_namespace: str, feature_name: str, **kwargs) → azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult[source]

Unregisters the preview feature for the subscription.

Parameters
  • resource_provider_namespace (str) – The namespace of the resource provider.

  • feature_name (str) – The name of the feature to unregister.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

FeatureResult, or the result of cls(response)

Return type

FeatureResult

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.features.v2015_12_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\features\\v2015_12_01\\models\\__init__.py'>