RegistryOperations Class

RegistryOperations.

You should not instantiate this class directly. Instead, you should create an MLClient instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
RegistryOperations

Constructor

RegistryOperations(operation_scope: OperationScope, service_client: AzureMachineLearningWorkspaces, all_operations: OperationsContainer, credentials: TokenCredential | None = None, **kwargs: Dict)

Parameters

Name Description
operation_scope
Required
service_client
Required
all_operations
Required
credentials
Default value: None

Methods

begin_create

Create a new Azure Machine Learning Registry, or try to update if it already exists.

Note: Due to service limitations we have to sleep for an additional 30~45 seconds AFTER the LRO Poller concludes before the registry will be consistently deleted from the perspective of subsequent operations. If a deletion is required for subsequent operations to work properly, callers should implement that logic until the service has been fixed to return a reliable LRO.

begin_delete

Delete a registry if it exists. Returns nothing on a successful operation.

get

Get a registry by name.

list

List all registries that the user has access to in the current resource group or subscription.

begin_create

Create a new Azure Machine Learning Registry, or try to update if it already exists.

Note: Due to service limitations we have to sleep for an additional 30~45 seconds AFTER the LRO Poller concludes before the registry will be consistently deleted from the perspective of subsequent operations. If a deletion is required for subsequent operations to work properly, callers should implement that logic until the service has been fixed to return a reliable LRO.

begin_create(registry: Registry, **kwargs: Dict) -> LROPoller[Registry]

Parameters

Name Description
registry
Required

Registry definition.

Returns

Type Description
<xref:LROPoller>

A poller to track the operation status.

begin_delete

Delete a registry if it exists. Returns nothing on a successful operation.

begin_delete(*, name: str, **kwargs: Dict) -> LROPoller[None]

Keyword-Only Parameters

Name Description
name
str

Name of the registry

Returns

Type Description
<xref:LROPoller>

A poller to track the operation status.

get

Get a registry by name.

get(name: str | None = None) -> Registry

Parameters

Name Description
name
Required
str

Name of the registry.

Returns

Type Description

The registry with the provided name.

Exceptions

Type Description

Raised if Registry name cannot be successfully validated. Details will be provided in the error message.

Raised if the corresponding name and version cannot be retrieved from the service.

list

List all registries that the user has access to in the current resource group or subscription.

list(*, scope: str = 'resource_group') -> Iterable[Registry]

Keyword-Only Parameters

Name Description
scope
str

scope of the listing, "resource_group" or "subscription", defaults to "resource_group"

Returns

Type Description

An iterator like instance of Registry objects