ProvidersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ResourceManagementClient's

<xref:providers> attribute.

Inheritance
builtins.object
ProvidersOperations

Constructor

ProvidersOperations(*args, **kwargs)

Methods

get

Gets a resource provider.

list

Gets a list of resource providers.

register

Registers provider to be used with a subscription.

unregister

Unregisters provider from a subscription.

get

Gets a resource provider.

get(resource_provider_namespace: str, expand: str | None = None, **kwargs: Any) -> Provider

Parameters

Name Description
resource_provider_namespace
Required
str

Namespace of the resource provider. Required.

expand
Required
str

The $expand query parameter. e.g. To include property aliases in response, use $expand=resourceTypes/aliases. Default value is None.

Returns

Type Description

Provider or the result of cls(response)

Exceptions

Type Description

list

Gets a list of resource providers.

list(top: int | None = None, expand: str | None = None, **kwargs: Any) -> Iterable[Provider]

Parameters

Name Description
top
Required
int

Query parameters. If null is passed returns all deployments. Default value is None.

expand
Required
str

The $expand query parameter. e.g. To include property aliases in response, use $expand=resourceTypes/aliases. Default value is None.

Returns

Type Description

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

Exceptions

Type Description

register

Registers provider to be used with a subscription.

register(resource_provider_namespace: str, **kwargs: Any) -> Provider

Parameters

Name Description
resource_provider_namespace
Required
str

Namespace of the resource provider. Required.

Returns

Type Description

Provider or the result of cls(response)

Exceptions

Type Description

unregister

Unregisters provider from a subscription.

unregister(resource_provider_namespace: str, **kwargs: Any) -> Provider

Parameters

Name Description
resource_provider_namespace
Required
str

Namespace of the resource provider. Required.

Returns

Type Description

Provider or the result of cls(response)

Exceptions

Type Description

Attributes

models

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