azure.mgmt.resource.features.v2021_07_01.operations module

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

Bases: FeatureClientMixinABC

list_operations(**kwargs: Any) Iterable[Operation][source]

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

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.v2021_07_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) 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.

Returns:

FeatureResult or the result of cls(response)

Return type:

FeatureResult

Raises:

HttpResponseError

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

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[FeatureResult][source]

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

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

Returns:

FeatureResult or the result of cls(response)

Return type:

FeatureResult

Raises:

HttpResponseError

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

Returns:

FeatureResult or the result of cls(response)

Return type:

FeatureResult

Raises:

HttpResponseError

models = <module 'azure.mgmt.resource.features.v2021_07_01.models' from '/mnt/vss/_work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/resource/features/v2021_07_01/models/__init__.py'>
class azure.mgmt.resource.features.v2021_07_01.operations.SubscriptionFeatureRegistrationsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

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

create_or_update(provider_namespace: str, feature_name: str, subscription_feature_registration_type: _models.SubscriptionFeatureRegistration | None = None, *, content_type: str = 'application/json', **kwargs: Any) _models.SubscriptionFeatureRegistration[source]
create_or_update(provider_namespace: str, feature_name: str, subscription_feature_registration_type: IO[bytes] | None = None, *, content_type: str = 'application/json', **kwargs: Any) _models.SubscriptionFeatureRegistration

Create or update a feature registration.

Parameters:
  • provider_namespace (str) – The provider namespace. Required.

  • feature_name (str) – The feature name. Required.

  • subscription_feature_registration_type (SubscriptionFeatureRegistration or IO[bytes]) – Subscription Feature Registration Type details. Is either a SubscriptionFeatureRegistration type or a IO[bytes] type. Default value is None.

Returns:

SubscriptionFeatureRegistration or the result of cls(response)

Return type:

SubscriptionFeatureRegistration

Raises:

HttpResponseError

delete(provider_namespace: str, feature_name: str, **kwargs: Any) None[source]

Deletes a feature registration.

Parameters:
  • provider_namespace (str) – The provider namespace. Required.

  • feature_name (str) – The feature name. Required.

Returns:

None or the result of cls(response)

Return type:

None

Raises:

HttpResponseError

get(provider_namespace: str, feature_name: str, **kwargs: Any) SubscriptionFeatureRegistration[source]

Returns a feature registration.

Parameters:
  • provider_namespace (str) – The provider namespace. Required.

  • feature_name (str) – The feature name. Required.

Returns:

SubscriptionFeatureRegistration or the result of cls(response)

Return type:

SubscriptionFeatureRegistration

Raises:

HttpResponseError

list_all_by_subscription(**kwargs: Any) Iterable[SubscriptionFeatureRegistration][source]

Returns subscription feature registrations for given subscription.

Returns:

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

Return type:

ItemPaged[SubscriptionFeatureRegistration]

Raises:

HttpResponseError

list_by_subscription(provider_namespace: str, **kwargs: Any) Iterable[SubscriptionFeatureRegistration][source]

Returns subscription feature registrations for given subscription and provider namespace.

Parameters:

provider_namespace (str) – The provider namespace. Required.

Returns:

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

Return type:

ItemPaged[SubscriptionFeatureRegistration]

Raises:

HttpResponseError

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