Chromium Code Reviews

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

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « generated/googleapis/lib/speech/v1.dart ('k') | generated/googleapis/lib/translate/v2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 421 matching lines...)
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 * [pageSize] - The list page size. The max allowed value is 256.
443 *
444 * [filter] - A list of query parameters specified as JSON text in the form of 442 * [filter] - A list of query parameters specified as JSON text in the form of
445 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", 443 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\",
446 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], 444 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...],
447 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`, 445 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`,
448 * `operation_names`, and `transfer_statuses` support multiple values, they 446 * `operation_names`, and `transfer_statuses` support multiple values, they
449 * must be specified with array notation. `job_names`, `operation_names`, and 447 * must be specified with array notation. `job_names`, `operation_names`, and
450 * `transfer_statuses` are optional. 448 * `transfer_statuses` are optional.
451 * 449 *
452 * [pageToken] - The list page token. 450 * [pageToken] - The list page token.
453 * 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.int pageSize , core.String filter, core.String pageToken}) { 462 async.Future<ListOperationsResponse> list(core.String name, {core.String filte r, 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 (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 (pageSize != null) {
474 _queryParams["pageSize"] = ["${pageSize}"];
475 }
476 if (filter != null) { 473 if (filter != null) {
477 _queryParams["filter"] = [filter]; 474 _queryParams["filter"] = [filter];
478 } 475 }
479 if (pageToken != null) { 476 if (pageToken != null) {
480 _queryParams["pageToken"] = [pageToken]; 477 _queryParams["pageToken"] = [pageToken];
481 } 478 }
479 if (pageSize != null) {
480 _queryParams["pageSize"] = ["${pageSize}"];
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 1455 matching lines...)
1947 } 1947 }
1948 } 1948 }
1949 1949
1950 /** 1950 /**
1951 * TransferOptions uses three boolean parameters to define the actions 1951 * TransferOptions uses three boolean parameters to define the actions
1952 * to be performed on objects in a transfer. 1952 * to be performed on objects in a transfer.
1953 */ 1953 */
1954 class TransferOptions { 1954 class TransferOptions {
1955 /** 1955 /**
1956 * Whether objects should be deleted from the source after they are 1956 * Whether objects should be deleted from the source after they are
1957 * transferred to the sink. 1957 * transferred to the sink. Note that this option and
1958 * `deleteObjectsUniqueInSink` are mutually exclusive.
1958 */ 1959 */
1959 core.bool deleteObjectsFromSourceAfterTransfer; 1960 core.bool deleteObjectsFromSourceAfterTransfer;
1960 /** Whether objects that exist only in the sink should be deleted. */ 1961 /**
1962 * Whether objects that exist only in the sink should be deleted. Note that
1963 * this option and `deleteObjectsFromSourceAfterTransfer` are mutually
1964 * exclusive.
1965 */
1961 core.bool deleteObjectsUniqueInSink; 1966 core.bool deleteObjectsUniqueInSink;
1962 /** Whether overwriting objects that already exist in the sink is allowed. */ 1967 /** Whether overwriting objects that already exist in the sink is allowed. */
1963 core.bool overwriteObjectsAlreadyExistingInSink; 1968 core.bool overwriteObjectsAlreadyExistingInSink;
1964 1969
1965 TransferOptions(); 1970 TransferOptions();
1966 1971
1967 TransferOptions.fromJson(core.Map _json) { 1972 TransferOptions.fromJson(core.Map _json) {
1968 if (_json.containsKey("deleteObjectsFromSourceAfterTransfer")) { 1973 if (_json.containsKey("deleteObjectsFromSourceAfterTransfer")) {
1969 deleteObjectsFromSourceAfterTransfer = _json["deleteObjectsFromSourceAfter Transfer"]; 1974 deleteObjectsFromSourceAfterTransfer = _json["deleteObjectsFromSourceAfter Transfer"];
1970 } 1975 }
(...skipping 133 matching lines...)
2104 } 2109 }
2105 if (transferJob != null) { 2110 if (transferJob != null) {
2106 _json["transferJob"] = (transferJob).toJson(); 2111 _json["transferJob"] = (transferJob).toJson();
2107 } 2112 }
2108 if (updateTransferJobFieldMask != null) { 2113 if (updateTransferJobFieldMask != null) {
2109 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask; 2114 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask;
2110 } 2115 }
2111 return _json; 2116 return _json;
2112 } 2117 }
2113 } 2118 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/speech/v1.dart ('k') | generated/googleapis/lib/translate/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine