1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# 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 TaskUpdateParameters(Model):
"""The parameters for updating a task.
:param status: The current status of task. Possible values include:
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2018_09_01.models.TaskStatus
:param platform: The platform properties against which the run has to
happen.
:type platform:
~azure.mgmt.containerregistry.v2018_09_01.models.PlatformUpdateParameters
:param agent_configuration: The machine configuration of the run agent.
:type agent_configuration:
~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties
:param timeout: Run timeout in seconds.
:type timeout: int
:param step: The properties for updating a task step.
:type step:
~azure.mgmt.containerregistry.v2018_09_01.models.TaskStepUpdateParameters
:param trigger: The properties for updating trigger properties.
:type trigger:
~azure.mgmt.containerregistry.v2018_09_01.models.TriggerUpdateParameters
:param tags: The ARM resource tags.
:type tags: dict[str, str]
"""
_attribute_map = {
'status': {'key': 'properties.status', 'type': 'str'},
'platform': {'key': 'properties.platform', 'type': 'PlatformUpdateParameters'},
'agent_configuration': {'key': 'properties.agentConfiguration', 'type': 'AgentProperties'},
'timeout': {'key': 'properties.timeout', 'type': 'int'},
'step': {'key': 'properties.step', 'type': 'TaskStepUpdateParameters'},
'trigger': {'key': 'properties.trigger', 'type': 'TriggerUpdateParameters'},
'tags': {'key': 'tags', 'type': '{str}'},
}
def __init__(self, **kwargs):
super(TaskUpdateParameters, self).__init__(**kwargs)
self.status = kwargs.get('status', None)
self.platform = kwargs.get('platform', None)
self.agent_configuration = kwargs.get('agent_configuration', None)
self.timeout = kwargs.get('timeout', None)
self.step = kwargs.get('step', None)
self.trigger = kwargs.get('trigger', None)
self.tags = kwargs.get('tags', None)
|