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.monitoring.v3; | 3 library googleapis.monitoring.v3; |
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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 408 |
409 /** | 409 /** |
410 * Lists the monitored resources that are members of a group. | 410 * Lists the monitored resources that are members of a group. |
411 * | 411 * |
412 * Request parameters: | 412 * Request parameters: |
413 * | 413 * |
414 * [name] - The group whose members are listed. The format is | 414 * [name] - The group whose members are listed. The format is |
415 * "projects/{project_id_or_number}/groups/{group_id}". | 415 * "projects/{project_id_or_number}/groups/{group_id}". |
416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
417 * | 417 * |
| 418 * [pageSize] - A positive number that is the maximum number of results to |
| 419 * return. |
| 420 * |
| 421 * [interval_startTime] - Optional. The beginning of the time interval. The |
| 422 * default value for the start time is the end time. The start time must not |
| 423 * be later than the end time. |
| 424 * |
| 425 * [interval_endTime] - Required. The end of the time interval. |
| 426 * |
418 * [filter] - An optional list filter describing the members to be returned. | 427 * [filter] - An optional list filter describing the members to be returned. |
419 * The filter may reference the type, labels, and metadata of monitored | 428 * The filter may reference the type, labels, and metadata of monitored |
420 * resources that comprise the group. For example, to return only resources | 429 * resources that comprise the group. For example, to return only resources |
421 * representing Compute Engine VM instances, use this filter: | 430 * representing Compute Engine VM instances, use this filter: |
422 * resource.type = "gce_instance" | 431 * resource.type = "gce_instance" |
423 * | 432 * |
424 * [pageToken] - If this field is not empty then it must contain the | 433 * [pageToken] - If this field is not empty then it must contain the |
425 * nextPageToken value returned by a previous call to this method. Using this | 434 * nextPageToken value returned by a previous call to this method. Using this |
426 * field causes the method to return additional results from the previous | 435 * field causes the method to return additional results from the previous |
427 * method call. | 436 * method call. |
428 * | 437 * |
429 * [interval_startTime] - Optional. The beginning of the time interval. The | |
430 * default value for the start time is the end time. The start time must not | |
431 * be later than the end time. | |
432 * | |
433 * [pageSize] - A positive number that is the maximum number of results to | |
434 * return. | |
435 * | |
436 * [interval_endTime] - Required. The end of the time interval. | |
437 * | |
438 * Completes with a [ListGroupMembersResponse]. | 438 * Completes with a [ListGroupMembersResponse]. |
439 * | 439 * |
440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
441 * error. | 441 * error. |
442 * | 442 * |
443 * If the used [http.Client] completes with an error when making a REST call, | 443 * If the used [http.Client] completes with an error when making a REST call, |
444 * this method will complete with the same error. | 444 * this method will complete with the same error. |
445 */ | 445 */ |
446 async.Future<ListGroupMembersResponse> list(core.String name, {core.String fil
ter, core.String pageToken, core.String interval_startTime, core.int pageSize, c
ore.String interval_endTime}) { | 446 async.Future<ListGroupMembersResponse> list(core.String name, {core.int pageSi
ze, core.String interval_startTime, core.String interval_endTime, core.String fi
lter, core.String pageToken}) { |
447 var _url = null; | 447 var _url = null; |
448 var _queryParams = new core.Map(); | 448 var _queryParams = new core.Map(); |
449 var _uploadMedia = null; | 449 var _uploadMedia = null; |
450 var _uploadOptions = null; | 450 var _uploadOptions = null; |
451 var _downloadOptions = commons.DownloadOptions.Metadata; | 451 var _downloadOptions = commons.DownloadOptions.Metadata; |
452 var _body = null; | 452 var _body = null; |
453 | 453 |
454 if (name == null) { | 454 if (name == null) { |
455 throw new core.ArgumentError("Parameter name is required."); | 455 throw new core.ArgumentError("Parameter name is required."); |
456 } | 456 } |
| 457 if (pageSize != null) { |
| 458 _queryParams["pageSize"] = ["${pageSize}"]; |
| 459 } |
| 460 if (interval_startTime != null) { |
| 461 _queryParams["interval.startTime"] = [interval_startTime]; |
| 462 } |
| 463 if (interval_endTime != null) { |
| 464 _queryParams["interval.endTime"] = [interval_endTime]; |
| 465 } |
457 if (filter != null) { | 466 if (filter != null) { |
458 _queryParams["filter"] = [filter]; | 467 _queryParams["filter"] = [filter]; |
459 } | 468 } |
460 if (pageToken != null) { | 469 if (pageToken != null) { |
461 _queryParams["pageToken"] = [pageToken]; | 470 _queryParams["pageToken"] = [pageToken]; |
462 } | 471 } |
463 if (interval_startTime != null) { | |
464 _queryParams["interval.startTime"] = [interval_startTime]; | |
465 } | |
466 if (pageSize != null) { | |
467 _queryParams["pageSize"] = ["${pageSize}"]; | |
468 } | |
469 if (interval_endTime != null) { | |
470 _queryParams["interval.endTime"] = [interval_endTime]; | |
471 } | |
472 | 472 |
473 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; | 473 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; |
474 | 474 |
475 var _response = _requester.request(_url, | 475 var _response = _requester.request(_url, |
476 "GET", | 476 "GET", |
477 body: _body, | 477 body: _body, |
478 queryParams: _queryParams, | 478 queryParams: _queryParams, |
479 uploadOptions: _uploadOptions, | 479 uploadOptions: _uploadOptions, |
480 uploadMedia: _uploadMedia, | 480 uploadMedia: _uploadMedia, |
481 downloadOptions: _downloadOptions); | 481 downloadOptions: _downloadOptions); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 /** | 628 /** |
629 * Lists metric descriptors that match a filter. This method does not require | 629 * Lists metric descriptors that match a filter. This method does not require |
630 * a Stackdriver account. | 630 * a Stackdriver account. |
631 * | 631 * |
632 * Request parameters: | 632 * Request parameters: |
633 * | 633 * |
634 * [name] - The project on which to execute the request. The format is | 634 * [name] - The project on which to execute the request. The format is |
635 * "projects/{project_id_or_number}". | 635 * "projects/{project_id_or_number}". |
636 * Value must have pattern "^projects/[^/]+$". | 636 * Value must have pattern "^projects/[^/]+$". |
637 * | 637 * |
638 * [pageSize] - A positive number that is the maximum number of results to | |
639 * return. | |
640 * | |
641 * [filter] - If this field is empty, all custom and system-defined metric | 638 * [filter] - If this field is empty, all custom and system-defined metric |
642 * descriptors are returned. Otherwise, the filter specifies which metric | 639 * descriptors are returned. Otherwise, the filter specifies which metric |
643 * descriptors are to be returned. For example, the following filter matches | 640 * descriptors are to be returned. For example, the following filter matches |
644 * all custom metrics: | 641 * all custom metrics: |
645 * metric.type = starts_with("custom.googleapis.com/") | 642 * metric.type = starts_with("custom.googleapis.com/") |
646 * | 643 * |
647 * [pageToken] - If this field is not empty then it must contain the | 644 * [pageToken] - If this field is not empty then it must contain the |
648 * nextPageToken value returned by a previous call to this method. Using this | 645 * nextPageToken value returned by a previous call to this method. Using this |
649 * field causes the method to return additional results from the previous | 646 * field causes the method to return additional results from the previous |
650 * method call. | 647 * method call. |
651 * | 648 * |
| 649 * [pageSize] - A positive number that is the maximum number of results to |
| 650 * return. |
| 651 * |
652 * Completes with a [ListMetricDescriptorsResponse]. | 652 * Completes with a [ListMetricDescriptorsResponse]. |
653 * | 653 * |
654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
655 * error. | 655 * error. |
656 * | 656 * |
657 * If the used [http.Client] completes with an error when making a REST call, | 657 * If the used [http.Client] completes with an error when making a REST call, |
658 * this method will complete with the same error. | 658 * this method will complete with the same error. |
659 */ | 659 */ |
660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.int p
ageSize, core.String filter, core.String pageToken}) { | 660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.Strin
g filter, core.String pageToken, core.int pageSize}) { |
661 var _url = null; | 661 var _url = null; |
662 var _queryParams = new core.Map(); | 662 var _queryParams = new core.Map(); |
663 var _uploadMedia = null; | 663 var _uploadMedia = null; |
664 var _uploadOptions = null; | 664 var _uploadOptions = null; |
665 var _downloadOptions = commons.DownloadOptions.Metadata; | 665 var _downloadOptions = commons.DownloadOptions.Metadata; |
666 var _body = null; | 666 var _body = null; |
667 | 667 |
668 if (name == null) { | 668 if (name == null) { |
669 throw new core.ArgumentError("Parameter name is required."); | 669 throw new core.ArgumentError("Parameter name is required."); |
670 } | 670 } |
671 if (pageSize != null) { | |
672 _queryParams["pageSize"] = ["${pageSize}"]; | |
673 } | |
674 if (filter != null) { | 671 if (filter != null) { |
675 _queryParams["filter"] = [filter]; | 672 _queryParams["filter"] = [filter]; |
676 } | 673 } |
677 if (pageToken != null) { | 674 if (pageToken != null) { |
678 _queryParams["pageToken"] = [pageToken]; | 675 _queryParams["pageToken"] = [pageToken]; |
679 } | 676 } |
| 677 if (pageSize != null) { |
| 678 _queryParams["pageSize"] = ["${pageSize}"]; |
| 679 } |
680 | 680 |
681 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc
riptors'; | 681 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc
riptors'; |
682 | 682 |
683 var _response = _requester.request(_url, | 683 var _response = _requester.request(_url, |
684 "GET", | 684 "GET", |
685 body: _body, | 685 body: _body, |
686 queryParams: _queryParams, | 686 queryParams: _queryParams, |
687 uploadOptions: _uploadOptions, | 687 uploadOptions: _uploadOptions, |
688 uploadMedia: _uploadMedia, | 688 uploadMedia: _uploadMedia, |
689 downloadOptions: _downloadOptions); | 689 downloadOptions: _downloadOptions); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 /** | 746 /** |
747 * Lists monitored resource descriptors that match a filter. This method does | 747 * Lists monitored resource descriptors that match a filter. This method does |
748 * not require a Stackdriver account. | 748 * not require a Stackdriver account. |
749 * | 749 * |
750 * Request parameters: | 750 * Request parameters: |
751 * | 751 * |
752 * [name] - The project on which to execute the request. The format is | 752 * [name] - The project on which to execute the request. The format is |
753 * "projects/{project_id_or_number}". | 753 * "projects/{project_id_or_number}". |
754 * Value must have pattern "^projects/[^/]+$". | 754 * Value must have pattern "^projects/[^/]+$". |
755 * | 755 * |
756 * [pageSize] - A positive number that is the maximum number of results to | |
757 * return. | |
758 * | |
759 * [filter] - An optional filter describing the descriptors to be returned. | 756 * [filter] - An optional filter describing the descriptors to be returned. |
760 * The filter can reference the descriptor's type and labels. For example, the | 757 * The filter can reference the descriptor's type and labels. For example, the |
761 * following filter returns only Google Compute Engine descriptors that have | 758 * following filter returns only Google Compute Engine descriptors that have |
762 * an id label: | 759 * an id label: |
763 * resource.type = starts_with("gce_") AND resource.label:id | 760 * resource.type = starts_with("gce_") AND resource.label:id |
764 * | 761 * |
765 * [pageToken] - If this field is not empty then it must contain the | 762 * [pageToken] - If this field is not empty then it must contain the |
766 * nextPageToken value returned by a previous call to this method. Using this | 763 * nextPageToken value returned by a previous call to this method. Using this |
767 * field causes the method to return additional results from the previous | 764 * field causes the method to return additional results from the previous |
768 * method call. | 765 * method call. |
769 * | 766 * |
| 767 * [pageSize] - A positive number that is the maximum number of results to |
| 768 * return. |
| 769 * |
770 * Completes with a [ListMonitoredResourceDescriptorsResponse]. | 770 * Completes with a [ListMonitoredResourceDescriptorsResponse]. |
771 * | 771 * |
772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
773 * error. | 773 * error. |
774 * | 774 * |
775 * If the used [http.Client] completes with an error when making a REST call, | 775 * If the used [http.Client] completes with an error when making a REST call, |
776 * this method will complete with the same error. | 776 * this method will complete with the same error. |
777 */ | 777 */ |
778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name,
{core.int pageSize, core.String filter, core.String pageToken}) { | 778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name,
{core.String filter, core.String pageToken, core.int pageSize}) { |
779 var _url = null; | 779 var _url = null; |
780 var _queryParams = new core.Map(); | 780 var _queryParams = new core.Map(); |
781 var _uploadMedia = null; | 781 var _uploadMedia = null; |
782 var _uploadOptions = null; | 782 var _uploadOptions = null; |
783 var _downloadOptions = commons.DownloadOptions.Metadata; | 783 var _downloadOptions = commons.DownloadOptions.Metadata; |
784 var _body = null; | 784 var _body = null; |
785 | 785 |
786 if (name == null) { | 786 if (name == null) { |
787 throw new core.ArgumentError("Parameter name is required."); | 787 throw new core.ArgumentError("Parameter name is required."); |
788 } | 788 } |
789 if (pageSize != null) { | |
790 _queryParams["pageSize"] = ["${pageSize}"]; | |
791 } | |
792 if (filter != null) { | 789 if (filter != null) { |
793 _queryParams["filter"] = [filter]; | 790 _queryParams["filter"] = [filter]; |
794 } | 791 } |
795 if (pageToken != null) { | 792 if (pageToken != null) { |
796 _queryParams["pageToken"] = [pageToken]; | 793 _queryParams["pageToken"] = [pageToken]; |
797 } | 794 } |
| 795 if (pageSize != null) { |
| 796 _queryParams["pageSize"] = ["${pageSize}"]; |
| 797 } |
798 | 798 |
799 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR
esourceDescriptors'; | 799 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR
esourceDescriptors'; |
800 | 800 |
801 var _response = _requester.request(_url, | 801 var _response = _requester.request(_url, |
802 "GET", | 802 "GET", |
803 body: _body, | 803 body: _body, |
804 queryParams: _queryParams, | 804 queryParams: _queryParams, |
805 uploadOptions: _uploadOptions, | 805 uploadOptions: _uploadOptions, |
806 uploadMedia: _uploadMedia, | 806 uploadMedia: _uploadMedia, |
807 downloadOptions: _downloadOptions); | 807 downloadOptions: _downloadOptions); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 explicitBuckets = new Explicit.fromJson(_json["explicitBuckets"]); | 1077 explicitBuckets = new Explicit.fromJson(_json["explicitBuckets"]); |
1078 } | 1078 } |
1079 if (_json.containsKey("exponentialBuckets")) { | 1079 if (_json.containsKey("exponentialBuckets")) { |
1080 exponentialBuckets = new Exponential.fromJson(_json["exponentialBuckets"])
; | 1080 exponentialBuckets = new Exponential.fromJson(_json["exponentialBuckets"])
; |
1081 } | 1081 } |
1082 if (_json.containsKey("linearBuckets")) { | 1082 if (_json.containsKey("linearBuckets")) { |
1083 linearBuckets = new Linear.fromJson(_json["linearBuckets"]); | 1083 linearBuckets = new Linear.fromJson(_json["linearBuckets"]); |
1084 } | 1084 } |
1085 } | 1085 } |
1086 | 1086 |
1087 core.Map toJson() { | 1087 core.Map<core.String, core.Object> toJson() { |
1088 var _json = new core.Map(); | 1088 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1089 if (explicitBuckets != null) { | 1089 if (explicitBuckets != null) { |
1090 _json["explicitBuckets"] = (explicitBuckets).toJson(); | 1090 _json["explicitBuckets"] = (explicitBuckets).toJson(); |
1091 } | 1091 } |
1092 if (exponentialBuckets != null) { | 1092 if (exponentialBuckets != null) { |
1093 _json["exponentialBuckets"] = (exponentialBuckets).toJson(); | 1093 _json["exponentialBuckets"] = (exponentialBuckets).toJson(); |
1094 } | 1094 } |
1095 if (linearBuckets != null) { | 1095 if (linearBuckets != null) { |
1096 _json["linearBuckets"] = (linearBuckets).toJson(); | 1096 _json["linearBuckets"] = (linearBuckets).toJson(); |
1097 } | 1097 } |
1098 return _json; | 1098 return _json; |
(...skipping 25 matching lines...) Expand all Loading... |
1124 */ | 1124 */ |
1125 core.List<CollectdValue> values; | 1125 core.List<CollectdValue> values; |
1126 | 1126 |
1127 CollectdPayload(); | 1127 CollectdPayload(); |
1128 | 1128 |
1129 CollectdPayload.fromJson(core.Map _json) { | 1129 CollectdPayload.fromJson(core.Map _json) { |
1130 if (_json.containsKey("endTime")) { | 1130 if (_json.containsKey("endTime")) { |
1131 endTime = _json["endTime"]; | 1131 endTime = _json["endTime"]; |
1132 } | 1132 } |
1133 if (_json.containsKey("metadata")) { | 1133 if (_json.containsKey("metadata")) { |
1134 metadata = commons.mapMap(_json["metadata"], (item) => new TypedValue.from
Json(item)); | 1134 metadata = commons.mapMap<core.Map<core.String, core.Object>, TypedValue>(
_json["metadata"], (core.Map<core.String, core.Object> item) => new TypedValue.f
romJson(item)); |
1135 } | 1135 } |
1136 if (_json.containsKey("plugin")) { | 1136 if (_json.containsKey("plugin")) { |
1137 plugin = _json["plugin"]; | 1137 plugin = _json["plugin"]; |
1138 } | 1138 } |
1139 if (_json.containsKey("pluginInstance")) { | 1139 if (_json.containsKey("pluginInstance")) { |
1140 pluginInstance = _json["pluginInstance"]; | 1140 pluginInstance = _json["pluginInstance"]; |
1141 } | 1141 } |
1142 if (_json.containsKey("startTime")) { | 1142 if (_json.containsKey("startTime")) { |
1143 startTime = _json["startTime"]; | 1143 startTime = _json["startTime"]; |
1144 } | 1144 } |
1145 if (_json.containsKey("type")) { | 1145 if (_json.containsKey("type")) { |
1146 type = _json["type"]; | 1146 type = _json["type"]; |
1147 } | 1147 } |
1148 if (_json.containsKey("typeInstance")) { | 1148 if (_json.containsKey("typeInstance")) { |
1149 typeInstance = _json["typeInstance"]; | 1149 typeInstance = _json["typeInstance"]; |
1150 } | 1150 } |
1151 if (_json.containsKey("values")) { | 1151 if (_json.containsKey("values")) { |
1152 values = _json["values"].map((value) => new CollectdValue.fromJson(value))
.toList(); | 1152 values = _json["values"].map((value) => new CollectdValue.fromJson(value))
.toList(); |
1153 } | 1153 } |
1154 } | 1154 } |
1155 | 1155 |
1156 core.Map toJson() { | 1156 core.Map<core.String, core.Object> toJson() { |
1157 var _json = new core.Map(); | 1157 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1158 if (endTime != null) { | 1158 if (endTime != null) { |
1159 _json["endTime"] = endTime; | 1159 _json["endTime"] = endTime; |
1160 } | 1160 } |
1161 if (metadata != null) { | 1161 if (metadata != null) { |
1162 _json["metadata"] = commons.mapMap(metadata, (item) => (item).toJson()); | 1162 _json["metadata"] = commons.mapMap<TypedValue, core.Map<core.String, core.
Object>>(metadata, (TypedValue item) => (item).toJson()); |
1163 } | 1163 } |
1164 if (plugin != null) { | 1164 if (plugin != null) { |
1165 _json["plugin"] = plugin; | 1165 _json["plugin"] = plugin; |
1166 } | 1166 } |
1167 if (pluginInstance != null) { | 1167 if (pluginInstance != null) { |
1168 _json["pluginInstance"] = pluginInstance; | 1168 _json["pluginInstance"] = pluginInstance; |
1169 } | 1169 } |
1170 if (startTime != null) { | 1170 if (startTime != null) { |
1171 _json["startTime"] = startTime; | 1171 _json["startTime"] = startTime; |
1172 } | 1172 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 dataSourceName = _json["dataSourceName"]; | 1215 dataSourceName = _json["dataSourceName"]; |
1216 } | 1216 } |
1217 if (_json.containsKey("dataSourceType")) { | 1217 if (_json.containsKey("dataSourceType")) { |
1218 dataSourceType = _json["dataSourceType"]; | 1218 dataSourceType = _json["dataSourceType"]; |
1219 } | 1219 } |
1220 if (_json.containsKey("value")) { | 1220 if (_json.containsKey("value")) { |
1221 value = new TypedValue.fromJson(_json["value"]); | 1221 value = new TypedValue.fromJson(_json["value"]); |
1222 } | 1222 } |
1223 } | 1223 } |
1224 | 1224 |
1225 core.Map toJson() { | 1225 core.Map<core.String, core.Object> toJson() { |
1226 var _json = new core.Map(); | 1226 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1227 if (dataSourceName != null) { | 1227 if (dataSourceName != null) { |
1228 _json["dataSourceName"] = dataSourceName; | 1228 _json["dataSourceName"] = dataSourceName; |
1229 } | 1229 } |
1230 if (dataSourceType != null) { | 1230 if (dataSourceType != null) { |
1231 _json["dataSourceType"] = dataSourceType; | 1231 _json["dataSourceType"] = dataSourceType; |
1232 } | 1232 } |
1233 if (value != null) { | 1233 if (value != null) { |
1234 _json["value"] = (value).toJson(); | 1234 _json["value"] = (value).toJson(); |
1235 } | 1235 } |
1236 return _json; | 1236 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
1260 collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPa
yload.fromJson(value)).toList(); | 1260 collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPa
yload.fromJson(value)).toList(); |
1261 } | 1261 } |
1262 if (_json.containsKey("collectdVersion")) { | 1262 if (_json.containsKey("collectdVersion")) { |
1263 collectdVersion = _json["collectdVersion"]; | 1263 collectdVersion = _json["collectdVersion"]; |
1264 } | 1264 } |
1265 if (_json.containsKey("resource")) { | 1265 if (_json.containsKey("resource")) { |
1266 resource = new MonitoredResource.fromJson(_json["resource"]); | 1266 resource = new MonitoredResource.fromJson(_json["resource"]); |
1267 } | 1267 } |
1268 } | 1268 } |
1269 | 1269 |
1270 core.Map toJson() { | 1270 core.Map<core.String, core.Object> toJson() { |
1271 var _json = new core.Map(); | 1271 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1272 if (collectdPayloads != null) { | 1272 if (collectdPayloads != null) { |
1273 _json["collectdPayloads"] = collectdPayloads.map((value) => (value).toJson
()).toList(); | 1273 _json["collectdPayloads"] = collectdPayloads.map((value) => (value).toJson
()).toList(); |
1274 } | 1274 } |
1275 if (collectdVersion != null) { | 1275 if (collectdVersion != null) { |
1276 _json["collectdVersion"] = collectdVersion; | 1276 _json["collectdVersion"] = collectdVersion; |
1277 } | 1277 } |
1278 if (resource != null) { | 1278 if (resource != null) { |
1279 _json["resource"] = (resource).toJson(); | 1279 _json["resource"] = (resource).toJson(); |
1280 } | 1280 } |
1281 return _json; | 1281 return _json; |
(...skipping 12 matching lines...) Expand all Loading... |
1294 core.List<TimeSeries> timeSeries; | 1294 core.List<TimeSeries> timeSeries; |
1295 | 1295 |
1296 CreateTimeSeriesRequest(); | 1296 CreateTimeSeriesRequest(); |
1297 | 1297 |
1298 CreateTimeSeriesRequest.fromJson(core.Map _json) { | 1298 CreateTimeSeriesRequest.fromJson(core.Map _json) { |
1299 if (_json.containsKey("timeSeries")) { | 1299 if (_json.containsKey("timeSeries")) { |
1300 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); | 1300 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); |
1301 } | 1301 } |
1302 } | 1302 } |
1303 | 1303 |
1304 core.Map toJson() { | 1304 core.Map<core.String, core.Object> toJson() { |
1305 var _json = new core.Map(); | 1305 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1306 if (timeSeries != null) { | 1306 if (timeSeries != null) { |
1307 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; | 1307 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; |
1308 } | 1308 } |
1309 return _json; | 1309 return _json; |
1310 } | 1310 } |
1311 } | 1311 } |
1312 | 1312 |
1313 /** | 1313 /** |
1314 * Distribution contains summary statistics for a population of values. It | 1314 * Distribution contains summary statistics for a population of values. It |
1315 * optionally contains a histogram representing the distribution of those values | 1315 * optionally contains a histogram representing the distribution of those values |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 mean = _json["mean"]; | 1383 mean = _json["mean"]; |
1384 } | 1384 } |
1385 if (_json.containsKey("range")) { | 1385 if (_json.containsKey("range")) { |
1386 range = new Range.fromJson(_json["range"]); | 1386 range = new Range.fromJson(_json["range"]); |
1387 } | 1387 } |
1388 if (_json.containsKey("sumOfSquaredDeviation")) { | 1388 if (_json.containsKey("sumOfSquaredDeviation")) { |
1389 sumOfSquaredDeviation = _json["sumOfSquaredDeviation"]; | 1389 sumOfSquaredDeviation = _json["sumOfSquaredDeviation"]; |
1390 } | 1390 } |
1391 } | 1391 } |
1392 | 1392 |
1393 core.Map toJson() { | 1393 core.Map<core.String, core.Object> toJson() { |
1394 var _json = new core.Map(); | 1394 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1395 if (bucketCounts != null) { | 1395 if (bucketCounts != null) { |
1396 _json["bucketCounts"] = bucketCounts; | 1396 _json["bucketCounts"] = bucketCounts; |
1397 } | 1397 } |
1398 if (bucketOptions != null) { | 1398 if (bucketOptions != null) { |
1399 _json["bucketOptions"] = (bucketOptions).toJson(); | 1399 _json["bucketOptions"] = (bucketOptions).toJson(); |
1400 } | 1400 } |
1401 if (count != null) { | 1401 if (count != null) { |
1402 _json["count"] = count; | 1402 _json["count"] = count; |
1403 } | 1403 } |
1404 if (mean != null) { | 1404 if (mean != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
1423 * } | 1423 * } |
1424 * The JSON representation for Empty is empty JSON object {}. | 1424 * The JSON representation for Empty is empty JSON object {}. |
1425 */ | 1425 */ |
1426 class Empty { | 1426 class Empty { |
1427 | 1427 |
1428 Empty(); | 1428 Empty(); |
1429 | 1429 |
1430 Empty.fromJson(core.Map _json) { | 1430 Empty.fromJson(core.Map _json) { |
1431 } | 1431 } |
1432 | 1432 |
1433 core.Map toJson() { | 1433 core.Map<core.String, core.Object> toJson() { |
1434 var _json = new core.Map(); | 1434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1435 return _json; | 1435 return _json; |
1436 } | 1436 } |
1437 } | 1437 } |
1438 | 1438 |
1439 /** | 1439 /** |
1440 * Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 | 1440 * Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 |
1441 * (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < | 1441 * (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < |
1442 * N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must | 1442 * N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must |
1443 * contain at least one element. If bounds has only one element, then there are | 1443 * contain at least one element. If bounds has only one element, then there are |
1444 * no finite buckets, and that single element is the common boundary of the | 1444 * no finite buckets, and that single element is the common boundary of the |
1445 * overflow and underflow buckets. | 1445 * overflow and underflow buckets. |
1446 */ | 1446 */ |
1447 class Explicit { | 1447 class Explicit { |
1448 /** The values must be monotonically increasing. */ | 1448 /** The values must be monotonically increasing. */ |
1449 core.List<core.double> bounds; | 1449 core.List<core.double> bounds; |
1450 | 1450 |
1451 Explicit(); | 1451 Explicit(); |
1452 | 1452 |
1453 Explicit.fromJson(core.Map _json) { | 1453 Explicit.fromJson(core.Map _json) { |
1454 if (_json.containsKey("bounds")) { | 1454 if (_json.containsKey("bounds")) { |
1455 bounds = _json["bounds"]; | 1455 bounds = _json["bounds"]; |
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 (bounds != null) { | 1461 if (bounds != null) { |
1462 _json["bounds"] = bounds; | 1462 _json["bounds"] = bounds; |
1463 } | 1463 } |
1464 return _json; | 1464 return _json; |
1465 } | 1465 } |
1466 } | 1466 } |
1467 | 1467 |
1468 /** | 1468 /** |
1469 * Specifies an exponential sequence of buckets that have a width that is | 1469 * Specifies an exponential sequence of buckets that have a width that is |
1470 * proportional to the value of the lower bound. Each bucket represents a | 1470 * proportional to the value of the lower bound. Each bucket represents a |
(...skipping 17 matching lines...) Expand all Loading... |
1488 growthFactor = _json["growthFactor"]; | 1488 growthFactor = _json["growthFactor"]; |
1489 } | 1489 } |
1490 if (_json.containsKey("numFiniteBuckets")) { | 1490 if (_json.containsKey("numFiniteBuckets")) { |
1491 numFiniteBuckets = _json["numFiniteBuckets"]; | 1491 numFiniteBuckets = _json["numFiniteBuckets"]; |
1492 } | 1492 } |
1493 if (_json.containsKey("scale")) { | 1493 if (_json.containsKey("scale")) { |
1494 scale = _json["scale"]; | 1494 scale = _json["scale"]; |
1495 } | 1495 } |
1496 } | 1496 } |
1497 | 1497 |
1498 core.Map toJson() { | 1498 core.Map<core.String, core.Object> toJson() { |
1499 var _json = new core.Map(); | 1499 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1500 if (growthFactor != null) { | 1500 if (growthFactor != null) { |
1501 _json["growthFactor"] = growthFactor; | 1501 _json["growthFactor"] = growthFactor; |
1502 } | 1502 } |
1503 if (numFiniteBuckets != null) { | 1503 if (numFiniteBuckets != null) { |
1504 _json["numFiniteBuckets"] = numFiniteBuckets; | 1504 _json["numFiniteBuckets"] = numFiniteBuckets; |
1505 } | 1505 } |
1506 if (scale != null) { | 1506 if (scale != null) { |
1507 _json["scale"] = scale; | 1507 _json["scale"] = scale; |
1508 } | 1508 } |
1509 return _json; | 1509 return _json; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); | 1598 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); |
1599 } | 1599 } |
1600 if (_json.containsKey("packed")) { | 1600 if (_json.containsKey("packed")) { |
1601 packed = _json["packed"]; | 1601 packed = _json["packed"]; |
1602 } | 1602 } |
1603 if (_json.containsKey("typeUrl")) { | 1603 if (_json.containsKey("typeUrl")) { |
1604 typeUrl = _json["typeUrl"]; | 1604 typeUrl = _json["typeUrl"]; |
1605 } | 1605 } |
1606 } | 1606 } |
1607 | 1607 |
1608 core.Map toJson() { | 1608 core.Map<core.String, core.Object> toJson() { |
1609 var _json = new core.Map(); | 1609 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1610 if (cardinality != null) { | 1610 if (cardinality != null) { |
1611 _json["cardinality"] = cardinality; | 1611 _json["cardinality"] = cardinality; |
1612 } | 1612 } |
1613 if (defaultValue != null) { | 1613 if (defaultValue != null) { |
1614 _json["defaultValue"] = defaultValue; | 1614 _json["defaultValue"] = defaultValue; |
1615 } | 1615 } |
1616 if (jsonName != null) { | 1616 if (jsonName != null) { |
1617 _json["jsonName"] = jsonName; | 1617 _json["jsonName"] = jsonName; |
1618 } | 1618 } |
1619 if (kind != null) { | 1619 if (kind != null) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1704 isCluster = _json["isCluster"]; | 1704 isCluster = _json["isCluster"]; |
1705 } | 1705 } |
1706 if (_json.containsKey("name")) { | 1706 if (_json.containsKey("name")) { |
1707 name = _json["name"]; | 1707 name = _json["name"]; |
1708 } | 1708 } |
1709 if (_json.containsKey("parentName")) { | 1709 if (_json.containsKey("parentName")) { |
1710 parentName = _json["parentName"]; | 1710 parentName = _json["parentName"]; |
1711 } | 1711 } |
1712 } | 1712 } |
1713 | 1713 |
1714 core.Map toJson() { | 1714 core.Map<core.String, core.Object> toJson() { |
1715 var _json = new core.Map(); | 1715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1716 if (displayName != null) { | 1716 if (displayName != null) { |
1717 _json["displayName"] = displayName; | 1717 _json["displayName"] = displayName; |
1718 } | 1718 } |
1719 if (filter != null) { | 1719 if (filter != null) { |
1720 _json["filter"] = filter; | 1720 _json["filter"] = filter; |
1721 } | 1721 } |
1722 if (isCluster != null) { | 1722 if (isCluster != null) { |
1723 _json["isCluster"] = isCluster; | 1723 _json["isCluster"] = isCluster; |
1724 } | 1724 } |
1725 if (name != null) { | 1725 if (name != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
1754 description = _json["description"]; | 1754 description = _json["description"]; |
1755 } | 1755 } |
1756 if (_json.containsKey("key")) { | 1756 if (_json.containsKey("key")) { |
1757 key = _json["key"]; | 1757 key = _json["key"]; |
1758 } | 1758 } |
1759 if (_json.containsKey("valueType")) { | 1759 if (_json.containsKey("valueType")) { |
1760 valueType = _json["valueType"]; | 1760 valueType = _json["valueType"]; |
1761 } | 1761 } |
1762 } | 1762 } |
1763 | 1763 |
1764 core.Map toJson() { | 1764 core.Map<core.String, core.Object> toJson() { |
1765 var _json = new core.Map(); | 1765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1766 if (description != null) { | 1766 if (description != null) { |
1767 _json["description"] = description; | 1767 _json["description"] = description; |
1768 } | 1768 } |
1769 if (key != null) { | 1769 if (key != null) { |
1770 _json["key"] = key; | 1770 _json["key"] = key; |
1771 } | 1771 } |
1772 if (valueType != null) { | 1772 if (valueType != null) { |
1773 _json["valueType"] = valueType; | 1773 _json["valueType"] = valueType; |
1774 } | 1774 } |
1775 return _json; | 1775 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
1799 numFiniteBuckets = _json["numFiniteBuckets"]; | 1799 numFiniteBuckets = _json["numFiniteBuckets"]; |
1800 } | 1800 } |
1801 if (_json.containsKey("offset")) { | 1801 if (_json.containsKey("offset")) { |
1802 offset = _json["offset"]; | 1802 offset = _json["offset"]; |
1803 } | 1803 } |
1804 if (_json.containsKey("width")) { | 1804 if (_json.containsKey("width")) { |
1805 width = _json["width"]; | 1805 width = _json["width"]; |
1806 } | 1806 } |
1807 } | 1807 } |
1808 | 1808 |
1809 core.Map toJson() { | 1809 core.Map<core.String, core.Object> toJson() { |
1810 var _json = new core.Map(); | 1810 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1811 if (numFiniteBuckets != null) { | 1811 if (numFiniteBuckets != null) { |
1812 _json["numFiniteBuckets"] = numFiniteBuckets; | 1812 _json["numFiniteBuckets"] = numFiniteBuckets; |
1813 } | 1813 } |
1814 if (offset != null) { | 1814 if (offset != null) { |
1815 _json["offset"] = offset; | 1815 _json["offset"] = offset; |
1816 } | 1816 } |
1817 if (width != null) { | 1817 if (width != null) { |
1818 _json["width"] = width; | 1818 _json["width"] = width; |
1819 } | 1819 } |
1820 return _json; | 1820 return _json; |
(...skipping 20 matching lines...) Expand all Loading... |
1841 members = _json["members"].map((value) => new MonitoredResource.fromJson(v
alue)).toList(); | 1841 members = _json["members"].map((value) => new MonitoredResource.fromJson(v
alue)).toList(); |
1842 } | 1842 } |
1843 if (_json.containsKey("nextPageToken")) { | 1843 if (_json.containsKey("nextPageToken")) { |
1844 nextPageToken = _json["nextPageToken"]; | 1844 nextPageToken = _json["nextPageToken"]; |
1845 } | 1845 } |
1846 if (_json.containsKey("totalSize")) { | 1846 if (_json.containsKey("totalSize")) { |
1847 totalSize = _json["totalSize"]; | 1847 totalSize = _json["totalSize"]; |
1848 } | 1848 } |
1849 } | 1849 } |
1850 | 1850 |
1851 core.Map toJson() { | 1851 core.Map<core.String, core.Object> toJson() { |
1852 var _json = new core.Map(); | 1852 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1853 if (members != null) { | 1853 if (members != null) { |
1854 _json["members"] = members.map((value) => (value).toJson()).toList(); | 1854 _json["members"] = members.map((value) => (value).toJson()).toList(); |
1855 } | 1855 } |
1856 if (nextPageToken != null) { | 1856 if (nextPageToken != null) { |
1857 _json["nextPageToken"] = nextPageToken; | 1857 _json["nextPageToken"] = nextPageToken; |
1858 } | 1858 } |
1859 if (totalSize != null) { | 1859 if (totalSize != null) { |
1860 _json["totalSize"] = totalSize; | 1860 _json["totalSize"] = totalSize; |
1861 } | 1861 } |
1862 return _json; | 1862 return _json; |
(...skipping 15 matching lines...) Expand all Loading... |
1878 | 1878 |
1879 ListGroupsResponse.fromJson(core.Map _json) { | 1879 ListGroupsResponse.fromJson(core.Map _json) { |
1880 if (_json.containsKey("group")) { | 1880 if (_json.containsKey("group")) { |
1881 group = _json["group"].map((value) => new Group.fromJson(value)).toList(); | 1881 group = _json["group"].map((value) => new Group.fromJson(value)).toList(); |
1882 } | 1882 } |
1883 if (_json.containsKey("nextPageToken")) { | 1883 if (_json.containsKey("nextPageToken")) { |
1884 nextPageToken = _json["nextPageToken"]; | 1884 nextPageToken = _json["nextPageToken"]; |
1885 } | 1885 } |
1886 } | 1886 } |
1887 | 1887 |
1888 core.Map toJson() { | 1888 core.Map<core.String, core.Object> toJson() { |
1889 var _json = new core.Map(); | 1889 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1890 if (group != null) { | 1890 if (group != null) { |
1891 _json["group"] = group.map((value) => (value).toJson()).toList(); | 1891 _json["group"] = group.map((value) => (value).toJson()).toList(); |
1892 } | 1892 } |
1893 if (nextPageToken != null) { | 1893 if (nextPageToken != null) { |
1894 _json["nextPageToken"] = nextPageToken; | 1894 _json["nextPageToken"] = nextPageToken; |
1895 } | 1895 } |
1896 return _json; | 1896 return _json; |
1897 } | 1897 } |
1898 } | 1898 } |
1899 | 1899 |
(...skipping 15 matching lines...) Expand all Loading... |
1915 | 1915 |
1916 ListMetricDescriptorsResponse.fromJson(core.Map _json) { | 1916 ListMetricDescriptorsResponse.fromJson(core.Map _json) { |
1917 if (_json.containsKey("metricDescriptors")) { | 1917 if (_json.containsKey("metricDescriptors")) { |
1918 metricDescriptors = _json["metricDescriptors"].map((value) => new MetricDe
scriptor.fromJson(value)).toList(); | 1918 metricDescriptors = _json["metricDescriptors"].map((value) => new MetricDe
scriptor.fromJson(value)).toList(); |
1919 } | 1919 } |
1920 if (_json.containsKey("nextPageToken")) { | 1920 if (_json.containsKey("nextPageToken")) { |
1921 nextPageToken = _json["nextPageToken"]; | 1921 nextPageToken = _json["nextPageToken"]; |
1922 } | 1922 } |
1923 } | 1923 } |
1924 | 1924 |
1925 core.Map toJson() { | 1925 core.Map<core.String, core.Object> toJson() { |
1926 var _json = new core.Map(); | 1926 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1927 if (metricDescriptors != null) { | 1927 if (metricDescriptors != null) { |
1928 _json["metricDescriptors"] = metricDescriptors.map((value) => (value).toJs
on()).toList(); | 1928 _json["metricDescriptors"] = metricDescriptors.map((value) => (value).toJs
on()).toList(); |
1929 } | 1929 } |
1930 if (nextPageToken != null) { | 1930 if (nextPageToken != null) { |
1931 _json["nextPageToken"] = nextPageToken; | 1931 _json["nextPageToken"] = nextPageToken; |
1932 } | 1932 } |
1933 return _json; | 1933 return _json; |
1934 } | 1934 } |
1935 } | 1935 } |
1936 | 1936 |
(...skipping 15 matching lines...) Expand all Loading... |
1952 | 1952 |
1953 ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { | 1953 ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { |
1954 if (_json.containsKey("nextPageToken")) { | 1954 if (_json.containsKey("nextPageToken")) { |
1955 nextPageToken = _json["nextPageToken"]; | 1955 nextPageToken = _json["nextPageToken"]; |
1956 } | 1956 } |
1957 if (_json.containsKey("resourceDescriptors")) { | 1957 if (_json.containsKey("resourceDescriptors")) { |
1958 resourceDescriptors = _json["resourceDescriptors"].map((value) => new Moni
toredResourceDescriptor.fromJson(value)).toList(); | 1958 resourceDescriptors = _json["resourceDescriptors"].map((value) => new Moni
toredResourceDescriptor.fromJson(value)).toList(); |
1959 } | 1959 } |
1960 } | 1960 } |
1961 | 1961 |
1962 core.Map toJson() { | 1962 core.Map<core.String, core.Object> toJson() { |
1963 var _json = new core.Map(); | 1963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1964 if (nextPageToken != null) { | 1964 if (nextPageToken != null) { |
1965 _json["nextPageToken"] = nextPageToken; | 1965 _json["nextPageToken"] = nextPageToken; |
1966 } | 1966 } |
1967 if (resourceDescriptors != null) { | 1967 if (resourceDescriptors != null) { |
1968 _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).
toJson()).toList(); | 1968 _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).
toJson()).toList(); |
1969 } | 1969 } |
1970 return _json; | 1970 return _json; |
1971 } | 1971 } |
1972 } | 1972 } |
1973 | 1973 |
(...skipping 12 matching lines...) Expand all Loading... |
1986 | 1986 |
1987 ListTimeSeriesResponse.fromJson(core.Map _json) { | 1987 ListTimeSeriesResponse.fromJson(core.Map _json) { |
1988 if (_json.containsKey("nextPageToken")) { | 1988 if (_json.containsKey("nextPageToken")) { |
1989 nextPageToken = _json["nextPageToken"]; | 1989 nextPageToken = _json["nextPageToken"]; |
1990 } | 1990 } |
1991 if (_json.containsKey("timeSeries")) { | 1991 if (_json.containsKey("timeSeries")) { |
1992 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); | 1992 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); |
1993 } | 1993 } |
1994 } | 1994 } |
1995 | 1995 |
1996 core.Map toJson() { | 1996 core.Map<core.String, core.Object> toJson() { |
1997 var _json = new core.Map(); | 1997 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1998 if (nextPageToken != null) { | 1998 if (nextPageToken != null) { |
1999 _json["nextPageToken"] = nextPageToken; | 1999 _json["nextPageToken"] = nextPageToken; |
2000 } | 2000 } |
2001 if (timeSeries != null) { | 2001 if (timeSeries != null) { |
2002 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; | 2002 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; |
2003 } | 2003 } |
2004 return _json; | 2004 return _json; |
2005 } | 2005 } |
2006 } | 2006 } |
2007 | 2007 |
(...skipping 17 matching lines...) Expand all Loading... |
2025 | 2025 |
2026 Metric.fromJson(core.Map _json) { | 2026 Metric.fromJson(core.Map _json) { |
2027 if (_json.containsKey("labels")) { | 2027 if (_json.containsKey("labels")) { |
2028 labels = _json["labels"]; | 2028 labels = _json["labels"]; |
2029 } | 2029 } |
2030 if (_json.containsKey("type")) { | 2030 if (_json.containsKey("type")) { |
2031 type = _json["type"]; | 2031 type = _json["type"]; |
2032 } | 2032 } |
2033 } | 2033 } |
2034 | 2034 |
2035 core.Map toJson() { | 2035 core.Map<core.String, core.Object> toJson() { |
2036 var _json = new core.Map(); | 2036 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2037 if (labels != null) { | 2037 if (labels != null) { |
2038 _json["labels"] = labels; | 2038 _json["labels"] = labels; |
2039 } | 2039 } |
2040 if (type != null) { | 2040 if (type != null) { |
2041 _json["type"] = type; | 2041 _json["type"] = type; |
2042 } | 2042 } |
2043 return _json; | 2043 return _json; |
2044 } | 2044 } |
2045 } | 2045 } |
2046 | 2046 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 type = _json["type"]; | 2188 type = _json["type"]; |
2189 } | 2189 } |
2190 if (_json.containsKey("unit")) { | 2190 if (_json.containsKey("unit")) { |
2191 unit = _json["unit"]; | 2191 unit = _json["unit"]; |
2192 } | 2192 } |
2193 if (_json.containsKey("valueType")) { | 2193 if (_json.containsKey("valueType")) { |
2194 valueType = _json["valueType"]; | 2194 valueType = _json["valueType"]; |
2195 } | 2195 } |
2196 } | 2196 } |
2197 | 2197 |
2198 core.Map toJson() { | 2198 core.Map<core.String, core.Object> toJson() { |
2199 var _json = new core.Map(); | 2199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2200 if (description != null) { | 2200 if (description != null) { |
2201 _json["description"] = description; | 2201 _json["description"] = description; |
2202 } | 2202 } |
2203 if (displayName != null) { | 2203 if (displayName != null) { |
2204 _json["displayName"] = displayName; | 2204 _json["displayName"] = displayName; |
2205 } | 2205 } |
2206 if (labels != null) { | 2206 if (labels != null) { |
2207 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 2207 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
2208 } | 2208 } |
2209 if (metricKind != null) { | 2209 if (metricKind != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 | 2257 |
2258 MonitoredResource.fromJson(core.Map _json) { | 2258 MonitoredResource.fromJson(core.Map _json) { |
2259 if (_json.containsKey("labels")) { | 2259 if (_json.containsKey("labels")) { |
2260 labels = _json["labels"]; | 2260 labels = _json["labels"]; |
2261 } | 2261 } |
2262 if (_json.containsKey("type")) { | 2262 if (_json.containsKey("type")) { |
2263 type = _json["type"]; | 2263 type = _json["type"]; |
2264 } | 2264 } |
2265 } | 2265 } |
2266 | 2266 |
2267 core.Map toJson() { | 2267 core.Map<core.String, core.Object> toJson() { |
2268 var _json = new core.Map(); | 2268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2269 if (labels != null) { | 2269 if (labels != null) { |
2270 _json["labels"] = labels; | 2270 _json["labels"] = labels; |
2271 } | 2271 } |
2272 if (type != null) { | 2272 if (type != null) { |
2273 _json["type"] = type; | 2273 _json["type"] = type; |
2274 } | 2274 } |
2275 return _json; | 2275 return _json; |
2276 } | 2276 } |
2277 } | 2277 } |
2278 | 2278 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2333 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); | 2333 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); |
2334 } | 2334 } |
2335 if (_json.containsKey("name")) { | 2335 if (_json.containsKey("name")) { |
2336 name = _json["name"]; | 2336 name = _json["name"]; |
2337 } | 2337 } |
2338 if (_json.containsKey("type")) { | 2338 if (_json.containsKey("type")) { |
2339 type = _json["type"]; | 2339 type = _json["type"]; |
2340 } | 2340 } |
2341 } | 2341 } |
2342 | 2342 |
2343 core.Map toJson() { | 2343 core.Map<core.String, core.Object> toJson() { |
2344 var _json = new core.Map(); | 2344 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2345 if (description != null) { | 2345 if (description != null) { |
2346 _json["description"] = description; | 2346 _json["description"] = description; |
2347 } | 2347 } |
2348 if (displayName != null) { | 2348 if (displayName != null) { |
2349 _json["displayName"] = displayName; | 2349 _json["displayName"] = displayName; |
2350 } | 2350 } |
2351 if (labels != null) { | 2351 if (labels != null) { |
2352 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 2352 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
2353 } | 2353 } |
2354 if (name != null) { | 2354 if (name != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 | 2388 |
2389 Option.fromJson(core.Map _json) { | 2389 Option.fromJson(core.Map _json) { |
2390 if (_json.containsKey("name")) { | 2390 if (_json.containsKey("name")) { |
2391 name = _json["name"]; | 2391 name = _json["name"]; |
2392 } | 2392 } |
2393 if (_json.containsKey("value")) { | 2393 if (_json.containsKey("value")) { |
2394 value = _json["value"]; | 2394 value = _json["value"]; |
2395 } | 2395 } |
2396 } | 2396 } |
2397 | 2397 |
2398 core.Map toJson() { | 2398 core.Map<core.String, core.Object> toJson() { |
2399 var _json = new core.Map(); | 2399 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2400 if (name != null) { | 2400 if (name != null) { |
2401 _json["name"] = name; | 2401 _json["name"] = name; |
2402 } | 2402 } |
2403 if (value != null) { | 2403 if (value != null) { |
2404 _json["value"] = value; | 2404 _json["value"] = value; |
2405 } | 2405 } |
2406 return _json; | 2406 return _json; |
2407 } | 2407 } |
2408 } | 2408 } |
2409 | 2409 |
(...skipping 17 matching lines...) Expand all Loading... |
2427 | 2427 |
2428 Point.fromJson(core.Map _json) { | 2428 Point.fromJson(core.Map _json) { |
2429 if (_json.containsKey("interval")) { | 2429 if (_json.containsKey("interval")) { |
2430 interval = new TimeInterval.fromJson(_json["interval"]); | 2430 interval = new TimeInterval.fromJson(_json["interval"]); |
2431 } | 2431 } |
2432 if (_json.containsKey("value")) { | 2432 if (_json.containsKey("value")) { |
2433 value = new TypedValue.fromJson(_json["value"]); | 2433 value = new TypedValue.fromJson(_json["value"]); |
2434 } | 2434 } |
2435 } | 2435 } |
2436 | 2436 |
2437 core.Map toJson() { | 2437 core.Map<core.String, core.Object> toJson() { |
2438 var _json = new core.Map(); | 2438 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2439 if (interval != null) { | 2439 if (interval != null) { |
2440 _json["interval"] = (interval).toJson(); | 2440 _json["interval"] = (interval).toJson(); |
2441 } | 2441 } |
2442 if (value != null) { | 2442 if (value != null) { |
2443 _json["value"] = (value).toJson(); | 2443 _json["value"] = (value).toJson(); |
2444 } | 2444 } |
2445 return _json; | 2445 return _json; |
2446 } | 2446 } |
2447 } | 2447 } |
2448 | 2448 |
2449 /** The range of the population values. */ | 2449 /** The range of the population values. */ |
2450 class Range { | 2450 class Range { |
2451 /** The maximum of the population values. */ | 2451 /** The maximum of the population values. */ |
2452 core.double max; | 2452 core.double max; |
2453 /** The minimum of the population values. */ | 2453 /** The minimum of the population values. */ |
2454 core.double min; | 2454 core.double min; |
2455 | 2455 |
2456 Range(); | 2456 Range(); |
2457 | 2457 |
2458 Range.fromJson(core.Map _json) { | 2458 Range.fromJson(core.Map _json) { |
2459 if (_json.containsKey("max")) { | 2459 if (_json.containsKey("max")) { |
2460 max = _json["max"]; | 2460 max = _json["max"]; |
2461 } | 2461 } |
2462 if (_json.containsKey("min")) { | 2462 if (_json.containsKey("min")) { |
2463 min = _json["min"]; | 2463 min = _json["min"]; |
2464 } | 2464 } |
2465 } | 2465 } |
2466 | 2466 |
2467 core.Map toJson() { | 2467 core.Map<core.String, core.Object> toJson() { |
2468 var _json = new core.Map(); | 2468 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2469 if (max != null) { | 2469 if (max != null) { |
2470 _json["max"] = max; | 2470 _json["max"] = max; |
2471 } | 2471 } |
2472 if (min != null) { | 2472 if (min != null) { |
2473 _json["min"] = min; | 2473 _json["min"] = min; |
2474 } | 2474 } |
2475 return _json; | 2475 return _json; |
2476 } | 2476 } |
2477 } | 2477 } |
2478 | 2478 |
2479 /** | 2479 /** |
2480 * SourceContext represents information about the source of a protobuf element, | 2480 * SourceContext represents information about the source of a protobuf element, |
2481 * like the file in which it is defined. | 2481 * like the file in which it is defined. |
2482 */ | 2482 */ |
2483 class SourceContext { | 2483 class SourceContext { |
2484 /** | 2484 /** |
2485 * The path-qualified name of the .proto file that contained the associated | 2485 * The path-qualified name of the .proto file that contained the associated |
2486 * protobuf element. For example: "google/protobuf/source_context.proto". | 2486 * protobuf element. For example: "google/protobuf/source_context.proto". |
2487 */ | 2487 */ |
2488 core.String fileName; | 2488 core.String fileName; |
2489 | 2489 |
2490 SourceContext(); | 2490 SourceContext(); |
2491 | 2491 |
2492 SourceContext.fromJson(core.Map _json) { | 2492 SourceContext.fromJson(core.Map _json) { |
2493 if (_json.containsKey("fileName")) { | 2493 if (_json.containsKey("fileName")) { |
2494 fileName = _json["fileName"]; | 2494 fileName = _json["fileName"]; |
2495 } | 2495 } |
2496 } | 2496 } |
2497 | 2497 |
2498 core.Map toJson() { | 2498 core.Map<core.String, core.Object> toJson() { |
2499 var _json = new core.Map(); | 2499 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2500 if (fileName != null) { | 2500 if (fileName != null) { |
2501 _json["fileName"] = fileName; | 2501 _json["fileName"] = fileName; |
2502 } | 2502 } |
2503 return _json; | 2503 return _json; |
2504 } | 2504 } |
2505 } | 2505 } |
2506 | 2506 |
2507 /** | 2507 /** |
2508 * A time interval extending just after a start time through an end time. If the | 2508 * A time interval extending just after a start time through an end time. If the |
2509 * start time is the same as the end time, then the interval represents a single | 2509 * start time is the same as the end time, then the interval represents a single |
(...skipping 13 matching lines...) Expand all Loading... |
2523 | 2523 |
2524 TimeInterval.fromJson(core.Map _json) { | 2524 TimeInterval.fromJson(core.Map _json) { |
2525 if (_json.containsKey("endTime")) { | 2525 if (_json.containsKey("endTime")) { |
2526 endTime = _json["endTime"]; | 2526 endTime = _json["endTime"]; |
2527 } | 2527 } |
2528 if (_json.containsKey("startTime")) { | 2528 if (_json.containsKey("startTime")) { |
2529 startTime = _json["startTime"]; | 2529 startTime = _json["startTime"]; |
2530 } | 2530 } |
2531 } | 2531 } |
2532 | 2532 |
2533 core.Map toJson() { | 2533 core.Map<core.String, core.Object> toJson() { |
2534 var _json = new core.Map(); | 2534 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2535 if (endTime != null) { | 2535 if (endTime != null) { |
2536 _json["endTime"] = endTime; | 2536 _json["endTime"] = endTime; |
2537 } | 2537 } |
2538 if (startTime != null) { | 2538 if (startTime != null) { |
2539 _json["startTime"] = startTime; | 2539 _json["startTime"] = startTime; |
2540 } | 2540 } |
2541 return _json; | 2541 return _json; |
2542 } | 2542 } |
2543 } | 2543 } |
2544 | 2544 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2620 points = _json["points"].map((value) => new Point.fromJson(value)).toList(
); | 2620 points = _json["points"].map((value) => new Point.fromJson(value)).toList(
); |
2621 } | 2621 } |
2622 if (_json.containsKey("resource")) { | 2622 if (_json.containsKey("resource")) { |
2623 resource = new MonitoredResource.fromJson(_json["resource"]); | 2623 resource = new MonitoredResource.fromJson(_json["resource"]); |
2624 } | 2624 } |
2625 if (_json.containsKey("valueType")) { | 2625 if (_json.containsKey("valueType")) { |
2626 valueType = _json["valueType"]; | 2626 valueType = _json["valueType"]; |
2627 } | 2627 } |
2628 } | 2628 } |
2629 | 2629 |
2630 core.Map toJson() { | 2630 core.Map<core.String, core.Object> toJson() { |
2631 var _json = new core.Map(); | 2631 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2632 if (metric != null) { | 2632 if (metric != null) { |
2633 _json["metric"] = (metric).toJson(); | 2633 _json["metric"] = (metric).toJson(); |
2634 } | 2634 } |
2635 if (metricKind != null) { | 2635 if (metricKind != null) { |
2636 _json["metricKind"] = metricKind; | 2636 _json["metricKind"] = metricKind; |
2637 } | 2637 } |
2638 if (points != null) { | 2638 if (points != null) { |
2639 _json["points"] = points.map((value) => (value).toJson()).toList(); | 2639 _json["points"] = points.map((value) => (value).toJson()).toList(); |
2640 } | 2640 } |
2641 if (resource != null) { | 2641 if (resource != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2684 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); | 2684 options = _json["options"].map((value) => new Option.fromJson(value)).toLi
st(); |
2685 } | 2685 } |
2686 if (_json.containsKey("sourceContext")) { | 2686 if (_json.containsKey("sourceContext")) { |
2687 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); | 2687 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); |
2688 } | 2688 } |
2689 if (_json.containsKey("syntax")) { | 2689 if (_json.containsKey("syntax")) { |
2690 syntax = _json["syntax"]; | 2690 syntax = _json["syntax"]; |
2691 } | 2691 } |
2692 } | 2692 } |
2693 | 2693 |
2694 core.Map toJson() { | 2694 core.Map<core.String, core.Object> toJson() { |
2695 var _json = new core.Map(); | 2695 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2696 if (fields != null) { | 2696 if (fields != null) { |
2697 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 2697 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
2698 } | 2698 } |
2699 if (name != null) { | 2699 if (name != null) { |
2700 _json["name"] = name; | 2700 _json["name"] = name; |
2701 } | 2701 } |
2702 if (oneofs != null) { | 2702 if (oneofs != null) { |
2703 _json["oneofs"] = oneofs; | 2703 _json["oneofs"] = oneofs; |
2704 } | 2704 } |
2705 if (options != null) { | 2705 if (options != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2747 doubleValue = _json["doubleValue"]; | 2747 doubleValue = _json["doubleValue"]; |
2748 } | 2748 } |
2749 if (_json.containsKey("int64Value")) { | 2749 if (_json.containsKey("int64Value")) { |
2750 int64Value = _json["int64Value"]; | 2750 int64Value = _json["int64Value"]; |
2751 } | 2751 } |
2752 if (_json.containsKey("stringValue")) { | 2752 if (_json.containsKey("stringValue")) { |
2753 stringValue = _json["stringValue"]; | 2753 stringValue = _json["stringValue"]; |
2754 } | 2754 } |
2755 } | 2755 } |
2756 | 2756 |
2757 core.Map toJson() { | 2757 core.Map<core.String, core.Object> toJson() { |
2758 var _json = new core.Map(); | 2758 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2759 if (boolValue != null) { | 2759 if (boolValue != null) { |
2760 _json["boolValue"] = boolValue; | 2760 _json["boolValue"] = boolValue; |
2761 } | 2761 } |
2762 if (distributionValue != null) { | 2762 if (distributionValue != null) { |
2763 _json["distributionValue"] = (distributionValue).toJson(); | 2763 _json["distributionValue"] = (distributionValue).toJson(); |
2764 } | 2764 } |
2765 if (doubleValue != null) { | 2765 if (doubleValue != null) { |
2766 _json["doubleValue"] = doubleValue; | 2766 _json["doubleValue"] = doubleValue; |
2767 } | 2767 } |
2768 if (int64Value != null) { | 2768 if (int64Value != null) { |
2769 _json["int64Value"] = int64Value; | 2769 _json["int64Value"] = int64Value; |
2770 } | 2770 } |
2771 if (stringValue != null) { | 2771 if (stringValue != null) { |
2772 _json["stringValue"] = stringValue; | 2772 _json["stringValue"] = stringValue; |
2773 } | 2773 } |
2774 return _json; | 2774 return _json; |
2775 } | 2775 } |
2776 } | 2776 } |
OLD | NEW |