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

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

Bases: object

list_operations(**kwargs: Any) → Iterable[models.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

ItemPaged[OperationListResult]

Raises

~azure.core.exceptions.HttpResponseError

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

Bases: object

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

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

ItemPaged[FeatureOperationsListResult]

Raises

~azure.core.exceptions.HttpResponseError

list_all(**kwargs: Any) → Iterable[models.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

ItemPaged[FeatureOperationsListResult]

Raises

~azure.core.exceptions.HttpResponseError

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

unregister(resource_provider_namespace: str, feature_name: str, **kwargs: Any) → models.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 '/usr/lib/python3/dist-packages/azure/mgmt/resource/features/v2015_12_01/models/__init__.py'>