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

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

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.dataflow.v1b3; 3 library googleapis_beta.dataflow.v1b3;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 * 110 *
111 * [location] - The location that contains this job. 111 * [location] - The location that contains this job.
112 * 112 *
113 * [replaceJobId] - Deprecated. This field is now in the Job message. 113 * [replaceJobId] - Deprecated. This field is now in the Job message.
114 * 114 *
115 * [view] - The level of information requested in response. 115 * [view] - The level of information requested in response.
116 * Possible string values are: 116 * Possible string values are:
117 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. 117 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN.
118 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. 118 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY.
119 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. 119 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL.
120 * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION.
120 * 121 *
121 * Completes with a [Job]. 122 * Completes with a [Job].
122 * 123 *
123 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 124 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
124 * error. 125 * error.
125 * 126 *
126 * If the used [http.Client] completes with an error when making a REST call, 127 * If the used [http.Client] completes with an error when making a REST call,
127 * this method will complete with the same error. 128 * this method will complete with the same error.
128 */ 129 */
129 async.Future<Job> create(Job request, core.String projectId, {core.String loca tion, core.String replaceJobId, core.String view}) { 130 async.Future<Job> create(Job request, core.String projectId, {core.String loca tion, core.String replaceJobId, core.String view}) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 /** 166 /**
166 * Gets the state of the specified Cloud Dataflow job. 167 * Gets the state of the specified Cloud Dataflow job.
167 * 168 *
168 * Request parameters: 169 * Request parameters:
169 * 170 *
170 * [projectId] - The ID of the Cloud Platform project that the job belongs to. 171 * [projectId] - The ID of the Cloud Platform project that the job belongs to.
171 * 172 *
172 * [jobId] - The job ID. 173 * [jobId] - The job ID.
173 * 174 *
175 * [location] - The location that contains this job.
176 *
174 * [view] - The level of information requested in response. 177 * [view] - The level of information requested in response.
175 * Possible string values are: 178 * Possible string values are:
176 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. 179 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN.
177 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. 180 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY.
178 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. 181 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL.
179 * 182 * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION.
180 * [location] - The location that contains this job.
181 * 183 *
182 * Completes with a [Job]. 184 * Completes with a [Job].
183 * 185 *
184 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
185 * error. 187 * error.
186 * 188 *
187 * If the used [http.Client] completes with an error when making a REST call, 189 * If the used [http.Client] completes with an error when making a REST call,
188 * this method will complete with the same error. 190 * this method will complete with the same error.
189 */ 191 */
190 async.Future<Job> get(core.String projectId, core.String jobId, {core.String v iew, core.String location}) { 192 async.Future<Job> get(core.String projectId, core.String jobId, {core.String l ocation, core.String view}) {
191 var _url = null; 193 var _url = null;
192 var _queryParams = new core.Map(); 194 var _queryParams = new core.Map();
193 var _uploadMedia = null; 195 var _uploadMedia = null;
194 var _uploadOptions = null; 196 var _uploadOptions = null;
195 var _downloadOptions = commons.DownloadOptions.Metadata; 197 var _downloadOptions = commons.DownloadOptions.Metadata;
196 var _body = null; 198 var _body = null;
197 199
198 if (projectId == null) { 200 if (projectId == null) {
199 throw new core.ArgumentError("Parameter projectId is required."); 201 throw new core.ArgumentError("Parameter projectId is required.");
200 } 202 }
201 if (jobId == null) { 203 if (jobId == null) {
202 throw new core.ArgumentError("Parameter jobId is required."); 204 throw new core.ArgumentError("Parameter jobId is required.");
203 } 205 }
206 if (location != null) {
207 _queryParams["location"] = [location];
208 }
204 if (view != null) { 209 if (view != null) {
205 _queryParams["view"] = [view]; 210 _queryParams["view"] = [view];
206 } 211 }
207 if (location != null) {
208 _queryParams["location"] = [location];
209 }
210 212
211 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo bs/' + commons.Escaper.ecapeVariable('$jobId'); 213 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo bs/' + commons.Escaper.ecapeVariable('$jobId');
212 214
213 var _response = _requester.request(_url, 215 var _response = _requester.request(_url,
214 "GET", 216 "GET",
215 body: _body, 217 body: _body,
216 queryParams: _queryParams, 218 queryParams: _queryParams,
217 uploadOptions: _uploadOptions, 219 uploadOptions: _uploadOptions,
218 uploadMedia: _uploadMedia, 220 uploadMedia: _uploadMedia,
219 downloadOptions: _downloadOptions); 221 downloadOptions: _downloadOptions);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 * [pageSize] - If there are many jobs, limit response to at most this many. 300 * [pageSize] - If there are many jobs, limit response to at most this many.
299 * The actual number of jobs returned will be the lesser of max_responses 301 * The actual number of jobs returned will be the lesser of max_responses
300 * and an unspecified server-defined limit. 302 * and an unspecified server-defined limit.
301 * 303 *
302 * [view] - Level of information requested in response. Default is 304 * [view] - Level of information requested in response. Default is
303 * `JOB_VIEW_SUMMARY`. 305 * `JOB_VIEW_SUMMARY`.
304 * Possible string values are: 306 * Possible string values are:
305 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. 307 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN.
306 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. 308 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY.
307 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. 309 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL.
310 * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION.
308 * 311 *
309 * Completes with a [ListJobsResponse]. 312 * Completes with a [ListJobsResponse].
310 * 313 *
311 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 314 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
312 * error. 315 * error.
313 * 316 *
314 * If the used [http.Client] completes with an error when making a REST call, 317 * If the used [http.Client] completes with an error when making a REST call,
315 * this method will complete with the same error. 318 * this method will complete with the same error.
316 */ 319 */
317 async.Future<ListJobsResponse> list(core.String projectId, {core.String filter , core.String location, core.String pageToken, core.int pageSize, core.String vi ew}) { 320 async.Future<ListJobsResponse> list(core.String projectId, {core.String filter , core.String location, core.String pageToken, core.int pageSize, core.String vi ew}) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 528
526 /** 529 /**
527 * Request the job status. 530 * Request the job status.
528 * 531 *
529 * Request parameters: 532 * Request parameters:
530 * 533 *
531 * [projectId] - A project id. 534 * [projectId] - A project id.
532 * 535 *
533 * [jobId] - The job to get messages about. 536 * [jobId] - The job to get messages about.
534 * 537 *
538 * [startTime] - If specified, return only messages with timestamps >=
539 * start_time.
540 * The default is the job creation time (i.e. beginning of messages).
541 *
542 * [pageToken] - If supplied, this should be the value of next_page_token
543 * returned
544 * by an earlier call. This will cause the next page of results to
545 * be returned.
546 *
547 * [pageSize] - If specified, determines the maximum number of messages to
548 * return. If unspecified, the service may choose an appropriate
549 * default, or may return an arbitrarily large number of results.
550 *
535 * [minimumImportance] - Filter to only get messages with importance >= level 551 * [minimumImportance] - Filter to only get messages with importance >= level
536 * Possible string values are: 552 * Possible string values are:
537 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. 553 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN.
538 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. 554 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG.
539 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. 555 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED.
540 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. 556 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC.
541 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. 557 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING.
542 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. 558 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR.
543 * 559 *
544 * [location] - The location which contains the job specified by job_id. 560 * [location] - The location which contains the job specified by job_id.
545 * 561 *
546 * [endTime] - Return only messages with timestamps < end_time. The default is 562 * [endTime] - Return only messages with timestamps < end_time. The default is
547 * now 563 * now
548 * (i.e. return up to the latest messages available). 564 * (i.e. return up to the latest messages available).
549 * 565 *
550 * [startTime] - If specified, return only messages with timestamps >=
551 * start_time.
552 * The default is the job creation time (i.e. beginning of messages).
553 *
554 * [pageToken] - If supplied, this should be the value of next_page_token
555 * returned
556 * by an earlier call. This will cause the next page of results to
557 * be returned.
558 *
559 * [pageSize] - If specified, determines the maximum number of messages to
560 * return. If unspecified, the service may choose an appropriate
561 * default, or may return an arbitrarily large number of results.
562 *
563 * Completes with a [ListJobMessagesResponse]. 566 * Completes with a [ListJobMessagesResponse].
564 * 567 *
565 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 568 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
566 * error. 569 * error.
567 * 570 *
568 * If the used [http.Client] completes with an error when making a REST call, 571 * If the used [http.Client] completes with an error when making a REST call,
569 * this method will complete with the same error. 572 * this method will complete with the same error.
570 */ 573 */
571 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String minimumImportance, core.String location, core.String endTime , core.String startTime, core.String pageToken, core.int pageSize}) { 574 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String startTime, core.String pageToken, core.int pageSize, core.St ring minimumImportance, core.String location, core.String endTime}) {
572 var _url = null; 575 var _url = null;
573 var _queryParams = new core.Map(); 576 var _queryParams = new core.Map();
574 var _uploadMedia = null; 577 var _uploadMedia = null;
575 var _uploadOptions = null; 578 var _uploadOptions = null;
576 var _downloadOptions = commons.DownloadOptions.Metadata; 579 var _downloadOptions = commons.DownloadOptions.Metadata;
577 var _body = null; 580 var _body = null;
578 581
579 if (projectId == null) { 582 if (projectId == null) {
580 throw new core.ArgumentError("Parameter projectId is required."); 583 throw new core.ArgumentError("Parameter projectId is required.");
581 } 584 }
582 if (jobId == null) { 585 if (jobId == null) {
583 throw new core.ArgumentError("Parameter jobId is required."); 586 throw new core.ArgumentError("Parameter jobId is required.");
584 } 587 }
585 if (minimumImportance != null) {
586 _queryParams["minimumImportance"] = [minimumImportance];
587 }
588 if (location != null) {
589 _queryParams["location"] = [location];
590 }
591 if (endTime != null) {
592 _queryParams["endTime"] = [endTime];
593 }
594 if (startTime != null) { 588 if (startTime != null) {
595 _queryParams["startTime"] = [startTime]; 589 _queryParams["startTime"] = [startTime];
596 } 590 }
597 if (pageToken != null) { 591 if (pageToken != null) {
598 _queryParams["pageToken"] = [pageToken]; 592 _queryParams["pageToken"] = [pageToken];
599 } 593 }
600 if (pageSize != null) { 594 if (pageSize != null) {
601 _queryParams["pageSize"] = ["${pageSize}"]; 595 _queryParams["pageSize"] = ["${pageSize}"];
602 } 596 }
597 if (minimumImportance != null) {
598 _queryParams["minimumImportance"] = [minimumImportance];
599 }
600 if (location != null) {
601 _queryParams["location"] = [location];
602 }
603 if (endTime != null) {
604 _queryParams["endTime"] = [endTime];
605 }
603 606
604 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo bs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; 607 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo bs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages';
605 608
606 var _response = _requester.request(_url, 609 var _response = _requester.request(_url,
607 "GET", 610 "GET",
608 body: _body, 611 body: _body,
609 queryParams: _queryParams, 612 queryParams: _queryParams,
610 uploadOptions: _uploadOptions, 613 uploadOptions: _uploadOptions,
611 uploadMedia: _uploadMedia, 614 uploadMedia: _uploadMedia,
612 downloadOptions: _downloadOptions); 615 downloadOptions: _downloadOptions);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 * Creates a Cloud Dataflow job. 749 * Creates a Cloud Dataflow job.
747 * 750 *
748 * [request] - The metadata request object. 751 * [request] - The metadata request object.
749 * 752 *
750 * Request parameters: 753 * Request parameters:
751 * 754 *
752 * [projectId] - The ID of the Cloud Platform project that the job belongs to. 755 * [projectId] - The ID of the Cloud Platform project that the job belongs to.
753 * 756 *
754 * [location] - The location that contains this job. 757 * [location] - The location that contains this job.
755 * 758 *
759 * [replaceJobId] - Deprecated. This field is now in the Job message.
760 *
756 * [view] - The level of information requested in response. 761 * [view] - The level of information requested in response.
757 * Possible string values are: 762 * Possible string values are:
758 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. 763 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN.
759 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. 764 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY.
760 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. 765 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL.
761 * 766 * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION.
762 * [replaceJobId] - Deprecated. This field is now in the Job message.
763 * 767 *
764 * Completes with a [Job]. 768 * Completes with a [Job].
765 * 769 *
766 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 770 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
767 * error. 771 * error.
768 * 772 *
769 * If the used [http.Client] completes with an error when making a REST call, 773 * If the used [http.Client] completes with an error when making a REST call,
770 * this method will complete with the same error. 774 * this method will complete with the same error.
771 */ 775 */
772 async.Future<Job> create(Job request, core.String projectId, core.String locat ion, {core.String view, core.String replaceJobId}) { 776 async.Future<Job> create(Job request, core.String projectId, core.String locat ion, {core.String replaceJobId, core.String view}) {
773 var _url = null; 777 var _url = null;
774 var _queryParams = new core.Map(); 778 var _queryParams = new core.Map();
775 var _uploadMedia = null; 779 var _uploadMedia = null;
776 var _uploadOptions = null; 780 var _uploadOptions = null;
777 var _downloadOptions = commons.DownloadOptions.Metadata; 781 var _downloadOptions = commons.DownloadOptions.Metadata;
778 var _body = null; 782 var _body = null;
779 783
780 if (request != null) { 784 if (request != null) {
781 _body = convert.JSON.encode((request).toJson()); 785 _body = convert.JSON.encode((request).toJson());
782 } 786 }
783 if (projectId == null) { 787 if (projectId == null) {
784 throw new core.ArgumentError("Parameter projectId is required."); 788 throw new core.ArgumentError("Parameter projectId is required.");
785 } 789 }
786 if (location == null) { 790 if (location == null) {
787 throw new core.ArgumentError("Parameter location is required."); 791 throw new core.ArgumentError("Parameter location is required.");
788 } 792 }
793 if (replaceJobId != null) {
794 _queryParams["replaceJobId"] = [replaceJobId];
795 }
789 if (view != null) { 796 if (view != null) {
790 _queryParams["view"] = [view]; 797 _queryParams["view"] = [view];
791 } 798 }
792 if (replaceJobId != null) {
793 _queryParams["replaceJobId"] = [replaceJobId];
794 }
795 799
796 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs'; 800 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs';
797 801
798 var _response = _requester.request(_url, 802 var _response = _requester.request(_url,
799 "POST", 803 "POST",
800 body: _body, 804 body: _body,
801 queryParams: _queryParams, 805 queryParams: _queryParams,
802 uploadOptions: _uploadOptions, 806 uploadOptions: _uploadOptions,
803 uploadMedia: _uploadMedia, 807 uploadMedia: _uploadMedia,
804 downloadOptions: _downloadOptions); 808 downloadOptions: _downloadOptions);
805 return _response.then((data) => new Job.fromJson(data)); 809 return _response.then((data) => new Job.fromJson(data));
806 } 810 }
807 811
808 /** 812 /**
809 * Gets the state of the specified Cloud Dataflow job. 813 * Gets the state of the specified Cloud Dataflow job.
810 * 814 *
811 * Request parameters: 815 * Request parameters:
812 * 816 *
813 * [projectId] - The ID of the Cloud Platform project that the job belongs to. 817 * [projectId] - The ID of the Cloud Platform project that the job belongs to.
814 * 818 *
815 * [location] - The location that contains this job. 819 * [location] - The location that contains this job.
816 * 820 *
817 * [jobId] - The job ID. 821 * [jobId] - The job ID.
818 * 822 *
819 * [view] - The level of information requested in response. 823 * [view] - The level of information requested in response.
820 * Possible string values are: 824 * Possible string values are:
821 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. 825 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN.
822 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. 826 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY.
823 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. 827 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL.
828 * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION.
824 * 829 *
825 * Completes with a [Job]. 830 * Completes with a [Job].
826 * 831 *
827 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 832 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
828 * error. 833 * error.
829 * 834 *
830 * If the used [http.Client] completes with an error when making a REST call, 835 * If the used [http.Client] completes with an error when making a REST call,
831 * this method will complete with the same error. 836 * this method will complete with the same error.
832 */ 837 */
833 async.Future<Job> get(core.String projectId, core.String location, core.String jobId, {core.String view}) { 838 async.Future<Job> get(core.String projectId, core.String location, core.String jobId, {core.String view}) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 * [pageSize] - If there are many jobs, limit response to at most this many. 946 * [pageSize] - If there are many jobs, limit response to at most this many.
942 * The actual number of jobs returned will be the lesser of max_responses 947 * The actual number of jobs returned will be the lesser of max_responses
943 * and an unspecified server-defined limit. 948 * and an unspecified server-defined limit.
944 * 949 *
945 * [view] - Level of information requested in response. Default is 950 * [view] - Level of information requested in response. Default is
946 * `JOB_VIEW_SUMMARY`. 951 * `JOB_VIEW_SUMMARY`.
947 * Possible string values are: 952 * Possible string values are:
948 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. 953 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN.
949 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. 954 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY.
950 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. 955 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL.
956 * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION.
951 * 957 *
952 * Completes with a [ListJobsResponse]. 958 * Completes with a [ListJobsResponse].
953 * 959 *
954 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 960 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
955 * error. 961 * error.
956 * 962 *
957 * If the used [http.Client] completes with an error when making a REST call, 963 * If the used [http.Client] completes with an error when making a REST call,
958 * this method will complete with the same error. 964 * this method will complete with the same error.
959 */ 965 */
960 async.Future<ListJobsResponse> list(core.String projectId, core.String locatio n, {core.String filter, core.String pageToken, core.int pageSize, core.String vi ew}) { 966 async.Future<ListJobsResponse> list(core.String projectId, core.String locatio n, {core.String filter, core.String pageToken, core.int pageSize, core.String vi ew}) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 * [projectId] - A project id. 1073 * [projectId] - A project id.
1068 * 1074 *
1069 * [location] - The location which contains the job specified by job_id. 1075 * [location] - The location which contains the job specified by job_id.
1070 * 1076 *
1071 * [jobId] - The job to get messages about. 1077 * [jobId] - The job to get messages about.
1072 * 1078 *
1073 * [endTime] - Return only messages with timestamps < end_time. The default is 1079 * [endTime] - Return only messages with timestamps < end_time. The default is
1074 * now 1080 * now
1075 * (i.e. return up to the latest messages available). 1081 * (i.e. return up to the latest messages available).
1076 * 1082 *
1077 * [startTime] - If specified, return only messages with timestamps >=
1078 * start_time.
1079 * The default is the job creation time (i.e. beginning of messages).
1080 *
1081 * [pageToken] - If supplied, this should be the value of next_page_token 1083 * [pageToken] - If supplied, this should be the value of next_page_token
1082 * returned 1084 * returned
1083 * by an earlier call. This will cause the next page of results to 1085 * by an earlier call. This will cause the next page of results to
1084 * be returned. 1086 * be returned.
1085 * 1087 *
1088 * [startTime] - If specified, return only messages with timestamps >=
1089 * start_time.
1090 * The default is the job creation time (i.e. beginning of messages).
1091 *
1086 * [pageSize] - If specified, determines the maximum number of messages to 1092 * [pageSize] - If specified, determines the maximum number of messages to
1087 * return. If unspecified, the service may choose an appropriate 1093 * return. If unspecified, the service may choose an appropriate
1088 * default, or may return an arbitrarily large number of results. 1094 * default, or may return an arbitrarily large number of results.
1089 * 1095 *
1090 * [minimumImportance] - Filter to only get messages with importance >= level 1096 * [minimumImportance] - Filter to only get messages with importance >= level
1091 * Possible string values are: 1097 * Possible string values are:
1092 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. 1098 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN.
1093 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. 1099 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG.
1094 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. 1100 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED.
1095 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. 1101 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC.
1096 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. 1102 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING.
1097 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. 1103 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR.
1098 * 1104 *
1099 * Completes with a [ListJobMessagesResponse]. 1105 * Completes with a [ListJobMessagesResponse].
1100 * 1106 *
1101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1102 * error. 1108 * error.
1103 * 1109 *
1104 * If the used [http.Client] completes with an error when making a REST call, 1110 * If the used [http.Client] completes with an error when making a REST call,
1105 * this method will complete with the same error. 1111 * this method will complete with the same error.
1106 */ 1112 */
1107 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.String endTime, core.String startTime, core.S tring pageToken, core.int pageSize, core.String minimumImportance}) { 1113 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.String endTime, core.String pageToken, core.S tring startTime, core.int pageSize, core.String minimumImportance}) {
1108 var _url = null; 1114 var _url = null;
1109 var _queryParams = new core.Map(); 1115 var _queryParams = new core.Map();
1110 var _uploadMedia = null; 1116 var _uploadMedia = null;
1111 var _uploadOptions = null; 1117 var _uploadOptions = null;
1112 var _downloadOptions = commons.DownloadOptions.Metadata; 1118 var _downloadOptions = commons.DownloadOptions.Metadata;
1113 var _body = null; 1119 var _body = null;
1114 1120
1115 if (projectId == null) { 1121 if (projectId == null) {
1116 throw new core.ArgumentError("Parameter projectId is required."); 1122 throw new core.ArgumentError("Parameter projectId is required.");
1117 } 1123 }
1118 if (location == null) { 1124 if (location == null) {
1119 throw new core.ArgumentError("Parameter location is required."); 1125 throw new core.ArgumentError("Parameter location is required.");
1120 } 1126 }
1121 if (jobId == null) { 1127 if (jobId == null) {
1122 throw new core.ArgumentError("Parameter jobId is required."); 1128 throw new core.ArgumentError("Parameter jobId is required.");
1123 } 1129 }
1124 if (endTime != null) { 1130 if (endTime != null) {
1125 _queryParams["endTime"] = [endTime]; 1131 _queryParams["endTime"] = [endTime];
1126 } 1132 }
1133 if (pageToken != null) {
1134 _queryParams["pageToken"] = [pageToken];
1135 }
1127 if (startTime != null) { 1136 if (startTime != null) {
1128 _queryParams["startTime"] = [startTime]; 1137 _queryParams["startTime"] = [startTime];
1129 } 1138 }
1130 if (pageToken != null) {
1131 _queryParams["pageToken"] = [pageToken];
1132 }
1133 if (pageSize != null) { 1139 if (pageSize != null) {
1134 _queryParams["pageSize"] = ["${pageSize}"]; 1140 _queryParams["pageSize"] = ["${pageSize}"];
1135 } 1141 }
1136 if (minimumImportance != null) { 1142 if (minimumImportance != null) {
1137 _queryParams["minimumImportance"] = [minimumImportance]; 1143 _queryParams["minimumImportance"] = [minimumImportance];
1138 } 1144 }
1139 1145
1140 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca per.ecapeVariable('$jobId') + '/messages'; 1146 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca per.ecapeVariable('$jobId') + '/messages';
1141 1147
1142 var _response = _requester.request(_url, 1148 var _response = _requester.request(_url,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 var _response = _requester.request(_url, 1319 var _response = _requester.request(_url,
1314 "POST", 1320 "POST",
1315 body: _body, 1321 body: _body,
1316 queryParams: _queryParams, 1322 queryParams: _queryParams,
1317 uploadOptions: _uploadOptions, 1323 uploadOptions: _uploadOptions,
1318 uploadMedia: _uploadMedia, 1324 uploadMedia: _uploadMedia,
1319 downloadOptions: _downloadOptions); 1325 downloadOptions: _downloadOptions);
1320 return _response.then((data) => new Job.fromJson(data)); 1326 return _response.then((data) => new Job.fromJson(data));
1321 } 1327 }
1322 1328
1329 /**
1330 * Get the template associated with a template.
1331 *
1332 * Request parameters:
1333 *
1334 * [projectId] - Required. The ID of the Cloud Platform project that the job
1335 * belongs to.
1336 *
1337 * [view] - The view to retrieve. Defaults to METADATA_ONLY.
1338 * Possible string values are:
1339 * - "METADATA_ONLY" : A METADATA_ONLY.
1340 *
1341 * [gcsPath] - Required. A Cloud Storage path to the template from which to
1342 * create the job.
1343 * Must be a valid Cloud Storage URL, beginning with `gs://`.
1344 *
1345 * Completes with a [GetTemplateResponse].
1346 *
1347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1348 * error.
1349 *
1350 * If the used [http.Client] completes with an error when making a REST call,
1351 * this method will complete with the same error.
1352 */
1353 async.Future<GetTemplateResponse> get(core.String projectId, {core.String view , core.String gcsPath}) {
1354 var _url = null;
1355 var _queryParams = new core.Map();
1356 var _uploadMedia = null;
1357 var _uploadOptions = null;
1358 var _downloadOptions = commons.DownloadOptions.Metadata;
1359 var _body = null;
1360
1361 if (projectId == null) {
1362 throw new core.ArgumentError("Parameter projectId is required.");
1363 }
1364 if (view != null) {
1365 _queryParams["view"] = [view];
1366 }
1367 if (gcsPath != null) {
1368 _queryParams["gcsPath"] = [gcsPath];
1369 }
1370
1371 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/te mplates:get';
1372
1373 var _response = _requester.request(_url,
1374 "GET",
1375 body: _body,
1376 queryParams: _queryParams,
1377 uploadOptions: _uploadOptions,
1378 uploadMedia: _uploadMedia,
1379 downloadOptions: _downloadOptions);
1380 return _response.then((data) => new GetTemplateResponse.fromJson(data));
1381 }
1382
1383 /**
1384 * Launch a template.
1385 *
1386 * [request] - The metadata request object.
1387 *
1388 * Request parameters:
1389 *
1390 * [projectId] - Required. The ID of the Cloud Platform project that the job
1391 * belongs to.
1392 *
1393 * [dryRun] - Whether or not the job should actually be executed after
1394 * validating parameters. Defaults to false. Validation errors do
1395 * not cause the HTTP request to fail if true.
1396 *
1397 * [gcsPath] - Required. A Cloud Storage path to the template from which to
1398 * create
1399 * the job.
1400 * Must be valid Cloud Storage URL, beginning with 'gs://'.
1401 *
1402 * Completes with a [LaunchTemplateResponse].
1403 *
1404 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1405 * error.
1406 *
1407 * If the used [http.Client] completes with an error when making a REST call,
1408 * this method will complete with the same error.
1409 */
1410 async.Future<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, {core.bool dryRun, core.String gcsPath}) {
1411 var _url = null;
1412 var _queryParams = new core.Map();
1413 var _uploadMedia = null;
1414 var _uploadOptions = null;
1415 var _downloadOptions = commons.DownloadOptions.Metadata;
1416 var _body = null;
1417
1418 if (request != null) {
1419 _body = convert.JSON.encode((request).toJson());
1420 }
1421 if (projectId == null) {
1422 throw new core.ArgumentError("Parameter projectId is required.");
1423 }
1424 if (dryRun != null) {
1425 _queryParams["dryRun"] = ["${dryRun}"];
1426 }
1427 if (gcsPath != null) {
1428 _queryParams["gcsPath"] = [gcsPath];
1429 }
1430
1431 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/te mplates:launch';
1432
1433 var _response = _requester.request(_url,
1434 "POST",
1435 body: _body,
1436 queryParams: _queryParams,
1437 uploadOptions: _uploadOptions,
1438 uploadMedia: _uploadMedia,
1439 downloadOptions: _downloadOptions);
1440 return _response.then((data) => new LaunchTemplateResponse.fromJson(data));
1441 }
1442
1323 } 1443 }
1324 1444
1325 1445
1326 1446
1327 /** 1447 /**
1328 * Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest. 1448 * Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest.
1329 */ 1449 */
1330 class ApproximateProgress { 1450 class ApproximateProgress {
1331 /** Obsolete. */ 1451 /** Obsolete. */
1332 core.double percentComplete; 1452 core.double percentComplete;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 if (timestamp != null) { 1676 if (timestamp != null) {
1557 _json["timestamp"] = timestamp; 1677 _json["timestamp"] = timestamp;
1558 } 1678 }
1559 if (totalMs != null) { 1679 if (totalMs != null) {
1560 _json["totalMs"] = totalMs; 1680 _json["totalMs"] = totalMs;
1561 } 1681 }
1562 return _json; 1682 return _json;
1563 } 1683 }
1564 } 1684 }
1565 1685
1686 /**
1687 * Description of an interstitial value between transforms in an execution
1688 * stage.
1689 */
1690 class ComponentSource {
1691 /** Dataflow service generated name for this source. */
1692 core.String name;
1693 /**
1694 * User name for the original user transform or collection with which this
1695 * source is most closely associated.
1696 */
1697 core.String originalTransformOrCollection;
1698 /**
1699 * Human-readable name for this transform; may be user or system generated.
1700 */
1701 core.String userName;
1702
1703 ComponentSource();
1704
1705 ComponentSource.fromJson(core.Map _json) {
1706 if (_json.containsKey("name")) {
1707 name = _json["name"];
1708 }
1709 if (_json.containsKey("originalTransformOrCollection")) {
1710 originalTransformOrCollection = _json["originalTransformOrCollection"];
1711 }
1712 if (_json.containsKey("userName")) {
1713 userName = _json["userName"];
1714 }
1715 }
1716
1717 core.Map toJson() {
1718 var _json = new core.Map();
1719 if (name != null) {
1720 _json["name"] = name;
1721 }
1722 if (originalTransformOrCollection != null) {
1723 _json["originalTransformOrCollection"] = originalTransformOrCollection;
1724 }
1725 if (userName != null) {
1726 _json["userName"] = userName;
1727 }
1728 return _json;
1729 }
1730 }
1731
1732 /** Description of a transform executed as part of an execution stage. */
1733 class ComponentTransform {
1734 /** Dataflow service generated name for this source. */
1735 core.String name;
1736 /**
1737 * User name for the original user transform with which this transform is
1738 * most closely associated.
1739 */
1740 core.String originalTransform;
1741 /**
1742 * Human-readable name for this transform; may be user or system generated.
1743 */
1744 core.String userName;
1745
1746 ComponentTransform();
1747
1748 ComponentTransform.fromJson(core.Map _json) {
1749 if (_json.containsKey("name")) {
1750 name = _json["name"];
1751 }
1752 if (_json.containsKey("originalTransform")) {
1753 originalTransform = _json["originalTransform"];
1754 }
1755 if (_json.containsKey("userName")) {
1756 userName = _json["userName"];
1757 }
1758 }
1759
1760 core.Map toJson() {
1761 var _json = new core.Map();
1762 if (name != null) {
1763 _json["name"] = name;
1764 }
1765 if (originalTransform != null) {
1766 _json["originalTransform"] = originalTransform;
1767 }
1768 if (userName != null) {
1769 _json["userName"] = userName;
1770 }
1771 return _json;
1772 }
1773 }
1774
1566 /** All configuration data for a particular Computation. */ 1775 /** All configuration data for a particular Computation. */
1567 class ComputationTopology { 1776 class ComputationTopology {
1568 /** The ID of the computation. */ 1777 /** The ID of the computation. */
1569 core.String computationId; 1778 core.String computationId;
1570 /** The inputs to the computation. */ 1779 /** The inputs to the computation. */
1571 core.List<StreamLocation> inputs; 1780 core.List<StreamLocation> inputs;
1572 /** The key ranges processed by the computation. */ 1781 /** The key ranges processed by the computation. */
1573 core.List<KeyRangeLocation> keyRanges; 1782 core.List<KeyRangeLocation> keyRanges;
1574 /** The outputs from the computation. */ 1783 /** The outputs from the computation. */
1575 core.List<StreamLocation> outputs; 1784 core.List<StreamLocation> outputs;
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 if (mountPoint != null) { 2433 if (mountPoint != null) {
2225 _json["mountPoint"] = mountPoint; 2434 _json["mountPoint"] = mountPoint;
2226 } 2435 }
2227 if (sizeGb != null) { 2436 if (sizeGb != null) {
2228 _json["sizeGb"] = sizeGb; 2437 _json["sizeGb"] = sizeGb;
2229 } 2438 }
2230 return _json; 2439 return _json;
2231 } 2440 }
2232 } 2441 }
2233 2442
2443 /** Data provided with a pipeline or transform to provide descriptive info. */
2444 class DisplayData {
2445 /** Contains value if the data is of a boolean type. */
2446 core.bool boolValue;
2447 /** Contains value if the data is of duration type. */
2448 core.String durationValue;
2449 /** Contains value if the data is of float type. */
2450 core.double floatValue;
2451 /** Contains value if the data is of int64 type. */
2452 core.String int64Value;
2453 /** Contains value if the data is of java class type. */
2454 core.String javaClassValue;
2455 /**
2456 * The key identifying the display data.
2457 * This is intended to be used as a label for the display data
2458 * when viewed in a dax monitoring system.
2459 */
2460 core.String key;
2461 /** An optional label to display in a dax UI for the element. */
2462 core.String label;
2463 /**
2464 * The namespace for the key. This is usually a class name or programming
2465 * language namespace (i.e. python module) which defines the display data.
2466 * This allows a dax monitoring system to specially handle the data
2467 * and perform custom rendering.
2468 */
2469 core.String namespace;
2470 /**
2471 * A possible additional shorter value to display.
2472 * For example a java_class_name_value of com.mypackage.MyDoFn
2473 * will be stored with MyDoFn as the short_str_value and
2474 * com.mypackage.MyDoFn as the java_class_name value.
2475 * short_str_value can be displayed and java_class_name_value
2476 * will be displayed as a tooltip.
2477 */
2478 core.String shortStrValue;
2479 /** Contains value if the data is of string type. */
2480 core.String strValue;
2481 /** Contains value if the data is of timestamp type. */
2482 core.String timestampValue;
2483 /** An optional full URL. */
2484 core.String url;
2485
2486 DisplayData();
2487
2488 DisplayData.fromJson(core.Map _json) {
2489 if (_json.containsKey("boolValue")) {
2490 boolValue = _json["boolValue"];
2491 }
2492 if (_json.containsKey("durationValue")) {
2493 durationValue = _json["durationValue"];
2494 }
2495 if (_json.containsKey("floatValue")) {
2496 floatValue = _json["floatValue"];
2497 }
2498 if (_json.containsKey("int64Value")) {
2499 int64Value = _json["int64Value"];
2500 }
2501 if (_json.containsKey("javaClassValue")) {
2502 javaClassValue = _json["javaClassValue"];
2503 }
2504 if (_json.containsKey("key")) {
2505 key = _json["key"];
2506 }
2507 if (_json.containsKey("label")) {
2508 label = _json["label"];
2509 }
2510 if (_json.containsKey("namespace")) {
2511 namespace = _json["namespace"];
2512 }
2513 if (_json.containsKey("shortStrValue")) {
2514 shortStrValue = _json["shortStrValue"];
2515 }
2516 if (_json.containsKey("strValue")) {
2517 strValue = _json["strValue"];
2518 }
2519 if (_json.containsKey("timestampValue")) {
2520 timestampValue = _json["timestampValue"];
2521 }
2522 if (_json.containsKey("url")) {
2523 url = _json["url"];
2524 }
2525 }
2526
2527 core.Map toJson() {
2528 var _json = new core.Map();
2529 if (boolValue != null) {
2530 _json["boolValue"] = boolValue;
2531 }
2532 if (durationValue != null) {
2533 _json["durationValue"] = durationValue;
2534 }
2535 if (floatValue != null) {
2536 _json["floatValue"] = floatValue;
2537 }
2538 if (int64Value != null) {
2539 _json["int64Value"] = int64Value;
2540 }
2541 if (javaClassValue != null) {
2542 _json["javaClassValue"] = javaClassValue;
2543 }
2544 if (key != null) {
2545 _json["key"] = key;
2546 }
2547 if (label != null) {
2548 _json["label"] = label;
2549 }
2550 if (namespace != null) {
2551 _json["namespace"] = namespace;
2552 }
2553 if (shortStrValue != null) {
2554 _json["shortStrValue"] = shortStrValue;
2555 }
2556 if (strValue != null) {
2557 _json["strValue"] = strValue;
2558 }
2559 if (timestampValue != null) {
2560 _json["timestampValue"] = timestampValue;
2561 }
2562 if (url != null) {
2563 _json["url"] = url;
2564 }
2565 return _json;
2566 }
2567 }
2568
2234 /** A metric value representing a distribution. */ 2569 /** A metric value representing a distribution. */
2235 class DistributionUpdate { 2570 class DistributionUpdate {
2236 /** The count of the number of elements present in the distribution. */ 2571 /** The count of the number of elements present in the distribution. */
2237 SplitInt64 count; 2572 SplitInt64 count;
2238 /** The maximum value present in the distribution. */ 2573 /** The maximum value present in the distribution. */
2239 SplitInt64 max; 2574 SplitInt64 max;
2240 /** The minimum value present in the distribution. */ 2575 /** The minimum value present in the distribution. */
2241 SplitInt64 min; 2576 SplitInt64 min;
2242 /** 2577 /**
2243 * Use an int64 since we'd prefer the added precision. If overflow is a common 2578 * Use an int64 since we'd prefer the added precision. If overflow is a common
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 _json["userAgent"] = userAgent; 2803 _json["userAgent"] = userAgent;
2469 } 2804 }
2470 if (version != null) { 2805 if (version != null) {
2471 _json["version"] = version; 2806 _json["version"] = version;
2472 } 2807 }
2473 if (workerPools != null) { 2808 if (workerPools != null) {
2474 _json["workerPools"] = workerPools.map((value) => (value).toJson()).toList (); 2809 _json["workerPools"] = workerPools.map((value) => (value).toJson()).toList ();
2475 } 2810 }
2476 return _json; 2811 return _json;
2477 } 2812 }
2813 }
2814
2815 /**
2816 * Description of the composing transforms, names/ids, and input/outputs of a
2817 * stage of execution. Some composing transforms and sources may have been
2818 * generated by the Dataflow service during execution planning.
2819 */
2820 class ExecutionStageSummary {
2821 /**
2822 * Collections produced and consumed by component transforms of this stage.
2823 */
2824 core.List<ComponentSource> componentSource;
2825 /** Transforms that comprise this execution stage. */
2826 core.List<ComponentTransform> componentTransform;
2827 /** Dataflow service generated id for this stage. */
2828 core.String id;
2829 /** Input sources for this stage. */
2830 core.List<StageSource> inputSource;
2831 /**
2832 * Type of tranform this stage is executing.
2833 * Possible string values are:
2834 * - "UNKNOWN_KIND" : Unrecognized transform type.
2835 * - "PAR_DO_KIND" : ParDo transform.
2836 * - "GROUP_BY_KEY_KIND" : Group By Key transform.
2837 * - "FLATTEN_KIND" : Flatten transform.
2838 * - "READ_KIND" : Read transform.
2839 * - "WRITE_KIND" : Write transform.
2840 * - "CONSTANT_KIND" : Constructs from a constant value, such as with
2841 * Create.of.
2842 * - "SINGLETON_KIND" : Creates a Singleton view of a collection.
2843 * - "SHUFFLE_KIND" : Opening or closing a shuffle session, often as part of a
2844 * GroupByKey.
2845 */
2846 core.String kind;
2847 /** Dataflow service generated name for this stage. */
2848 core.String name;
2849 /** Output sources for this stage. */
2850 core.List<StageSource> outputSource;
2851
2852 ExecutionStageSummary();
2853
2854 ExecutionStageSummary.fromJson(core.Map _json) {
2855 if (_json.containsKey("componentSource")) {
2856 componentSource = _json["componentSource"].map((value) => new ComponentSou rce.fromJson(value)).toList();
2857 }
2858 if (_json.containsKey("componentTransform")) {
2859 componentTransform = _json["componentTransform"].map((value) => new Compon entTransform.fromJson(value)).toList();
2860 }
2861 if (_json.containsKey("id")) {
2862 id = _json["id"];
2863 }
2864 if (_json.containsKey("inputSource")) {
2865 inputSource = _json["inputSource"].map((value) => new StageSource.fromJson (value)).toList();
2866 }
2867 if (_json.containsKey("kind")) {
2868 kind = _json["kind"];
2869 }
2870 if (_json.containsKey("name")) {
2871 name = _json["name"];
2872 }
2873 if (_json.containsKey("outputSource")) {
2874 outputSource = _json["outputSource"].map((value) => new StageSource.fromJs on(value)).toList();
2875 }
2876 }
2877
2878 core.Map toJson() {
2879 var _json = new core.Map();
2880 if (componentSource != null) {
2881 _json["componentSource"] = componentSource.map((value) => (value).toJson() ).toList();
2882 }
2883 if (componentTransform != null) {
2884 _json["componentTransform"] = componentTransform.map((value) => (value).to Json()).toList();
2885 }
2886 if (id != null) {
2887 _json["id"] = id;
2888 }
2889 if (inputSource != null) {
2890 _json["inputSource"] = inputSource.map((value) => (value).toJson()).toList ();
2891 }
2892 if (kind != null) {
2893 _json["kind"] = kind;
2894 }
2895 if (name != null) {
2896 _json["name"] = name;
2897 }
2898 if (outputSource != null) {
2899 _json["outputSource"] = outputSource.map((value) => (value).toJson()).toLi st();
2900 }
2901 return _json;
2902 }
2478 } 2903 }
2479 2904
2480 /** Indicates which location failed to respond to a request for data. */ 2905 /** Indicates which location failed to respond to a request for data. */
2481 class FailedLocation { 2906 class FailedLocation {
2482 /** The name of the failed location. */ 2907 /** The name of the failed location. */
2483 core.String name; 2908 core.String name;
2484 2909
2485 FailedLocation(); 2910 FailedLocation();
2486 2911
2487 FailedLocation.fromJson(core.Map _json) { 2912 FailedLocation.fromJson(core.Map _json) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 3048
2624 core.Map toJson() { 3049 core.Map toJson() {
2625 var _json = new core.Map(); 3050 var _json = new core.Map();
2626 if (config != null) { 3051 if (config != null) {
2627 _json["config"] = config; 3052 _json["config"] = config;
2628 } 3053 }
2629 return _json; 3054 return _json;
2630 } 3055 }
2631 } 3056 }
2632 3057
3058 /** The response to a GetTemplate request. */
3059 class GetTemplateResponse {
3060 /**
3061 * The template metadata describing the template name, available
3062 * parameters, etc.
3063 */
3064 TemplateMetadata metadata;
3065 /**
3066 * The status of the get template request. Any problems with the
3067 * request will be indicated in the error_details.
3068 */
3069 Status status;
3070
3071 GetTemplateResponse();
3072
3073 GetTemplateResponse.fromJson(core.Map _json) {
3074 if (_json.containsKey("metadata")) {
3075 metadata = new TemplateMetadata.fromJson(_json["metadata"]);
3076 }
3077 if (_json.containsKey("status")) {
3078 status = new Status.fromJson(_json["status"]);
3079 }
3080 }
3081
3082 core.Map toJson() {
3083 var _json = new core.Map();
3084 if (metadata != null) {
3085 _json["metadata"] = (metadata).toJson();
3086 }
3087 if (status != null) {
3088 _json["status"] = (status).toJson();
3089 }
3090 return _json;
3091 }
3092 }
3093
2633 /** 3094 /**
2634 * An input of an instruction, as a reference to an output of a 3095 * An input of an instruction, as a reference to an output of a
2635 * producer instruction. 3096 * producer instruction.
2636 */ 3097 */
2637 class InstructionInput { 3098 class InstructionInput {
2638 /** The output index (origin zero) within the producer. */ 3099 /** The output index (origin zero) within the producer. */
2639 core.int outputNum; 3100 core.int outputNum;
2640 /** 3101 /**
2641 * The index (origin zero) of the parallel instruction that produces 3102 * The index (origin zero) of the parallel instruction that produces
2642 * the output to be consumed by this input. This index is relative 3103 * the output to be consumed by this input. This index is relative
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2867 * A drained job terminated by stopping pulling from its input sources and 3328 * A drained job terminated by stopping pulling from its input sources and
2868 * processing any data that remained in-flight when draining was requested. 3329 * processing any data that remained in-flight when draining was requested.
2869 * This state is a terminal state, may only be set by the Cloud Dataflow 3330 * This state is a terminal state, may only be set by the Cloud Dataflow
2870 * service, and only as a transition from `JOB_STATE_DRAINING`. 3331 * service, and only as a transition from `JOB_STATE_DRAINING`.
2871 */ 3332 */
2872 core.String currentState; 3333 core.String currentState;
2873 /** The timestamp associated with the current state. */ 3334 /** The timestamp associated with the current state. */
2874 core.String currentStateTime; 3335 core.String currentStateTime;
2875 /** The environment for the job. */ 3336 /** The environment for the job. */
2876 Environment environment; 3337 Environment environment;
2877 /** Information about how the Cloud Dataflow service will run the job. */ 3338 /** Deprecated. */
2878 JobExecutionInfo executionInfo; 3339 JobExecutionInfo executionInfo;
2879 /** 3340 /**
2880 * The unique ID of this job. 3341 * The unique ID of this job.
2881 * 3342 *
2882 * This field is set by the Cloud Dataflow service when the Job is 3343 * This field is set by the Cloud Dataflow service when the Job is
2883 * created, and is immutable for the life of the job. 3344 * created, and is immutable for the life of the job.
2884 */ 3345 */
2885 core.String id; 3346 core.String id;
2886 /** 3347 /**
2887 * User-defined labels for this job. 3348 * User-defined labels for this job.
(...skipping 14 matching lines...) Expand all
2902 * 3363 *
2903 * Only one Job with a given name may exist in a project at any 3364 * Only one Job with a given name may exist in a project at any
2904 * given time. If a caller attempts to create a Job with the same 3365 * given time. If a caller attempts to create a Job with the same
2905 * name as an already-existing Job, the attempt returns the 3366 * name as an already-existing Job, the attempt returns the
2906 * existing Job. 3367 * existing Job.
2907 * 3368 *
2908 * The name must match the regular expression 3369 * The name must match the regular expression
2909 * `[a-z]([-a-z0-9]{0,38}[a-z0-9])?` 3370 * `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
2910 */ 3371 */
2911 core.String name; 3372 core.String name;
3373 /**
3374 * Preliminary field: The format of this data may change at any time.
3375 * A description of the user pipeline and stages through which it is executed.
3376 * Created by Cloud Dataflow service. Only retrieved with
3377 * JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
3378 */
3379 PipelineDescription pipelineDescription;
2912 /** The ID of the Cloud Platform project that the job belongs to. */ 3380 /** The ID of the Cloud Platform project that the job belongs to. */
2913 core.String projectId; 3381 core.String projectId;
2914 /** 3382 /**
2915 * If this job is an update of an existing job, this field is the job ID 3383 * If this job is an update of an existing job, this field is the job ID
2916 * of the job it replaced. 3384 * of the job it replaced.
2917 * 3385 *
2918 * When sending a `CreateJobRequest`, you can update a job by specifying it 3386 * When sending a `CreateJobRequest`, you can update a job by specifying it
2919 * here. The job named here is stopped, and its intermediate state is 3387 * here. The job named here is stopped, and its intermediate state is
2920 * transferred to this job. 3388 * transferred to this job.
2921 */ 3389 */
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
3036 } 3504 }
3037 if (_json.containsKey("labels")) { 3505 if (_json.containsKey("labels")) {
3038 labels = _json["labels"]; 3506 labels = _json["labels"];
3039 } 3507 }
3040 if (_json.containsKey("location")) { 3508 if (_json.containsKey("location")) {
3041 location = _json["location"]; 3509 location = _json["location"];
3042 } 3510 }
3043 if (_json.containsKey("name")) { 3511 if (_json.containsKey("name")) {
3044 name = _json["name"]; 3512 name = _json["name"];
3045 } 3513 }
3514 if (_json.containsKey("pipelineDescription")) {
3515 pipelineDescription = new PipelineDescription.fromJson(_json["pipelineDesc ription"]);
3516 }
3046 if (_json.containsKey("projectId")) { 3517 if (_json.containsKey("projectId")) {
3047 projectId = _json["projectId"]; 3518 projectId = _json["projectId"];
3048 } 3519 }
3049 if (_json.containsKey("replaceJobId")) { 3520 if (_json.containsKey("replaceJobId")) {
3050 replaceJobId = _json["replaceJobId"]; 3521 replaceJobId = _json["replaceJobId"];
3051 } 3522 }
3052 if (_json.containsKey("replacedByJobId")) { 3523 if (_json.containsKey("replacedByJobId")) {
3053 replacedByJobId = _json["replacedByJobId"]; 3524 replacedByJobId = _json["replacedByJobId"];
3054 } 3525 }
3055 if (_json.containsKey("requestedState")) { 3526 if (_json.containsKey("requestedState")) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3094 } 3565 }
3095 if (labels != null) { 3566 if (labels != null) {
3096 _json["labels"] = labels; 3567 _json["labels"] = labels;
3097 } 3568 }
3098 if (location != null) { 3569 if (location != null) {
3099 _json["location"] = location; 3570 _json["location"] = location;
3100 } 3571 }
3101 if (name != null) { 3572 if (name != null) {
3102 _json["name"] = name; 3573 _json["name"] = name;
3103 } 3574 }
3575 if (pipelineDescription != null) {
3576 _json["pipelineDescription"] = (pipelineDescription).toJson();
3577 }
3104 if (projectId != null) { 3578 if (projectId != null) {
3105 _json["projectId"] = projectId; 3579 _json["projectId"] = projectId;
3106 } 3580 }
3107 if (replaceJobId != null) { 3581 if (replaceJobId != null) {
3108 _json["replaceJobId"] = replaceJobId; 3582 _json["replaceJobId"] = replaceJobId;
3109 } 3583 }
3110 if (replacedByJobId != null) { 3584 if (replacedByJobId != null) {
3111 _json["replacedByJobId"] = replacedByJobId; 3585 _json["replacedByJobId"] = replacedByJobId;
3112 } 3586 }
3113 if (requestedState != null) { 3587 if (requestedState != null) {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
3413 if (persistentDirectory != null) { 3887 if (persistentDirectory != null) {
3414 _json["persistentDirectory"] = persistentDirectory; 3888 _json["persistentDirectory"] = persistentDirectory;
3415 } 3889 }
3416 if (start != null) { 3890 if (start != null) {
3417 _json["start"] = start; 3891 _json["start"] = start;
3418 } 3892 }
3419 return _json; 3893 return _json;
3420 } 3894 }
3421 } 3895 }
3422 3896
3897 /** Parameters to provide to the template being launched. */
3898 class LaunchTemplateParameters {
3899 /** The runtime environment for the job. */
3900 RuntimeEnvironment environment;
3901 /** Required. The job name to use for the created job. */
3902 core.String jobName;
3903 /** The runtime parameters to pass to the job. */
3904 core.Map<core.String, core.String> parameters;
3905
3906 LaunchTemplateParameters();
3907
3908 LaunchTemplateParameters.fromJson(core.Map _json) {
3909 if (_json.containsKey("environment")) {
3910 environment = new RuntimeEnvironment.fromJson(_json["environment"]);
3911 }
3912 if (_json.containsKey("jobName")) {
3913 jobName = _json["jobName"];
3914 }
3915 if (_json.containsKey("parameters")) {
3916 parameters = _json["parameters"];
3917 }
3918 }
3919
3920 core.Map toJson() {
3921 var _json = new core.Map();
3922 if (environment != null) {
3923 _json["environment"] = (environment).toJson();
3924 }
3925 if (jobName != null) {
3926 _json["jobName"] = jobName;
3927 }
3928 if (parameters != null) {
3929 _json["parameters"] = parameters;
3930 }
3931 return _json;
3932 }
3933 }
3934
3935 /** Response to the request to launch a template. */
3936 class LaunchTemplateResponse {
3937 /**
3938 * The job that was launched, if the request was not a dry run and
3939 * the job was successfully launched.
3940 */
3941 Job job;
3942 /**
3943 * The status of the launch template request. Any problems with the request
3944 * will be indicated in the error_details.
3945 */
3946 Status status;
3947
3948 LaunchTemplateResponse();
3949
3950 LaunchTemplateResponse.fromJson(core.Map _json) {
3951 if (_json.containsKey("job")) {
3952 job = new Job.fromJson(_json["job"]);
3953 }
3954 if (_json.containsKey("status")) {
3955 status = new Status.fromJson(_json["status"]);
3956 }
3957 }
3958
3959 core.Map toJson() {
3960 var _json = new core.Map();
3961 if (job != null) {
3962 _json["job"] = (job).toJson();
3963 }
3964 if (status != null) {
3965 _json["status"] = (status).toJson();
3966 }
3967 return _json;
3968 }
3969 }
3970
3423 /** Request to lease WorkItems. */ 3971 /** Request to lease WorkItems. */
3424 class LeaseWorkItemRequest { 3972 class LeaseWorkItemRequest {
3425 /** The current timestamp at the worker. */ 3973 /** The current timestamp at the worker. */
3426 core.String currentWorkerTime; 3974 core.String currentWorkerTime;
3427 /** The location which contains the WorkItem's job. */ 3975 /** The location which contains the WorkItem's job. */
3428 core.String location; 3976 core.String location;
3429 /** The initial lease period. */ 3977 /** The initial lease period. */
3430 core.String requestedLeaseDuration; 3978 core.String requestedLeaseDuration;
3431 /** Filter for WorkItem type. */ 3979 /** Filter for WorkItem type. */
3432 core.List<core.String> workItemTypes; 3980 core.List<core.String> workItemTypes;
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
4147 if (systemName != null) { 4695 if (systemName != null) {
4148 _json["systemName"] = systemName; 4696 _json["systemName"] = systemName;
4149 } 4697 }
4150 if (write != null) { 4698 if (write != null) {
4151 _json["write"] = (write).toJson(); 4699 _json["write"] = (write).toJson();
4152 } 4700 }
4153 return _json; 4701 return _json;
4154 } 4702 }
4155 } 4703 }
4156 4704
4705 /** Metadata for a specific parameter. */
4706 class ParameterMetadata {
4707 /** Required. The help text to display for the parameter. */
4708 core.String helpText;
4709 /** Optional. Whether the parameter is optional. Defaults to false. */
4710 core.bool isOptional;
4711 /** Required. The label to display for the parameter. */
4712 core.String label;
4713 /** Required. The name of the parameter. */
4714 core.String name;
4715 /** Optional. Regexes that the parameter must match. */
4716 core.List<core.String> regexes;
4717
4718 ParameterMetadata();
4719
4720 ParameterMetadata.fromJson(core.Map _json) {
4721 if (_json.containsKey("helpText")) {
4722 helpText = _json["helpText"];
4723 }
4724 if (_json.containsKey("isOptional")) {
4725 isOptional = _json["isOptional"];
4726 }
4727 if (_json.containsKey("label")) {
4728 label = _json["label"];
4729 }
4730 if (_json.containsKey("name")) {
4731 name = _json["name"];
4732 }
4733 if (_json.containsKey("regexes")) {
4734 regexes = _json["regexes"];
4735 }
4736 }
4737
4738 core.Map toJson() {
4739 var _json = new core.Map();
4740 if (helpText != null) {
4741 _json["helpText"] = helpText;
4742 }
4743 if (isOptional != null) {
4744 _json["isOptional"] = isOptional;
4745 }
4746 if (label != null) {
4747 _json["label"] = label;
4748 }
4749 if (name != null) {
4750 _json["name"] = name;
4751 }
4752 if (regexes != null) {
4753 _json["regexes"] = regexes;
4754 }
4755 return _json;
4756 }
4757 }
4758
4157 /** 4759 /**
4158 * An instruction that does a partial group-by-key. 4760 * An instruction that does a partial group-by-key.
4159 * One input and one output. 4761 * One input and one output.
4160 */ 4762 */
4161 class PartialGroupByKeyInstruction { 4763 class PartialGroupByKeyInstruction {
4162 /** Describes the input to the partial group-by-key instruction. */ 4764 /** Describes the input to the partial group-by-key instruction. */
4163 InstructionInput input; 4765 InstructionInput input;
4164 /** 4766 /**
4165 * The codec to use for interpreting an element in the input PTable. 4767 * The codec to use for interpreting an element in the input PTable.
4166 * 4768 *
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
4229 _json["sideInputs"] = sideInputs.map((value) => (value).toJson()).toList() ; 4831 _json["sideInputs"] = sideInputs.map((value) => (value).toJson()).toList() ;
4230 } 4832 }
4231 if (valueCombiningFn != null) { 4833 if (valueCombiningFn != null) {
4232 _json["valueCombiningFn"] = valueCombiningFn; 4834 _json["valueCombiningFn"] = valueCombiningFn;
4233 } 4835 }
4234 return _json; 4836 return _json;
4235 } 4837 }
4236 } 4838 }
4237 4839
4238 /** 4840 /**
4841 * A descriptive representation of submitted pipeline as well as the executed
4842 * form. This data is provided by the Dataflow service for ease of visualizing
4843 * the pipeline and interpretting Dataflow provided metrics.
4844 */
4845 class PipelineDescription {
4846 /** Pipeline level display data. */
4847 core.List<DisplayData> displayData;
4848 /** Description of each stage of execution of the pipeline. */
4849 core.List<ExecutionStageSummary> executionPipelineStage;
4850 /**
4851 * Description of each transform in the pipeline and collections between them.
4852 */
4853 core.List<TransformSummary> originalPipelineTransform;
4854
4855 PipelineDescription();
4856
4857 PipelineDescription.fromJson(core.Map _json) {
4858 if (_json.containsKey("displayData")) {
4859 displayData = _json["displayData"].map((value) => new DisplayData.fromJson (value)).toList();
4860 }
4861 if (_json.containsKey("executionPipelineStage")) {
4862 executionPipelineStage = _json["executionPipelineStage"].map((value) => ne w ExecutionStageSummary.fromJson(value)).toList();
4863 }
4864 if (_json.containsKey("originalPipelineTransform")) {
4865 originalPipelineTransform = _json["originalPipelineTransform"].map((value) => new TransformSummary.fromJson(value)).toList();
4866 }
4867 }
4868
4869 core.Map toJson() {
4870 var _json = new core.Map();
4871 if (displayData != null) {
4872 _json["displayData"] = displayData.map((value) => (value).toJson()).toList ();
4873 }
4874 if (executionPipelineStage != null) {
4875 _json["executionPipelineStage"] = executionPipelineStage.map((value) => (v alue).toJson()).toList();
4876 }
4877 if (originalPipelineTransform != null) {
4878 _json["originalPipelineTransform"] = originalPipelineTransform.map((value) => (value).toJson()).toList();
4879 }
4880 return _json;
4881 }
4882 }
4883
4884 /**
4239 * Position defines a position within a collection of data. The value 4885 * Position defines a position within a collection of data. The value
4240 * can be either the end position, a key (used with ordered 4886 * can be either the end position, a key (used with ordered
4241 * collections), a byte offset, or a record index. 4887 * collections), a byte offset, or a record index.
4242 */ 4888 */
4243 class Position { 4889 class Position {
4244 /** Position is a byte offset. */ 4890 /** Position is a byte offset. */
4245 core.String byteOffset; 4891 core.String byteOffset;
4246 /** CloudPosition is a concat position. */ 4892 /** CloudPosition is a concat position. */
4247 ConcatPosition concatPosition; 4893 ConcatPosition concatPosition;
4248 /** 4894 /**
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
5485 if (highBits != null) { 6131 if (highBits != null) {
5486 _json["highBits"] = highBits; 6132 _json["highBits"] = highBits;
5487 } 6133 }
5488 if (lowBits != null) { 6134 if (lowBits != null) {
5489 _json["lowBits"] = lowBits; 6135 _json["lowBits"] = lowBits;
5490 } 6136 }
5491 return _json; 6137 return _json;
5492 } 6138 }
5493 } 6139 }
5494 6140
6141 /** Description of an input or output of an execution stage. */
6142 class StageSource {
6143 /** Dataflow service generated name for this source. */
6144 core.String name;
6145 /**
6146 * User name for the original user transform or collection with which this
6147 * source is most closely associated.
6148 */
6149 core.String originalTransformOrCollection;
6150 /** Size of the source, if measurable. */
6151 core.String sizeBytes;
6152 /** Human-readable name for this source; may be user or system generated. */
6153 core.String userName;
6154
6155 StageSource();
6156
6157 StageSource.fromJson(core.Map _json) {
6158 if (_json.containsKey("name")) {
6159 name = _json["name"];
6160 }
6161 if (_json.containsKey("originalTransformOrCollection")) {
6162 originalTransformOrCollection = _json["originalTransformOrCollection"];
6163 }
6164 if (_json.containsKey("sizeBytes")) {
6165 sizeBytes = _json["sizeBytes"];
6166 }
6167 if (_json.containsKey("userName")) {
6168 userName = _json["userName"];
6169 }
6170 }
6171
6172 core.Map toJson() {
6173 var _json = new core.Map();
6174 if (name != null) {
6175 _json["name"] = name;
6176 }
6177 if (originalTransformOrCollection != null) {
6178 _json["originalTransformOrCollection"] = originalTransformOrCollection;
6179 }
6180 if (sizeBytes != null) {
6181 _json["sizeBytes"] = sizeBytes;
6182 }
6183 if (userName != null) {
6184 _json["userName"] = userName;
6185 }
6186 return _json;
6187 }
6188 }
6189
5495 /** State family configuration. */ 6190 /** State family configuration. */
5496 class StateFamilyConfig { 6191 class StateFamilyConfig {
5497 /** If true, this family corresponds to a read operation. */ 6192 /** If true, this family corresponds to a read operation. */
5498 core.bool isRead; 6193 core.bool isRead;
5499 /** The state family value. */ 6194 /** The state family value. */
5500 core.String stateFamily; 6195 core.String stateFamily;
5501 6196
5502 StateFamilyConfig(); 6197 StateFamilyConfig();
5503 6198
5504 StateFamilyConfig.fromJson(core.Map _json) { 6199 StateFamilyConfig.fromJson(core.Map _json) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
5656 /** The kind of step in the Cloud Dataflow job. */ 6351 /** The kind of step in the Cloud Dataflow job. */
5657 core.String kind; 6352 core.String kind;
5658 /** 6353 /**
5659 * The name that identifies the step. This must be unique for each 6354 * The name that identifies the step. This must be unique for each
5660 * step with respect to all other steps in the Cloud Dataflow job. 6355 * step with respect to all other steps in the Cloud Dataflow job.
5661 */ 6356 */
5662 core.String name; 6357 core.String name;
5663 /** 6358 /**
5664 * Named properties associated with the step. Each kind of 6359 * Named properties associated with the step. Each kind of
5665 * predefined step has its own required set of properties. 6360 * predefined step has its own required set of properties.
6361 * Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
5666 * 6362 *
5667 * The values for Object must be JSON objects. It can consist of `num`, 6363 * The values for Object must be JSON objects. It can consist of `num`,
5668 * `String`, `bool` and `null` as well as `Map` and `List` values. 6364 * `String`, `bool` and `null` as well as `Map` and `List` values.
5669 */ 6365 */
5670 core.Map<core.String, core.Object> properties; 6366 core.Map<core.String, core.Object> properties;
5671 6367
5672 Step(); 6368 Step();
5673 6369
5674 Step.fromJson(core.Map _json) { 6370 Step.fromJson(core.Map _json) {
5675 if (_json.containsKey("kind")) { 6371 if (_json.containsKey("kind")) {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
6244 if (vmId != null) { 6940 if (vmId != null) {
6245 _json["vmId"] = vmId; 6941 _json["vmId"] = vmId;
6246 } 6942 }
6247 if (workflowFileName != null) { 6943 if (workflowFileName != null) {
6248 _json["workflowFileName"] = workflowFileName; 6944 _json["workflowFileName"] = workflowFileName;
6249 } 6945 }
6250 return _json; 6946 return _json;
6251 } 6947 }
6252 } 6948 }
6253 6949
6950 /** Metadata describing a template. */
6951 class TemplateMetadata {
6952 /**
6953 * If true, will bypass the validation that the temp directory is
6954 * writable. This should only be used with templates for pipelines
6955 * that are guaranteed not to need to write to the temp directory,
6956 * which is subject to change based on the optimizer.
6957 */
6958 core.bool bypassTempDirValidation;
6959 /** Optional. A description of the template. */
6960 core.String description;
6961 /** Required. The name of the template. */
6962 core.String name;
6963 /** The parameters for the template. */
6964 core.List<ParameterMetadata> parameters;
6965
6966 TemplateMetadata();
6967
6968 TemplateMetadata.fromJson(core.Map _json) {
6969 if (_json.containsKey("bypassTempDirValidation")) {
6970 bypassTempDirValidation = _json["bypassTempDirValidation"];
6971 }
6972 if (_json.containsKey("description")) {
6973 description = _json["description"];
6974 }
6975 if (_json.containsKey("name")) {
6976 name = _json["name"];
6977 }
6978 if (_json.containsKey("parameters")) {
6979 parameters = _json["parameters"].map((value) => new ParameterMetadata.from Json(value)).toList();
6980 }
6981 }
6982
6983 core.Map toJson() {
6984 var _json = new core.Map();
6985 if (bypassTempDirValidation != null) {
6986 _json["bypassTempDirValidation"] = bypassTempDirValidation;
6987 }
6988 if (description != null) {
6989 _json["description"] = description;
6990 }
6991 if (name != null) {
6992 _json["name"] = name;
6993 }
6994 if (parameters != null) {
6995 _json["parameters"] = parameters.map((value) => (value).toJson()).toList() ;
6996 }
6997 return _json;
6998 }
6999 }
7000
6254 /** 7001 /**
6255 * Global topology of the streaming Dataflow job, including all 7002 * Global topology of the streaming Dataflow job, including all
6256 * computations and their sharded locations. 7003 * computations and their sharded locations.
6257 */ 7004 */
6258 class TopologyConfig { 7005 class TopologyConfig {
6259 /** The computations associated with a streaming Dataflow job. */ 7006 /** The computations associated with a streaming Dataflow job. */
6260 core.List<ComputationTopology> computations; 7007 core.List<ComputationTopology> computations;
6261 /** The disks assigned to a streaming Dataflow job. */ 7008 /** The disks assigned to a streaming Dataflow job. */
6262 core.List<DataDiskAssignment> dataDiskAssignments; 7009 core.List<DataDiskAssignment> dataDiskAssignments;
6263 /** The size (in bits) of keys that will be assigned to source messages. */ 7010 /** The size (in bits) of keys that will be assigned to source messages. */
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
6301 if (persistentStateVersion != null) { 7048 if (persistentStateVersion != null) {
6302 _json["persistentStateVersion"] = persistentStateVersion; 7049 _json["persistentStateVersion"] = persistentStateVersion;
6303 } 7050 }
6304 if (userStageToComputationNameMap != null) { 7051 if (userStageToComputationNameMap != null) {
6305 _json["userStageToComputationNameMap"] = userStageToComputationNameMap; 7052 _json["userStageToComputationNameMap"] = userStageToComputationNameMap;
6306 } 7053 }
6307 return _json; 7054 return _json;
6308 } 7055 }
6309 } 7056 }
6310 7057
7058 /** Description of the type, names/ids, and input/outputs for a transform. */
7059 class TransformSummary {
7060 /** Transform-specific display data. */
7061 core.List<DisplayData> displayData;
7062 /** SDK generated id of this transform instance. */
7063 core.String id;
7064 /** User names for all collection inputs to this transform. */
7065 core.List<core.String> inputCollectionName;
7066 /**
7067 * Type of transform.
7068 * Possible string values are:
7069 * - "UNKNOWN_KIND" : Unrecognized transform type.
7070 * - "PAR_DO_KIND" : ParDo transform.
7071 * - "GROUP_BY_KEY_KIND" : Group By Key transform.
7072 * - "FLATTEN_KIND" : Flatten transform.
7073 * - "READ_KIND" : Read transform.
7074 * - "WRITE_KIND" : Write transform.
7075 * - "CONSTANT_KIND" : Constructs from a constant value, such as with
7076 * Create.of.
7077 * - "SINGLETON_KIND" : Creates a Singleton view of a collection.
7078 * - "SHUFFLE_KIND" : Opening or closing a shuffle session, often as part of a
7079 * GroupByKey.
7080 */
7081 core.String kind;
7082 /** User provided name for this transform instance. */
7083 core.String name;
7084 /** User names for all collection outputs to this transform. */
7085 core.List<core.String> outputCollectionName;
7086
7087 TransformSummary();
7088
7089 TransformSummary.fromJson(core.Map _json) {
7090 if (_json.containsKey("displayData")) {
7091 displayData = _json["displayData"].map((value) => new DisplayData.fromJson (value)).toList();
7092 }
7093 if (_json.containsKey("id")) {
7094 id = _json["id"];
7095 }
7096 if (_json.containsKey("inputCollectionName")) {
7097 inputCollectionName = _json["inputCollectionName"];
7098 }
7099 if (_json.containsKey("kind")) {
7100 kind = _json["kind"];
7101 }
7102 if (_json.containsKey("name")) {
7103 name = _json["name"];
7104 }
7105 if (_json.containsKey("outputCollectionName")) {
7106 outputCollectionName = _json["outputCollectionName"];
7107 }
7108 }
7109
7110 core.Map toJson() {
7111 var _json = new core.Map();
7112 if (displayData != null) {
7113 _json["displayData"] = displayData.map((value) => (value).toJson()).toList ();
7114 }
7115 if (id != null) {
7116 _json["id"] = id;
7117 }
7118 if (inputCollectionName != null) {
7119 _json["inputCollectionName"] = inputCollectionName;
7120 }
7121 if (kind != null) {
7122 _json["kind"] = kind;
7123 }
7124 if (name != null) {
7125 _json["name"] = name;
7126 }
7127 if (outputCollectionName != null) {
7128 _json["outputCollectionName"] = outputCollectionName;
7129 }
7130 return _json;
7131 }
7132 }
7133
6311 /** 7134 /**
6312 * WorkItem represents basic information about a WorkItem to be executed 7135 * WorkItem represents basic information about a WorkItem to be executed
6313 * in the cloud. 7136 * in the cloud.
6314 */ 7137 */
6315 class WorkItem { 7138 class WorkItem {
6316 /** Work item-specific configuration as an opaque blob. */ 7139 /** Work item-specific configuration as an opaque blob. */
6317 core.String configuration; 7140 core.String configuration;
6318 /** Identifies this WorkItem. */ 7141 /** Identifies this WorkItem. */
6319 core.String id; 7142 core.String id;
6320 /** The initial index to use when reporting the status of the WorkItem. */ 7143 /** The initial index to use when reporting the status of the WorkItem. */
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
7378 var _json = new core.Map(); 8201 var _json = new core.Map();
7379 if (input != null) { 8202 if (input != null) {
7380 _json["input"] = (input).toJson(); 8203 _json["input"] = (input).toJson();
7381 } 8204 }
7382 if (sink != null) { 8205 if (sink != null) {
7383 _json["sink"] = (sink).toJson(); 8206 _json["sink"] = (sink).toJson();
7384 } 8207 }
7385 return _json; 8208 return _json;
7386 } 8209 }
7387 } 8210 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart ('k') | generated/googleapis_beta/lib/dataproc/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698