RunsOperations Class
RunsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectRunsOperations
Constructor
RunsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
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.
begin_cancel(resource_group_name: str, registry_name: str, run_id: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- cls
- callable
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
- bool or PollingMethod
By default, your polling method will be ARMPolling. 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
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
Patch the run properties.
begin_update(resource_group_name: str, registry_name: str, run_id: str, run_update_parameters: azure.mgmt.containerregistry.v2019_04_01.models._models_py3.RunUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerregistry.v2019_04_01.models._models_py3.Run]
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- cls
- callable
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
- bool or PollingMethod
By default, your polling method will be ARMPolling. 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
An instance of LROPoller that returns either Run or the result of cls(response)
Return type
Exceptions
get
Gets the detailed information for a given run.
get(resource_group_name: str, registry_name: str, run_id: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2019_04_01.models._models_py3.Run
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Run, or the result of cls(response)
Return type
Exceptions
get_log_sas_url
Gets a link to download the run logs.
get_log_sas_url(resource_group_name: str, registry_name: str, run_id: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2019_04_01.models._models_py3.RunGetLogResult
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RunGetLogResult, or the result of cls(response)
Return type
Exceptions
list
Gets all the runs for a registry.
list(resource_group_name: str, registry_name: str, filter: Optional[str] = None, top: Optional[int] = None, **kwargs: Any) -> Iterable[azure.mgmt.containerregistry.v2019_04_01.models._models_py3.RunListResult]
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- filter
- 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
- int
$top is supported for get list of runs, which limits the maximum number of runs to return. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RunListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.containerregistry.v2019_04_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerregistry\\v2019_04_01\\models\\__init__.py'>
Feedback
Submit and view feedback for