SubscriptionFeatureRegistrationsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

FeatureClient's

<xref:subscription_feature_registrations> attribute.

Inheritance
builtins.object
SubscriptionFeatureRegistrationsOperations

Constructor

SubscriptionFeatureRegistrationsOperations(*args, **kwargs)

Methods

create_or_update

Create or update a feature registration.

delete

Deletes a feature registration.

get

Returns a feature registration.

list_all_by_subscription

Returns subscription feature registrations for given subscription.

list_by_subscription

Returns subscription feature registrations for given subscription and provider namespace.

create_or_update

Create or update a feature registration.

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

Parameters

Name Description
provider_namespace
Required
str

The provider namespace. Required.

feature_name
Required
str

The feature name. Required.

subscription_feature_registration_type
Required

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

Returns

Type Description

SubscriptionFeatureRegistration or the result of cls(response)

Exceptions

Type Description

delete

Deletes a feature registration.

delete(provider_namespace: str, feature_name: str, **kwargs: Any) -> None

Parameters

Name Description
provider_namespace
Required
str

The provider namespace. Required.

feature_name
Required
str

The feature name. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Returns a feature registration.

get(provider_namespace: str, feature_name: str, **kwargs: Any) -> SubscriptionFeatureRegistration

Parameters

Name Description
provider_namespace
Required
str

The provider namespace. Required.

feature_name
Required
str

The feature name. Required.

Returns

Type Description

SubscriptionFeatureRegistration or the result of cls(response)

Exceptions

Type Description

list_all_by_subscription

Returns subscription feature registrations for given subscription.

list_all_by_subscription(**kwargs: Any) -> Iterable[SubscriptionFeatureRegistration]

Returns

Type Description

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

Exceptions

Type Description

list_by_subscription

Returns subscription feature registrations for given subscription and provider namespace.

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

Parameters

Name Description
provider_namespace
Required
str

The provider namespace. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.resource.features.v2021_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\resource\\features\\v2021_07_01\\models\\__init__.py'>