OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.serviceuser.v1; | 3 library googleapis.serviceuser.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_1; | 10 import 'package:http/http.dart' as http_1; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); | 349 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); |
350 } | 350 } |
351 if (_json.containsKey("syntax")) { | 351 if (_json.containsKey("syntax")) { |
352 syntax = _json["syntax"]; | 352 syntax = _json["syntax"]; |
353 } | 353 } |
354 if (_json.containsKey("version")) { | 354 if (_json.containsKey("version")) { |
355 version = _json["version"]; | 355 version = _json["version"]; |
356 } | 356 } |
357 } | 357 } |
358 | 358 |
359 core.Map toJson() { | 359 core.Map<core.String, core.Object> toJson() { |
360 var _json = new core.Map(); | 360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
361 if (methods != null) { | 361 if (methods != null) { |
362 _json["methods"] = methods.map((value) => (value).toJson()).toList(); | 362 _json["methods"] = methods.map((value) => (value).toJson()).toList(); |
363 } | 363 } |
364 if (mixins != null) { | 364 if (mixins != null) { |
365 _json["mixins"] = mixins.map((value) => (value).toJson()).toList(); | 365 _json["mixins"] = mixins.map((value) => (value).toJson()).toList(); |
366 } | 366 } |
367 if (name != null) { | 367 if (name != null) { |
368 _json["name"] = name; | 368 _json["name"] = name; |
369 } | 369 } |
370 if (options != null) { | 370 if (options != null) { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 id = _json["id"]; | 447 id = _json["id"]; |
448 } | 448 } |
449 if (_json.containsKey("issuer")) { | 449 if (_json.containsKey("issuer")) { |
450 issuer = _json["issuer"]; | 450 issuer = _json["issuer"]; |
451 } | 451 } |
452 if (_json.containsKey("jwksUri")) { | 452 if (_json.containsKey("jwksUri")) { |
453 jwksUri = _json["jwksUri"]; | 453 jwksUri = _json["jwksUri"]; |
454 } | 454 } |
455 } | 455 } |
456 | 456 |
457 core.Map toJson() { | 457 core.Map<core.String, core.Object> toJson() { |
458 var _json = new core.Map(); | 458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
459 if (audiences != null) { | 459 if (audiences != null) { |
460 _json["audiences"] = audiences; | 460 _json["audiences"] = audiences; |
461 } | 461 } |
462 if (id != null) { | 462 if (id != null) { |
463 _json["id"] = id; | 463 _json["id"] = id; |
464 } | 464 } |
465 if (issuer != null) { | 465 if (issuer != null) { |
466 _json["issuer"] = issuer; | 466 _json["issuer"] = issuer; |
467 } | 467 } |
468 if (jwksUri != null) { | 468 if (jwksUri != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 | 510 |
511 AuthRequirement.fromJson(core.Map _json) { | 511 AuthRequirement.fromJson(core.Map _json) { |
512 if (_json.containsKey("audiences")) { | 512 if (_json.containsKey("audiences")) { |
513 audiences = _json["audiences"]; | 513 audiences = _json["audiences"]; |
514 } | 514 } |
515 if (_json.containsKey("providerId")) { | 515 if (_json.containsKey("providerId")) { |
516 providerId = _json["providerId"]; | 516 providerId = _json["providerId"]; |
517 } | 517 } |
518 } | 518 } |
519 | 519 |
520 core.Map toJson() { | 520 core.Map<core.String, core.Object> toJson() { |
521 var _json = new core.Map(); | 521 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
522 if (audiences != null) { | 522 if (audiences != null) { |
523 _json["audiences"] = audiences; | 523 _json["audiences"] = audiences; |
524 } | 524 } |
525 if (providerId != null) { | 525 if (providerId != null) { |
526 _json["providerId"] = providerId; | 526 _json["providerId"] = providerId; |
527 } | 527 } |
528 return _json; | 528 return _json; |
529 } | 529 } |
530 } | 530 } |
531 | 531 |
(...skipping 27 matching lines...) Expand all Loading... |
559 | 559 |
560 Authentication.fromJson(core.Map _json) { | 560 Authentication.fromJson(core.Map _json) { |
561 if (_json.containsKey("providers")) { | 561 if (_json.containsKey("providers")) { |
562 providers = _json["providers"].map((value) => new AuthProvider.fromJson(va
lue)).toList(); | 562 providers = _json["providers"].map((value) => new AuthProvider.fromJson(va
lue)).toList(); |
563 } | 563 } |
564 if (_json.containsKey("rules")) { | 564 if (_json.containsKey("rules")) { |
565 rules = _json["rules"].map((value) => new AuthenticationRule.fromJson(valu
e)).toList(); | 565 rules = _json["rules"].map((value) => new AuthenticationRule.fromJson(valu
e)).toList(); |
566 } | 566 } |
567 } | 567 } |
568 | 568 |
569 core.Map toJson() { | 569 core.Map<core.String, core.Object> toJson() { |
570 var _json = new core.Map(); | 570 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
571 if (providers != null) { | 571 if (providers != null) { |
572 _json["providers"] = providers.map((value) => (value).toJson()).toList(); | 572 _json["providers"] = providers.map((value) => (value).toJson()).toList(); |
573 } | 573 } |
574 if (rules != null) { | 574 if (rules != null) { |
575 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 575 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
576 } | 576 } |
577 return _json; | 577 return _json; |
578 } | 578 } |
579 } | 579 } |
580 | 580 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 oauth = new OAuthRequirements.fromJson(_json["oauth"]); | 626 oauth = new OAuthRequirements.fromJson(_json["oauth"]); |
627 } | 627 } |
628 if (_json.containsKey("requirements")) { | 628 if (_json.containsKey("requirements")) { |
629 requirements = _json["requirements"].map((value) => new AuthRequirement.fr
omJson(value)).toList(); | 629 requirements = _json["requirements"].map((value) => new AuthRequirement.fr
omJson(value)).toList(); |
630 } | 630 } |
631 if (_json.containsKey("selector")) { | 631 if (_json.containsKey("selector")) { |
632 selector = _json["selector"]; | 632 selector = _json["selector"]; |
633 } | 633 } |
634 } | 634 } |
635 | 635 |
636 core.Map toJson() { | 636 core.Map<core.String, core.Object> toJson() { |
637 var _json = new core.Map(); | 637 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
638 if (allowWithoutCredential != null) { | 638 if (allowWithoutCredential != null) { |
639 _json["allowWithoutCredential"] = allowWithoutCredential; | 639 _json["allowWithoutCredential"] = allowWithoutCredential; |
640 } | 640 } |
641 if (customAuth != null) { | 641 if (customAuth != null) { |
642 _json["customAuth"] = (customAuth).toJson(); | 642 _json["customAuth"] = (customAuth).toJson(); |
643 } | 643 } |
644 if (oauth != null) { | 644 if (oauth != null) { |
645 _json["oauth"] = (oauth).toJson(); | 645 _json["oauth"] = (oauth).toJson(); |
646 } | 646 } |
647 if (requirements != null) { | 647 if (requirements != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
674 core.String provider; | 674 core.String provider; |
675 | 675 |
676 AuthorizationConfig(); | 676 AuthorizationConfig(); |
677 | 677 |
678 AuthorizationConfig.fromJson(core.Map _json) { | 678 AuthorizationConfig.fromJson(core.Map _json) { |
679 if (_json.containsKey("provider")) { | 679 if (_json.containsKey("provider")) { |
680 provider = _json["provider"]; | 680 provider = _json["provider"]; |
681 } | 681 } |
682 } | 682 } |
683 | 683 |
684 core.Map toJson() { | 684 core.Map<core.String, core.Object> toJson() { |
685 var _json = new core.Map(); | 685 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
686 if (provider != null) { | 686 if (provider != null) { |
687 _json["provider"] = provider; | 687 _json["provider"] = provider; |
688 } | 688 } |
689 return _json; | 689 return _json; |
690 } | 690 } |
691 } | 691 } |
692 | 692 |
693 /** `Backend` defines the backend configuration for a service. */ | 693 /** `Backend` defines the backend configuration for a service. */ |
694 class Backend { | 694 class Backend { |
695 /** | 695 /** |
696 * A list of API backend rules that apply to individual API methods. | 696 * A list of API backend rules that apply to individual API methods. |
697 * | 697 * |
698 * **NOTE:** All service configuration rules follow "last one wins" order. | 698 * **NOTE:** All service configuration rules follow "last one wins" order. |
699 */ | 699 */ |
700 core.List<BackendRule> rules; | 700 core.List<BackendRule> rules; |
701 | 701 |
702 Backend(); | 702 Backend(); |
703 | 703 |
704 Backend.fromJson(core.Map _json) { | 704 Backend.fromJson(core.Map _json) { |
705 if (_json.containsKey("rules")) { | 705 if (_json.containsKey("rules")) { |
706 rules = _json["rules"].map((value) => new BackendRule.fromJson(value)).toL
ist(); | 706 rules = _json["rules"].map((value) => new BackendRule.fromJson(value)).toL
ist(); |
707 } | 707 } |
708 } | 708 } |
709 | 709 |
710 core.Map toJson() { | 710 core.Map<core.String, core.Object> toJson() { |
711 var _json = new core.Map(); | 711 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
712 if (rules != null) { | 712 if (rules != null) { |
713 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 713 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
714 } | 714 } |
715 return _json; | 715 return _json; |
716 } | 716 } |
717 } | 717 } |
718 | 718 |
719 /** A backend rule provides configuration for an individual API element. */ | 719 /** A backend rule provides configuration for an individual API element. */ |
720 class BackendRule { | 720 class BackendRule { |
721 /** The address of the API backend. */ | 721 /** The address of the API backend. */ |
(...skipping 25 matching lines...) Expand all Loading... |
747 deadline = _json["deadline"]; | 747 deadline = _json["deadline"]; |
748 } | 748 } |
749 if (_json.containsKey("minDeadline")) { | 749 if (_json.containsKey("minDeadline")) { |
750 minDeadline = _json["minDeadline"]; | 750 minDeadline = _json["minDeadline"]; |
751 } | 751 } |
752 if (_json.containsKey("selector")) { | 752 if (_json.containsKey("selector")) { |
753 selector = _json["selector"]; | 753 selector = _json["selector"]; |
754 } | 754 } |
755 } | 755 } |
756 | 756 |
757 core.Map toJson() { | 757 core.Map<core.String, core.Object> toJson() { |
758 var _json = new core.Map(); | 758 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
759 if (address != null) { | 759 if (address != null) { |
760 _json["address"] = address; | 760 _json["address"] = address; |
761 } | 761 } |
762 if (deadline != null) { | 762 if (deadline != null) { |
763 _json["deadline"] = deadline; | 763 _json["deadline"] = deadline; |
764 } | 764 } |
765 if (minDeadline != null) { | 765 if (minDeadline != null) { |
766 _json["minDeadline"] = minDeadline; | 766 _json["minDeadline"] = minDeadline; |
767 } | 767 } |
768 if (selector != null) { | 768 if (selector != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 core.List<ContextRule> rules; | 800 core.List<ContextRule> rules; |
801 | 801 |
802 Context(); | 802 Context(); |
803 | 803 |
804 Context.fromJson(core.Map _json) { | 804 Context.fromJson(core.Map _json) { |
805 if (_json.containsKey("rules")) { | 805 if (_json.containsKey("rules")) { |
806 rules = _json["rules"].map((value) => new ContextRule.fromJson(value)).toL
ist(); | 806 rules = _json["rules"].map((value) => new ContextRule.fromJson(value)).toL
ist(); |
807 } | 807 } |
808 } | 808 } |
809 | 809 |
810 core.Map toJson() { | 810 core.Map<core.String, core.Object> toJson() { |
811 var _json = new core.Map(); | 811 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
812 if (rules != null) { | 812 if (rules != null) { |
813 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 813 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
814 } | 814 } |
815 return _json; | 815 return _json; |
816 } | 816 } |
817 } | 817 } |
818 | 818 |
819 /** | 819 /** |
820 * A context rule provides information about the context for an individual API | 820 * A context rule provides information about the context for an individual API |
821 * element. | 821 * element. |
(...skipping 17 matching lines...) Expand all Loading... |
839 provided = _json["provided"]; | 839 provided = _json["provided"]; |
840 } | 840 } |
841 if (_json.containsKey("requested")) { | 841 if (_json.containsKey("requested")) { |
842 requested = _json["requested"]; | 842 requested = _json["requested"]; |
843 } | 843 } |
844 if (_json.containsKey("selector")) { | 844 if (_json.containsKey("selector")) { |
845 selector = _json["selector"]; | 845 selector = _json["selector"]; |
846 } | 846 } |
847 } | 847 } |
848 | 848 |
849 core.Map toJson() { | 849 core.Map<core.String, core.Object> toJson() { |
850 var _json = new core.Map(); | 850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
851 if (provided != null) { | 851 if (provided != null) { |
852 _json["provided"] = provided; | 852 _json["provided"] = provided; |
853 } | 853 } |
854 if (requested != null) { | 854 if (requested != null) { |
855 _json["requested"] = requested; | 855 _json["requested"] = requested; |
856 } | 856 } |
857 if (selector != null) { | 857 if (selector != null) { |
858 _json["selector"] = selector; | 858 _json["selector"] = selector; |
859 } | 859 } |
860 return _json; | 860 return _json; |
(...skipping 13 matching lines...) Expand all Loading... |
874 core.String environment; | 874 core.String environment; |
875 | 875 |
876 Control(); | 876 Control(); |
877 | 877 |
878 Control.fromJson(core.Map _json) { | 878 Control.fromJson(core.Map _json) { |
879 if (_json.containsKey("environment")) { | 879 if (_json.containsKey("environment")) { |
880 environment = _json["environment"]; | 880 environment = _json["environment"]; |
881 } | 881 } |
882 } | 882 } |
883 | 883 |
884 core.Map toJson() { | 884 core.Map<core.String, core.Object> toJson() { |
885 var _json = new core.Map(); | 885 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
886 if (environment != null) { | 886 if (environment != null) { |
887 _json["environment"] = environment; | 887 _json["environment"] = environment; |
888 } | 888 } |
889 return _json; | 889 return _json; |
890 } | 890 } |
891 } | 891 } |
892 | 892 |
893 /** Configuration for a custom authentication provider. */ | 893 /** Configuration for a custom authentication provider. */ |
894 class CustomAuthRequirements { | 894 class CustomAuthRequirements { |
895 /** | 895 /** |
896 * A configuration string containing connection information for the | 896 * A configuration string containing connection information for the |
897 * authentication provider, typically formatted as a SmartService string | 897 * authentication provider, typically formatted as a SmartService string |
898 * (go/smartservice). | 898 * (go/smartservice). |
899 */ | 899 */ |
900 core.String provider; | 900 core.String provider; |
901 | 901 |
902 CustomAuthRequirements(); | 902 CustomAuthRequirements(); |
903 | 903 |
904 CustomAuthRequirements.fromJson(core.Map _json) { | 904 CustomAuthRequirements.fromJson(core.Map _json) { |
905 if (_json.containsKey("provider")) { | 905 if (_json.containsKey("provider")) { |
906 provider = _json["provider"]; | 906 provider = _json["provider"]; |
907 } | 907 } |
908 } | 908 } |
909 | 909 |
910 core.Map toJson() { | 910 core.Map<core.String, core.Object> toJson() { |
911 var _json = new core.Map(); | 911 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
912 if (provider != null) { | 912 if (provider != null) { |
913 _json["provider"] = provider; | 913 _json["provider"] = provider; |
914 } | 914 } |
915 return _json; | 915 return _json; |
916 } | 916 } |
917 } | 917 } |
918 | 918 |
919 /** | 919 /** |
920 * Customize service error responses. For example, list any service | 920 * Customize service error responses. For example, list any service |
921 * specific protobuf types that can appear in error detail lists of | 921 * specific protobuf types that can appear in error detail lists of |
(...skipping 22 matching lines...) Expand all Loading... |
944 | 944 |
945 CustomError.fromJson(core.Map _json) { | 945 CustomError.fromJson(core.Map _json) { |
946 if (_json.containsKey("rules")) { | 946 if (_json.containsKey("rules")) { |
947 rules = _json["rules"].map((value) => new CustomErrorRule.fromJson(value))
.toList(); | 947 rules = _json["rules"].map((value) => new CustomErrorRule.fromJson(value))
.toList(); |
948 } | 948 } |
949 if (_json.containsKey("types")) { | 949 if (_json.containsKey("types")) { |
950 types = _json["types"]; | 950 types = _json["types"]; |
951 } | 951 } |
952 } | 952 } |
953 | 953 |
954 core.Map toJson() { | 954 core.Map<core.String, core.Object> toJson() { |
955 var _json = new core.Map(); | 955 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
956 if (rules != null) { | 956 if (rules != null) { |
957 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 957 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
958 } | 958 } |
959 if (types != null) { | 959 if (types != null) { |
960 _json["types"] = types; | 960 _json["types"] = types; |
961 } | 961 } |
962 return _json; | 962 return _json; |
963 } | 963 } |
964 } | 964 } |
965 | 965 |
(...skipping 15 matching lines...) Expand all Loading... |
981 | 981 |
982 CustomErrorRule.fromJson(core.Map _json) { | 982 CustomErrorRule.fromJson(core.Map _json) { |
983 if (_json.containsKey("isErrorType")) { | 983 if (_json.containsKey("isErrorType")) { |
984 isErrorType = _json["isErrorType"]; | 984 isErrorType = _json["isErrorType"]; |
985 } | 985 } |
986 if (_json.containsKey("selector")) { | 986 if (_json.containsKey("selector")) { |
987 selector = _json["selector"]; | 987 selector = _json["selector"]; |
988 } | 988 } |
989 } | 989 } |
990 | 990 |
991 core.Map toJson() { | 991 core.Map<core.String, core.Object> toJson() { |
992 var _json = new core.Map(); | 992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
993 if (isErrorType != null) { | 993 if (isErrorType != null) { |
994 _json["isErrorType"] = isErrorType; | 994 _json["isErrorType"] = isErrorType; |
995 } | 995 } |
996 if (selector != null) { | 996 if (selector != null) { |
997 _json["selector"] = selector; | 997 _json["selector"] = selector; |
998 } | 998 } |
999 return _json; | 999 return _json; |
1000 } | 1000 } |
1001 } | 1001 } |
1002 | 1002 |
1003 /** A custom pattern is used for defining custom HTTP verb. */ | 1003 /** A custom pattern is used for defining custom HTTP verb. */ |
1004 class CustomHttpPattern { | 1004 class CustomHttpPattern { |
1005 /** The name of this custom HTTP verb. */ | 1005 /** The name of this custom HTTP verb. */ |
1006 core.String kind; | 1006 core.String kind; |
1007 /** The path matched by this custom verb. */ | 1007 /** The path matched by this custom verb. */ |
1008 core.String path; | 1008 core.String path; |
1009 | 1009 |
1010 CustomHttpPattern(); | 1010 CustomHttpPattern(); |
1011 | 1011 |
1012 CustomHttpPattern.fromJson(core.Map _json) { | 1012 CustomHttpPattern.fromJson(core.Map _json) { |
1013 if (_json.containsKey("kind")) { | 1013 if (_json.containsKey("kind")) { |
1014 kind = _json["kind"]; | 1014 kind = _json["kind"]; |
1015 } | 1015 } |
1016 if (_json.containsKey("path")) { | 1016 if (_json.containsKey("path")) { |
1017 path = _json["path"]; | 1017 path = _json["path"]; |
1018 } | 1018 } |
1019 } | 1019 } |
1020 | 1020 |
1021 core.Map toJson() { | 1021 core.Map<core.String, core.Object> toJson() { |
1022 var _json = new core.Map(); | 1022 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1023 if (kind != null) { | 1023 if (kind != null) { |
1024 _json["kind"] = kind; | 1024 _json["kind"] = kind; |
1025 } | 1025 } |
1026 if (path != null) { | 1026 if (path != null) { |
1027 _json["path"] = path; | 1027 _json["path"] = path; |
1028 } | 1028 } |
1029 return _json; | 1029 return _json; |
1030 } | 1030 } |
1031 } | 1031 } |
1032 | 1032 |
1033 /** Request message for DisableService method. */ | 1033 /** Request message for DisableService method. */ |
1034 class DisableServiceRequest { | 1034 class DisableServiceRequest { |
1035 | 1035 |
1036 DisableServiceRequest(); | 1036 DisableServiceRequest(); |
1037 | 1037 |
1038 DisableServiceRequest.fromJson(core.Map _json) { | 1038 DisableServiceRequest.fromJson(core.Map _json) { |
1039 } | 1039 } |
1040 | 1040 |
1041 core.Map toJson() { | 1041 core.Map<core.String, core.Object> toJson() { |
1042 var _json = new core.Map(); | 1042 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1043 return _json; | 1043 return _json; |
1044 } | 1044 } |
1045 } | 1045 } |
1046 | 1046 |
1047 /** | 1047 /** |
1048 * `Documentation` provides the information for describing a service. | 1048 * `Documentation` provides the information for describing a service. |
1049 * | 1049 * |
1050 * Example: | 1050 * Example: |
1051 * <pre><code>documentation: | 1051 * <pre><code>documentation: |
1052 * summary: > | 1052 * summary: > |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 pages = _json["pages"].map((value) => new Page.fromJson(value)).toList(); | 1149 pages = _json["pages"].map((value) => new Page.fromJson(value)).toList(); |
1150 } | 1150 } |
1151 if (_json.containsKey("rules")) { | 1151 if (_json.containsKey("rules")) { |
1152 rules = _json["rules"].map((value) => new DocumentationRule.fromJson(value
)).toList(); | 1152 rules = _json["rules"].map((value) => new DocumentationRule.fromJson(value
)).toList(); |
1153 } | 1153 } |
1154 if (_json.containsKey("summary")) { | 1154 if (_json.containsKey("summary")) { |
1155 summary = _json["summary"]; | 1155 summary = _json["summary"]; |
1156 } | 1156 } |
1157 } | 1157 } |
1158 | 1158 |
1159 core.Map toJson() { | 1159 core.Map<core.String, core.Object> toJson() { |
1160 var _json = new core.Map(); | 1160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1161 if (documentationRootUrl != null) { | 1161 if (documentationRootUrl != null) { |
1162 _json["documentationRootUrl"] = documentationRootUrl; | 1162 _json["documentationRootUrl"] = documentationRootUrl; |
1163 } | 1163 } |
1164 if (overview != null) { | 1164 if (overview != null) { |
1165 _json["overview"] = overview; | 1165 _json["overview"] = overview; |
1166 } | 1166 } |
1167 if (pages != null) { | 1167 if (pages != null) { |
1168 _json["pages"] = pages.map((value) => (value).toJson()).toList(); | 1168 _json["pages"] = pages.map((value) => (value).toJson()).toList(); |
1169 } | 1169 } |
1170 if (rules != null) { | 1170 if (rules != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 deprecationDescription = _json["deprecationDescription"]; | 1204 deprecationDescription = _json["deprecationDescription"]; |
1205 } | 1205 } |
1206 if (_json.containsKey("description")) { | 1206 if (_json.containsKey("description")) { |
1207 description = _json["description"]; | 1207 description = _json["description"]; |
1208 } | 1208 } |
1209 if (_json.containsKey("selector")) { | 1209 if (_json.containsKey("selector")) { |
1210 selector = _json["selector"]; | 1210 selector = _json["selector"]; |
1211 } | 1211 } |
1212 } | 1212 } |
1213 | 1213 |
1214 core.Map toJson() { | 1214 core.Map<core.String, core.Object> toJson() { |
1215 var _json = new core.Map(); | 1215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1216 if (deprecationDescription != null) { | 1216 if (deprecationDescription != null) { |
1217 _json["deprecationDescription"] = deprecationDescription; | 1217 _json["deprecationDescription"] = deprecationDescription; |
1218 } | 1218 } |
1219 if (description != null) { | 1219 if (description != null) { |
1220 _json["description"] = description; | 1220 _json["description"] = description; |
1221 } | 1221 } |
1222 if (selector != null) { | 1222 if (selector != null) { |
1223 _json["selector"] = selector; | 1223 _json["selector"] = selector; |
1224 } | 1224 } |
1225 return _json; | 1225 return _json; |
1226 } | 1226 } |
1227 } | 1227 } |
1228 | 1228 |
1229 /** Request message for EnableService method. */ | 1229 /** Request message for EnableService method. */ |
1230 class EnableServiceRequest { | 1230 class EnableServiceRequest { |
1231 | 1231 |
1232 EnableServiceRequest(); | 1232 EnableServiceRequest(); |
1233 | 1233 |
1234 EnableServiceRequest.fromJson(core.Map _json) { | 1234 EnableServiceRequest.fromJson(core.Map _json) { |
1235 } | 1235 } |
1236 | 1236 |
1237 core.Map toJson() { | 1237 core.Map<core.String, core.Object> toJson() { |
1238 var _json = new core.Map(); | 1238 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1239 return _json; | 1239 return _json; |
1240 } | 1240 } |
1241 } | 1241 } |
1242 | 1242 |
1243 /** | 1243 /** |
1244 * `Endpoint` describes a network endpoint that serves a set of APIs. | 1244 * `Endpoint` describes a network endpoint that serves a set of APIs. |
1245 * A service may expose any number of endpoints, and all endpoints share the | 1245 * A service may expose any number of endpoints, and all endpoints share the |
1246 * same service configuration, such as quota configuration and monitoring | 1246 * same service configuration, such as quota configuration and monitoring |
1247 * configuration. | 1247 * configuration. |
1248 * | 1248 * |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 features = _json["features"]; | 1312 features = _json["features"]; |
1313 } | 1313 } |
1314 if (_json.containsKey("name")) { | 1314 if (_json.containsKey("name")) { |
1315 name = _json["name"]; | 1315 name = _json["name"]; |
1316 } | 1316 } |
1317 if (_json.containsKey("target")) { | 1317 if (_json.containsKey("target")) { |
1318 target = _json["target"]; | 1318 target = _json["target"]; |
1319 } | 1319 } |
1320 } | 1320 } |
1321 | 1321 |
1322 core.Map toJson() { | 1322 core.Map<core.String, core.Object> toJson() { |
1323 var _json = new core.Map(); | 1323 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1324 if (aliases != null) { | 1324 if (aliases != null) { |
1325 _json["aliases"] = aliases; | 1325 _json["aliases"] = aliases; |
1326 } | 1326 } |
1327 if (allowCors != null) { | 1327 if (allowCors != null) { |
1328 _json["allowCors"] = allowCors; | 1328 _json["allowCors"] = allowCors; |
1329 } | 1329 } |
1330 if (apis != null) { | 1330 if (apis != null) { |
1331 _json["apis"] = apis; | 1331 _json["apis"] = apis; |
1332 } | 1332 } |
1333 if (features != null) { | 1333 if (features != null) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); | 1374 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); |
1375 } | 1375 } |
1376 if (_json.containsKey("sourceContext")) { | 1376 if (_json.containsKey("sourceContext")) { |
1377 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); | 1377 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); |
1378 } | 1378 } |
1379 if (_json.containsKey("syntax")) { | 1379 if (_json.containsKey("syntax")) { |
1380 syntax = _json["syntax"]; | 1380 syntax = _json["syntax"]; |
1381 } | 1381 } |
1382 } | 1382 } |
1383 | 1383 |
1384 core.Map toJson() { | 1384 core.Map<core.String, core.Object> toJson() { |
1385 var _json = new core.Map(); | 1385 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1386 if (enumvalue != null) { | 1386 if (enumvalue != null) { |
1387 _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); | 1387 _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); |
1388 } | 1388 } |
1389 if (name != null) { | 1389 if (name != null) { |
1390 _json["name"] = name; | 1390 _json["name"] = name; |
1391 } | 1391 } |
1392 if (options != null) { | 1392 if (options != null) { |
1393 _json["options"] = options.map((value) => (value).toJson()).toList(); | 1393 _json["options"] = options.map((value) => (value).toJson()).toList(); |
1394 } | 1394 } |
1395 if (sourceContext != null) { | 1395 if (sourceContext != null) { |
(...skipping 22 matching lines...) Expand all Loading... |
1418 name = _json["name"]; | 1418 name = _json["name"]; |
1419 } | 1419 } |
1420 if (_json.containsKey("number")) { | 1420 if (_json.containsKey("number")) { |
1421 number = _json["number"]; | 1421 number = _json["number"]; |
1422 } | 1422 } |
1423 if (_json.containsKey("options")) { | 1423 if (_json.containsKey("options")) { |
1424 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); | 1424 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); |
1425 } | 1425 } |
1426 } | 1426 } |
1427 | 1427 |
1428 core.Map toJson() { | 1428 core.Map<core.String, core.Object> toJson() { |
1429 var _json = new core.Map(); | 1429 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1430 if (name != null) { | 1430 if (name != null) { |
1431 _json["name"] = name; | 1431 _json["name"] = name; |
1432 } | 1432 } |
1433 if (number != null) { | 1433 if (number != null) { |
1434 _json["number"] = number; | 1434 _json["number"] = number; |
1435 } | 1435 } |
1436 if (options != null) { | 1436 if (options != null) { |
1437 _json["options"] = options.map((value) => (value).toJson()).toList(); | 1437 _json["options"] = options.map((value) => (value).toJson()).toList(); |
1438 } | 1438 } |
1439 return _json; | 1439 return _json; |
1440 } | 1440 } |
1441 } | 1441 } |
1442 | 1442 |
1443 /** | 1443 /** |
1444 * Experimental service configuration. These configuration options can | 1444 * Experimental service configuration. These configuration options can |
1445 * only be used by whitelisted users. | 1445 * only be used by whitelisted users. |
1446 */ | 1446 */ |
1447 class Experimental { | 1447 class Experimental { |
1448 /** Authorization configuration. */ | 1448 /** Authorization configuration. */ |
1449 AuthorizationConfig authorization; | 1449 AuthorizationConfig authorization; |
1450 | 1450 |
1451 Experimental(); | 1451 Experimental(); |
1452 | 1452 |
1453 Experimental.fromJson(core.Map _json) { | 1453 Experimental.fromJson(core.Map _json) { |
1454 if (_json.containsKey("authorization")) { | 1454 if (_json.containsKey("authorization")) { |
1455 authorization = new AuthorizationConfig.fromJson(_json["authorization"]); | 1455 authorization = new AuthorizationConfig.fromJson(_json["authorization"]); |
1456 } | 1456 } |
1457 } | 1457 } |
1458 | 1458 |
1459 core.Map toJson() { | 1459 core.Map<core.String, core.Object> toJson() { |
1460 var _json = new core.Map(); | 1460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1461 if (authorization != null) { | 1461 if (authorization != null) { |
1462 _json["authorization"] = (authorization).toJson(); | 1462 _json["authorization"] = (authorization).toJson(); |
1463 } | 1463 } |
1464 return _json; | 1464 return _json; |
1465 } | 1465 } |
1466 } | 1466 } |
1467 | 1467 |
1468 /** A single field of a message type. */ | 1468 /** A single field of a message type. */ |
1469 class Field { | 1469 class Field { |
1470 /** | 1470 /** |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); | 1553 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); |
1554 } | 1554 } |
1555 if (_json.containsKey("packed")) { | 1555 if (_json.containsKey("packed")) { |
1556 packed = _json["packed"]; | 1556 packed = _json["packed"]; |
1557 } | 1557 } |
1558 if (_json.containsKey("typeUrl")) { | 1558 if (_json.containsKey("typeUrl")) { |
1559 typeUrl = _json["typeUrl"]; | 1559 typeUrl = _json["typeUrl"]; |
1560 } | 1560 } |
1561 } | 1561 } |
1562 | 1562 |
1563 core.Map toJson() { | 1563 core.Map<core.String, core.Object> toJson() { |
1564 var _json = new core.Map(); | 1564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1565 if (cardinality != null) { | 1565 if (cardinality != null) { |
1566 _json["cardinality"] = cardinality; | 1566 _json["cardinality"] = cardinality; |
1567 } | 1567 } |
1568 if (defaultValue != null) { | 1568 if (defaultValue != null) { |
1569 _json["defaultValue"] = defaultValue; | 1569 _json["defaultValue"] = defaultValue; |
1570 } | 1570 } |
1571 if (jsonName != null) { | 1571 if (jsonName != null) { |
1572 _json["jsonName"] = jsonName; | 1572 _json["jsonName"] = jsonName; |
1573 } | 1573 } |
1574 if (kind != null) { | 1574 if (kind != null) { |
(...skipping 15 matching lines...) Expand all Loading... |
1590 _json["packed"] = packed; | 1590 _json["packed"] = packed; |
1591 } | 1591 } |
1592 if (typeUrl != null) { | 1592 if (typeUrl != null) { |
1593 _json["typeUrl"] = typeUrl; | 1593 _json["typeUrl"] = typeUrl; |
1594 } | 1594 } |
1595 return _json; | 1595 return _json; |
1596 } | 1596 } |
1597 } | 1597 } |
1598 | 1598 |
1599 /** | 1599 /** |
1600 * Defines the HTTP configuration for a service. It contains a list of | 1600 * Defines the HTTP configuration for an API service. It contains a list of |
1601 * HttpRule, each specifying the mapping of an RPC method | 1601 * HttpRule, each specifying the mapping of an RPC method |
1602 * to one or more HTTP REST API methods. | 1602 * to one or more HTTP REST API methods. |
1603 */ | 1603 */ |
1604 class Http { | 1604 class Http { |
1605 /** | 1605 /** |
1606 * When set to true, URL path parmeters will be fully URI-decoded except in | 1606 * When set to true, URL path parmeters will be fully URI-decoded except in |
1607 * cases of single segment matches in reserved expansion, where "%2F" will be | 1607 * cases of single segment matches in reserved expansion, where "%2F" will be |
1608 * left encoded. | 1608 * left encoded. |
1609 * | 1609 * |
1610 * The default behavior is to not decode RFC 6570 reserved characters in multi | 1610 * The default behavior is to not decode RFC 6570 reserved characters in multi |
(...skipping 11 matching lines...) Expand all Loading... |
1622 | 1622 |
1623 Http.fromJson(core.Map _json) { | 1623 Http.fromJson(core.Map _json) { |
1624 if (_json.containsKey("fullyDecodeReservedExpansion")) { | 1624 if (_json.containsKey("fullyDecodeReservedExpansion")) { |
1625 fullyDecodeReservedExpansion = _json["fullyDecodeReservedExpansion"]; | 1625 fullyDecodeReservedExpansion = _json["fullyDecodeReservedExpansion"]; |
1626 } | 1626 } |
1627 if (_json.containsKey("rules")) { | 1627 if (_json.containsKey("rules")) { |
1628 rules = _json["rules"].map((value) => new HttpRule.fromJson(value)).toList
(); | 1628 rules = _json["rules"].map((value) => new HttpRule.fromJson(value)).toList
(); |
1629 } | 1629 } |
1630 } | 1630 } |
1631 | 1631 |
1632 core.Map toJson() { | 1632 core.Map<core.String, core.Object> toJson() { |
1633 var _json = new core.Map(); | 1633 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1634 if (fullyDecodeReservedExpansion != null) { | 1634 if (fullyDecodeReservedExpansion != null) { |
1635 _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; | 1635 _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; |
1636 } | 1636 } |
1637 if (rules != null) { | 1637 if (rules != null) { |
1638 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 1638 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
1639 } | 1639 } |
1640 return _json; | 1640 return _json; |
1641 } | 1641 } |
1642 } | 1642 } |
1643 | 1643 |
1644 /** | 1644 /** |
1645 * `HttpRule` defines the mapping of an RPC method to one or more HTTP | 1645 * `HttpRule` defines the mapping of an RPC method to one or more HTTP |
1646 * REST APIs. The mapping determines what portions of the request | 1646 * REST API methods. The mapping specifies how different portions of the RPC |
1647 * message are populated from the path, query parameters, or body of | 1647 * request message are mapped to URL path, URL query parameters, and |
1648 * the HTTP request. The mapping is typically specified as an | 1648 * HTTP request body. The mapping is typically specified as an |
1649 * `google.api.http` annotation, see "google/api/annotations.proto" | 1649 * `google.api.http` annotation on the RPC method, |
1650 * for details. | 1650 * see "google/api/annotations.proto" for details. |
1651 * | 1651 * |
1652 * The mapping consists of a field specifying the path template and | 1652 * The mapping consists of a field specifying the path template and |
1653 * method kind. The path template can refer to fields in the request | 1653 * method kind. The path template can refer to fields in the request |
1654 * message, as in the example below which describes a REST GET | 1654 * message, as in the example below which describes a REST GET |
1655 * operation on a resource collection of messages: | 1655 * operation on a resource collection of messages: |
1656 * | 1656 * |
1657 * | 1657 * |
1658 * service Messaging { | 1658 * service Messaging { |
1659 * rpc GetMessage(GetMessageRequest) returns (Message) { | 1659 * rpc GetMessage(GetMessageRequest) returns (Message) { |
1660 * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; | 1660 * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; |
(...skipping 28 matching lines...) Expand all Loading... |
1689 * | 1689 * |
1690 * In general, not only fields but also field paths can be referenced | 1690 * In general, not only fields but also field paths can be referenced |
1691 * from a path pattern. Fields mapped to the path pattern cannot be | 1691 * from a path pattern. Fields mapped to the path pattern cannot be |
1692 * repeated and must have a primitive (non-message) type. | 1692 * repeated and must have a primitive (non-message) type. |
1693 * | 1693 * |
1694 * Any fields in the request message which are not bound by the path | 1694 * Any fields in the request message which are not bound by the path |
1695 * pattern automatically become (optional) HTTP query | 1695 * pattern automatically become (optional) HTTP query |
1696 * parameters. Assume the following definition of the request message: | 1696 * parameters. Assume the following definition of the request message: |
1697 * | 1697 * |
1698 * | 1698 * |
| 1699 * service Messaging { |
| 1700 * rpc GetMessage(GetMessageRequest) returns (Message) { |
| 1701 * option (google.api.http).get = "/v1/messages/{message_id}"; |
| 1702 * } |
| 1703 * } |
1699 * message GetMessageRequest { | 1704 * message GetMessageRequest { |
1700 * message SubMessage { | 1705 * message SubMessage { |
1701 * string subfield = 1; | 1706 * string subfield = 1; |
1702 * } | 1707 * } |
1703 * string message_id = 1; // mapped to the URL | 1708 * string message_id = 1; // mapped to the URL |
1704 * int64 revision = 2; // becomes a parameter | 1709 * int64 revision = 2; // becomes a parameter |
1705 * SubMessage sub = 3; // `sub.subfield` becomes a parameter | 1710 * SubMessage sub = 3; // `sub.subfield` becomes a parameter |
1706 * } | 1711 * } |
1707 * | 1712 * |
1708 * | 1713 * |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` | 1811 * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` |
1807 * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: | 1812 * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: |
1808 * "123456")` | 1813 * "123456")` |
1809 * | 1814 * |
1810 * # Rules for HTTP mapping | 1815 * # Rules for HTTP mapping |
1811 * | 1816 * |
1812 * The rules for mapping HTTP path, query parameters, and body fields | 1817 * The rules for mapping HTTP path, query parameters, and body fields |
1813 * to the request message are as follows: | 1818 * to the request message are as follows: |
1814 * | 1819 * |
1815 * 1. The `body` field specifies either `*` or a field path, or is | 1820 * 1. The `body` field specifies either `*` or a field path, or is |
1816 * omitted. If omitted, it assumes there is no HTTP body. | 1821 * omitted. If omitted, it indicates there is no HTTP request body. |
1817 * 2. Leaf fields (recursive expansion of nested messages in the | 1822 * 2. Leaf fields (recursive expansion of nested messages in the |
1818 * request) can be classified into three types: | 1823 * request) can be classified into three types: |
1819 * (a) Matched in the URL template. | 1824 * (a) Matched in the URL template. |
1820 * (b) Covered by body (if body is `*`, everything except (a) fields; | 1825 * (b) Covered by body (if body is `*`, everything except (a) fields; |
1821 * else everything under the body field) | 1826 * else everything under the body field) |
1822 * (c) All other fields. | 1827 * (c) All other fields. |
1823 * 3. URL query parameters found in the HTTP request are mapped to (c) fields. | 1828 * 3. URL query parameters found in the HTTP request are mapped to (c) fields. |
1824 * 4. Any body sent with an HTTP request can contain only (b) fields. | 1829 * 4. Any body sent with an HTTP request can contain only (b) fields. |
1825 * | 1830 * |
1826 * The syntax of the path template is as follows: | 1831 * The syntax of the path template is as follows: |
1827 * | 1832 * |
1828 * Template = "/" Segments [ Verb ] ; | 1833 * Template = "/" Segments [ Verb ] ; |
1829 * Segments = Segment { "/" Segment } ; | 1834 * Segments = Segment { "/" Segment } ; |
1830 * Segment = "*" | "**" | LITERAL | Variable ; | 1835 * Segment = "*" | "**" | LITERAL | Variable ; |
1831 * Variable = "{" FieldPath [ "=" Segments ] "}" ; | 1836 * Variable = "{" FieldPath [ "=" Segments ] "}" ; |
1832 * FieldPath = IDENT { "." IDENT } ; | 1837 * FieldPath = IDENT { "." IDENT } ; |
1833 * Verb = ":" LITERAL ; | 1838 * Verb = ":" LITERAL ; |
1834 * | 1839 * |
1835 * The syntax `*` matches a single path segment. It follows the semantics of | 1840 * The syntax `*` matches a single path segment. The syntax `**` matches zero |
1836 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String | 1841 * or more path segments, which must be the last part of the path except the |
1837 * Expansion. | 1842 * `Verb`. The syntax `LITERAL` matches literal text in the path. |
1838 * | 1843 * |
1839 * The syntax `**` matches zero or more path segments. It follows the semantics | 1844 * The syntax `Variable` matches part of the URL path as specified by its |
1840 * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved | 1845 * template. A variable template must not contain other variables. If a variable |
1841 * Expansion. NOTE: it must be the last segment in the path except the Verb. | |
1842 * | |
1843 * The syntax `LITERAL` matches literal text in the URL path. | |
1844 * | |
1845 * The syntax `Variable` matches the entire path as specified by its template; | |
1846 * this nested template must not contain further variables. If a variable | |
1847 * matches a single path segment, its template may be omitted, e.g. `{var}` | 1846 * matches a single path segment, its template may be omitted, e.g. `{var}` |
1848 * is equivalent to `{var=*}`. | 1847 * is equivalent to `{var=*}`. |
1849 * | 1848 * |
| 1849 * If a variable contains exactly one path segment, such as `"{var}"` or |
| 1850 * `"{var=*}"`, when such a variable is expanded into a URL path, all characters |
| 1851 * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the |
| 1852 * Discovery Document as `{var}`. |
| 1853 * |
| 1854 * If a variable contains one or more path segments, such as `"{var=foo / * }"` |
| 1855 * or `"{var=**}"`, when such a variable is expanded into a URL path, all |
| 1856 * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables |
| 1857 * show up in the Discovery Document as `{+var}`. |
| 1858 * |
| 1859 * NOTE: While the single segment variable matches the semantics of |
| 1860 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 |
| 1861 * Simple String Expansion, the multi segment variable **does not** match |
| 1862 * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion |
| 1863 * does not expand special characters like `?` and `#`, which would lead |
| 1864 * to invalid URLs. |
| 1865 * |
1850 * NOTE: the field paths in variables and in the `body` must not refer to | 1866 * NOTE: the field paths in variables and in the `body` must not refer to |
1851 * repeated fields or map fields. | 1867 * repeated fields or map fields. |
1852 * | |
1853 * Use CustomHttpPattern to specify any HTTP method that is not included in the | |
1854 * `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified | |
1855 * for | |
1856 * a given URL path rule. The wild-card rule is useful for services that provide | |
1857 * content to Web (HTML) clients. | |
1858 */ | 1868 */ |
1859 class HttpRule { | 1869 class HttpRule { |
1860 /** | 1870 /** |
1861 * Additional HTTP bindings for the selector. Nested bindings must | 1871 * Additional HTTP bindings for the selector. Nested bindings must |
1862 * not contain an `additional_bindings` field themselves (that is, | 1872 * not contain an `additional_bindings` field themselves (that is, |
1863 * the nesting may only be one level deep). | 1873 * the nesting may only be one level deep). |
1864 */ | 1874 */ |
1865 core.List<HttpRule> additionalBindings; | 1875 core.List<HttpRule> additionalBindings; |
1866 /** | 1876 /** |
1867 * The name of the request field whose value is mapped to the HTTP body, or | 1877 * The name of the request field whose value is mapped to the HTTP body, or |
1868 * `*` for mapping all fields not captured by the path pattern to the HTTP | 1878 * `*` for mapping all fields not captured by the path pattern to the HTTP |
1869 * body. NOTE: the referred field must not be a repeated field and must be | 1879 * body. NOTE: the referred field must not be a repeated field and must be |
1870 * present at the top-level of request message type. | 1880 * present at the top-level of request message type. |
1871 */ | 1881 */ |
1872 core.String body; | 1882 core.String body; |
1873 /** Custom pattern is used for defining custom verbs. */ | 1883 /** |
| 1884 * The custom pattern is used for specifying an HTTP method that is not |
| 1885 * included in the `pattern` field, such as HEAD, or "*" to leave the |
| 1886 * HTTP method unspecified for this rule. The wild-card rule is useful |
| 1887 * for services that provide content to Web (HTML) clients. |
| 1888 */ |
1874 CustomHttpPattern custom; | 1889 CustomHttpPattern custom; |
1875 /** Used for deleting a resource. */ | 1890 /** Used for deleting a resource. */ |
1876 core.String delete; | 1891 core.String delete; |
1877 /** Used for listing and getting information about resources. */ | 1892 /** Used for listing and getting information about resources. */ |
1878 core.String get; | 1893 core.String get; |
1879 /** | 1894 /** |
1880 * Use this only for Scotty Requests. Do not use this for bytestream methods. | 1895 * Use this only for Scotty Requests. Do not use this for bytestream methods. |
1881 * For media support, add instead [][google.bytestream.RestByteStream] as an | 1896 * For media support, add instead [][google.bytestream.RestByteStream] as an |
1882 * API to your configuration. | 1897 * API to your configuration. |
1883 */ | 1898 */ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 * }; | 1931 * }; |
1917 * } | 1932 * } |
1918 * | 1933 * |
1919 * This method has the automatically derived collection name | 1934 * This method has the automatically derived collection name |
1920 * "projects.aggregated". Because, semantically, this rpc is actually an | 1935 * "projects.aggregated". Because, semantically, this rpc is actually an |
1921 * operation on the "projects.addresses" collection, the `rest_collection` | 1936 * operation on the "projects.addresses" collection, the `rest_collection` |
1922 * field is configured to override the derived collection name. | 1937 * field is configured to override the derived collection name. |
1923 */ | 1938 */ |
1924 core.String restCollection; | 1939 core.String restCollection; |
1925 /** | 1940 /** |
| 1941 * Optional. The rest method name is by default derived from the URL |
| 1942 * pattern. If specified, this field overrides the default method name. |
| 1943 * Example: |
| 1944 * |
| 1945 * rpc CreateResource(CreateResourceRequest) |
| 1946 * returns (CreateResourceResponse) { |
| 1947 * option (google.api.http) = { |
| 1948 * post: "/v1/resources", |
| 1949 * body: "resource", |
| 1950 * rest_method_name: "insert" |
| 1951 * }; |
| 1952 * } |
| 1953 * |
| 1954 * This method has the automatically derived rest method name "create", but |
| 1955 * for backwards compatability with apiary, it is specified as insert. |
| 1956 */ |
| 1957 core.String restMethodName; |
| 1958 /** |
1926 * Selects methods to which this rule applies. | 1959 * Selects methods to which this rule applies. |
1927 * | 1960 * |
1928 * Refer to selector for syntax details. | 1961 * Refer to selector for syntax details. |
1929 */ | 1962 */ |
1930 core.String selector; | 1963 core.String selector; |
1931 | 1964 |
1932 HttpRule(); | 1965 HttpRule(); |
1933 | 1966 |
1934 HttpRule.fromJson(core.Map _json) { | 1967 HttpRule.fromJson(core.Map _json) { |
1935 if (_json.containsKey("additionalBindings")) { | 1968 if (_json.containsKey("additionalBindings")) { |
(...skipping 25 matching lines...) Expand all Loading... |
1961 } | 1994 } |
1962 if (_json.containsKey("put")) { | 1995 if (_json.containsKey("put")) { |
1963 put = _json["put"]; | 1996 put = _json["put"]; |
1964 } | 1997 } |
1965 if (_json.containsKey("responseBody")) { | 1998 if (_json.containsKey("responseBody")) { |
1966 responseBody = _json["responseBody"]; | 1999 responseBody = _json["responseBody"]; |
1967 } | 2000 } |
1968 if (_json.containsKey("restCollection")) { | 2001 if (_json.containsKey("restCollection")) { |
1969 restCollection = _json["restCollection"]; | 2002 restCollection = _json["restCollection"]; |
1970 } | 2003 } |
| 2004 if (_json.containsKey("restMethodName")) { |
| 2005 restMethodName = _json["restMethodName"]; |
| 2006 } |
1971 if (_json.containsKey("selector")) { | 2007 if (_json.containsKey("selector")) { |
1972 selector = _json["selector"]; | 2008 selector = _json["selector"]; |
1973 } | 2009 } |
1974 } | 2010 } |
1975 | 2011 |
1976 core.Map toJson() { | 2012 core.Map<core.String, core.Object> toJson() { |
1977 var _json = new core.Map(); | 2013 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1978 if (additionalBindings != null) { | 2014 if (additionalBindings != null) { |
1979 _json["additionalBindings"] = additionalBindings.map((value) => (value).to
Json()).toList(); | 2015 _json["additionalBindings"] = additionalBindings.map((value) => (value).to
Json()).toList(); |
1980 } | 2016 } |
1981 if (body != null) { | 2017 if (body != null) { |
1982 _json["body"] = body; | 2018 _json["body"] = body; |
1983 } | 2019 } |
1984 if (custom != null) { | 2020 if (custom != null) { |
1985 _json["custom"] = (custom).toJson(); | 2021 _json["custom"] = (custom).toJson(); |
1986 } | 2022 } |
1987 if (delete != null) { | 2023 if (delete != null) { |
(...skipping 16 matching lines...) Expand all Loading... |
2004 } | 2040 } |
2005 if (put != null) { | 2041 if (put != null) { |
2006 _json["put"] = put; | 2042 _json["put"] = put; |
2007 } | 2043 } |
2008 if (responseBody != null) { | 2044 if (responseBody != null) { |
2009 _json["responseBody"] = responseBody; | 2045 _json["responseBody"] = responseBody; |
2010 } | 2046 } |
2011 if (restCollection != null) { | 2047 if (restCollection != null) { |
2012 _json["restCollection"] = restCollection; | 2048 _json["restCollection"] = restCollection; |
2013 } | 2049 } |
| 2050 if (restMethodName != null) { |
| 2051 _json["restMethodName"] = restMethodName; |
| 2052 } |
2014 if (selector != null) { | 2053 if (selector != null) { |
2015 _json["selector"] = selector; | 2054 _json["selector"] = selector; |
2016 } | 2055 } |
2017 return _json; | 2056 return _json; |
2018 } | 2057 } |
2019 } | 2058 } |
2020 | 2059 |
2021 /** A description of a label. */ | 2060 /** A description of a label. */ |
2022 class LabelDescriptor { | 2061 class LabelDescriptor { |
2023 /** A human-readable description for the label. */ | 2062 /** A human-readable description for the label. */ |
(...skipping 16 matching lines...) Expand all Loading... |
2040 description = _json["description"]; | 2079 description = _json["description"]; |
2041 } | 2080 } |
2042 if (_json.containsKey("key")) { | 2081 if (_json.containsKey("key")) { |
2043 key = _json["key"]; | 2082 key = _json["key"]; |
2044 } | 2083 } |
2045 if (_json.containsKey("valueType")) { | 2084 if (_json.containsKey("valueType")) { |
2046 valueType = _json["valueType"]; | 2085 valueType = _json["valueType"]; |
2047 } | 2086 } |
2048 } | 2087 } |
2049 | 2088 |
2050 core.Map toJson() { | 2089 core.Map<core.String, core.Object> toJson() { |
2051 var _json = new core.Map(); | 2090 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2052 if (description != null) { | 2091 if (description != null) { |
2053 _json["description"] = description; | 2092 _json["description"] = description; |
2054 } | 2093 } |
2055 if (key != null) { | 2094 if (key != null) { |
2056 _json["key"] = key; | 2095 _json["key"] = key; |
2057 } | 2096 } |
2058 if (valueType != null) { | 2097 if (valueType != null) { |
2059 _json["valueType"] = valueType; | 2098 _json["valueType"] = valueType; |
2060 } | 2099 } |
2061 return _json; | 2100 return _json; |
(...skipping 14 matching lines...) Expand all Loading... |
2076 | 2115 |
2077 ListEnabledServicesResponse.fromJson(core.Map _json) { | 2116 ListEnabledServicesResponse.fromJson(core.Map _json) { |
2078 if (_json.containsKey("nextPageToken")) { | 2117 if (_json.containsKey("nextPageToken")) { |
2079 nextPageToken = _json["nextPageToken"]; | 2118 nextPageToken = _json["nextPageToken"]; |
2080 } | 2119 } |
2081 if (_json.containsKey("services")) { | 2120 if (_json.containsKey("services")) { |
2082 services = _json["services"].map((value) => new PublishedService.fromJson(
value)).toList(); | 2121 services = _json["services"].map((value) => new PublishedService.fromJson(
value)).toList(); |
2083 } | 2122 } |
2084 } | 2123 } |
2085 | 2124 |
2086 core.Map toJson() { | 2125 core.Map<core.String, core.Object> toJson() { |
2087 var _json = new core.Map(); | 2126 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2088 if (nextPageToken != null) { | 2127 if (nextPageToken != null) { |
2089 _json["nextPageToken"] = nextPageToken; | 2128 _json["nextPageToken"] = nextPageToken; |
2090 } | 2129 } |
2091 if (services != null) { | 2130 if (services != null) { |
2092 _json["services"] = services.map((value) => (value).toJson()).toList(); | 2131 _json["services"] = services.map((value) => (value).toJson()).toList(); |
2093 } | 2132 } |
2094 return _json; | 2133 return _json; |
2095 } | 2134 } |
2096 } | 2135 } |
2097 | 2136 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2140 displayName = _json["displayName"]; | 2179 displayName = _json["displayName"]; |
2141 } | 2180 } |
2142 if (_json.containsKey("labels")) { | 2181 if (_json.containsKey("labels")) { |
2143 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); | 2182 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); |
2144 } | 2183 } |
2145 if (_json.containsKey("name")) { | 2184 if (_json.containsKey("name")) { |
2146 name = _json["name"]; | 2185 name = _json["name"]; |
2147 } | 2186 } |
2148 } | 2187 } |
2149 | 2188 |
2150 core.Map toJson() { | 2189 core.Map<core.String, core.Object> toJson() { |
2151 var _json = new core.Map(); | 2190 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2152 if (description != null) { | 2191 if (description != null) { |
2153 _json["description"] = description; | 2192 _json["description"] = description; |
2154 } | 2193 } |
2155 if (displayName != null) { | 2194 if (displayName != null) { |
2156 _json["displayName"] = displayName; | 2195 _json["displayName"] = displayName; |
2157 } | 2196 } |
2158 if (labels != null) { | 2197 if (labels != null) { |
2159 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 2198 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
2160 } | 2199 } |
2161 if (name != null) { | 2200 if (name != null) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2216 | 2255 |
2217 Logging.fromJson(core.Map _json) { | 2256 Logging.fromJson(core.Map _json) { |
2218 if (_json.containsKey("consumerDestinations")) { | 2257 if (_json.containsKey("consumerDestinations")) { |
2219 consumerDestinations = _json["consumerDestinations"].map((value) => new Lo
ggingDestination.fromJson(value)).toList(); | 2258 consumerDestinations = _json["consumerDestinations"].map((value) => new Lo
ggingDestination.fromJson(value)).toList(); |
2220 } | 2259 } |
2221 if (_json.containsKey("producerDestinations")) { | 2260 if (_json.containsKey("producerDestinations")) { |
2222 producerDestinations = _json["producerDestinations"].map((value) => new Lo
ggingDestination.fromJson(value)).toList(); | 2261 producerDestinations = _json["producerDestinations"].map((value) => new Lo
ggingDestination.fromJson(value)).toList(); |
2223 } | 2262 } |
2224 } | 2263 } |
2225 | 2264 |
2226 core.Map toJson() { | 2265 core.Map<core.String, core.Object> toJson() { |
2227 var _json = new core.Map(); | 2266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2228 if (consumerDestinations != null) { | 2267 if (consumerDestinations != null) { |
2229 _json["consumerDestinations"] = consumerDestinations.map((value) => (value
).toJson()).toList(); | 2268 _json["consumerDestinations"] = consumerDestinations.map((value) => (value
).toJson()).toList(); |
2230 } | 2269 } |
2231 if (producerDestinations != null) { | 2270 if (producerDestinations != null) { |
2232 _json["producerDestinations"] = producerDestinations.map((value) => (value
).toJson()).toList(); | 2271 _json["producerDestinations"] = producerDestinations.map((value) => (value
).toJson()).toList(); |
2233 } | 2272 } |
2234 return _json; | 2273 return _json; |
2235 } | 2274 } |
2236 } | 2275 } |
2237 | 2276 |
(...skipping 19 matching lines...) Expand all Loading... |
2257 | 2296 |
2258 LoggingDestination.fromJson(core.Map _json) { | 2297 LoggingDestination.fromJson(core.Map _json) { |
2259 if (_json.containsKey("logs")) { | 2298 if (_json.containsKey("logs")) { |
2260 logs = _json["logs"]; | 2299 logs = _json["logs"]; |
2261 } | 2300 } |
2262 if (_json.containsKey("monitoredResource")) { | 2301 if (_json.containsKey("monitoredResource")) { |
2263 monitoredResource = _json["monitoredResource"]; | 2302 monitoredResource = _json["monitoredResource"]; |
2264 } | 2303 } |
2265 } | 2304 } |
2266 | 2305 |
2267 core.Map toJson() { | 2306 core.Map<core.String, core.Object> toJson() { |
2268 var _json = new core.Map(); | 2307 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2269 if (logs != null) { | 2308 if (logs != null) { |
2270 _json["logs"] = logs; | 2309 _json["logs"] = logs; |
2271 } | 2310 } |
2272 if (monitoredResource != null) { | 2311 if (monitoredResource != null) { |
2273 _json["monitoredResource"] = monitoredResource; | 2312 _json["monitoredResource"] = monitoredResource; |
2274 } | 2313 } |
2275 return _json; | 2314 return _json; |
2276 } | 2315 } |
2277 } | 2316 } |
2278 | 2317 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 enabled = _json["enabled"]; | 2364 enabled = _json["enabled"]; |
2326 } | 2365 } |
2327 if (_json.containsKey("maxDirectDownloadSize")) { | 2366 if (_json.containsKey("maxDirectDownloadSize")) { |
2328 maxDirectDownloadSize = _json["maxDirectDownloadSize"]; | 2367 maxDirectDownloadSize = _json["maxDirectDownloadSize"]; |
2329 } | 2368 } |
2330 if (_json.containsKey("useDirectDownload")) { | 2369 if (_json.containsKey("useDirectDownload")) { |
2331 useDirectDownload = _json["useDirectDownload"]; | 2370 useDirectDownload = _json["useDirectDownload"]; |
2332 } | 2371 } |
2333 } | 2372 } |
2334 | 2373 |
2335 core.Map toJson() { | 2374 core.Map<core.String, core.Object> toJson() { |
2336 var _json = new core.Map(); | 2375 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2337 if (completeNotification != null) { | 2376 if (completeNotification != null) { |
2338 _json["completeNotification"] = completeNotification; | 2377 _json["completeNotification"] = completeNotification; |
2339 } | 2378 } |
2340 if (downloadService != null) { | 2379 if (downloadService != null) { |
2341 _json["downloadService"] = downloadService; | 2380 _json["downloadService"] = downloadService; |
2342 } | 2381 } |
2343 if (dropzone != null) { | 2382 if (dropzone != null) { |
2344 _json["dropzone"] = dropzone; | 2383 _json["dropzone"] = dropzone; |
2345 } | 2384 } |
2346 if (enabled != null) { | 2385 if (enabled != null) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2418 progressNotification = _json["progressNotification"]; | 2457 progressNotification = _json["progressNotification"]; |
2419 } | 2458 } |
2420 if (_json.containsKey("startNotification")) { | 2459 if (_json.containsKey("startNotification")) { |
2421 startNotification = _json["startNotification"]; | 2460 startNotification = _json["startNotification"]; |
2422 } | 2461 } |
2423 if (_json.containsKey("uploadService")) { | 2462 if (_json.containsKey("uploadService")) { |
2424 uploadService = _json["uploadService"]; | 2463 uploadService = _json["uploadService"]; |
2425 } | 2464 } |
2426 } | 2465 } |
2427 | 2466 |
2428 core.Map toJson() { | 2467 core.Map<core.String, core.Object> toJson() { |
2429 var _json = new core.Map(); | 2468 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2430 if (completeNotification != null) { | 2469 if (completeNotification != null) { |
2431 _json["completeNotification"] = completeNotification; | 2470 _json["completeNotification"] = completeNotification; |
2432 } | 2471 } |
2433 if (dropzone != null) { | 2472 if (dropzone != null) { |
2434 _json["dropzone"] = dropzone; | 2473 _json["dropzone"] = dropzone; |
2435 } | 2474 } |
2436 if (enabled != null) { | 2475 if (enabled != null) { |
2437 _json["enabled"] = enabled; | 2476 _json["enabled"] = enabled; |
2438 } | 2477 } |
2439 if (maxSize != null) { | 2478 if (maxSize != null) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 responseStreaming = _json["responseStreaming"]; | 2535 responseStreaming = _json["responseStreaming"]; |
2497 } | 2536 } |
2498 if (_json.containsKey("responseTypeUrl")) { | 2537 if (_json.containsKey("responseTypeUrl")) { |
2499 responseTypeUrl = _json["responseTypeUrl"]; | 2538 responseTypeUrl = _json["responseTypeUrl"]; |
2500 } | 2539 } |
2501 if (_json.containsKey("syntax")) { | 2540 if (_json.containsKey("syntax")) { |
2502 syntax = _json["syntax"]; | 2541 syntax = _json["syntax"]; |
2503 } | 2542 } |
2504 } | 2543 } |
2505 | 2544 |
2506 core.Map toJson() { | 2545 core.Map<core.String, core.Object> toJson() { |
2507 var _json = new core.Map(); | 2546 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2508 if (name != null) { | 2547 if (name != null) { |
2509 _json["name"] = name; | 2548 _json["name"] = name; |
2510 } | 2549 } |
2511 if (options != null) { | 2550 if (options != null) { |
2512 _json["options"] = options.map((value) => (value).toJson()).toList(); | 2551 _json["options"] = options.map((value) => (value).toJson()).toList(); |
2513 } | 2552 } |
2514 if (requestStreaming != null) { | 2553 if (requestStreaming != null) { |
2515 _json["requestStreaming"] = requestStreaming; | 2554 _json["requestStreaming"] = requestStreaming; |
2516 } | 2555 } |
2517 if (requestTypeUrl != null) { | 2556 if (requestTypeUrl != null) { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2694 type = _json["type"]; | 2733 type = _json["type"]; |
2695 } | 2734 } |
2696 if (_json.containsKey("unit")) { | 2735 if (_json.containsKey("unit")) { |
2697 unit = _json["unit"]; | 2736 unit = _json["unit"]; |
2698 } | 2737 } |
2699 if (_json.containsKey("valueType")) { | 2738 if (_json.containsKey("valueType")) { |
2700 valueType = _json["valueType"]; | 2739 valueType = _json["valueType"]; |
2701 } | 2740 } |
2702 } | 2741 } |
2703 | 2742 |
2704 core.Map toJson() { | 2743 core.Map<core.String, core.Object> toJson() { |
2705 var _json = new core.Map(); | 2744 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2706 if (description != null) { | 2745 if (description != null) { |
2707 _json["description"] = description; | 2746 _json["description"] = description; |
2708 } | 2747 } |
2709 if (displayName != null) { | 2748 if (displayName != null) { |
2710 _json["displayName"] = displayName; | 2749 _json["displayName"] = displayName; |
2711 } | 2750 } |
2712 if (labels != null) { | 2751 if (labels != null) { |
2713 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 2752 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
2714 } | 2753 } |
2715 if (metricKind != null) { | 2754 if (metricKind != null) { |
(...skipping 10 matching lines...) Expand all Loading... |
2726 } | 2765 } |
2727 if (valueType != null) { | 2766 if (valueType != null) { |
2728 _json["valueType"] = valueType; | 2767 _json["valueType"] = valueType; |
2729 } | 2768 } |
2730 return _json; | 2769 return _json; |
2731 } | 2770 } |
2732 } | 2771 } |
2733 | 2772 |
2734 /** | 2773 /** |
2735 * Bind API methods to metrics. Binding a method to a metric causes that | 2774 * Bind API methods to metrics. Binding a method to a metric causes that |
2736 * metric's configured quota, billing, and monitoring behaviors to apply to the | 2775 * metric's configured quota behaviors to apply to the method call. |
2737 * method call. | |
2738 * | |
2739 * Used by metric-based quotas only. | |
2740 */ | 2776 */ |
2741 class MetricRule { | 2777 class MetricRule { |
2742 /** | 2778 /** |
2743 * Metrics to update when the selected methods are called, and the associated | 2779 * Metrics to update when the selected methods are called, and the associated |
2744 * cost applied to each metric. | 2780 * cost applied to each metric. |
2745 * | 2781 * |
2746 * The key of the map is the metric name, and the values are the amount | 2782 * The key of the map is the metric name, and the values are the amount |
2747 * increased for the metric against which the quota limits are defined. | 2783 * increased for the metric against which the quota limits are defined. |
2748 * The value must not be negative. | 2784 * The value must not be negative. |
2749 */ | 2785 */ |
2750 core.Map<core.String, core.String> metricCosts; | 2786 core.Map<core.String, core.String> metricCosts; |
2751 /** | 2787 /** |
2752 * Selects the methods to which this rule applies. | 2788 * Selects the methods to which this rule applies. |
2753 * | 2789 * |
2754 * Refer to selector for syntax details. | 2790 * Refer to selector for syntax details. |
2755 */ | 2791 */ |
2756 core.String selector; | 2792 core.String selector; |
2757 | 2793 |
2758 MetricRule(); | 2794 MetricRule(); |
2759 | 2795 |
2760 MetricRule.fromJson(core.Map _json) { | 2796 MetricRule.fromJson(core.Map _json) { |
2761 if (_json.containsKey("metricCosts")) { | 2797 if (_json.containsKey("metricCosts")) { |
2762 metricCosts = _json["metricCosts"]; | 2798 metricCosts = _json["metricCosts"]; |
2763 } | 2799 } |
2764 if (_json.containsKey("selector")) { | 2800 if (_json.containsKey("selector")) { |
2765 selector = _json["selector"]; | 2801 selector = _json["selector"]; |
2766 } | 2802 } |
2767 } | 2803 } |
2768 | 2804 |
2769 core.Map toJson() { | 2805 core.Map<core.String, core.Object> toJson() { |
2770 var _json = new core.Map(); | 2806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2771 if (metricCosts != null) { | 2807 if (metricCosts != null) { |
2772 _json["metricCosts"] = metricCosts; | 2808 _json["metricCosts"] = metricCosts; |
2773 } | 2809 } |
2774 if (selector != null) { | 2810 if (selector != null) { |
2775 _json["selector"] = selector; | 2811 _json["selector"] = selector; |
2776 } | 2812 } |
2777 return _json; | 2813 return _json; |
2778 } | 2814 } |
2779 } | 2815 } |
2780 | 2816 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2870 | 2906 |
2871 Mixin.fromJson(core.Map _json) { | 2907 Mixin.fromJson(core.Map _json) { |
2872 if (_json.containsKey("name")) { | 2908 if (_json.containsKey("name")) { |
2873 name = _json["name"]; | 2909 name = _json["name"]; |
2874 } | 2910 } |
2875 if (_json.containsKey("root")) { | 2911 if (_json.containsKey("root")) { |
2876 root = _json["root"]; | 2912 root = _json["root"]; |
2877 } | 2913 } |
2878 } | 2914 } |
2879 | 2915 |
2880 core.Map toJson() { | 2916 core.Map<core.String, core.Object> toJson() { |
2881 var _json = new core.Map(); | 2917 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2882 if (name != null) { | 2918 if (name != null) { |
2883 _json["name"] = name; | 2919 _json["name"] = name; |
2884 } | 2920 } |
2885 if (root != null) { | 2921 if (root != null) { |
2886 _json["root"] = root; | 2922 _json["root"] = root; |
2887 } | 2923 } |
2888 return _json; | 2924 return _json; |
2889 } | 2925 } |
2890 } | 2926 } |
2891 | 2927 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2948 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); | 2984 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); |
2949 } | 2985 } |
2950 if (_json.containsKey("name")) { | 2986 if (_json.containsKey("name")) { |
2951 name = _json["name"]; | 2987 name = _json["name"]; |
2952 } | 2988 } |
2953 if (_json.containsKey("type")) { | 2989 if (_json.containsKey("type")) { |
2954 type = _json["type"]; | 2990 type = _json["type"]; |
2955 } | 2991 } |
2956 } | 2992 } |
2957 | 2993 |
2958 core.Map toJson() { | 2994 core.Map<core.String, core.Object> toJson() { |
2959 var _json = new core.Map(); | 2995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2960 if (description != null) { | 2996 if (description != null) { |
2961 _json["description"] = description; | 2997 _json["description"] = description; |
2962 } | 2998 } |
2963 if (displayName != null) { | 2999 if (displayName != null) { |
2964 _json["displayName"] = displayName; | 3000 _json["displayName"] = displayName; |
2965 } | 3001 } |
2966 if (labels != null) { | 3002 if (labels != null) { |
2967 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 3003 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
2968 } | 3004 } |
2969 if (name != null) { | 3005 if (name != null) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3035 | 3071 |
3036 Monitoring.fromJson(core.Map _json) { | 3072 Monitoring.fromJson(core.Map _json) { |
3037 if (_json.containsKey("consumerDestinations")) { | 3073 if (_json.containsKey("consumerDestinations")) { |
3038 consumerDestinations = _json["consumerDestinations"].map((value) => new Mo
nitoringDestination.fromJson(value)).toList(); | 3074 consumerDestinations = _json["consumerDestinations"].map((value) => new Mo
nitoringDestination.fromJson(value)).toList(); |
3039 } | 3075 } |
3040 if (_json.containsKey("producerDestinations")) { | 3076 if (_json.containsKey("producerDestinations")) { |
3041 producerDestinations = _json["producerDestinations"].map((value) => new Mo
nitoringDestination.fromJson(value)).toList(); | 3077 producerDestinations = _json["producerDestinations"].map((value) => new Mo
nitoringDestination.fromJson(value)).toList(); |
3042 } | 3078 } |
3043 } | 3079 } |
3044 | 3080 |
3045 core.Map toJson() { | 3081 core.Map<core.String, core.Object> toJson() { |
3046 var _json = new core.Map(); | 3082 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3047 if (consumerDestinations != null) { | 3083 if (consumerDestinations != null) { |
3048 _json["consumerDestinations"] = consumerDestinations.map((value) => (value
).toJson()).toList(); | 3084 _json["consumerDestinations"] = consumerDestinations.map((value) => (value
).toJson()).toList(); |
3049 } | 3085 } |
3050 if (producerDestinations != null) { | 3086 if (producerDestinations != null) { |
3051 _json["producerDestinations"] = producerDestinations.map((value) => (value
).toJson()).toList(); | 3087 _json["producerDestinations"] = producerDestinations.map((value) => (value
).toJson()).toList(); |
3052 } | 3088 } |
3053 return _json; | 3089 return _json; |
3054 } | 3090 } |
3055 } | 3091 } |
3056 | 3092 |
(...skipping 17 matching lines...) Expand all Loading... |
3074 | 3110 |
3075 MonitoringDestination.fromJson(core.Map _json) { | 3111 MonitoringDestination.fromJson(core.Map _json) { |
3076 if (_json.containsKey("metrics")) { | 3112 if (_json.containsKey("metrics")) { |
3077 metrics = _json["metrics"]; | 3113 metrics = _json["metrics"]; |
3078 } | 3114 } |
3079 if (_json.containsKey("monitoredResource")) { | 3115 if (_json.containsKey("monitoredResource")) { |
3080 monitoredResource = _json["monitoredResource"]; | 3116 monitoredResource = _json["monitoredResource"]; |
3081 } | 3117 } |
3082 } | 3118 } |
3083 | 3119 |
3084 core.Map toJson() { | 3120 core.Map<core.String, core.Object> toJson() { |
3085 var _json = new core.Map(); | 3121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3086 if (metrics != null) { | 3122 if (metrics != null) { |
3087 _json["metrics"] = metrics; | 3123 _json["metrics"] = metrics; |
3088 } | 3124 } |
3089 if (monitoredResource != null) { | 3125 if (monitoredResource != null) { |
3090 _json["monitoredResource"] = monitoredResource; | 3126 _json["monitoredResource"] = monitoredResource; |
3091 } | 3127 } |
3092 return _json; | 3128 return _json; |
3093 } | 3129 } |
3094 } | 3130 } |
3095 | 3131 |
(...skipping 30 matching lines...) Expand all Loading... |
3126 core.String canonicalScopes; | 3162 core.String canonicalScopes; |
3127 | 3163 |
3128 OAuthRequirements(); | 3164 OAuthRequirements(); |
3129 | 3165 |
3130 OAuthRequirements.fromJson(core.Map _json) { | 3166 OAuthRequirements.fromJson(core.Map _json) { |
3131 if (_json.containsKey("canonicalScopes")) { | 3167 if (_json.containsKey("canonicalScopes")) { |
3132 canonicalScopes = _json["canonicalScopes"]; | 3168 canonicalScopes = _json["canonicalScopes"]; |
3133 } | 3169 } |
3134 } | 3170 } |
3135 | 3171 |
3136 core.Map toJson() { | 3172 core.Map<core.String, core.Object> toJson() { |
3137 var _json = new core.Map(); | 3173 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3138 if (canonicalScopes != null) { | 3174 if (canonicalScopes != null) { |
3139 _json["canonicalScopes"] = canonicalScopes; | 3175 _json["canonicalScopes"] = canonicalScopes; |
3140 } | 3176 } |
3141 return _json; | 3177 return _json; |
3142 } | 3178 } |
3143 } | 3179 } |
3144 | 3180 |
3145 /** | 3181 /** |
3146 * This resource represents a long-running operation that is the result of a | 3182 * This resource represents a long-running operation that is the result of a |
3147 * network API call. | 3183 * network API call. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3199 metadata = _json["metadata"]; | 3235 metadata = _json["metadata"]; |
3200 } | 3236 } |
3201 if (_json.containsKey("name")) { | 3237 if (_json.containsKey("name")) { |
3202 name = _json["name"]; | 3238 name = _json["name"]; |
3203 } | 3239 } |
3204 if (_json.containsKey("response")) { | 3240 if (_json.containsKey("response")) { |
3205 response = _json["response"]; | 3241 response = _json["response"]; |
3206 } | 3242 } |
3207 } | 3243 } |
3208 | 3244 |
3209 core.Map toJson() { | 3245 core.Map<core.String, core.Object> toJson() { |
3210 var _json = new core.Map(); | 3246 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3211 if (done != null) { | 3247 if (done != null) { |
3212 _json["done"] = done; | 3248 _json["done"] = done; |
3213 } | 3249 } |
3214 if (error != null) { | 3250 if (error != null) { |
3215 _json["error"] = (error).toJson(); | 3251 _json["error"] = (error).toJson(); |
3216 } | 3252 } |
3217 if (metadata != null) { | 3253 if (metadata != null) { |
3218 _json["metadata"] = metadata; | 3254 _json["metadata"] = metadata; |
3219 } | 3255 } |
3220 if (name != null) { | 3256 if (name != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
3251 resourceNames = _json["resourceNames"]; | 3287 resourceNames = _json["resourceNames"]; |
3252 } | 3288 } |
3253 if (_json.containsKey("startTime")) { | 3289 if (_json.containsKey("startTime")) { |
3254 startTime = _json["startTime"]; | 3290 startTime = _json["startTime"]; |
3255 } | 3291 } |
3256 if (_json.containsKey("steps")) { | 3292 if (_json.containsKey("steps")) { |
3257 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList(); | 3293 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList(); |
3258 } | 3294 } |
3259 } | 3295 } |
3260 | 3296 |
3261 core.Map toJson() { | 3297 core.Map<core.String, core.Object> toJson() { |
3262 var _json = new core.Map(); | 3298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3263 if (progressPercentage != null) { | 3299 if (progressPercentage != null) { |
3264 _json["progressPercentage"] = progressPercentage; | 3300 _json["progressPercentage"] = progressPercentage; |
3265 } | 3301 } |
3266 if (resourceNames != null) { | 3302 if (resourceNames != null) { |
3267 _json["resourceNames"] = resourceNames; | 3303 _json["resourceNames"] = resourceNames; |
3268 } | 3304 } |
3269 if (startTime != null) { | 3305 if (startTime != null) { |
3270 _json["startTime"] = startTime; | 3306 _json["startTime"] = startTime; |
3271 } | 3307 } |
3272 if (steps != null) { | 3308 if (steps != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
3303 | 3339 |
3304 Option.fromJson(core.Map _json) { | 3340 Option.fromJson(core.Map _json) { |
3305 if (_json.containsKey("name")) { | 3341 if (_json.containsKey("name")) { |
3306 name = _json["name"]; | 3342 name = _json["name"]; |
3307 } | 3343 } |
3308 if (_json.containsKey("value")) { | 3344 if (_json.containsKey("value")) { |
3309 value = _json["value"]; | 3345 value = _json["value"]; |
3310 } | 3346 } |
3311 } | 3347 } |
3312 | 3348 |
3313 core.Map toJson() { | 3349 core.Map<core.String, core.Object> toJson() { |
3314 var _json = new core.Map(); | 3350 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3315 if (name != null) { | 3351 if (name != null) { |
3316 _json["name"] = name; | 3352 _json["name"] = name; |
3317 } | 3353 } |
3318 if (value != null) { | 3354 if (value != null) { |
3319 _json["value"] = value; | 3355 _json["value"] = value; |
3320 } | 3356 } |
3321 return _json; | 3357 return _json; |
3322 } | 3358 } |
3323 } | 3359 } |
3324 | 3360 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3363 content = _json["content"]; | 3399 content = _json["content"]; |
3364 } | 3400 } |
3365 if (_json.containsKey("name")) { | 3401 if (_json.containsKey("name")) { |
3366 name = _json["name"]; | 3402 name = _json["name"]; |
3367 } | 3403 } |
3368 if (_json.containsKey("subpages")) { | 3404 if (_json.containsKey("subpages")) { |
3369 subpages = _json["subpages"].map((value) => new Page.fromJson(value)).toLi
st(); | 3405 subpages = _json["subpages"].map((value) => new Page.fromJson(value)).toLi
st(); |
3370 } | 3406 } |
3371 } | 3407 } |
3372 | 3408 |
3373 core.Map toJson() { | 3409 core.Map<core.String, core.Object> toJson() { |
3374 var _json = new core.Map(); | 3410 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3375 if (content != null) { | 3411 if (content != null) { |
3376 _json["content"] = content; | 3412 _json["content"] = content; |
3377 } | 3413 } |
3378 if (name != null) { | 3414 if (name != null) { |
3379 _json["name"] = name; | 3415 _json["name"] = name; |
3380 } | 3416 } |
3381 if (subpages != null) { | 3417 if (subpages != null) { |
3382 _json["subpages"] = subpages.map((value) => (value).toJson()).toList(); | 3418 _json["subpages"] = subpages.map((value) => (value).toJson()).toList(); |
3383 } | 3419 } |
3384 return _json; | 3420 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
3404 | 3440 |
3405 PublishedService.fromJson(core.Map _json) { | 3441 PublishedService.fromJson(core.Map _json) { |
3406 if (_json.containsKey("name")) { | 3442 if (_json.containsKey("name")) { |
3407 name = _json["name"]; | 3443 name = _json["name"]; |
3408 } | 3444 } |
3409 if (_json.containsKey("service")) { | 3445 if (_json.containsKey("service")) { |
3410 service = new Service.fromJson(_json["service"]); | 3446 service = new Service.fromJson(_json["service"]); |
3411 } | 3447 } |
3412 } | 3448 } |
3413 | 3449 |
3414 core.Map toJson() { | 3450 core.Map<core.String, core.Object> toJson() { |
3415 var _json = new core.Map(); | 3451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3416 if (name != null) { | 3452 if (name != null) { |
3417 _json["name"] = name; | 3453 _json["name"] = name; |
3418 } | 3454 } |
3419 if (service != null) { | 3455 if (service != null) { |
3420 _json["service"] = (service).toJson(); | 3456 _json["service"] = (service).toJson(); |
3421 } | 3457 } |
3422 return _json; | 3458 return _json; |
3423 } | 3459 } |
3424 } | 3460 } |
3425 | 3461 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3467 * display_name: Read requests | 3503 * display_name: Read requests |
3468 * metric_kind: DELTA | 3504 * metric_kind: DELTA |
3469 * value_type: INT64 | 3505 * value_type: INT64 |
3470 * | 3506 * |
3471 * - name: library.googleapis.com/write_calls | 3507 * - name: library.googleapis.com/write_calls |
3472 * display_name: Write requests | 3508 * display_name: Write requests |
3473 * metric_kind: DELTA | 3509 * metric_kind: DELTA |
3474 * value_type: INT64 | 3510 * value_type: INT64 |
3475 */ | 3511 */ |
3476 class Quota { | 3512 class Quota { |
3477 /** | 3513 /** List of `QuotaLimit` definitions for the service. */ |
3478 * List of `QuotaLimit` definitions for the service. | |
3479 * | |
3480 * Used by metric-based quotas only. | |
3481 */ | |
3482 core.List<QuotaLimit> limits; | 3514 core.List<QuotaLimit> limits; |
3483 /** | 3515 /** |
3484 * List of `MetricRule` definitions, each one mapping a selected method to one | 3516 * List of `MetricRule` definitions, each one mapping a selected method to one |
3485 * or more metrics. | 3517 * or more metrics. |
3486 * | |
3487 * Used by metric-based quotas only. | |
3488 */ | 3518 */ |
3489 core.List<MetricRule> metricRules; | 3519 core.List<MetricRule> metricRules; |
3490 | 3520 |
3491 Quota(); | 3521 Quota(); |
3492 | 3522 |
3493 Quota.fromJson(core.Map _json) { | 3523 Quota.fromJson(core.Map _json) { |
3494 if (_json.containsKey("limits")) { | 3524 if (_json.containsKey("limits")) { |
3495 limits = _json["limits"].map((value) => new QuotaLimit.fromJson(value)).to
List(); | 3525 limits = _json["limits"].map((value) => new QuotaLimit.fromJson(value)).to
List(); |
3496 } | 3526 } |
3497 if (_json.containsKey("metricRules")) { | 3527 if (_json.containsKey("metricRules")) { |
3498 metricRules = _json["metricRules"].map((value) => new MetricRule.fromJson(
value)).toList(); | 3528 metricRules = _json["metricRules"].map((value) => new MetricRule.fromJson(
value)).toList(); |
3499 } | 3529 } |
3500 } | 3530 } |
3501 | 3531 |
3502 core.Map toJson() { | 3532 core.Map<core.String, core.Object> toJson() { |
3503 var _json = new core.Map(); | 3533 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3504 if (limits != null) { | 3534 if (limits != null) { |
3505 _json["limits"] = limits.map((value) => (value).toJson()).toList(); | 3535 _json["limits"] = limits.map((value) => (value).toJson()).toList(); |
3506 } | 3536 } |
3507 if (metricRules != null) { | 3537 if (metricRules != null) { |
3508 _json["metricRules"] = metricRules.map((value) => (value).toJson()).toList
(); | 3538 _json["metricRules"] = metricRules.map((value) => (value).toJson()).toList
(); |
3509 } | 3539 } |
3510 return _json; | 3540 return _json; |
3511 } | 3541 } |
3512 } | 3542 } |
3513 | 3543 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3580 * the same metric will be checked together during runtime. The metric must be | 3610 * the same metric will be checked together during runtime. The metric must be |
3581 * defined within the service config. | 3611 * defined within the service config. |
3582 * | 3612 * |
3583 * Used by metric-based quotas only. | 3613 * Used by metric-based quotas only. |
3584 */ | 3614 */ |
3585 core.String metric; | 3615 core.String metric; |
3586 /** | 3616 /** |
3587 * Name of the quota limit. The name is used to refer to the limit when | 3617 * Name of the quota limit. The name is used to refer to the limit when |
3588 * overriding the default limit on per-consumer basis. | 3618 * overriding the default limit on per-consumer basis. |
3589 * | 3619 * |
3590 * For group-based quota limits, the name must be unique within the quota | |
3591 * group. If a name is not provided, it will be generated from the limit_by | |
3592 * and duration fields. | |
3593 * | |
3594 * For metric-based quota limits, the name must be provided, and it must be | 3620 * For metric-based quota limits, the name must be provided, and it must be |
3595 * unique within the service. The name can only include alphanumeric | 3621 * unique within the service. The name can only include alphanumeric |
3596 * characters as well as '-'. | 3622 * characters as well as '-'. |
3597 * | 3623 * |
3598 * The maximum length of the limit name is 64 characters. | 3624 * The maximum length of the limit name is 64 characters. |
3599 * | 3625 * |
3600 * The name of a limit is used as a unique identifier for this limit. | 3626 * The name of a limit is used as a unique identifier for this limit. |
3601 * Therefore, once a limit has been put into use, its name should be | 3627 * Therefore, once a limit has been put into use, its name should be |
3602 * immutable. You can use the display_name field to provide a user-friendly | 3628 * immutable. You can use the display_name field to provide a user-friendly |
3603 * name for the limit. The display name can be evolved over time without | 3629 * name for the limit. The display name can be evolved over time without |
3604 * affecting the identity of the limit. | 3630 * affecting the identity of the limit. |
3605 */ | 3631 */ |
3606 core.String name; | 3632 core.String name; |
3607 /** | 3633 /** |
3608 * Specify the unit of the quota limit. It uses the same syntax as | 3634 * Specify the unit of the quota limit. It uses the same syntax as |
3609 * Metric.unit. The supported unit kinds are determined by the quota | 3635 * Metric.unit. The supported unit kinds are determined by the quota |
3610 * backend system. | 3636 * backend system. |
3611 * | 3637 * |
3612 * The [Google Service Control](https://cloud.google.com/service-control) | 3638 * The [Google Service Control](https://cloud.google.com/service-control) |
3613 * supports the following unit components: | 3639 * supports the following unit components: |
3614 * * One of the time intevals: | 3640 * * One of the time intevals: |
3615 * * "/min" for quota every minute. | 3641 * * "/min" for quota every minute. |
3616 * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. | 3642 * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. |
3617 * * Otherwise the quota won't be reset by time, such as storage limit. | 3643 * * Otherwise the quota won't be reset by time, such as storage limit. |
3618 * * One and only one of the granted containers: | 3644 * * One and only one of the granted containers: |
3619 * * "/{organization}" quota for an organization. | 3645 * * "/{project}" quota for a project |
3620 * * "/{project}" quota for a project. | |
3621 * * "/{folder}" quota for a folder. | |
3622 * * "/{resource}" quota for a universal resource. | |
3623 * * Zero or more quota segmentation dimension. Not all combos are valid. | |
3624 * * "/{region}" quota for every region. Not to be used with time intervals. | |
3625 * * Otherwise the resources granted on the target is not segmented. | |
3626 * * "/{zone}" quota for every zone. Not to be used with time intervals. | |
3627 * * Otherwise the resources granted on the target is not segmented. | |
3628 * * "/{resource}" quota for a resource associated with a project or org. | |
3629 * | 3646 * |
3630 * Here are some examples: | 3647 * Here are some examples: |
3631 * * "1/min/{project}" for quota per minute per project. | 3648 * * "1/min/{project}" for quota per minute per project. |
3632 * * "1/min/{user}" for quota per minute per user. | |
3633 * * "1/min/{organization}" for quota per minute per organization. | |
3634 * | 3649 * |
3635 * Note: the order of unit components is insignificant. | 3650 * Note: the order of unit components is insignificant. |
3636 * The "1" at the beginning is required to follow the metric unit syntax. | 3651 * The "1" at the beginning is required to follow the metric unit syntax. |
3637 * | 3652 * |
3638 * Used by metric-based quotas only. | 3653 * Used by metric-based quotas only. |
3639 */ | 3654 */ |
3640 core.String unit; | 3655 core.String unit; |
3641 /** | 3656 /** Tiered limit values, currently only STANDARD is supported. */ |
3642 * Tiered limit values. Also allows for regional or zone overrides for these | |
3643 * values if "/{region}" or "/{zone}" is specified in the unit field. | |
3644 * | |
3645 * Currently supported tiers from low to high: | |
3646 * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH | |
3647 * | |
3648 * To apply different limit values for users according to their tiers, specify | |
3649 * the values for the tiers you want to differentiate. For example: | |
3650 * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} | |
3651 * | |
3652 * The limit value for each tier is optional except for the tier STANDARD. | |
3653 * The limit value for an unspecified tier falls to the value of its next | |
3654 * tier towards tier STANDARD. For the above example, the limit value for tier | |
3655 * STANDARD is 500. | |
3656 * | |
3657 * To apply the same limit value for all users, just specify limit value for | |
3658 * tier STANDARD. For example: {STANDARD:500}. | |
3659 * | |
3660 * To apply a regional overide for a tier, add a map entry with key | |
3661 * "<TIER>/<region>", where <region> is a region name. Similarly, for a zone | |
3662 * override, add a map entry with key "<TIER>/{zone}". | |
3663 * Further, a wildcard can be used at the end of a zone name in order to | |
3664 * specify zone level overrides. For example: | |
3665 * LOW: 10, STANDARD: 50, HIGH: 100, | |
3666 * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, | |
3667 * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 | |
3668 * | |
3669 * The regional overrides tier set for each region must be the same as | |
3670 * the tier set for default limit values. Same rule applies for zone overrides | |
3671 * tier as well. | |
3672 * | |
3673 * Used by metric-based quotas only. | |
3674 */ | |
3675 core.Map<core.String, core.String> values; | 3657 core.Map<core.String, core.String> values; |
3676 | 3658 |
3677 QuotaLimit(); | 3659 QuotaLimit(); |
3678 | 3660 |
3679 QuotaLimit.fromJson(core.Map _json) { | 3661 QuotaLimit.fromJson(core.Map _json) { |
3680 if (_json.containsKey("defaultLimit")) { | 3662 if (_json.containsKey("defaultLimit")) { |
3681 defaultLimit = _json["defaultLimit"]; | 3663 defaultLimit = _json["defaultLimit"]; |
3682 } | 3664 } |
3683 if (_json.containsKey("description")) { | 3665 if (_json.containsKey("description")) { |
3684 description = _json["description"]; | 3666 description = _json["description"]; |
(...skipping 17 matching lines...) Expand all Loading... |
3702 name = _json["name"]; | 3684 name = _json["name"]; |
3703 } | 3685 } |
3704 if (_json.containsKey("unit")) { | 3686 if (_json.containsKey("unit")) { |
3705 unit = _json["unit"]; | 3687 unit = _json["unit"]; |
3706 } | 3688 } |
3707 if (_json.containsKey("values")) { | 3689 if (_json.containsKey("values")) { |
3708 values = _json["values"]; | 3690 values = _json["values"]; |
3709 } | 3691 } |
3710 } | 3692 } |
3711 | 3693 |
3712 core.Map toJson() { | 3694 core.Map<core.String, core.Object> toJson() { |
3713 var _json = new core.Map(); | 3695 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3714 if (defaultLimit != null) { | 3696 if (defaultLimit != null) { |
3715 _json["defaultLimit"] = defaultLimit; | 3697 _json["defaultLimit"] = defaultLimit; |
3716 } | 3698 } |
3717 if (description != null) { | 3699 if (description != null) { |
3718 _json["description"] = description; | 3700 _json["description"] = description; |
3719 } | 3701 } |
3720 if (displayName != null) { | 3702 if (displayName != null) { |
3721 _json["displayName"] = displayName; | 3703 _json["displayName"] = displayName; |
3722 } | 3704 } |
3723 if (duration != null) { | 3705 if (duration != null) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3759 | 3741 |
3760 SearchServicesResponse.fromJson(core.Map _json) { | 3742 SearchServicesResponse.fromJson(core.Map _json) { |
3761 if (_json.containsKey("nextPageToken")) { | 3743 if (_json.containsKey("nextPageToken")) { |
3762 nextPageToken = _json["nextPageToken"]; | 3744 nextPageToken = _json["nextPageToken"]; |
3763 } | 3745 } |
3764 if (_json.containsKey("services")) { | 3746 if (_json.containsKey("services")) { |
3765 services = _json["services"].map((value) => new PublishedService.fromJson(
value)).toList(); | 3747 services = _json["services"].map((value) => new PublishedService.fromJson(
value)).toList(); |
3766 } | 3748 } |
3767 } | 3749 } |
3768 | 3750 |
3769 core.Map toJson() { | 3751 core.Map<core.String, core.Object> toJson() { |
3770 var _json = new core.Map(); | 3752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3771 if (nextPageToken != null) { | 3753 if (nextPageToken != null) { |
3772 _json["nextPageToken"] = nextPageToken; | 3754 _json["nextPageToken"] = nextPageToken; |
3773 } | 3755 } |
3774 if (services != null) { | 3756 if (services != null) { |
3775 _json["services"] = services.map((value) => (value).toJson()).toList(); | 3757 _json["services"] = services.map((value) => (value).toJson()).toList(); |
3776 } | 3758 } |
3777 return _json; | 3759 return _json; |
3778 } | 3760 } |
3779 } | 3761 } |
3780 | 3762 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3868 * by the Service.monitoring and Service.logging configurations. | 3850 * by the Service.monitoring and Service.logging configurations. |
3869 */ | 3851 */ |
3870 core.List<MonitoredResourceDescriptor> monitoredResources; | 3852 core.List<MonitoredResourceDescriptor> monitoredResources; |
3871 /** Monitoring configuration. */ | 3853 /** Monitoring configuration. */ |
3872 Monitoring monitoring; | 3854 Monitoring monitoring; |
3873 /** | 3855 /** |
3874 * The DNS address at which this service is available, | 3856 * The DNS address at which this service is available, |
3875 * e.g. `calendar.googleapis.com`. | 3857 * e.g. `calendar.googleapis.com`. |
3876 */ | 3858 */ |
3877 core.String name; | 3859 core.String name; |
3878 /** | 3860 /** The Google project that owns this service. */ |
3879 * The id of the Google developer project that owns the service. | |
3880 * Members of this project can manage the service configuration, | |
3881 * manage consumption of the service, etc. | |
3882 */ | |
3883 core.String producerProjectId; | 3861 core.String producerProjectId; |
3884 /** Quota configuration. */ | 3862 /** Quota configuration. */ |
3885 Quota quota; | 3863 Quota quota; |
3886 /** | 3864 /** |
3887 * Output only. The source information for this configuration if available. | 3865 * Output only. The source information for this configuration if available. |
3888 */ | 3866 */ |
3889 SourceInfo sourceInfo; | 3867 SourceInfo sourceInfo; |
3890 /** System parameter configuration. */ | 3868 /** System parameter configuration. */ |
3891 SystemParameters systemParameters; | 3869 SystemParameters systemParameters; |
3892 /** | 3870 /** |
3893 * A list of all proto message types included in this API service. | 3871 * A list of all proto message types included in this API service. |
3894 * It serves similar purpose as [google.api.Service.types], except that | 3872 * It serves similar purpose as [google.api.Service.types], except that |
3895 * these types are not needed by user-defined APIs. Therefore, they will not | 3873 * these types are not needed by user-defined APIs. Therefore, they will not |
3896 * show up in the generated discovery doc. This field should only be used | 3874 * show up in the generated discovery doc. This field should only be used |
3897 * to define system APIs in ESF. | 3875 * to define system APIs in ESF. |
3898 */ | 3876 */ |
3899 core.List<Type> systemTypes; | 3877 core.List<Type> systemTypes; |
3900 /** The product title associated with this service. */ | 3878 /** The product title for this service. */ |
3901 core.String title; | 3879 core.String title; |
3902 /** | 3880 /** |
3903 * A list of all proto message types included in this API service. | 3881 * A list of all proto message types included in this API service. |
3904 * Types referenced directly or indirectly by the `apis` are | 3882 * Types referenced directly or indirectly by the `apis` are |
3905 * automatically included. Messages which are not referenced but | 3883 * automatically included. Messages which are not referenced but |
3906 * shall be included, such as types used by the `google.protobuf.Any` type, | 3884 * shall be included, such as types used by the `google.protobuf.Any` type, |
3907 * should be listed here by name. Example: | 3885 * should be listed here by name. Example: |
3908 * | 3886 * |
3909 * types: | 3887 * types: |
3910 * - name: google.protobuf.Int32 | 3888 * - name: google.protobuf.Int32 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3997 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); | 3975 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); |
3998 } | 3976 } |
3999 if (_json.containsKey("usage")) { | 3977 if (_json.containsKey("usage")) { |
4000 usage = new Usage.fromJson(_json["usage"]); | 3978 usage = new Usage.fromJson(_json["usage"]); |
4001 } | 3979 } |
4002 if (_json.containsKey("visibility")) { | 3980 if (_json.containsKey("visibility")) { |
4003 visibility = new Visibility.fromJson(_json["visibility"]); | 3981 visibility = new Visibility.fromJson(_json["visibility"]); |
4004 } | 3982 } |
4005 } | 3983 } |
4006 | 3984 |
4007 core.Map toJson() { | 3985 core.Map<core.String, core.Object> toJson() { |
4008 var _json = new core.Map(); | 3986 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4009 if (apis != null) { | 3987 if (apis != null) { |
4010 _json["apis"] = apis.map((value) => (value).toJson()).toList(); | 3988 _json["apis"] = apis.map((value) => (value).toJson()).toList(); |
4011 } | 3989 } |
4012 if (authentication != null) { | 3990 if (authentication != null) { |
4013 _json["authentication"] = (authentication).toJson(); | 3991 _json["authentication"] = (authentication).toJson(); |
4014 } | 3992 } |
4015 if (backend != null) { | 3993 if (backend != null) { |
4016 _json["backend"] = (backend).toJson(); | 3994 _json["backend"] = (backend).toJson(); |
4017 } | 3995 } |
4018 if (configVersion != null) { | 3996 if (configVersion != null) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4106 core.String fileName; | 4084 core.String fileName; |
4107 | 4085 |
4108 SourceContext(); | 4086 SourceContext(); |
4109 | 4087 |
4110 SourceContext.fromJson(core.Map _json) { | 4088 SourceContext.fromJson(core.Map _json) { |
4111 if (_json.containsKey("fileName")) { | 4089 if (_json.containsKey("fileName")) { |
4112 fileName = _json["fileName"]; | 4090 fileName = _json["fileName"]; |
4113 } | 4091 } |
4114 } | 4092 } |
4115 | 4093 |
4116 core.Map toJson() { | 4094 core.Map<core.String, core.Object> toJson() { |
4117 var _json = new core.Map(); | 4095 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4118 if (fileName != null) { | 4096 if (fileName != null) { |
4119 _json["fileName"] = fileName; | 4097 _json["fileName"] = fileName; |
4120 } | 4098 } |
4121 return _json; | 4099 return _json; |
4122 } | 4100 } |
4123 } | 4101 } |
4124 | 4102 |
4125 /** Source information used to create a Service Config */ | 4103 /** Source information used to create a Service Config */ |
4126 class SourceInfo { | 4104 class SourceInfo { |
4127 /** | 4105 /** |
4128 * All files used during config generation. | 4106 * All files used during config generation. |
4129 * | 4107 * |
4130 * The values for Object must be JSON objects. It can consist of `num`, | 4108 * The values for Object must be JSON objects. It can consist of `num`, |
4131 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4109 * `String`, `bool` and `null` as well as `Map` and `List` values. |
4132 */ | 4110 */ |
4133 core.List<core.Map<core.String, core.Object>> sourceFiles; | 4111 core.List<core.Map<core.String, core.Object>> sourceFiles; |
4134 | 4112 |
4135 SourceInfo(); | 4113 SourceInfo(); |
4136 | 4114 |
4137 SourceInfo.fromJson(core.Map _json) { | 4115 SourceInfo.fromJson(core.Map _json) { |
4138 if (_json.containsKey("sourceFiles")) { | 4116 if (_json.containsKey("sourceFiles")) { |
4139 sourceFiles = _json["sourceFiles"]; | 4117 sourceFiles = _json["sourceFiles"]; |
4140 } | 4118 } |
4141 } | 4119 } |
4142 | 4120 |
4143 core.Map toJson() { | 4121 core.Map<core.String, core.Object> toJson() { |
4144 var _json = new core.Map(); | 4122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4145 if (sourceFiles != null) { | 4123 if (sourceFiles != null) { |
4146 _json["sourceFiles"] = sourceFiles; | 4124 _json["sourceFiles"] = sourceFiles; |
4147 } | 4125 } |
4148 return _json; | 4126 return _json; |
4149 } | 4127 } |
4150 } | 4128 } |
4151 | 4129 |
4152 /** | 4130 /** |
4153 * The `Status` type defines a logical error model that is suitable for | 4131 * The `Status` type defines a logical error model that is suitable for |
4154 * different | 4132 * different |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4230 code = _json["code"]; | 4208 code = _json["code"]; |
4231 } | 4209 } |
4232 if (_json.containsKey("details")) { | 4210 if (_json.containsKey("details")) { |
4233 details = _json["details"]; | 4211 details = _json["details"]; |
4234 } | 4212 } |
4235 if (_json.containsKey("message")) { | 4213 if (_json.containsKey("message")) { |
4236 message = _json["message"]; | 4214 message = _json["message"]; |
4237 } | 4215 } |
4238 } | 4216 } |
4239 | 4217 |
4240 core.Map toJson() { | 4218 core.Map<core.String, core.Object> toJson() { |
4241 var _json = new core.Map(); | 4219 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4242 if (code != null) { | 4220 if (code != null) { |
4243 _json["code"] = code; | 4221 _json["code"] = code; |
4244 } | 4222 } |
4245 if (details != null) { | 4223 if (details != null) { |
4246 _json["details"] = details; | 4224 _json["details"] = details; |
4247 } | 4225 } |
4248 if (message != null) { | 4226 if (message != null) { |
4249 _json["message"] = message; | 4227 _json["message"] = message; |
4250 } | 4228 } |
4251 return _json; | 4229 return _json; |
(...skipping 22 matching lines...) Expand all Loading... |
4274 | 4252 |
4275 Step.fromJson(core.Map _json) { | 4253 Step.fromJson(core.Map _json) { |
4276 if (_json.containsKey("description")) { | 4254 if (_json.containsKey("description")) { |
4277 description = _json["description"]; | 4255 description = _json["description"]; |
4278 } | 4256 } |
4279 if (_json.containsKey("status")) { | 4257 if (_json.containsKey("status")) { |
4280 status = _json["status"]; | 4258 status = _json["status"]; |
4281 } | 4259 } |
4282 } | 4260 } |
4283 | 4261 |
4284 core.Map toJson() { | 4262 core.Map<core.String, core.Object> toJson() { |
4285 var _json = new core.Map(); | 4263 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4286 if (description != null) { | 4264 if (description != null) { |
4287 _json["description"] = description; | 4265 _json["description"] = description; |
4288 } | 4266 } |
4289 if (status != null) { | 4267 if (status != null) { |
4290 _json["status"] = status; | 4268 _json["status"] = status; |
4291 } | 4269 } |
4292 return _json; | 4270 return _json; |
4293 } | 4271 } |
4294 } | 4272 } |
4295 | 4273 |
(...skipping 25 matching lines...) Expand all Loading... |
4321 httpHeader = _json["httpHeader"]; | 4299 httpHeader = _json["httpHeader"]; |
4322 } | 4300 } |
4323 if (_json.containsKey("name")) { | 4301 if (_json.containsKey("name")) { |
4324 name = _json["name"]; | 4302 name = _json["name"]; |
4325 } | 4303 } |
4326 if (_json.containsKey("urlQueryParameter")) { | 4304 if (_json.containsKey("urlQueryParameter")) { |
4327 urlQueryParameter = _json["urlQueryParameter"]; | 4305 urlQueryParameter = _json["urlQueryParameter"]; |
4328 } | 4306 } |
4329 } | 4307 } |
4330 | 4308 |
4331 core.Map toJson() { | 4309 core.Map<core.String, core.Object> toJson() { |
4332 var _json = new core.Map(); | 4310 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4333 if (httpHeader != null) { | 4311 if (httpHeader != null) { |
4334 _json["httpHeader"] = httpHeader; | 4312 _json["httpHeader"] = httpHeader; |
4335 } | 4313 } |
4336 if (name != null) { | 4314 if (name != null) { |
4337 _json["name"] = name; | 4315 _json["name"] = name; |
4338 } | 4316 } |
4339 if (urlQueryParameter != null) { | 4317 if (urlQueryParameter != null) { |
4340 _json["urlQueryParameter"] = urlQueryParameter; | 4318 _json["urlQueryParameter"] = urlQueryParameter; |
4341 } | 4319 } |
4342 return _json; | 4320 return _json; |
(...skipping 25 matching lines...) Expand all Loading... |
4368 | 4346 |
4369 SystemParameterRule.fromJson(core.Map _json) { | 4347 SystemParameterRule.fromJson(core.Map _json) { |
4370 if (_json.containsKey("parameters")) { | 4348 if (_json.containsKey("parameters")) { |
4371 parameters = _json["parameters"].map((value) => new SystemParameter.fromJs
on(value)).toList(); | 4349 parameters = _json["parameters"].map((value) => new SystemParameter.fromJs
on(value)).toList(); |
4372 } | 4350 } |
4373 if (_json.containsKey("selector")) { | 4351 if (_json.containsKey("selector")) { |
4374 selector = _json["selector"]; | 4352 selector = _json["selector"]; |
4375 } | 4353 } |
4376 } | 4354 } |
4377 | 4355 |
4378 core.Map toJson() { | 4356 core.Map<core.String, core.Object> toJson() { |
4379 var _json = new core.Map(); | 4357 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4380 if (parameters != null) { | 4358 if (parameters != null) { |
4381 _json["parameters"] = parameters.map((value) => (value).toJson()).toList()
; | 4359 _json["parameters"] = parameters.map((value) => (value).toJson()).toList()
; |
4382 } | 4360 } |
4383 if (selector != null) { | 4361 if (selector != null) { |
4384 _json["selector"] = selector; | 4362 _json["selector"] = selector; |
4385 } | 4363 } |
4386 return _json; | 4364 return _json; |
4387 } | 4365 } |
4388 } | 4366 } |
4389 | 4367 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4430 core.List<SystemParameterRule> rules; | 4408 core.List<SystemParameterRule> rules; |
4431 | 4409 |
4432 SystemParameters(); | 4410 SystemParameters(); |
4433 | 4411 |
4434 SystemParameters.fromJson(core.Map _json) { | 4412 SystemParameters.fromJson(core.Map _json) { |
4435 if (_json.containsKey("rules")) { | 4413 if (_json.containsKey("rules")) { |
4436 rules = _json["rules"].map((value) => new SystemParameterRule.fromJson(val
ue)).toList(); | 4414 rules = _json["rules"].map((value) => new SystemParameterRule.fromJson(val
ue)).toList(); |
4437 } | 4415 } |
4438 } | 4416 } |
4439 | 4417 |
4440 core.Map toJson() { | 4418 core.Map<core.String, core.Object> toJson() { |
4441 var _json = new core.Map(); | 4419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4442 if (rules != null) { | 4420 if (rules != null) { |
4443 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 4421 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
4444 } | 4422 } |
4445 return _json; | 4423 return _json; |
4446 } | 4424 } |
4447 } | 4425 } |
4448 | 4426 |
4449 /** A protocol buffer message type. */ | 4427 /** A protocol buffer message type. */ |
4450 class Type { | 4428 class Type { |
4451 /** The list of fields. */ | 4429 /** The list of fields. */ |
(...skipping 30 matching lines...) Expand all Loading... |
4482 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); | 4460 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); |
4483 } | 4461 } |
4484 if (_json.containsKey("sourceContext")) { | 4462 if (_json.containsKey("sourceContext")) { |
4485 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); | 4463 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); |
4486 } | 4464 } |
4487 if (_json.containsKey("syntax")) { | 4465 if (_json.containsKey("syntax")) { |
4488 syntax = _json["syntax"]; | 4466 syntax = _json["syntax"]; |
4489 } | 4467 } |
4490 } | 4468 } |
4491 | 4469 |
4492 core.Map toJson() { | 4470 core.Map<core.String, core.Object> toJson() { |
4493 var _json = new core.Map(); | 4471 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4494 if (fields != null) { | 4472 if (fields != null) { |
4495 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 4473 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
4496 } | 4474 } |
4497 if (name != null) { | 4475 if (name != null) { |
4498 _json["name"] = name; | 4476 _json["name"] = name; |
4499 } | 4477 } |
4500 if (oneofs != null) { | 4478 if (oneofs != null) { |
4501 _json["oneofs"] = oneofs; | 4479 _json["oneofs"] = oneofs; |
4502 } | 4480 } |
4503 if (options != null) { | 4481 if (options != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4546 producerNotificationChannel = _json["producerNotificationChannel"]; | 4524 producerNotificationChannel = _json["producerNotificationChannel"]; |
4547 } | 4525 } |
4548 if (_json.containsKey("requirements")) { | 4526 if (_json.containsKey("requirements")) { |
4549 requirements = _json["requirements"]; | 4527 requirements = _json["requirements"]; |
4550 } | 4528 } |
4551 if (_json.containsKey("rules")) { | 4529 if (_json.containsKey("rules")) { |
4552 rules = _json["rules"].map((value) => new UsageRule.fromJson(value)).toLis
t(); | 4530 rules = _json["rules"].map((value) => new UsageRule.fromJson(value)).toLis
t(); |
4553 } | 4531 } |
4554 } | 4532 } |
4555 | 4533 |
4556 core.Map toJson() { | 4534 core.Map<core.String, core.Object> toJson() { |
4557 var _json = new core.Map(); | 4535 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4558 if (producerNotificationChannel != null) { | 4536 if (producerNotificationChannel != null) { |
4559 _json["producerNotificationChannel"] = producerNotificationChannel; | 4537 _json["producerNotificationChannel"] = producerNotificationChannel; |
4560 } | 4538 } |
4561 if (requirements != null) { | 4539 if (requirements != null) { |
4562 _json["requirements"] = requirements; | 4540 _json["requirements"] = requirements; |
4563 } | 4541 } |
4564 if (rules != null) { | 4542 if (rules != null) { |
4565 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 4543 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
4566 } | 4544 } |
4567 return _json; | 4545 return _json; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4610 | 4588 |
4611 UsageRule.fromJson(core.Map _json) { | 4589 UsageRule.fromJson(core.Map _json) { |
4612 if (_json.containsKey("allowUnregisteredCalls")) { | 4590 if (_json.containsKey("allowUnregisteredCalls")) { |
4613 allowUnregisteredCalls = _json["allowUnregisteredCalls"]; | 4591 allowUnregisteredCalls = _json["allowUnregisteredCalls"]; |
4614 } | 4592 } |
4615 if (_json.containsKey("selector")) { | 4593 if (_json.containsKey("selector")) { |
4616 selector = _json["selector"]; | 4594 selector = _json["selector"]; |
4617 } | 4595 } |
4618 } | 4596 } |
4619 | 4597 |
4620 core.Map toJson() { | 4598 core.Map<core.String, core.Object> toJson() { |
4621 var _json = new core.Map(); | 4599 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4622 if (allowUnregisteredCalls != null) { | 4600 if (allowUnregisteredCalls != null) { |
4623 _json["allowUnregisteredCalls"] = allowUnregisteredCalls; | 4601 _json["allowUnregisteredCalls"] = allowUnregisteredCalls; |
4624 } | 4602 } |
4625 if (selector != null) { | 4603 if (selector != null) { |
4626 _json["selector"] = selector; | 4604 _json["selector"] = selector; |
4627 } | 4605 } |
4628 return _json; | 4606 return _json; |
4629 } | 4607 } |
4630 } | 4608 } |
4631 | 4609 |
(...skipping 30 matching lines...) Expand all Loading... |
4662 core.List<VisibilityRule> rules; | 4640 core.List<VisibilityRule> rules; |
4663 | 4641 |
4664 Visibility(); | 4642 Visibility(); |
4665 | 4643 |
4666 Visibility.fromJson(core.Map _json) { | 4644 Visibility.fromJson(core.Map _json) { |
4667 if (_json.containsKey("rules")) { | 4645 if (_json.containsKey("rules")) { |
4668 rules = _json["rules"].map((value) => new VisibilityRule.fromJson(value)).
toList(); | 4646 rules = _json["rules"].map((value) => new VisibilityRule.fromJson(value)).
toList(); |
4669 } | 4647 } |
4670 } | 4648 } |
4671 | 4649 |
4672 core.Map toJson() { | 4650 core.Map<core.String, core.Object> toJson() { |
4673 var _json = new core.Map(); | 4651 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4674 if (rules != null) { | 4652 if (rules != null) { |
4675 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 4653 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
4676 } | 4654 } |
4677 return _json; | 4655 return _json; |
4678 } | 4656 } |
4679 } | 4657 } |
4680 | 4658 |
4681 /** | 4659 /** |
4682 * A visibility rule provides visibility configuration for an individual API | 4660 * A visibility rule provides visibility configuration for an individual API |
4683 * element. | 4661 * element. |
(...skipping 28 matching lines...) Expand all Loading... |
4712 | 4690 |
4713 VisibilityRule.fromJson(core.Map _json) { | 4691 VisibilityRule.fromJson(core.Map _json) { |
4714 if (_json.containsKey("restriction")) { | 4692 if (_json.containsKey("restriction")) { |
4715 restriction = _json["restriction"]; | 4693 restriction = _json["restriction"]; |
4716 } | 4694 } |
4717 if (_json.containsKey("selector")) { | 4695 if (_json.containsKey("selector")) { |
4718 selector = _json["selector"]; | 4696 selector = _json["selector"]; |
4719 } | 4697 } |
4720 } | 4698 } |
4721 | 4699 |
4722 core.Map toJson() { | 4700 core.Map<core.String, core.Object> toJson() { |
4723 var _json = new core.Map(); | 4701 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4724 if (restriction != null) { | 4702 if (restriction != null) { |
4725 _json["restriction"] = restriction; | 4703 _json["restriction"] = restriction; |
4726 } | 4704 } |
4727 if (selector != null) { | 4705 if (selector != null) { |
4728 _json["selector"] = selector; | 4706 _json["selector"] = selector; |
4729 } | 4707 } |
4730 return _json; | 4708 return _json; |
4731 } | 4709 } |
4732 } | 4710 } |
OLD | NEW |