From aaf99782e463ecd9c3987e35698f5b6b9adecbf7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 20:05:57 +0000 Subject: [PATCH 1/6] Generated from 5841d4593357176cf82d1ebd84fb8f62c951728a Add two examples for CustomCredentials as well as target --- .../v2018_09_01/models/__init__.py | 16 ++++++++ ...tainer_registry_management_client_enums.py | 11 +++++ .../v2018_09_01/models/credentials.py | 41 +++++++++++++++++++ .../v2018_09_01/models/credentials_py3.py | 41 +++++++++++++++++++ .../models/custom_registry_credentials.py | 37 +++++++++++++++++ .../models/custom_registry_credentials_py3.py | 37 +++++++++++++++++ .../models/docker_build_request.py | 13 +++++- .../models/docker_build_request_py3.py | 15 ++++++- .../v2018_09_01/models/docker_build_step.py | 5 +++ .../models/docker_build_step_py3.py | 7 +++- .../docker_build_step_update_parameters.py | 5 +++ ...docker_build_step_update_parameters_py3.py | 7 +++- .../models/encoded_task_run_request.py | 8 +++- .../models/encoded_task_run_request_py3.py | 10 ++++- .../models/file_task_run_request.py | 8 +++- .../models/file_task_run_request_py3.py | 10 ++++- .../v2018_09_01/models/run.py | 20 ++++++--- .../v2018_09_01/models/run_py3.py | 22 +++++++--- .../v2018_09_01/models/secret_object.py | 41 +++++++++++++++++++ .../v2018_09_01/models/secret_object_py3.py | 41 +++++++++++++++++++ .../v2018_09_01/models/source_properties.py | 2 +- .../models/source_properties_py3.py | 2 +- .../models/source_registry_credentials.py | 34 +++++++++++++++ .../models/source_registry_credentials_py3.py | 34 +++++++++++++++ .../models/source_update_parameters.py | 2 +- .../models/source_update_parameters_py3.py | 2 +- .../v2018_09_01/models/task.py | 8 +++- .../v2018_09_01/models/task_py3.py | 10 ++++- .../models/task_update_parameters.py | 6 +++ .../models/task_update_parameters_py3.py | 8 +++- 30 files changed, 473 insertions(+), 30 deletions(-) create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials_py3.py diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py index 851f7467b403..9e7952bf6eac 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py @@ -69,6 +69,10 @@ from .source_trigger_py3 import SourceTrigger from .base_image_trigger_py3 import BaseImageTrigger from .trigger_properties_py3 import TriggerProperties + from .source_registry_credentials_py3 import SourceRegistryCredentials + from .secret_object_py3 import SecretObject + from .custom_registry_credentials_py3 import CustomRegistryCredentials + from .credentials_py3 import Credentials from .task_py3 import Task from .platform_update_parameters_py3 import PlatformUpdateParameters from .task_step_update_parameters_py3 import TaskStepUpdateParameters @@ -151,6 +155,10 @@ from .source_trigger import SourceTrigger from .base_image_trigger import BaseImageTrigger from .trigger_properties import TriggerProperties + from .source_registry_credentials import SourceRegistryCredentials + from .secret_object import SecretObject + from .custom_registry_credentials import CustomRegistryCredentials + from .credentials import Credentials from .task import Task from .platform_update_parameters import PlatformUpdateParameters from .task_step_update_parameters import TaskStepUpdateParameters @@ -205,6 +213,8 @@ SourceTriggerEvent, TriggerStatus, BaseImageTriggerType, + SourceRegistryLoginMode, + SecretObjectType, ) __all__ = [ @@ -267,6 +277,10 @@ 'SourceTrigger', 'BaseImageTrigger', 'TriggerProperties', + 'SourceRegistryCredentials', + 'SecretObject', + 'CustomRegistryCredentials', + 'Credentials', 'Task', 'PlatformUpdateParameters', 'TaskStepUpdateParameters', @@ -320,4 +334,6 @@ 'SourceTriggerEvent', 'TriggerStatus', 'BaseImageTriggerType', + 'SourceRegistryLoginMode', + 'SecretObjectType', ] 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 901b1c0b0046..b40fc116b2f0 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 @@ -173,3 +173,14 @@ class BaseImageTriggerType(str, Enum): all = "All" runtime = "Runtime" + + +class SourceRegistryLoginMode(str, Enum): + + none = "None" + default = "Default" + + +class SecretObjectType(str, Enum): + + opaque = "Opaque" diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials.py new file mode 100644 index 000000000000..9fe2fe6fef42 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class Credentials(Model): + """The parameters that describes a set of credentials that will be used when a + run is invoked. + + :param source_registry: Describes the credential parameters for accessing + the source registry. + :type source_registry: + ~azure.mgmt.containerregistry.v2018_09_01.models.SourceRegistryCredentials + :param custom_registries: Describes the credential parameters for + accessing other custom registries. The key + for the dictionary item will be the registry login server + (myregistry.azurecr.io) and + the value of the item will be the registry credentials for accessing the + registry. + :type custom_registries: dict[str, + ~azure.mgmt.containerregistry.v2018_09_01.models.CustomRegistryCredentials] + """ + + _attribute_map = { + 'source_registry': {'key': 'sourceRegistry', 'type': 'SourceRegistryCredentials'}, + 'custom_registries': {'key': 'customRegistries', 'type': '{CustomRegistryCredentials}'}, + } + + def __init__(self, **kwargs): + super(Credentials, self).__init__(**kwargs) + self.source_registry = kwargs.get('source_registry', None) + self.custom_registries = kwargs.get('custom_registries', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials_py3.py new file mode 100644 index 000000000000..c656141f74fa --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/credentials_py3.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class Credentials(Model): + """The parameters that describes a set of credentials that will be used when a + run is invoked. + + :param source_registry: Describes the credential parameters for accessing + the source registry. + :type source_registry: + ~azure.mgmt.containerregistry.v2018_09_01.models.SourceRegistryCredentials + :param custom_registries: Describes the credential parameters for + accessing other custom registries. The key + for the dictionary item will be the registry login server + (myregistry.azurecr.io) and + the value of the item will be the registry credentials for accessing the + registry. + :type custom_registries: dict[str, + ~azure.mgmt.containerregistry.v2018_09_01.models.CustomRegistryCredentials] + """ + + _attribute_map = { + 'source_registry': {'key': 'sourceRegistry', 'type': 'SourceRegistryCredentials'}, + 'custom_registries': {'key': 'customRegistries', 'type': '{CustomRegistryCredentials}'}, + } + + def __init__(self, *, source_registry=None, custom_registries=None, **kwargs) -> None: + super(Credentials, self).__init__(**kwargs) + self.source_registry = source_registry + self.custom_registries = custom_registries diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials.py new file mode 100644 index 000000000000..eb3301e5cecc --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials.py @@ -0,0 +1,37 @@ +# 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 msrest.serialization import Model + + +class CustomRegistryCredentials(Model): + """Describes the credentials that will be used to access a custom registry + during a run. + + :param user_name: The username for logging into the custom registry. + :type user_name: + ~azure.mgmt.containerregistry.v2018_09_01.models.SecretObject + :param password: The password for logging into the custom registry. The + password is a secret + object that allows multiple ways of providing the value for it. + :type password: + ~azure.mgmt.containerregistry.v2018_09_01.models.SecretObject + """ + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'SecretObject'}, + 'password': {'key': 'password', 'type': 'SecretObject'}, + } + + def __init__(self, **kwargs): + super(CustomRegistryCredentials, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials_py3.py new file mode 100644 index 000000000000..b89a959d7869 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/custom_registry_credentials_py3.py @@ -0,0 +1,37 @@ +# 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 msrest.serialization import Model + + +class CustomRegistryCredentials(Model): + """Describes the credentials that will be used to access a custom registry + during a run. + + :param user_name: The username for logging into the custom registry. + :type user_name: + ~azure.mgmt.containerregistry.v2018_09_01.models.SecretObject + :param password: The password for logging into the custom registry. The + password is a secret + object that allows multiple ways of providing the value for it. + :type password: + ~azure.mgmt.containerregistry.v2018_09_01.models.SecretObject + """ + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'SecretObject'}, + 'password': {'key': 'password', 'type': 'SecretObject'}, + } + + def __init__(self, *, user_name=None, password=None, **kwargs) -> None: + super(CustomRegistryCredentials, self).__init__(**kwargs) + self.user_name = user_name + self.password = password 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 7310dd6a9f2f..7899714858c3 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 @@ -34,6 +34,9 @@ class DockerBuildRequest(RunRequest): :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str + :param target: Gets or sets the name of the target build stage for the + docker build. + :type target: str :param arguments: The collection of override arguments to be used when executing the run. :type arguments: @@ -48,10 +51,14 @@ class DockerBuildRequest(RunRequest): :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 repository. + 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 + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -68,11 +75,13 @@ class DockerBuildRequest(RunRequest): 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'credentials': {'key': 'credentials', 'type': 'Credentials'}, } def __init__(self, **kwargs): @@ -81,9 +90,11 @@ def __init__(self, **kwargs): self.is_push_enabled = kwargs.get('is_push_enabled', True) self.no_cache = kwargs.get('no_cache', False) self.docker_file_path = kwargs.get('docker_file_path', None) + self.target = kwargs.get('target', None) self.arguments = kwargs.get('arguments', 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.credentials = kwargs.get('credentials', 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 d03998190503..ae793c67f77d 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 @@ -34,6 +34,9 @@ class DockerBuildRequest(RunRequest): :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str + :param target: Gets or sets the name of the target build stage for the + docker build. + :type target: str :param arguments: The collection of override arguments to be used when executing the run. :type arguments: @@ -48,10 +51,14 @@ class DockerBuildRequest(RunRequest): :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 repository. + 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 + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -68,22 +75,26 @@ class DockerBuildRequest(RunRequest): 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, 'timeout': {'key': 'timeout', 'type': 'int'}, 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'credentials': {'key': 'credentials', 'type': 'Credentials'}, } - 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: + 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, target: str=None, arguments=None, timeout: int=3600, agent_configuration=None, source_location: str=None, credentials=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.target = target self.arguments = arguments self.timeout = timeout self.platform = platform self.agent_configuration = agent_configuration self.source_location = source_location + self.credentials = credentials 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 18d487dc8878..661981083792 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 @@ -43,6 +43,9 @@ class DockerBuildStep(TaskStepProperties): :param docker_file_path: Required. The Docker file path relative to the source context. :type docker_file_path: str + :param target: Gets or sets the name of the target build stage for the + docker build. + :type target: str :param arguments: The collection of override arguments to be used when executing this build step. :type arguments: @@ -64,6 +67,7 @@ class DockerBuildStep(TaskStepProperties): 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, } @@ -73,5 +77,6 @@ def __init__(self, **kwargs): self.is_push_enabled = kwargs.get('is_push_enabled', True) self.no_cache = kwargs.get('no_cache', False) self.docker_file_path = kwargs.get('docker_file_path', None) + self.target = kwargs.get('target', None) self.arguments = kwargs.get('arguments', 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 317db832f540..c1554fec5056 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 @@ -43,6 +43,9 @@ class DockerBuildStep(TaskStepProperties): :param docker_file_path: Required. The Docker file path relative to the source context. :type docker_file_path: str + :param target: Gets or sets the name of the target build stage for the + docker build. + :type target: str :param arguments: The collection of override arguments to be used when executing this build step. :type arguments: @@ -64,14 +67,16 @@ class DockerBuildStep(TaskStepProperties): 'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'}, 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, } - def __init__(self, *, docker_file_path: str, context_path: str=None, context_access_token: str=None, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, arguments=None, **kwargs) -> None: + def __init__(self, *, docker_file_path: str, context_path: str=None, context_access_token: str=None, image_names=None, is_push_enabled: bool=True, no_cache: bool=False, target: str=None, arguments=None, **kwargs) -> None: super(DockerBuildStep, self).__init__(context_path=context_path, context_access_token=context_access_token, **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.target = target self.arguments = arguments 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 4e5eae0ee864..2f2534c12e00 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 @@ -41,6 +41,9 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] + :param target: Gets or sets the name of the target build stage for the + docker build. + :type target: str """ _validation = { @@ -56,6 +59,7 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, + 'target': {'key': 'target', 'type': 'str'}, } def __init__(self, **kwargs): @@ -65,4 +69,5 @@ 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.target = kwargs.get('target', 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 c489aa168a06..5d8f5d23fe5b 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 @@ -41,6 +41,9 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] + :param target: Gets or sets the name of the target build stage for the + docker build. + :type target: str """ _validation = { @@ -56,13 +59,15 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): 'no_cache': {'key': 'noCache', 'type': 'bool'}, 'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'}, 'arguments': {'key': 'arguments', 'type': '[Argument]'}, + 'target': {'key': 'target', 'type': 'str'}, } - def __init__(self, *, context_path: str=None, context_access_token: str=None, image_names=None, is_push_enabled: bool=None, no_cache: bool=None, docker_file_path: str=None, arguments=None, **kwargs) -> None: + def __init__(self, *, context_path: str=None, context_access_token: str=None, image_names=None, is_push_enabled: bool=None, no_cache: bool=None, docker_file_path: str=None, arguments=None, target: str=None, **kwargs) -> None: super(DockerBuildStepUpdateParameters, self).__init__(context_path=context_path, context_access_token=context_access_token, **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.target = target 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 52c7020757d2..7e4200c9d4cc 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 @@ -42,10 +42,14 @@ class EncodedTaskRunRequest(RunRequest): :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 repository. + 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 + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -65,6 +69,7 @@ class EncodedTaskRunRequest(RunRequest): 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'credentials': {'key': 'credentials', 'type': 'Credentials'}, } def __init__(self, **kwargs): @@ -76,4 +81,5 @@ def __init__(self, **kwargs): self.platform = kwargs.get('platform', None) self.agent_configuration = kwargs.get('agent_configuration', None) self.source_location = kwargs.get('source_location', None) + self.credentials = kwargs.get('credentials', 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 56be85f1c1e1..8c5eb1271bd6 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 @@ -42,10 +42,14 @@ class EncodedTaskRunRequest(RunRequest): :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 repository. + 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 + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -65,9 +69,10 @@ class EncodedTaskRunRequest(RunRequest): 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'credentials': {'key': 'credentials', 'type': 'Credentials'}, } - 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: + 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, credentials=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 @@ -76,4 +81,5 @@ def __init__(self, *, encoded_task_content: str, platform, is_archive_enabled: b self.platform = platform self.agent_configuration = agent_configuration self.source_location = source_location + self.credentials = credentials self.type = 'EncodedTaskRunRequest' 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 789c320bcdfb..d718ab81b061 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 @@ -42,10 +42,14 @@ class FileTaskRunRequest(RunRequest): :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 repository. + 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 + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -65,6 +69,7 @@ class FileTaskRunRequest(RunRequest): 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'credentials': {'key': 'credentials', 'type': 'Credentials'}, } def __init__(self, **kwargs): @@ -76,4 +81,5 @@ def __init__(self, **kwargs): self.platform = kwargs.get('platform', None) self.agent_configuration = kwargs.get('agent_configuration', None) self.source_location = kwargs.get('source_location', None) + self.credentials = kwargs.get('credentials', 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 6779fa9e73fe..14ba8fdd4a80 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 @@ -42,10 +42,14 @@ class FileTaskRunRequest(RunRequest): :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 repository. + 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 + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -65,9 +69,10 @@ class FileTaskRunRequest(RunRequest): 'platform': {'key': 'platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'credentials': {'key': 'credentials', 'type': 'Credentials'}, } - 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: + 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, credentials=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 @@ -76,4 +81,5 @@ def __init__(self, *, task_file_path: str, platform, is_archive_enabled: bool=Fa self.platform = platform self.agent_configuration = agent_configuration self.source_location = source_location + self.credentials = credentials self.type = 'FileTaskRunRequest' 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 246a9872913a..0fccd0dc35dc 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 @@ -56,9 +56,6 @@ class Run(ProxyResource): :param source_trigger: The source trigger that caused the run. :type source_trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerDescriptor - :param is_archive_enabled: The value that indicates whether archiving is - enabled or not. Default value: False . - :type is_archive_enabled: bool :param platform: The platform properties against which the run will happen. :type platform: @@ -66,11 +63,20 @@ class Run(ProxyResource): :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_registry_auth: The scope of the credentials that were used + to login to the source registry during this run. + :type source_registry_auth: str + :param custom_registries: The list of custom registries that were logged + in during this run. + :type custom_registries: list[str] :param provisioning_state: The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' :type provisioning_state: str or ~azure.mgmt.containerregistry.v2018_09_01.models.ProvisioningState + :param is_archive_enabled: The value that indicates whether archiving is + enabled or not. Default value: False . + :type is_archive_enabled: bool """ _validation = { @@ -94,10 +100,12 @@ class Run(ProxyResource): 'task': {'key': 'properties.task', 'type': 'str'}, 'image_update_trigger': {'key': 'properties.imageUpdateTrigger', 'type': 'ImageUpdateTrigger'}, 'source_trigger': {'key': 'properties.sourceTrigger', 'type': 'SourceTriggerDescriptor'}, - 'is_archive_enabled': {'key': 'properties.isArchiveEnabled', 'type': 'bool'}, 'platform': {'key': 'properties.platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'properties.agentConfiguration', 'type': 'AgentProperties'}, + 'source_registry_auth': {'key': 'properties.sourceRegistryAuth', 'type': 'str'}, + 'custom_registries': {'key': 'properties.customRegistries', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'is_archive_enabled': {'key': 'properties.isArchiveEnabled', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -113,7 +121,9 @@ def __init__(self, **kwargs): self.task = kwargs.get('task', None) self.image_update_trigger = kwargs.get('image_update_trigger', None) self.source_trigger = kwargs.get('source_trigger', None) - self.is_archive_enabled = kwargs.get('is_archive_enabled', False) self.platform = kwargs.get('platform', None) self.agent_configuration = kwargs.get('agent_configuration', None) + self.source_registry_auth = kwargs.get('source_registry_auth', None) + self.custom_registries = kwargs.get('custom_registries', None) self.provisioning_state = kwargs.get('provisioning_state', None) + self.is_archive_enabled = kwargs.get('is_archive_enabled', False) 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 758059d25112..5916b16847c7 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 @@ -56,9 +56,6 @@ class Run(ProxyResource): :param source_trigger: The source trigger that caused the run. :type source_trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerDescriptor - :param is_archive_enabled: The value that indicates whether archiving is - enabled or not. Default value: False . - :type is_archive_enabled: bool :param platform: The platform properties against which the run will happen. :type platform: @@ -66,11 +63,20 @@ class Run(ProxyResource): :param agent_configuration: The machine configuration of the run agent. :type agent_configuration: ~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties + :param source_registry_auth: The scope of the credentials that were used + to login to the source registry during this run. + :type source_registry_auth: str + :param custom_registries: The list of custom registries that were logged + in during this run. + :type custom_registries: list[str] :param provisioning_state: The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' :type provisioning_state: str or ~azure.mgmt.containerregistry.v2018_09_01.models.ProvisioningState + :param is_archive_enabled: The value that indicates whether archiving is + enabled or not. Default value: False . + :type is_archive_enabled: bool """ _validation = { @@ -94,13 +100,15 @@ class Run(ProxyResource): 'task': {'key': 'properties.task', 'type': 'str'}, 'image_update_trigger': {'key': 'properties.imageUpdateTrigger', 'type': 'ImageUpdateTrigger'}, 'source_trigger': {'key': 'properties.sourceTrigger', 'type': 'SourceTriggerDescriptor'}, - 'is_archive_enabled': {'key': 'properties.isArchiveEnabled', 'type': 'bool'}, 'platform': {'key': 'properties.platform', 'type': 'PlatformProperties'}, 'agent_configuration': {'key': 'properties.agentConfiguration', 'type': 'AgentProperties'}, + 'source_registry_auth': {'key': 'properties.sourceRegistryAuth', 'type': 'str'}, + 'custom_registries': {'key': 'properties.customRegistries', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'is_archive_enabled': {'key': 'properties.isArchiveEnabled', 'type': 'bool'}, } - def __init__(self, *, run_id: str=None, status=None, last_updated_time=None, run_type=None, create_time=None, start_time=None, finish_time=None, output_images=None, task: str=None, image_update_trigger=None, source_trigger=None, is_archive_enabled: bool=False, platform=None, agent_configuration=None, provisioning_state=None, **kwargs) -> None: + def __init__(self, *, run_id: str=None, status=None, last_updated_time=None, run_type=None, create_time=None, start_time=None, finish_time=None, output_images=None, task: str=None, image_update_trigger=None, source_trigger=None, platform=None, agent_configuration=None, source_registry_auth: str=None, custom_registries=None, provisioning_state=None, is_archive_enabled: bool=False, **kwargs) -> None: super(Run, self).__init__(**kwargs) self.run_id = run_id self.status = status @@ -113,7 +121,9 @@ def __init__(self, *, run_id: str=None, status=None, last_updated_time=None, run self.task = task self.image_update_trigger = image_update_trigger self.source_trigger = source_trigger - self.is_archive_enabled = is_archive_enabled self.platform = platform self.agent_configuration = agent_configuration + self.source_registry_auth = source_registry_auth + self.custom_registries = custom_registries self.provisioning_state = provisioning_state + self.is_archive_enabled = is_archive_enabled diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py new file mode 100644 index 000000000000..81bbd3c2b316 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class SecretObject(Model): + """Describes the properties of a secret object value. + + :param value: The value of the secret. The format of this value will be + determined + based on the type of the secret object. For example, if the type is of + vault secret, + the value will be the URL to the vault secret. If the type is Opaque, the + vaule will be + used as is without any modification. + :type value: str + :param type: The type of the secret object which determines how the value + of the secret object has to be + interpreted. Possible values include: 'Opaque' + :type type: str or + ~azure.mgmt.containerregistry.v2018_09_01.models.SecretObjectType + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretObject, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py new file mode 100644 index 000000000000..7ef9bfd52501 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class SecretObject(Model): + """Describes the properties of a secret object value. + + :param value: The value of the secret. The format of this value will be + determined + based on the type of the secret object. For example, if the type is of + vault secret, + the value will be the URL to the vault secret. If the type is Opaque, the + vaule will be + used as is without any modification. + :type value: str + :param type: The type of the secret object which determines how the value + of the secret object has to be + interpreted. Possible values include: 'Opaque' + :type type: str or + ~azure.mgmt.containerregistry.v2018_09_01.models.SecretObjectType + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, type=None, **kwargs) -> None: + super(SecretObject, self).__init__(**kwargs) + self.value = value + self.type = type diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py index 1a5a6038a623..bc3e6cd13811 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py @@ -22,7 +22,7 @@ class SourceProperties(Model): :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType :param repository_url: Required. The full URL to the source code - repository + respository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py index b6a92008f6f6..b98beec8ab31 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py @@ -22,7 +22,7 @@ class SourceProperties(Model): :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType :param repository_url: Required. The full URL to the source code - repository + respository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials.py new file mode 100644 index 000000000000..4562b574f0d6 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials.py @@ -0,0 +1,34 @@ +# 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 msrest.serialization import Model + + +class SourceRegistryCredentials(Model): + """Describes the credential parameters for accessing the source registry. + + :param login_mode: The authentication mode which determines the source + registry login scope. The credentials for the source registry + will be generated using the given scope. These credentials will be used to + login to + the source registry during the run. Possible values include: 'None', + 'Default' + :type login_mode: str or + ~azure.mgmt.containerregistry.v2018_09_01.models.SourceRegistryLoginMode + """ + + _attribute_map = { + 'login_mode': {'key': 'loginMode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SourceRegistryCredentials, self).__init__(**kwargs) + self.login_mode = kwargs.get('login_mode', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials_py3.py new file mode 100644 index 000000000000..5ae1124a8991 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_registry_credentials_py3.py @@ -0,0 +1,34 @@ +# 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 msrest.serialization import Model + + +class SourceRegistryCredentials(Model): + """Describes the credential parameters for accessing the source registry. + + :param login_mode: The authentication mode which determines the source + registry login scope. The credentials for the source registry + will be generated using the given scope. These credentials will be used to + login to + the source registry during the run. Possible values include: 'None', + 'Default' + :type login_mode: str or + ~azure.mgmt.containerregistry.v2018_09_01.models.SourceRegistryLoginMode + """ + + _attribute_map = { + 'login_mode': {'key': 'loginMode', 'type': 'str'}, + } + + def __init__(self, *, login_mode=None, **kwargs) -> None: + super(SourceRegistryCredentials, self).__init__(**kwargs) + self.login_mode = login_mode diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py index 83177663cb75..8233824065bf 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py @@ -19,7 +19,7 @@ class SourceUpdateParameters(Model): values include: 'Github', 'VisualStudioTeamService' :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType - :param repository_url: The full URL to the source code repository + :param repository_url: The full URL to the source code respository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py index c0c88596783b..80002e5624ab 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py @@ -19,7 +19,7 @@ class SourceUpdateParameters(Model): values include: 'Github', 'VisualStudioTeamService' :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType - :param repository_url: The full URL to the source code repository + :param repository_url: The full URL to the source code respository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py index da65f5e3e5c4..e49e5a5beabe 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py @@ -14,7 +14,7 @@ class Task(Resource): """The task that has the ARM resource and task properties. - The task will have all information to schedule a run against it. + The task will have all information to schedule a run against it. Variables are only populated by the server, and will be ignored when sending a request. @@ -58,6 +58,10 @@ class Task(Resource): :param trigger: The properties that describe all triggers for the task. :type trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerProperties + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -86,6 +90,7 @@ class Task(Resource): 'timeout': {'key': 'properties.timeout', 'type': 'int'}, 'step': {'key': 'properties.step', 'type': 'TaskStepProperties'}, 'trigger': {'key': 'properties.trigger', 'type': 'TriggerProperties'}, + 'credentials': {'key': 'properties.credentials', 'type': 'Credentials'}, } def __init__(self, **kwargs): @@ -98,3 +103,4 @@ def __init__(self, **kwargs): self.timeout = kwargs.get('timeout', 3600) self.step = kwargs.get('step', None) self.trigger = kwargs.get('trigger', None) + self.credentials = kwargs.get('credentials', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py index f2b6b150bb6d..a074d5e8c60e 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py @@ -14,7 +14,7 @@ class Task(Resource): """The task that has the ARM resource and task properties. - The task will have all information to schedule a run against it. + The task will have all information to schedule a run against it. Variables are only populated by the server, and will be ignored when sending a request. @@ -58,6 +58,10 @@ class Task(Resource): :param trigger: The properties that describe all triggers for the task. :type trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerProperties + :param credentials: The properties that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials """ _validation = { @@ -86,9 +90,10 @@ class Task(Resource): 'timeout': {'key': 'properties.timeout', 'type': 'int'}, 'step': {'key': 'properties.step', 'type': 'TaskStepProperties'}, 'trigger': {'key': 'properties.trigger', 'type': 'TriggerProperties'}, + 'credentials': {'key': 'properties.credentials', 'type': 'Credentials'}, } - def __init__(self, *, location: str, platform, step, tags=None, status=None, agent_configuration=None, timeout: int=3600, trigger=None, **kwargs) -> None: + def __init__(self, *, location: str, platform, step, tags=None, status=None, agent_configuration=None, timeout: int=3600, trigger=None, credentials=None, **kwargs) -> None: super(Task, self).__init__(location=location, tags=tags, **kwargs) self.provisioning_state = None self.creation_date = None @@ -98,3 +103,4 @@ def __init__(self, *, location: str, platform, step, tags=None, status=None, age self.timeout = timeout self.step = step self.trigger = trigger + self.credentials = credentials diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters.py index d9bdc15a390f..5f446833b893 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters.py @@ -34,6 +34,10 @@ class TaskUpdateParameters(Model): :param trigger: The properties for updating trigger properties. :type trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerUpdateParameters + :param credentials: The parameters that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials :param tags: The ARM resource tags. :type tags: dict[str, str] """ @@ -45,6 +49,7 @@ class TaskUpdateParameters(Model): 'timeout': {'key': 'properties.timeout', 'type': 'int'}, 'step': {'key': 'properties.step', 'type': 'TaskStepUpdateParameters'}, 'trigger': {'key': 'properties.trigger', 'type': 'TriggerUpdateParameters'}, + 'credentials': {'key': 'properties.credentials', 'type': 'Credentials'}, 'tags': {'key': 'tags', 'type': '{str}'}, } @@ -56,4 +61,5 @@ def __init__(self, **kwargs): self.timeout = kwargs.get('timeout', None) self.step = kwargs.get('step', None) self.trigger = kwargs.get('trigger', None) + self.credentials = kwargs.get('credentials', None) self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters_py3.py index 4a257e6247d4..3a2b3963a902 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_update_parameters_py3.py @@ -34,6 +34,10 @@ class TaskUpdateParameters(Model): :param trigger: The properties for updating trigger properties. :type trigger: ~azure.mgmt.containerregistry.v2018_09_01.models.TriggerUpdateParameters + :param credentials: The parameters that describes a set of credentials + that will be used when this run is invoked. + :type credentials: + ~azure.mgmt.containerregistry.v2018_09_01.models.Credentials :param tags: The ARM resource tags. :type tags: dict[str, str] """ @@ -45,10 +49,11 @@ class TaskUpdateParameters(Model): 'timeout': {'key': 'properties.timeout', 'type': 'int'}, 'step': {'key': 'properties.step', 'type': 'TaskStepUpdateParameters'}, 'trigger': {'key': 'properties.trigger', 'type': 'TriggerUpdateParameters'}, + 'credentials': {'key': 'properties.credentials', 'type': 'Credentials'}, 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, status=None, platform=None, agent_configuration=None, timeout: int=None, step=None, trigger=None, tags=None, **kwargs) -> None: + def __init__(self, *, status=None, platform=None, agent_configuration=None, timeout: int=None, step=None, trigger=None, credentials=None, tags=None, **kwargs) -> None: super(TaskUpdateParameters, self).__init__(**kwargs) self.status = status self.platform = platform @@ -56,4 +61,5 @@ def __init__(self, *, status=None, platform=None, agent_configuration=None, time self.timeout = timeout self.step = step self.trigger = trigger + self.credentials = credentials self.tags = tags From 775c543e61081ecbb5287337080905991904d992 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 22:33:10 +0000 Subject: [PATCH 2/6] Generated from eee2b8e1764c5ccdbcee33706612550b627d86e0 fix indentation --- .../containerregistry/v2018_09_01/models/secret_object.py | 6 ++---- .../v2018_09_01/models/secret_object_py3.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py index 81bbd3c2b316..9694b0bbd46d 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py @@ -17,10 +17,8 @@ class SecretObject(Model): :param value: The value of the secret. The format of this value will be determined - based on the type of the secret object. For example, if the type is of - vault secret, - the value will be the URL to the vault secret. If the type is Opaque, the - vaule will be + based on the type of the secret object. If the type is Opaque, the vaule + will be used as is without any modification. :type value: str :param type: The type of the secret object which determines how the value diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py index 7ef9bfd52501..d4c1f36fba2b 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py @@ -17,10 +17,8 @@ class SecretObject(Model): :param value: The value of the secret. The format of this value will be determined - based on the type of the secret object. For example, if the type is of - vault secret, - the value will be the URL to the vault secret. If the type is Opaque, the - vaule will be + based on the type of the secret object. If the type is Opaque, the vaule + will be used as is without any modification. :type value: str :param type: The type of the secret object which determines how the value From 123e4797ac0fa207faf842501d314bd750fda643 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 22:49:01 +0000 Subject: [PATCH 3/6] Generated from 545fd2f27c2b847c5c99cbfea7ceab77496b6652 fix spelling mistakes --- .../v2018_09_01/models/docker_build_request.py | 2 +- .../v2018_09_01/models/docker_build_request_py3.py | 2 +- .../v2018_09_01/models/encoded_task_run_request.py | 2 +- .../v2018_09_01/models/encoded_task_run_request_py3.py | 2 +- .../v2018_09_01/models/file_task_run_request.py | 2 +- .../v2018_09_01/models/file_task_run_request_py3.py | 2 +- .../containerregistry/v2018_09_01/models/source_properties.py | 2 +- .../v2018_09_01/models/source_properties_py3.py | 2 +- .../v2018_09_01/models/source_update_parameters.py | 2 +- .../v2018_09_01/models/source_update_parameters_py3.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) 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 7899714858c3..1bd4ee217c16 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 @@ -51,7 +51,7 @@ class DockerBuildRequest(RunRequest): :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. + context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. :type source_location: str 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 ae793c67f77d..f20b030a6d95 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 @@ -51,7 +51,7 @@ class DockerBuildRequest(RunRequest): :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. + context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. :type source_location: str 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 7e4200c9d4cc..a338a86c55af 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 @@ -42,7 +42,7 @@ class EncodedTaskRunRequest(RunRequest): :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. + context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. :type source_location: str 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 8c5eb1271bd6..192052a9b076 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 @@ -42,7 +42,7 @@ class EncodedTaskRunRequest(RunRequest): :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. + context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. :type source_location: str 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 d718ab81b061..5204b59f1909 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 @@ -42,7 +42,7 @@ class FileTaskRunRequest(RunRequest): :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. + context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. :type source_location: str 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 14ba8fdd4a80..6982222ae802 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 @@ -42,7 +42,7 @@ class FileTaskRunRequest(RunRequest): :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. + context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API. :type source_location: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py index bc3e6cd13811..1a5a6038a623 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties.py @@ -22,7 +22,7 @@ class SourceProperties(Model): :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType :param repository_url: Required. The full URL to the source code - respository + repository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py index b98beec8ab31..b6a92008f6f6 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_properties_py3.py @@ -22,7 +22,7 @@ class SourceProperties(Model): :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType :param repository_url: Required. The full URL to the source code - respository + repository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py index 8233824065bf..83177663cb75 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters.py @@ -19,7 +19,7 @@ class SourceUpdateParameters(Model): values include: 'Github', 'VisualStudioTeamService' :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType - :param repository_url: The full URL to the source code respository + :param repository_url: The full URL to the source code repository :type repository_url: str :param branch: The branch name of the source code. :type branch: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py index 80002e5624ab..c0c88596783b 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/source_update_parameters_py3.py @@ -19,7 +19,7 @@ class SourceUpdateParameters(Model): values include: 'Github', 'VisualStudioTeamService' :type source_control_type: str or ~azure.mgmt.containerregistry.v2018_09_01.models.SourceControlType - :param repository_url: The full URL to the source code respository + :param repository_url: The full URL to the source code repository :type repository_url: str :param branch: The branch name of the source code. :type branch: str From 4172e8669604b5a305025f75ec43280768eb2df0 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 22:54:46 +0000 Subject: [PATCH 4/6] Generated from 402080895fe9c70f459d4c145fbc2c0eca04845d vaule to value --- .../mgmt/containerregistry/v2018_09_01/models/secret_object.py | 2 +- .../containerregistry/v2018_09_01/models/secret_object_py3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py index 9694b0bbd46d..75712b7a9049 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py @@ -17,7 +17,7 @@ class SecretObject(Model): :param value: The value of the secret. The format of this value will be determined - based on the type of the secret object. If the type is Opaque, the vaule + based on the type of the secret object. If the type is Opaque, the value will be used as is without any modification. :type value: str diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py index d4c1f36fba2b..ae63388522b9 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py @@ -17,7 +17,7 @@ class SecretObject(Model): :param value: The value of the secret. The format of this value will be determined - based on the type of the secret object. If the type is Opaque, the vaule + based on the type of the secret object. If the type is Opaque, the value will be used as is without any modification. :type value: str From 3b8c3e1160cf4da5a371971accac04dcb17d4a22 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 17 Jan 2019 02:44:23 +0000 Subject: [PATCH 5/6] Generated from 7bcfc093ceef9320450d9fe00c27617d8739b32d update status code order --- .../azure/mgmt/containerregistry/v2018_09_01/models/task.py | 2 +- .../azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py index e49e5a5beabe..c27c062dcd5d 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py @@ -14,7 +14,7 @@ class Task(Resource): """The task that has the ARM resource and task properties. - The task will have all information to schedule a run against it. + The task will have all information to schedule a run against it. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py index a074d5e8c60e..bf8d41760735 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py @@ -14,7 +14,7 @@ class Task(Resource): """The task that has the ARM resource and task properties. - The task will have all information to schedule a run against it. + The task will have all information to schedule a run against it. Variables are only populated by the server, and will be ignored when sending a request. From daa673d3c0565fdbc23c269390bdf3659f654375 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 17 Jan 2019 20:02:10 +0000 Subject: [PATCH 6/6] Generated from e8f10437debc732031dc8a1138af24e90a528f67 remove gets or sets from description --- .../v2018_09_01/models/docker_build_request.py | 3 +-- .../v2018_09_01/models/docker_build_request_py3.py | 3 +-- .../containerregistry/v2018_09_01/models/docker_build_step.py | 3 +-- .../v2018_09_01/models/docker_build_step_py3.py | 3 +-- .../v2018_09_01/models/docker_build_step_update_parameters.py | 3 +-- .../models/docker_build_step_update_parameters_py3.py | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) 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 1bd4ee217c16..46bceb4b8c3e 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 @@ -34,8 +34,7 @@ class DockerBuildRequest(RunRequest): :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str - :param target: Gets or sets the name of the target build stage for the - docker build. + :param target: The name of the target build stage for the docker build. :type target: str :param arguments: The collection of override arguments to be used when executing the run. 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 f20b030a6d95..713fd4e39935 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 @@ -34,8 +34,7 @@ class DockerBuildRequest(RunRequest): :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str - :param target: Gets or sets the name of the target build stage for the - docker build. + :param target: The name of the target build stage for the docker build. :type target: str :param arguments: The collection of override arguments to be used when executing the run. 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 661981083792..c5c73ec9a94a 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 @@ -43,8 +43,7 @@ class DockerBuildStep(TaskStepProperties): :param docker_file_path: Required. The Docker file path relative to the source context. :type docker_file_path: str - :param target: Gets or sets the name of the target build stage for the - docker build. + :param target: The name of the target build stage for the docker build. :type target: str :param arguments: The collection of override arguments to be used when executing this build step. 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 c1554fec5056..d2e26ec8683e 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 @@ -43,8 +43,7 @@ class DockerBuildStep(TaskStepProperties): :param docker_file_path: Required. The Docker file path relative to the source context. :type docker_file_path: str - :param target: Gets or sets the name of the target build stage for the - docker build. + :param target: The name of the target build stage for the docker build. :type target: str :param arguments: The collection of override arguments to be used when executing this build step. 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 2f2534c12e00..322d2c385c1b 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 @@ -41,8 +41,7 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :param target: Gets or sets the name of the target build stage for the - docker build. + :param target: The name of the target build stage for the docker build. :type target: str """ 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 5d8f5d23fe5b..751fc564e35b 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 @@ -41,8 +41,7 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] - :param target: Gets or sets the name of the target build stage for the - docker build. + :param target: The name of the target build stage for the docker build. :type target: str """