OLD | NEW |
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.dataproc.v1beta1; | 3 library googleapis_beta.dataproc.v1beta1; |
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 * Lists operations that match the specified filter in the request. If the | 175 * Lists operations that match the specified filter in the request. If the |
176 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 176 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
177 * binding below allows API services to override the binding to use different | 177 * binding below allows API services to override the binding to use different |
178 * resource name schemes, such as users / * /operations. | 178 * resource name schemes, such as users / * /operations. |
179 * | 179 * |
180 * Request parameters: | 180 * Request parameters: |
181 * | 181 * |
182 * [name] - The name of the operation collection. | 182 * [name] - The name of the operation collection. |
183 * Value must have pattern "^operations$". | 183 * Value must have pattern "^operations$". |
184 * | 184 * |
| 185 * [filter] - The standard list filter. |
| 186 * |
185 * [pageToken] - The standard list page token. | 187 * [pageToken] - The standard list page token. |
186 * | 188 * |
187 * [pageSize] - The standard list page size. | 189 * [pageSize] - The standard list page size. |
188 * | 190 * |
189 * [filter] - The standard list filter. | |
190 * | |
191 * Completes with a [ListOperationsResponse]. | 191 * Completes with a [ListOperationsResponse]. |
192 * | 192 * |
193 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 193 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
194 * error. | 194 * error. |
195 * | 195 * |
196 * If the used [http.Client] completes with an error when making a REST call, | 196 * If the used [http.Client] completes with an error when making a REST call, |
197 * this method will complete with the same error. | 197 * this method will complete with the same error. |
198 */ | 198 */ |
199 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { | 199 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
200 var _url = null; | 200 var _url = null; |
201 var _queryParams = new core.Map(); | 201 var _queryParams = new core.Map(); |
202 var _uploadMedia = null; | 202 var _uploadMedia = null; |
203 var _uploadOptions = null; | 203 var _uploadOptions = null; |
204 var _downloadOptions = commons.DownloadOptions.Metadata; | 204 var _downloadOptions = commons.DownloadOptions.Metadata; |
205 var _body = null; | 205 var _body = null; |
206 | 206 |
207 if (name == null) { | 207 if (name == null) { |
208 throw new core.ArgumentError("Parameter name is required."); | 208 throw new core.ArgumentError("Parameter name is required."); |
209 } | 209 } |
| 210 if (filter != null) { |
| 211 _queryParams["filter"] = [filter]; |
| 212 } |
210 if (pageToken != null) { | 213 if (pageToken != null) { |
211 _queryParams["pageToken"] = [pageToken]; | 214 _queryParams["pageToken"] = [pageToken]; |
212 } | 215 } |
213 if (pageSize != null) { | 216 if (pageSize != null) { |
214 _queryParams["pageSize"] = ["${pageSize}"]; | 217 _queryParams["pageSize"] = ["${pageSize}"]; |
215 } | 218 } |
216 if (filter != null) { | |
217 _queryParams["filter"] = [filter]; | |
218 } | |
219 | 219 |
220 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 220 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
221 | 221 |
222 var _response = _requester.request(_url, | 222 var _response = _requester.request(_url, |
223 "GET", | 223 "GET", |
224 body: _body, | 224 body: _body, |
225 queryParams: _queryParams, | 225 queryParams: _queryParams, |
226 uploadOptions: _uploadOptions, | 226 uploadOptions: _uploadOptions, |
227 uploadMedia: _uploadMedia, | 227 uploadMedia: _uploadMedia, |
228 downloadOptions: _downloadOptions); | 228 downloadOptions: _downloadOptions); |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 } | 436 } |
437 | 437 |
438 /** | 438 /** |
439 * Lists all clusters in a project. | 439 * Lists all clusters in a project. |
440 * | 440 * |
441 * Request parameters: | 441 * Request parameters: |
442 * | 442 * |
443 * [projectId] - Required The ID of the Google Cloud Platform project that the | 443 * [projectId] - Required The ID of the Google Cloud Platform project that the |
444 * cluster belongs to. | 444 * cluster belongs to. |
445 * | 445 * |
| 446 * [filter] - Optional A filter constraining which clusters to list. Valid |
| 447 * filters contain label terms such as: labels.key1 = val1 AND (-labels.k2 = |
| 448 * val2 OR labels.k3 = val3) |
| 449 * |
446 * [pageToken] - The standard List page token. | 450 * [pageToken] - The standard List page token. |
447 * | 451 * |
448 * [pageSize] - The standard List page size. | 452 * [pageSize] - The standard List page size. |
449 * | 453 * |
450 * [filter] - Optional A filter constraining which clusters to list. Valid | |
451 * filters contain label terms such as: labels.key1 = val1 AND (-labels.k2 = | |
452 * val2 OR labels.k3 = val3) | |
453 * | |
454 * Completes with a [ListClustersResponse]. | 454 * Completes with a [ListClustersResponse]. |
455 * | 455 * |
456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
457 * error. | 457 * error. |
458 * | 458 * |
459 * If the used [http.Client] completes with an error when making a REST call, | 459 * If the used [http.Client] completes with an error when making a REST call, |
460 * this method will complete with the same error. | 460 * this method will complete with the same error. |
461 */ | 461 */ |
462 async.Future<ListClustersResponse> list(core.String projectId, {core.String pa
geToken, core.int pageSize, core.String filter}) { | 462 async.Future<ListClustersResponse> list(core.String projectId, {core.String fi
lter, core.String pageToken, core.int pageSize}) { |
463 var _url = null; | 463 var _url = null; |
464 var _queryParams = new core.Map(); | 464 var _queryParams = new core.Map(); |
465 var _uploadMedia = null; | 465 var _uploadMedia = null; |
466 var _uploadOptions = null; | 466 var _uploadOptions = null; |
467 var _downloadOptions = commons.DownloadOptions.Metadata; | 467 var _downloadOptions = commons.DownloadOptions.Metadata; |
468 var _body = null; | 468 var _body = null; |
469 | 469 |
470 if (projectId == null) { | 470 if (projectId == null) { |
471 throw new core.ArgumentError("Parameter projectId is required."); | 471 throw new core.ArgumentError("Parameter projectId is required."); |
472 } | 472 } |
| 473 if (filter != null) { |
| 474 _queryParams["filter"] = [filter]; |
| 475 } |
473 if (pageToken != null) { | 476 if (pageToken != null) { |
474 _queryParams["pageToken"] = [pageToken]; | 477 _queryParams["pageToken"] = [pageToken]; |
475 } | 478 } |
476 if (pageSize != null) { | 479 if (pageSize != null) { |
477 _queryParams["pageSize"] = ["${pageSize}"]; | 480 _queryParams["pageSize"] = ["${pageSize}"]; |
478 } | 481 } |
479 if (filter != null) { | |
480 _queryParams["filter"] = [filter]; | |
481 } | |
482 | 482 |
483 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '
/clusters'; | 483 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '
/clusters'; |
484 | 484 |
485 var _response = _requester.request(_url, | 485 var _response = _requester.request(_url, |
486 "GET", | 486 "GET", |
487 body: _body, | 487 body: _body, |
488 queryParams: _queryParams, | 488 queryParams: _queryParams, |
489 uploadOptions: _uploadOptions, | 489 uploadOptions: _uploadOptions, |
490 uploadMedia: _uploadMedia, | 490 uploadMedia: _uploadMedia, |
491 downloadOptions: _downloadOptions); | 491 downloadOptions: _downloadOptions); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 } | 726 } |
727 | 727 |
728 /** | 728 /** |
729 * Lists jobs in a project. | 729 * Lists jobs in a project. |
730 * | 730 * |
731 * Request parameters: | 731 * Request parameters: |
732 * | 732 * |
733 * [projectId] - Required The ID of the Google Cloud Platform project that the | 733 * [projectId] - Required The ID of the Google Cloud Platform project that the |
734 * job belongs to. | 734 * job belongs to. |
735 * | 735 * |
736 * [pageToken] - Optional The page token, returned by a previous call, to | |
737 * request the next page of results. | |
738 * | |
739 * [pageSize] - Optional The number of results to return in each response. | 736 * [pageSize] - Optional The number of results to return in each response. |
740 * | 737 * |
741 * [clusterName] - Optional If set, the returned jobs list includes only jobs | 738 * [clusterName] - Optional If set, the returned jobs list includes only jobs |
742 * that were submitted to the named cluster. | 739 * that were submitted to the named cluster. |
743 * | 740 * |
744 * [filter] - Optional A filter constraining which jobs to list. Valid filters | 741 * [filter] - Optional A filter constraining which jobs to list. Valid filters |
745 * contain job state and label terms such as: labels.key1 = val1 AND | 742 * contain job state and label terms such as: labels.key1 = val1 AND |
746 * (labels.k2 = val2 OR labels.k3 = val3) | 743 * (labels.k2 = val2 OR labels.k3 = val3) |
747 * | 744 * |
748 * [jobStateMatcher] - Optional Specifies enumerated categories of jobs to | 745 * [jobStateMatcher] - Optional Specifies enumerated categories of jobs to |
749 * list. | 746 * list. |
750 * Possible string values are: | 747 * Possible string values are: |
751 * - "ALL" : A ALL. | 748 * - "ALL" : A ALL. |
752 * - "ACTIVE" : A ACTIVE. | 749 * - "ACTIVE" : A ACTIVE. |
753 * - "NON_ACTIVE" : A NON_ACTIVE. | 750 * - "NON_ACTIVE" : A NON_ACTIVE. |
754 * | 751 * |
| 752 * [pageToken] - Optional The page token, returned by a previous call, to |
| 753 * request the next page of results. |
| 754 * |
755 * Completes with a [ListJobsResponse]. | 755 * Completes with a [ListJobsResponse]. |
756 * | 756 * |
757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
758 * error. | 758 * error. |
759 * | 759 * |
760 * If the used [http.Client] completes with an error when making a REST call, | 760 * If the used [http.Client] completes with an error when making a REST call, |
761 * this method will complete with the same error. | 761 * this method will complete with the same error. |
762 */ | 762 */ |
763 async.Future<ListJobsResponse> list(core.String projectId, {core.String pageTo
ken, core.int pageSize, core.String clusterName, core.String filter, core.String
jobStateMatcher}) { | 763 async.Future<ListJobsResponse> list(core.String projectId, {core.int pageSize,
core.String clusterName, core.String filter, core.String jobStateMatcher, core.
String pageToken}) { |
764 var _url = null; | 764 var _url = null; |
765 var _queryParams = new core.Map(); | 765 var _queryParams = new core.Map(); |
766 var _uploadMedia = null; | 766 var _uploadMedia = null; |
767 var _uploadOptions = null; | 767 var _uploadOptions = null; |
768 var _downloadOptions = commons.DownloadOptions.Metadata; | 768 var _downloadOptions = commons.DownloadOptions.Metadata; |
769 var _body = null; | 769 var _body = null; |
770 | 770 |
771 if (projectId == null) { | 771 if (projectId == null) { |
772 throw new core.ArgumentError("Parameter projectId is required."); | 772 throw new core.ArgumentError("Parameter projectId is required."); |
773 } | 773 } |
774 if (pageToken != null) { | |
775 _queryParams["pageToken"] = [pageToken]; | |
776 } | |
777 if (pageSize != null) { | 774 if (pageSize != null) { |
778 _queryParams["pageSize"] = ["${pageSize}"]; | 775 _queryParams["pageSize"] = ["${pageSize}"]; |
779 } | 776 } |
780 if (clusterName != null) { | 777 if (clusterName != null) { |
781 _queryParams["clusterName"] = [clusterName]; | 778 _queryParams["clusterName"] = [clusterName]; |
782 } | 779 } |
783 if (filter != null) { | 780 if (filter != null) { |
784 _queryParams["filter"] = [filter]; | 781 _queryParams["filter"] = [filter]; |
785 } | 782 } |
786 if (jobStateMatcher != null) { | 783 if (jobStateMatcher != null) { |
787 _queryParams["jobStateMatcher"] = [jobStateMatcher]; | 784 _queryParams["jobStateMatcher"] = [jobStateMatcher]; |
788 } | 785 } |
| 786 if (pageToken != null) { |
| 787 _queryParams["pageToken"] = [pageToken]; |
| 788 } |
789 | 789 |
790 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '
/jobs'; | 790 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '
/jobs'; |
791 | 791 |
792 var _response = _requester.request(_url, | 792 var _response = _requester.request(_url, |
793 "GET", | 793 "GET", |
794 body: _body, | 794 body: _body, |
795 queryParams: _queryParams, | 795 queryParams: _queryParams, |
796 uploadOptions: _uploadOptions, | 796 uploadOptions: _uploadOptions, |
797 uploadMedia: _uploadMedia, | 797 uploadMedia: _uploadMedia, |
798 downloadOptions: _downloadOptions); | 798 downloadOptions: _downloadOptions); |
(...skipping 2506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3305 } | 3305 } |
3306 if (state != null) { | 3306 if (state != null) { |
3307 _json["state"] = state; | 3307 _json["state"] = state; |
3308 } | 3308 } |
3309 if (trackingUrl != null) { | 3309 if (trackingUrl != null) { |
3310 _json["trackingUrl"] = trackingUrl; | 3310 _json["trackingUrl"] = trackingUrl; |
3311 } | 3311 } |
3312 return _json; | 3312 return _json; |
3313 } | 3313 } |
3314 } | 3314 } |
OLD | NEW |