google-apis-batch_v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,962 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BatchV1
24
+
25
+ class Accelerator
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ActionCondition
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AgentInfo
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AgentMetadata
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AgentTask
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class AgentTaskInfo
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class AllocationPolicy
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class AttachedDisk
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class AuditConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class AuditLogConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Barrier
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Binding
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class CancelOperationRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ComputeResource
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Container
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Disk
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Empty
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Environment
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Expr
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Gcs
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class InstancePolicy
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class InstancePolicyOrTemplate
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class InstanceStatus
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Job
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class JobNotification
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class JobStatus
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class LifecyclePolicy
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ListJobsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class ListLocationsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class ListOperationsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class ListTasksResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class Location
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class LocationPolicy
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class LogsPolicy
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class Message
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Nfs
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class NetworkInterface
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class NetworkPolicy
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class Operation
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class OperationMetadata
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class Policy
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class ReportAgentStateRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class ReportAgentStateResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class Runnable
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class Script
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class ServiceAccount
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class SetIamPolicyRequest
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class Status
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class StatusEvent
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class Task
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class TaskExecution
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class TaskGroup
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class TaskGroupStatus
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class TaskSpec
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class TaskStatus
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class TestIamPermissionsRequest
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class TestIamPermissionsResponse
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class Volume
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class Accelerator
374
+ # @private
375
+ class Representation < Google::Apis::Core::JsonRepresentation
376
+ property :count, :numeric_string => true, as: 'count'
377
+ property :install_gpu_drivers, as: 'installGpuDrivers'
378
+ property :type, as: 'type'
379
+ end
380
+ end
381
+
382
+ class ActionCondition
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ collection :exit_codes, as: 'exitCodes'
386
+ end
387
+ end
388
+
389
+ class AgentInfo
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :job_id, as: 'jobId'
393
+ property :report_time, as: 'reportTime'
394
+ property :state, as: 'state'
395
+ property :task_group_id, as: 'taskGroupId'
396
+ collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::AgentTaskInfo, decorator: Google::Apis::BatchV1::AgentTaskInfo::Representation
397
+
398
+ end
399
+ end
400
+
401
+ class AgentMetadata
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :creation_time, as: 'creationTime'
405
+ property :creator, as: 'creator'
406
+ property :instance, as: 'instance'
407
+ property :instance_id, :numeric_string => true, as: 'instanceId'
408
+ hash :os_release, as: 'osRelease'
409
+ property :version, as: 'version'
410
+ property :zone, as: 'zone'
411
+ end
412
+ end
413
+
414
+ class AgentTask
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ property :intended_state, as: 'intendedState'
418
+ property :reached_barrier, :numeric_string => true, as: 'reachedBarrier'
419
+ property :spec, as: 'spec', class: Google::Apis::BatchV1::TaskSpec, decorator: Google::Apis::BatchV1::TaskSpec::Representation
420
+
421
+ property :status, as: 'status', class: Google::Apis::BatchV1::TaskStatus, decorator: Google::Apis::BatchV1::TaskStatus::Representation
422
+
423
+ property :task, as: 'task'
424
+ end
425
+ end
426
+
427
+ class AgentTaskInfo
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ property :runnable, :numeric_string => true, as: 'runnable'
431
+ property :task_id, as: 'taskId'
432
+ property :task_status, as: 'taskStatus', class: Google::Apis::BatchV1::TaskStatus, decorator: Google::Apis::BatchV1::TaskStatus::Representation
433
+
434
+ end
435
+ end
436
+
437
+ class AllocationPolicy
438
+ # @private
439
+ class Representation < Google::Apis::Core::JsonRepresentation
440
+ collection :instances, as: 'instances', class: Google::Apis::BatchV1::InstancePolicyOrTemplate, decorator: Google::Apis::BatchV1::InstancePolicyOrTemplate::Representation
441
+
442
+ hash :labels, as: 'labels'
443
+ property :location, as: 'location', class: Google::Apis::BatchV1::LocationPolicy, decorator: Google::Apis::BatchV1::LocationPolicy::Representation
444
+
445
+ property :network, as: 'network', class: Google::Apis::BatchV1::NetworkPolicy, decorator: Google::Apis::BatchV1::NetworkPolicy::Representation
446
+
447
+ property :service_account, as: 'serviceAccount', class: Google::Apis::BatchV1::ServiceAccount, decorator: Google::Apis::BatchV1::ServiceAccount::Representation
448
+
449
+ end
450
+ end
451
+
452
+ class AttachedDisk
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ property :device_name, as: 'deviceName'
456
+ property :existing_disk, as: 'existingDisk'
457
+ property :new_disk, as: 'newDisk', class: Google::Apis::BatchV1::Disk, decorator: Google::Apis::BatchV1::Disk::Representation
458
+
459
+ end
460
+ end
461
+
462
+ class AuditConfig
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BatchV1::AuditLogConfig, decorator: Google::Apis::BatchV1::AuditLogConfig::Representation
466
+
467
+ property :service, as: 'service'
468
+ end
469
+ end
470
+
471
+ class AuditLogConfig
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ collection :exempted_members, as: 'exemptedMembers'
475
+ property :log_type, as: 'logType'
476
+ end
477
+ end
478
+
479
+ class Barrier
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :name, as: 'name'
483
+ end
484
+ end
485
+
486
+ class Binding
487
+ # @private
488
+ class Representation < Google::Apis::Core::JsonRepresentation
489
+ property :condition, as: 'condition', class: Google::Apis::BatchV1::Expr, decorator: Google::Apis::BatchV1::Expr::Representation
490
+
491
+ collection :members, as: 'members'
492
+ property :role, as: 'role'
493
+ end
494
+ end
495
+
496
+ class CancelOperationRequest
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ end
500
+ end
501
+
502
+ class ComputeResource
503
+ # @private
504
+ class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :boot_disk_mib, :numeric_string => true, as: 'bootDiskMib'
506
+ property :cpu_milli, :numeric_string => true, as: 'cpuMilli'
507
+ property :memory_mib, :numeric_string => true, as: 'memoryMib'
508
+ end
509
+ end
510
+
511
+ class Container
512
+ # @private
513
+ class Representation < Google::Apis::Core::JsonRepresentation
514
+ property :block_external_network, as: 'blockExternalNetwork'
515
+ collection :commands, as: 'commands'
516
+ property :entrypoint, as: 'entrypoint'
517
+ property :image_uri, as: 'imageUri'
518
+ property :options, as: 'options'
519
+ property :password, as: 'password'
520
+ property :username, as: 'username'
521
+ collection :volumes, as: 'volumes'
522
+ end
523
+ end
524
+
525
+ class Disk
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :disk_interface, as: 'diskInterface'
529
+ property :image, as: 'image'
530
+ property :size_gb, :numeric_string => true, as: 'sizeGb'
531
+ property :snapshot, as: 'snapshot'
532
+ property :type, as: 'type'
533
+ end
534
+ end
535
+
536
+ class Empty
537
+ # @private
538
+ class Representation < Google::Apis::Core::JsonRepresentation
539
+ end
540
+ end
541
+
542
+ class Environment
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ hash :variables, as: 'variables'
546
+ end
547
+ end
548
+
549
+ class Expr
550
+ # @private
551
+ class Representation < Google::Apis::Core::JsonRepresentation
552
+ property :description, as: 'description'
553
+ property :expression, as: 'expression'
554
+ property :location, as: 'location'
555
+ property :title, as: 'title'
556
+ end
557
+ end
558
+
559
+ class Gcs
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ property :remote_path, as: 'remotePath'
563
+ end
564
+ end
565
+
566
+ class InstancePolicy
567
+ # @private
568
+ class Representation < Google::Apis::Core::JsonRepresentation
569
+ collection :accelerators, as: 'accelerators', class: Google::Apis::BatchV1::Accelerator, decorator: Google::Apis::BatchV1::Accelerator::Representation
570
+
571
+ collection :disks, as: 'disks', class: Google::Apis::BatchV1::AttachedDisk, decorator: Google::Apis::BatchV1::AttachedDisk::Representation
572
+
573
+ property :machine_type, as: 'machineType'
574
+ property :min_cpu_platform, as: 'minCpuPlatform'
575
+ property :provisioning_model, as: 'provisioningModel'
576
+ end
577
+ end
578
+
579
+ class InstancePolicyOrTemplate
580
+ # @private
581
+ class Representation < Google::Apis::Core::JsonRepresentation
582
+ property :install_gpu_drivers, as: 'installGpuDrivers'
583
+ property :instance_template, as: 'instanceTemplate'
584
+ property :policy, as: 'policy', class: Google::Apis::BatchV1::InstancePolicy, decorator: Google::Apis::BatchV1::InstancePolicy::Representation
585
+
586
+ end
587
+ end
588
+
589
+ class InstanceStatus
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ property :machine_type, as: 'machineType'
593
+ property :provisioning_model, as: 'provisioningModel'
594
+ property :task_pack, :numeric_string => true, as: 'taskPack'
595
+ end
596
+ end
597
+
598
+ class Job
599
+ # @private
600
+ class Representation < Google::Apis::Core::JsonRepresentation
601
+ property :allocation_policy, as: 'allocationPolicy', class: Google::Apis::BatchV1::AllocationPolicy, decorator: Google::Apis::BatchV1::AllocationPolicy::Representation
602
+
603
+ property :create_time, as: 'createTime'
604
+ hash :labels, as: 'labels'
605
+ property :logs_policy, as: 'logsPolicy', class: Google::Apis::BatchV1::LogsPolicy, decorator: Google::Apis::BatchV1::LogsPolicy::Representation
606
+
607
+ property :name, as: 'name'
608
+ collection :notifications, as: 'notifications', class: Google::Apis::BatchV1::JobNotification, decorator: Google::Apis::BatchV1::JobNotification::Representation
609
+
610
+ property :priority, :numeric_string => true, as: 'priority'
611
+ property :status, as: 'status', class: Google::Apis::BatchV1::JobStatus, decorator: Google::Apis::BatchV1::JobStatus::Representation
612
+
613
+ collection :task_groups, as: 'taskGroups', class: Google::Apis::BatchV1::TaskGroup, decorator: Google::Apis::BatchV1::TaskGroup::Representation
614
+
615
+ property :uid, as: 'uid'
616
+ property :update_time, as: 'updateTime'
617
+ end
618
+ end
619
+
620
+ class JobNotification
621
+ # @private
622
+ class Representation < Google::Apis::Core::JsonRepresentation
623
+ property :message, as: 'message', class: Google::Apis::BatchV1::Message, decorator: Google::Apis::BatchV1::Message::Representation
624
+
625
+ property :pubsub_topic, as: 'pubsubTopic'
626
+ end
627
+ end
628
+
629
+ class JobStatus
630
+ # @private
631
+ class Representation < Google::Apis::Core::JsonRepresentation
632
+ property :run_duration, as: 'runDuration'
633
+ property :state, as: 'state'
634
+ collection :status_events, as: 'statusEvents', class: Google::Apis::BatchV1::StatusEvent, decorator: Google::Apis::BatchV1::StatusEvent::Representation
635
+
636
+ hash :task_groups, as: 'taskGroups', class: Google::Apis::BatchV1::TaskGroupStatus, decorator: Google::Apis::BatchV1::TaskGroupStatus::Representation
637
+
638
+ end
639
+ end
640
+
641
+ class LifecyclePolicy
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ property :action, as: 'action'
645
+ property :action_condition, as: 'actionCondition', class: Google::Apis::BatchV1::ActionCondition, decorator: Google::Apis::BatchV1::ActionCondition::Representation
646
+
647
+ end
648
+ end
649
+
650
+ class ListJobsResponse
651
+ # @private
652
+ class Representation < Google::Apis::Core::JsonRepresentation
653
+ collection :jobs, as: 'jobs', class: Google::Apis::BatchV1::Job, decorator: Google::Apis::BatchV1::Job::Representation
654
+
655
+ property :next_page_token, as: 'nextPageToken'
656
+ collection :unreachable, as: 'unreachable'
657
+ end
658
+ end
659
+
660
+ class ListLocationsResponse
661
+ # @private
662
+ class Representation < Google::Apis::Core::JsonRepresentation
663
+ collection :locations, as: 'locations', class: Google::Apis::BatchV1::Location, decorator: Google::Apis::BatchV1::Location::Representation
664
+
665
+ property :next_page_token, as: 'nextPageToken'
666
+ end
667
+ end
668
+
669
+ class ListOperationsResponse
670
+ # @private
671
+ class Representation < Google::Apis::Core::JsonRepresentation
672
+ property :next_page_token, as: 'nextPageToken'
673
+ collection :operations, as: 'operations', class: Google::Apis::BatchV1::Operation, decorator: Google::Apis::BatchV1::Operation::Representation
674
+
675
+ end
676
+ end
677
+
678
+ class ListTasksResponse
679
+ # @private
680
+ class Representation < Google::Apis::Core::JsonRepresentation
681
+ property :next_page_token, as: 'nextPageToken'
682
+ collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::Task, decorator: Google::Apis::BatchV1::Task::Representation
683
+
684
+ collection :unreachable, as: 'unreachable'
685
+ end
686
+ end
687
+
688
+ class Location
689
+ # @private
690
+ class Representation < Google::Apis::Core::JsonRepresentation
691
+ property :display_name, as: 'displayName'
692
+ hash :labels, as: 'labels'
693
+ property :location_id, as: 'locationId'
694
+ hash :metadata, as: 'metadata'
695
+ property :name, as: 'name'
696
+ end
697
+ end
698
+
699
+ class LocationPolicy
700
+ # @private
701
+ class Representation < Google::Apis::Core::JsonRepresentation
702
+ collection :allowed_locations, as: 'allowedLocations'
703
+ end
704
+ end
705
+
706
+ class LogsPolicy
707
+ # @private
708
+ class Representation < Google::Apis::Core::JsonRepresentation
709
+ property :destination, as: 'destination'
710
+ property :logs_path, as: 'logsPath'
711
+ end
712
+ end
713
+
714
+ class Message
715
+ # @private
716
+ class Representation < Google::Apis::Core::JsonRepresentation
717
+ property :new_job_state, as: 'newJobState'
718
+ property :new_task_state, as: 'newTaskState'
719
+ property :type, as: 'type'
720
+ end
721
+ end
722
+
723
+ class Nfs
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ property :remote_path, as: 'remotePath'
727
+ property :server, as: 'server'
728
+ end
729
+ end
730
+
731
+ class NetworkInterface
732
+ # @private
733
+ class Representation < Google::Apis::Core::JsonRepresentation
734
+ property :network, as: 'network'
735
+ property :no_external_ip_address, as: 'noExternalIpAddress'
736
+ property :subnetwork, as: 'subnetwork'
737
+ end
738
+ end
739
+
740
+ class NetworkPolicy
741
+ # @private
742
+ class Representation < Google::Apis::Core::JsonRepresentation
743
+ collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::BatchV1::NetworkInterface, decorator: Google::Apis::BatchV1::NetworkInterface::Representation
744
+
745
+ end
746
+ end
747
+
748
+ class Operation
749
+ # @private
750
+ class Representation < Google::Apis::Core::JsonRepresentation
751
+ property :done, as: 'done'
752
+ property :error, as: 'error', class: Google::Apis::BatchV1::Status, decorator: Google::Apis::BatchV1::Status::Representation
753
+
754
+ hash :metadata, as: 'metadata'
755
+ property :name, as: 'name'
756
+ hash :response, as: 'response'
757
+ end
758
+ end
759
+
760
+ class OperationMetadata
761
+ # @private
762
+ class Representation < Google::Apis::Core::JsonRepresentation
763
+ property :api_version, as: 'apiVersion'
764
+ property :create_time, as: 'createTime'
765
+ property :end_time, as: 'endTime'
766
+ property :requested_cancellation, as: 'requestedCancellation'
767
+ property :status_message, as: 'statusMessage'
768
+ property :target, as: 'target'
769
+ property :verb, as: 'verb'
770
+ end
771
+ end
772
+
773
+ class Policy
774
+ # @private
775
+ class Representation < Google::Apis::Core::JsonRepresentation
776
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BatchV1::AuditConfig, decorator: Google::Apis::BatchV1::AuditConfig::Representation
777
+
778
+ collection :bindings, as: 'bindings', class: Google::Apis::BatchV1::Binding, decorator: Google::Apis::BatchV1::Binding::Representation
779
+
780
+ property :etag, :base64 => true, as: 'etag'
781
+ property :version, as: 'version'
782
+ end
783
+ end
784
+
785
+ class ReportAgentStateRequest
786
+ # @private
787
+ class Representation < Google::Apis::Core::JsonRepresentation
788
+ property :agent_info, as: 'agentInfo', class: Google::Apis::BatchV1::AgentInfo, decorator: Google::Apis::BatchV1::AgentInfo::Representation
789
+
790
+ property :metadata, as: 'metadata', class: Google::Apis::BatchV1::AgentMetadata, decorator: Google::Apis::BatchV1::AgentMetadata::Representation
791
+
792
+ end
793
+ end
794
+
795
+ class ReportAgentStateResponse
796
+ # @private
797
+ class Representation < Google::Apis::Core::JsonRepresentation
798
+ collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::AgentTask, decorator: Google::Apis::BatchV1::AgentTask::Representation
799
+
800
+ end
801
+ end
802
+
803
+ class Runnable
804
+ # @private
805
+ class Representation < Google::Apis::Core::JsonRepresentation
806
+ property :always_run, as: 'alwaysRun'
807
+ property :background, as: 'background'
808
+ property :barrier, as: 'barrier', class: Google::Apis::BatchV1::Barrier, decorator: Google::Apis::BatchV1::Barrier::Representation
809
+
810
+ property :container, as: 'container', class: Google::Apis::BatchV1::Container, decorator: Google::Apis::BatchV1::Container::Representation
811
+
812
+ property :environment, as: 'environment', class: Google::Apis::BatchV1::Environment, decorator: Google::Apis::BatchV1::Environment::Representation
813
+
814
+ property :ignore_exit_status, as: 'ignoreExitStatus'
815
+ property :script, as: 'script', class: Google::Apis::BatchV1::Script, decorator: Google::Apis::BatchV1::Script::Representation
816
+
817
+ property :timeout, as: 'timeout'
818
+ end
819
+ end
820
+
821
+ class Script
822
+ # @private
823
+ class Representation < Google::Apis::Core::JsonRepresentation
824
+ property :path, as: 'path'
825
+ property :text, as: 'text'
826
+ end
827
+ end
828
+
829
+ class ServiceAccount
830
+ # @private
831
+ class Representation < Google::Apis::Core::JsonRepresentation
832
+ property :email, as: 'email'
833
+ end
834
+ end
835
+
836
+ class SetIamPolicyRequest
837
+ # @private
838
+ class Representation < Google::Apis::Core::JsonRepresentation
839
+ property :policy, as: 'policy', class: Google::Apis::BatchV1::Policy, decorator: Google::Apis::BatchV1::Policy::Representation
840
+
841
+ property :update_mask, as: 'updateMask'
842
+ end
843
+ end
844
+
845
+ class Status
846
+ # @private
847
+ class Representation < Google::Apis::Core::JsonRepresentation
848
+ property :code, as: 'code'
849
+ collection :details, as: 'details'
850
+ property :message, as: 'message'
851
+ end
852
+ end
853
+
854
+ class StatusEvent
855
+ # @private
856
+ class Representation < Google::Apis::Core::JsonRepresentation
857
+ property :description, as: 'description'
858
+ property :event_time, as: 'eventTime'
859
+ property :task_execution, as: 'taskExecution', class: Google::Apis::BatchV1::TaskExecution, decorator: Google::Apis::BatchV1::TaskExecution::Representation
860
+
861
+ property :type, as: 'type'
862
+ end
863
+ end
864
+
865
+ class Task
866
+ # @private
867
+ class Representation < Google::Apis::Core::JsonRepresentation
868
+ property :name, as: 'name'
869
+ property :status, as: 'status', class: Google::Apis::BatchV1::TaskStatus, decorator: Google::Apis::BatchV1::TaskStatus::Representation
870
+
871
+ end
872
+ end
873
+
874
+ class TaskExecution
875
+ # @private
876
+ class Representation < Google::Apis::Core::JsonRepresentation
877
+ property :exit_code, as: 'exitCode'
878
+ end
879
+ end
880
+
881
+ class TaskGroup
882
+ # @private
883
+ class Representation < Google::Apis::Core::JsonRepresentation
884
+ property :name, as: 'name'
885
+ property :parallelism, :numeric_string => true, as: 'parallelism'
886
+ property :permissive_ssh, as: 'permissiveSsh'
887
+ property :require_hosts_file, as: 'requireHostsFile'
888
+ property :task_count, :numeric_string => true, as: 'taskCount'
889
+ property :task_count_per_node, :numeric_string => true, as: 'taskCountPerNode'
890
+ collection :task_environments, as: 'taskEnvironments', class: Google::Apis::BatchV1::Environment, decorator: Google::Apis::BatchV1::Environment::Representation
891
+
892
+ property :task_spec, as: 'taskSpec', class: Google::Apis::BatchV1::TaskSpec, decorator: Google::Apis::BatchV1::TaskSpec::Representation
893
+
894
+ end
895
+ end
896
+
897
+ class TaskGroupStatus
898
+ # @private
899
+ class Representation < Google::Apis::Core::JsonRepresentation
900
+ hash :counts, as: 'counts'
901
+ collection :instances, as: 'instances', class: Google::Apis::BatchV1::InstanceStatus, decorator: Google::Apis::BatchV1::InstanceStatus::Representation
902
+
903
+ end
904
+ end
905
+
906
+ class TaskSpec
907
+ # @private
908
+ class Representation < Google::Apis::Core::JsonRepresentation
909
+ property :compute_resource, as: 'computeResource', class: Google::Apis::BatchV1::ComputeResource, decorator: Google::Apis::BatchV1::ComputeResource::Representation
910
+
911
+ property :environment, as: 'environment', class: Google::Apis::BatchV1::Environment, decorator: Google::Apis::BatchV1::Environment::Representation
912
+
913
+ hash :environments, as: 'environments'
914
+ collection :lifecycle_policies, as: 'lifecyclePolicies', class: Google::Apis::BatchV1::LifecyclePolicy, decorator: Google::Apis::BatchV1::LifecyclePolicy::Representation
915
+
916
+ property :max_retry_count, as: 'maxRetryCount'
917
+ property :max_run_duration, as: 'maxRunDuration'
918
+ collection :runnables, as: 'runnables', class: Google::Apis::BatchV1::Runnable, decorator: Google::Apis::BatchV1::Runnable::Representation
919
+
920
+ collection :volumes, as: 'volumes', class: Google::Apis::BatchV1::Volume, decorator: Google::Apis::BatchV1::Volume::Representation
921
+
922
+ end
923
+ end
924
+
925
+ class TaskStatus
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ property :state, as: 'state'
929
+ collection :status_events, as: 'statusEvents', class: Google::Apis::BatchV1::StatusEvent, decorator: Google::Apis::BatchV1::StatusEvent::Representation
930
+
931
+ end
932
+ end
933
+
934
+ class TestIamPermissionsRequest
935
+ # @private
936
+ class Representation < Google::Apis::Core::JsonRepresentation
937
+ collection :permissions, as: 'permissions'
938
+ end
939
+ end
940
+
941
+ class TestIamPermissionsResponse
942
+ # @private
943
+ class Representation < Google::Apis::Core::JsonRepresentation
944
+ collection :permissions, as: 'permissions'
945
+ end
946
+ end
947
+
948
+ class Volume
949
+ # @private
950
+ class Representation < Google::Apis::Core::JsonRepresentation
951
+ property :device_name, as: 'deviceName'
952
+ property :gcs, as: 'gcs', class: Google::Apis::BatchV1::Gcs, decorator: Google::Apis::BatchV1::Gcs::Representation
953
+
954
+ collection :mount_options, as: 'mountOptions'
955
+ property :mount_path, as: 'mountPath'
956
+ property :nfs, as: 'nfs', class: Google::Apis::BatchV1::Nfs, decorator: Google::Apis::BatchV1::Nfs::Representation
957
+
958
+ end
959
+ end
960
+ end
961
+ end
962
+ end