diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger.py index aaea429c8800..77113b28caf7 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger.py @@ -21,8 +21,8 @@ class BaseImageTrigger(Model): base image dependency updates. Possible values include: 'All', 'Runtime' :type base_image_trigger_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_py3.py index 03397305990d..d73c2c43cd85 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_py3.py @@ -21,8 +21,8 @@ class BaseImageTrigger(Model): base image dependency updates. Possible values include: 'All', 'Runtime' :type base_image_trigger_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters.py index e4d06acff54c..cd702419ad1d 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters.py @@ -21,8 +21,8 @@ class BaseImageTriggerUpdateParameters(Model): image dependency updates. Possible values include: 'All', 'Runtime' :type base_image_trigger_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters_py3.py index 4e651aa8dff6..7441cf3515fc 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/base_image_trigger_update_parameters_py3.py @@ -21,8 +21,8 @@ class BaseImageTriggerUpdateParameters(Model): image dependency updates. Possible values include: 'All', 'Runtime' :type base_image_trigger_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py index 59e9e9f63955..ae0685705827 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py @@ -95,7 +95,9 @@ class RunStatus(str, Enum): class RunType(str, Enum): quick_build = "QuickBuild" + quick_run = "QuickRun" auto_build = "AutoBuild" + auto_run = "AutoRun" class OS(str, Enum): @@ -145,6 +147,7 @@ class TokenType(str, Enum): class SourceTriggerEvent(str, Enum): commit = "commit" + pullrequest = "pullrequest" class TriggerStatus(str, Enum): diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request.py index 143ef75c7de6..80dd5ca1f71b 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request.py @@ -38,27 +38,25 @@ class DockerBuildRequest(RunRequest): executing the run. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :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 timeout: Build timeout in seconds. Default value: 3600 . + :param timeout: Run timeout in seconds. Default value: 3600 . :type timeout: int - :param platform: Required. The platform properties against which the build - will happen. + :param platform: Required. The platform properties against which the run + has to happen. :type platform: ~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties - :param agent_configuration: The machine configuration of the build agent. + :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_location: The URL(absolute or relative) of the source + context. It can be an URL to a tar or git repoistory. + If it is relative URL, the relative path should be obtained from calling + listBuildSourceUploadUrl API. + :type source_location: str """ _validation = { 'type': {'required': True}, 'docker_file_path': {'required': True}, - 'source_location': {'required': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, 'platform': {'required': True}, } @@ -71,10 +69,10 @@ class DockerBuildRequest(RunRequest): 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, } def __init__(self, **kwargs): @@ -84,8 +82,8 @@ def __init__(self, **kwargs): self.no_cache = kwargs.get('no_cache', False) self.docker_file_path = kwargs.get('docker_file_path', None) self.arguments = kwargs.get('arguments', None) - self.source_location = kwargs.get('source_location', None) self.timeout = kwargs.get('timeout', 3600) self.platform = kwargs.get('platform', None) self.agent_configuration = kwargs.get('agent_configuration', None) + self.source_location = kwargs.get('source_location', None) self.type = 'DockerBuildRequest' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request_py3.py index 5f4b4f10cbcf..3cf4081f5afb 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_request_py3.py @@ -38,27 +38,25 @@ class DockerBuildRequest(RunRequest): executing the run. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :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 timeout: Build timeout in seconds. Default value: 3600 . + :param timeout: Run timeout in seconds. Default value: 3600 . :type timeout: int - :param platform: Required. The platform properties against which the build - will happen. + :param platform: Required. The platform properties against which the run + has to happen. :type platform: ~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties - :param agent_configuration: The machine configuration of the build agent. + :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_location: The URL(absolute or relative) of the source + context. It can be an URL to a tar or git repoistory. + If it is relative URL, the relative path should be obtained from calling + listBuildSourceUploadUrl API. + :type source_location: str """ _validation = { 'type': {'required': True}, 'docker_file_path': {'required': True}, - 'source_location': {'required': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, 'platform': {'required': True}, } @@ -71,21 +69,21 @@ class DockerBuildRequest(RunRequest): 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, } - def __init__(self, *, docker_file_path: str, source_location: str, platform, is_archive_enabled: bool=False, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, timeout: int=3600, agent_configuration=None, **kwargs) -> None: + def __init__(self, *, docker_file_path: str, platform, is_archive_enabled: bool=False, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, timeout: int=3600, agent_configuration=None, source_location: str=None, **kwargs) -> None: super(DockerBuildRequest, self).__init__(is_archive_enabled=is_archive_enabled, **kwargs) self.image_names = image_names self.is_push_enabled = is_push_enabled self.no_cache = no_cache self.docker_file_path = docker_file_path self.arguments = arguments - self.source_location = source_location self.timeout = timeout self.platform = platform self.agent_configuration = agent_configuration + self.source_location = source_location self.type = 'DockerBuildRequest' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step.py index 3164f98a078d..1d52097e82e8 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step.py @@ -23,6 +23,9 @@ class DockerBuildStep(TaskStepProperties): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param image_names: The fully qualified image names including the @@ -41,11 +44,6 @@ class DockerBuildStep(TaskStepProperties): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -56,13 +54,13 @@ class DockerBuildStep(TaskStepProperties): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'image_names': {'key': 'imageNames', 'type': '[str]'}, 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } def __init__(self, **kwargs): @@ -72,5 +70,4 @@ def __init__(self, **kwargs): self.no_cache = kwargs.get('no_cache', False) self.docker_file_path = kwargs.get('docker_file_path', None) self.arguments = kwargs.get('arguments', None) - self.context_path = kwargs.get('context_path', None) self.type = 'Docker' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_py3.py index 7c052812cc6e..7bdf8b9f2540 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_py3.py @@ -23,6 +23,9 @@ class DockerBuildStep(TaskStepProperties): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param image_names: The fully qualified image names including the @@ -41,11 +44,6 @@ class DockerBuildStep(TaskStepProperties): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -56,21 +54,20 @@ class DockerBuildStep(TaskStepProperties): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'image_names': {'key': 'imageNames', 'type': '[str]'}, 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } - def __init__(self, *, docker_file_path: str, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, context_path: str=None, **kwargs) -> None: - super(DockerBuildStep, self).__init__(**kwargs) + def __init__(self, *, docker_file_path: str, context_path: str=None, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, **kwargs) -> None: + super(DockerBuildStep, self).__init__(context_path=context_path, **kwargs) self.image_names = image_names self.is_push_enabled = is_push_enabled self.no_cache = no_cache self.docker_file_path = docker_file_path self.arguments = arguments - self.context_path = context_path self.type = 'Docker' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters.py index 1f89fbeb1561..4a4035127e3a 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters.py @@ -17,6 +17,9 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param image_names: The fully qualified image names including the @@ -35,11 +38,6 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -47,13 +45,13 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'image_names': {'key': 'imageNames', 'type': '[str]'}, 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } def __init__(self, **kwargs): @@ -63,5 +61,4 @@ def __init__(self, **kwargs): self.no_cache = kwargs.get('no_cache', None) self.docker_file_path = kwargs.get('docker_file_path', None) self.arguments = kwargs.get('arguments', None) - self.context_path = kwargs.get('context_path', None) self.type = 'Docker' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters_py3.py index e2ac5b1a859e..45a563d07134 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/docker_build_step_update_parameters_py3.py @@ -17,6 +17,9 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param image_names: The fully qualified image names including the @@ -35,11 +38,6 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -47,21 +45,20 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'image_names': {'key': 'imageNames', 'type': '[str]'}, 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } - def __init__(self, *, image_names=None, is_push_enabled: bool=None, no_cache: bool=None, docker_file_path: str=None, arguments=None, context_path: str=None, **kwargs) -> None: - super(DockerBuildStepUpdateParameters, self).__init__(**kwargs) + def __init__(self, *, context_path: str=None, image_names=None, is_push_enabled: bool=None, no_cache: bool=None, docker_file_path: str=None, arguments=None, **kwargs) -> None: + super(DockerBuildStepUpdateParameters, self).__init__(context_path=context_path, **kwargs) self.image_names = image_names self.is_push_enabled = is_push_enabled self.no_cache = no_cache self.docker_file_path = docker_file_path self.arguments = arguments - self.context_path = context_path self.type = 'Docker' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py index d883a1b507dd..bd399328c258 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py @@ -32,15 +32,20 @@ class EncodedTaskRunRequest(RunRequest): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :param timeout: Build timeout in seconds. Default value: 3600 . + :param timeout: Run timeout in seconds. Default value: 3600 . :type timeout: int - :param platform: Required. The platform properties against which the build - will happen. + :param platform: Required. The platform properties against which the run + has to happen. :type platform: ~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties - :param agent_configuration: The machine configuration of the build agent. + :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_location: The URL(absolute or relative) of the source + context. It can be an URL to a tar or git repoistory. + If it is relative URL, the relative path should be obtained from calling + listBuildSourceUploadUrl API. + :type source_location: str """ _validation = { @@ -59,6 +64,7 @@ class EncodedTaskRunRequest(RunRequest): 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, } def __init__(self, **kwargs): @@ -69,4 +75,5 @@ def __init__(self, **kwargs): self.timeout = kwargs.get('timeout', 3600) self.platform = kwargs.get('platform', None) self.agent_configuration = kwargs.get('agent_configuration', None) + self.source_location = kwargs.get('source_location', None) self.type = 'EncodedTaskRunRequest' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request_py3.py index 04787800f371..eceaafb5a6ed 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request_py3.py @@ -32,15 +32,20 @@ class EncodedTaskRunRequest(RunRequest): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :param timeout: Build timeout in seconds. Default value: 3600 . + :param timeout: Run timeout in seconds. Default value: 3600 . :type timeout: int - :param platform: Required. The platform properties against which the build - will happen. + :param platform: Required. The platform properties against which the run + has to happen. :type platform: ~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties - :param agent_configuration: The machine configuration of the build agent. + :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_location: The URL(absolute or relative) of the source + context. It can be an URL to a tar or git repoistory. + If it is relative URL, the relative path should be obtained from calling + listBuildSourceUploadUrl API. + :type source_location: str """ _validation = { @@ -59,9 +64,10 @@ class EncodedTaskRunRequest(RunRequest): 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, } - def __init__(self, *, encoded_task_content: str, platform, is_archive_enabled: bool=False, encoded_values_content: str=None, values=None, timeout: int=3600, agent_configuration=None, **kwargs) -> None: + def __init__(self, *, encoded_task_content: str, platform, is_archive_enabled: bool=False, encoded_values_content: str=None, values=None, timeout: int=3600, agent_configuration=None, source_location: str=None, **kwargs) -> None: super(EncodedTaskRunRequest, self).__init__(is_archive_enabled=is_archive_enabled, **kwargs) self.encoded_task_content = encoded_task_content self.encoded_values_content = encoded_values_content @@ -69,4 +75,5 @@ def __init__(self, *, encoded_task_content: str, platform, is_archive_enabled: b self.timeout = timeout self.platform = platform self.agent_configuration = agent_configuration + self.source_location = source_location self.type = 'EncodedTaskRunRequest' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step.py index 3aad0d534b48..2663c34be77f 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step.py @@ -23,6 +23,9 @@ class EncodedTaskStep(TaskStepProperties): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param encoded_task_content: Required. Base64 encoded value of the @@ -45,6 +48,7 @@ class EncodedTaskStep(TaskStepProperties): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'}, 'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'}, diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_py3.py index 29dd26a7a6e2..f1aa35288fa4 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_py3.py @@ -23,6 +23,9 @@ class EncodedTaskStep(TaskStepProperties): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param encoded_task_content: Required. Base64 encoded value of the @@ -45,14 +48,15 @@ class EncodedTaskStep(TaskStepProperties): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'}, 'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, } - def __init__(self, *, encoded_task_content: str, encoded_values_content: str=None, values=None, **kwargs) -> None: - super(EncodedTaskStep, self).__init__(**kwargs) + def __init__(self, *, encoded_task_content: str, context_path: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None: + super(EncodedTaskStep, self).__init__(context_path=context_path, **kwargs) self.encoded_task_content = encoded_task_content self.encoded_values_content = encoded_values_content self.values = values diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters.py index 3362bc4ebb97..df5d5377d2e1 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters.py @@ -17,6 +17,9 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param encoded_task_content: Base64 encoded value of the @@ -36,6 +39,7 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'}, 'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'}, diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters_py3.py index ed6c4b51d761..549154751a87 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_step_update_parameters_py3.py @@ -17,6 +17,9 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param encoded_task_content: Base64 encoded value of the @@ -36,14 +39,15 @@ class EncodedTaskStepUpdateParameters(TaskStepUpdateParameters): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'}, 'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, } - def __init__(self, *, encoded_task_content: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None: - super(EncodedTaskStepUpdateParameters, self).__init__(**kwargs) + def __init__(self, *, context_path: str=None, encoded_task_content: str=None, encoded_values_content: str=None, values=None, **kwargs) -> None: + super(EncodedTaskStepUpdateParameters, self).__init__(context_path=context_path, **kwargs) self.encoded_task_content = encoded_task_content self.encoded_values_content = encoded_values_content self.values = values diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request.py index 6f156f645d98..ad238e4377fe 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request.py @@ -32,27 +32,25 @@ class FileTaskRunRequest(RunRequest): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :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 timeout: Build timeout in seconds. Default value: 3600 . + :param timeout: Run timeout in seconds. Default value: 3600 . :type timeout: int - :param platform: Required. The platform properties against which the build - will happen. + :param platform: Required. The platform properties against which the run + has to happen. :type platform: ~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties - :param agent_configuration: The machine configuration of the build agent. + :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_location: The URL(absolute or relative) of the source + context. It can be an URL to a tar or git repoistory. + If it is relative URL, the relative path should be obtained from calling + listBuildSourceUploadUrl API. + :type source_location: str """ _validation = { 'type': {'required': True}, 'task_file_path': {'required': True}, - 'source_location': {'required': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, 'platform': {'required': True}, } @@ -63,10 +61,10 @@ class FileTaskRunRequest(RunRequest): 'task_file_path': {'key': 'taskFilePath', 'type': 'str'}, 'values_file_path': {'key': 'valuesFilePath', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, } def __init__(self, **kwargs): @@ -74,8 +72,8 @@ def __init__(self, **kwargs): self.task_file_path = kwargs.get('task_file_path', None) self.values_file_path = kwargs.get('values_file_path', None) self.values = kwargs.get('values', None) - self.source_location = kwargs.get('source_location', None) self.timeout = kwargs.get('timeout', 3600) self.platform = kwargs.get('platform', None) self.agent_configuration = kwargs.get('agent_configuration', None) + self.source_location = kwargs.get('source_location', None) self.type = 'FileTaskRunRequest' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request_py3.py index b2f2840c29b0..c2a63a9f0857 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_run_request_py3.py @@ -32,27 +32,25 @@ class FileTaskRunRequest(RunRequest): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :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 timeout: Build timeout in seconds. Default value: 3600 . + :param timeout: Run timeout in seconds. Default value: 3600 . :type timeout: int - :param platform: Required. The platform properties against which the build - will happen. + :param platform: Required. The platform properties against which the run + has to happen. :type platform: ~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties - :param agent_configuration: The machine configuration of the build agent. + :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_location: The URL(absolute or relative) of the source + context. It can be an URL to a tar or git repoistory. + If it is relative URL, the relative path should be obtained from calling + listBuildSourceUploadUrl API. + :type source_location: str """ _validation = { 'type': {'required': True}, 'task_file_path': {'required': True}, - 'source_location': {'required': True}, 'timeout': {'maximum': 28800, 'minimum': 300}, 'platform': {'required': True}, } @@ -63,19 +61,19 @@ class FileTaskRunRequest(RunRequest): 'task_file_path': {'key': 'taskFilePath', 'type': 'str'}, 'values_file_path': {'key': 'valuesFilePath', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, } - def __init__(self, *, task_file_path: str, source_location: str, platform, is_archive_enabled: bool=False, values_file_path: str=None, values=None, timeout: int=3600, agent_configuration=None, **kwargs) -> None: + def __init__(self, *, task_file_path: str, platform, is_archive_enabled: bool=False, values_file_path: str=None, values=None, timeout: int=3600, agent_configuration=None, source_location: str=None, **kwargs) -> None: super(FileTaskRunRequest, self).__init__(is_archive_enabled=is_archive_enabled, **kwargs) self.task_file_path = task_file_path self.values_file_path = values_file_path self.values = values - self.source_location = source_location self.timeout = timeout self.platform = platform self.agent_configuration = agent_configuration + self.source_location = source_location self.type = 'FileTaskRunRequest' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step.py index 36ffedb9977a..405732140b54 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step.py @@ -23,6 +23,9 @@ class FileTaskStep(TaskStepProperties): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param task_file_path: Required. The task template/definition file path @@ -35,11 +38,6 @@ class FileTaskStep(TaskStepProperties): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -50,11 +48,11 @@ class FileTaskStep(TaskStepProperties): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'task_file_path': {'key': 'taskFilePath', 'type': 'str'}, 'values_file_path': {'key': 'valuesFilePath', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } def __init__(self, **kwargs): @@ -62,5 +60,4 @@ def __init__(self, **kwargs): self.task_file_path = kwargs.get('task_file_path', None) self.values_file_path = kwargs.get('values_file_path', None) self.values = kwargs.get('values', None) - self.context_path = kwargs.get('context_path', None) self.type = 'FileTask' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_py3.py index a6f583cb7bca..2875e974eb48 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_py3.py @@ -23,6 +23,9 @@ class FileTaskStep(TaskStepProperties): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param task_file_path: Required. The task template/definition file path @@ -35,11 +38,6 @@ class FileTaskStep(TaskStepProperties): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -50,17 +48,16 @@ class FileTaskStep(TaskStepProperties): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'task_file_path': {'key': 'taskFilePath', 'type': 'str'}, 'values_file_path': {'key': 'valuesFilePath', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } - def __init__(self, *, task_file_path: str, values_file_path: str=None, values=None, context_path: str=None, **kwargs) -> None: - super(FileTaskStep, self).__init__(**kwargs) + def __init__(self, *, task_file_path: str, context_path: str=None, values_file_path: str=None, values=None, **kwargs) -> None: + super(FileTaskStep, self).__init__(context_path=context_path, **kwargs) self.task_file_path = task_file_path self.values_file_path = values_file_path self.values = values - self.context_path = context_path self.type = 'FileTask' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters.py index 4b4d9611dfbb..8018f900e7b3 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters.py @@ -17,6 +17,9 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param task_file_path: The task template/definition file path relative to @@ -29,11 +32,6 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -41,11 +39,11 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'task_file_path': {'key': 'taskFilePath', 'type': 'str'}, 'values_file_path': {'key': 'valuesFilePath', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } def __init__(self, **kwargs): @@ -53,5 +51,4 @@ def __init__(self, **kwargs): self.task_file_path = kwargs.get('task_file_path', None) self.values_file_path = kwargs.get('values_file_path', None) self.values = kwargs.get('values', None) - self.context_path = kwargs.get('context_path', None) self.type = 'FileTask' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters_py3.py index 95f7acab5e3f..9d29a725e181 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/file_task_step_update_parameters_py3.py @@ -17,6 +17,9 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str :param task_file_path: The task template/definition file path relative to @@ -29,11 +32,6 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters): when running a task. :type values: list[~azure.mgmt.containerregistry.v2018_09_01.models.SetValue] - :param context_path: The URL(absolute or relative) of the source context - for the build task. - If it is relative, the context will be relative to the source repository - URL of the build task. - :type context_path: str """ _validation = { @@ -41,17 +39,16 @@ class FileTaskStepUpdateParameters(TaskStepUpdateParameters): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'task_file_path': {'key': 'taskFilePath', 'type': 'str'}, 'values_file_path': {'key': 'valuesFilePath', 'type': 'str'}, 'values': {'key': 'values', 'type': '[SetValue]'}, - 'context_path': {'key': 'contextPath', 'type': 'str'}, } - def __init__(self, *, task_file_path: str=None, values_file_path: str=None, values=None, context_path: str=None, **kwargs) -> None: - super(FileTaskStepUpdateParameters, self).__init__(**kwargs) + def __init__(self, *, context_path: str=None, task_file_path: str=None, values_file_path: str=None, values=None, **kwargs) -> None: + super(FileTaskStepUpdateParameters, self).__init__(context_path=context_path, **kwargs) self.task_file_path = task_file_path self.values_file_path = values_file_path self.values = values - self.context_path = context_path self.type = 'FileTask' diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run.py index 37939d0b4251..246a9872913a 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run.py @@ -34,7 +34,7 @@ class Run(ProxyResource): :param last_updated_time: The last updated time for the run. :type last_updated_time: datetime :param run_type: The type of run. Possible values include: 'QuickBuild', - 'AutoBuild' + 'QuickRun', 'AutoBuild', 'AutoRun' :type run_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.RunType :param create_time: The time the run was scheduled. @@ -44,13 +44,13 @@ class Run(ProxyResource): :param finish_time: The time the run finished. :type finish_time: datetime :param output_images: The list of all images that were generated from the - run. This is applicable if the run is of type Build. + run. This is applicable if the run generates base image dependencies. :type output_images: list[~azure.mgmt.containerregistry.v2018_09_01.models.ImageDescriptor] :param task: The task against which run was scheduled. :type task: str :param image_update_trigger: The image update trigger that caused the run. - This is applicable if the task is of build type. + This is applicable if the task has base image trigger configured. :type image_update_trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.ImageUpdateTrigger :param source_trigger: The source trigger that caused the run. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter.py index 636dbfa86891..eb87112b749e 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter.py @@ -18,7 +18,7 @@ class RunFilter(Model): :param run_id: The unique identifier for the run. :type run_id: str :param run_type: The type of run. Possible values include: 'QuickBuild', - 'AutoBuild' + 'QuickRun', 'AutoBuild', 'AutoRun' :type run_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.RunType :param status: The current status of the run. Possible values include: diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter_py3.py index 41534281efba..3c37fdffd4ae 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_filter_py3.py @@ -18,7 +18,7 @@ class RunFilter(Model): :param run_id: The unique identifier for the run. :type run_id: str :param run_type: The type of run. Possible values include: 'QuickBuild', - 'AutoBuild' + 'QuickRun', 'AutoBuild', 'AutoRun' :type run_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.RunType :param status: The current status of the run. Possible values include: diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py index 7c72e5ba30b1..758059d25112 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/run_py3.py @@ -34,7 +34,7 @@ class Run(ProxyResource): :param last_updated_time: The last updated time for the run. :type last_updated_time: datetime :param run_type: The type of run. Possible values include: 'QuickBuild', - 'AutoBuild' + 'QuickRun', 'AutoBuild', 'AutoRun' :type run_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.RunType :param create_time: The time the run was scheduled. @@ -44,13 +44,13 @@ class Run(ProxyResource): :param finish_time: The time the run finished. :type finish_time: datetime :param output_images: The list of all images that were generated from the - run. This is applicable if the run is of type Build. + run. This is applicable if the run generates base image dependencies. :type output_images: list[~azure.mgmt.containerregistry.v2018_09_01.models.ImageDescriptor] :param task: The task against which run was scheduled. :type task: str :param image_update_trigger: The image update trigger that caused the run. - This is applicable if the task is of build type. + This is applicable if the task has base image trigger configured. :type image_update_trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.ImageUpdateTrigger :param source_trigger: The source trigger that caused the run. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger.py index da78e29a820f..2af96a68a937 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger.py @@ -25,8 +25,8 @@ class SourceTrigger(Model): the trigger. :type source_trigger_events: list[str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerEvent] - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_py3.py index 95f9e06a0f2a..0452f6364f93 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_py3.py @@ -25,8 +25,8 @@ class SourceTrigger(Model): the trigger. :type source_trigger_events: list[str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerEvent] - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters.py index e0773c1ec253..d4738894a459 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters.py @@ -25,8 +25,8 @@ class SourceTriggerUpdateParameters(Model): trigger. :type source_trigger_events: list[str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerEvent] - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters_py3.py index c758cdbc52ed..5eab5cb3f457 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_trigger_update_parameters_py3.py @@ -25,8 +25,8 @@ class SourceTriggerUpdateParameters(Model): trigger. :type source_trigger_events: list[str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerEvent] - :param status: The current status of build trigger. Possible values - include: 'Disabled', 'Enabled' + :param status: The current status of trigger. Possible values include: + 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus :param name: Required. The name of the trigger. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties.py index dee84fbdd8e5..a7f7f08651d3 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties.py @@ -26,6 +26,9 @@ class TaskStepProperties(Model): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str """ @@ -37,6 +40,7 @@ class TaskStepProperties(Model): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } @@ -47,4 +51,5 @@ class TaskStepProperties(Model): def __init__(self, **kwargs): super(TaskStepProperties, self).__init__(**kwargs) self.base_image_dependencies = None + self.context_path = kwargs.get('context_path', None) self.type = None diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties_py3.py index fa2d2518e01c..220dd96c2425 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_properties_py3.py @@ -26,6 +26,9 @@ class TaskStepProperties(Model): :ivar base_image_dependencies: List of base image dependencies for a step. :vartype base_image_dependencies: list[~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageDependency] + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str """ @@ -37,6 +40,7 @@ class TaskStepProperties(Model): _attribute_map = { 'base_image_dependencies': {'key': 'baseImageDependencies', 'type': '[BaseImageDependency]'}, + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } @@ -44,7 +48,8 @@ class TaskStepProperties(Model): 'type': {'Docker': 'DockerBuildStep', 'FileTask': 'FileTaskStep', 'EncodedTask': 'EncodedTaskStep'} } - def __init__(self, **kwargs) -> None: + def __init__(self, *, context_path: str=None, **kwargs) -> None: super(TaskStepProperties, self).__init__(**kwargs) self.base_image_dependencies = None + self.context_path = context_path self.type = None diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters.py index cc084aa17d4e..31f80ea40402 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters.py @@ -21,6 +21,9 @@ class TaskStepUpdateParameters(Model): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str """ @@ -30,6 +33,7 @@ class TaskStepUpdateParameters(Model): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } @@ -39,4 +43,5 @@ class TaskStepUpdateParameters(Model): def __init__(self, **kwargs): super(TaskStepUpdateParameters, self).__init__(**kwargs) + self.context_path = kwargs.get('context_path', None) self.type = None diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters_py3.py index 54452d288a82..625d194e01f9 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_step_update_parameters_py3.py @@ -21,6 +21,9 @@ class TaskStepUpdateParameters(Model): All required parameters must be populated in order to send to Azure. + :param context_path: The URL(absolute or relative) of the source context + for the task step. + :type context_path: str :param type: Required. Constant filled by server. :type type: str """ @@ -30,6 +33,7 @@ class TaskStepUpdateParameters(Model): } _attribute_map = { + 'context_path': {'key': 'contextPath', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } @@ -37,6 +41,7 @@ class TaskStepUpdateParameters(Model): 'type': {'Docker': 'DockerBuildStepUpdateParameters', 'FileTask': 'FileTaskStepUpdateParameters', 'EncodedTask': 'EncodedTaskStepUpdateParameters'} } - def __init__(self, **kwargs) -> None: + def __init__(self, *, context_path: str=None, **kwargs) -> None: super(TaskStepUpdateParameters, self).__init__(**kwargs) + self.context_path = context_path self.type = None diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties.py index cf1f415e32a2..9c683c3f0977 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties.py @@ -13,7 +13,7 @@ class TriggerProperties(Model): - """The properties of a build trigger. + """The properties of a trigger. :param source_triggers: The collection of triggers based on source code repository. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties_py3.py index bbacfbf9f98b..80707da8fe49 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_properties_py3.py @@ -13,7 +13,7 @@ class TriggerProperties(Model): - """The properties of a build trigger. + """The properties of a trigger. :param source_triggers: The collection of triggers based on source code repository. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters.py index deacaa5eb7dc..1a1f5907c52c 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters.py @@ -13,7 +13,7 @@ class TriggerUpdateParameters(Model): - """The properties for updating build triggers. + """The properties for updating triggers. :param source_triggers: The collection of triggers based on source code repository. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters_py3.py index 928dd514dc1e..12c619cf2e11 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/trigger_update_parameters_py3.py @@ -13,7 +13,7 @@ class TriggerUpdateParameters(Model): - """The properties for updating build triggers. + """The properties for updating triggers. :param source_triggers: The collection of triggers based on source code repository.