Source code for azure.mgmt.containerregistry.v2018_02_01_preview.models.quick_build_request_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .queue_build_request_py3 import QueueBuildRequest


[docs]class QuickBuildRequest(QueueBuildRequest): """The queue build request parameters for a quick build. All required parameters must be populated in order to send to Azure. :param type: Required. Constant filled by server. :type type: str :param image_names: The fully qualified image names including the repository and tag. :type image_names: list[str] :param source_location: Required. The URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. :type source_location: str :param build_arguments: The collection of build arguments to be used. :type build_arguments: list[~azure.mgmt.containerregistry.v2018_02_01_preview.models.BuildArgument] :param is_push_enabled: The value of this property indicates whether the image built should be pushed to the registry or not. Default value: True . :type is_push_enabled: bool :param no_cache: The value of this property indicates whether the image cache is enabled or not. Default value: False . :type no_cache: bool :param timeout: Build timeout in seconds. Default value: 3600 . :type timeout: int :param platform: Required. The platform properties against which the build will happen. :type platform: ~azure.mgmt.containerregistry.v2018_02_01_preview.models.PlatformProperties :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str """ _validation = { 'type': {'required': True}, 'source_location': {'required': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, 'platform': {'required': True}, 'docker_file_path': {'required': True}, } _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'image_names': {'key': 'imageNames', 'type': '[str]'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'build_arguments': {'key': 'buildArguments', 'type': '[BuildArgument]'}, 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, } def __init__(self, *, source_location: str, platform, docker_file_path: str, image_names=None, build_arguments=None, is_push_enabled: bool=True, no_cache: bool=False, timeout: int=3600, **kwargs) -> None: super(QuickBuildRequest, self).__init__(**kwargs) self.image_names = image_names self.source_location = source_location self.build_arguments = build_arguments self.is_push_enabled = is_push_enabled self.no_cache = no_cache self.timeout = timeout self.platform = platform self.docker_file_path = docker_file_path self.type = 'QuickBuild'