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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/storage/v1.dart ('k') | generated/googleapis/lib/surveys/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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 uploadOptions: _uploadOptions, 419 uploadOptions: _uploadOptions,
420 uploadMedia: _uploadMedia, 420 uploadMedia: _uploadMedia,
421 downloadOptions: _downloadOptions); 421 downloadOptions: _downloadOptions);
422 return _response.then((data) => new Operation.fromJson(data)); 422 return _response.then((data) => new Operation.fromJson(data));
423 } 423 }
424 424
425 /** 425 /**
426 * Lists operations that match the specified filter in the request. If the 426 * Lists operations that match the specified filter in the request. If the
427 * server doesn't support this method, it returns `UNIMPLEMENTED`. 427 * server doesn't support this method, it returns `UNIMPLEMENTED`.
428 * 428 *
429 * NOTE: the `name` binding below allows API services to override the binding 429 * NOTE: the `name` binding allows API services to override the binding
430 * to use different resource name schemes, such as `users / * /operations`. 430 * to use different resource name schemes, such as `users / * /operations`. To
431 * override the binding, API services can add a binding such as
432 * `"/v1/{name=users / * }/operations"` to their service configuration.
433 * For backwards compatibility, the default name includes the operations
434 * collection id, however overriding users must ensure the name binding
435 * is the parent resource, without the operations collection id.
431 * 436 *
432 * Request parameters: 437 * Request parameters:
433 * 438 *
434 * [name] - The value `transferOperations`. 439 * [name] - The value `transferOperations`.
435 * Value must have pattern "^transferOperations$". 440 * Value must have pattern "^transferOperations$".
436 * 441 *
442 * [pageSize] - The list page size. The max allowed value is 256.
443 *
437 * [filter] - A list of query parameters specified as JSON text in the form of 444 * [filter] - A list of query parameters specified as JSON text in the form of
438 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", 445 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\",
439 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], 446 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...],
440 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`, 447 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`,
441 * `operation_names`, and `transfer_statuses` support multiple values, they 448 * `operation_names`, and `transfer_statuses` support multiple values, they
442 * must be specified with array notation. `job_names`, `operation_names`, and 449 * must be specified with array notation. `job_names`, `operation_names`, and
443 * `transfer_statuses` are optional. 450 * `transfer_statuses` are optional.
444 * 451 *
445 * [pageToken] - The list page token. 452 * [pageToken] - The list page token.
446 * 453 *
447 * [pageSize] - The list page size. The max allowed value is 256.
448 *
449 * Completes with a [ListOperationsResponse]. 454 * Completes with a [ListOperationsResponse].
450 * 455 *
451 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
452 * error. 457 * error.
453 * 458 *
454 * 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,
455 * this method will complete with the same error. 460 * this method will complete with the same error.
456 */ 461 */
457 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.int pageSize , core.String filter, core.String pageToken}) {
458 var _url = null; 463 var _url = null;
459 var _queryParams = new core.Map(); 464 var _queryParams = new core.Map();
460 var _uploadMedia = null; 465 var _uploadMedia = null;
461 var _uploadOptions = null; 466 var _uploadOptions = null;
462 var _downloadOptions = commons.DownloadOptions.Metadata; 467 var _downloadOptions = commons.DownloadOptions.Metadata;
463 var _body = null; 468 var _body = null;
464 469
465 if (name == null) { 470 if (name == null) {
466 throw new core.ArgumentError("Parameter name is required."); 471 throw new core.ArgumentError("Parameter name is required.");
467 } 472 }
473 if (pageSize != null) {
474 _queryParams["pageSize"] = ["${pageSize}"];
475 }
468 if (filter != null) { 476 if (filter != null) {
469 _queryParams["filter"] = [filter]; 477 _queryParams["filter"] = [filter];
470 } 478 }
471 if (pageToken != null) { 479 if (pageToken != null) {
472 _queryParams["pageToken"] = [pageToken]; 480 _queryParams["pageToken"] = [pageToken];
473 } 481 }
474 if (pageSize != null) {
475 _queryParams["pageSize"] = ["${pageSize}"];
476 }
477 482
478 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 483 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
479 484
480 var _response = _requester.request(_url, 485 var _response = _requester.request(_url,
481 "GET", 486 "GET",
482 body: _body, 487 body: _body,
483 queryParams: _queryParams, 488 queryParams: _queryParams,
484 uploadOptions: _uploadOptions, 489 uploadOptions: _uploadOptions,
485 uploadMedia: _uploadMedia, 490 uploadMedia: _uploadMedia,
486 downloadOptions: _downloadOptions); 491 downloadOptions: _downloadOptions);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 609
605 AwsAccessKey.fromJson(core.Map _json) { 610 AwsAccessKey.fromJson(core.Map _json) {
606 if (_json.containsKey("accessKeyId")) { 611 if (_json.containsKey("accessKeyId")) {
607 accessKeyId = _json["accessKeyId"]; 612 accessKeyId = _json["accessKeyId"];
608 } 613 }
609 if (_json.containsKey("secretAccessKey")) { 614 if (_json.containsKey("secretAccessKey")) {
610 secretAccessKey = _json["secretAccessKey"]; 615 secretAccessKey = _json["secretAccessKey"];
611 } 616 }
612 } 617 }
613 618
614 core.Map toJson() { 619 core.Map<core.String, core.Object> toJson() {
615 var _json = new core.Map(); 620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
616 if (accessKeyId != null) { 621 if (accessKeyId != null) {
617 _json["accessKeyId"] = accessKeyId; 622 _json["accessKeyId"] = accessKeyId;
618 } 623 }
619 if (secretAccessKey != null) { 624 if (secretAccessKey != null) {
620 _json["secretAccessKey"] = secretAccessKey; 625 _json["secretAccessKey"] = secretAccessKey;
621 } 626 }
622 return _json; 627 return _json;
623 } 628 }
624 } 629 }
625 630
(...skipping 21 matching lines...) Expand all
647 652
648 AwsS3Data.fromJson(core.Map _json) { 653 AwsS3Data.fromJson(core.Map _json) {
649 if (_json.containsKey("awsAccessKey")) { 654 if (_json.containsKey("awsAccessKey")) {
650 awsAccessKey = new AwsAccessKey.fromJson(_json["awsAccessKey"]); 655 awsAccessKey = new AwsAccessKey.fromJson(_json["awsAccessKey"]);
651 } 656 }
652 if (_json.containsKey("bucketName")) { 657 if (_json.containsKey("bucketName")) {
653 bucketName = _json["bucketName"]; 658 bucketName = _json["bucketName"];
654 } 659 }
655 } 660 }
656 661
657 core.Map toJson() { 662 core.Map<core.String, core.Object> toJson() {
658 var _json = new core.Map(); 663 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
659 if (awsAccessKey != null) { 664 if (awsAccessKey != null) {
660 _json["awsAccessKey"] = (awsAccessKey).toJson(); 665 _json["awsAccessKey"] = (awsAccessKey).toJson();
661 } 666 }
662 if (bucketName != null) { 667 if (bucketName != null) {
663 _json["bucketName"] = bucketName; 668 _json["bucketName"] = bucketName;
664 } 669 }
665 return _json; 670 return _json;
666 } 671 }
667 } 672 }
668 673
(...skipping 27 matching lines...) Expand all
696 day = _json["day"]; 701 day = _json["day"];
697 } 702 }
698 if (_json.containsKey("month")) { 703 if (_json.containsKey("month")) {
699 month = _json["month"]; 704 month = _json["month"];
700 } 705 }
701 if (_json.containsKey("year")) { 706 if (_json.containsKey("year")) {
702 year = _json["year"]; 707 year = _json["year"];
703 } 708 }
704 } 709 }
705 710
706 core.Map toJson() { 711 core.Map<core.String, core.Object> toJson() {
707 var _json = new core.Map(); 712 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
708 if (day != null) { 713 if (day != null) {
709 _json["day"] = day; 714 _json["day"] = day;
710 } 715 }
711 if (month != null) { 716 if (month != null) {
712 _json["month"] = month; 717 _json["month"] = month;
713 } 718 }
714 if (year != null) { 719 if (year != null) {
715 _json["year"] = year; 720 _json["year"] = year;
716 } 721 }
717 return _json; 722 return _json;
(...skipping 11 matching lines...) Expand all
729 * 734 *
730 * The JSON representation for `Empty` is empty JSON object `{}`. 735 * The JSON representation for `Empty` is empty JSON object `{}`.
731 */ 736 */
732 class Empty { 737 class Empty {
733 738
734 Empty(); 739 Empty();
735 740
736 Empty.fromJson(core.Map _json) { 741 Empty.fromJson(core.Map _json) {
737 } 742 }
738 743
739 core.Map toJson() { 744 core.Map<core.String, core.Object> toJson() {
740 var _json = new core.Map(); 745 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
741 return _json; 746 return _json;
742 } 747 }
743 } 748 }
744 749
745 /** An entry describing an error that has occurred. */ 750 /** An entry describing an error that has occurred. */
746 class ErrorLogEntry { 751 class ErrorLogEntry {
747 /** A list of messages that carry the error details. */ 752 /** A list of messages that carry the error details. */
748 core.List<core.String> errorDetails; 753 core.List<core.String> errorDetails;
749 /** 754 /**
750 * A URL that refers to the target (a data source, a data sink, 755 * A URL that refers to the target (a data source, a data sink,
751 * or an object) with which the error is associated. 756 * or an object) with which the error is associated.
752 * Required. 757 * Required.
753 */ 758 */
754 core.String url; 759 core.String url;
755 760
756 ErrorLogEntry(); 761 ErrorLogEntry();
757 762
758 ErrorLogEntry.fromJson(core.Map _json) { 763 ErrorLogEntry.fromJson(core.Map _json) {
759 if (_json.containsKey("errorDetails")) { 764 if (_json.containsKey("errorDetails")) {
760 errorDetails = _json["errorDetails"]; 765 errorDetails = _json["errorDetails"];
761 } 766 }
762 if (_json.containsKey("url")) { 767 if (_json.containsKey("url")) {
763 url = _json["url"]; 768 url = _json["url"];
764 } 769 }
765 } 770 }
766 771
767 core.Map toJson() { 772 core.Map<core.String, core.Object> toJson() {
768 var _json = new core.Map(); 773 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
769 if (errorDetails != null) { 774 if (errorDetails != null) {
770 _json["errorDetails"] = errorDetails; 775 _json["errorDetails"] = errorDetails;
771 } 776 }
772 if (url != null) { 777 if (url != null) {
773 _json["url"] = url; 778 _json["url"] = url;
774 } 779 }
775 return _json; 780 return _json;
776 } 781 }
777 } 782 }
778 783
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 errorCode = _json["errorCode"]; 938 errorCode = _json["errorCode"];
934 } 939 }
935 if (_json.containsKey("errorCount")) { 940 if (_json.containsKey("errorCount")) {
936 errorCount = _json["errorCount"]; 941 errorCount = _json["errorCount"];
937 } 942 }
938 if (_json.containsKey("errorLogEntries")) { 943 if (_json.containsKey("errorLogEntries")) {
939 errorLogEntries = _json["errorLogEntries"].map((value) => new ErrorLogEntr y.fromJson(value)).toList(); 944 errorLogEntries = _json["errorLogEntries"].map((value) => new ErrorLogEntr y.fromJson(value)).toList();
940 } 945 }
941 } 946 }
942 947
943 core.Map toJson() { 948 core.Map<core.String, core.Object> toJson() {
944 var _json = new core.Map(); 949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
945 if (errorCode != null) { 950 if (errorCode != null) {
946 _json["errorCode"] = errorCode; 951 _json["errorCode"] = errorCode;
947 } 952 }
948 if (errorCount != null) { 953 if (errorCount != null) {
949 _json["errorCount"] = errorCount; 954 _json["errorCount"] = errorCount;
950 } 955 }
951 if (errorLogEntries != null) { 956 if (errorLogEntries != null) {
952 _json["errorLogEntries"] = errorLogEntries.map((value) => (value).toJson() ).toList(); 957 _json["errorLogEntries"] = errorLogEntries.map((value) => (value).toJson() ).toList();
953 } 958 }
954 return _json; 959 return _json;
(...skipping 15 matching lines...) Expand all
970 core.String bucketName; 975 core.String bucketName;
971 976
972 GcsData(); 977 GcsData();
973 978
974 GcsData.fromJson(core.Map _json) { 979 GcsData.fromJson(core.Map _json) {
975 if (_json.containsKey("bucketName")) { 980 if (_json.containsKey("bucketName")) {
976 bucketName = _json["bucketName"]; 981 bucketName = _json["bucketName"];
977 } 982 }
978 } 983 }
979 984
980 core.Map toJson() { 985 core.Map<core.String, core.Object> toJson() {
981 var _json = new core.Map(); 986 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
982 if (bucketName != null) { 987 if (bucketName != null) {
983 _json["bucketName"] = bucketName; 988 _json["bucketName"] = bucketName;
984 } 989 }
985 return _json; 990 return _json;
986 } 991 }
987 } 992 }
988 993
989 /** Google service account */ 994 /** Google service account */
990 class GoogleServiceAccount { 995 class GoogleServiceAccount {
991 /** Required. */ 996 /** Required. */
992 core.String accountEmail; 997 core.String accountEmail;
993 998
994 GoogleServiceAccount(); 999 GoogleServiceAccount();
995 1000
996 GoogleServiceAccount.fromJson(core.Map _json) { 1001 GoogleServiceAccount.fromJson(core.Map _json) {
997 if (_json.containsKey("accountEmail")) { 1002 if (_json.containsKey("accountEmail")) {
998 accountEmail = _json["accountEmail"]; 1003 accountEmail = _json["accountEmail"];
999 } 1004 }
1000 } 1005 }
1001 1006
1002 core.Map toJson() { 1007 core.Map<core.String, core.Object> toJson() {
1003 var _json = new core.Map(); 1008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1004 if (accountEmail != null) { 1009 if (accountEmail != null) {
1005 _json["accountEmail"] = accountEmail; 1010 _json["accountEmail"] = accountEmail;
1006 } 1011 }
1007 return _json; 1012 return _json;
1008 } 1013 }
1009 } 1014 }
1010 1015
1011 /** 1016 /**
1012 * An HttpData specifies a list of objects on the web to be transferred over 1017 * An HttpData specifies a list of objects on the web to be transferred over
1013 * HTTP. The information of the objects to be transferred is contained in a 1018 * HTTP. The information of the objects to be transferred is contained in a
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 core.String listUrl; 1068 core.String listUrl;
1064 1069
1065 HttpData(); 1070 HttpData();
1066 1071
1067 HttpData.fromJson(core.Map _json) { 1072 HttpData.fromJson(core.Map _json) {
1068 if (_json.containsKey("listUrl")) { 1073 if (_json.containsKey("listUrl")) {
1069 listUrl = _json["listUrl"]; 1074 listUrl = _json["listUrl"];
1070 } 1075 }
1071 } 1076 }
1072 1077
1073 core.Map toJson() { 1078 core.Map<core.String, core.Object> toJson() {
1074 var _json = new core.Map(); 1079 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1075 if (listUrl != null) { 1080 if (listUrl != null) {
1076 _json["listUrl"] = listUrl; 1081 _json["listUrl"] = listUrl;
1077 } 1082 }
1078 return _json; 1083 return _json;
1079 } 1084 }
1080 } 1085 }
1081 1086
1082 /** The response message for Operations.ListOperations. */ 1087 /** The response message for Operations.ListOperations. */
1083 class ListOperationsResponse { 1088 class ListOperationsResponse {
1084 /** The standard List next-page token. */ 1089 /** The standard List next-page token. */
1085 core.String nextPageToken; 1090 core.String nextPageToken;
1086 /** A list of operations that matches the specified filter in the request. */ 1091 /** A list of operations that matches the specified filter in the request. */
1087 core.List<Operation> operations; 1092 core.List<Operation> operations;
1088 1093
1089 ListOperationsResponse(); 1094 ListOperationsResponse();
1090 1095
1091 ListOperationsResponse.fromJson(core.Map _json) { 1096 ListOperationsResponse.fromJson(core.Map _json) {
1092 if (_json.containsKey("nextPageToken")) { 1097 if (_json.containsKey("nextPageToken")) {
1093 nextPageToken = _json["nextPageToken"]; 1098 nextPageToken = _json["nextPageToken"];
1094 } 1099 }
1095 if (_json.containsKey("operations")) { 1100 if (_json.containsKey("operations")) {
1096 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList(); 1101 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList();
1097 } 1102 }
1098 } 1103 }
1099 1104
1100 core.Map toJson() { 1105 core.Map<core.String, core.Object> toJson() {
1101 var _json = new core.Map(); 1106 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1102 if (nextPageToken != null) { 1107 if (nextPageToken != null) {
1103 _json["nextPageToken"] = nextPageToken; 1108 _json["nextPageToken"] = nextPageToken;
1104 } 1109 }
1105 if (operations != null) { 1110 if (operations != null) {
1106 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 1111 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
1107 } 1112 }
1108 return _json; 1113 return _json;
1109 } 1114 }
1110 } 1115 }
1111 1116
1112 /** Response from ListTransferJobs. */ 1117 /** Response from ListTransferJobs. */
1113 class ListTransferJobsResponse { 1118 class ListTransferJobsResponse {
1114 /** The list next page token. */ 1119 /** The list next page token. */
1115 core.String nextPageToken; 1120 core.String nextPageToken;
1116 /** A list of transfer jobs. */ 1121 /** A list of transfer jobs. */
1117 core.List<TransferJob> transferJobs; 1122 core.List<TransferJob> transferJobs;
1118 1123
1119 ListTransferJobsResponse(); 1124 ListTransferJobsResponse();
1120 1125
1121 ListTransferJobsResponse.fromJson(core.Map _json) { 1126 ListTransferJobsResponse.fromJson(core.Map _json) {
1122 if (_json.containsKey("nextPageToken")) { 1127 if (_json.containsKey("nextPageToken")) {
1123 nextPageToken = _json["nextPageToken"]; 1128 nextPageToken = _json["nextPageToken"];
1124 } 1129 }
1125 if (_json.containsKey("transferJobs")) { 1130 if (_json.containsKey("transferJobs")) {
1126 transferJobs = _json["transferJobs"].map((value) => new TransferJob.fromJs on(value)).toList(); 1131 transferJobs = _json["transferJobs"].map((value) => new TransferJob.fromJs on(value)).toList();
1127 } 1132 }
1128 } 1133 }
1129 1134
1130 core.Map toJson() { 1135 core.Map<core.String, core.Object> toJson() {
1131 var _json = new core.Map(); 1136 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1132 if (nextPageToken != null) { 1137 if (nextPageToken != null) {
1133 _json["nextPageToken"] = nextPageToken; 1138 _json["nextPageToken"] = nextPageToken;
1134 } 1139 }
1135 if (transferJobs != null) { 1140 if (transferJobs != null) {
1136 _json["transferJobs"] = transferJobs.map((value) => (value).toJson()).toLi st(); 1141 _json["transferJobs"] = transferJobs.map((value) => (value).toJson()).toLi st();
1137 } 1142 }
1138 return _json; 1143 return _json;
1139 } 1144 }
1140 } 1145 }
1141 1146
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 includePrefixes = _json["includePrefixes"]; 1216 includePrefixes = _json["includePrefixes"];
1212 } 1217 }
1213 if (_json.containsKey("maxTimeElapsedSinceLastModification")) { 1218 if (_json.containsKey("maxTimeElapsedSinceLastModification")) {
1214 maxTimeElapsedSinceLastModification = _json["maxTimeElapsedSinceLastModifi cation"]; 1219 maxTimeElapsedSinceLastModification = _json["maxTimeElapsedSinceLastModifi cation"];
1215 } 1220 }
1216 if (_json.containsKey("minTimeElapsedSinceLastModification")) { 1221 if (_json.containsKey("minTimeElapsedSinceLastModification")) {
1217 minTimeElapsedSinceLastModification = _json["minTimeElapsedSinceLastModifi cation"]; 1222 minTimeElapsedSinceLastModification = _json["minTimeElapsedSinceLastModifi cation"];
1218 } 1223 }
1219 } 1224 }
1220 1225
1221 core.Map toJson() { 1226 core.Map<core.String, core.Object> toJson() {
1222 var _json = new core.Map(); 1227 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1223 if (excludePrefixes != null) { 1228 if (excludePrefixes != null) {
1224 _json["excludePrefixes"] = excludePrefixes; 1229 _json["excludePrefixes"] = excludePrefixes;
1225 } 1230 }
1226 if (includePrefixes != null) { 1231 if (includePrefixes != null) {
1227 _json["includePrefixes"] = includePrefixes; 1232 _json["includePrefixes"] = includePrefixes;
1228 } 1233 }
1229 if (maxTimeElapsedSinceLastModification != null) { 1234 if (maxTimeElapsedSinceLastModification != null) {
1230 _json["maxTimeElapsedSinceLastModification"] = maxTimeElapsedSinceLastModi fication; 1235 _json["maxTimeElapsedSinceLastModification"] = maxTimeElapsedSinceLastModi fication;
1231 } 1236 }
1232 if (minTimeElapsedSinceLastModification != null) { 1237 if (minTimeElapsedSinceLastModification != null) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 metadata = _json["metadata"]; 1295 metadata = _json["metadata"];
1291 } 1296 }
1292 if (_json.containsKey("name")) { 1297 if (_json.containsKey("name")) {
1293 name = _json["name"]; 1298 name = _json["name"];
1294 } 1299 }
1295 if (_json.containsKey("response")) { 1300 if (_json.containsKey("response")) {
1296 response = _json["response"]; 1301 response = _json["response"];
1297 } 1302 }
1298 } 1303 }
1299 1304
1300 core.Map toJson() { 1305 core.Map<core.String, core.Object> toJson() {
1301 var _json = new core.Map(); 1306 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1302 if (done != null) { 1307 if (done != null) {
1303 _json["done"] = done; 1308 _json["done"] = done;
1304 } 1309 }
1305 if (error != null) { 1310 if (error != null) {
1306 _json["error"] = (error).toJson(); 1311 _json["error"] = (error).toJson();
1307 } 1312 }
1308 if (metadata != null) { 1313 if (metadata != null) {
1309 _json["metadata"] = metadata; 1314 _json["metadata"] = metadata;
1310 } 1315 }
1311 if (name != null) { 1316 if (name != null) {
1312 _json["name"] = name; 1317 _json["name"] = name;
1313 } 1318 }
1314 if (response != null) { 1319 if (response != null) {
1315 _json["response"] = response; 1320 _json["response"] = response;
1316 } 1321 }
1317 return _json; 1322 return _json;
1318 } 1323 }
1319 } 1324 }
1320 1325
1321 /** Request passed to PauseTransferOperation. */ 1326 /** Request passed to PauseTransferOperation. */
1322 class PauseTransferOperationRequest { 1327 class PauseTransferOperationRequest {
1323 1328
1324 PauseTransferOperationRequest(); 1329 PauseTransferOperationRequest();
1325 1330
1326 PauseTransferOperationRequest.fromJson(core.Map _json) { 1331 PauseTransferOperationRequest.fromJson(core.Map _json) {
1327 } 1332 }
1328 1333
1329 core.Map toJson() { 1334 core.Map<core.String, core.Object> toJson() {
1330 var _json = new core.Map(); 1335 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1331 return _json; 1336 return _json;
1332 } 1337 }
1333 } 1338 }
1334 1339
1335 /** Request passed to ResumeTransferOperation. */ 1340 /** Request passed to ResumeTransferOperation. */
1336 class ResumeTransferOperationRequest { 1341 class ResumeTransferOperationRequest {
1337 1342
1338 ResumeTransferOperationRequest(); 1343 ResumeTransferOperationRequest();
1339 1344
1340 ResumeTransferOperationRequest.fromJson(core.Map _json) { 1345 ResumeTransferOperationRequest.fromJson(core.Map _json) {
1341 } 1346 }
1342 1347
1343 core.Map toJson() { 1348 core.Map<core.String, core.Object> toJson() {
1344 var _json = new core.Map(); 1349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1345 return _json; 1350 return _json;
1346 } 1351 }
1347 } 1352 }
1348 1353
1349 /** Transfers can be scheduled to recur or to run just once. */ 1354 /** Transfers can be scheduled to recur or to run just once. */
1350 class Schedule { 1355 class Schedule {
1351 /** 1356 /**
1352 * The last day the recurring transfer will be run. If `scheduleEndDate` 1357 * The last day the recurring transfer will be run. If `scheduleEndDate`
1353 * is the same as `scheduleStartDate`, the transfer will be executed only 1358 * is the same as `scheduleStartDate`, the transfer will be executed only
1354 * once. 1359 * once.
(...skipping 24 matching lines...) Expand all
1379 scheduleEndDate = new Date.fromJson(_json["scheduleEndDate"]); 1384 scheduleEndDate = new Date.fromJson(_json["scheduleEndDate"]);
1380 } 1385 }
1381 if (_json.containsKey("scheduleStartDate")) { 1386 if (_json.containsKey("scheduleStartDate")) {
1382 scheduleStartDate = new Date.fromJson(_json["scheduleStartDate"]); 1387 scheduleStartDate = new Date.fromJson(_json["scheduleStartDate"]);
1383 } 1388 }
1384 if (_json.containsKey("startTimeOfDay")) { 1389 if (_json.containsKey("startTimeOfDay")) {
1385 startTimeOfDay = new TimeOfDay.fromJson(_json["startTimeOfDay"]); 1390 startTimeOfDay = new TimeOfDay.fromJson(_json["startTimeOfDay"]);
1386 } 1391 }
1387 } 1392 }
1388 1393
1389 core.Map toJson() { 1394 core.Map<core.String, core.Object> toJson() {
1390 var _json = new core.Map(); 1395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1391 if (scheduleEndDate != null) { 1396 if (scheduleEndDate != null) {
1392 _json["scheduleEndDate"] = (scheduleEndDate).toJson(); 1397 _json["scheduleEndDate"] = (scheduleEndDate).toJson();
1393 } 1398 }
1394 if (scheduleStartDate != null) { 1399 if (scheduleStartDate != null) {
1395 _json["scheduleStartDate"] = (scheduleStartDate).toJson(); 1400 _json["scheduleStartDate"] = (scheduleStartDate).toJson();
1396 } 1401 }
1397 if (startTimeOfDay != null) { 1402 if (startTimeOfDay != null) {
1398 _json["startTimeOfDay"] = (startTimeOfDay).toJson(); 1403 _json["startTimeOfDay"] = (startTimeOfDay).toJson();
1399 } 1404 }
1400 return _json; 1405 return _json;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 code = _json["code"]; 1487 code = _json["code"];
1483 } 1488 }
1484 if (_json.containsKey("details")) { 1489 if (_json.containsKey("details")) {
1485 details = _json["details"]; 1490 details = _json["details"];
1486 } 1491 }
1487 if (_json.containsKey("message")) { 1492 if (_json.containsKey("message")) {
1488 message = _json["message"]; 1493 message = _json["message"];
1489 } 1494 }
1490 } 1495 }
1491 1496
1492 core.Map toJson() { 1497 core.Map<core.String, core.Object> toJson() {
1493 var _json = new core.Map(); 1498 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1494 if (code != null) { 1499 if (code != null) {
1495 _json["code"] = code; 1500 _json["code"] = code;
1496 } 1501 }
1497 if (details != null) { 1502 if (details != null) {
1498 _json["details"] = details; 1503 _json["details"] = details;
1499 } 1504 }
1500 if (message != null) { 1505 if (message != null) {
1501 _json["message"] = message; 1506 _json["message"] = message;
1502 } 1507 }
1503 return _json; 1508 return _json;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 minutes = _json["minutes"]; 1540 minutes = _json["minutes"];
1536 } 1541 }
1537 if (_json.containsKey("nanos")) { 1542 if (_json.containsKey("nanos")) {
1538 nanos = _json["nanos"]; 1543 nanos = _json["nanos"];
1539 } 1544 }
1540 if (_json.containsKey("seconds")) { 1545 if (_json.containsKey("seconds")) {
1541 seconds = _json["seconds"]; 1546 seconds = _json["seconds"];
1542 } 1547 }
1543 } 1548 }
1544 1549
1545 core.Map toJson() { 1550 core.Map<core.String, core.Object> toJson() {
1546 var _json = new core.Map(); 1551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1547 if (hours != null) { 1552 if (hours != null) {
1548 _json["hours"] = hours; 1553 _json["hours"] = hours;
1549 } 1554 }
1550 if (minutes != null) { 1555 if (minutes != null) {
1551 _json["minutes"] = minutes; 1556 _json["minutes"] = minutes;
1552 } 1557 }
1553 if (nanos != null) { 1558 if (nanos != null) {
1554 _json["nanos"] = nanos; 1559 _json["nanos"] = nanos;
1555 } 1560 }
1556 if (seconds != null) { 1561 if (seconds != null) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 objectsFoundOnlyFromSink = _json["objectsFoundOnlyFromSink"]; 1662 objectsFoundOnlyFromSink = _json["objectsFoundOnlyFromSink"];
1658 } 1663 }
1659 if (_json.containsKey("objectsFromSourceFailed")) { 1664 if (_json.containsKey("objectsFromSourceFailed")) {
1660 objectsFromSourceFailed = _json["objectsFromSourceFailed"]; 1665 objectsFromSourceFailed = _json["objectsFromSourceFailed"];
1661 } 1666 }
1662 if (_json.containsKey("objectsFromSourceSkippedBySync")) { 1667 if (_json.containsKey("objectsFromSourceSkippedBySync")) {
1663 objectsFromSourceSkippedBySync = _json["objectsFromSourceSkippedBySync"]; 1668 objectsFromSourceSkippedBySync = _json["objectsFromSourceSkippedBySync"];
1664 } 1669 }
1665 } 1670 }
1666 1671
1667 core.Map toJson() { 1672 core.Map<core.String, core.Object> toJson() {
1668 var _json = new core.Map(); 1673 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1669 if (bytesCopiedToSink != null) { 1674 if (bytesCopiedToSink != null) {
1670 _json["bytesCopiedToSink"] = bytesCopiedToSink; 1675 _json["bytesCopiedToSink"] = bytesCopiedToSink;
1671 } 1676 }
1672 if (bytesDeletedFromSink != null) { 1677 if (bytesDeletedFromSink != null) {
1673 _json["bytesDeletedFromSink"] = bytesDeletedFromSink; 1678 _json["bytesDeletedFromSink"] = bytesDeletedFromSink;
1674 } 1679 }
1675 if (bytesDeletedFromSource != null) { 1680 if (bytesDeletedFromSource != null) {
1676 _json["bytesDeletedFromSource"] = bytesDeletedFromSource; 1681 _json["bytesDeletedFromSource"] = bytesDeletedFromSource;
1677 } 1682 }
1678 if (bytesFailedToDeleteFromSink != null) { 1683 if (bytesFailedToDeleteFromSink != null) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 schedule = new Schedule.fromJson(_json["schedule"]); 1805 schedule = new Schedule.fromJson(_json["schedule"]);
1801 } 1806 }
1802 if (_json.containsKey("status")) { 1807 if (_json.containsKey("status")) {
1803 status = _json["status"]; 1808 status = _json["status"];
1804 } 1809 }
1805 if (_json.containsKey("transferSpec")) { 1810 if (_json.containsKey("transferSpec")) {
1806 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]); 1811 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]);
1807 } 1812 }
1808 } 1813 }
1809 1814
1810 core.Map toJson() { 1815 core.Map<core.String, core.Object> toJson() {
1811 var _json = new core.Map(); 1816 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1812 if (creationTime != null) { 1817 if (creationTime != null) {
1813 _json["creationTime"] = creationTime; 1818 _json["creationTime"] = creationTime;
1814 } 1819 }
1815 if (deletionTime != null) { 1820 if (deletionTime != null) {
1816 _json["deletionTime"] = deletionTime; 1821 _json["deletionTime"] = deletionTime;
1817 } 1822 }
1818 if (description != null) { 1823 if (description != null) {
1819 _json["description"] = description; 1824 _json["description"] = description;
1820 } 1825 }
1821 if (lastModificationTime != null) { 1826 if (lastModificationTime != null) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 status = _json["status"]; 1907 status = _json["status"];
1903 } 1908 }
1904 if (_json.containsKey("transferJobName")) { 1909 if (_json.containsKey("transferJobName")) {
1905 transferJobName = _json["transferJobName"]; 1910 transferJobName = _json["transferJobName"];
1906 } 1911 }
1907 if (_json.containsKey("transferSpec")) { 1912 if (_json.containsKey("transferSpec")) {
1908 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]); 1913 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]);
1909 } 1914 }
1910 } 1915 }
1911 1916
1912 core.Map toJson() { 1917 core.Map<core.String, core.Object> toJson() {
1913 var _json = new core.Map(); 1918 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1914 if (counters != null) { 1919 if (counters != null) {
1915 _json["counters"] = (counters).toJson(); 1920 _json["counters"] = (counters).toJson();
1916 } 1921 }
1917 if (endTime != null) { 1922 if (endTime != null) {
1918 _json["endTime"] = endTime; 1923 _json["endTime"] = endTime;
1919 } 1924 }
1920 if (errorBreakdowns != null) { 1925 if (errorBreakdowns != null) {
1921 _json["errorBreakdowns"] = errorBreakdowns.map((value) => (value).toJson() ).toList(); 1926 _json["errorBreakdowns"] = errorBreakdowns.map((value) => (value).toJson() ).toList();
1922 } 1927 }
1923 if (name != null) { 1928 if (name != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 deleteObjectsFromSourceAfterTransfer = _json["deleteObjectsFromSourceAfter Transfer"]; 1969 deleteObjectsFromSourceAfterTransfer = _json["deleteObjectsFromSourceAfter Transfer"];
1965 } 1970 }
1966 if (_json.containsKey("deleteObjectsUniqueInSink")) { 1971 if (_json.containsKey("deleteObjectsUniqueInSink")) {
1967 deleteObjectsUniqueInSink = _json["deleteObjectsUniqueInSink"]; 1972 deleteObjectsUniqueInSink = _json["deleteObjectsUniqueInSink"];
1968 } 1973 }
1969 if (_json.containsKey("overwriteObjectsAlreadyExistingInSink")) { 1974 if (_json.containsKey("overwriteObjectsAlreadyExistingInSink")) {
1970 overwriteObjectsAlreadyExistingInSink = _json["overwriteObjectsAlreadyExis tingInSink"]; 1975 overwriteObjectsAlreadyExistingInSink = _json["overwriteObjectsAlreadyExis tingInSink"];
1971 } 1976 }
1972 } 1977 }
1973 1978
1974 core.Map toJson() { 1979 core.Map<core.String, core.Object> toJson() {
1975 var _json = new core.Map(); 1980 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1976 if (deleteObjectsFromSourceAfterTransfer != null) { 1981 if (deleteObjectsFromSourceAfterTransfer != null) {
1977 _json["deleteObjectsFromSourceAfterTransfer"] = deleteObjectsFromSourceAft erTransfer; 1982 _json["deleteObjectsFromSourceAfterTransfer"] = deleteObjectsFromSourceAft erTransfer;
1978 } 1983 }
1979 if (deleteObjectsUniqueInSink != null) { 1984 if (deleteObjectsUniqueInSink != null) {
1980 _json["deleteObjectsUniqueInSink"] = deleteObjectsUniqueInSink; 1985 _json["deleteObjectsUniqueInSink"] = deleteObjectsUniqueInSink;
1981 } 1986 }
1982 if (overwriteObjectsAlreadyExistingInSink != null) { 1987 if (overwriteObjectsAlreadyExistingInSink != null) {
1983 _json["overwriteObjectsAlreadyExistingInSink"] = overwriteObjectsAlreadyEx istingInSink; 1988 _json["overwriteObjectsAlreadyExistingInSink"] = overwriteObjectsAlreadyEx istingInSink;
1984 } 1989 }
1985 return _json; 1990 return _json;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 httpDataSource = new HttpData.fromJson(_json["httpDataSource"]); 2030 httpDataSource = new HttpData.fromJson(_json["httpDataSource"]);
2026 } 2031 }
2027 if (_json.containsKey("objectConditions")) { 2032 if (_json.containsKey("objectConditions")) {
2028 objectConditions = new ObjectConditions.fromJson(_json["objectConditions"] ); 2033 objectConditions = new ObjectConditions.fromJson(_json["objectConditions"] );
2029 } 2034 }
2030 if (_json.containsKey("transferOptions")) { 2035 if (_json.containsKey("transferOptions")) {
2031 transferOptions = new TransferOptions.fromJson(_json["transferOptions"]); 2036 transferOptions = new TransferOptions.fromJson(_json["transferOptions"]);
2032 } 2037 }
2033 } 2038 }
2034 2039
2035 core.Map toJson() { 2040 core.Map<core.String, core.Object> toJson() {
2036 var _json = new core.Map(); 2041 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2037 if (awsS3DataSource != null) { 2042 if (awsS3DataSource != null) {
2038 _json["awsS3DataSource"] = (awsS3DataSource).toJson(); 2043 _json["awsS3DataSource"] = (awsS3DataSource).toJson();
2039 } 2044 }
2040 if (gcsDataSink != null) { 2045 if (gcsDataSink != null) {
2041 _json["gcsDataSink"] = (gcsDataSink).toJson(); 2046 _json["gcsDataSink"] = (gcsDataSink).toJson();
2042 } 2047 }
2043 if (gcsDataSource != null) { 2048 if (gcsDataSource != null) {
2044 _json["gcsDataSource"] = (gcsDataSource).toJson(); 2049 _json["gcsDataSource"] = (gcsDataSource).toJson();
2045 } 2050 }
2046 if (httpDataSource != null) { 2051 if (httpDataSource != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 projectId = _json["projectId"]; 2090 projectId = _json["projectId"];
2086 } 2091 }
2087 if (_json.containsKey("transferJob")) { 2092 if (_json.containsKey("transferJob")) {
2088 transferJob = new TransferJob.fromJson(_json["transferJob"]); 2093 transferJob = new TransferJob.fromJson(_json["transferJob"]);
2089 } 2094 }
2090 if (_json.containsKey("updateTransferJobFieldMask")) { 2095 if (_json.containsKey("updateTransferJobFieldMask")) {
2091 updateTransferJobFieldMask = _json["updateTransferJobFieldMask"]; 2096 updateTransferJobFieldMask = _json["updateTransferJobFieldMask"];
2092 } 2097 }
2093 } 2098 }
2094 2099
2095 core.Map toJson() { 2100 core.Map<core.String, core.Object> toJson() {
2096 var _json = new core.Map(); 2101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2097 if (projectId != null) { 2102 if (projectId != null) {
2098 _json["projectId"] = projectId; 2103 _json["projectId"] = projectId;
2099 } 2104 }
2100 if (transferJob != null) { 2105 if (transferJob != null) {
2101 _json["transferJob"] = (transferJob).toJson(); 2106 _json["transferJob"] = (transferJob).toJson();
2102 } 2107 }
2103 if (updateTransferJobFieldMask != null) { 2108 if (updateTransferJobFieldMask != null) {
2104 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask; 2109 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask;
2105 } 2110 }
2106 return _json; 2111 return _json;
2107 } 2112 }
2108 } 2113 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/storage/v1.dart ('k') | generated/googleapis/lib/surveys/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698