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
|
# 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 JobProperties(Model):
"""JobProperties.
Variables are only populated by the server, and will be ignored when
sending a request.
:param start_time: Gets or sets the job start time.
:type start_time: datetime
:param action: Gets or sets the job action.
:type action: :class:`JobAction <azure.mgmt.scheduler.models.JobAction>`
:param recurrence: Gets or sets the job recurrence.
:type recurrence: :class:`JobRecurrence
<azure.mgmt.scheduler.models.JobRecurrence>`
:param state: Gets or set the job state. Possible values include:
'Enabled', 'Disabled', 'Faulted', 'Completed'
:type state: str or :class:`JobState
<azure.mgmt.scheduler.models.JobState>`
:ivar status: Gets the job status.
:vartype status: :class:`JobStatus
<azure.mgmt.scheduler.models.JobStatus>`
"""
_validation = {
'status': {'readonly': True},
}
_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'action': {'key': 'action', 'type': 'JobAction'},
'recurrence': {'key': 'recurrence', 'type': 'JobRecurrence'},
'state': {'key': 'state', 'type': 'JobState'},
'status': {'key': 'status', 'type': 'JobStatus'},
}
def __init__(self, start_time=None, action=None, recurrence=None, state=None):
self.start_time = start_time
self.action = action
self.recurrence = recurrence
self.state = state
self.status = None
|