Compartilhar via


RunsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerRegistryManagementClient's

<xref:runs> attribute.

Inheritance
builtins.object
RunsOperations

Constructor

RunsOperations(*args, **kwargs)

Methods

begin_cancel

Cancel an existing run.

begin_update

Patch the run properties.

get

Gets the detailed information for a given run.

get_log_sas_url

Gets a link to download the run logs.

list

Gets all the runs for a registry.

begin_cancel

Cancel an existing run.

async begin_cancel(resource_group_name: str, registry_name: str, run_id: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the container registry belongs. Required.

registry_name
Required
str

The name of the container registry. Required.

run_id
Required
str

The run ID. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

Patch the run properties.

async begin_update(resource_group_name: str, registry_name: str, run_id: str, run_update_parameters: _models.RunUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.Run]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the container registry belongs. Required.

registry_name
Required
str

The name of the container registry. Required.

run_id
Required
str

The run ID. Required.

run_update_parameters
Required

The run update properties. Is either a RunUpdateParameters type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of AsyncLROPoller that returns either Run or the result of cls(response)

Exceptions

Type Description

get

Gets the detailed information for a given run.

async get(resource_group_name: str, registry_name: str, run_id: str, **kwargs: Any) -> Run

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the container registry belongs. Required.

registry_name
Required
str

The name of the container registry. Required.

run_id
Required
str

The run ID. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description
Run

Run or the result of cls(response)

Exceptions

Type Description

get_log_sas_url

Gets a link to download the run logs.

async get_log_sas_url(resource_group_name: str, registry_name: str, run_id: str, **kwargs: Any) -> RunGetLogResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the container registry belongs. Required.

registry_name
Required
str

The name of the container registry. Required.

run_id
Required
str

The run ID. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

RunGetLogResult or the result of cls(response)

Exceptions

Type Description

list

Gets all the runs for a registry.

list(resource_group_name: str, registry_name: str, filter: str | None = None, top: int | None = None, **kwargs: Any) -> AsyncIterable[Run]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the container registry belongs. Required.

registry_name
Required
str

The name of the container registry. Required.

filter
Required
str

The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. Default value is None.

top
Required
int

$top is supported for get list of runs, which limits the maximum number of runs to return. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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