diff --git a/azure-mgmt-containerregistry/HISTORY.rst b/azure-mgmt-containerregistry/HISTORY.rst index 26c785ba772e..77931b6e8c7e 100644 --- a/azure-mgmt-containerregistry/HISTORY.rst +++ b/azure-mgmt-containerregistry/HISTORY.rst @@ -3,6 +3,22 @@ Release History =============== +2.7.0 (2019-01-25) +++++++++++++++++++ + +**Features** + +- Model Run has a new parameter custom_registries +- Model Run has a new parameter source_registry_auth +- Model DockerBuildStepUpdateParameters has a new parameter target +- Model FileTaskRunRequest has a new parameter credentials +- Model DockerBuildRequest has a new parameter credentials +- Model DockerBuildRequest has a new parameter target +- Model TaskUpdateParameters has a new parameter credentials +- Model Task has a new parameter credentials +- Model EncodedTaskRunRequest has a new parameter credentials +- Model DockerBuildStep has a new parameter target + 2.6.0 (2019-01-02) ++++++++++++++++++ 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..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,6 +34,8 @@ class DockerBuildRequest(RunRequest): :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str + :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. :type arguments: @@ -52,6 +54,10 @@ class DockerBuildRequest(RunRequest): 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 +74,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 +89,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..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,6 +34,8 @@ class DockerBuildRequest(RunRequest): :param docker_file_path: Required. The Docker file path relative to the source location. :type docker_file_path: str + :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. :type arguments: @@ -52,6 +54,10 @@ class DockerBuildRequest(RunRequest): 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 +74,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..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,6 +43,8 @@ class DockerBuildStep(TaskStepProperties): :param docker_file_path: Required. The Docker file path relative to the source context. :type docker_file_path: str + :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. :type arguments: @@ -64,6 +66,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 +76,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..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,6 +43,8 @@ class DockerBuildStep(TaskStepProperties): :param docker_file_path: Required. The Docker file path relative to the source context. :type docker_file_path: str + :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. :type arguments: @@ -64,14 +66,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..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,6 +41,8 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] + :param target: The name of the target build stage for the docker build. + :type target: str """ _validation = { @@ -56,6 +58,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 +68,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..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,6 +41,8 @@ class DockerBuildStepUpdateParameters(TaskStepUpdateParameters): executing this build step. :type arguments: list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument] + :param target: The name of the target build stage for the docker build. + :type target: str """ _validation = { @@ -56,13 +58,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..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 @@ -46,6 +46,10 @@ class EncodedTaskRunRequest(RunRequest): 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..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 @@ -46,6 +46,10 @@ class EncodedTaskRunRequest(RunRequest): 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..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 @@ -46,6 +46,10 @@ class FileTaskRunRequest(RunRequest): 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..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 @@ -46,6 +46,10 @@ class FileTaskRunRequest(RunRequest): 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..75712b7a9049 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object.py @@ -0,0 +1,39 @@ +# 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. If the type is Opaque, the value + 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..ae63388522b9 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/secret_object_py3.py @@ -0,0 +1,39 @@ +# 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. If the type is Opaque, the value + 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_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/task.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py index da65f5e3e5c4..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 @@ -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..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 @@ -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 diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py index 34723b1902d4..d1c659f78b57 100755 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2.6.0" +VERSION = "2.7.0"