|
456 | 456 | * @param {String} userId The user ID Guid |
457 | 457 | * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
458 | 458 | * @param {Boolean} optsOrCallback.sort Sorts user information by account name ascending |
| 459 | + * @param {Boolean} optsOrCallback.includeLicense When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. |
459 | 460 | * @param {module:api/UsersApi~getUserDSProfileCallback} callback The callback function, accepting three arguments: error, data, response |
460 | 461 | * data is of type: {@link module:model/UsersDrilldownResponse} |
461 | 462 | */ |
|
491 | 492 | 'userId': userId |
492 | 493 | }; |
493 | 494 | var queryParams = { |
494 | | - 'sort': optsOrCallback['sort'] |
| 495 | + 'sort': optsOrCallback['sort'], |
| 496 | + 'include_license': optsOrCallback['includeLicense'] |
495 | 497 | }; |
496 | 498 | var headerParams = { |
497 | 499 | }; |
|
525 | 527 | * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
526 | 528 | * @param {String} optsOrCallback.email The email address of the user |
527 | 529 | * @param {Boolean} optsOrCallback.sort Sorts user information by account name ascending |
| 530 | + * @param {Boolean} optsOrCallback.includeLicense When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. |
528 | 531 | * @param {module:api/UsersApi~getUserDSProfilesByEmailCallback} callback The callback function, accepting three arguments: error, data, response |
529 | 532 | * data is of type: {@link module:model/UsersDrilldownResponse} |
530 | 533 | */ |
|
555 | 558 | }; |
556 | 559 | var queryParams = { |
557 | 560 | 'email': optsOrCallback['email'], |
558 | | - 'sort': optsOrCallback['sort'] |
| 561 | + 'sort': optsOrCallback['sort'], |
| 562 | + 'include_license': optsOrCallback['includeLicense'] |
559 | 563 | }; |
560 | 564 | var headerParams = { |
561 | 565 | }; |
|
588 | 592 | * @param {String} organizationId The organization ID Guid |
589 | 593 | * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
590 | 594 | * @param {String} optsOrCallback.email The email address |
| 595 | + * @param {Boolean} optsOrCallback.includeLicense When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. |
591 | 596 | * @param {module:api/UsersApi~getUserProfilesCallback} callback The callback function, accepting three arguments: error, data, response |
592 | 597 | * data is of type: {@link module:model/UsersDrilldownResponse} |
593 | 598 | */ |
|
617 | 622 | 'organizationId': organizationId |
618 | 623 | }; |
619 | 624 | var queryParams = { |
620 | | - 'email': optsOrCallback['email'] |
| 625 | + 'email': optsOrCallback['email'], |
| 626 | + 'include_license': optsOrCallback['includeLicense'] |
621 | 627 | }; |
622 | 628 | var headerParams = { |
623 | 629 | }; |
|
660 | 666 | * @param {String} optsOrCallback.organizationReservedDomainId Select users that are in the specified domain. At least one of email, account_id or organization_reserved_domain_id must be specified. |
661 | 667 | * @param {String} optsOrCallback.lastModifiedSince Select users whose data have been modified since the date specified; account_id or organization_reserved_domain_id must be specified. |
662 | 668 | * @param {Boolean} optsOrCallback.includeDsGroups Select users with groups the users belong to; account_id must be specified. The organization must have the entitlement AllowMultiApplication enabled. |
| 669 | + * @param {Boolean} optsOrCallback.includeLicense When true: additional details about the user's license will be included in the response; account_id must be specified and the account must have an IAM plan with licenses. |
663 | 670 | * @param {module:api/UsersApi~getUsersCallback} callback The callback function, accepting three arguments: error, data, response |
664 | 671 | * data is of type: {@link module:model/OrganizationUsersResponse} |
665 | 672 | */ |
|
699 | 706 | 'account_id': optsOrCallback['accountId'], |
700 | 707 | 'organization_reserved_domain_id': optsOrCallback['organizationReservedDomainId'], |
701 | 708 | 'last_modified_since': optsOrCallback['lastModifiedSince'], |
702 | | - 'include_ds_groups': optsOrCallback['includeDsGroups'] |
| 709 | + 'include_ds_groups': optsOrCallback['includeDsGroups'], |
| 710 | + 'include_license': optsOrCallback['includeLicense'] |
703 | 711 | }; |
704 | 712 | var headerParams = { |
705 | 713 | }; |
|
789 | 797 | * Required scopes: user_write |
790 | 798 | * @param {String} organizationId The organization ID Guid |
791 | 799 | * @param {module:model/UpdateUsersRequest} request The user details to update |
| 800 | + * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
| 801 | + * @param {Boolean} optsOrCallback.applyLicenseOverride If an account has an IAM plan with licenses, this query specifies how a user's license is handled. Values: true - Updates the user's existing license; false - Adds a license to the user |
792 | 802 | * @param {module:api/UsersApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response |
793 | 803 | * data is of type: {@link module:model/UsersUpdateResponse} |
794 | 804 | */ |
795 | | - this.updateUser = function(request, organizationId, callback) { |
| 805 | + this.updateUser = function(request, organizationId, optsOrCallback, callback) { |
| 806 | + optsOrCallback = optsOrCallback || {}; |
| 807 | + |
| 808 | + if (typeof optsOrCallback === 'function') { |
| 809 | + callback = optsOrCallback; |
| 810 | + optsOrCallback = {}; |
| 811 | + } |
| 812 | + |
796 | 813 | var postBody = request; |
797 | 814 |
|
798 | 815 | // verify the required parameter 'organizationId' is set |
|
816 | 833 | 'organizationId': organizationId |
817 | 834 | }; |
818 | 835 | var queryParams = { |
| 836 | + 'apply_license_override': optsOrCallback['applyLicenseOverride'] |
819 | 837 | }; |
820 | 838 | var headerParams = { |
821 | 839 | }; |
|
0 commit comments