Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: generated/googleapis_beta/lib/dataflow/v1b4.dart

Issue 904493003: API roll 11 v2: 2015-02-06 (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis_beta/README.md ('k') | generated/googleapis_beta/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library googleapis_beta.dataflow.v1b4;
2
3 import "dart:core" as core;
4 import "dart:collection" as collection;
5 import "dart:async" as async;
6 import "dart:convert" as convert;
7
8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12
13 export '../common/common.dart' show ApiRequestError;
14 export '../common/common.dart' show DetailedApiRequestError;
15
16 /** Google Dataflow API. */
17 class DataflowApi {
18 /** View and manage your data across Google Cloud Platform services */
19 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
20
21 /** View your email address */
22 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em ail";
23
24
25 final common_internal.ApiRequester _requester;
26
27 V1b3ResourceApi get v1b3 => new V1b3ResourceApi(_requester);
28
29 DataflowApi(http.Client client, {core.String rootUrl: "https://dataflow.google apis.com/", core.String servicePath: "v1b3/projects/"}) :
30 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath );
31 }
32
33
34 /** Not documented yet. */
35 class V1b3ResourceApi {
36 final common_internal.ApiRequester _requester;
37
38 V1b3ProjectsResourceApi get projects => new V1b3ProjectsResourceApi(_requester );
39
40 V1b3ResourceApi(common_internal.ApiRequester client) :
41 _requester = client;
42 }
43
44
45 /** Not documented yet. */
46 class V1b3ProjectsResourceApi {
47 final common_internal.ApiRequester _requester;
48
49 V1b3ProjectsJobsResourceApi get jobs => new V1b3ProjectsJobsResourceApi(_reque ster);
50
51 V1b3ProjectsResourceApi(common_internal.ApiRequester client) :
52 _requester = client;
53 }
54
55
56 /** Not documented yet. */
57 class V1b3ProjectsJobsResourceApi {
58 final common_internal.ApiRequester _requester;
59
60 V1b3ProjectsJobsMessagesResourceApi get messages => new V1b3ProjectsJobsMessag esResourceApi(_requester);
61 V1b3ProjectsJobsWorkItemsResourceApi get workItems => new V1b3ProjectsJobsWork ItemsResourceApi(_requester);
62
63 V1b3ProjectsJobsResourceApi(common_internal.ApiRequester client) :
64 _requester = client;
65
66 /**
67 * Creates a dataflow job.
68 *
69 * [request] - The metadata request object.
70 *
71 * Request parameters:
72 *
73 * [projectId] - null
74 *
75 * [view] - null
76 * Possible string values are:
77 * - "JOB_VIEW_ALL"
78 * - "JOB_VIEW_SUMMARY"
79 * - "JOB_VIEW_UNKNOWN"
80 *
81 * Completes with a [Job].
82 *
83 * Completes with a [common.ApiRequestError] if the API endpoint returned an
84 * error.
85 *
86 * If the used [http.Client] completes with an error when making a REST call,
87 * this method will complete with the same error.
88 */
89 async.Future<Job> create(Job request, core.String projectId, {core.String view }) {
90 var _url = null;
91 var _queryParams = new core.Map();
92 var _uploadMedia = null;
93 var _uploadOptions = null;
94 var _downloadOptions = common.DownloadOptions.Metadata;
95 var _body = null;
96
97 if (request != null) {
98 _body = convert.JSON.encode((request).toJson());
99 }
100 if (projectId == null) {
101 throw new core.ArgumentError("Parameter projectId is required.");
102 }
103 if (view != null) {
104 _queryParams["view"] = [view];
105 }
106
107
108 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs';
109
110 var _response = _requester.request(_url,
111 "POST",
112 body: _body,
113 queryParams: _queryParams,
114 uploadOptions: _uploadOptions,
115 uploadMedia: _uploadMedia,
116 downloadOptions: _downloadOptions);
117 return _response.then((data) => new Job.fromJson(data));
118 }
119
120 /**
121 * Gets the state of the specified dataflow job.
122 *
123 * Request parameters:
124 *
125 * [projectId] - null
126 *
127 * [jobId] - null
128 *
129 * [view] - null
130 * Possible string values are:
131 * - "JOB_VIEW_ALL"
132 * - "JOB_VIEW_SUMMARY"
133 * - "JOB_VIEW_UNKNOWN"
134 *
135 * Completes with a [Job].
136 *
137 * Completes with a [common.ApiRequestError] if the API endpoint returned an
138 * error.
139 *
140 * If the used [http.Client] completes with an error when making a REST call,
141 * this method will complete with the same error.
142 */
143 async.Future<Job> get(core.String projectId, core.String jobId, {core.String v iew}) {
144 var _url = null;
145 var _queryParams = new core.Map();
146 var _uploadMedia = null;
147 var _uploadOptions = null;
148 var _downloadOptions = common.DownloadOptions.Metadata;
149 var _body = null;
150
151 if (projectId == null) {
152 throw new core.ArgumentError("Parameter projectId is required.");
153 }
154 if (jobId == null) {
155 throw new core.ArgumentError("Parameter jobId is required.");
156 }
157 if (view != null) {
158 _queryParams["view"] = [view];
159 }
160
161
162 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId');
163
164 var _response = _requester.request(_url,
165 "GET",
166 body: _body,
167 queryParams: _queryParams,
168 uploadOptions: _uploadOptions,
169 uploadMedia: _uploadMedia,
170 downloadOptions: _downloadOptions);
171 return _response.then((data) => new Job.fromJson(data));
172 }
173
174 /**
175 * Request the job status.
176 *
177 * Request parameters:
178 *
179 * [projectId] - null
180 *
181 * [jobId] - null
182 *
183 * [startTime] - null
184 *
185 * Completes with a [JobMetrics].
186 *
187 * Completes with a [common.ApiRequestError] if the API endpoint returned an
188 * error.
189 *
190 * If the used [http.Client] completes with an error when making a REST call,
191 * this method will complete with the same error.
192 */
193 async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String startTime}) {
194 var _url = null;
195 var _queryParams = new core.Map();
196 var _uploadMedia = null;
197 var _uploadOptions = null;
198 var _downloadOptions = common.DownloadOptions.Metadata;
199 var _body = null;
200
201 if (projectId == null) {
202 throw new core.ArgumentError("Parameter projectId is required.");
203 }
204 if (jobId == null) {
205 throw new core.ArgumentError("Parameter jobId is required.");
206 }
207 if (startTime != null) {
208 _queryParams["startTime"] = [startTime];
209 }
210
211
212 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId') + '/metrics';
213
214 var _response = _requester.request(_url,
215 "GET",
216 body: _body,
217 queryParams: _queryParams,
218 uploadOptions: _uploadOptions,
219 uploadMedia: _uploadMedia,
220 downloadOptions: _downloadOptions);
221 return _response.then((data) => new JobMetrics.fromJson(data));
222 }
223
224 /**
225 * List the jobs of a project
226 *
227 * Request parameters:
228 *
229 * [projectId] - null
230 *
231 * [pageSize] - null
232 *
233 * [pageToken] - null
234 *
235 * [view] - null
236 * Possible string values are:
237 * - "JOB_VIEW_ALL"
238 * - "JOB_VIEW_SUMMARY"
239 * - "JOB_VIEW_UNKNOWN"
240 *
241 * Completes with a [ListJobsResponse].
242 *
243 * Completes with a [common.ApiRequestError] if the API endpoint returned an
244 * error.
245 *
246 * If the used [http.Client] completes with an error when making a REST call,
247 * this method will complete with the same error.
248 */
249 async.Future<ListJobsResponse> list(core.String projectId, {core.int pageSize, core.String pageToken, core.String view}) {
250 var _url = null;
251 var _queryParams = new core.Map();
252 var _uploadMedia = null;
253 var _uploadOptions = null;
254 var _downloadOptions = common.DownloadOptions.Metadata;
255 var _body = null;
256
257 if (projectId == null) {
258 throw new core.ArgumentError("Parameter projectId is required.");
259 }
260 if (pageSize != null) {
261 _queryParams["pageSize"] = ["${pageSize}"];
262 }
263 if (pageToken != null) {
264 _queryParams["pageToken"] = [pageToken];
265 }
266 if (view != null) {
267 _queryParams["view"] = [view];
268 }
269
270
271 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs';
272
273 var _response = _requester.request(_url,
274 "GET",
275 body: _body,
276 queryParams: _queryParams,
277 uploadOptions: _uploadOptions,
278 uploadMedia: _uploadMedia,
279 downloadOptions: _downloadOptions);
280 return _response.then((data) => new ListJobsResponse.fromJson(data));
281 }
282
283 /**
284 * Updates the state of an existing dataflow job. This method supports patch
285 * semantics.
286 *
287 * [request] - The metadata request object.
288 *
289 * Request parameters:
290 *
291 * [projectId] - null
292 *
293 * [jobId] - null
294 *
295 * Completes with a [Job].
296 *
297 * Completes with a [common.ApiRequestError] if the API endpoint returned an
298 * error.
299 *
300 * If the used [http.Client] completes with an error when making a REST call,
301 * this method will complete with the same error.
302 */
303 async.Future<Job> patch(Job request, core.String projectId, core.String jobId) {
304 var _url = null;
305 var _queryParams = new core.Map();
306 var _uploadMedia = null;
307 var _uploadOptions = null;
308 var _downloadOptions = common.DownloadOptions.Metadata;
309 var _body = null;
310
311 if (request != null) {
312 _body = convert.JSON.encode((request).toJson());
313 }
314 if (projectId == null) {
315 throw new core.ArgumentError("Parameter projectId is required.");
316 }
317 if (jobId == null) {
318 throw new core.ArgumentError("Parameter jobId is required.");
319 }
320
321
322 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId');
323
324 var _response = _requester.request(_url,
325 "PATCH",
326 body: _body,
327 queryParams: _queryParams,
328 uploadOptions: _uploadOptions,
329 uploadMedia: _uploadMedia,
330 downloadOptions: _downloadOptions);
331 return _response.then((data) => new Job.fromJson(data));
332 }
333
334 /**
335 * Updates the state of an existing dataflow job.
336 *
337 * [request] - The metadata request object.
338 *
339 * Request parameters:
340 *
341 * [projectId] - null
342 *
343 * [jobId] - null
344 *
345 * Completes with a [Job].
346 *
347 * Completes with a [common.ApiRequestError] if the API endpoint returned an
348 * error.
349 *
350 * If the used [http.Client] completes with an error when making a REST call,
351 * this method will complete with the same error.
352 */
353 async.Future<Job> update(Job request, core.String projectId, core.String jobId ) {
354 var _url = null;
355 var _queryParams = new core.Map();
356 var _uploadMedia = null;
357 var _uploadOptions = null;
358 var _downloadOptions = common.DownloadOptions.Metadata;
359 var _body = null;
360
361 if (request != null) {
362 _body = convert.JSON.encode((request).toJson());
363 }
364 if (projectId == null) {
365 throw new core.ArgumentError("Parameter projectId is required.");
366 }
367 if (jobId == null) {
368 throw new core.ArgumentError("Parameter jobId is required.");
369 }
370
371
372 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId');
373
374 var _response = _requester.request(_url,
375 "PUT",
376 body: _body,
377 queryParams: _queryParams,
378 uploadOptions: _uploadOptions,
379 uploadMedia: _uploadMedia,
380 downloadOptions: _downloadOptions);
381 return _response.then((data) => new Job.fromJson(data));
382 }
383
384 }
385
386
387 /** Not documented yet. */
388 class V1b3ProjectsJobsMessagesResourceApi {
389 final common_internal.ApiRequester _requester;
390
391 V1b3ProjectsJobsMessagesResourceApi(common_internal.ApiRequester client) :
392 _requester = client;
393
394 /**
395 * Request the job status.
396 *
397 * Request parameters:
398 *
399 * [projectId] - null
400 *
401 * [jobId] - null
402 *
403 * [endTime] - null
404 *
405 * [minimumImportance] - null
406 * Possible string values are:
407 * - "JOB_MESSAGE_DEBUG"
408 * - "JOB_MESSAGE_DETAILED"
409 * - "JOB_MESSAGE_ERROR"
410 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN"
411 * - "JOB_MESSAGE_WARNING"
412 *
413 * [pageSize] - null
414 *
415 * [pageToken] - null
416 *
417 * [startTime] - null
418 *
419 * Completes with a [ListJobMessagesResponse].
420 *
421 * Completes with a [common.ApiRequestError] if the API endpoint returned an
422 * error.
423 *
424 * If the used [http.Client] completes with an error when making a REST call,
425 * this method will complete with the same error.
426 */
427 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String endTime, core.String minimumImportance, core.int pageSize, c ore.String pageToken, core.String startTime}) {
428 var _url = null;
429 var _queryParams = new core.Map();
430 var _uploadMedia = null;
431 var _uploadOptions = null;
432 var _downloadOptions = common.DownloadOptions.Metadata;
433 var _body = null;
434
435 if (projectId == null) {
436 throw new core.ArgumentError("Parameter projectId is required.");
437 }
438 if (jobId == null) {
439 throw new core.ArgumentError("Parameter jobId is required.");
440 }
441 if (endTime != null) {
442 _queryParams["endTime"] = [endTime];
443 }
444 if (minimumImportance != null) {
445 _queryParams["minimumImportance"] = [minimumImportance];
446 }
447 if (pageSize != null) {
448 _queryParams["pageSize"] = ["${pageSize}"];
449 }
450 if (pageToken != null) {
451 _queryParams["pageToken"] = [pageToken];
452 }
453 if (startTime != null) {
454 _queryParams["startTime"] = [startTime];
455 }
456
457
458 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId') + '/messages';
459
460 var _response = _requester.request(_url,
461 "GET",
462 body: _body,
463 queryParams: _queryParams,
464 uploadOptions: _uploadOptions,
465 uploadMedia: _uploadMedia,
466 downloadOptions: _downloadOptions);
467 return _response.then((data) => new ListJobMessagesResponse.fromJson(data));
468 }
469
470 }
471
472
473 /** Not documented yet. */
474 class V1b3ProjectsJobsWorkItemsResourceApi {
475 final common_internal.ApiRequester _requester;
476
477 V1b3ProjectsJobsWorkItemsResourceApi(common_internal.ApiRequester client) :
478 _requester = client;
479
480 /**
481 * Leases a dataflow WorkItem to run.
482 *
483 * [request] - The metadata request object.
484 *
485 * Request parameters:
486 *
487 * [projectId] - null
488 *
489 * [jobId] - null
490 *
491 * Completes with a [LeaseWorkItemResponse].
492 *
493 * Completes with a [common.ApiRequestError] if the API endpoint returned an
494 * error.
495 *
496 * If the used [http.Client] completes with an error when making a REST call,
497 * this method will complete with the same error.
498 */
499 async.Future<LeaseWorkItemResponse> lease(LeaseWorkItemRequest request, core.S tring projectId, core.String jobId) {
500 var _url = null;
501 var _queryParams = new core.Map();
502 var _uploadMedia = null;
503 var _uploadOptions = null;
504 var _downloadOptions = common.DownloadOptions.Metadata;
505 var _body = null;
506
507 if (request != null) {
508 _body = convert.JSON.encode((request).toJson());
509 }
510 if (projectId == null) {
511 throw new core.ArgumentError("Parameter projectId is required.");
512 }
513 if (jobId == null) {
514 throw new core.ArgumentError("Parameter jobId is required.");
515 }
516
517
518 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId') + '/workItems:lease';
519
520 var _response = _requester.request(_url,
521 "POST",
522 body: _body,
523 queryParams: _queryParams,
524 uploadOptions: _uploadOptions,
525 uploadMedia: _uploadMedia,
526 downloadOptions: _downloadOptions);
527 return _response.then((data) => new LeaseWorkItemResponse.fromJson(data));
528 }
529
530 /**
531 * Reports the status of dataflow WorkItems leased by a worker.
532 *
533 * [request] - The metadata request object.
534 *
535 * Request parameters:
536 *
537 * [projectId] - null
538 *
539 * [jobId] - null
540 *
541 * Completes with a [ReportWorkItemStatusResponse].
542 *
543 * Completes with a [common.ApiRequestError] if the API endpoint returned an
544 * error.
545 *
546 * If the used [http.Client] completes with an error when making a REST call,
547 * this method will complete with the same error.
548 */
549 async.Future<ReportWorkItemStatusResponse> reportStatus(ReportWorkItemStatusRe quest request, core.String projectId, core.String jobId) {
550 var _url = null;
551 var _queryParams = new core.Map();
552 var _uploadMedia = null;
553 var _uploadOptions = null;
554 var _downloadOptions = common.DownloadOptions.Metadata;
555 var _body = null;
556
557 if (request != null) {
558 _body = convert.JSON.encode((request).toJson());
559 }
560 if (projectId == null) {
561 throw new core.ArgumentError("Parameter projectId is required.");
562 }
563 if (jobId == null) {
564 throw new core.ArgumentError("Parameter jobId is required.");
565 }
566
567
568 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/jobs/' + comm on_internal.Escaper.ecapeVariable('$jobId') + '/workItems:reportStatus';
569
570 var _response = _requester.request(_url,
571 "POST",
572 body: _body,
573 queryParams: _queryParams,
574 uploadOptions: _uploadOptions,
575 uploadMedia: _uploadMedia,
576 downloadOptions: _downloadOptions);
577 return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(da ta));
578 }
579
580 }
581
582
583
584 /** Not documented yet. */
585 class ApproximateProgress {
586 /** Not documented yet. */
587 core.double percentComplete;
588
589 /** Not documented yet. */
590 Position position;
591
592 /** Not documented yet. */
593 core.String remainingTime;
594
595
596 ApproximateProgress();
597
598 ApproximateProgress.fromJson(core.Map _json) {
599 if (_json.containsKey("percentComplete")) {
600 percentComplete = _json["percentComplete"];
601 }
602 if (_json.containsKey("position")) {
603 position = new Position.fromJson(_json["position"]);
604 }
605 if (_json.containsKey("remainingTime")) {
606 remainingTime = _json["remainingTime"];
607 }
608 }
609
610 core.Map toJson() {
611 var _json = new core.Map();
612 if (percentComplete != null) {
613 _json["percentComplete"] = percentComplete;
614 }
615 if (position != null) {
616 _json["position"] = (position).toJson();
617 }
618 if (remainingTime != null) {
619 _json["remainingTime"] = remainingTime;
620 }
621 return _json;
622 }
623 }
624
625
626 /** Not documented yet. */
627 class AutoscalingSettings {
628 /**
629 * Not documented yet.
630 * Possible string values are:
631 * - "AUTOSCALING_ALGORITHM_BASIC"
632 * - "AUTOSCALING_ALGORITHM_NONE"
633 * - "AUTOSCALING_ALGORITHM_UNKNOWN"
634 */
635 core.String algorithm;
636
637 /** Not documented yet. */
638 core.int maxNumWorkers;
639
640
641 AutoscalingSettings();
642
643 AutoscalingSettings.fromJson(core.Map _json) {
644 if (_json.containsKey("algorithm")) {
645 algorithm = _json["algorithm"];
646 }
647 if (_json.containsKey("maxNumWorkers")) {
648 maxNumWorkers = _json["maxNumWorkers"];
649 }
650 }
651
652 core.Map toJson() {
653 var _json = new core.Map();
654 if (algorithm != null) {
655 _json["algorithm"] = algorithm;
656 }
657 if (maxNumWorkers != null) {
658 _json["maxNumWorkers"] = maxNumWorkers;
659 }
660 return _json;
661 }
662 }
663
664
665 /** Not documented yet. */
666 class ComputationTopology {
667 /** Not documented yet. */
668 core.String computationId;
669
670 /** Not documented yet. */
671 core.List<StreamLocation> inputs;
672
673 /** Not documented yet. */
674 core.List<KeyRangeLocation> keyRanges;
675
676 /** Not documented yet. */
677 core.List<StreamLocation> outputs;
678
679
680 ComputationTopology();
681
682 ComputationTopology.fromJson(core.Map _json) {
683 if (_json.containsKey("computationId")) {
684 computationId = _json["computationId"];
685 }
686 if (_json.containsKey("inputs")) {
687 inputs = _json["inputs"].map((value) => new StreamLocation.fromJson(value) ).toList();
688 }
689 if (_json.containsKey("keyRanges")) {
690 keyRanges = _json["keyRanges"].map((value) => new KeyRangeLocation.fromJso n(value)).toList();
691 }
692 if (_json.containsKey("outputs")) {
693 outputs = _json["outputs"].map((value) => new StreamLocation.fromJson(valu e)).toList();
694 }
695 }
696
697 core.Map toJson() {
698 var _json = new core.Map();
699 if (computationId != null) {
700 _json["computationId"] = computationId;
701 }
702 if (inputs != null) {
703 _json["inputs"] = inputs.map((value) => (value).toJson()).toList();
704 }
705 if (keyRanges != null) {
706 _json["keyRanges"] = keyRanges.map((value) => (value).toJson()).toList();
707 }
708 if (outputs != null) {
709 _json["outputs"] = outputs.map((value) => (value).toJson()).toList();
710 }
711 return _json;
712 }
713 }
714
715
716 /** Not documented yet. */
717 class DataDiskAssignment {
718 /** Not documented yet. */
719 core.List<core.String> dataDisks;
720
721 /** Not documented yet. */
722 core.String vmInstance;
723
724
725 DataDiskAssignment();
726
727 DataDiskAssignment.fromJson(core.Map _json) {
728 if (_json.containsKey("dataDisks")) {
729 dataDisks = _json["dataDisks"];
730 }
731 if (_json.containsKey("vmInstance")) {
732 vmInstance = _json["vmInstance"];
733 }
734 }
735
736 core.Map toJson() {
737 var _json = new core.Map();
738 if (dataDisks != null) {
739 _json["dataDisks"] = dataDisks;
740 }
741 if (vmInstance != null) {
742 _json["vmInstance"] = vmInstance;
743 }
744 return _json;
745 }
746 }
747
748
749 /** Not documented yet. */
750 class Disk {
751 /** Not documented yet. */
752 core.String diskType;
753
754 /** Not documented yet. */
755 core.String mountPoint;
756
757 /** Not documented yet. */
758 core.int sizeGb;
759
760
761 Disk();
762
763 Disk.fromJson(core.Map _json) {
764 if (_json.containsKey("diskType")) {
765 diskType = _json["diskType"];
766 }
767 if (_json.containsKey("mountPoint")) {
768 mountPoint = _json["mountPoint"];
769 }
770 if (_json.containsKey("sizeGb")) {
771 sizeGb = _json["sizeGb"];
772 }
773 }
774
775 core.Map toJson() {
776 var _json = new core.Map();
777 if (diskType != null) {
778 _json["diskType"] = diskType;
779 }
780 if (mountPoint != null) {
781 _json["mountPoint"] = mountPoint;
782 }
783 if (sizeGb != null) {
784 _json["sizeGb"] = sizeGb;
785 }
786 return _json;
787 }
788 }
789
790
791 /** Not documented yet. */
792 class Environment {
793 /** Not documented yet. */
794 core.String clusterManagerApiService;
795
796 /** Not documented yet. */
797 core.String dataset;
798
799 /** Not documented yet. */
800 core.List<core.String> experiments;
801
802 /** Not documented yet. */
803 core.String tempStoragePrefix;
804
805 /**
806 * Not documented yet.
807 *
808 * The values for Object must be JSON objects. It can consist of `num`,
809 * `String`, `bool` and `null` as well as `Map` and `List` values.
810 */
811 core.Map<core.String, core.Object> userAgent;
812
813 /**
814 * Not documented yet.
815 *
816 * The values for Object must be JSON objects. It can consist of `num`,
817 * `String`, `bool` and `null` as well as `Map` and `List` values.
818 */
819 core.Map<core.String, core.Object> version;
820
821 /** Not documented yet. */
822 core.List<WorkerPool> workerPools;
823
824
825 Environment();
826
827 Environment.fromJson(core.Map _json) {
828 if (_json.containsKey("clusterManagerApiService")) {
829 clusterManagerApiService = _json["clusterManagerApiService"];
830 }
831 if (_json.containsKey("dataset")) {
832 dataset = _json["dataset"];
833 }
834 if (_json.containsKey("experiments")) {
835 experiments = _json["experiments"];
836 }
837 if (_json.containsKey("tempStoragePrefix")) {
838 tempStoragePrefix = _json["tempStoragePrefix"];
839 }
840 if (_json.containsKey("userAgent")) {
841 userAgent = _json["userAgent"];
842 }
843 if (_json.containsKey("version")) {
844 version = _json["version"];
845 }
846 if (_json.containsKey("workerPools")) {
847 workerPools = _json["workerPools"].map((value) => new WorkerPool.fromJson( value)).toList();
848 }
849 }
850
851 core.Map toJson() {
852 var _json = new core.Map();
853 if (clusterManagerApiService != null) {
854 _json["clusterManagerApiService"] = clusterManagerApiService;
855 }
856 if (dataset != null) {
857 _json["dataset"] = dataset;
858 }
859 if (experiments != null) {
860 _json["experiments"] = experiments;
861 }
862 if (tempStoragePrefix != null) {
863 _json["tempStoragePrefix"] = tempStoragePrefix;
864 }
865 if (userAgent != null) {
866 _json["userAgent"] = userAgent;
867 }
868 if (version != null) {
869 _json["version"] = version;
870 }
871 if (workerPools != null) {
872 _json["workerPools"] = workerPools.map((value) => (value).toJson()).toList ();
873 }
874 return _json;
875 }
876 }
877
878
879 /** Not documented yet. */
880 class FlattenInstruction {
881 /** Not documented yet. */
882 core.List<InstructionInput> inputs;
883
884
885 FlattenInstruction();
886
887 FlattenInstruction.fromJson(core.Map _json) {
888 if (_json.containsKey("inputs")) {
889 inputs = _json["inputs"].map((value) => new InstructionInput.fromJson(valu e)).toList();
890 }
891 }
892
893 core.Map toJson() {
894 var _json = new core.Map();
895 if (inputs != null) {
896 _json["inputs"] = inputs.map((value) => (value).toJson()).toList();
897 }
898 return _json;
899 }
900 }
901
902
903 /** Not documented yet. */
904 class InstructionInput {
905 /** Not documented yet. */
906 core.int outputNum;
907
908 /** Not documented yet. */
909 core.int producerInstructionIndex;
910
911
912 InstructionInput();
913
914 InstructionInput.fromJson(core.Map _json) {
915 if (_json.containsKey("outputNum")) {
916 outputNum = _json["outputNum"];
917 }
918 if (_json.containsKey("producerInstructionIndex")) {
919 producerInstructionIndex = _json["producerInstructionIndex"];
920 }
921 }
922
923 core.Map toJson() {
924 var _json = new core.Map();
925 if (outputNum != null) {
926 _json["outputNum"] = outputNum;
927 }
928 if (producerInstructionIndex != null) {
929 _json["producerInstructionIndex"] = producerInstructionIndex;
930 }
931 return _json;
932 }
933 }
934
935
936 /** Not documented yet. */
937 class InstructionOutput {
938 /**
939 * Not documented yet.
940 *
941 * The values for Object must be JSON objects. It can consist of `num`,
942 * `String`, `bool` and `null` as well as `Map` and `List` values.
943 */
944 core.Map<core.String, core.Object> codec;
945
946 /** Not documented yet. */
947 core.String name;
948
949
950 InstructionOutput();
951
952 InstructionOutput.fromJson(core.Map _json) {
953 if (_json.containsKey("codec")) {
954 codec = _json["codec"];
955 }
956 if (_json.containsKey("name")) {
957 name = _json["name"];
958 }
959 }
960
961 core.Map toJson() {
962 var _json = new core.Map();
963 if (codec != null) {
964 _json["codec"] = codec;
965 }
966 if (name != null) {
967 _json["name"] = name;
968 }
969 return _json;
970 }
971 }
972
973
974 /** Not documented yet. */
975 class Job {
976 /** Not documented yet. */
977 core.String createTime;
978
979 /**
980 * Not documented yet.
981 * Possible string values are:
982 * - "JOB_STATE_CANCELLED"
983 * - "JOB_STATE_DONE"
984 * - "JOB_STATE_FAILED"
985 * - "JOB_STATE_RUNNING"
986 * - "JOB_STATE_STOPPED"
987 * - "JOB_STATE_UNKNOWN"
988 */
989 core.String currentState;
990
991 /** Not documented yet. */
992 core.String currentStateTime;
993
994 /** Not documented yet. */
995 Environment environment;
996
997 /** Not documented yet. */
998 JobExecutionInfo executionInfo;
999
1000 /** Not documented yet. */
1001 core.String id;
1002
1003 /** Not documented yet. */
1004 core.String name;
1005
1006 /** Not documented yet. */
1007 core.String projectId;
1008
1009 /**
1010 * Not documented yet.
1011 * Possible string values are:
1012 * - "JOB_STATE_CANCELLED"
1013 * - "JOB_STATE_DONE"
1014 * - "JOB_STATE_FAILED"
1015 * - "JOB_STATE_RUNNING"
1016 * - "JOB_STATE_STOPPED"
1017 * - "JOB_STATE_UNKNOWN"
1018 */
1019 core.String requestedState;
1020
1021 /** Not documented yet. */
1022 core.List<Step> steps;
1023
1024 /**
1025 * Not documented yet.
1026 * Possible string values are:
1027 * - "JOB_TYPE_BATCH"
1028 * - "JOB_TYPE_STREAMING"
1029 * - "JOB_TYPE_UNKNOWN"
1030 */
1031 core.String type;
1032
1033
1034 Job();
1035
1036 Job.fromJson(core.Map _json) {
1037 if (_json.containsKey("createTime")) {
1038 createTime = _json["createTime"];
1039 }
1040 if (_json.containsKey("currentState")) {
1041 currentState = _json["currentState"];
1042 }
1043 if (_json.containsKey("currentStateTime")) {
1044 currentStateTime = _json["currentStateTime"];
1045 }
1046 if (_json.containsKey("environment")) {
1047 environment = new Environment.fromJson(_json["environment"]);
1048 }
1049 if (_json.containsKey("executionInfo")) {
1050 executionInfo = new JobExecutionInfo.fromJson(_json["executionInfo"]);
1051 }
1052 if (_json.containsKey("id")) {
1053 id = _json["id"];
1054 }
1055 if (_json.containsKey("name")) {
1056 name = _json["name"];
1057 }
1058 if (_json.containsKey("projectId")) {
1059 projectId = _json["projectId"];
1060 }
1061 if (_json.containsKey("requestedState")) {
1062 requestedState = _json["requestedState"];
1063 }
1064 if (_json.containsKey("steps")) {
1065 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList();
1066 }
1067 if (_json.containsKey("type")) {
1068 type = _json["type"];
1069 }
1070 }
1071
1072 core.Map toJson() {
1073 var _json = new core.Map();
1074 if (createTime != null) {
1075 _json["createTime"] = createTime;
1076 }
1077 if (currentState != null) {
1078 _json["currentState"] = currentState;
1079 }
1080 if (currentStateTime != null) {
1081 _json["currentStateTime"] = currentStateTime;
1082 }
1083 if (environment != null) {
1084 _json["environment"] = (environment).toJson();
1085 }
1086 if (executionInfo != null) {
1087 _json["executionInfo"] = (executionInfo).toJson();
1088 }
1089 if (id != null) {
1090 _json["id"] = id;
1091 }
1092 if (name != null) {
1093 _json["name"] = name;
1094 }
1095 if (projectId != null) {
1096 _json["projectId"] = projectId;
1097 }
1098 if (requestedState != null) {
1099 _json["requestedState"] = requestedState;
1100 }
1101 if (steps != null) {
1102 _json["steps"] = steps.map((value) => (value).toJson()).toList();
1103 }
1104 if (type != null) {
1105 _json["type"] = type;
1106 }
1107 return _json;
1108 }
1109 }
1110
1111
1112 /** Not documented yet. */
1113 class JobExecutionInfo {
1114 /** Not documented yet. */
1115 core.Map<core.String, JobExecutionStageInfo> stages;
1116
1117
1118 JobExecutionInfo();
1119
1120 JobExecutionInfo.fromJson(core.Map _json) {
1121 if (_json.containsKey("stages")) {
1122 stages = common_internal.mapMap(_json["stages"], (item) => new JobExecutio nStageInfo.fromJson(item));
1123 }
1124 }
1125
1126 core.Map toJson() {
1127 var _json = new core.Map();
1128 if (stages != null) {
1129 _json["stages"] = common_internal.mapMap(stages, (item) => (item).toJson() );
1130 }
1131 return _json;
1132 }
1133 }
1134
1135
1136 /** Not documented yet. */
1137 class JobExecutionStageInfo {
1138 /** Not documented yet. */
1139 core.List<core.String> stepName;
1140
1141
1142 JobExecutionStageInfo();
1143
1144 JobExecutionStageInfo.fromJson(core.Map _json) {
1145 if (_json.containsKey("stepName")) {
1146 stepName = _json["stepName"];
1147 }
1148 }
1149
1150 core.Map toJson() {
1151 var _json = new core.Map();
1152 if (stepName != null) {
1153 _json["stepName"] = stepName;
1154 }
1155 return _json;
1156 }
1157 }
1158
1159
1160 /** Not documented yet. */
1161 class JobMessage {
1162 /** Not documented yet. */
1163 core.String id;
1164
1165 /**
1166 * Not documented yet.
1167 * Possible string values are:
1168 * - "JOB_MESSAGE_DEBUG"
1169 * - "JOB_MESSAGE_DETAILED"
1170 * - "JOB_MESSAGE_ERROR"
1171 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN"
1172 * - "JOB_MESSAGE_WARNING"
1173 */
1174 core.String messageImportance;
1175
1176 /** Not documented yet. */
1177 core.String messageText;
1178
1179 /** Not documented yet. */
1180 core.String time;
1181
1182
1183 JobMessage();
1184
1185 JobMessage.fromJson(core.Map _json) {
1186 if (_json.containsKey("id")) {
1187 id = _json["id"];
1188 }
1189 if (_json.containsKey("messageImportance")) {
1190 messageImportance = _json["messageImportance"];
1191 }
1192 if (_json.containsKey("messageText")) {
1193 messageText = _json["messageText"];
1194 }
1195 if (_json.containsKey("time")) {
1196 time = _json["time"];
1197 }
1198 }
1199
1200 core.Map toJson() {
1201 var _json = new core.Map();
1202 if (id != null) {
1203 _json["id"] = id;
1204 }
1205 if (messageImportance != null) {
1206 _json["messageImportance"] = messageImportance;
1207 }
1208 if (messageText != null) {
1209 _json["messageText"] = messageText;
1210 }
1211 if (time != null) {
1212 _json["time"] = time;
1213 }
1214 return _json;
1215 }
1216 }
1217
1218
1219 /** Not documented yet. */
1220 class JobMetrics {
1221 /** Not documented yet. */
1222 core.String metricTime;
1223
1224 /** Not documented yet. */
1225 core.List<MetricUpdate> metrics;
1226
1227
1228 JobMetrics();
1229
1230 JobMetrics.fromJson(core.Map _json) {
1231 if (_json.containsKey("metricTime")) {
1232 metricTime = _json["metricTime"];
1233 }
1234 if (_json.containsKey("metrics")) {
1235 metrics = _json["metrics"].map((value) => new MetricUpdate.fromJson(value) ).toList();
1236 }
1237 }
1238
1239 core.Map toJson() {
1240 var _json = new core.Map();
1241 if (metricTime != null) {
1242 _json["metricTime"] = metricTime;
1243 }
1244 if (metrics != null) {
1245 _json["metrics"] = metrics.map((value) => (value).toJson()).toList();
1246 }
1247 return _json;
1248 }
1249 }
1250
1251
1252 /** Not documented yet. */
1253 class KeyRangeLocation {
1254 /** Not documented yet. */
1255 core.String dataDisk;
1256
1257 /** Not documented yet. */
1258 core.String deliveryEndpoint;
1259
1260 /** Not documented yet. */
1261 core.String end;
1262
1263 /** Not documented yet. */
1264 core.String persistentDirectory;
1265
1266 /** Not documented yet. */
1267 core.String start;
1268
1269
1270 KeyRangeLocation();
1271
1272 KeyRangeLocation.fromJson(core.Map _json) {
1273 if (_json.containsKey("dataDisk")) {
1274 dataDisk = _json["dataDisk"];
1275 }
1276 if (_json.containsKey("deliveryEndpoint")) {
1277 deliveryEndpoint = _json["deliveryEndpoint"];
1278 }
1279 if (_json.containsKey("end")) {
1280 end = _json["end"];
1281 }
1282 if (_json.containsKey("persistentDirectory")) {
1283 persistentDirectory = _json["persistentDirectory"];
1284 }
1285 if (_json.containsKey("start")) {
1286 start = _json["start"];
1287 }
1288 }
1289
1290 core.Map toJson() {
1291 var _json = new core.Map();
1292 if (dataDisk != null) {
1293 _json["dataDisk"] = dataDisk;
1294 }
1295 if (deliveryEndpoint != null) {
1296 _json["deliveryEndpoint"] = deliveryEndpoint;
1297 }
1298 if (end != null) {
1299 _json["end"] = end;
1300 }
1301 if (persistentDirectory != null) {
1302 _json["persistentDirectory"] = persistentDirectory;
1303 }
1304 if (start != null) {
1305 _json["start"] = start;
1306 }
1307 return _json;
1308 }
1309 }
1310
1311
1312 /** Not documented yet. */
1313 class LeaseWorkItemRequest {
1314 /** Not documented yet. */
1315 core.String currentWorkerTime;
1316
1317 /** Not documented yet. */
1318 core.String requestedLeaseDuration;
1319
1320 /** Not documented yet. */
1321 core.List<core.String> workItemTypes;
1322
1323 /** Not documented yet. */
1324 core.List<core.String> workerCapabilities;
1325
1326 /** Not documented yet. */
1327 core.String workerId;
1328
1329
1330 LeaseWorkItemRequest();
1331
1332 LeaseWorkItemRequest.fromJson(core.Map _json) {
1333 if (_json.containsKey("currentWorkerTime")) {
1334 currentWorkerTime = _json["currentWorkerTime"];
1335 }
1336 if (_json.containsKey("requestedLeaseDuration")) {
1337 requestedLeaseDuration = _json["requestedLeaseDuration"];
1338 }
1339 if (_json.containsKey("workItemTypes")) {
1340 workItemTypes = _json["workItemTypes"];
1341 }
1342 if (_json.containsKey("workerCapabilities")) {
1343 workerCapabilities = _json["workerCapabilities"];
1344 }
1345 if (_json.containsKey("workerId")) {
1346 workerId = _json["workerId"];
1347 }
1348 }
1349
1350 core.Map toJson() {
1351 var _json = new core.Map();
1352 if (currentWorkerTime != null) {
1353 _json["currentWorkerTime"] = currentWorkerTime;
1354 }
1355 if (requestedLeaseDuration != null) {
1356 _json["requestedLeaseDuration"] = requestedLeaseDuration;
1357 }
1358 if (workItemTypes != null) {
1359 _json["workItemTypes"] = workItemTypes;
1360 }
1361 if (workerCapabilities != null) {
1362 _json["workerCapabilities"] = workerCapabilities;
1363 }
1364 if (workerId != null) {
1365 _json["workerId"] = workerId;
1366 }
1367 return _json;
1368 }
1369 }
1370
1371
1372 /** Not documented yet. */
1373 class LeaseWorkItemResponse {
1374 /** Not documented yet. */
1375 core.List<WorkItem> workItems;
1376
1377
1378 LeaseWorkItemResponse();
1379
1380 LeaseWorkItemResponse.fromJson(core.Map _json) {
1381 if (_json.containsKey("workItems")) {
1382 workItems = _json["workItems"].map((value) => new WorkItem.fromJson(value) ).toList();
1383 }
1384 }
1385
1386 core.Map toJson() {
1387 var _json = new core.Map();
1388 if (workItems != null) {
1389 _json["workItems"] = workItems.map((value) => (value).toJson()).toList();
1390 }
1391 return _json;
1392 }
1393 }
1394
1395
1396 /** Not documented yet. */
1397 class ListJobMessagesResponse {
1398 /** Not documented yet. */
1399 core.List<JobMessage> jobMessages;
1400
1401 /** Not documented yet. */
1402 core.String nextPageToken;
1403
1404
1405 ListJobMessagesResponse();
1406
1407 ListJobMessagesResponse.fromJson(core.Map _json) {
1408 if (_json.containsKey("jobMessages")) {
1409 jobMessages = _json["jobMessages"].map((value) => new JobMessage.fromJson( value)).toList();
1410 }
1411 if (_json.containsKey("nextPageToken")) {
1412 nextPageToken = _json["nextPageToken"];
1413 }
1414 }
1415
1416 core.Map toJson() {
1417 var _json = new core.Map();
1418 if (jobMessages != null) {
1419 _json["jobMessages"] = jobMessages.map((value) => (value).toJson()).toList ();
1420 }
1421 if (nextPageToken != null) {
1422 _json["nextPageToken"] = nextPageToken;
1423 }
1424 return _json;
1425 }
1426 }
1427
1428
1429 /** Not documented yet. */
1430 class ListJobsResponse {
1431 /** Not documented yet. */
1432 core.List<Job> jobs;
1433
1434 /** Not documented yet. */
1435 core.String nextPageToken;
1436
1437
1438 ListJobsResponse();
1439
1440 ListJobsResponse.fromJson(core.Map _json) {
1441 if (_json.containsKey("jobs")) {
1442 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList();
1443 }
1444 if (_json.containsKey("nextPageToken")) {
1445 nextPageToken = _json["nextPageToken"];
1446 }
1447 }
1448
1449 core.Map toJson() {
1450 var _json = new core.Map();
1451 if (jobs != null) {
1452 _json["jobs"] = jobs.map((value) => (value).toJson()).toList();
1453 }
1454 if (nextPageToken != null) {
1455 _json["nextPageToken"] = nextPageToken;
1456 }
1457 return _json;
1458 }
1459 }
1460
1461
1462 /** Not documented yet. */
1463 class MapTask {
1464 /** Not documented yet. */
1465 core.List<ParallelInstruction> instructions;
1466
1467 /** Not documented yet. */
1468 core.String stageName;
1469
1470 /** Not documented yet. */
1471 core.String systemName;
1472
1473
1474 MapTask();
1475
1476 MapTask.fromJson(core.Map _json) {
1477 if (_json.containsKey("instructions")) {
1478 instructions = _json["instructions"].map((value) => new ParallelInstructio n.fromJson(value)).toList();
1479 }
1480 if (_json.containsKey("stageName")) {
1481 stageName = _json["stageName"];
1482 }
1483 if (_json.containsKey("systemName")) {
1484 systemName = _json["systemName"];
1485 }
1486 }
1487
1488 core.Map toJson() {
1489 var _json = new core.Map();
1490 if (instructions != null) {
1491 _json["instructions"] = instructions.map((value) => (value).toJson()).toLi st();
1492 }
1493 if (stageName != null) {
1494 _json["stageName"] = stageName;
1495 }
1496 if (systemName != null) {
1497 _json["systemName"] = systemName;
1498 }
1499 return _json;
1500 }
1501 }
1502
1503
1504 /** Not documented yet. */
1505 class MetricStructuredName {
1506 /** Not documented yet. */
1507 core.Map<core.String, core.String> context;
1508
1509 /** Not documented yet. */
1510 core.String name;
1511
1512 /** Not documented yet. */
1513 core.String origin;
1514
1515
1516 MetricStructuredName();
1517
1518 MetricStructuredName.fromJson(core.Map _json) {
1519 if (_json.containsKey("context")) {
1520 context = _json["context"];
1521 }
1522 if (_json.containsKey("name")) {
1523 name = _json["name"];
1524 }
1525 if (_json.containsKey("origin")) {
1526 origin = _json["origin"];
1527 }
1528 }
1529
1530 core.Map toJson() {
1531 var _json = new core.Map();
1532 if (context != null) {
1533 _json["context"] = context;
1534 }
1535 if (name != null) {
1536 _json["name"] = name;
1537 }
1538 if (origin != null) {
1539 _json["origin"] = origin;
1540 }
1541 return _json;
1542 }
1543 }
1544
1545
1546 /** Not documented yet. */
1547 class MetricUpdate {
1548 /** Not documented yet. */
1549 core.bool cumulative;
1550
1551 /** Not documented yet. */
1552 core.Object internal;
1553
1554 /** Not documented yet. */
1555 core.String kind;
1556
1557 /** Not documented yet. */
1558 core.Object meanCount;
1559
1560 /** Not documented yet. */
1561 core.Object meanSum;
1562
1563 /** Not documented yet. */
1564 MetricStructuredName name;
1565
1566 /** Not documented yet. */
1567 core.Object scalar;
1568
1569 /** Not documented yet. */
1570 core.Object set;
1571
1572 /** Not documented yet. */
1573 core.String updateTime;
1574
1575
1576 MetricUpdate();
1577
1578 MetricUpdate.fromJson(core.Map _json) {
1579 if (_json.containsKey("cumulative")) {
1580 cumulative = _json["cumulative"];
1581 }
1582 if (_json.containsKey("internal")) {
1583 internal = _json["internal"];
1584 }
1585 if (_json.containsKey("kind")) {
1586 kind = _json["kind"];
1587 }
1588 if (_json.containsKey("meanCount")) {
1589 meanCount = _json["meanCount"];
1590 }
1591 if (_json.containsKey("meanSum")) {
1592 meanSum = _json["meanSum"];
1593 }
1594 if (_json.containsKey("name")) {
1595 name = new MetricStructuredName.fromJson(_json["name"]);
1596 }
1597 if (_json.containsKey("scalar")) {
1598 scalar = _json["scalar"];
1599 }
1600 if (_json.containsKey("set")) {
1601 set = _json["set"];
1602 }
1603 if (_json.containsKey("updateTime")) {
1604 updateTime = _json["updateTime"];
1605 }
1606 }
1607
1608 core.Map toJson() {
1609 var _json = new core.Map();
1610 if (cumulative != null) {
1611 _json["cumulative"] = cumulative;
1612 }
1613 if (internal != null) {
1614 _json["internal"] = internal;
1615 }
1616 if (kind != null) {
1617 _json["kind"] = kind;
1618 }
1619 if (meanCount != null) {
1620 _json["meanCount"] = meanCount;
1621 }
1622 if (meanSum != null) {
1623 _json["meanSum"] = meanSum;
1624 }
1625 if (name != null) {
1626 _json["name"] = (name).toJson();
1627 }
1628 if (scalar != null) {
1629 _json["scalar"] = scalar;
1630 }
1631 if (set != null) {
1632 _json["set"] = set;
1633 }
1634 if (updateTime != null) {
1635 _json["updateTime"] = updateTime;
1636 }
1637 return _json;
1638 }
1639 }
1640
1641
1642 /** Not documented yet. */
1643 class MultiOutputInfo {
1644 /** Not documented yet. */
1645 core.String tag;
1646
1647
1648 MultiOutputInfo();
1649
1650 MultiOutputInfo.fromJson(core.Map _json) {
1651 if (_json.containsKey("tag")) {
1652 tag = _json["tag"];
1653 }
1654 }
1655
1656 core.Map toJson() {
1657 var _json = new core.Map();
1658 if (tag != null) {
1659 _json["tag"] = tag;
1660 }
1661 return _json;
1662 }
1663 }
1664
1665
1666 /** Not documented yet. */
1667 class Package {
1668 /** Not documented yet. */
1669 core.String location;
1670
1671 /** Not documented yet. */
1672 core.String name;
1673
1674
1675 Package();
1676
1677 Package.fromJson(core.Map _json) {
1678 if (_json.containsKey("location")) {
1679 location = _json["location"];
1680 }
1681 if (_json.containsKey("name")) {
1682 name = _json["name"];
1683 }
1684 }
1685
1686 core.Map toJson() {
1687 var _json = new core.Map();
1688 if (location != null) {
1689 _json["location"] = location;
1690 }
1691 if (name != null) {
1692 _json["name"] = name;
1693 }
1694 return _json;
1695 }
1696 }
1697
1698
1699 /** Not documented yet. */
1700 class ParDoInstruction {
1701 /** Not documented yet. */
1702 InstructionInput input;
1703
1704 /** Not documented yet. */
1705 core.List<MultiOutputInfo> multiOutputInfos;
1706
1707 /** Not documented yet. */
1708 core.int numOutputs;
1709
1710 /** Not documented yet. */
1711 core.List<SideInputInfo> sideInputs;
1712
1713 /**
1714 * Not documented yet.
1715 *
1716 * The values for Object must be JSON objects. It can consist of `num`,
1717 * `String`, `bool` and `null` as well as `Map` and `List` values.
1718 */
1719 core.Map<core.String, core.Object> userFn;
1720
1721
1722 ParDoInstruction();
1723
1724 ParDoInstruction.fromJson(core.Map _json) {
1725 if (_json.containsKey("input")) {
1726 input = new InstructionInput.fromJson(_json["input"]);
1727 }
1728 if (_json.containsKey("multiOutputInfos")) {
1729 multiOutputInfos = _json["multiOutputInfos"].map((value) => new MultiOutpu tInfo.fromJson(value)).toList();
1730 }
1731 if (_json.containsKey("numOutputs")) {
1732 numOutputs = _json["numOutputs"];
1733 }
1734 if (_json.containsKey("sideInputs")) {
1735 sideInputs = _json["sideInputs"].map((value) => new SideInputInfo.fromJson (value)).toList();
1736 }
1737 if (_json.containsKey("userFn")) {
1738 userFn = _json["userFn"];
1739 }
1740 }
1741
1742 core.Map toJson() {
1743 var _json = new core.Map();
1744 if (input != null) {
1745 _json["input"] = (input).toJson();
1746 }
1747 if (multiOutputInfos != null) {
1748 _json["multiOutputInfos"] = multiOutputInfos.map((value) => (value).toJson ()).toList();
1749 }
1750 if (numOutputs != null) {
1751 _json["numOutputs"] = numOutputs;
1752 }
1753 if (sideInputs != null) {
1754 _json["sideInputs"] = sideInputs.map((value) => (value).toJson()).toList() ;
1755 }
1756 if (userFn != null) {
1757 _json["userFn"] = userFn;
1758 }
1759 return _json;
1760 }
1761 }
1762
1763
1764 /** Not documented yet. */
1765 class ParallelInstruction {
1766 /** Not documented yet. */
1767 FlattenInstruction flatten;
1768
1769 /** Not documented yet. */
1770 core.String name;
1771
1772 /** Not documented yet. */
1773 core.List<InstructionOutput> outputs;
1774
1775 /** Not documented yet. */
1776 ParDoInstruction parDo;
1777
1778 /** Not documented yet. */
1779 PartialGroupByKeyInstruction partialGroupByKey;
1780
1781 /** Not documented yet. */
1782 ReadInstruction read;
1783
1784 /** Not documented yet. */
1785 core.String systemName;
1786
1787 /** Not documented yet. */
1788 WriteInstruction write;
1789
1790
1791 ParallelInstruction();
1792
1793 ParallelInstruction.fromJson(core.Map _json) {
1794 if (_json.containsKey("flatten")) {
1795 flatten = new FlattenInstruction.fromJson(_json["flatten"]);
1796 }
1797 if (_json.containsKey("name")) {
1798 name = _json["name"];
1799 }
1800 if (_json.containsKey("outputs")) {
1801 outputs = _json["outputs"].map((value) => new InstructionOutput.fromJson(v alue)).toList();
1802 }
1803 if (_json.containsKey("parDo")) {
1804 parDo = new ParDoInstruction.fromJson(_json["parDo"]);
1805 }
1806 if (_json.containsKey("partialGroupByKey")) {
1807 partialGroupByKey = new PartialGroupByKeyInstruction.fromJson(_json["parti alGroupByKey"]);
1808 }
1809 if (_json.containsKey("read")) {
1810 read = new ReadInstruction.fromJson(_json["read"]);
1811 }
1812 if (_json.containsKey("systemName")) {
1813 systemName = _json["systemName"];
1814 }
1815 if (_json.containsKey("write")) {
1816 write = new WriteInstruction.fromJson(_json["write"]);
1817 }
1818 }
1819
1820 core.Map toJson() {
1821 var _json = new core.Map();
1822 if (flatten != null) {
1823 _json["flatten"] = (flatten).toJson();
1824 }
1825 if (name != null) {
1826 _json["name"] = name;
1827 }
1828 if (outputs != null) {
1829 _json["outputs"] = outputs.map((value) => (value).toJson()).toList();
1830 }
1831 if (parDo != null) {
1832 _json["parDo"] = (parDo).toJson();
1833 }
1834 if (partialGroupByKey != null) {
1835 _json["partialGroupByKey"] = (partialGroupByKey).toJson();
1836 }
1837 if (read != null) {
1838 _json["read"] = (read).toJson();
1839 }
1840 if (systemName != null) {
1841 _json["systemName"] = systemName;
1842 }
1843 if (write != null) {
1844 _json["write"] = (write).toJson();
1845 }
1846 return _json;
1847 }
1848 }
1849
1850
1851 /** Not documented yet. */
1852 class PartialGroupByKeyInstruction {
1853 /** Not documented yet. */
1854 InstructionInput input;
1855
1856 /**
1857 * Not documented yet.
1858 *
1859 * The values for Object must be JSON objects. It can consist of `num`,
1860 * `String`, `bool` and `null` as well as `Map` and `List` values.
1861 */
1862 core.Map<core.String, core.Object> inputElementCodec;
1863
1864
1865 PartialGroupByKeyInstruction();
1866
1867 PartialGroupByKeyInstruction.fromJson(core.Map _json) {
1868 if (_json.containsKey("input")) {
1869 input = new InstructionInput.fromJson(_json["input"]);
1870 }
1871 if (_json.containsKey("inputElementCodec")) {
1872 inputElementCodec = _json["inputElementCodec"];
1873 }
1874 }
1875
1876 core.Map toJson() {
1877 var _json = new core.Map();
1878 if (input != null) {
1879 _json["input"] = (input).toJson();
1880 }
1881 if (inputElementCodec != null) {
1882 _json["inputElementCodec"] = inputElementCodec;
1883 }
1884 return _json;
1885 }
1886 }
1887
1888
1889 /** Not documented yet. */
1890 class Position {
1891 /** Not documented yet. */
1892 core.String byteOffset;
1893
1894 /** Not documented yet. */
1895 core.bool end;
1896
1897 /** Not documented yet. */
1898 core.String key;
1899
1900 /** Not documented yet. */
1901 core.String recordIndex;
1902
1903 /** Not documented yet. */
1904 core.String shufflePosition;
1905
1906
1907 Position();
1908
1909 Position.fromJson(core.Map _json) {
1910 if (_json.containsKey("byteOffset")) {
1911 byteOffset = _json["byteOffset"];
1912 }
1913 if (_json.containsKey("end")) {
1914 end = _json["end"];
1915 }
1916 if (_json.containsKey("key")) {
1917 key = _json["key"];
1918 }
1919 if (_json.containsKey("recordIndex")) {
1920 recordIndex = _json["recordIndex"];
1921 }
1922 if (_json.containsKey("shufflePosition")) {
1923 shufflePosition = _json["shufflePosition"];
1924 }
1925 }
1926
1927 core.Map toJson() {
1928 var _json = new core.Map();
1929 if (byteOffset != null) {
1930 _json["byteOffset"] = byteOffset;
1931 }
1932 if (end != null) {
1933 _json["end"] = end;
1934 }
1935 if (key != null) {
1936 _json["key"] = key;
1937 }
1938 if (recordIndex != null) {
1939 _json["recordIndex"] = recordIndex;
1940 }
1941 if (shufflePosition != null) {
1942 _json["shufflePosition"] = shufflePosition;
1943 }
1944 return _json;
1945 }
1946 }
1947
1948
1949 /** Not documented yet. */
1950 class PubsubLocation {
1951 /** Not documented yet. */
1952 core.String subscription;
1953
1954 /** Not documented yet. */
1955 core.String topic;
1956
1957
1958 PubsubLocation();
1959
1960 PubsubLocation.fromJson(core.Map _json) {
1961 if (_json.containsKey("subscription")) {
1962 subscription = _json["subscription"];
1963 }
1964 if (_json.containsKey("topic")) {
1965 topic = _json["topic"];
1966 }
1967 }
1968
1969 core.Map toJson() {
1970 var _json = new core.Map();
1971 if (subscription != null) {
1972 _json["subscription"] = subscription;
1973 }
1974 if (topic != null) {
1975 _json["topic"] = topic;
1976 }
1977 return _json;
1978 }
1979 }
1980
1981
1982 /** Not documented yet. */
1983 class ReadInstruction {
1984 /** Not documented yet. */
1985 Source source;
1986
1987
1988 ReadInstruction();
1989
1990 ReadInstruction.fromJson(core.Map _json) {
1991 if (_json.containsKey("source")) {
1992 source = new Source.fromJson(_json["source"]);
1993 }
1994 }
1995
1996 core.Map toJson() {
1997 var _json = new core.Map();
1998 if (source != null) {
1999 _json["source"] = (source).toJson();
2000 }
2001 return _json;
2002 }
2003 }
2004
2005
2006 /** Not documented yet. */
2007 class ReportWorkItemStatusRequest {
2008 /** Not documented yet. */
2009 core.String currentWorkerTime;
2010
2011 /** Not documented yet. */
2012 core.List<WorkItemStatus> workItemStatuses;
2013
2014 /** Not documented yet. */
2015 core.String workerId;
2016
2017
2018 ReportWorkItemStatusRequest();
2019
2020 ReportWorkItemStatusRequest.fromJson(core.Map _json) {
2021 if (_json.containsKey("currentWorkerTime")) {
2022 currentWorkerTime = _json["currentWorkerTime"];
2023 }
2024 if (_json.containsKey("workItemStatuses")) {
2025 workItemStatuses = _json["workItemStatuses"].map((value) => new WorkItemSt atus.fromJson(value)).toList();
2026 }
2027 if (_json.containsKey("workerId")) {
2028 workerId = _json["workerId"];
2029 }
2030 }
2031
2032 core.Map toJson() {
2033 var _json = new core.Map();
2034 if (currentWorkerTime != null) {
2035 _json["currentWorkerTime"] = currentWorkerTime;
2036 }
2037 if (workItemStatuses != null) {
2038 _json["workItemStatuses"] = workItemStatuses.map((value) => (value).toJson ()).toList();
2039 }
2040 if (workerId != null) {
2041 _json["workerId"] = workerId;
2042 }
2043 return _json;
2044 }
2045 }
2046
2047
2048 /** Not documented yet. */
2049 class ReportWorkItemStatusResponse {
2050 /** Not documented yet. */
2051 core.List<WorkItemServiceState> workItemServiceStates;
2052
2053
2054 ReportWorkItemStatusResponse();
2055
2056 ReportWorkItemStatusResponse.fromJson(core.Map _json) {
2057 if (_json.containsKey("workItemServiceStates")) {
2058 workItemServiceStates = _json["workItemServiceStates"].map((value) => new WorkItemServiceState.fromJson(value)).toList();
2059 }
2060 }
2061
2062 core.Map toJson() {
2063 var _json = new core.Map();
2064 if (workItemServiceStates != null) {
2065 _json["workItemServiceStates"] = workItemServiceStates.map((value) => (val ue).toJson()).toList();
2066 }
2067 return _json;
2068 }
2069 }
2070
2071
2072 /** Not documented yet. */
2073 class SeqMapTask {
2074 /** Not documented yet. */
2075 core.List<SideInputInfo> inputs;
2076
2077 /** Not documented yet. */
2078 core.String name;
2079
2080 /** Not documented yet. */
2081 core.List<SeqMapTaskOutputInfo> outputInfos;
2082
2083 /** Not documented yet. */
2084 core.String stageName;
2085
2086 /** Not documented yet. */
2087 core.String systemName;
2088
2089 /**
2090 * Not documented yet.
2091 *
2092 * The values for Object must be JSON objects. It can consist of `num`,
2093 * `String`, `bool` and `null` as well as `Map` and `List` values.
2094 */
2095 core.Map<core.String, core.Object> userFn;
2096
2097
2098 SeqMapTask();
2099
2100 SeqMapTask.fromJson(core.Map _json) {
2101 if (_json.containsKey("inputs")) {
2102 inputs = _json["inputs"].map((value) => new SideInputInfo.fromJson(value)) .toList();
2103 }
2104 if (_json.containsKey("name")) {
2105 name = _json["name"];
2106 }
2107 if (_json.containsKey("outputInfos")) {
2108 outputInfos = _json["outputInfos"].map((value) => new SeqMapTaskOutputInfo .fromJson(value)).toList();
2109 }
2110 if (_json.containsKey("stageName")) {
2111 stageName = _json["stageName"];
2112 }
2113 if (_json.containsKey("systemName")) {
2114 systemName = _json["systemName"];
2115 }
2116 if (_json.containsKey("userFn")) {
2117 userFn = _json["userFn"];
2118 }
2119 }
2120
2121 core.Map toJson() {
2122 var _json = new core.Map();
2123 if (inputs != null) {
2124 _json["inputs"] = inputs.map((value) => (value).toJson()).toList();
2125 }
2126 if (name != null) {
2127 _json["name"] = name;
2128 }
2129 if (outputInfos != null) {
2130 _json["outputInfos"] = outputInfos.map((value) => (value).toJson()).toList ();
2131 }
2132 if (stageName != null) {
2133 _json["stageName"] = stageName;
2134 }
2135 if (systemName != null) {
2136 _json["systemName"] = systemName;
2137 }
2138 if (userFn != null) {
2139 _json["userFn"] = userFn;
2140 }
2141 return _json;
2142 }
2143 }
2144
2145
2146 /** Not documented yet. */
2147 class SeqMapTaskOutputInfo {
2148 /** Not documented yet. */
2149 Sink sink;
2150
2151 /** Not documented yet. */
2152 core.String tag;
2153
2154
2155 SeqMapTaskOutputInfo();
2156
2157 SeqMapTaskOutputInfo.fromJson(core.Map _json) {
2158 if (_json.containsKey("sink")) {
2159 sink = new Sink.fromJson(_json["sink"]);
2160 }
2161 if (_json.containsKey("tag")) {
2162 tag = _json["tag"];
2163 }
2164 }
2165
2166 core.Map toJson() {
2167 var _json = new core.Map();
2168 if (sink != null) {
2169 _json["sink"] = (sink).toJson();
2170 }
2171 if (tag != null) {
2172 _json["tag"] = tag;
2173 }
2174 return _json;
2175 }
2176 }
2177
2178
2179 /** Not documented yet. */
2180 class ShellTask {
2181 /** Not documented yet. */
2182 core.String command;
2183
2184 /** Not documented yet. */
2185 core.int exitCode;
2186
2187
2188 ShellTask();
2189
2190 ShellTask.fromJson(core.Map _json) {
2191 if (_json.containsKey("command")) {
2192 command = _json["command"];
2193 }
2194 if (_json.containsKey("exitCode")) {
2195 exitCode = _json["exitCode"];
2196 }
2197 }
2198
2199 core.Map toJson() {
2200 var _json = new core.Map();
2201 if (command != null) {
2202 _json["command"] = command;
2203 }
2204 if (exitCode != null) {
2205 _json["exitCode"] = exitCode;
2206 }
2207 return _json;
2208 }
2209 }
2210
2211
2212 /** Not documented yet. */
2213 class SideInputInfo {
2214 /**
2215 * Not documented yet.
2216 *
2217 * The values for Object must be JSON objects. It can consist of `num`,
2218 * `String`, `bool` and `null` as well as `Map` and `List` values.
2219 */
2220 core.Map<core.String, core.Object> kind;
2221
2222 /** Not documented yet. */
2223 core.List<Source> sources;
2224
2225 /** Not documented yet. */
2226 core.String tag;
2227
2228
2229 SideInputInfo();
2230
2231 SideInputInfo.fromJson(core.Map _json) {
2232 if (_json.containsKey("kind")) {
2233 kind = _json["kind"];
2234 }
2235 if (_json.containsKey("sources")) {
2236 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st();
2237 }
2238 if (_json.containsKey("tag")) {
2239 tag = _json["tag"];
2240 }
2241 }
2242
2243 core.Map toJson() {
2244 var _json = new core.Map();
2245 if (kind != null) {
2246 _json["kind"] = kind;
2247 }
2248 if (sources != null) {
2249 _json["sources"] = sources.map((value) => (value).toJson()).toList();
2250 }
2251 if (tag != null) {
2252 _json["tag"] = tag;
2253 }
2254 return _json;
2255 }
2256 }
2257
2258
2259 /** Not documented yet. */
2260 class Sink {
2261 /**
2262 * Not documented yet.
2263 *
2264 * The values for Object must be JSON objects. It can consist of `num`,
2265 * `String`, `bool` and `null` as well as `Map` and `List` values.
2266 */
2267 core.Map<core.String, core.Object> codec;
2268
2269 /**
2270 * Not documented yet.
2271 *
2272 * The values for Object must be JSON objects. It can consist of `num`,
2273 * `String`, `bool` and `null` as well as `Map` and `List` values.
2274 */
2275 core.Map<core.String, core.Object> spec;
2276
2277
2278 Sink();
2279
2280 Sink.fromJson(core.Map _json) {
2281 if (_json.containsKey("codec")) {
2282 codec = _json["codec"];
2283 }
2284 if (_json.containsKey("spec")) {
2285 spec = _json["spec"];
2286 }
2287 }
2288
2289 core.Map toJson() {
2290 var _json = new core.Map();
2291 if (codec != null) {
2292 _json["codec"] = codec;
2293 }
2294 if (spec != null) {
2295 _json["spec"] = spec;
2296 }
2297 return _json;
2298 }
2299 }
2300
2301
2302 /** Not documented yet. */
2303 class Source {
2304 /**
2305 * Not documented yet.
2306 *
2307 * The values for Object must be JSON objects. It can consist of `num`,
2308 * `String`, `bool` and `null` as well as `Map` and `List` values.
2309 */
2310 core.List<core.Map<core.String, core.Object>> baseSpecs;
2311
2312 /**
2313 * Not documented yet.
2314 *
2315 * The values for Object must be JSON objects. It can consist of `num`,
2316 * `String`, `bool` and `null` as well as `Map` and `List` values.
2317 */
2318 core.Map<core.String, core.Object> codec;
2319
2320 /** Not documented yet. */
2321 core.bool doesNotNeedSplitting;
2322
2323 /** Not documented yet. */
2324 SourceMetadata metadata;
2325
2326 /**
2327 * Not documented yet.
2328 *
2329 * The values for Object must be JSON objects. It can consist of `num`,
2330 * `String`, `bool` and `null` as well as `Map` and `List` values.
2331 */
2332 core.Map<core.String, core.Object> spec;
2333
2334
2335 Source();
2336
2337 Source.fromJson(core.Map _json) {
2338 if (_json.containsKey("baseSpecs")) {
2339 baseSpecs = _json["baseSpecs"];
2340 }
2341 if (_json.containsKey("codec")) {
2342 codec = _json["codec"];
2343 }
2344 if (_json.containsKey("doesNotNeedSplitting")) {
2345 doesNotNeedSplitting = _json["doesNotNeedSplitting"];
2346 }
2347 if (_json.containsKey("metadata")) {
2348 metadata = new SourceMetadata.fromJson(_json["metadata"]);
2349 }
2350 if (_json.containsKey("spec")) {
2351 spec = _json["spec"];
2352 }
2353 }
2354
2355 core.Map toJson() {
2356 var _json = new core.Map();
2357 if (baseSpecs != null) {
2358 _json["baseSpecs"] = baseSpecs;
2359 }
2360 if (codec != null) {
2361 _json["codec"] = codec;
2362 }
2363 if (doesNotNeedSplitting != null) {
2364 _json["doesNotNeedSplitting"] = doesNotNeedSplitting;
2365 }
2366 if (metadata != null) {
2367 _json["metadata"] = (metadata).toJson();
2368 }
2369 if (spec != null) {
2370 _json["spec"] = spec;
2371 }
2372 return _json;
2373 }
2374 }
2375
2376
2377 /** Not documented yet. */
2378 class SourceGetMetadataRequest {
2379 /** Not documented yet. */
2380 Source source;
2381
2382
2383 SourceGetMetadataRequest();
2384
2385 SourceGetMetadataRequest.fromJson(core.Map _json) {
2386 if (_json.containsKey("source")) {
2387 source = new Source.fromJson(_json["source"]);
2388 }
2389 }
2390
2391 core.Map toJson() {
2392 var _json = new core.Map();
2393 if (source != null) {
2394 _json["source"] = (source).toJson();
2395 }
2396 return _json;
2397 }
2398 }
2399
2400
2401 /** Not documented yet. */
2402 class SourceGetMetadataResponse {
2403 /** Not documented yet. */
2404 SourceMetadata metadata;
2405
2406
2407 SourceGetMetadataResponse();
2408
2409 SourceGetMetadataResponse.fromJson(core.Map _json) {
2410 if (_json.containsKey("metadata")) {
2411 metadata = new SourceMetadata.fromJson(_json["metadata"]);
2412 }
2413 }
2414
2415 core.Map toJson() {
2416 var _json = new core.Map();
2417 if (metadata != null) {
2418 _json["metadata"] = (metadata).toJson();
2419 }
2420 return _json;
2421 }
2422 }
2423
2424
2425 /** Not documented yet. */
2426 class SourceMetadata {
2427 /** Not documented yet. */
2428 core.String estimatedSizeBytes;
2429
2430 /** Not documented yet. */
2431 core.bool infinite;
2432
2433 /** Not documented yet. */
2434 core.bool producesSortedKeys;
2435
2436
2437 SourceMetadata();
2438
2439 SourceMetadata.fromJson(core.Map _json) {
2440 if (_json.containsKey("estimatedSizeBytes")) {
2441 estimatedSizeBytes = _json["estimatedSizeBytes"];
2442 }
2443 if (_json.containsKey("infinite")) {
2444 infinite = _json["infinite"];
2445 }
2446 if (_json.containsKey("producesSortedKeys")) {
2447 producesSortedKeys = _json["producesSortedKeys"];
2448 }
2449 }
2450
2451 core.Map toJson() {
2452 var _json = new core.Map();
2453 if (estimatedSizeBytes != null) {
2454 _json["estimatedSizeBytes"] = estimatedSizeBytes;
2455 }
2456 if (infinite != null) {
2457 _json["infinite"] = infinite;
2458 }
2459 if (producesSortedKeys != null) {
2460 _json["producesSortedKeys"] = producesSortedKeys;
2461 }
2462 return _json;
2463 }
2464 }
2465
2466
2467 /** Not documented yet. */
2468 class SourceOperationRequest {
2469 /** Not documented yet. */
2470 SourceGetMetadataRequest getMetadata;
2471
2472 /** Not documented yet. */
2473 SourceSplitRequest split;
2474
2475
2476 SourceOperationRequest();
2477
2478 SourceOperationRequest.fromJson(core.Map _json) {
2479 if (_json.containsKey("getMetadata")) {
2480 getMetadata = new SourceGetMetadataRequest.fromJson(_json["getMetadata"]);
2481 }
2482 if (_json.containsKey("split")) {
2483 split = new SourceSplitRequest.fromJson(_json["split"]);
2484 }
2485 }
2486
2487 core.Map toJson() {
2488 var _json = new core.Map();
2489 if (getMetadata != null) {
2490 _json["getMetadata"] = (getMetadata).toJson();
2491 }
2492 if (split != null) {
2493 _json["split"] = (split).toJson();
2494 }
2495 return _json;
2496 }
2497 }
2498
2499
2500 /** Not documented yet. */
2501 class SourceOperationResponse {
2502 /** Not documented yet. */
2503 SourceGetMetadataResponse getMetadata;
2504
2505 /** Not documented yet. */
2506 SourceSplitResponse split;
2507
2508
2509 SourceOperationResponse();
2510
2511 SourceOperationResponse.fromJson(core.Map _json) {
2512 if (_json.containsKey("getMetadata")) {
2513 getMetadata = new SourceGetMetadataResponse.fromJson(_json["getMetadata"]) ;
2514 }
2515 if (_json.containsKey("split")) {
2516 split = new SourceSplitResponse.fromJson(_json["split"]);
2517 }
2518 }
2519
2520 core.Map toJson() {
2521 var _json = new core.Map();
2522 if (getMetadata != null) {
2523 _json["getMetadata"] = (getMetadata).toJson();
2524 }
2525 if (split != null) {
2526 _json["split"] = (split).toJson();
2527 }
2528 return _json;
2529 }
2530 }
2531
2532
2533 /** Not documented yet. */
2534 class SourceSplitOptions {
2535 /** Not documented yet. */
2536 core.String desiredShardSizeBytes;
2537
2538
2539 SourceSplitOptions();
2540
2541 SourceSplitOptions.fromJson(core.Map _json) {
2542 if (_json.containsKey("desiredShardSizeBytes")) {
2543 desiredShardSizeBytes = _json["desiredShardSizeBytes"];
2544 }
2545 }
2546
2547 core.Map toJson() {
2548 var _json = new core.Map();
2549 if (desiredShardSizeBytes != null) {
2550 _json["desiredShardSizeBytes"] = desiredShardSizeBytes;
2551 }
2552 return _json;
2553 }
2554 }
2555
2556
2557 /** Not documented yet. */
2558 class SourceSplitRequest {
2559 /** Not documented yet. */
2560 SourceSplitOptions options;
2561
2562 /** Not documented yet. */
2563 Source source;
2564
2565
2566 SourceSplitRequest();
2567
2568 SourceSplitRequest.fromJson(core.Map _json) {
2569 if (_json.containsKey("options")) {
2570 options = new SourceSplitOptions.fromJson(_json["options"]);
2571 }
2572 if (_json.containsKey("source")) {
2573 source = new Source.fromJson(_json["source"]);
2574 }
2575 }
2576
2577 core.Map toJson() {
2578 var _json = new core.Map();
2579 if (options != null) {
2580 _json["options"] = (options).toJson();
2581 }
2582 if (source != null) {
2583 _json["source"] = (source).toJson();
2584 }
2585 return _json;
2586 }
2587 }
2588
2589
2590 /** Not documented yet. */
2591 class SourceSplitResponse {
2592 /**
2593 * Not documented yet.
2594 * Possible string values are:
2595 * - "SOURCE_SPLIT_OUTCOME_SPLITTING_HAPPENED"
2596 * - "SOURCE_SPLIT_OUTCOME_UNKNOWN"
2597 * - "SOURCE_SPLIT_OUTCOME_USE_CURRENT"
2598 */
2599 core.String outcome;
2600
2601 /** Not documented yet. */
2602 core.List<SourceSplitShard> shards;
2603
2604
2605 SourceSplitResponse();
2606
2607 SourceSplitResponse.fromJson(core.Map _json) {
2608 if (_json.containsKey("outcome")) {
2609 outcome = _json["outcome"];
2610 }
2611 if (_json.containsKey("shards")) {
2612 shards = _json["shards"].map((value) => new SourceSplitShard.fromJson(valu e)).toList();
2613 }
2614 }
2615
2616 core.Map toJson() {
2617 var _json = new core.Map();
2618 if (outcome != null) {
2619 _json["outcome"] = outcome;
2620 }
2621 if (shards != null) {
2622 _json["shards"] = shards.map((value) => (value).toJson()).toList();
2623 }
2624 return _json;
2625 }
2626 }
2627
2628
2629 /** Not documented yet. */
2630 class SourceSplitShard {
2631 /**
2632 * Not documented yet.
2633 * Possible string values are:
2634 * - "SOURCE_DERIVATION_MODE_CHILD_OF_CURRENT"
2635 * - "SOURCE_DERIVATION_MODE_INDEPENDENT"
2636 * - "SOURCE_DERIVATION_MODE_SIBLING_OF_CURRENT"
2637 * - "SOURCE_DERIVATION_MODE_UNKNOWN"
2638 */
2639 core.String derivationMode;
2640
2641 /** Not documented yet. */
2642 Source source;
2643
2644
2645 SourceSplitShard();
2646
2647 SourceSplitShard.fromJson(core.Map _json) {
2648 if (_json.containsKey("derivationMode")) {
2649 derivationMode = _json["derivationMode"];
2650 }
2651 if (_json.containsKey("source")) {
2652 source = new Source.fromJson(_json["source"]);
2653 }
2654 }
2655
2656 core.Map toJson() {
2657 var _json = new core.Map();
2658 if (derivationMode != null) {
2659 _json["derivationMode"] = derivationMode;
2660 }
2661 if (source != null) {
2662 _json["source"] = (source).toJson();
2663 }
2664 return _json;
2665 }
2666 }
2667
2668
2669 /** Not documented yet. */
2670 class Status {
2671 /** Not documented yet. */
2672 core.int code;
2673
2674 /**
2675 * Not documented yet.
2676 *
2677 * The values for Object must be JSON objects. It can consist of `num`,
2678 * `String`, `bool` and `null` as well as `Map` and `List` values.
2679 */
2680 core.List<core.Map<core.String, core.Object>> details;
2681
2682 /** Not documented yet. */
2683 core.String message;
2684
2685
2686 Status();
2687
2688 Status.fromJson(core.Map _json) {
2689 if (_json.containsKey("code")) {
2690 code = _json["code"];
2691 }
2692 if (_json.containsKey("details")) {
2693 details = _json["details"];
2694 }
2695 if (_json.containsKey("message")) {
2696 message = _json["message"];
2697 }
2698 }
2699
2700 core.Map toJson() {
2701 var _json = new core.Map();
2702 if (code != null) {
2703 _json["code"] = code;
2704 }
2705 if (details != null) {
2706 _json["details"] = details;
2707 }
2708 if (message != null) {
2709 _json["message"] = message;
2710 }
2711 return _json;
2712 }
2713 }
2714
2715
2716 /** Not documented yet. */
2717 class Step {
2718 /** Not documented yet. */
2719 core.String kind;
2720
2721 /** Not documented yet. */
2722 core.String name;
2723
2724 /**
2725 * Not documented yet.
2726 *
2727 * The values for Object must be JSON objects. It can consist of `num`,
2728 * `String`, `bool` and `null` as well as `Map` and `List` values.
2729 */
2730 core.Map<core.String, core.Object> properties;
2731
2732
2733 Step();
2734
2735 Step.fromJson(core.Map _json) {
2736 if (_json.containsKey("kind")) {
2737 kind = _json["kind"];
2738 }
2739 if (_json.containsKey("name")) {
2740 name = _json["name"];
2741 }
2742 if (_json.containsKey("properties")) {
2743 properties = _json["properties"];
2744 }
2745 }
2746
2747 core.Map toJson() {
2748 var _json = new core.Map();
2749 if (kind != null) {
2750 _json["kind"] = kind;
2751 }
2752 if (name != null) {
2753 _json["name"] = name;
2754 }
2755 if (properties != null) {
2756 _json["properties"] = properties;
2757 }
2758 return _json;
2759 }
2760 }
2761
2762
2763 /** Not documented yet. */
2764 class StreamLocation {
2765 /** Not documented yet. */
2766 PubsubLocation pubsubLocation;
2767
2768 /** Not documented yet. */
2769 StreamingStageLocation streamingStageLocation;
2770
2771
2772 StreamLocation();
2773
2774 StreamLocation.fromJson(core.Map _json) {
2775 if (_json.containsKey("pubsubLocation")) {
2776 pubsubLocation = new PubsubLocation.fromJson(_json["pubsubLocation"]);
2777 }
2778 if (_json.containsKey("streamingStageLocation")) {
2779 streamingStageLocation = new StreamingStageLocation.fromJson(_json["stream ingStageLocation"]);
2780 }
2781 }
2782
2783 core.Map toJson() {
2784 var _json = new core.Map();
2785 if (pubsubLocation != null) {
2786 _json["pubsubLocation"] = (pubsubLocation).toJson();
2787 }
2788 if (streamingStageLocation != null) {
2789 _json["streamingStageLocation"] = (streamingStageLocation).toJson();
2790 }
2791 return _json;
2792 }
2793 }
2794
2795
2796 /** Not documented yet. */
2797 class StreamingSetupTask {
2798 /** Not documented yet. */
2799 core.int receiveWorkPort;
2800
2801 /** Not documented yet. */
2802 TopologyConfig streamingComputationTopology;
2803
2804 /** Not documented yet. */
2805 core.int workerHarnessPort;
2806
2807
2808 StreamingSetupTask();
2809
2810 StreamingSetupTask.fromJson(core.Map _json) {
2811 if (_json.containsKey("receiveWorkPort")) {
2812 receiveWorkPort = _json["receiveWorkPort"];
2813 }
2814 if (_json.containsKey("streamingComputationTopology")) {
2815 streamingComputationTopology = new TopologyConfig.fromJson(_json["streamin gComputationTopology"]);
2816 }
2817 if (_json.containsKey("workerHarnessPort")) {
2818 workerHarnessPort = _json["workerHarnessPort"];
2819 }
2820 }
2821
2822 core.Map toJson() {
2823 var _json = new core.Map();
2824 if (receiveWorkPort != null) {
2825 _json["receiveWorkPort"] = receiveWorkPort;
2826 }
2827 if (streamingComputationTopology != null) {
2828 _json["streamingComputationTopology"] = (streamingComputationTopology).toJ son();
2829 }
2830 if (workerHarnessPort != null) {
2831 _json["workerHarnessPort"] = workerHarnessPort;
2832 }
2833 return _json;
2834 }
2835 }
2836
2837
2838 /** Not documented yet. */
2839 class StreamingStageLocation {
2840 /** Not documented yet. */
2841 core.String streamId;
2842
2843
2844 StreamingStageLocation();
2845
2846 StreamingStageLocation.fromJson(core.Map _json) {
2847 if (_json.containsKey("streamId")) {
2848 streamId = _json["streamId"];
2849 }
2850 }
2851
2852 core.Map toJson() {
2853 var _json = new core.Map();
2854 if (streamId != null) {
2855 _json["streamId"] = streamId;
2856 }
2857 return _json;
2858 }
2859 }
2860
2861
2862 /** Not documented yet. */
2863 class TaskRunnerSettings {
2864 /** Not documented yet. */
2865 core.bool alsologtostderr;
2866
2867 /** Not documented yet. */
2868 core.String baseTaskDir;
2869
2870 /** Not documented yet. */
2871 core.String baseUrl;
2872
2873 /** Not documented yet. */
2874 core.String commandlinesFileName;
2875
2876 /** Not documented yet. */
2877 core.bool continueOnException;
2878
2879 /** Not documented yet. */
2880 core.String dataflowApiVersion;
2881
2882 /** Not documented yet. */
2883 core.String harnessCommand;
2884
2885 /** Not documented yet. */
2886 core.String languageHint;
2887
2888 /** Not documented yet. */
2889 core.String logDir;
2890
2891 /** Not documented yet. */
2892 core.bool logToSerialconsole;
2893
2894 /** Not documented yet. */
2895 core.String logUploadLocation;
2896
2897 /** Not documented yet. */
2898 core.List<core.String> oauthScopes;
2899
2900 /** Not documented yet. */
2901 WorkerSettings parallelWorkerSettings;
2902
2903 /** Not documented yet. */
2904 core.String streamingWorkerMainClass;
2905
2906 /** Not documented yet. */
2907 core.String taskGroup;
2908
2909 /** Not documented yet. */
2910 core.String taskUser;
2911
2912 /** Not documented yet. */
2913 core.String tempStoragePrefix;
2914
2915 /** Not documented yet. */
2916 core.String vmId;
2917
2918 /** Not documented yet. */
2919 core.String workflowFileName;
2920
2921
2922 TaskRunnerSettings();
2923
2924 TaskRunnerSettings.fromJson(core.Map _json) {
2925 if (_json.containsKey("alsologtostderr")) {
2926 alsologtostderr = _json["alsologtostderr"];
2927 }
2928 if (_json.containsKey("baseTaskDir")) {
2929 baseTaskDir = _json["baseTaskDir"];
2930 }
2931 if (_json.containsKey("baseUrl")) {
2932 baseUrl = _json["baseUrl"];
2933 }
2934 if (_json.containsKey("commandlinesFileName")) {
2935 commandlinesFileName = _json["commandlinesFileName"];
2936 }
2937 if (_json.containsKey("continueOnException")) {
2938 continueOnException = _json["continueOnException"];
2939 }
2940 if (_json.containsKey("dataflowApiVersion")) {
2941 dataflowApiVersion = _json["dataflowApiVersion"];
2942 }
2943 if (_json.containsKey("harnessCommand")) {
2944 harnessCommand = _json["harnessCommand"];
2945 }
2946 if (_json.containsKey("languageHint")) {
2947 languageHint = _json["languageHint"];
2948 }
2949 if (_json.containsKey("logDir")) {
2950 logDir = _json["logDir"];
2951 }
2952 if (_json.containsKey("logToSerialconsole")) {
2953 logToSerialconsole = _json["logToSerialconsole"];
2954 }
2955 if (_json.containsKey("logUploadLocation")) {
2956 logUploadLocation = _json["logUploadLocation"];
2957 }
2958 if (_json.containsKey("oauthScopes")) {
2959 oauthScopes = _json["oauthScopes"];
2960 }
2961 if (_json.containsKey("parallelWorkerSettings")) {
2962 parallelWorkerSettings = new WorkerSettings.fromJson(_json["parallelWorker Settings"]);
2963 }
2964 if (_json.containsKey("streamingWorkerMainClass")) {
2965 streamingWorkerMainClass = _json["streamingWorkerMainClass"];
2966 }
2967 if (_json.containsKey("taskGroup")) {
2968 taskGroup = _json["taskGroup"];
2969 }
2970 if (_json.containsKey("taskUser")) {
2971 taskUser = _json["taskUser"];
2972 }
2973 if (_json.containsKey("tempStoragePrefix")) {
2974 tempStoragePrefix = _json["tempStoragePrefix"];
2975 }
2976 if (_json.containsKey("vmId")) {
2977 vmId = _json["vmId"];
2978 }
2979 if (_json.containsKey("workflowFileName")) {
2980 workflowFileName = _json["workflowFileName"];
2981 }
2982 }
2983
2984 core.Map toJson() {
2985 var _json = new core.Map();
2986 if (alsologtostderr != null) {
2987 _json["alsologtostderr"] = alsologtostderr;
2988 }
2989 if (baseTaskDir != null) {
2990 _json["baseTaskDir"] = baseTaskDir;
2991 }
2992 if (baseUrl != null) {
2993 _json["baseUrl"] = baseUrl;
2994 }
2995 if (commandlinesFileName != null) {
2996 _json["commandlinesFileName"] = commandlinesFileName;
2997 }
2998 if (continueOnException != null) {
2999 _json["continueOnException"] = continueOnException;
3000 }
3001 if (dataflowApiVersion != null) {
3002 _json["dataflowApiVersion"] = dataflowApiVersion;
3003 }
3004 if (harnessCommand != null) {
3005 _json["harnessCommand"] = harnessCommand;
3006 }
3007 if (languageHint != null) {
3008 _json["languageHint"] = languageHint;
3009 }
3010 if (logDir != null) {
3011 _json["logDir"] = logDir;
3012 }
3013 if (logToSerialconsole != null) {
3014 _json["logToSerialconsole"] = logToSerialconsole;
3015 }
3016 if (logUploadLocation != null) {
3017 _json["logUploadLocation"] = logUploadLocation;
3018 }
3019 if (oauthScopes != null) {
3020 _json["oauthScopes"] = oauthScopes;
3021 }
3022 if (parallelWorkerSettings != null) {
3023 _json["parallelWorkerSettings"] = (parallelWorkerSettings).toJson();
3024 }
3025 if (streamingWorkerMainClass != null) {
3026 _json["streamingWorkerMainClass"] = streamingWorkerMainClass;
3027 }
3028 if (taskGroup != null) {
3029 _json["taskGroup"] = taskGroup;
3030 }
3031 if (taskUser != null) {
3032 _json["taskUser"] = taskUser;
3033 }
3034 if (tempStoragePrefix != null) {
3035 _json["tempStoragePrefix"] = tempStoragePrefix;
3036 }
3037 if (vmId != null) {
3038 _json["vmId"] = vmId;
3039 }
3040 if (workflowFileName != null) {
3041 _json["workflowFileName"] = workflowFileName;
3042 }
3043 return _json;
3044 }
3045 }
3046
3047
3048 /** Not documented yet. */
3049 class TopologyConfig {
3050 /** Not documented yet. */
3051 core.List<ComputationTopology> computations;
3052
3053 /** Not documented yet. */
3054 core.List<DataDiskAssignment> dataDiskAssignments;
3055
3056
3057 TopologyConfig();
3058
3059 TopologyConfig.fromJson(core.Map _json) {
3060 if (_json.containsKey("computations")) {
3061 computations = _json["computations"].map((value) => new ComputationTopolog y.fromJson(value)).toList();
3062 }
3063 if (_json.containsKey("dataDiskAssignments")) {
3064 dataDiskAssignments = _json["dataDiskAssignments"].map((value) => new Data DiskAssignment.fromJson(value)).toList();
3065 }
3066 }
3067
3068 core.Map toJson() {
3069 var _json = new core.Map();
3070 if (computations != null) {
3071 _json["computations"] = computations.map((value) => (value).toJson()).toLi st();
3072 }
3073 if (dataDiskAssignments != null) {
3074 _json["dataDiskAssignments"] = dataDiskAssignments.map((value) => (value). toJson()).toList();
3075 }
3076 return _json;
3077 }
3078 }
3079
3080
3081 /** Not documented yet. */
3082 class WorkItem {
3083 /** Not documented yet. */
3084 core.String configuration;
3085
3086 /** Not documented yet. */
3087 core.String id;
3088
3089 /** Not documented yet. */
3090 core.String jobId;
3091
3092 /** Not documented yet. */
3093 core.String leaseExpireTime;
3094
3095 /** Not documented yet. */
3096 MapTask mapTask;
3097
3098 /** Not documented yet. */
3099 core.List<Package> packages;
3100
3101 /** Not documented yet. */
3102 core.String projectId;
3103
3104 /** Not documented yet. */
3105 core.String reportStatusInterval;
3106
3107 /** Not documented yet. */
3108 SeqMapTask seqMapTask;
3109
3110 /** Not documented yet. */
3111 ShellTask shellTask;
3112
3113 /** Not documented yet. */
3114 SourceOperationRequest sourceOperationTask;
3115
3116 /** Not documented yet. */
3117 StreamingSetupTask streamingSetupTask;
3118
3119
3120 WorkItem();
3121
3122 WorkItem.fromJson(core.Map _json) {
3123 if (_json.containsKey("configuration")) {
3124 configuration = _json["configuration"];
3125 }
3126 if (_json.containsKey("id")) {
3127 id = _json["id"];
3128 }
3129 if (_json.containsKey("jobId")) {
3130 jobId = _json["jobId"];
3131 }
3132 if (_json.containsKey("leaseExpireTime")) {
3133 leaseExpireTime = _json["leaseExpireTime"];
3134 }
3135 if (_json.containsKey("mapTask")) {
3136 mapTask = new MapTask.fromJson(_json["mapTask"]);
3137 }
3138 if (_json.containsKey("packages")) {
3139 packages = _json["packages"].map((value) => new Package.fromJson(value)).t oList();
3140 }
3141 if (_json.containsKey("projectId")) {
3142 projectId = _json["projectId"];
3143 }
3144 if (_json.containsKey("reportStatusInterval")) {
3145 reportStatusInterval = _json["reportStatusInterval"];
3146 }
3147 if (_json.containsKey("seqMapTask")) {
3148 seqMapTask = new SeqMapTask.fromJson(_json["seqMapTask"]);
3149 }
3150 if (_json.containsKey("shellTask")) {
3151 shellTask = new ShellTask.fromJson(_json["shellTask"]);
3152 }
3153 if (_json.containsKey("sourceOperationTask")) {
3154 sourceOperationTask = new SourceOperationRequest.fromJson(_json["sourceOpe rationTask"]);
3155 }
3156 if (_json.containsKey("streamingSetupTask")) {
3157 streamingSetupTask = new StreamingSetupTask.fromJson(_json["streamingSetup Task"]);
3158 }
3159 }
3160
3161 core.Map toJson() {
3162 var _json = new core.Map();
3163 if (configuration != null) {
3164 _json["configuration"] = configuration;
3165 }
3166 if (id != null) {
3167 _json["id"] = id;
3168 }
3169 if (jobId != null) {
3170 _json["jobId"] = jobId;
3171 }
3172 if (leaseExpireTime != null) {
3173 _json["leaseExpireTime"] = leaseExpireTime;
3174 }
3175 if (mapTask != null) {
3176 _json["mapTask"] = (mapTask).toJson();
3177 }
3178 if (packages != null) {
3179 _json["packages"] = packages.map((value) => (value).toJson()).toList();
3180 }
3181 if (projectId != null) {
3182 _json["projectId"] = projectId;
3183 }
3184 if (reportStatusInterval != null) {
3185 _json["reportStatusInterval"] = reportStatusInterval;
3186 }
3187 if (seqMapTask != null) {
3188 _json["seqMapTask"] = (seqMapTask).toJson();
3189 }
3190 if (shellTask != null) {
3191 _json["shellTask"] = (shellTask).toJson();
3192 }
3193 if (sourceOperationTask != null) {
3194 _json["sourceOperationTask"] = (sourceOperationTask).toJson();
3195 }
3196 if (streamingSetupTask != null) {
3197 _json["streamingSetupTask"] = (streamingSetupTask).toJson();
3198 }
3199 return _json;
3200 }
3201 }
3202
3203
3204 /** Not documented yet. */
3205 class WorkItemServiceState {
3206 /**
3207 * Not documented yet.
3208 *
3209 * The values for Object must be JSON objects. It can consist of `num`,
3210 * `String`, `bool` and `null` as well as `Map` and `List` values.
3211 */
3212 core.Map<core.String, core.Object> harnessData;
3213
3214 /** Not documented yet. */
3215 core.String leaseExpireTime;
3216
3217 /** Not documented yet. */
3218 core.String reportStatusInterval;
3219
3220 /** Not documented yet. */
3221 ApproximateProgress suggestedStopPoint;
3222
3223 /** Not documented yet. */
3224 Position suggestedStopPosition;
3225
3226
3227 WorkItemServiceState();
3228
3229 WorkItemServiceState.fromJson(core.Map _json) {
3230 if (_json.containsKey("harnessData")) {
3231 harnessData = _json["harnessData"];
3232 }
3233 if (_json.containsKey("leaseExpireTime")) {
3234 leaseExpireTime = _json["leaseExpireTime"];
3235 }
3236 if (_json.containsKey("reportStatusInterval")) {
3237 reportStatusInterval = _json["reportStatusInterval"];
3238 }
3239 if (_json.containsKey("suggestedStopPoint")) {
3240 suggestedStopPoint = new ApproximateProgress.fromJson(_json["suggestedStop Point"]);
3241 }
3242 if (_json.containsKey("suggestedStopPosition")) {
3243 suggestedStopPosition = new Position.fromJson(_json["suggestedStopPosition "]);
3244 }
3245 }
3246
3247 core.Map toJson() {
3248 var _json = new core.Map();
3249 if (harnessData != null) {
3250 _json["harnessData"] = harnessData;
3251 }
3252 if (leaseExpireTime != null) {
3253 _json["leaseExpireTime"] = leaseExpireTime;
3254 }
3255 if (reportStatusInterval != null) {
3256 _json["reportStatusInterval"] = reportStatusInterval;
3257 }
3258 if (suggestedStopPoint != null) {
3259 _json["suggestedStopPoint"] = (suggestedStopPoint).toJson();
3260 }
3261 if (suggestedStopPosition != null) {
3262 _json["suggestedStopPosition"] = (suggestedStopPosition).toJson();
3263 }
3264 return _json;
3265 }
3266 }
3267
3268
3269 /** Not documented yet. */
3270 class WorkItemStatus {
3271 /** Not documented yet. */
3272 core.bool completed;
3273
3274 /** Not documented yet. */
3275 core.List<Status> errors;
3276
3277 /** Not documented yet. */
3278 core.List<MetricUpdate> metricUpdates;
3279
3280 /** Not documented yet. */
3281 ApproximateProgress progress;
3282
3283 /** Not documented yet. */
3284 core.String reportIndex;
3285
3286 /** Not documented yet. */
3287 core.String requestedLeaseDuration;
3288
3289 /** Not documented yet. */
3290 SourceOperationResponse sourceOperationResponse;
3291
3292 /** Not documented yet. */
3293 Position stopPosition;
3294
3295 /** Not documented yet. */
3296 core.String workItemId;
3297
3298
3299 WorkItemStatus();
3300
3301 WorkItemStatus.fromJson(core.Map _json) {
3302 if (_json.containsKey("completed")) {
3303 completed = _json["completed"];
3304 }
3305 if (_json.containsKey("errors")) {
3306 errors = _json["errors"].map((value) => new Status.fromJson(value)).toList ();
3307 }
3308 if (_json.containsKey("metricUpdates")) {
3309 metricUpdates = _json["metricUpdates"].map((value) => new MetricUpdate.fro mJson(value)).toList();
3310 }
3311 if (_json.containsKey("progress")) {
3312 progress = new ApproximateProgress.fromJson(_json["progress"]);
3313 }
3314 if (_json.containsKey("reportIndex")) {
3315 reportIndex = _json["reportIndex"];
3316 }
3317 if (_json.containsKey("requestedLeaseDuration")) {
3318 requestedLeaseDuration = _json["requestedLeaseDuration"];
3319 }
3320 if (_json.containsKey("sourceOperationResponse")) {
3321 sourceOperationResponse = new SourceOperationResponse.fromJson(_json["sour ceOperationResponse"]);
3322 }
3323 if (_json.containsKey("stopPosition")) {
3324 stopPosition = new Position.fromJson(_json["stopPosition"]);
3325 }
3326 if (_json.containsKey("workItemId")) {
3327 workItemId = _json["workItemId"];
3328 }
3329 }
3330
3331 core.Map toJson() {
3332 var _json = new core.Map();
3333 if (completed != null) {
3334 _json["completed"] = completed;
3335 }
3336 if (errors != null) {
3337 _json["errors"] = errors.map((value) => (value).toJson()).toList();
3338 }
3339 if (metricUpdates != null) {
3340 _json["metricUpdates"] = metricUpdates.map((value) => (value).toJson()).to List();
3341 }
3342 if (progress != null) {
3343 _json["progress"] = (progress).toJson();
3344 }
3345 if (reportIndex != null) {
3346 _json["reportIndex"] = reportIndex;
3347 }
3348 if (requestedLeaseDuration != null) {
3349 _json["requestedLeaseDuration"] = requestedLeaseDuration;
3350 }
3351 if (sourceOperationResponse != null) {
3352 _json["sourceOperationResponse"] = (sourceOperationResponse).toJson();
3353 }
3354 if (stopPosition != null) {
3355 _json["stopPosition"] = (stopPosition).toJson();
3356 }
3357 if (workItemId != null) {
3358 _json["workItemId"] = workItemId;
3359 }
3360 return _json;
3361 }
3362 }
3363
3364
3365 /** Not documented yet. */
3366 class WorkerPool {
3367 /** Not documented yet. */
3368 AutoscalingSettings autoscalingSettings;
3369
3370 /** Not documented yet. */
3371 core.List<Disk> dataDisks;
3372
3373 /**
3374 * Not documented yet.
3375 * Possible string values are:
3376 * - "DEFAULT_PACKAGE_SET_JAVA"
3377 * - "DEFAULT_PACKAGE_SET_NONE"
3378 * - "DEFAULT_PACKAGE_SET_PYTHON"
3379 * - "DEFAULT_PACKAGE_SET_UNKNOWN"
3380 */
3381 core.String defaultPackageSet;
3382
3383 /** Not documented yet. */
3384 core.int diskSizeGb;
3385
3386 /** Not documented yet. */
3387 core.String diskSourceImage;
3388
3389 /** Not documented yet. */
3390 core.String kind;
3391
3392 /** Not documented yet. */
3393 core.String machineType;
3394
3395 /** Not documented yet. */
3396 core.Map<core.String, core.String> metadata;
3397
3398 /** Not documented yet. */
3399 core.int numWorkers;
3400
3401 /** Not documented yet. */
3402 core.String onHostMaintenance;
3403
3404 /** Not documented yet. */
3405 core.List<Package> packages;
3406
3407 /** Not documented yet. */
3408 TaskRunnerSettings taskrunnerSettings;
3409
3410 /**
3411 * Not documented yet.
3412 * Possible string values are:
3413 * - "TEARDOWN_ALWAYS"
3414 * - "TEARDOWN_NEVER"
3415 * - "TEARDOWN_ON_SUCCESS"
3416 * - "TEARDOWN_POLICY_UNKNOWN"
3417 */
3418 core.String teardownPolicy;
3419
3420 /** Not documented yet. */
3421 core.String zone;
3422
3423
3424 WorkerPool();
3425
3426 WorkerPool.fromJson(core.Map _json) {
3427 if (_json.containsKey("autoscalingSettings")) {
3428 autoscalingSettings = new AutoscalingSettings.fromJson(_json["autoscalingS ettings"]);
3429 }
3430 if (_json.containsKey("dataDisks")) {
3431 dataDisks = _json["dataDisks"].map((value) => new Disk.fromJson(value)).to List();
3432 }
3433 if (_json.containsKey("defaultPackageSet")) {
3434 defaultPackageSet = _json["defaultPackageSet"];
3435 }
3436 if (_json.containsKey("diskSizeGb")) {
3437 diskSizeGb = _json["diskSizeGb"];
3438 }
3439 if (_json.containsKey("diskSourceImage")) {
3440 diskSourceImage = _json["diskSourceImage"];
3441 }
3442 if (_json.containsKey("kind")) {
3443 kind = _json["kind"];
3444 }
3445 if (_json.containsKey("machineType")) {
3446 machineType = _json["machineType"];
3447 }
3448 if (_json.containsKey("metadata")) {
3449 metadata = _json["metadata"];
3450 }
3451 if (_json.containsKey("numWorkers")) {
3452 numWorkers = _json["numWorkers"];
3453 }
3454 if (_json.containsKey("onHostMaintenance")) {
3455 onHostMaintenance = _json["onHostMaintenance"];
3456 }
3457 if (_json.containsKey("packages")) {
3458 packages = _json["packages"].map((value) => new Package.fromJson(value)).t oList();
3459 }
3460 if (_json.containsKey("taskrunnerSettings")) {
3461 taskrunnerSettings = new TaskRunnerSettings.fromJson(_json["taskrunnerSett ings"]);
3462 }
3463 if (_json.containsKey("teardownPolicy")) {
3464 teardownPolicy = _json["teardownPolicy"];
3465 }
3466 if (_json.containsKey("zone")) {
3467 zone = _json["zone"];
3468 }
3469 }
3470
3471 core.Map toJson() {
3472 var _json = new core.Map();
3473 if (autoscalingSettings != null) {
3474 _json["autoscalingSettings"] = (autoscalingSettings).toJson();
3475 }
3476 if (dataDisks != null) {
3477 _json["dataDisks"] = dataDisks.map((value) => (value).toJson()).toList();
3478 }
3479 if (defaultPackageSet != null) {
3480 _json["defaultPackageSet"] = defaultPackageSet;
3481 }
3482 if (diskSizeGb != null) {
3483 _json["diskSizeGb"] = diskSizeGb;
3484 }
3485 if (diskSourceImage != null) {
3486 _json["diskSourceImage"] = diskSourceImage;
3487 }
3488 if (kind != null) {
3489 _json["kind"] = kind;
3490 }
3491 if (machineType != null) {
3492 _json["machineType"] = machineType;
3493 }
3494 if (metadata != null) {
3495 _json["metadata"] = metadata;
3496 }
3497 if (numWorkers != null) {
3498 _json["numWorkers"] = numWorkers;
3499 }
3500 if (onHostMaintenance != null) {
3501 _json["onHostMaintenance"] = onHostMaintenance;
3502 }
3503 if (packages != null) {
3504 _json["packages"] = packages.map((value) => (value).toJson()).toList();
3505 }
3506 if (taskrunnerSettings != null) {
3507 _json["taskrunnerSettings"] = (taskrunnerSettings).toJson();
3508 }
3509 if (teardownPolicy != null) {
3510 _json["teardownPolicy"] = teardownPolicy;
3511 }
3512 if (zone != null) {
3513 _json["zone"] = zone;
3514 }
3515 return _json;
3516 }
3517 }
3518
3519
3520 /** Not documented yet. */
3521 class WorkerSettings {
3522 /** Not documented yet. */
3523 core.String baseUrl;
3524
3525 /** Not documented yet. */
3526 core.bool reportingEnabled;
3527
3528 /** Not documented yet. */
3529 core.String servicePath;
3530
3531 /** Not documented yet. */
3532 core.String shuffleServicePath;
3533
3534 /** Not documented yet. */
3535 core.String tempStoragePrefix;
3536
3537 /** Not documented yet. */
3538 core.String workerId;
3539
3540
3541 WorkerSettings();
3542
3543 WorkerSettings.fromJson(core.Map _json) {
3544 if (_json.containsKey("baseUrl")) {
3545 baseUrl = _json["baseUrl"];
3546 }
3547 if (_json.containsKey("reportingEnabled")) {
3548 reportingEnabled = _json["reportingEnabled"];
3549 }
3550 if (_json.containsKey("servicePath")) {
3551 servicePath = _json["servicePath"];
3552 }
3553 if (_json.containsKey("shuffleServicePath")) {
3554 shuffleServicePath = _json["shuffleServicePath"];
3555 }
3556 if (_json.containsKey("tempStoragePrefix")) {
3557 tempStoragePrefix = _json["tempStoragePrefix"];
3558 }
3559 if (_json.containsKey("workerId")) {
3560 workerId = _json["workerId"];
3561 }
3562 }
3563
3564 core.Map toJson() {
3565 var _json = new core.Map();
3566 if (baseUrl != null) {
3567 _json["baseUrl"] = baseUrl;
3568 }
3569 if (reportingEnabled != null) {
3570 _json["reportingEnabled"] = reportingEnabled;
3571 }
3572 if (servicePath != null) {
3573 _json["servicePath"] = servicePath;
3574 }
3575 if (shuffleServicePath != null) {
3576 _json["shuffleServicePath"] = shuffleServicePath;
3577 }
3578 if (tempStoragePrefix != null) {
3579 _json["tempStoragePrefix"] = tempStoragePrefix;
3580 }
3581 if (workerId != null) {
3582 _json["workerId"] = workerId;
3583 }
3584 return _json;
3585 }
3586 }
3587
3588
3589 /** Not documented yet. */
3590 class WriteInstruction {
3591 /** Not documented yet. */
3592 InstructionInput input;
3593
3594 /** Not documented yet. */
3595 Sink sink;
3596
3597
3598 WriteInstruction();
3599
3600 WriteInstruction.fromJson(core.Map _json) {
3601 if (_json.containsKey("input")) {
3602 input = new InstructionInput.fromJson(_json["input"]);
3603 }
3604 if (_json.containsKey("sink")) {
3605 sink = new Sink.fromJson(_json["sink"]);
3606 }
3607 }
3608
3609 core.Map toJson() {
3610 var _json = new core.Map();
3611 if (input != null) {
3612 _json["input"] = (input).toJson();
3613 }
3614 if (sink != null) {
3615 _json["sink"] = (sink).toJson();
3616 }
3617 return _json;
3618 }
3619 }
3620
3621
OLDNEW
« no previous file with comments | « generated/googleapis_beta/README.md ('k') | generated/googleapis_beta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698