UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,896 lines (1,602 loc) • 76.8 kB
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ const AbstractModel = require("../../common/abstract_model"); /** * UpdateUser request structure. * @class */ class UpdateUserRequest extends AbstractModel { constructor(){ super(); /** * User ID * @type {string || null} */ this.UserId = null; /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * Username * @type {string || null} */ this.UserName = null; /** * Mobile number * @type {string || null} */ this.PhoneNumber = null; /** * Email address * @type {string || null} */ this.Email = null; /** * Nickname * @type {string || null} */ this.Nickname = null; /** * Address * @type {string || null} */ this.Address = null; /** * User group * @type {Array.<string> || null} */ this.UserGroup = null; /** * Date of birth * @type {number || null} */ this.Birthdate = null; /** * Custom attribute * @type {Array.<MemberMap> || null} */ this.CustomizationAttributes = null; /** * Index field 1 * @type {string || null} */ this.IndexedAttribute1 = null; /** * Index field 2 * @type {string || null} */ this.IndexedAttribute2 = null; /** * Index field 3 * @type {string || null} */ this.IndexedAttribute3 = null; /** * Index field 4 * @type {string || null} */ this.IndexedAttribute4 = null; /** * Index field 5 * @type {string || null} */ this.IndexedAttribute5 = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserId = 'UserId' in params ? params.UserId : null; this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.UserName = 'UserName' in params ? params.UserName : null; this.PhoneNumber = 'PhoneNumber' in params ? params.PhoneNumber : null; this.Email = 'Email' in params ? params.Email : null; this.Nickname = 'Nickname' in params ? params.Nickname : null; this.Address = 'Address' in params ? params.Address : null; this.UserGroup = 'UserGroup' in params ? params.UserGroup : null; this.Birthdate = 'Birthdate' in params ? params.Birthdate : null; if (params.CustomizationAttributes) { this.CustomizationAttributes = new Array(); for (let z in params.CustomizationAttributes) { let obj = new MemberMap(); obj.deserialize(params.CustomizationAttributes[z]); this.CustomizationAttributes.push(obj); } } this.IndexedAttribute1 = 'IndexedAttribute1' in params ? params.IndexedAttribute1 : null; this.IndexedAttribute2 = 'IndexedAttribute2' in params ? params.IndexedAttribute2 : null; this.IndexedAttribute3 = 'IndexedAttribute3' in params ? params.IndexedAttribute3 : null; this.IndexedAttribute4 = 'IndexedAttribute4' in params ? params.IndexedAttribute4 : null; this.IndexedAttribute5 = 'IndexedAttribute5' in params ? params.IndexedAttribute5 : null; } } /** * DescribeUserById request structure. * @class */ class DescribeUserByIdRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * User ID * @type {string || null} */ this.UserId = null; /** * Whether the content is passed through <li> **false** </li>Default. The returned information is desensitized. <li> **true** </li>Return the original content. * @type {boolean || null} */ this.Original = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.UserId = 'UserId' in params ? params.UserId : null; this.Original = 'Original' in params ? params.Original : null; } } /** * ListUser request structure. * @class */ class ListUserRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * Pagination data * @type {Pageable || null} */ this.Pageable = null; /** * Valid values of `Key`: `condition`, `userGroupId`. <li> **condition** </li> Values = Query condition, which can be user ID, username, mobile number, or email address. <li> **userGroupId** </li> Values = User group ID * @type {Array.<Filter> || null} */ this.Filters = null; /** * Whether the content is passed through * @type {boolean || null} */ this.Original = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; if (params.Pageable) { let obj = new Pageable(); obj.deserialize(params.Pageable) this.Pageable = obj; } if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Original = 'Original' in params ? params.Original : null; } } /** * ResetPassword request structure. * @class */ class ResetPasswordRequest extends AbstractModel { constructor(){ super(); /** * User ID * @type {string || null} */ this.UserId = null; /** * User directory ID * @type {string || null} */ this.UserStoreId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserId = 'UserId' in params ? params.UserId : null; this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; } } /** * Failure details * @class */ class ErrorDetails extends AbstractModel { constructor(){ super(); /** * User information Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserId = null; /** * Failure cause * @type {string || null} */ this.Error = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserId = 'UserId' in params ? params.UserId : null; this.Error = 'Error' in params ? params.Error : null; } } /** * DescribeUser request structure. * @class */ class DescribeUserRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * Pagination data * @type {Pageable || null} */ this.Pageable = null; /** * Query condition (`propertycode` and `propertykey`) * @type {Array.<QueryUserFilter> || null} */ this.Filters = null; /** * Whether the plaintext is returned * @type {boolean || null} */ this.Original = null; /** * Sorting configuration * @type {Sort || null} */ this.Sort = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; if (params.Pageable) { let obj = new Pageable(); obj.deserialize(params.Pageable) this.Pageable = obj; } if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new QueryUserFilter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Original = 'Original' in params ? params.Original : null; if (params.Sort) { let obj = new Sort(); obj.deserialize(params.Sort) this.Sort = obj; } } } /** * DeleteUsers request structure. * @class */ class DeleteUsersRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * Array of user IDs * @type {Array.<string> || null} */ this.UserIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.UserIds = 'UserIds' in params ? params.UserIds : null; } } /** * Import user information. 1. At least one of the following nine attributes should be included during the import: UserName, PhoneNumber, Email, WeChatOpenId, WeChatUnionId, AlipayUserId, QQOpenId, QQUnionId, and WeComUserId. Each of these attributes should adhere to the regular expression rules for initial custom attributes. The regular expressions for UserName, PhoneNumber, and Email can be queried in Custom Attributes on the console. 2. For the import of passwords, plaintext import, MD5 ciphertext import, SHA1 ciphertext import, and BCRYPT ciphertext import are supported. The import method should be specified in the PasswordEncryptTypeEnum field. 3. IdentityVerified and IdentityVerificationMethod can be imported. When IdentityVerified is true, IdentityVerificationMethod should be entered. When IdentityVerificationMethod is nameAndIdCard, Name and ResidentIdentityCard should be entered. When IdentityVerificationMethod is nameIdCardAndPhone, Name, PhoneNumber, and ResidentIdentityCard should be entered. * @class */ class ImportUser extends AbstractModel { constructor(){ super(); /** * Username * @type {string || null} */ this.UserName = null; /** * Mobile number * @type {string || null} */ this.PhoneNumber = null; /** * Email address * @type {string || null} */ this.Email = null; /** * ID card number * @type {string || null} */ this.ResidentIdentityCard = null; /** * Nickname * @type {string || null} */ this.Nickname = null; /** * Address * @type {string || null} */ this.Address = null; /** * User group ID * @type {Array.<string> || null} */ this.UserGroup = null; /** * `qqOpenId` on QQ * @type {string || null} */ this.QqOpenId = null; /** * `qqUnionId` on QQ * @type {string || null} */ this.QqUnionId = null; /** * `wechatOpenId` on WeChat * @type {string || null} */ this.WechatOpenId = null; /** * `wechatUnionId` on WeChat * @type {string || null} */ this.WechatUnionId = null; /** * `alipayUserId` on Alipay * @type {string || null} */ this.AlipayUserId = null; /** * WeCom user ID. * @type {string || null} */ this.WeComUserId = null; /** * Description * @type {string || null} */ this.Description = null; /** * Date of birth * @type {string || null} */ this.Birthdate = null; /** * Name * @type {string || null} */ this.Name = null; /** * Coordinate * @type {string || null} */ this.Locale = null; /** * Gender. Valid values: `MALE`, `FEMALE`, `UNKNOWN`. * @type {string || null} */ this.Gender = null; /** * Identity verification method * @type {string || null} */ this.IdentityVerificationMethod = null; /** * Whether the identity is verified * @type {boolean || null} */ this.IdentityVerified = null; /** * Job * @type {string || null} */ this.Job = null; /** * Country/Region * @type {string || null} */ this.Nationality = null; /** * Time zone * @type {string || null} */ this.Zone = null; /** * Password ciphertext * @type {string || null} */ this.Password = null; /** * Custom attribute * @type {Array.<MemberMap> || null} */ this.CustomizationAttributes = null; /** * Password salt * @type {Salt || null} */ this.Salt = null; /** * Password encryption method. Valid values: `SHA1`, `BCRYPT`. * @type {string || null} */ this.PasswordEncryptTypeEnum = null; /** * Index field 1 * @type {string || null} */ this.IndexedAttribute1 = null; /** * Index field 2 * @type {string || null} */ this.IndexedAttribute2 = null; /** * Index field 3 * @type {string || null} */ this.IndexedAttribute3 = null; /** * Index field 4 * @type {string || null} */ this.IndexedAttribute4 = null; /** * Index field 5 * @type {string || null} */ this.IndexedAttribute5 = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserName = 'UserName' in params ? params.UserName : null; this.PhoneNumber = 'PhoneNumber' in params ? params.PhoneNumber : null; this.Email = 'Email' in params ? params.Email : null; this.ResidentIdentityCard = 'ResidentIdentityCard' in params ? params.ResidentIdentityCard : null; this.Nickname = 'Nickname' in params ? params.Nickname : null; this.Address = 'Address' in params ? params.Address : null; this.UserGroup = 'UserGroup' in params ? params.UserGroup : null; this.QqOpenId = 'QqOpenId' in params ? params.QqOpenId : null; this.QqUnionId = 'QqUnionId' in params ? params.QqUnionId : null; this.WechatOpenId = 'WechatOpenId' in params ? params.WechatOpenId : null; this.WechatUnionId = 'WechatUnionId' in params ? params.WechatUnionId : null; this.AlipayUserId = 'AlipayUserId' in params ? params.AlipayUserId : null; this.WeComUserId = 'WeComUserId' in params ? params.WeComUserId : null; this.Description = 'Description' in params ? params.Description : null; this.Birthdate = 'Birthdate' in params ? params.Birthdate : null; this.Name = 'Name' in params ? params.Name : null; this.Locale = 'Locale' in params ? params.Locale : null; this.Gender = 'Gender' in params ? params.Gender : null; this.IdentityVerificationMethod = 'IdentityVerificationMethod' in params ? params.IdentityVerificationMethod : null; this.IdentityVerified = 'IdentityVerified' in params ? params.IdentityVerified : null; this.Job = 'Job' in params ? params.Job : null; this.Nationality = 'Nationality' in params ? params.Nationality : null; this.Zone = 'Zone' in params ? params.Zone : null; this.Password = 'Password' in params ? params.Password : null; if (params.CustomizationAttributes) { this.CustomizationAttributes = new Array(); for (let z in params.CustomizationAttributes) { let obj = new MemberMap(); obj.deserialize(params.CustomizationAttributes[z]); this.CustomizationAttributes.push(obj); } } if (params.Salt) { let obj = new Salt(); obj.deserialize(params.Salt) this.Salt = obj; } this.PasswordEncryptTypeEnum = 'PasswordEncryptTypeEnum' in params ? params.PasswordEncryptTypeEnum : null; this.IndexedAttribute1 = 'IndexedAttribute1' in params ? params.IndexedAttribute1 : null; this.IndexedAttribute2 = 'IndexedAttribute2' in params ? params.IndexedAttribute2 : null; this.IndexedAttribute3 = 'IndexedAttribute3' in params ? params.IndexedAttribute3 : null; this.IndexedAttribute4 = 'IndexedAttribute4' in params ? params.IndexedAttribute4 : null; this.IndexedAttribute5 = 'IndexedAttribute5' in params ? params.IndexedAttribute5 : null; } } /** * UpdateUserStatus response structure. * @class */ class UpdateUserStatusResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Failed user * @class */ class FailedUsers extends AbstractModel { constructor(){ super(); /** * ID of the failed user Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FailedUserIdentification = null; /** * Failure cause for user import Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FailedReason = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FailedUserIdentification = 'FailedUserIdentification' in params ? params.FailedUserIdentification : null; this.FailedReason = 'FailedReason' in params ? params.FailedReason : null; } } /** * ListUserByProperty request structure. * @class */ class ListUserByPropertyRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * Query attribute <li> **phoneNumber** </li> Mobile number <li> **email** </li> Email * @type {string || null} */ this.PropertyCode = null; /** * Attribute value * @type {string || null} */ this.PropertyValue = null; /** * Whether the content is passed through * @type {boolean || null} */ this.Original = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.PropertyCode = 'PropertyCode' in params ? params.PropertyCode : null; this.PropertyValue = 'PropertyValue' in params ? params.PropertyValue : null; this.Original = 'Original' in params ? params.Original : null; } } /** * CreateUser response structure. * @class */ class CreateUserResponse extends AbstractModel { constructor(){ super(); /** * Information of the created user Note: This field may return null, indicating that no valid values can be obtained. * @type {User || null} */ this.User = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.User) { let obj = new User(); obj.deserialize(params.User) this.User = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Query condition * @class */ class Filter extends AbstractModel { constructor(){ super(); /** * Key value * @type {string || null} */ this.Key = null; /** * Value * @type {Array.<string> || null} */ this.Values = null; /** * Logical value * @type {boolean || null} */ this.Logic = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Key = 'Key' in params ? params.Key : null; this.Values = 'Values' in params ? params.Values : null; this.Logic = 'Logic' in params ? params.Logic : null; } } /** * SetPassword response structure. * @class */ class SetPasswordResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListUserByProperty response structure. * @class */ class ListUserByPropertyResponse extends AbstractModel { constructor(){ super(); /** * List of users Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<User> || null} */ this.Users = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Users) { this.Users = new Array(); for (let z in params.Users) { let obj = new User(); obj.deserialize(params.Users[z]); this.Users.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListJobs request structure. * @class */ class ListJobsRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * List of task IDs. If this parameter is empty, all tasks will be returned. * @type {Array.<string> || null} */ this.JobIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.JobIds = 'JobIds' in params ? params.JobIds : null; } } /** * DescribeUserById response structure. * @class */ class DescribeUserByIdResponse extends AbstractModel { constructor(){ super(); /** * User information Note: This field may return null, indicating that no valid values can be obtained. * @type {User || null} */ this.User = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.User) { let obj = new User(); obj.deserialize(params.User) this.User = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Task details * @class */ class Job extends AbstractModel { constructor(){ super(); /** * Task ID * @type {string || null} */ this.Id = null; /** * Task status <li> **PENDING** </li> Pending <li> **PROCESSING** </li> Executing <li> **COMPLETED** </li> Completed <li> **FAILED** </li> Failed * @type {string || null} */ this.Status = null; /** * Task type <li> **IMPORT_USER** </li> User import <li> **EXPORT_USER** </li> User export * @type {string || null} */ this.Type = null; /** * Task creation time * @type {number || null} */ this.CreatedDate = null; /** * Data type of the task <li> **NDJSON** </li> New-line Delimited JSON <li> **CSV** </li> Comma-Separated Values Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Format = null; /** * Task result download address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Location = null; /** * Failure details Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<ErrorDetails> || null} */ this.ErrorDetails = null; /** * Failed user Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<FailedUsers> || null} */ this.FailedUsers = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Status = 'Status' in params ? params.Status : null; this.Type = 'Type' in params ? params.Type : null; this.CreatedDate = 'CreatedDate' in params ? params.CreatedDate : null; this.Format = 'Format' in params ? params.Format : null; this.Location = 'Location' in params ? params.Location : null; if (params.ErrorDetails) { this.ErrorDetails = new Array(); for (let z in params.ErrorDetails) { let obj = new ErrorDetails(); obj.deserialize(params.ErrorDetails[z]); this.ErrorDetails.push(obj); } } if (params.FailedUsers) { this.FailedUsers = new Array(); for (let z in params.FailedUsers) { let obj = new FailedUsers(); obj.deserialize(params.FailedUsers[z]); this.FailedUsers.push(obj); } } } } /** * CreateFileExportUserJob request structure. * @class */ class CreateFileExportUserJobRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * Exported data type <li> **NDJSON** </li> New-line Delimited JSON <li> **CSV** </li> Comma-Separated Values * @type {string || null} */ this.Format = null; /** * Valid values of `Key`: `condition`, `userGroupId`. <li> **condition** </li> Values = Query condition, which can be user ID, username, mobile number, or email address. <li> **userGroupId** </li> Values = User group ID * @type {Array.<Filter> || null} */ this.Filters = null; /** * Attributes and mapping names included in the exported user information. If this parameter is empty, all attributes will be included. * @type {Array.<ExportPropertyMap> || null} */ this.ExportPropertyMaps = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.Format = 'Format' in params ? params.Format : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } if (params.ExportPropertyMaps) { this.ExportPropertyMaps = new Array(); for (let z in params.ExportPropertyMaps) { let obj = new ExportPropertyMap(); obj.deserialize(params.ExportPropertyMaps[z]); this.ExportPropertyMaps.push(obj); } } } } /** * User information * @class */ class User extends AbstractModel { constructor(){ super(); /** * User ID * @type {string || null} */ this.UserId = null; /** * Username Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserName = null; /** * Mobile number Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.PhoneNumber = null; /** * Email address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Email = null; /** * Last login time Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.LastSignOn = null; /** * Creation time * @type {number || null} */ this.CreatedDate = null; /** * Status * @type {string || null} */ this.Status = null; /** * User source * @type {string || null} */ this.UserDataSourceEnum = null; /** * Nickname Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Nickname = null; /** * Address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Address = null; /** * Date of birth Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Birthdate = null; /** * User group ID Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.UserGroups = null; /** * Last modified time Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.LastModifiedDate = null; /** * Custom attribute Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<MemberMap> || null} */ this.CustomAttributes = null; /** * ID card number Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ResidentIdentityCard = null; /** * `OpenId` on QQ Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.QqOpenId = null; /** * `UnionId` on QQ Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.QqUnionId = null; /** * `WechatOpenId` on WeChat Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.WechatOpenId = null; /** * `WechatUnionId` on WeChat Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.WechatUnionId = null; /** * `AlipayUserId` on Alipay Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AlipayUserId = null; /** * WeCom user ID. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.WeComUserId = null; /** * Description Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Description = null; /** * Name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Name = null; /** * Coordinate Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Locale = null; /** * Gender Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Gender = null; /** * Identity verification method Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IdentityVerificationMethod = null; /** * Whether the identity is verified Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.IdentityVerified = null; /** * Job Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Job = null; /** * Country/Region Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Nationality = null; /** * Whether the account is the primary account (after account merge, this parameter is `true` for primary accounts and `false` for secondary account). Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.Primary = null; /** * Time zone Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Zone = null; /** * Whether the account has ever logged in. Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.AlreadyFirstLogin = null; /** * Tenant ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TenantId = null; /** * User directory ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserStoreId = null; /** * Version Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Version = null; /** * Lock type (locked by admin or locked by login policy) Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LockType = null; /** * Lock time Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.LockTime = null; /** * Index field 1 Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IndexedAttribute1 = null; /** * Index field 2 Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IndexedAttribute2 = null; /** * Index field 3 Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IndexedAttribute3 = null; /** * Index field 4 Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IndexedAttribute4 = null; /** * Index field 5 Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IndexedAttribute5 = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserId = 'UserId' in params ? params.UserId : null; this.UserName = 'UserName' in params ? params.UserName : null; this.PhoneNumber = 'PhoneNumber' in params ? params.PhoneNumber : null; this.Email = 'Email' in params ? params.Email : null; this.LastSignOn = 'LastSignOn' in params ? params.LastSignOn : null; this.CreatedDate = 'CreatedDate' in params ? params.CreatedDate : null; this.Status = 'Status' in params ? params.Status : null; this.UserDataSourceEnum = 'UserDataSourceEnum' in params ? params.UserDataSourceEnum : null; this.Nickname = 'Nickname' in params ? params.Nickname : null; this.Address = 'Address' in params ? params.Address : null; this.Birthdate = 'Birthdate' in params ? params.Birthdate : null; this.UserGroups = 'UserGroups' in params ? params.UserGroups : null; this.LastModifiedDate = 'LastModifiedDate' in params ? params.LastModifiedDate : null; if (params.CustomAttributes) { this.CustomAttributes = new Array(); for (let z in params.CustomAttributes) { let obj = new MemberMap(); obj.deserialize(params.CustomAttributes[z]); this.CustomAttributes.push(obj); } } this.ResidentIdentityCard = 'ResidentIdentityCard' in params ? params.ResidentIdentityCard : null; this.QqOpenId = 'QqOpenId' in params ? params.QqOpenId : null; this.QqUnionId = 'QqUnionId' in params ? params.QqUnionId : null; this.WechatOpenId = 'WechatOpenId' in params ? params.WechatOpenId : null; this.WechatUnionId = 'WechatUnionId' in params ? params.WechatUnionId : null; this.AlipayUserId = 'AlipayUserId' in params ? params.AlipayUserId : null; this.WeComUserId = 'WeComUserId' in params ? params.WeComUserId : null; this.Description = 'Description' in params ? params.Description : null; this.Name = 'Name' in params ? params.Name : null; this.Locale = 'Locale' in params ? params.Locale : null; this.Gender = 'Gender' in params ? params.Gender : null; this.IdentityVerificationMethod = 'IdentityVerificationMethod' in params ? params.IdentityVerificationMethod : null; this.IdentityVerified = 'IdentityVerified' in params ? params.IdentityVerified : null; this.Job = 'Job' in params ? params.Job : null; this.Nationality = 'Nationality' in params ? params.Nationality : null; this.Primary = 'Primary' in params ? params.Primary : null; this.Zone = 'Zone' in params ? params.Zone : null; this.AlreadyFirstLogin = 'AlreadyFirstLogin' in params ? params.AlreadyFirstLogin : null; this.TenantId = 'TenantId' in params ? params.TenantId : null; this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.Version = 'Version' in params ? params.Version : null; this.LockType = 'LockType' in params ? params.LockType : null; this.LockTime = 'LockTime' in params ? params.LockTime : null; this.IndexedAttribute1 = 'IndexedAttribute1' in params ? params.IndexedAttribute1 : null; this.IndexedAttribute2 = 'IndexedAttribute2' in params ? params.IndexedAttribute2 : null; this.IndexedAttribute3 = 'IndexedAttribute3' in params ? params.IndexedAttribute3 : null; this.IndexedAttribute4 = 'IndexedAttribute4' in params ? params.IndexedAttribute4 : null; this.IndexedAttribute5 = 'IndexedAttribute5' in params ? params.IndexedAttribute5 : null; } } /** * Sorting of the result of user query * @class */ class Sort extends AbstractModel { constructor(){ super(); /** * Key for sorting. See custom attributes * @type {string || null} */ this.PropertyKey = null; /** * `ASC` or `DESC` * @type {string || null} */ this.Order = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PropertyKey = 'PropertyKey' in params ? params.PropertyKey : null; this.Order = 'Order' in params ? params.Order : null; } } /** * Pagination object * @class */ class Pageable extends AbstractModel { constructor(){ super(); /** * Number of entries per page * @type {number || null} */ this.PageSize = null; /** * Current page number * @type {number || null} */ this.PageNumber = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PageSize = 'PageSize' in params ? params.PageSize : null; this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; } } /** * ResetPassword response structure. * @class */ class ResetPasswordResponse extends AbstractModel { constructor(){ super(); /** * User password after reset * @type {string || null} */ this.Password = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Password = 'Password' in params ? params.Password : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateUser response structure. * @class */ class UpdateUserResponse extends AbstractModel { constructor(){ super(); /** * User information after update Note: This field may return null, indicating that no valid values can be obtained. * @type {User || null} */ this.User = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.User) { let obj = new User(); obj.deserialize(params.User) this.User = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SetPassword request structure. * @class */ class SetPasswordRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * User ID * @type {string || null} */ this.UserId = null; /** * Password * @type {string || null} */ this.Password = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.UserId = 'UserId' in params ? params.UserId : null; this.Password = 'Password' in params ? params.Password : null; } } /** * Salt location * @class */ class SaltLocation extends AbstractModel { constructor(){ super(); /** * Password salt type. Valid values: `HEAD`, `TAIL`, `OTHER`. * @type {string || null} */ this.SaltLocationTypeEnum = null; /** * Salting rule * @type {SaltLocationRule || null} */ this.SaltLocationRule = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SaltLocationTypeEnum = 'SaltLocationTypeEnum' in params ? params.SaltLocationTypeEnum : null; if (params.SaltLocationRule) { let obj = new SaltLocationRule(); obj.deserialize(params.SaltLocationRule) this.SaltLocationRule = obj; } } } /** * UpdateUserStatus request structure. * @class */ class UpdateUserStatusRequest extends AbstractModel { constructor(){ super(); /** * User directory ID * @type {string || null} */ this.UserStoreId = null; /** * User ID * @type {string || null} */ this.UserId = null; /** * User status <li> **NORMAL** </li> Normal <li> **LOCK** </li> Locked <li> **FREEZE** </li> Frozen * @type {string || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserStoreId = 'UserStoreId' in params ? params.UserStoreId : null; this.UserId = 'UserId' in params ? params.UserId : null; this.Status = 'Status' in params ? params.Status : null; } } /** * ListJobs response structure. * @class */ class ListJobsResponse extends AbstractModel { constructor(){ super(); /** * List of tasks Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<Job> || null} */ this.JobSet = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params)