| OLD | NEW |
| 1 library googleapis.reseller.v1; | 1 library googleapis.reseller.v1; |
| 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 /** Lets you create and manage your customers and their subscriptions. */ | 16 /** Lets you create and manage your customers and their subscriptions. */ |
| 17 class ResellerApi { | 17 class ResellerApi { |
| 18 /** Manage users on your domain */ | 18 /** Manage users on your domain */ |
| 19 static const AppsOrderScope = "https://www.googleapis.com/auth/apps.order"; | 19 static const AppsOrderScope = "https://www.googleapis.com/auth/apps.order"; |
| 20 | 20 |
| 21 /** Manage users on your domain */ | 21 /** Manage users on your domain */ |
| 22 static const AppsOrderReadonlyScope = "https://www.googleapis.com/auth/apps.or
der.readonly"; | 22 static const AppsOrderReadonlyScope = "https://www.googleapis.com/auth/apps.or
der.readonly"; |
| 23 | 23 |
| 24 | 24 |
| 25 final common_internal.ApiRequester _requester; | 25 final common_internal.ApiRequester _requester; |
| 26 | 26 |
| 27 CustomersResourceApi get customers => new CustomersResourceApi(_requester); | 27 CustomersResourceApi get customers => new CustomersResourceApi(_requester); |
| 28 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); | 28 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); |
| 29 | 29 |
| 30 ResellerApi(http.Client client) : | 30 ResellerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "apps/reseller/v1/"}) : |
| 31 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "apps/reseller/v1/"); | 31 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
| 32 } | 32 } |
| 33 | 33 |
| 34 | 34 |
| 35 /** Not documented yet. */ | 35 /** Not documented yet. */ |
| 36 class CustomersResourceApi { | 36 class CustomersResourceApi { |
| 37 final common_internal.ApiRequester _requester; | 37 final common_internal.ApiRequester _requester; |
| 38 | 38 |
| 39 CustomersResourceApi(common_internal.ApiRequester client) : | 39 CustomersResourceApi(common_internal.ApiRequester client) : |
| 40 _requester = client; | 40 _requester = client; |
| 41 | 41 |
| (...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 _json["nextPageToken"] = nextPageToken; | 1394 _json["nextPageToken"] = nextPageToken; |
| 1395 } | 1395 } |
| 1396 if (subscriptions != null) { | 1396 if (subscriptions != null) { |
| 1397 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to
List(); | 1397 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to
List(); |
| 1398 } | 1398 } |
| 1399 return _json; | 1399 return _json; |
| 1400 } | 1400 } |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 | 1403 |
| OLD | NEW |