azure.mgmt.resource.features.v2015_12_01.operations module

class azure.mgmt.resource.features.v2015_12_01.operations.FeatureClientOperationsMixin[source]

Bases: azure.mgmt.resource.features.v2015_12_01._vendor.FeatureClientMixinABC

list_operations(**kwargs: Any)Iterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.Operation][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 Operation or the result of cls(response)

Return type

ItemPaged[Operation]

Raises

HttpResponseError

class azure.mgmt.resource.features.v2015_12_01.operations.FeaturesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through FeatureClient’s features attribute.

get(resource_provider_namespace: str, feature_name: str, **kwargs: Any)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. Required.

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

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

HttpResponseError

list(resource_provider_namespace: str, **kwargs: Any)Iterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult][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. Required.

Keyword Arguments

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

Returns

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

Return type

ItemPaged[FeatureResult]

Raises

HttpResponseError

list_all(**kwargs: Any)Iterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.FeatureResult][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 FeatureResult or the result of cls(response)

Return type

ItemPaged[FeatureResult]

Raises

HttpResponseError

register(resource_provider_namespace: str, feature_name: str, **kwargs: Any)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. Required.

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

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

HttpResponseError

unregister(resource_provider_namespace: str, feature_name: str, **kwargs: Any)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. Required.

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

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

HttpResponseError

models = <module 'azure.mgmt.resource.features.v2015_12_01.models' from '/mnt/vss/_work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/resource/features/v2015_12_01/models/__init__.py'>