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; |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 * | 431 * |
432 * [subscriptionId] - Id of the subscription, which is unique for a customer | 432 * [subscriptionId] - Id of the subscription, which is unique for a customer |
433 * | 433 * |
434 * [deletionType] - Whether the subscription is to be fully cancelled or | 434 * [deletionType] - Whether the subscription is to be fully cancelled or |
435 * downgraded | 435 * downgraded |
436 * Possible string values are: | 436 * Possible string values are: |
437 * - "cancel" : Cancels the subscription immediately | 437 * - "cancel" : Cancels the subscription immediately |
438 * - "downgrade" : Downgrades a Google Apps for Business subscription to | 438 * - "downgrade" : Downgrades a Google Apps for Business subscription to |
439 * Google Apps | 439 * Google Apps |
440 * - "suspend" : Suspends the subscriptions for 4 days before cancelling it | 440 * - "suspend" : Suspends the subscriptions for 4 days before cancelling it |
| 441 * - "transfer_to_direct" : Transfers a subscription directly to Google |
441 * | 442 * |
442 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 443 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
443 * error. | 444 * error. |
444 * | 445 * |
445 * If the used [http.Client] completes with an error when making a REST call, | 446 * If the used [http.Client] completes with an error when making a REST call, |
446 * this method will complete with the same error. | 447 * this method will complete with the same error. |
447 */ | 448 */ |
448 async.Future delete(core.String customerId, core.String subscriptionId, core.S
tring deletionType) { | 449 async.Future delete(core.String customerId, core.String subscriptionId, core.S
tring deletionType) { |
449 var _url = null; | 450 var _url = null; |
450 var _queryParams = new core.Map(); | 451 var _queryParams = new core.Map(); |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 } | 1010 } |
1010 } | 1011 } |
1011 | 1012 |
1012 | 1013 |
1013 /** JSON template for subscription seats. */ | 1014 /** JSON template for subscription seats. */ |
1014 class Seats { | 1015 class Seats { |
1015 /** Identifies the resource as a subscription change plan request. */ | 1016 /** Identifies the resource as a subscription change plan request. */ |
1016 core.String kind; | 1017 core.String kind; |
1017 | 1018 |
1018 /** | 1019 /** |
1019 * Read only field containing the current number of licensed seats. Resellers | 1020 * Read-only field containing the current number of licensed seats for |
1020 * can utilize this field to gather insights into usage for FLEXIBLE | 1021 * FLEXIBLE Google-Apps subscriptions and secondary subscriptions such as |
1021 * Google-Apps subscriptions and other secondary subscriptions (e.g. | 1022 * Google-Vault and Drive-storage. |
1022 * Google-Vault, Drive-storage). | |
1023 */ | 1023 */ |
1024 core.int licensedNumberOfSeats; | 1024 core.int licensedNumberOfSeats; |
1025 | 1025 |
1026 /** | 1026 /** |
1027 * Maximum number of seats that can be purchased. This needs to be provided | 1027 * Maximum number of seats that can be purchased. This needs to be provided |
1028 * only for a non-commitment plan. For a commitment plan it is decided by the | 1028 * only for a non-commitment plan. For a commitment plan it is decided by the |
1029 * contract. | 1029 * contract. |
1030 */ | 1030 */ |
1031 core.int maximumNumberOfSeats; | 1031 core.int maximumNumberOfSeats; |
1032 | 1032 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 if (trialEndTime != null) { | 1210 if (trialEndTime != null) { |
1211 _json["trialEndTime"] = trialEndTime; | 1211 _json["trialEndTime"] = trialEndTime; |
1212 } | 1212 } |
1213 return _json; | 1213 return _json; |
1214 } | 1214 } |
1215 } | 1215 } |
1216 | 1216 |
1217 | 1217 |
1218 /** JSON template for a subscription. */ | 1218 /** JSON template for a subscription. */ |
1219 class Subscription { | 1219 class Subscription { |
| 1220 /** Billing method of this subscription. */ |
| 1221 core.String billingMethod; |
| 1222 |
1220 /** Creation time of this subscription in milliseconds since Unix epoch. */ | 1223 /** Creation time of this subscription in milliseconds since Unix epoch. */ |
1221 core.String creationTime; | 1224 core.String creationTime; |
1222 | 1225 |
1223 /** The id of the customer to whom the subscription belongs. */ | 1226 /** The id of the customer to whom the subscription belongs. */ |
1224 core.String customerId; | 1227 core.String customerId; |
1225 | 1228 |
1226 /** Identifies the resource as a Subscription. */ | 1229 /** Identifies the resource as a Subscription. */ |
1227 core.String kind; | 1230 core.String kind; |
1228 | 1231 |
1229 /** Plan details of the subscription */ | 1232 /** Plan details of the subscription */ |
(...skipping 23 matching lines...) Expand all Loading... |
1253 /** Transfer related information for the subscription. */ | 1256 /** Transfer related information for the subscription. */ |
1254 SubscriptionTransferInfo transferInfo; | 1257 SubscriptionTransferInfo transferInfo; |
1255 | 1258 |
1256 /** Trial Settings of the subscription. */ | 1259 /** Trial Settings of the subscription. */ |
1257 SubscriptionTrialSettings trialSettings; | 1260 SubscriptionTrialSettings trialSettings; |
1258 | 1261 |
1259 | 1262 |
1260 Subscription(); | 1263 Subscription(); |
1261 | 1264 |
1262 Subscription.fromJson(core.Map _json) { | 1265 Subscription.fromJson(core.Map _json) { |
| 1266 if (_json.containsKey("billingMethod")) { |
| 1267 billingMethod = _json["billingMethod"]; |
| 1268 } |
1263 if (_json.containsKey("creationTime")) { | 1269 if (_json.containsKey("creationTime")) { |
1264 creationTime = _json["creationTime"]; | 1270 creationTime = _json["creationTime"]; |
1265 } | 1271 } |
1266 if (_json.containsKey("customerId")) { | 1272 if (_json.containsKey("customerId")) { |
1267 customerId = _json["customerId"]; | 1273 customerId = _json["customerId"]; |
1268 } | 1274 } |
1269 if (_json.containsKey("kind")) { | 1275 if (_json.containsKey("kind")) { |
1270 kind = _json["kind"]; | 1276 kind = _json["kind"]; |
1271 } | 1277 } |
1272 if (_json.containsKey("plan")) { | 1278 if (_json.containsKey("plan")) { |
(...skipping 23 matching lines...) Expand all Loading... |
1296 if (_json.containsKey("transferInfo")) { | 1302 if (_json.containsKey("transferInfo")) { |
1297 transferInfo = new SubscriptionTransferInfo.fromJson(_json["transferInfo"]
); | 1303 transferInfo = new SubscriptionTransferInfo.fromJson(_json["transferInfo"]
); |
1298 } | 1304 } |
1299 if (_json.containsKey("trialSettings")) { | 1305 if (_json.containsKey("trialSettings")) { |
1300 trialSettings = new SubscriptionTrialSettings.fromJson(_json["trialSetting
s"]); | 1306 trialSettings = new SubscriptionTrialSettings.fromJson(_json["trialSetting
s"]); |
1301 } | 1307 } |
1302 } | 1308 } |
1303 | 1309 |
1304 core.Map toJson() { | 1310 core.Map toJson() { |
1305 var _json = new core.Map(); | 1311 var _json = new core.Map(); |
| 1312 if (billingMethod != null) { |
| 1313 _json["billingMethod"] = billingMethod; |
| 1314 } |
1306 if (creationTime != null) { | 1315 if (creationTime != null) { |
1307 _json["creationTime"] = creationTime; | 1316 _json["creationTime"] = creationTime; |
1308 } | 1317 } |
1309 if (customerId != null) { | 1318 if (customerId != null) { |
1310 _json["customerId"] = customerId; | 1319 _json["customerId"] = customerId; |
1311 } | 1320 } |
1312 if (kind != null) { | 1321 if (kind != null) { |
1313 _json["kind"] = kind; | 1322 _json["kind"] = kind; |
1314 } | 1323 } |
1315 if (plan != null) { | 1324 if (plan != null) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 _json["nextPageToken"] = nextPageToken; | 1394 _json["nextPageToken"] = nextPageToken; |
1386 } | 1395 } |
1387 if (subscriptions != null) { | 1396 if (subscriptions != null) { |
1388 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to
List(); | 1397 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to
List(); |
1389 } | 1398 } |
1390 return _json; | 1399 return _json; |
1391 } | 1400 } |
1392 } | 1401 } |
1393 | 1402 |
1394 | 1403 |
OLD | NEW |