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

Side by Side Diff: generated/googleapis/lib/storagetransfer/v1.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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.storagetransfer.v1; 3 library googleapis.storagetransfer.v1;
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 uploadMedia: _uploadMedia, 183 uploadMedia: _uploadMedia,
184 downloadOptions: _downloadOptions); 184 downloadOptions: _downloadOptions);
185 return _response.then((data) => new TransferJob.fromJson(data)); 185 return _response.then((data) => new TransferJob.fromJson(data));
186 } 186 }
187 187
188 /** 188 /**
189 * Lists transfer jobs. 189 * Lists transfer jobs.
190 * 190 *
191 * Request parameters: 191 * Request parameters:
192 * 192 *
193 * [pageToken] - The list page token.
194 *
195 * [pageSize] - The list page size. The max allowed value is 256.
196 *
197 * [filter] - A list of query parameters specified as JSON text in the form of 193 * [filter] - A list of query parameters specified as JSON text in the form of
198 * {"project_id":"my_project_id", 194 * {"project_id":"my_project_id",
199 * "job_names":["jobid1","jobid2",...], 195 * "job_names":["jobid1","jobid2",...],
200 * "job_statuses":["status1","status2",...]}. 196 * "job_statuses":["status1","status2",...]}.
201 * Since `job_names` and `job_statuses` support multiple values, their values 197 * Since `job_names` and `job_statuses` support multiple values, their values
202 * must be specified with array notation. `project_id` is required. 198 * must be specified with array notation. `project_id` is required.
203 * `job_names` 199 * `job_names`
204 * and `job_statuses` are optional. The valid values for `job_statuses` are 200 * and `job_statuses` are optional. The valid values for `job_statuses` are
205 * case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`. 201 * case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`.
206 * 202 *
203 * [pageToken] - The list page token.
204 *
205 * [pageSize] - The list page size. The max allowed value is 256.
206 *
207 * Completes with a [ListTransferJobsResponse]. 207 * Completes with a [ListTransferJobsResponse].
208 * 208 *
209 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 209 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
210 * error. 210 * error.
211 * 211 *
212 * If the used [http.Client] completes with an error when making a REST call, 212 * If the used [http.Client] completes with an error when making a REST call,
213 * this method will complete with the same error. 213 * this method will complete with the same error.
214 */ 214 */
215 async.Future<ListTransferJobsResponse> list({core.String pageToken, core.int p ageSize, core.String filter}) { 215 async.Future<ListTransferJobsResponse> list({core.String filter, core.String p ageToken, core.int pageSize}) {
216 var _url = null; 216 var _url = null;
217 var _queryParams = new core.Map(); 217 var _queryParams = new core.Map();
218 var _uploadMedia = null; 218 var _uploadMedia = null;
219 var _uploadOptions = null; 219 var _uploadOptions = null;
220 var _downloadOptions = commons.DownloadOptions.Metadata; 220 var _downloadOptions = commons.DownloadOptions.Metadata;
221 var _body = null; 221 var _body = null;
222 222
223 if (filter != null) {
224 _queryParams["filter"] = [filter];
225 }
223 if (pageToken != null) { 226 if (pageToken != null) {
224 _queryParams["pageToken"] = [pageToken]; 227 _queryParams["pageToken"] = [pageToken];
225 } 228 }
226 if (pageSize != null) { 229 if (pageSize != null) {
227 _queryParams["pageSize"] = ["${pageSize}"]; 230 _queryParams["pageSize"] = ["${pageSize}"];
228 } 231 }
229 if (filter != null) {
230 _queryParams["filter"] = [filter];
231 }
232 232
233 _url = 'v1/transferJobs'; 233 _url = 'v1/transferJobs';
234 234
235 var _response = _requester.request(_url, 235 var _response = _requester.request(_url,
236 "GET", 236 "GET",
237 body: _body, 237 body: _body,
238 queryParams: _queryParams, 238 queryParams: _queryParams,
239 uploadOptions: _uploadOptions, 239 uploadOptions: _uploadOptions,
240 uploadMedia: _uploadMedia, 240 uploadMedia: _uploadMedia,
241 downloadOptions: _downloadOptions); 241 downloadOptions: _downloadOptions);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 * `"/v1/{name=users / * }/operations"` to their service configuration. 432 * `"/v1/{name=users / * }/operations"` to their service configuration.
433 * For backwards compatibility, the default name includes the operations 433 * For backwards compatibility, the default name includes the operations
434 * collection id, however overriding users must ensure the name binding 434 * collection id, however overriding users must ensure the name binding
435 * is the parent resource, without the operations collection id. 435 * is the parent resource, without the operations collection id.
436 * 436 *
437 * Request parameters: 437 * Request parameters:
438 * 438 *
439 * [name] - The value `transferOperations`. 439 * [name] - The value `transferOperations`.
440 * Value must have pattern "^transferOperations$". 440 * Value must have pattern "^transferOperations$".
441 * 441 *
442 * [pageToken] - The list page token.
443 *
444 * [pageSize] - The list page size. The max allowed value is 256.
445 *
442 * [filter] - A list of query parameters specified as JSON text in the form of 446 * [filter] - A list of query parameters specified as JSON text in the form of
443 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", 447 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\",
444 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], 448 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...],
445 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`, 449 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`,
446 * `operation_names`, and `transfer_statuses` support multiple values, they 450 * `operation_names`, and `transfer_statuses` support multiple values, they
447 * must be specified with array notation. `job_names`, `operation_names`, and 451 * must be specified with array notation. `job_names`, `operation_names`, and
448 * `transfer_statuses` are optional. 452 * `transfer_statuses` are optional.
449 * 453 *
450 * [pageToken] - The list page token.
451 *
452 * [pageSize] - The list page size. The max allowed value is 256.
453 *
454 * Completes with a [ListOperationsResponse]. 454 * Completes with a [ListOperationsResponse].
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<ListOperationsResponse> list(core.String name, {core.String filte r, core.String pageToken, core.int pageSize}) { 462 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT oken, core.int pageSize, core.String filter}) {
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 (name == null) { 470 if (name == null) {
471 throw new core.ArgumentError("Parameter name is required."); 471 throw new core.ArgumentError("Parameter name is required.");
472 } 472 }
473 if (filter != null) {
474 _queryParams["filter"] = [filter];
475 }
476 if (pageToken != null) { 473 if (pageToken != null) {
477 _queryParams["pageToken"] = [pageToken]; 474 _queryParams["pageToken"] = [pageToken];
478 } 475 }
479 if (pageSize != null) { 476 if (pageSize != null) {
480 _queryParams["pageSize"] = ["${pageSize}"]; 477 _queryParams["pageSize"] = ["${pageSize}"];
481 } 478 }
479 if (filter != null) {
480 _queryParams["filter"] = [filter];
481 }
482 482
483 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 483 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
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 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 } 2067 }
2068 2068
2069 /** Request passed to UpdateTransferJob. */ 2069 /** Request passed to UpdateTransferJob. */
2070 class UpdateTransferJobRequest { 2070 class UpdateTransferJobRequest {
2071 /** 2071 /**
2072 * The ID of the Google Cloud Platform Console project that owns the job. 2072 * The ID of the Google Cloud Platform Console project that owns the job.
2073 * Required. 2073 * Required.
2074 */ 2074 */
2075 core.String projectId; 2075 core.String projectId;
2076 /** 2076 /**
2077 * The job to update. 2077 * The job to update. `transferJob` is expected to specify only three fields:
2078 * `description`, `transferSpec`, and `status`. An UpdateTransferJobRequest
2079 * that specifies other fields will be rejected with an error
2080 * `INVALID_ARGUMENT`.
2078 * Required. 2081 * Required.
2079 */ 2082 */
2080 TransferJob transferJob; 2083 TransferJob transferJob;
2081 /** 2084 /**
2082 * The field mask of the fields in `transferJob` that are to be updated in 2085 * The field mask of the fields in `transferJob` that are to be updated in
2083 * this request. Fields in `transferJob` that can be updated are: 2086 * this request. Fields in `transferJob` that can be updated are:
2084 * `description`, `transferSpec`, and `status`. To update the `transferSpec` 2087 * `description`, `transferSpec`, and `status`. To update the `transferSpec`
2085 * of the job, a complete transfer specification has to be provided. An 2088 * of the job, a complete transfer specification has to be provided. An
2086 * incomplete specification which misses any required fields will be rejected 2089 * incomplete specification which misses any required fields will be rejected
2087 * with the error `INVALID_ARGUMENT`. 2090 * with the error `INVALID_ARGUMENT`.
(...skipping 21 matching lines...) Expand all
2109 } 2112 }
2110 if (transferJob != null) { 2113 if (transferJob != null) {
2111 _json["transferJob"] = (transferJob).toJson(); 2114 _json["transferJob"] = (transferJob).toJson();
2112 } 2115 }
2113 if (updateTransferJobFieldMask != null) { 2116 if (updateTransferJobFieldMask != null) {
2114 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask; 2117 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask;
2115 } 2118 }
2116 return _json; 2119 return _json;
2117 } 2120 }
2118 } 2121 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/storage/v1.dart ('k') | generated/googleapis/lib/streetviewpublish/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698