-
Notifications
You must be signed in to change notification settings - Fork 232
/
azure.batch.models.CloudJob.yml
395 lines (343 loc) · 12.4 KB
/
azure.batch.models.CloudJob.yml
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
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
### YamlMime:PythonClass
uid: azure.batch.models.CloudJob
name: CloudJob
fullName: azure.batch.models.CloudJob
module: azure.batch.models
inheritances:
- msrest.serialization.Model
summary: An Azure Batch Job.
constructor:
syntax: 'CloudJob(*, id: str = None, display_name: str = None, uses_task_dependencies:
bool = None, url: str = None, e_tag: str = None, last_modified=None, creation_time=None,
state=None, state_transition_time=None, previous_state=None, previous_state_transition_time=None,
priority: int = None, allow_task_preemption: bool = None, max_parallel_tasks:
int = -1, constraints=None, job_manager_task=None, job_preparation_task=None,
job_release_task=None, common_environment_settings=None, pool_info=None, on_all_tasks_complete=None,
on_task_failure=None, network_configuration=None, metadata=None, execution_info=None,
stats=None, **kwargs)'
parameters:
- name: id
description: 'The ID is case-preserving and case-insensitive (that is, you
may not have two IDs within an Account that differ only by case).'
isRequired: true
types:
- <xref:str>
- name: display_name
isRequired: true
types:
- <xref:str>
- name: uses_task_dependencies
description: 'Whether Tasks in the Job can define
dependencies on each other. The default is false.'
isRequired: true
types:
- <xref:bool>
- name: url
isRequired: true
types:
- <xref:str>
- name: e_tag
description: 'This is an opaque string. You can use it to detect whether
the Job has changed between requests. In particular, you can be pass the
ETag when updating a Job to specify that your changes should take effect
only if nobody else has modified the Job in the meantime.'
isRequired: true
types:
- <xref:str>
- name: last_modified
description: 'This is the last time at which the Job level data,
such as the Job state or priority, changed. It does not factor in
task-level changes such as adding new Tasks or Tasks changing state.'
isRequired: true
types:
- <xref:datetime>
- name: creation_time
isRequired: true
types:
- <xref:datetime>
- name: state
description: 'The current state of the Job. Possible values include:
''active'', ''disabling'', ''disabled'', ''enabling'', ''terminating'', ''completed'',
''deleting'''
isRequired: true
types:
- <xref:str>
- <xref:azure.batch.models.JobState>
- name: state_transition_time
isRequired: true
types:
- <xref:datetime>
- name: previous_state
description: 'The previous state of the Job. This property is not
set if the Job is in its initial Active state. Possible values include:
''active'', ''disabling'', ''disabled'', ''enabling'', ''terminating'', ''completed'',
''deleting'''
isRequired: true
types:
- <xref:str>
- <xref:azure.batch.models.JobState>
- name: previous_state_transition_time
description: 'This property is not set if the Job
is in its initial Active state.'
isRequired: true
types:
- <xref:datetime>
- name: priority
description: 'The priority of the Job. Priority values can range from
-1000 to 1000, with -1000 being the lowest priority and 1000 being the
highest priority. The default value is 0.'
isRequired: true
types:
- <xref:int>
- name: allow_task_preemption
description: 'Whether Tasks in this job can be preempted
by other high priority jobs. If the value is set to True, other high
priority jobs submitted to the system will take precedence and will be
able requeue tasks from this job. You can update a job''s
allowTaskPreemption after it has been created using the update job API.'
isRequired: true
types:
- <xref:bool>
- name: max_parallel_tasks
description: 'The maximum number of tasks that can be
executed in parallel for the job. The value of maxParallelTasks must be -1
or greater than 0 if specified. If not specified, the default value is -1,
which means there''s no limit to the number of tasks that can be run at
once. You can update a job''s maxParallelTasks after it has been created
using the update job API. Default value: -1 .'
isRequired: true
types:
- <xref:int>
- name: constraints
description: The execution constraints for the Job.
isRequired: true
types:
- <xref:azure.batch.models.JobConstraints>
- name: job_manager_task
description: 'Details of a Job Manager Task to be launched when
the Job is started.'
isRequired: true
types:
- <xref:azure.batch.models.JobManagerTask>
- name: job_preparation_task
description: 'The Job Preparation Task. The Job Preparation
Task is a special Task run on each Compute Node before any other Task of
the Job.'
isRequired: true
types:
- <xref:azure.batch.models.JobPreparationTask>
- name: job_release_task
description: 'The Job Release Task. The Job Release Task is a
special Task run at the end of the Job on each Compute Node that has run
any other Task of the Job.'
isRequired: true
types:
- <xref:azure.batch.models.JobReleaseTask>
- name: common_environment_settings
description: 'Individual Tasks can override an
environment setting specified here by specifying the same setting name
with a different value.'
isRequired: true
types:
- <xref:list>[<xref:azure.batch.models.EnvironmentSetting>]
- name: pool_info
description: The Pool settings associated with the Job.
isRequired: true
types:
- <xref:azure.batch.models.PoolInformation>
- name: on_all_tasks_complete
description: 'The action the Batch service should take
when all Tasks in the Job are in the completed state. The default is
noaction. Possible values include: ''noAction'', ''terminateJob'''
isRequired: true
types:
- <xref:str>
- <xref:azure.batch.models.OnAllTasksComplete>
- name: on_task_failure
description: 'The action the Batch service should take when any
Task in the Job fails. A Task is considered to have failed if has a
failureInfo. A failureInfo is set if the Task completes with a non-zero
exit code after exhausting its retry count, or if there was an error
starting the Task, for example due to a resource file download error. The
default is noaction. Possible values include: ''noAction'',
''performExitOptionsJobAction'''
isRequired: true
types:
- <xref:str>
- <xref:azure.batch.models.OnTaskFailure>
- name: network_configuration
description: The network configuration for the Job.
isRequired: true
types:
- <xref:azure.batch.models.JobNetworkConfiguration>
- name: metadata
description: 'The Batch service does not assign any meaning to
metadata; it is solely for the use of user code.'
isRequired: true
types:
- <xref:list>[<xref:azure.batch.models.MetadataItem>]
- name: execution_info
description: The execution information for the Job.
isRequired: true
types:
- <xref:azure.batch.models.JobExecutionInformation>
- name: stats
description: 'Resource usage statistics for the entire lifetime of the
Job. This property is populated only if the CloudJob was retrieved with an
expand clause including the ''stats'' attribute; otherwise it is null. The
statistics may not be immediately available. The Batch service performs
periodic roll-up of statistics. The typical delay is about 30 minutes.'
isRequired: true
types:
- <xref:azure.batch.models.JobStatistics>
keywordOnlyParameters:
- name: id
isRequired: true
- name: display_name
isRequired: true
- name: uses_task_dependencies
isRequired: true
- name: url
isRequired: true
- name: e_tag
isRequired: true
- name: last_modified
isRequired: true
- name: creation_time
isRequired: true
- name: state
isRequired: true
- name: state_transition_time
isRequired: true
- name: previous_state
isRequired: true
- name: previous_state_transition_time
isRequired: true
- name: priority
isRequired: true
- name: allow_task_preemption
isRequired: true
- name: max_parallel_tasks
defaultValue: '-1'
- name: constraints
isRequired: true
- name: job_manager_task
isRequired: true
- name: job_preparation_task
isRequired: true
- name: job_release_task
isRequired: true
- name: common_environment_settings
isRequired: true
- name: pool_info
isRequired: true
- name: on_all_tasks_complete
isRequired: true
- name: on_task_failure
isRequired: true
- name: network_configuration
isRequired: true
- name: metadata
isRequired: true
- name: execution_info
isRequired: true
- name: stats
isRequired: true
methods:
- uid: azure.batch.models.CloudJob.as_dict
name: as_dict
summary: "Return a dict that can be JSONify using json.dump.\n\nAdvanced usage might\
\ optionally use a callback as parameter:\n\nKey is the attribute name used in\
\ Python. Attr_desc\nis a dict of metadata. Currently contains 'type' with the\n\
msrest type and 'key' with the RestAPI encoded key.\nValue is the current value\
\ in this object.\n\nThe string returned will be used to serialize the key.\n\
If the return type is a list, this is considered hierarchical\nresult dict.\n\n\
See the three examples in this file:\n\n* attribute_transformer \n\n* full_restapi_key_transformer\
\ \n\n* last_restapi_key_transformer \n\nIf you want XML serialization, you can\
\ pass the kwargs is_xml=True."
signature: as_dict(keep_readonly=True, key_transformer=<function attribute_transformer>,
**kwargs)
parameters:
- name: key_transformer
description: A key transformer function.
types:
- <xref:function>
- name: keep_readonly
defaultValue: 'True'
return:
description: A dict JSON compatible object
types:
- <xref:dict>
- uid: azure.batch.models.CloudJob.deserialize
name: deserialize
summary: Parse a str using the RestAPI syntax and return a model.
signature: deserialize(data, content_type=None)
parameters:
- name: data
description: A str using RestAPI structure. JSON by default.
isRequired: true
types:
- <xref:str>
- name: content_type
description: JSON by default, set application/xml if XML.
defaultValue: None
types:
- <xref:str>
return:
description: An instance of this model
exceptions:
- type: DeserializationError if something went wrong
- uid: azure.batch.models.CloudJob.enable_additional_properties_sending
name: enable_additional_properties_sending
signature: enable_additional_properties_sending()
- uid: azure.batch.models.CloudJob.from_dict
name: from_dict
summary: 'Parse a dict using given key extractor return a model.
By default consider key
extractors (rest_key_case_insensitive_extractor, attribute_key_case_insensitive_extractor
and last_rest_key_case_insensitive_extractor)'
signature: from_dict(data, key_extractors=None, content_type=None)
parameters:
- name: data
description: A dict using RestAPI structure
isRequired: true
types:
- <xref:dict>
- name: content_type
description: JSON by default, set application/xml if XML.
defaultValue: None
types:
- <xref:str>
- name: key_extractors
defaultValue: None
return:
description: An instance of this model
exceptions:
- type: DeserializationError if something went wrong
- uid: azure.batch.models.CloudJob.is_xml_model
name: is_xml_model
signature: is_xml_model()
- uid: azure.batch.models.CloudJob.serialize
name: serialize
summary: 'Return the JSON that would be sent to azure from this model.
This is an alias to *as_dict(full_restapi_key_transformer, keep_readonly=False)*.
If you want XML serialization, you can pass the kwargs is_xml=True.'
signature: serialize(keep_readonly=False, **kwargs)
parameters:
- name: keep_readonly
description: If you want to serialize the readonly attributes
defaultValue: 'False'
types:
- <xref:bool>
return:
description: A dict JSON compatible object
types:
- <xref:dict>
- uid: azure.batch.models.CloudJob.validate
name: validate
summary: Validate this model recursively and return a list of ValidationError.
signature: validate()
return:
description: A list of validation error
types:
- <xref:list>