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

Side by Side Diff: generated/googleapis/lib/sourcerepo/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/slides/v1.dart ('k') | generated/googleapis/lib/spanner/v1.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.sourcerepo.v1; 3 library googleapis.sourcerepo.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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client sourcerepo/v1'; 15 const core.String USER_AGENT = 'dart-api-client sourcerepo/v1';
16 16
17 /** Access source code repositories hosted by Google. */ 17 /** Access source code repositories hosted by Google. */
18 class SourcerepoApi { 18 class SourcerepoApi {
19 /** View and manage your data across Google Cloud Platform services */ 19 /** View and manage your data across Google Cloud Platform services */
20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
21 21
22 /** View the contents of your source code repositories */
23 static const SourceReadOnlyScope = "https://www.googleapis.com/auth/source.rea d_only";
24
25 /** Manage the contents of your source code repositories */
26 static const SourceReadWriteScope = "https://www.googleapis.com/auth/source.re ad_write";
27
22 28
23 final commons.ApiRequester _requester; 29 final commons.ApiRequester _requester;
24 30
25 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 31 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
26 32
27 SourcerepoApi(http.Client client, {core.String rootUrl: "https://sourcerepo.go ogleapis.com/", core.String servicePath: ""}) : 33 SourcerepoApi(http.Client client, {core.String rootUrl: "https://sourcerepo.go ogleapis.com/", core.String servicePath: ""}) :
28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
29 } 35 }
30 36
31 37
32 class ProjectsResourceApi { 38 class ProjectsResourceApi {
33 final commons.ApiRequester _requester; 39 final commons.ApiRequester _requester;
34 40
35 ProjectsReposResourceApi get repos => new ProjectsReposResourceApi(_requester) ; 41 ProjectsReposResourceApi get repos => new ProjectsReposResourceApi(_requester) ;
36 42
37 ProjectsResourceApi(commons.ApiRequester client) : 43 ProjectsResourceApi(commons.ApiRequester client) :
38 _requester = client; 44 _requester = client;
39 } 45 }
40 46
41 47
42 class ProjectsReposResourceApi { 48 class ProjectsReposResourceApi {
43 final commons.ApiRequester _requester; 49 final commons.ApiRequester _requester;
44 50
45 ProjectsReposResourceApi(commons.ApiRequester client) : 51 ProjectsReposResourceApi(commons.ApiRequester client) :
46 _requester = client; 52 _requester = client;
47 53
48 /** 54 /**
49 * Creates a repo in the given project with the given name.. 55 * Creates a repo in the given project with the given name.
50 * 56 *
51 * If the named repository already exists, `CreateRepo` returns 57 * If the named repository already exists, `CreateRepo` returns
52 * `ALREADY_EXISTS`. 58 * `ALREADY_EXISTS`.
53 * 59 *
54 * [request] - The metadata request object. 60 * [request] - The metadata request object.
55 * 61 *
56 * Request parameters: 62 * Request parameters:
57 * 63 *
58 * [parent] - The project in which to create the repo. Values are of the form 64 * [parent] - The project in which to create the repo. Values are of the form
59 * `projects/<project>`. 65 * `projects/<project>`.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 "GET", 220 "GET",
215 body: _body, 221 body: _body,
216 queryParams: _queryParams, 222 queryParams: _queryParams,
217 uploadOptions: _uploadOptions, 223 uploadOptions: _uploadOptions,
218 uploadMedia: _uploadMedia, 224 uploadMedia: _uploadMedia,
219 downloadOptions: _downloadOptions); 225 downloadOptions: _downloadOptions);
220 return _response.then((data) => new Policy.fromJson(data)); 226 return _response.then((data) => new Policy.fromJson(data));
221 } 227 }
222 228
223 /** 229 /**
224 * Returns all repos belonging to a project. 230 * Returns all repos belonging to a project. The sizes of the repos are
231 * not set by ListRepos. To get the size of a repo, use GetRepo.
225 * 232 *
226 * Request parameters: 233 * Request parameters:
227 * 234 *
228 * [name] - The project ID whose repos should be listed. Values are of the 235 * [name] - The project ID whose repos should be listed. Values are of the
229 * form 236 * form
230 * `projects/<project>`. 237 * `projects/<project>`.
231 * Value must have pattern "^projects/[^/]+$". 238 * Value must have pattern "^projects/[^/]+$".
232 * 239 *
233 * [pageToken] - Resume listing repositories where a prior ListReposResponse 240 * [pageToken] - Resume listing repositories where a prior ListReposResponse
234 * left off. This is an opaque token that must be obtained from 241 * left off. This is an opaque token that must be obtained from
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList(); 457 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList();
451 } 458 }
452 if (_json.containsKey("exemptedMembers")) { 459 if (_json.containsKey("exemptedMembers")) {
453 exemptedMembers = _json["exemptedMembers"]; 460 exemptedMembers = _json["exemptedMembers"];
454 } 461 }
455 if (_json.containsKey("service")) { 462 if (_json.containsKey("service")) {
456 service = _json["service"]; 463 service = _json["service"];
457 } 464 }
458 } 465 }
459 466
460 core.Map toJson() { 467 core.Map<core.String, core.Object> toJson() {
461 var _json = new core.Map(); 468 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
462 if (auditLogConfigs != null) { 469 if (auditLogConfigs != null) {
463 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList(); 470 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList();
464 } 471 }
465 if (exemptedMembers != null) { 472 if (exemptedMembers != null) {
466 _json["exemptedMembers"] = exemptedMembers; 473 _json["exemptedMembers"] = exemptedMembers;
467 } 474 }
468 if (service != null) { 475 if (service != null) {
469 _json["service"] = service; 476 _json["service"] = service;
470 } 477 }
471 return _json; 478 return _json;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 521
515 AuditLogConfig.fromJson(core.Map _json) { 522 AuditLogConfig.fromJson(core.Map _json) {
516 if (_json.containsKey("exemptedMembers")) { 523 if (_json.containsKey("exemptedMembers")) {
517 exemptedMembers = _json["exemptedMembers"]; 524 exemptedMembers = _json["exemptedMembers"];
518 } 525 }
519 if (_json.containsKey("logType")) { 526 if (_json.containsKey("logType")) {
520 logType = _json["logType"]; 527 logType = _json["logType"];
521 } 528 }
522 } 529 }
523 530
524 core.Map toJson() { 531 core.Map<core.String, core.Object> toJson() {
525 var _json = new core.Map(); 532 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
526 if (exemptedMembers != null) { 533 if (exemptedMembers != null) {
527 _json["exemptedMembers"] = exemptedMembers; 534 _json["exemptedMembers"] = exemptedMembers;
528 } 535 }
529 if (logType != null) { 536 if (logType != null) {
530 _json["logType"] = logType; 537 _json["logType"] = logType;
531 } 538 }
532 return _json; 539 return _json;
533 } 540 }
534 } 541 }
535 542
(...skipping 12 matching lines...) Expand all
548 * * `user:{emailid}`: An email address that represents a specific Google 555 * * `user:{emailid}`: An email address that represents a specific Google
549 * account. For example, `alice@gmail.com` or `joe@example.com`. 556 * account. For example, `alice@gmail.com` or `joe@example.com`.
550 * 557 *
551 * 558 *
552 * * `serviceAccount:{emailid}`: An email address that represents a service 559 * * `serviceAccount:{emailid}`: An email address that represents a service
553 * account. For example, `my-other-app@appspot.gserviceaccount.com`. 560 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
554 * 561 *
555 * * `group:{emailid}`: An email address that represents a Google group. 562 * * `group:{emailid}`: An email address that represents a Google group.
556 * For example, `admins@example.com`. 563 * For example, `admins@example.com`.
557 * 564 *
565 *
558 * * `domain:{domain}`: A Google Apps domain name that represents all the 566 * * `domain:{domain}`: A Google Apps domain name that represents all the
559 * users of that domain. For example, `google.com` or `example.com`. 567 * users of that domain. For example, `google.com` or `example.com`.
560 */ 568 */
561 core.List<core.String> members; 569 core.List<core.String> members;
562 /** 570 /**
563 * Role that is assigned to `members`. 571 * Role that is assigned to `members`.
564 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 572 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
565 * Required 573 * Required
566 */ 574 */
567 core.String role; 575 core.String role;
568 576
569 Binding(); 577 Binding();
570 578
571 Binding.fromJson(core.Map _json) { 579 Binding.fromJson(core.Map _json) {
572 if (_json.containsKey("members")) { 580 if (_json.containsKey("members")) {
573 members = _json["members"]; 581 members = _json["members"];
574 } 582 }
575 if (_json.containsKey("role")) { 583 if (_json.containsKey("role")) {
576 role = _json["role"]; 584 role = _json["role"];
577 } 585 }
578 } 586 }
579 587
580 core.Map toJson() { 588 core.Map<core.String, core.Object> toJson() {
581 var _json = new core.Map(); 589 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
582 if (members != null) { 590 if (members != null) {
583 _json["members"] = members; 591 _json["members"] = members;
584 } 592 }
585 if (role != null) { 593 if (role != null) {
586 _json["role"] = role; 594 _json["role"] = role;
587 } 595 }
588 return _json; 596 return _json;
589 } 597 }
590 } 598 }
591 599
592 /** Write a Cloud Audit log */ 600 /** Write a Cloud Audit log */
593 class CloudAuditOptions { 601 class CloudAuditOptions {
602 /**
603 * The log_name to populate in the Cloud Audit Record.
604 * Possible string values are:
605 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used.
606 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity"
607 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access"
608 */
609 core.String logName;
594 610
595 CloudAuditOptions(); 611 CloudAuditOptions();
596 612
597 CloudAuditOptions.fromJson(core.Map _json) { 613 CloudAuditOptions.fromJson(core.Map _json) {
614 if (_json.containsKey("logName")) {
615 logName = _json["logName"];
616 }
598 } 617 }
599 618
600 core.Map toJson() { 619 core.Map<core.String, core.Object> toJson() {
601 var _json = new core.Map(); 620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
621 if (logName != null) {
622 _json["logName"] = logName;
623 }
602 return _json; 624 return _json;
603 } 625 }
604 } 626 }
605 627
606 /** A condition to be met. */ 628 /** A condition to be met. */
607 class Condition { 629 class Condition {
608 /** 630 /**
609 * Trusted attributes supplied by the IAM system. 631 * Trusted attributes supplied by the IAM system.
610 * Possible string values are: 632 * Possible string values are:
611 * - "NO_ATTR" : Default non-attribute. 633 * - "NO_ATTR" : Default non-attribute.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 sys = _json["sys"]; 704 sys = _json["sys"];
683 } 705 }
684 if (_json.containsKey("value")) { 706 if (_json.containsKey("value")) {
685 value = _json["value"]; 707 value = _json["value"];
686 } 708 }
687 if (_json.containsKey("values")) { 709 if (_json.containsKey("values")) {
688 values = _json["values"]; 710 values = _json["values"];
689 } 711 }
690 } 712 }
691 713
692 core.Map toJson() { 714 core.Map<core.String, core.Object> toJson() {
693 var _json = new core.Map(); 715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
694 if (iam != null) { 716 if (iam != null) {
695 _json["iam"] = iam; 717 _json["iam"] = iam;
696 } 718 }
697 if (op != null) { 719 if (op != null) {
698 _json["op"] = op; 720 _json["op"] = op;
699 } 721 }
700 if (svc != null) { 722 if (svc != null) {
701 _json["svc"] = svc; 723 _json["svc"] = svc;
702 } 724 }
703 if (sys != null) { 725 if (sys != null) {
(...skipping 20 matching lines...) Expand all
724 746
725 CounterOptions.fromJson(core.Map _json) { 747 CounterOptions.fromJson(core.Map _json) {
726 if (_json.containsKey("field")) { 748 if (_json.containsKey("field")) {
727 field = _json["field"]; 749 field = _json["field"];
728 } 750 }
729 if (_json.containsKey("metric")) { 751 if (_json.containsKey("metric")) {
730 metric = _json["metric"]; 752 metric = _json["metric"];
731 } 753 }
732 } 754 }
733 755
734 core.Map toJson() { 756 core.Map<core.String, core.Object> toJson() {
735 var _json = new core.Map(); 757 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
736 if (field != null) { 758 if (field != null) {
737 _json["field"] = field; 759 _json["field"] = field;
738 } 760 }
739 if (metric != null) { 761 if (metric != null) {
740 _json["metric"] = metric; 762 _json["metric"] = metric;
741 } 763 }
742 return _json; 764 return _json;
743 } 765 }
744 } 766 }
745 767
746 /** Write a Data Access (Gin) log */ 768 /** Write a Data Access (Gin) log */
747 class DataAccessOptions { 769 class DataAccessOptions {
748 770
749 DataAccessOptions(); 771 DataAccessOptions();
750 772
751 DataAccessOptions.fromJson(core.Map _json) { 773 DataAccessOptions.fromJson(core.Map _json) {
752 } 774 }
753 775
754 core.Map toJson() { 776 core.Map<core.String, core.Object> toJson() {
755 var _json = new core.Map(); 777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
756 return _json; 778 return _json;
757 } 779 }
758 } 780 }
759 781
760 /** 782 /**
761 * A generic empty message that you can re-use to avoid defining duplicated 783 * A generic empty message that you can re-use to avoid defining duplicated
762 * empty messages in your APIs. A typical example is to use it as the request 784 * empty messages in your APIs. A typical example is to use it as the request
763 * or the response type of an API method. For instance: 785 * or the response type of an API method. For instance:
764 * 786 *
765 * service Foo { 787 * service Foo {
766 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 788 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
767 * } 789 * }
768 * 790 *
769 * The JSON representation for `Empty` is empty JSON object `{}`. 791 * The JSON representation for `Empty` is empty JSON object `{}`.
770 */ 792 */
771 class Empty { 793 class Empty {
772 794
773 Empty(); 795 Empty();
774 796
775 Empty.fromJson(core.Map _json) { 797 Empty.fromJson(core.Map _json) {
776 } 798 }
777 799
778 core.Map toJson() { 800 core.Map<core.String, core.Object> toJson() {
779 var _json = new core.Map(); 801 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
780 return _json; 802 return _json;
781 } 803 }
782 } 804 }
783 805
784 /** Response for ListRepos. */ 806 /**
807 * Response for ListRepos. The size is not set in the returned repositories.
808 */
785 class ListReposResponse { 809 class ListReposResponse {
786 /** 810 /**
787 * If non-empty, additional repositories exist within the project. These 811 * If non-empty, additional repositories exist within the project. These
788 * can be retrieved by including this value in the next ListReposRequest's 812 * can be retrieved by including this value in the next ListReposRequest's
789 * page_token field. 813 * page_token field.
790 */ 814 */
791 core.String nextPageToken; 815 core.String nextPageToken;
792 /** The listed repos. */ 816 /** The listed repos. */
793 core.List<Repo> repos; 817 core.List<Repo> repos;
794 818
795 ListReposResponse(); 819 ListReposResponse();
796 820
797 ListReposResponse.fromJson(core.Map _json) { 821 ListReposResponse.fromJson(core.Map _json) {
798 if (_json.containsKey("nextPageToken")) { 822 if (_json.containsKey("nextPageToken")) {
799 nextPageToken = _json["nextPageToken"]; 823 nextPageToken = _json["nextPageToken"];
800 } 824 }
801 if (_json.containsKey("repos")) { 825 if (_json.containsKey("repos")) {
802 repos = _json["repos"].map((value) => new Repo.fromJson(value)).toList(); 826 repos = _json["repos"].map((value) => new Repo.fromJson(value)).toList();
803 } 827 }
804 } 828 }
805 829
806 core.Map toJson() { 830 core.Map<core.String, core.Object> toJson() {
807 var _json = new core.Map(); 831 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
808 if (nextPageToken != null) { 832 if (nextPageToken != null) {
809 _json["nextPageToken"] = nextPageToken; 833 _json["nextPageToken"] = nextPageToken;
810 } 834 }
811 if (repos != null) { 835 if (repos != null) {
812 _json["repos"] = repos.map((value) => (value).toJson()).toList(); 836 _json["repos"] = repos.map((value) => (value).toJson()).toList();
813 } 837 }
814 return _json; 838 return _json;
815 } 839 }
816 } 840 }
817 841
(...skipping 13 matching lines...) Expand all
831 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); 855 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]);
832 } 856 }
833 if (_json.containsKey("counter")) { 857 if (_json.containsKey("counter")) {
834 counter = new CounterOptions.fromJson(_json["counter"]); 858 counter = new CounterOptions.fromJson(_json["counter"]);
835 } 859 }
836 if (_json.containsKey("dataAccess")) { 860 if (_json.containsKey("dataAccess")) {
837 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); 861 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]);
838 } 862 }
839 } 863 }
840 864
841 core.Map toJson() { 865 core.Map<core.String, core.Object> toJson() {
842 var _json = new core.Map(); 866 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
843 if (cloudAudit != null) { 867 if (cloudAudit != null) {
844 _json["cloudAudit"] = (cloudAudit).toJson(); 868 _json["cloudAudit"] = (cloudAudit).toJson();
845 } 869 }
846 if (counter != null) { 870 if (counter != null) {
847 _json["counter"] = (counter).toJson(); 871 _json["counter"] = (counter).toJson();
848 } 872 }
849 if (dataAccess != null) { 873 if (dataAccess != null) {
850 _json["dataAccess"] = (dataAccess).toJson(); 874 _json["dataAccess"] = (dataAccess).toJson();
851 } 875 }
852 return _json; 876 return _json;
(...skipping 28 matching lines...) Expand all
881 deployKeyId = _json["deployKeyId"]; 905 deployKeyId = _json["deployKeyId"];
882 } 906 }
883 if (_json.containsKey("url")) { 907 if (_json.containsKey("url")) {
884 url = _json["url"]; 908 url = _json["url"];
885 } 909 }
886 if (_json.containsKey("webhookId")) { 910 if (_json.containsKey("webhookId")) {
887 webhookId = _json["webhookId"]; 911 webhookId = _json["webhookId"];
888 } 912 }
889 } 913 }
890 914
891 core.Map toJson() { 915 core.Map<core.String, core.Object> toJson() {
892 var _json = new core.Map(); 916 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
893 if (deployKeyId != null) { 917 if (deployKeyId != null) {
894 _json["deployKeyId"] = deployKeyId; 918 _json["deployKeyId"] = deployKeyId;
895 } 919 }
896 if (url != null) { 920 if (url != null) {
897 _json["url"] = url; 921 _json["url"] = url;
898 } 922 }
899 if (webhookId != null) { 923 if (webhookId != null) {
900 _json["webhookId"] = webhookId; 924 _json["webhookId"] = webhookId;
901 } 925 }
902 return _json; 926 return _json;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 iamOwned = _json["iamOwned"]; 1021 iamOwned = _json["iamOwned"];
998 } 1022 }
999 if (_json.containsKey("rules")) { 1023 if (_json.containsKey("rules")) {
1000 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); 1024 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList();
1001 } 1025 }
1002 if (_json.containsKey("version")) { 1026 if (_json.containsKey("version")) {
1003 version = _json["version"]; 1027 version = _json["version"];
1004 } 1028 }
1005 } 1029 }
1006 1030
1007 core.Map toJson() { 1031 core.Map<core.String, core.Object> toJson() {
1008 var _json = new core.Map(); 1032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1009 if (auditConfigs != null) { 1033 if (auditConfigs != null) {
1010 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st(); 1034 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st();
1011 } 1035 }
1012 if (bindings != null) { 1036 if (bindings != null) {
1013 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 1037 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
1014 } 1038 }
1015 if (etag != null) { 1039 if (etag != null) {
1016 _json["etag"] = etag; 1040 _json["etag"] = etag;
1017 } 1041 }
1018 if (iamOwned != null) { 1042 if (iamOwned != null) {
(...skipping 10 matching lines...) Expand all
1029 } 1053 }
1030 1054
1031 /** 1055 /**
1032 * A repository (or repo) is a Git repository storing versioned source content. 1056 * A repository (or repo) is a Git repository storing versioned source content.
1033 */ 1057 */
1034 class Repo { 1058 class Repo {
1035 /** How this repository mirrors a repository managed by another service. */ 1059 /** How this repository mirrors a repository managed by another service. */
1036 MirrorConfig mirrorConfig; 1060 MirrorConfig mirrorConfig;
1037 /** 1061 /**
1038 * Resource name of the repository, of the form 1062 * Resource name of the repository, of the form
1039 * `projects/<project>/repos/<repo>`. 1063 * `projects/<project>/repos/<repo>`. The repo name may contain slashes.
1064 * eg, `projects/myproject/repos/name/with/slash`
1040 */ 1065 */
1041 core.String name; 1066 core.String name;
1042 /** 1067 /**
1043 * The disk usage of the repo, in bytes. 1068 * The disk usage of the repo, in bytes.
1044 * Only returned by GetRepo. 1069 * Only returned by GetRepo.
1045 */ 1070 */
1046 core.String size; 1071 core.String size;
1047 /** URL to clone the repository from Google Cloud Source Repositories. */ 1072 /** URL to clone the repository from Google Cloud Source Repositories. */
1048 core.String url; 1073 core.String url;
1049 1074
1050 Repo(); 1075 Repo();
1051 1076
1052 Repo.fromJson(core.Map _json) { 1077 Repo.fromJson(core.Map _json) {
1053 if (_json.containsKey("mirrorConfig")) { 1078 if (_json.containsKey("mirrorConfig")) {
1054 mirrorConfig = new MirrorConfig.fromJson(_json["mirrorConfig"]); 1079 mirrorConfig = new MirrorConfig.fromJson(_json["mirrorConfig"]);
1055 } 1080 }
1056 if (_json.containsKey("name")) { 1081 if (_json.containsKey("name")) {
1057 name = _json["name"]; 1082 name = _json["name"];
1058 } 1083 }
1059 if (_json.containsKey("size")) { 1084 if (_json.containsKey("size")) {
1060 size = _json["size"]; 1085 size = _json["size"];
1061 } 1086 }
1062 if (_json.containsKey("url")) { 1087 if (_json.containsKey("url")) {
1063 url = _json["url"]; 1088 url = _json["url"];
1064 } 1089 }
1065 } 1090 }
1066 1091
1067 core.Map toJson() { 1092 core.Map<core.String, core.Object> toJson() {
1068 var _json = new core.Map(); 1093 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1069 if (mirrorConfig != null) { 1094 if (mirrorConfig != null) {
1070 _json["mirrorConfig"] = (mirrorConfig).toJson(); 1095 _json["mirrorConfig"] = (mirrorConfig).toJson();
1071 } 1096 }
1072 if (name != null) { 1097 if (name != null) {
1073 _json["name"] = name; 1098 _json["name"] = name;
1074 } 1099 }
1075 if (size != null) { 1100 if (size != null) {
1076 _json["size"] = size; 1101 _json["size"] = size;
1077 } 1102 }
1078 if (url != null) { 1103 if (url != null) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value )).toList(); 1171 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value )).toList();
1147 } 1172 }
1148 if (_json.containsKey("notIn")) { 1173 if (_json.containsKey("notIn")) {
1149 notIn = _json["notIn"]; 1174 notIn = _json["notIn"];
1150 } 1175 }
1151 if (_json.containsKey("permissions")) { 1176 if (_json.containsKey("permissions")) {
1152 permissions = _json["permissions"]; 1177 permissions = _json["permissions"];
1153 } 1178 }
1154 } 1179 }
1155 1180
1156 core.Map toJson() { 1181 core.Map<core.String, core.Object> toJson() {
1157 var _json = new core.Map(); 1182 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1158 if (action != null) { 1183 if (action != null) {
1159 _json["action"] = action; 1184 _json["action"] = action;
1160 } 1185 }
1161 if (conditions != null) { 1186 if (conditions != null) {
1162 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ; 1187 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ;
1163 } 1188 }
1164 if (description != null) { 1189 if (description != null) {
1165 _json["description"] = description; 1190 _json["description"] = description;
1166 } 1191 }
1167 if (in_ != null) { 1192 if (in_ != null) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 1227
1203 SetIamPolicyRequest.fromJson(core.Map _json) { 1228 SetIamPolicyRequest.fromJson(core.Map _json) {
1204 if (_json.containsKey("policy")) { 1229 if (_json.containsKey("policy")) {
1205 policy = new Policy.fromJson(_json["policy"]); 1230 policy = new Policy.fromJson(_json["policy"]);
1206 } 1231 }
1207 if (_json.containsKey("updateMask")) { 1232 if (_json.containsKey("updateMask")) {
1208 updateMask = _json["updateMask"]; 1233 updateMask = _json["updateMask"];
1209 } 1234 }
1210 } 1235 }
1211 1236
1212 core.Map toJson() { 1237 core.Map<core.String, core.Object> toJson() {
1213 var _json = new core.Map(); 1238 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1214 if (policy != null) { 1239 if (policy != null) {
1215 _json["policy"] = (policy).toJson(); 1240 _json["policy"] = (policy).toJson();
1216 } 1241 }
1217 if (updateMask != null) { 1242 if (updateMask != null) {
1218 _json["updateMask"] = updateMask; 1243 _json["updateMask"] = updateMask;
1219 } 1244 }
1220 return _json; 1245 return _json;
1221 } 1246 }
1222 } 1247 }
1223 1248
1224 /** Request message for `TestIamPermissions` method. */ 1249 /** Request message for `TestIamPermissions` method. */
1225 class TestIamPermissionsRequest { 1250 class TestIamPermissionsRequest {
1226 /** 1251 /**
1227 * The set of permissions to check for the `resource`. Permissions with 1252 * The set of permissions to check for the `resource`. Permissions with
1228 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1253 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1229 * information see 1254 * information see
1230 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 1255 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1231 */ 1256 */
1232 core.List<core.String> permissions; 1257 core.List<core.String> permissions;
1233 1258
1234 TestIamPermissionsRequest(); 1259 TestIamPermissionsRequest();
1235 1260
1236 TestIamPermissionsRequest.fromJson(core.Map _json) { 1261 TestIamPermissionsRequest.fromJson(core.Map _json) {
1237 if (_json.containsKey("permissions")) { 1262 if (_json.containsKey("permissions")) {
1238 permissions = _json["permissions"]; 1263 permissions = _json["permissions"];
1239 } 1264 }
1240 } 1265 }
1241 1266
1242 core.Map toJson() { 1267 core.Map<core.String, core.Object> toJson() {
1243 var _json = new core.Map(); 1268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1244 if (permissions != null) { 1269 if (permissions != null) {
1245 _json["permissions"] = permissions; 1270 _json["permissions"] = permissions;
1246 } 1271 }
1247 return _json; 1272 return _json;
1248 } 1273 }
1249 } 1274 }
1250 1275
1251 /** Response message for `TestIamPermissions` method. */ 1276 /** Response message for `TestIamPermissions` method. */
1252 class TestIamPermissionsResponse { 1277 class TestIamPermissionsResponse {
1253 /** 1278 /**
1254 * A subset of `TestPermissionsRequest.permissions` that the caller is 1279 * A subset of `TestPermissionsRequest.permissions` that the caller is
1255 * allowed. 1280 * allowed.
1256 */ 1281 */
1257 core.List<core.String> permissions; 1282 core.List<core.String> permissions;
1258 1283
1259 TestIamPermissionsResponse(); 1284 TestIamPermissionsResponse();
1260 1285
1261 TestIamPermissionsResponse.fromJson(core.Map _json) { 1286 TestIamPermissionsResponse.fromJson(core.Map _json) {
1262 if (_json.containsKey("permissions")) { 1287 if (_json.containsKey("permissions")) {
1263 permissions = _json["permissions"]; 1288 permissions = _json["permissions"];
1264 } 1289 }
1265 } 1290 }
1266 1291
1267 core.Map toJson() { 1292 core.Map<core.String, core.Object> toJson() {
1268 var _json = new core.Map(); 1293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1269 if (permissions != null) { 1294 if (permissions != null) {
1270 _json["permissions"] = permissions; 1295 _json["permissions"] = permissions;
1271 } 1296 }
1272 return _json; 1297 return _json;
1273 } 1298 }
1274 } 1299 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/slides/v1.dart ('k') | generated/googleapis/lib/spanner/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698