| OLD | NEW |
| 1 library googleapis_beta.cloudmonitoring.v2beta1; | 1 library googleapis_beta.cloudmonitoring.v2beta1; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| 11 import '../common/common.dart' as common; | 11 import '../common/common.dart' as common; |
| 12 | 12 |
| 13 export '../common/common.dart' show ApiRequestError; | 13 export '../common/common.dart' show ApiRequestError; |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 14 export '../common/common.dart' show DetailedApiRequestError; |
| 15 | 15 |
| 16 /** API for accessing Google Cloud and API monitoring data. */ | 16 /** API for accessing Google Cloud and API monitoring data. */ |
| 17 class CloudmonitoringApi { | 17 class CloudmonitoringApi { |
| 18 /** View monitoring data for all of your Google Cloud and API projects */ | 18 /** View monitoring data for all of your Google Cloud and API projects */ |
| 19 static const MonitoringReadonlyScope = "https://www.googleapis.com/auth/monito
ring.readonly"; | 19 static const MonitoringReadonlyScope = "https://www.googleapis.com/auth/monito
ring.readonly"; |
| 20 | 20 |
| 21 | 21 |
| 22 final common_internal.ApiRequester _requester; | 22 final common_internal.ApiRequester _requester; |
| 23 | 23 |
| 24 MetricDescriptorsResourceApi get metricDescriptors => new MetricDescriptorsRes
ourceApi(_requester); | 24 MetricDescriptorsResourceApi get metricDescriptors => new MetricDescriptorsRes
ourceApi(_requester); |
| 25 TimeseriesResourceApi get timeseries => new TimeseriesResourceApi(_requester); | 25 TimeseriesResourceApi get timeseries => new TimeseriesResourceApi(_requester); |
| 26 TimeseriesDescriptorsResourceApi get timeseriesDescriptors => new TimeseriesDe
scriptorsResourceApi(_requester); | 26 TimeseriesDescriptorsResourceApi get timeseriesDescriptors => new TimeseriesDe
scriptorsResourceApi(_requester); |
| 27 | 27 |
| 28 CloudmonitoringApi(http.Client client) : | 28 CloudmonitoringApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "cloudmonitoring/v2beta1/projects/"}) : |
| 29 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "cloudmonitoring/v2beta1/projects/"); | 29 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 /** Not documented yet. */ | 33 /** Not documented yet. */ |
| 34 class MetricDescriptorsResourceApi { | 34 class MetricDescriptorsResourceApi { |
| 35 final common_internal.ApiRequester _requester; | 35 final common_internal.ApiRequester _requester; |
| 36 | 36 |
| 37 MetricDescriptorsResourceApi(common_internal.ApiRequester client) : | 37 MetricDescriptorsResourceApi(common_internal.ApiRequester client) : |
| 38 _requester = client; | 38 _requester = client; |
| 39 | 39 |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 _json["key"] = key; | 1163 _json["key"] = key; |
| 1164 } | 1164 } |
| 1165 if (value != null) { | 1165 if (value != null) { |
| 1166 _json["value"] = value; | 1166 _json["value"] = value; |
| 1167 } | 1167 } |
| 1168 return _json; | 1168 return _json; |
| 1169 } | 1169 } |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 | 1172 |
| OLD | NEW |