-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathsource_control_sync_job.py
More file actions
75 lines (67 loc) · 2.95 KB
/
source_control_sync_job.py
File metadata and controls
75 lines (67 loc) · 2.95 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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 SourceControlSyncJob(Model):
"""Definition of the source control sync job.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:ivar id: Resource id.
:vartype id: str
:param source_control_sync_job_id: The source control sync job id.
:type source_control_sync_job_id: str
:ivar creation_time: The creation time of the job.
:vartype creation_time: datetime
:param provisioning_state: The provisioning state of the job. Possible
values include: 'Completed', 'Failed', 'Running'
:type provisioning_state: str or
~azure.mgmt.automation.models.ProvisioningState
:ivar start_time: The start time of the job.
:vartype start_time: datetime
:ivar end_time: The end time of the job.
:vartype end_time: datetime
:param start_type: The type of start for the sync job. Possible values
include: 'AutoSync', 'ManualSync'
:type start_type: str or ~azure.mgmt.automation.models.StartType
"""
_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'id': {'readonly': True},
'creation_time': {'readonly': True},
'start_time': {'readonly': True},
'end_time': {'readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'source_control_sync_job_id': {'key': 'properties.sourceControlSyncJobId', 'type': 'str'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'},
'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'},
'start_type': {'key': 'properties.startType', 'type': 'str'},
}
def __init__(self, source_control_sync_job_id=None, provisioning_state=None, start_type=None):
super(SourceControlSyncJob, self).__init__()
self.name = None
self.type = None
self.id = None
self.source_control_sync_job_id = source_control_sync_job_id
self.creation_time = None
self.provisioning_state = provisioning_state
self.start_time = None
self.end_time = None
self.start_type = start_type