Class: Azure::Automation::Mgmt::V2015_10_31::Models::Job

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb

Overview

Definition of the job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#creation_timeDateTime

Returns Gets or sets the creation time of the job.

Returns:

  • (DateTime)

    Gets or sets the creation time of the job.



32
33
34
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 32

def creation_time
  @creation_time
end

#end_timeDateTime

Returns Gets or sets the end time of the job.

Returns:

  • (DateTime)

    Gets or sets the end time of the job.



47
48
49
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 47

def end_time
  @end_time
end

#exceptionString

Returns Gets or sets the exception of the job.

Returns:

  • (String)

    Gets or sets the exception of the job.



50
51
52
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 50

def exception
  @exception
end

#idString

Returns Id of the resource.

Returns:

  • (String)

    Id of the resource.



16
17
18
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 16

def id
  @id
end

#job_idObject

Returns Gets or sets the id of the job.

Returns:

  • Gets or sets the id of the job.



29
30
31
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 29

def job_id
  @job_id
end

#job_schedule_idString

Returns Gets or sets the id of job schedule.

Returns:

  • (String)

    Gets or sets the id of job schedule.



69
70
71
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 69

def job_schedule_id
  @job_schedule_id
end

#last_modified_timeDateTime

Returns Gets or sets the last modified time of the job.

Returns:

  • (DateTime)

    Gets or sets the last modified time of the job.



53
54
55
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 53

def last_modified_time
  @last_modified_time
end

#last_status_modified_timeDateTime

job.

Returns:

  • (DateTime)

    Gets or sets the last status modified time of the



57
58
59
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 57

def last_status_modified_time
  @last_status_modified_time
end

#parametersHash{String => String}

job.

Returns:

  • (Hash{String => String})

    Gets or sets the parameters of the



61
62
63
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 61

def parameters
  @parameters
end

#provisioning_stateJobProvisioningState

Possible values include: ‘Failed’, ‘Succeeded’, ‘Suspended’, ‘Processing’

Returns:



66
67
68
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 66

def provisioning_state
  @provisioning_state
end

#run_onString

where the job is to be executed.

Returns:

  • (String)

    Gets or sets the runOn which specifies the group name



26
27
28
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 26

def run_on
  @run_on
end

#runbookRunbookAssociationProperty

Returns Gets or sets the runbook.

Returns:



19
20
21
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 19

def runbook
  @runbook
end

#scheduleScheduleAssociationProperty

Returns Gets or sets the runbook.

Returns:



72
73
74
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 72

def schedule
  @schedule
end

#start_timeDateTime

Returns Gets or sets the start time of the job.

Returns:

  • (DateTime)

    Gets or sets the start time of the job.



44
45
46
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 44

def start_time
  @start_time
end

#started_byString

Returns Gets or sets the job started by.

Returns:

  • (String)

    Gets or sets the job started by.



22
23
24
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 22

def started_by
  @started_by
end

#statusJobStatus

include: ‘New’, ‘Activating’, ‘Running’, ‘Completed’, ‘Failed’, ‘Stopped’, ‘Blocked’, ‘Suspended’, ‘Disconnected’, ‘Suspending’, ‘Stopping’, ‘Resuming’, ‘Removing’

Returns:

  • (JobStatus)

    Gets or sets the status of the job. Possible values



38
39
40
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 38

def status
  @status
end

#status_detailsString

Returns Gets or sets the status details of the job.

Returns:

  • (String)

    Gets or sets the status details of the job.



41
42
43
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 41

def status_details
  @status_details
end

Class Method Details

.mapperObject

Mapper for Job class as Ruby Hash. This will be used for serialization/deserialization.



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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb', line 79

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Job',
    type: {
      name: 'Composite',
      class_name: 'Job',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        runbook: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.runbook',
          type: {
            name: 'Composite',
            class_name: 'RunbookAssociationProperty'
          }
        },
        started_by: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.startedBy',
          type: {
            name: 'String'
          }
        },
        run_on: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.runOn',
          type: {
            name: 'String'
          }
        },
        job_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.jobId',
          type: {
            name: 'String'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        },
        status_details: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.statusDetails',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endTime',
          type: {
            name: 'DateTime'
          }
        },
        exception: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.exception',
          type: {
            name: 'String'
          }
        },
        last_modified_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastModifiedTime',
          type: {
            name: 'DateTime'
          }
        },
        last_status_modified_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastStatusModifiedTime',
          type: {
            name: 'DateTime'
          }
        },
        parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.parameters',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        job_schedule_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.jobScheduleId',
          type: {
            name: 'String'
          }
        },
        schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.schedule',
          type: {
            name: 'Composite',
            class_name: 'ScheduleAssociationProperty'
          }
        }
      }
    }
  }
end