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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
# 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 CloudJobSchedule(Model):
"""A job schedule that allows recurring jobs by specifying when to run jobs
and a specification used to create each job.
:param id: A string that uniquely identifies the schedule within the
account.
:type id: str
:param display_name: The display name for the schedule.
:type display_name: str
:param url: The URL of the job schedule.
:type url: str
:param e_tag: The ETag of the job schedule. This is an opaque string. You
can use it to detect whether the job schedule has changed between
requests. In particular, you can be pass the ETag with an Update Job
Schedule request to specify that your changes should take effect only if
nobody else has modified the schedule in the meantime.
:type e_tag: str
:param last_modified: The last modified time of the job schedule. This is
the last time at which the schedule level data, such as the job
specification or recurrence information, changed. It does not factor in
job-level changes such as new jobs being created or jobs changing state.
:type last_modified: datetime
:param creation_time: The creation time of the job schedule.
:type creation_time: datetime
:param state: The current state of the job schedule. Possible values
include: 'active', 'completed', 'disabled', 'terminating', 'deleting'
:type state: str or ~azure.batch.models.JobScheduleState
:param state_transition_time: The time at which the job schedule entered
the current state.
:type state_transition_time: datetime
:param previous_state: The previous state of the job schedule. This
property is not present if the job schedule is in its initial active
state. Possible values include: 'active', 'completed', 'disabled',
'terminating', 'deleting'
:type previous_state: str or ~azure.batch.models.JobScheduleState
:param previous_state_transition_time: The time at which the job schedule
entered its previous state. This property is not present if the job
schedule is in its initial active state.
:type previous_state_transition_time: datetime
:param schedule: The schedule according to which jobs will be created.
:type schedule: ~azure.batch.models.Schedule
:param job_specification: The details of the jobs to be created on this
schedule.
:type job_specification: ~azure.batch.models.JobSpecification
:param execution_info: Information about jobs that have been and will be
run under this schedule.
:type execution_info: ~azure.batch.models.JobScheduleExecutionInformation
:param metadata: A list of name-value pairs associated with the schedule
as metadata. The Batch service does not assign any meaning to metadata; it
is solely for the use of user code.
:type metadata: list[~azure.batch.models.MetadataItem]
:param stats: The lifetime resource usage statistics for the job schedule.
The statistics may not be immediately available. The Batch service
performs periodic roll-up of statistics. The typical delay is about 30
minutes.
:type stats: ~azure.batch.models.JobScheduleStatistics
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'last_modified': {'key': 'lastModified', 'type': 'iso-8601'},
'creation_time': {'key': 'creationTime', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'JobScheduleState'},
'state_transition_time': {'key': 'stateTransitionTime', 'type': 'iso-8601'},
'previous_state': {'key': 'previousState', 'type': 'JobScheduleState'},
'previous_state_transition_time': {'key': 'previousStateTransitionTime', 'type': 'iso-8601'},
'schedule': {'key': 'schedule', 'type': 'Schedule'},
'job_specification': {'key': 'jobSpecification', 'type': 'JobSpecification'},
'execution_info': {'key': 'executionInfo', 'type': 'JobScheduleExecutionInformation'},
'metadata': {'key': 'metadata', 'type': '[MetadataItem]'},
'stats': {'key': 'stats', 'type': 'JobScheduleStatistics'},
}
def __init__(self, **kwargs):
super(CloudJobSchedule, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.display_name = kwargs.get('display_name', None)
self.url = kwargs.get('url', None)
self.e_tag = kwargs.get('e_tag', None)
self.last_modified = kwargs.get('last_modified', None)
self.creation_time = kwargs.get('creation_time', None)
self.state = kwargs.get('state', None)
self.state_transition_time = kwargs.get('state_transition_time', None)
self.previous_state = kwargs.get('previous_state', None)
self.previous_state_transition_time = kwargs.get('previous_state_transition_time', None)
self.schedule = kwargs.get('schedule', None)
self.job_specification = kwargs.get('job_specification', None)
self.execution_info = kwargs.get('execution_info', None)
self.metadata = kwargs.get('metadata', None)
self.stats = kwargs.get('stats', None)
|