| 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_beta.cloudmonitoring.v2beta2; | 3 library googleapis_beta.cloudmonitoring.v2beta2; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 core.String kind; | 566 core.String kind; |
| 567 | 567 |
| 568 DeleteMetricDescriptorResponse(); | 568 DeleteMetricDescriptorResponse(); |
| 569 | 569 |
| 570 DeleteMetricDescriptorResponse.fromJson(core.Map _json) { | 570 DeleteMetricDescriptorResponse.fromJson(core.Map _json) { |
| 571 if (_json.containsKey("kind")) { | 571 if (_json.containsKey("kind")) { |
| 572 kind = _json["kind"]; | 572 kind = _json["kind"]; |
| 573 } | 573 } |
| 574 } | 574 } |
| 575 | 575 |
| 576 core.Map toJson() { | 576 core.Map<core.String, core.Object> toJson() { |
| 577 var _json = new core.Map(); | 577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 578 if (kind != null) { | 578 if (kind != null) { |
| 579 _json["kind"] = kind; | 579 _json["kind"] = kind; |
| 580 } | 580 } |
| 581 return _json; | 581 return _json; |
| 582 } | 582 } |
| 583 } | 583 } |
| 584 | 584 |
| 585 /** The request of cloudmonitoring.metricDescriptors.list. */ | 585 /** The request of cloudmonitoring.metricDescriptors.list. */ |
| 586 class ListMetricDescriptorsRequest { | 586 class ListMetricDescriptorsRequest { |
| 587 /** | 587 /** |
| 588 * Identifies what kind of resource this is. Value: the fixed string | 588 * Identifies what kind of resource this is. Value: the fixed string |
| 589 * "cloudmonitoring#listMetricDescriptorsRequest". | 589 * "cloudmonitoring#listMetricDescriptorsRequest". |
| 590 */ | 590 */ |
| 591 core.String kind; | 591 core.String kind; |
| 592 | 592 |
| 593 ListMetricDescriptorsRequest(); | 593 ListMetricDescriptorsRequest(); |
| 594 | 594 |
| 595 ListMetricDescriptorsRequest.fromJson(core.Map _json) { | 595 ListMetricDescriptorsRequest.fromJson(core.Map _json) { |
| 596 if (_json.containsKey("kind")) { | 596 if (_json.containsKey("kind")) { |
| 597 kind = _json["kind"]; | 597 kind = _json["kind"]; |
| 598 } | 598 } |
| 599 } | 599 } |
| 600 | 600 |
| 601 core.Map toJson() { | 601 core.Map<core.String, core.Object> toJson() { |
| 602 var _json = new core.Map(); | 602 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 603 if (kind != null) { | 603 if (kind != null) { |
| 604 _json["kind"] = kind; | 604 _json["kind"] = kind; |
| 605 } | 605 } |
| 606 return _json; | 606 return _json; |
| 607 } | 607 } |
| 608 } | 608 } |
| 609 | 609 |
| 610 /** The response of cloudmonitoring.metricDescriptors.list. */ | 610 /** The response of cloudmonitoring.metricDescriptors.list. */ |
| 611 class ListMetricDescriptorsResponse { | 611 class ListMetricDescriptorsResponse { |
| 612 /** | 612 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 630 kind = _json["kind"]; | 630 kind = _json["kind"]; |
| 631 } | 631 } |
| 632 if (_json.containsKey("metrics")) { | 632 if (_json.containsKey("metrics")) { |
| 633 metrics = _json["metrics"].map((value) => new MetricDescriptor.fromJson(va
lue)).toList(); | 633 metrics = _json["metrics"].map((value) => new MetricDescriptor.fromJson(va
lue)).toList(); |
| 634 } | 634 } |
| 635 if (_json.containsKey("nextPageToken")) { | 635 if (_json.containsKey("nextPageToken")) { |
| 636 nextPageToken = _json["nextPageToken"]; | 636 nextPageToken = _json["nextPageToken"]; |
| 637 } | 637 } |
| 638 } | 638 } |
| 639 | 639 |
| 640 core.Map toJson() { | 640 core.Map<core.String, core.Object> toJson() { |
| 641 var _json = new core.Map(); | 641 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 642 if (kind != null) { | 642 if (kind != null) { |
| 643 _json["kind"] = kind; | 643 _json["kind"] = kind; |
| 644 } | 644 } |
| 645 if (metrics != null) { | 645 if (metrics != null) { |
| 646 _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); | 646 _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); |
| 647 } | 647 } |
| 648 if (nextPageToken != null) { | 648 if (nextPageToken != null) { |
| 649 _json["nextPageToken"] = nextPageToken; | 649 _json["nextPageToken"] = nextPageToken; |
| 650 } | 650 } |
| 651 return _json; | 651 return _json; |
| 652 } | 652 } |
| 653 } | 653 } |
| 654 | 654 |
| 655 /** The request of cloudmonitoring.timeseriesDescriptors.list */ | 655 /** The request of cloudmonitoring.timeseriesDescriptors.list */ |
| 656 class ListTimeseriesDescriptorsRequest { | 656 class ListTimeseriesDescriptorsRequest { |
| 657 /** | 657 /** |
| 658 * Identifies what kind of resource this is. Value: the fixed string | 658 * Identifies what kind of resource this is. Value: the fixed string |
| 659 * "cloudmonitoring#listTimeseriesDescriptorsRequest". | 659 * "cloudmonitoring#listTimeseriesDescriptorsRequest". |
| 660 */ | 660 */ |
| 661 core.String kind; | 661 core.String kind; |
| 662 | 662 |
| 663 ListTimeseriesDescriptorsRequest(); | 663 ListTimeseriesDescriptorsRequest(); |
| 664 | 664 |
| 665 ListTimeseriesDescriptorsRequest.fromJson(core.Map _json) { | 665 ListTimeseriesDescriptorsRequest.fromJson(core.Map _json) { |
| 666 if (_json.containsKey("kind")) { | 666 if (_json.containsKey("kind")) { |
| 667 kind = _json["kind"]; | 667 kind = _json["kind"]; |
| 668 } | 668 } |
| 669 } | 669 } |
| 670 | 670 |
| 671 core.Map toJson() { | 671 core.Map<core.String, core.Object> toJson() { |
| 672 var _json = new core.Map(); | 672 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 673 if (kind != null) { | 673 if (kind != null) { |
| 674 _json["kind"] = kind; | 674 _json["kind"] = kind; |
| 675 } | 675 } |
| 676 return _json; | 676 return _json; |
| 677 } | 677 } |
| 678 } | 678 } |
| 679 | 679 |
| 680 /** The response of cloudmonitoring.timeseriesDescriptors.list */ | 680 /** The response of cloudmonitoring.timeseriesDescriptors.list */ |
| 681 class ListTimeseriesDescriptorsResponse { | 681 class ListTimeseriesDescriptorsResponse { |
| 682 /** | 682 /** |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 oldest = core.DateTime.parse(_json["oldest"]); | 715 oldest = core.DateTime.parse(_json["oldest"]); |
| 716 } | 716 } |
| 717 if (_json.containsKey("timeseries")) { | 717 if (_json.containsKey("timeseries")) { |
| 718 timeseries = _json["timeseries"].map((value) => new TimeseriesDescriptor.f
romJson(value)).toList(); | 718 timeseries = _json["timeseries"].map((value) => new TimeseriesDescriptor.f
romJson(value)).toList(); |
| 719 } | 719 } |
| 720 if (_json.containsKey("youngest")) { | 720 if (_json.containsKey("youngest")) { |
| 721 youngest = core.DateTime.parse(_json["youngest"]); | 721 youngest = core.DateTime.parse(_json["youngest"]); |
| 722 } | 722 } |
| 723 } | 723 } |
| 724 | 724 |
| 725 core.Map toJson() { | 725 core.Map<core.String, core.Object> toJson() { |
| 726 var _json = new core.Map(); | 726 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 727 if (kind != null) { | 727 if (kind != null) { |
| 728 _json["kind"] = kind; | 728 _json["kind"] = kind; |
| 729 } | 729 } |
| 730 if (nextPageToken != null) { | 730 if (nextPageToken != null) { |
| 731 _json["nextPageToken"] = nextPageToken; | 731 _json["nextPageToken"] = nextPageToken; |
| 732 } | 732 } |
| 733 if (oldest != null) { | 733 if (oldest != null) { |
| 734 _json["oldest"] = (oldest).toIso8601String(); | 734 _json["oldest"] = (oldest).toIso8601String(); |
| 735 } | 735 } |
| 736 if (timeseries != null) { | 736 if (timeseries != null) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 752 core.String kind; | 752 core.String kind; |
| 753 | 753 |
| 754 ListTimeseriesRequest(); | 754 ListTimeseriesRequest(); |
| 755 | 755 |
| 756 ListTimeseriesRequest.fromJson(core.Map _json) { | 756 ListTimeseriesRequest.fromJson(core.Map _json) { |
| 757 if (_json.containsKey("kind")) { | 757 if (_json.containsKey("kind")) { |
| 758 kind = _json["kind"]; | 758 kind = _json["kind"]; |
| 759 } | 759 } |
| 760 } | 760 } |
| 761 | 761 |
| 762 core.Map toJson() { | 762 core.Map<core.String, core.Object> toJson() { |
| 763 var _json = new core.Map(); | 763 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 764 if (kind != null) { | 764 if (kind != null) { |
| 765 _json["kind"] = kind; | 765 _json["kind"] = kind; |
| 766 } | 766 } |
| 767 return _json; | 767 return _json; |
| 768 } | 768 } |
| 769 } | 769 } |
| 770 | 770 |
| 771 /** The response of cloudmonitoring.timeseries.list */ | 771 /** The response of cloudmonitoring.timeseries.list */ |
| 772 class ListTimeseriesResponse { | 772 class ListTimeseriesResponse { |
| 773 /** | 773 /** |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 oldest = core.DateTime.parse(_json["oldest"]); | 807 oldest = core.DateTime.parse(_json["oldest"]); |
| 808 } | 808 } |
| 809 if (_json.containsKey("timeseries")) { | 809 if (_json.containsKey("timeseries")) { |
| 810 timeseries = _json["timeseries"].map((value) => new Timeseries.fromJson(va
lue)).toList(); | 810 timeseries = _json["timeseries"].map((value) => new Timeseries.fromJson(va
lue)).toList(); |
| 811 } | 811 } |
| 812 if (_json.containsKey("youngest")) { | 812 if (_json.containsKey("youngest")) { |
| 813 youngest = core.DateTime.parse(_json["youngest"]); | 813 youngest = core.DateTime.parse(_json["youngest"]); |
| 814 } | 814 } |
| 815 } | 815 } |
| 816 | 816 |
| 817 core.Map toJson() { | 817 core.Map<core.String, core.Object> toJson() { |
| 818 var _json = new core.Map(); | 818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 819 if (kind != null) { | 819 if (kind != null) { |
| 820 _json["kind"] = kind; | 820 _json["kind"] = kind; |
| 821 } | 821 } |
| 822 if (nextPageToken != null) { | 822 if (nextPageToken != null) { |
| 823 _json["nextPageToken"] = nextPageToken; | 823 _json["nextPageToken"] = nextPageToken; |
| 824 } | 824 } |
| 825 if (oldest != null) { | 825 if (oldest != null) { |
| 826 _json["oldest"] = (oldest).toIso8601String(); | 826 _json["oldest"] = (oldest).toIso8601String(); |
| 827 } | 827 } |
| 828 if (timeseries != null) { | 828 if (timeseries != null) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 name = _json["name"]; | 864 name = _json["name"]; |
| 865 } | 865 } |
| 866 if (_json.containsKey("project")) { | 866 if (_json.containsKey("project")) { |
| 867 project = _json["project"]; | 867 project = _json["project"]; |
| 868 } | 868 } |
| 869 if (_json.containsKey("typeDescriptor")) { | 869 if (_json.containsKey("typeDescriptor")) { |
| 870 typeDescriptor = new MetricDescriptorTypeDescriptor.fromJson(_json["typeDe
scriptor"]); | 870 typeDescriptor = new MetricDescriptorTypeDescriptor.fromJson(_json["typeDe
scriptor"]); |
| 871 } | 871 } |
| 872 } | 872 } |
| 873 | 873 |
| 874 core.Map toJson() { | 874 core.Map<core.String, core.Object> toJson() { |
| 875 var _json = new core.Map(); | 875 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 876 if (description != null) { | 876 if (description != null) { |
| 877 _json["description"] = description; | 877 _json["description"] = description; |
| 878 } | 878 } |
| 879 if (labels != null) { | 879 if (labels != null) { |
| 880 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 880 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
| 881 } | 881 } |
| 882 if (name != null) { | 882 if (name != null) { |
| 883 _json["name"] = name; | 883 _json["name"] = name; |
| 884 } | 884 } |
| 885 if (project != null) { | 885 if (project != null) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 907 | 907 |
| 908 MetricDescriptorLabelDescriptor.fromJson(core.Map _json) { | 908 MetricDescriptorLabelDescriptor.fromJson(core.Map _json) { |
| 909 if (_json.containsKey("description")) { | 909 if (_json.containsKey("description")) { |
| 910 description = _json["description"]; | 910 description = _json["description"]; |
| 911 } | 911 } |
| 912 if (_json.containsKey("key")) { | 912 if (_json.containsKey("key")) { |
| 913 key = _json["key"]; | 913 key = _json["key"]; |
| 914 } | 914 } |
| 915 } | 915 } |
| 916 | 916 |
| 917 core.Map toJson() { | 917 core.Map<core.String, core.Object> toJson() { |
| 918 var _json = new core.Map(); | 918 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 919 if (description != null) { | 919 if (description != null) { |
| 920 _json["description"] = description; | 920 _json["description"] = description; |
| 921 } | 921 } |
| 922 if (key != null) { | 922 if (key != null) { |
| 923 _json["key"] = key; | 923 _json["key"] = key; |
| 924 } | 924 } |
| 925 return _json; | 925 return _json; |
| 926 } | 926 } |
| 927 } | 927 } |
| 928 | 928 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 943 | 943 |
| 944 MetricDescriptorTypeDescriptor.fromJson(core.Map _json) { | 944 MetricDescriptorTypeDescriptor.fromJson(core.Map _json) { |
| 945 if (_json.containsKey("metricType")) { | 945 if (_json.containsKey("metricType")) { |
| 946 metricType = _json["metricType"]; | 946 metricType = _json["metricType"]; |
| 947 } | 947 } |
| 948 if (_json.containsKey("valueType")) { | 948 if (_json.containsKey("valueType")) { |
| 949 valueType = _json["valueType"]; | 949 valueType = _json["valueType"]; |
| 950 } | 950 } |
| 951 } | 951 } |
| 952 | 952 |
| 953 core.Map toJson() { | 953 core.Map<core.String, core.Object> toJson() { |
| 954 var _json = new core.Map(); | 954 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 955 if (metricType != null) { | 955 if (metricType != null) { |
| 956 _json["metricType"] = metricType; | 956 _json["metricType"] = metricType; |
| 957 } | 957 } |
| 958 if (valueType != null) { | 958 if (valueType != null) { |
| 959 _json["valueType"] = valueType; | 959 _json["valueType"] = valueType; |
| 960 } | 960 } |
| 961 return _json; | 961 return _json; |
| 962 } | 962 } |
| 963 } | 963 } |
| 964 | 964 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 int64Value = _json["int64Value"]; | 1019 int64Value = _json["int64Value"]; |
| 1020 } | 1020 } |
| 1021 if (_json.containsKey("start")) { | 1021 if (_json.containsKey("start")) { |
| 1022 start = core.DateTime.parse(_json["start"]); | 1022 start = core.DateTime.parse(_json["start"]); |
| 1023 } | 1023 } |
| 1024 if (_json.containsKey("stringValue")) { | 1024 if (_json.containsKey("stringValue")) { |
| 1025 stringValue = _json["stringValue"]; | 1025 stringValue = _json["stringValue"]; |
| 1026 } | 1026 } |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 core.Map toJson() { | 1029 core.Map<core.String, core.Object> toJson() { |
| 1030 var _json = new core.Map(); | 1030 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1031 if (boolValue != null) { | 1031 if (boolValue != null) { |
| 1032 _json["boolValue"] = boolValue; | 1032 _json["boolValue"] = boolValue; |
| 1033 } | 1033 } |
| 1034 if (distributionValue != null) { | 1034 if (distributionValue != null) { |
| 1035 _json["distributionValue"] = (distributionValue).toJson(); | 1035 _json["distributionValue"] = (distributionValue).toJson(); |
| 1036 } | 1036 } |
| 1037 if (doubleValue != null) { | 1037 if (doubleValue != null) { |
| 1038 _json["doubleValue"] = doubleValue; | 1038 _json["doubleValue"] = doubleValue; |
| 1039 } | 1039 } |
| 1040 if (end != null) { | 1040 if (end != null) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 buckets = _json["buckets"].map((value) => new PointDistributionBucket.from
Json(value)).toList(); | 1074 buckets = _json["buckets"].map((value) => new PointDistributionBucket.from
Json(value)).toList(); |
| 1075 } | 1075 } |
| 1076 if (_json.containsKey("overflowBucket")) { | 1076 if (_json.containsKey("overflowBucket")) { |
| 1077 overflowBucket = new PointDistributionOverflowBucket.fromJson(_json["overf
lowBucket"]); | 1077 overflowBucket = new PointDistributionOverflowBucket.fromJson(_json["overf
lowBucket"]); |
| 1078 } | 1078 } |
| 1079 if (_json.containsKey("underflowBucket")) { | 1079 if (_json.containsKey("underflowBucket")) { |
| 1080 underflowBucket = new PointDistributionUnderflowBucket.fromJson(_json["und
erflowBucket"]); | 1080 underflowBucket = new PointDistributionUnderflowBucket.fromJson(_json["und
erflowBucket"]); |
| 1081 } | 1081 } |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 core.Map toJson() { | 1084 core.Map<core.String, core.Object> toJson() { |
| 1085 var _json = new core.Map(); | 1085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1086 if (buckets != null) { | 1086 if (buckets != null) { |
| 1087 _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); | 1087 _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); |
| 1088 } | 1088 } |
| 1089 if (overflowBucket != null) { | 1089 if (overflowBucket != null) { |
| 1090 _json["overflowBucket"] = (overflowBucket).toJson(); | 1090 _json["overflowBucket"] = (overflowBucket).toJson(); |
| 1091 } | 1091 } |
| 1092 if (underflowBucket != null) { | 1092 if (underflowBucket != null) { |
| 1093 _json["underflowBucket"] = (underflowBucket).toJson(); | 1093 _json["underflowBucket"] = (underflowBucket).toJson(); |
| 1094 } | 1094 } |
| 1095 return _json; | 1095 return _json; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1119 count = _json["count"]; | 1119 count = _json["count"]; |
| 1120 } | 1120 } |
| 1121 if (_json.containsKey("lowerBound")) { | 1121 if (_json.containsKey("lowerBound")) { |
| 1122 lowerBound = _json["lowerBound"]; | 1122 lowerBound = _json["lowerBound"]; |
| 1123 } | 1123 } |
| 1124 if (_json.containsKey("upperBound")) { | 1124 if (_json.containsKey("upperBound")) { |
| 1125 upperBound = _json["upperBound"]; | 1125 upperBound = _json["upperBound"]; |
| 1126 } | 1126 } |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 core.Map toJson() { | 1129 core.Map<core.String, core.Object> toJson() { |
| 1130 var _json = new core.Map(); | 1130 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1131 if (count != null) { | 1131 if (count != null) { |
| 1132 _json["count"] = count; | 1132 _json["count"] = count; |
| 1133 } | 1133 } |
| 1134 if (lowerBound != null) { | 1134 if (lowerBound != null) { |
| 1135 _json["lowerBound"] = lowerBound; | 1135 _json["lowerBound"] = lowerBound; |
| 1136 } | 1136 } |
| 1137 if (upperBound != null) { | 1137 if (upperBound != null) { |
| 1138 _json["upperBound"] = upperBound; | 1138 _json["upperBound"] = upperBound; |
| 1139 } | 1139 } |
| 1140 return _json; | 1140 return _json; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1158 | 1158 |
| 1159 PointDistributionOverflowBucket.fromJson(core.Map _json) { | 1159 PointDistributionOverflowBucket.fromJson(core.Map _json) { |
| 1160 if (_json.containsKey("count")) { | 1160 if (_json.containsKey("count")) { |
| 1161 count = _json["count"]; | 1161 count = _json["count"]; |
| 1162 } | 1162 } |
| 1163 if (_json.containsKey("lowerBound")) { | 1163 if (_json.containsKey("lowerBound")) { |
| 1164 lowerBound = _json["lowerBound"]; | 1164 lowerBound = _json["lowerBound"]; |
| 1165 } | 1165 } |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 core.Map toJson() { | 1168 core.Map<core.String, core.Object> toJson() { |
| 1169 var _json = new core.Map(); | 1169 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1170 if (count != null) { | 1170 if (count != null) { |
| 1171 _json["count"] = count; | 1171 _json["count"] = count; |
| 1172 } | 1172 } |
| 1173 if (lowerBound != null) { | 1173 if (lowerBound != null) { |
| 1174 _json["lowerBound"] = lowerBound; | 1174 _json["lowerBound"] = lowerBound; |
| 1175 } | 1175 } |
| 1176 return _json; | 1176 return _json; |
| 1177 } | 1177 } |
| 1178 } | 1178 } |
| 1179 | 1179 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1194 | 1194 |
| 1195 PointDistributionUnderflowBucket.fromJson(core.Map _json) { | 1195 PointDistributionUnderflowBucket.fromJson(core.Map _json) { |
| 1196 if (_json.containsKey("count")) { | 1196 if (_json.containsKey("count")) { |
| 1197 count = _json["count"]; | 1197 count = _json["count"]; |
| 1198 } | 1198 } |
| 1199 if (_json.containsKey("upperBound")) { | 1199 if (_json.containsKey("upperBound")) { |
| 1200 upperBound = _json["upperBound"]; | 1200 upperBound = _json["upperBound"]; |
| 1201 } | 1201 } |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 core.Map toJson() { | 1204 core.Map<core.String, core.Object> toJson() { |
| 1205 var _json = new core.Map(); | 1205 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1206 if (count != null) { | 1206 if (count != null) { |
| 1207 _json["count"] = count; | 1207 _json["count"] = count; |
| 1208 } | 1208 } |
| 1209 if (upperBound != null) { | 1209 if (upperBound != null) { |
| 1210 _json["upperBound"] = upperBound; | 1210 _json["upperBound"] = upperBound; |
| 1211 } | 1211 } |
| 1212 return _json; | 1212 return _json; |
| 1213 } | 1213 } |
| 1214 } | 1214 } |
| 1215 | 1215 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1232 | 1232 |
| 1233 Timeseries.fromJson(core.Map _json) { | 1233 Timeseries.fromJson(core.Map _json) { |
| 1234 if (_json.containsKey("points")) { | 1234 if (_json.containsKey("points")) { |
| 1235 points = _json["points"].map((value) => new Point.fromJson(value)).toList(
); | 1235 points = _json["points"].map((value) => new Point.fromJson(value)).toList(
); |
| 1236 } | 1236 } |
| 1237 if (_json.containsKey("timeseriesDesc")) { | 1237 if (_json.containsKey("timeseriesDesc")) { |
| 1238 timeseriesDesc = new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]
); | 1238 timeseriesDesc = new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]
); |
| 1239 } | 1239 } |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 core.Map toJson() { | 1242 core.Map<core.String, core.Object> toJson() { |
| 1243 var _json = new core.Map(); | 1243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1244 if (points != null) { | 1244 if (points != null) { |
| 1245 _json["points"] = points.map((value) => (value).toJson()).toList(); | 1245 _json["points"] = points.map((value) => (value).toJson()).toList(); |
| 1246 } | 1246 } |
| 1247 if (timeseriesDesc != null) { | 1247 if (timeseriesDesc != null) { |
| 1248 _json["timeseriesDesc"] = (timeseriesDesc).toJson(); | 1248 _json["timeseriesDesc"] = (timeseriesDesc).toJson(); |
| 1249 } | 1249 } |
| 1250 return _json; | 1250 return _json; |
| 1251 } | 1251 } |
| 1252 } | 1252 } |
| 1253 | 1253 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1269 labels = _json["labels"]; | 1269 labels = _json["labels"]; |
| 1270 } | 1270 } |
| 1271 if (_json.containsKey("metric")) { | 1271 if (_json.containsKey("metric")) { |
| 1272 metric = _json["metric"]; | 1272 metric = _json["metric"]; |
| 1273 } | 1273 } |
| 1274 if (_json.containsKey("project")) { | 1274 if (_json.containsKey("project")) { |
| 1275 project = _json["project"]; | 1275 project = _json["project"]; |
| 1276 } | 1276 } |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 core.Map toJson() { | 1279 core.Map<core.String, core.Object> toJson() { |
| 1280 var _json = new core.Map(); | 1280 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1281 if (labels != null) { | 1281 if (labels != null) { |
| 1282 _json["labels"] = labels; | 1282 _json["labels"] = labels; |
| 1283 } | 1283 } |
| 1284 if (metric != null) { | 1284 if (metric != null) { |
| 1285 _json["metric"] = metric; | 1285 _json["metric"] = metric; |
| 1286 } | 1286 } |
| 1287 if (project != null) { | 1287 if (project != null) { |
| 1288 _json["project"] = project; | 1288 _json["project"] = project; |
| 1289 } | 1289 } |
| 1290 return _json; | 1290 return _json; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1301 | 1301 |
| 1302 TimeseriesDescriptorLabel.fromJson(core.Map _json) { | 1302 TimeseriesDescriptorLabel.fromJson(core.Map _json) { |
| 1303 if (_json.containsKey("key")) { | 1303 if (_json.containsKey("key")) { |
| 1304 key = _json["key"]; | 1304 key = _json["key"]; |
| 1305 } | 1305 } |
| 1306 if (_json.containsKey("value")) { | 1306 if (_json.containsKey("value")) { |
| 1307 value = _json["value"]; | 1307 value = _json["value"]; |
| 1308 } | 1308 } |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 core.Map toJson() { | 1311 core.Map<core.String, core.Object> toJson() { |
| 1312 var _json = new core.Map(); | 1312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1313 if (key != null) { | 1313 if (key != null) { |
| 1314 _json["key"] = key; | 1314 _json["key"] = key; |
| 1315 } | 1315 } |
| 1316 if (value != null) { | 1316 if (value != null) { |
| 1317 _json["value"] = value; | 1317 _json["value"] = value; |
| 1318 } | 1318 } |
| 1319 return _json; | 1319 return _json; |
| 1320 } | 1320 } |
| 1321 } | 1321 } |
| 1322 | 1322 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1335 | 1335 |
| 1336 TimeseriesPoint.fromJson(core.Map _json) { | 1336 TimeseriesPoint.fromJson(core.Map _json) { |
| 1337 if (_json.containsKey("point")) { | 1337 if (_json.containsKey("point")) { |
| 1338 point = new Point.fromJson(_json["point"]); | 1338 point = new Point.fromJson(_json["point"]); |
| 1339 } | 1339 } |
| 1340 if (_json.containsKey("timeseriesDesc")) { | 1340 if (_json.containsKey("timeseriesDesc")) { |
| 1341 timeseriesDesc = new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]
); | 1341 timeseriesDesc = new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]
); |
| 1342 } | 1342 } |
| 1343 } | 1343 } |
| 1344 | 1344 |
| 1345 core.Map toJson() { | 1345 core.Map<core.String, core.Object> toJson() { |
| 1346 var _json = new core.Map(); | 1346 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1347 if (point != null) { | 1347 if (point != null) { |
| 1348 _json["point"] = (point).toJson(); | 1348 _json["point"] = (point).toJson(); |
| 1349 } | 1349 } |
| 1350 if (timeseriesDesc != null) { | 1350 if (timeseriesDesc != null) { |
| 1351 _json["timeseriesDesc"] = (timeseriesDesc).toJson(); | 1351 _json["timeseriesDesc"] = (timeseriesDesc).toJson(); |
| 1352 } | 1352 } |
| 1353 return _json; | 1353 return _json; |
| 1354 } | 1354 } |
| 1355 } | 1355 } |
| 1356 | 1356 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1369 | 1369 |
| 1370 WriteTimeseriesRequest.fromJson(core.Map _json) { | 1370 WriteTimeseriesRequest.fromJson(core.Map _json) { |
| 1371 if (_json.containsKey("commonLabels")) { | 1371 if (_json.containsKey("commonLabels")) { |
| 1372 commonLabels = _json["commonLabels"]; | 1372 commonLabels = _json["commonLabels"]; |
| 1373 } | 1373 } |
| 1374 if (_json.containsKey("timeseries")) { | 1374 if (_json.containsKey("timeseries")) { |
| 1375 timeseries = _json["timeseries"].map((value) => new TimeseriesPoint.fromJs
on(value)).toList(); | 1375 timeseries = _json["timeseries"].map((value) => new TimeseriesPoint.fromJs
on(value)).toList(); |
| 1376 } | 1376 } |
| 1377 } | 1377 } |
| 1378 | 1378 |
| 1379 core.Map toJson() { | 1379 core.Map<core.String, core.Object> toJson() { |
| 1380 var _json = new core.Map(); | 1380 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1381 if (commonLabels != null) { | 1381 if (commonLabels != null) { |
| 1382 _json["commonLabels"] = commonLabels; | 1382 _json["commonLabels"] = commonLabels; |
| 1383 } | 1383 } |
| 1384 if (timeseries != null) { | 1384 if (timeseries != null) { |
| 1385 _json["timeseries"] = timeseries.map((value) => (value).toJson()).toList()
; | 1385 _json["timeseries"] = timeseries.map((value) => (value).toJson()).toList()
; |
| 1386 } | 1386 } |
| 1387 return _json; | 1387 return _json; |
| 1388 } | 1388 } |
| 1389 } | 1389 } |
| 1390 | 1390 |
| 1391 /** The response of cloudmonitoring.timeseries.write */ | 1391 /** The response of cloudmonitoring.timeseries.write */ |
| 1392 class WriteTimeseriesResponse { | 1392 class WriteTimeseriesResponse { |
| 1393 /** | 1393 /** |
| 1394 * Identifies what kind of resource this is. Value: the fixed string | 1394 * Identifies what kind of resource this is. Value: the fixed string |
| 1395 * "cloudmonitoring#writeTimeseriesResponse". | 1395 * "cloudmonitoring#writeTimeseriesResponse". |
| 1396 */ | 1396 */ |
| 1397 core.String kind; | 1397 core.String kind; |
| 1398 | 1398 |
| 1399 WriteTimeseriesResponse(); | 1399 WriteTimeseriesResponse(); |
| 1400 | 1400 |
| 1401 WriteTimeseriesResponse.fromJson(core.Map _json) { | 1401 WriteTimeseriesResponse.fromJson(core.Map _json) { |
| 1402 if (_json.containsKey("kind")) { | 1402 if (_json.containsKey("kind")) { |
| 1403 kind = _json["kind"]; | 1403 kind = _json["kind"]; |
| 1404 } | 1404 } |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 core.Map toJson() { | 1407 core.Map<core.String, core.Object> toJson() { |
| 1408 var _json = new core.Map(); | 1408 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1409 if (kind != null) { | 1409 if (kind != null) { |
| 1410 _json["kind"] = kind; | 1410 _json["kind"] = kind; |
| 1411 } | 1411 } |
| 1412 return _json; | 1412 return _json; |
| 1413 } | 1413 } |
| 1414 } | 1414 } |
| OLD | NEW |