| OLD | NEW |
| 1 library googleapis_beta.pubsub.v1beta1; | 1 library googleapis_beta.pubsub.v1beta1; |
| 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; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 /** View and manage Pub/Sub topics and subscriptions */ | 23 /** View and manage Pub/Sub topics and subscriptions */ |
| 24 static const PubsubScope = "https://www.googleapis.com/auth/pubsub"; | 24 static const PubsubScope = "https://www.googleapis.com/auth/pubsub"; |
| 25 | 25 |
| 26 | 26 |
| 27 final common_internal.ApiRequester _requester; | 27 final common_internal.ApiRequester _requester; |
| 28 | 28 |
| 29 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); | 29 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); |
| 30 TopicsResourceApi get topics => new TopicsResourceApi(_requester); | 30 TopicsResourceApi get topics => new TopicsResourceApi(_requester); |
| 31 | 31 |
| 32 PubsubApi(http.Client client) : | 32 PubsubApi(http.Client client, {core.String rootUrl: "https://www.googleapis.co
m/", core.String servicePath: "pubsub/v1beta1/"}) : |
| 33 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "pubsub/v1beta1/"); | 33 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
| 34 } | 34 } |
| 35 | 35 |
| 36 | 36 |
| 37 /** Not documented yet. */ | 37 /** Not documented yet. */ |
| 38 class SubscriptionsResourceApi { | 38 class SubscriptionsResourceApi { |
| 39 final common_internal.ApiRequester _requester; | 39 final common_internal.ApiRequester _requester; |
| 40 | 40 |
| 41 SubscriptionsResourceApi(common_internal.ApiRequester client) : | 41 SubscriptionsResourceApi(common_internal.ApiRequester client) : |
| 42 _requester = client; | 42 _requester = client; |
| 43 | 43 |
| (...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1422 core.Map toJson() { | 1422 core.Map toJson() { |
| 1423 var _json = new core.Map(); | 1423 var _json = new core.Map(); |
| 1424 if (name != null) { | 1424 if (name != null) { |
| 1425 _json["name"] = name; | 1425 _json["name"] = name; |
| 1426 } | 1426 } |
| 1427 return _json; | 1427 return _json; |
| 1428 } | 1428 } |
| 1429 } | 1429 } |
| 1430 | 1430 |
| 1431 | 1431 |
| OLD | NEW |