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.licensing.v1; | 3 library googleapis.licensing.v1; |
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 licensing/v1'; | 15 const core.String USER_AGENT = 'dart-api-client licensing/v1'; |
16 | 16 |
17 /** Licensing API to view and manage license for your domain. */ | 17 /** Views and manages licenses for your domain. */ |
18 class LicensingApi { | 18 class LicensingApi { |
19 /** View and manage G Suite licenses for your domain */ | 19 /** View and manage G Suite licenses for your domain */ |
20 static const AppsLicensingScope = "https://www.googleapis.com/auth/apps.licens
ing"; | 20 static const AppsLicensingScope = "https://www.googleapis.com/auth/apps.licens
ing"; |
21 | 21 |
22 | 22 |
23 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
24 | 24 |
25 LicenseAssignmentsResourceApi get licenseAssignments => new LicenseAssignments
ResourceApi(_requester); | 25 LicenseAssignmentsResourceApi get licenseAssignments => new LicenseAssignments
ResourceApi(_requester); |
26 | 26 |
27 LicensingApi(http.Client client, {core.String rootUrl: "https://www.googleapis
.com/", core.String servicePath: "apps/licensing/v1/product/"}) : | 27 LicensingApi(http.Client client, {core.String rootUrl: "https://www.googleapis
.com/", core.String servicePath: "apps/licensing/v1/product/"}) : |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 } | 416 } |
417 | 417 |
418 | 418 |
419 | 419 |
420 /** Template for LiscenseAssignment Resource */ | 420 /** Template for LiscenseAssignment Resource */ |
421 class LicenseAssignment { | 421 class LicenseAssignment { |
422 /** ETag of the resource. */ | 422 /** ETag of the resource. */ |
423 core.String etags; | 423 core.String etags; |
424 /** Identifies the resource as a LicenseAssignment. */ | 424 /** Identifies the resource as a LicenseAssignment. */ |
425 core.String kind; | 425 core.String kind; |
426 /** Name of the product. */ | 426 /** Id of the product. */ |
427 core.String productId; | 427 core.String productId; |
| 428 /** Display Name of the product. */ |
| 429 core.String productName; |
428 /** Link to this page. */ | 430 /** Link to this page. */ |
429 core.String selfLink; | 431 core.String selfLink; |
430 /** Name of the sku of the product. */ | 432 /** Id of the sku of the product. */ |
431 core.String skuId; | 433 core.String skuId; |
| 434 /** Display Name of the sku of the product. */ |
| 435 core.String skuName; |
432 /** Email id of the user. */ | 436 /** Email id of the user. */ |
433 core.String userId; | 437 core.String userId; |
434 | 438 |
435 LicenseAssignment(); | 439 LicenseAssignment(); |
436 | 440 |
437 LicenseAssignment.fromJson(core.Map _json) { | 441 LicenseAssignment.fromJson(core.Map _json) { |
438 if (_json.containsKey("etags")) { | 442 if (_json.containsKey("etags")) { |
439 etags = _json["etags"]; | 443 etags = _json["etags"]; |
440 } | 444 } |
441 if (_json.containsKey("kind")) { | 445 if (_json.containsKey("kind")) { |
442 kind = _json["kind"]; | 446 kind = _json["kind"]; |
443 } | 447 } |
444 if (_json.containsKey("productId")) { | 448 if (_json.containsKey("productId")) { |
445 productId = _json["productId"]; | 449 productId = _json["productId"]; |
446 } | 450 } |
| 451 if (_json.containsKey("productName")) { |
| 452 productName = _json["productName"]; |
| 453 } |
447 if (_json.containsKey("selfLink")) { | 454 if (_json.containsKey("selfLink")) { |
448 selfLink = _json["selfLink"]; | 455 selfLink = _json["selfLink"]; |
449 } | 456 } |
450 if (_json.containsKey("skuId")) { | 457 if (_json.containsKey("skuId")) { |
451 skuId = _json["skuId"]; | 458 skuId = _json["skuId"]; |
452 } | 459 } |
| 460 if (_json.containsKey("skuName")) { |
| 461 skuName = _json["skuName"]; |
| 462 } |
453 if (_json.containsKey("userId")) { | 463 if (_json.containsKey("userId")) { |
454 userId = _json["userId"]; | 464 userId = _json["userId"]; |
455 } | 465 } |
456 } | 466 } |
457 | 467 |
458 core.Map toJson() { | 468 core.Map toJson() { |
459 var _json = new core.Map(); | 469 var _json = new core.Map(); |
460 if (etags != null) { | 470 if (etags != null) { |
461 _json["etags"] = etags; | 471 _json["etags"] = etags; |
462 } | 472 } |
463 if (kind != null) { | 473 if (kind != null) { |
464 _json["kind"] = kind; | 474 _json["kind"] = kind; |
465 } | 475 } |
466 if (productId != null) { | 476 if (productId != null) { |
467 _json["productId"] = productId; | 477 _json["productId"] = productId; |
468 } | 478 } |
| 479 if (productName != null) { |
| 480 _json["productName"] = productName; |
| 481 } |
469 if (selfLink != null) { | 482 if (selfLink != null) { |
470 _json["selfLink"] = selfLink; | 483 _json["selfLink"] = selfLink; |
471 } | 484 } |
472 if (skuId != null) { | 485 if (skuId != null) { |
473 _json["skuId"] = skuId; | 486 _json["skuId"] = skuId; |
474 } | 487 } |
| 488 if (skuName != null) { |
| 489 _json["skuName"] = skuName; |
| 490 } |
475 if (userId != null) { | 491 if (userId != null) { |
476 _json["userId"] = userId; | 492 _json["userId"] = userId; |
477 } | 493 } |
478 return _json; | 494 return _json; |
479 } | 495 } |
480 } | 496 } |
481 | 497 |
482 /** Template for LicenseAssignment Insert request */ | 498 /** Template for LicenseAssignment Insert request */ |
483 class LicenseAssignmentInsert { | 499 class LicenseAssignmentInsert { |
484 /** Email id of the user */ | 500 /** Email id of the user */ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 } | 558 } |
543 if (kind != null) { | 559 if (kind != null) { |
544 _json["kind"] = kind; | 560 _json["kind"] = kind; |
545 } | 561 } |
546 if (nextPageToken != null) { | 562 if (nextPageToken != null) { |
547 _json["nextPageToken"] = nextPageToken; | 563 _json["nextPageToken"] = nextPageToken; |
548 } | 564 } |
549 return _json; | 565 return _json; |
550 } | 566 } |
551 } | 567 } |
OLD | NEW |