1# --------------------------------------------------------------------------------------------
2# Copyright (c) Microsoft Corporation. All rights reserved.
3# Licensed under the MIT License. See License.txt in the project root for license information.
4# --------------------------------------------------------------------------------------------
5# Generated file, DO NOT EDIT
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------------------------
8
9from msrest.serialization import Model
10
11
12class TaskAgentPoolMaintenanceJob(Model):
13    """TaskAgentPoolMaintenanceJob.
14
15    :param definition_id: The maintenance definition for the maintenance job
16    :type definition_id: int
17    :param error_count: The total error counts during the maintenance job
18    :type error_count: int
19    :param finish_time: Time that the maintenance job was completed
20    :type finish_time: datetime
21    :param job_id: Id of the maintenance job
22    :type job_id: int
23    :param logs_download_url: The log download url for the maintenance job
24    :type logs_download_url: str
25    :param orchestration_id: Orchestration/Plan Id for the maintenance job
26    :type orchestration_id: str
27    :param pool: Pool reference for the maintenance job
28    :type pool: :class:`TaskAgentPoolReference <task-agent.v4_1.models.TaskAgentPoolReference>`
29    :param queue_time: Time that the maintenance job was queued
30    :type queue_time: datetime
31    :param requested_by: The identity that queued the maintenance job
32    :type requested_by: :class:`IdentityRef <task-agent.v4_1.models.IdentityRef>`
33    :param result: The maintenance job result
34    :type result: object
35    :param start_time: Time that the maintenance job was started
36    :type start_time: datetime
37    :param status: Status of the maintenance job
38    :type status: object
39    :param target_agents:
40    :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent <task-agent.v4_1.models.TaskAgentPoolMaintenanceJobTargetAgent>`
41    :param warning_count: The total warning counts during the maintenance job
42    :type warning_count: int
43    """
44
45    _attribute_map = {
46        'definition_id': {'key': 'definitionId', 'type': 'int'},
47        'error_count': {'key': 'errorCount', 'type': 'int'},
48        'finish_time': {'key': 'finishTime', 'type': 'iso-8601'},
49        'job_id': {'key': 'jobId', 'type': 'int'},
50        'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'},
51        'orchestration_id': {'key': 'orchestrationId', 'type': 'str'},
52        'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
53        'queue_time': {'key': 'queueTime', 'type': 'iso-8601'},
54        'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'},
55        'result': {'key': 'result', 'type': 'object'},
56        'start_time': {'key': 'startTime', 'type': 'iso-8601'},
57        'status': {'key': 'status', 'type': 'object'},
58        'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'},
59        'warning_count': {'key': 'warningCount', 'type': 'int'}
60    }
61
62    def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None):
63        super(TaskAgentPoolMaintenanceJob, self).__init__()
64        self.definition_id = definition_id
65        self.error_count = error_count
66        self.finish_time = finish_time
67        self.job_id = job_id
68        self.logs_download_url = logs_download_url
69        self.orchestration_id = orchestration_id
70        self.pool = pool
71        self.queue_time = queue_time
72        self.requested_by = requested_by
73        self.result = result
74        self.start_time = start_time
75        self.status = status
76        self.target_agents = target_agents
77        self.warning_count = warning_count
78