BuildsOperations Class
BuildsOperations async 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.objectBuildsOperations
Constructor
BuildsOperations(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 build. |
| begin_update |
Patch the build properties. |
| get |
Gets the detailed information for a given build. |
| get_log_link |
Gets a link to download the build logs. |
| list |
Gets all the builds for a registry. |
begin_cancel
Cancel an existing build.
async begin_cancel(resource_group_name: str, registry_name: str, build_id: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[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 AsyncPollingMethod
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
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
Patch the build properties.
async begin_update(resource_group_name: str, registry_name: str, build_id: str, build_update_parameters: azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.BuildUpdateParameters, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.Build]
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 AsyncPollingMethod
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
An instance of AsyncLROPoller that returns either Build or the result of cls(response)
Return type
Exceptions
get
Gets the detailed information for a given build.
async get(resource_group_name: str, registry_name: str, build_id: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.Build
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
Build, or the result of cls(response)
Return type
Exceptions
get_log_link
Gets a link to download the build logs.
async get_log_link(resource_group_name: str, registry_name: str, build_id: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.BuildGetLogResult
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
BuildGetLogResult, or the result of cls(response)
Return type
Exceptions
list
Gets all the builds for a registry.
list(resource_group_name: str, registry_name: str, filter: Optional[str] = None, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.BuildListResult]
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- top
- int
$top is supported for get list of builds, which limits the maximum number of builds to return. Default value is None.
- skip_token
- str
$skipToken is supported on get list of builds, which provides the next page in the list of builds. 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 BuildListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerregistry\\v2018_02_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for