| 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.cloudlatencytest.v2; | 3 library googleapis.cloudlatencytest.v2; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client cloudlatencytest/v2'; | 15 const core.String USER_AGENT = 'dart-api-client cloudlatencytest/v2'; |
| 16 | 16 |
| 17 /** A Test API to report latency data. */ | 17 /** Reports latency data. */ |
| 18 class CloudlatencytestApi { | 18 class CloudlatencytestApi { |
| 19 /** View monitoring data for all of your Google Cloud and API projects */ | 19 /** View monitoring data for all of your Google Cloud and API projects */ |
| 20 static const MonitoringReadonlyScope = "https://www.googleapis.com/auth/monito
ring.readonly"; | 20 static const MonitoringReadonlyScope = "https://www.googleapis.com/auth/monito
ring.readonly"; |
| 21 | 21 |
| 22 | 22 |
| 23 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
| 24 | 24 |
| 25 StatscollectionResourceApi get statscollection => new StatscollectionResourceA
pi(_requester); | 25 StatscollectionResourceApi get statscollection => new StatscollectionResourceA
pi(_requester); |
| 26 | 26 |
| 27 CloudlatencytestApi(http.Client client, {core.String rootUrl: "https://cloudla
tencytest-pa.googleapis.com/", core.String servicePath: "v2/statscollection/"})
: | 27 CloudlatencytestApi(http.Client client, {core.String rootUrl: "https://cloudla
tencytest-pa.googleapis.com/", core.String servicePath: "v2/statscollection/"})
: |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 var _json = new core.Map(); | 291 var _json = new core.Map(); |
| 292 if (label != null) { | 292 if (label != null) { |
| 293 _json["label"] = label; | 293 _json["label"] = label; |
| 294 } | 294 } |
| 295 if (value != null) { | 295 if (value != null) { |
| 296 _json["value"] = value; | 296 _json["value"] = value; |
| 297 } | 297 } |
| 298 return _json; | 298 return _json; |
| 299 } | 299 } |
| 300 } | 300 } |
| OLD | NEW |