UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,843 lines (1,551 loc) • 154 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"); /** * DescribeOrgNode response structure. * @class */ class DescribeOrgNodeResponse extends AbstractModel { constructor(){ super(); /** * Displayed organization node name, which can contain up to 64 characters and is the same as the organization name by default. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DisplayName = null; /** * Last modification time of the organization node in ISO 8601 format. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LastModifiedDate = null; /** * External ID of the organization node. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CustomizedOrgNodeId = null; /** * Parent node ID of the current organization node. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ParentOrgNodeId = null; /** * Organization node ID, which is globally unique. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OrgNodeId = null; /** * Data source. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DataSource = null; /** * Organization node creation time in ISO 8601 format. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreatedDate = null; /** * List of sub-nodes under the current organization node. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<OrgNodeChildInfo> || null} */ this.OrgNodeChildInfo = null; /** * Organization node description. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Description = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DisplayName = 'DisplayName' in params ? params.DisplayName : null; this.LastModifiedDate = 'LastModifiedDate' in params ? params.LastModifiedDate : null; this.CustomizedOrgNodeId = 'CustomizedOrgNodeId' in params ? params.CustomizedOrgNodeId : null; this.ParentOrgNodeId = 'ParentOrgNodeId' in params ? params.ParentOrgNodeId : null; this.OrgNodeId = 'OrgNodeId' in params ? params.OrgNodeId : null; this.DataSource = 'DataSource' in params ? params.DataSource : null; this.CreatedDate = 'CreatedDate' in params ? params.CreatedDate : null; if (params.OrgNodeChildInfo) { this.OrgNodeChildInfo = new Array(); for (let z in params.OrgNodeChildInfo) { let obj = new OrgNodeChildInfo(); obj.deserialize(params.OrgNodeChildInfo[z]); this.OrgNodeChildInfo.push(obj); } } this.Description = 'Description' in params ? params.Description : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListApplications request structure. * @class */ class ListApplicationsRequest extends AbstractModel { constructor(){ super(); /** * Fuzzy match search criterion. You can combine multiple search criteria and search in multiple data ranges. In addition, multiple query methods such as full match, partial match, and range match are supported. Specifically, double quotation marks ("") indicate full match, and an asterisk (*) at the end of the field indicates partial match. The fuzzy match search feature and the exact match query feature will not take effect at the same time. If both `SearchCondition` and `ApplicationIdList` are specified, `ApplicationIdList` will take effect by default for exact match query; otherwise, the information of all applications will be returned by default. * @type {ApplicationInfoSearchCriteria || null} */ this.SearchCondition = null; /** * Set of sort criteria. Valid values: DisplayName: application name; CreatedDate: creation time; LastModifiedDate: last modification time. If this field is left empty, the results will be sorted in alphabetical order by application name. * @type {SortCondition || null} */ this.Sort = null; /** * Set of sort criteria. Valid values: DisplayName: application name; CreatedDate: creation time; LastModifiedDate: last modification time. If this field is left empty, the results will be sorted in alphabetical order by application name. * @type {number || null} */ this.Offset = null; /** * Number of results read per page. The `Offset` and `Limit` fields need to be used together; otherwise, the query results will not be paginated. * @type {number || null} */ this.Limit = null; /** * Application ID list, through which the corresponding application information will be matched exactly. The fuzzy match search feature and the exact match query feature will not take effect at the same time. If both `SearchCondition` and `ApplicationIdList` are specified, `ApplicationIdList` will take effect by default for exact match query; otherwise, the information of all applications will be returned by default. * @type {Array.<string> || null} */ this.ApplicationIdList = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.SearchCondition) { let obj = new ApplicationInfoSearchCriteria(); obj.deserialize(params.SearchCondition) this.SearchCondition = obj; } if (params.Sort) { let obj = new SortCondition(); obj.deserialize(params.Sort) this.Sort = obj; } this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.ApplicationIdList = 'ApplicationIdList' in params ? params.ApplicationIdList : null; } } /** * User attribute search criteria. * @class */ class UserSearchCriteria extends AbstractModel { constructor(){ super(); /** * Username, which can contain up to 64 characters. * @type {string || null} */ this.UserName = null; /** * User's mobile number. * @type {string || null} */ this.Phone = null; /** * User's email address. * @type {string || null} */ this.Email = null; /** * User status. Valid values: NORMAL: normal; FREEZE: frozen; LOCKED: locked; NOT_ENABLED: disabled. * @type {string || null} */ this.Status = null; /** * User creation time in ISO 8601 format. * @type {string || null} */ this.CreationTime = null; /** * The user's last update time. * @type {string || null} */ this.LastUpdateTime = null; /** * Search by name. The match criteria include username and user ID. * @type {string || null} */ this.Keyword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserName = 'UserName' in params ? params.UserName : null; this.Phone = 'Phone' in params ? params.Phone : null; this.Email = 'Email' in params ? params.Email : null; this.Status = 'Status' in params ? params.Status : null; this.CreationTime = 'CreationTime' in params ? params.CreationTime : null; this.LastUpdateTime = 'LastUpdateTime' in params ? params.LastUpdateTime : null; this.Keyword = 'Keyword' in params ? params.Keyword : null; } } /** * AddAccountToAccountGroup response structure. * @class */ class AddAccountToAccountGroupResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * DeleteUser request structure. * @class */ class DeleteUserRequest extends AbstractModel { constructor(){ super(); /** * Username, which can contain up to 32 characters. You need to select either `UserName` or `UserId` as the search criterion; if both are selected, `UserName` will be used by default. * @type {string || null} */ this.UserName = null; /** * User ID. You need to select either `UserName` or `UserId` as the search criterion. If both are selected, `UserName` will be used by default. * @type {string || null} */ this.UserId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserName = 'UserName' in params ? params.UserName : null; this.UserId = 'UserId' in params ? params.UserId : null; } } /** * Returned list of eligible user data * @class */ class AuthorizationUserResouceInfo extends AbstractModel { constructor(){ super(); /** * Resource ID Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ResourceId = null; /** * Resource type Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ResourceType = null; /** * Authorized resource Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Resource = null; /** * Inheritance relationship Note: this field may return null, indicating that no valid values can be obtained. * @type {InheritedForm || null} */ this.InheritedForm = null; /** * Application account Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.ApplicationAccounts = null; /** * Resource name Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ResourceName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.ResourceType = 'ResourceType' in params ? params.ResourceType : null; this.Resource = 'Resource' in params ? params.Resource : null; if (params.InheritedForm) { let obj = new InheritedForm(); obj.deserialize(params.InheritedForm) this.InheritedForm = obj; } this.ApplicationAccounts = 'ApplicationAccounts' in params ? params.ApplicationAccounts : null; this.ResourceName = 'ResourceName' in params ? params.ResourceName : null; } } /** * CreateAppAccount response structure. * @class */ class CreateAppAccountResponse extends AbstractModel { constructor(){ super(); /** * Account ID Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AccountId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccountId = 'AccountId' in params ? params.AccountId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListAuthorizedApplicationsToUserGroup request structure. * @class */ class ListAuthorizedApplicationsToUserGroupRequest extends AbstractModel { constructor(){ super(); /** * User group ID. * @type {string || null} */ this.UserGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null; } } /** * ModifyApplication response structure. * @class */ class ModifyApplicationResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * User information list under the organization sub-node * @class */ class OrgNodeChildUserInfo extends AbstractModel { constructor(){ super(); /** * Organization node ID, which is globally unique and can contain up to 64 characters. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OrgNodeId = null; /** * User information list. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<UserInfo> || null} */ this.UserInfo = null; /** * Total number of users under the current organization node. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalUserNum = null; /** * Organization ID path. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OrgNodeIdPath = null; /** * Organization name path. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OrgNodeNamePath = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OrgNodeId = 'OrgNodeId' in params ? params.OrgNodeId : null; if (params.UserInfo) { this.UserInfo = new Array(); for (let z in params.UserInfo) { let obj = new UserInfo(); obj.deserialize(params.UserInfo[z]); this.UserInfo.push(obj); } } this.TotalUserNum = 'TotalUserNum' in params ? params.TotalUserNum : null; this.OrgNodeIdPath = 'OrgNodeIdPath' in params ? params.OrgNodeIdPath : null; this.OrgNodeNamePath = 'OrgNodeNamePath' in params ? params.OrgNodeNamePath : null; } } /** * DeleteAccountGroup request structure. * @class */ class DeleteAccountGroupRequest extends AbstractModel { constructor(){ super(); /** * Array of account group IDs. * @type {Array.<string> || null} */ this.AccountGroupIdList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccountGroupIdList = 'AccountGroupIdList' in params ? params.AccountGroupIdList : null; } } /** * AddUserToUserGroup request structure. * @class */ class AddUserToUserGroupRequest extends AbstractModel { constructor(){ super(); /** * List of IDs of the users to be added to the user group. * @type {Array.<string> || null} */ this.UserIds = null; /** * User group ID, which is globally unique. * @type {string || null} */ this.UserGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserIds = 'UserIds' in params ? params.UserIds : null; this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null; } } /** * Application information list. * @class */ class ApplicationInformation extends AbstractModel { constructor(){ super(); /** * Application ID, which is globally unique. * @type {string || null} */ this.ApplicationId = null; /** * Displayed application name, which can contain up to 64 characters and is the same as the application name by default. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DisplayName = null; /** * Application creation time in ISO 8601 format. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreatedDate = null; /** * Last update time in ISO 8601 format. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LastModifiedDate = null; /** * Application status. Note: this field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.AppStatus = null; /** * Application icon. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Icon = null; /** * Application type. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationType = null; /** * Client ID. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ClientId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.DisplayName = 'DisplayName' in params ? params.DisplayName : null; this.CreatedDate = 'CreatedDate' in params ? params.CreatedDate : null; this.LastModifiedDate = 'LastModifiedDate' in params ? params.LastModifiedDate : null; this.AppStatus = 'AppStatus' in params ? params.AppStatus : null; this.Icon = 'Icon' in params ? params.Icon : null; this.ApplicationType = 'ApplicationType' in params ? params.ApplicationType : null; this.ClientId = 'ClientId' in params ? params.ClientId : null; } } /** * ListUsers response structure. * @class */ class ListUsersResponse extends AbstractModel { constructor(){ super(); /** * List of users returned for the query. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<UserInformation> || null} */ this.UserList = null; /** * Total number of users returned for the query, which will be returned only when the `IncludeTotal` input parameter is set to `true`. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.UserList) { this.UserList = new Array(); for (let z in params.UserList) { let obj = new UserInformation(); obj.deserialize(params.UserList[z]); this.UserList.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteAppAccount request structure. * @class */ class DeleteAppAccountRequest extends AbstractModel { constructor(){ super(); /** * Array of account IDs . * @type {Array.<string> || null} */ this.AccountIdList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccountIdList = 'AccountIdList' in params ? params.AccountIdList : null; } } /** * Returned user group list. * @class */ class UserGroupInfo extends AbstractModel { constructor(){ super(); /** * Nickname, which can contain up to 64 characters and is the same as the username by default. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DisplayName = null; /** * User group ID, which is globally unique and can contain up to 64 characters. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserGroupId = null; /** * User group remarks. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Description = null; /** * Creation time. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreatedDate = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DisplayName = 'DisplayName' in params ? params.DisplayName : null; this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null; this.Description = 'Description' in params ? params.Description : null; this.CreatedDate = 'CreatedDate' in params ? params.CreatedDate : null; } } /** * UpdateOrgNode request structure. * @class */ class UpdateOrgNodeRequest extends AbstractModel { constructor(){ super(); /** * Organization node ID, which is globally unique. * @type {string || null} */ this.OrgNodeId = null; /** * Organization node name, which can contain up to 64 characters. * @type {string || null} */ this.DisplayName = null; /** * Organization node description. * @type {string || null} */ this.Description = null; /** * External ID of the organization node, which is optional and customizable. If this parameter is specified, its uniqueness will be verified. * @type {string || null} */ this.CustomizedOrgNodeId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OrgNodeId = 'OrgNodeId' in params ? params.OrgNodeId : null; this.DisplayName = 'DisplayName' in params ? params.DisplayName : null; this.Description = 'Description' in params ? params.Description : null; this.CustomizedOrgNodeId = 'CustomizedOrgNodeId' in params ? params.CustomizedOrgNodeId : null; } } /** * CreateOrgNode request structure. * @class */ class CreateOrgNodeRequest extends AbstractModel { constructor(){ super(); /** * Organization node name, which can contain up to 64 characters. * @type {string || null} */ this.DisplayName = null; /** * Parent organization node ID. If this parameter is left empty, the organization will be created under the root organization node by default. * @type {string || null} */ this.ParentOrgNodeId = null; /** * Organization node description. * @type {string || null} */ this.Description = null; /** * External ID of the organization node, which is optional and customizable. If this parameter is specified, its uniqueness will be verified. * @type {string || null} */ this.CustomizedOrgNodeId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DisplayName = 'DisplayName' in params ? params.DisplayName : null; this.ParentOrgNodeId = 'ParentOrgNodeId' in params ? params.ParentOrgNodeId : null; this.Description = 'Description' in params ? params.Description : null; this.CustomizedOrgNodeId = 'CustomizedOrgNodeId' in params ? params.CustomizedOrgNodeId : null; } } /** * RemoveUserFromUserGroup request structure. * @class */ class RemoveUserFromUserGroupRequest extends AbstractModel { constructor(){ super(); /** * List of IDs of the users to be added to the user group. * @type {Array.<string> || null} */ this.UserIds = null; /** * User group ID, which is globally unique. * @type {string || null} */ this.UserGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserIds = 'UserIds' in params ? params.UserIds : null; this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null; } } /** * ModifyAppAccount request structure. * @class */ class ModifyAppAccountRequest extends AbstractModel { constructor(){ super(); /** * Account ID. * @type {string || null} */ this.AccountId = null; /** * Account name. When this parameter is not specified, the name will not be modified. * @type {string || null} */ this.AccountName = null; /** * Account password. When this parameter is not specified, the password will not be changed. * @type {string || null} */ this.Password = null; /** * Description. When this parameter is not specified, the description will not be modified. * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccountId = 'AccountId' in params ? params.AccountId : null; this.AccountName = 'AccountName' in params ? params.AccountName : null; this.Password = 'Password' in params ? params.Password : null; this.Description = 'Description' in params ? params.Description : null; } } /** * ListAuthorizedApplicationsToUserGroup response structure. * @class */ class ListAuthorizedApplicationsToUserGroupResponse extends AbstractModel { constructor(){ super(); /** * List of IDs of the applications accessible to the user group. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.ApplicationIds = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationIds = 'ApplicationIds' in params ? params.ApplicationIds : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteAccountGroup response structure. * @class */ class DeleteAccountGroupResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * User group attribute search criteria. * @class */ class UserGroupInfoSearchCriteria extends AbstractModel { constructor(){ super(); /** * Search by name. The match criteria include user group name and user group ID. * @type {string || null} */ this.Keyword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Keyword = 'Keyword' in params ? params.Keyword : null; } } /** * DescribeUserInfo request structure. * @class */ class DescribeUserInfoRequest extends AbstractModel { constructor(){ super(); /** * Username, which can contain up to 64 characters. You need to specify at least `UserName` or `UserId`. If both are specified, `UserName` will be used first. * @type {string || null} */ this.UserName = null; /** * User ID, which can contain up to 64 characters. You need to specify at least `UserName` or `UserId`. If both are specified, `UserName` will be used first. * @type {string || null} */ this.UserId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserName = 'UserName' in params ? params.UserName : null; this.UserId = 'UserId' in params ? params.UserId : null; } } /** * ListAuthorizedApplicationsToOrgNode request structure. * @class */ class ListAuthorizedApplicationsToOrgNodeRequest extends AbstractModel { constructor(){ super(); /** * Organization node ID. * @type {string || null} */ this.OrgNodeId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OrgNodeId = 'OrgNodeId' in params ? params.OrgNodeId : null; } } /** * DescribePublicKey response structure. * @class */ class DescribePublicKeyResponse extends AbstractModel { constructor(){ super(); /** * Public key information used for JWT signature verification. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.PublicKey = null; /** * JWT key ID. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.KeyId = null; /** * Application ID, which is globally unique. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PublicKey = 'PublicKey' in params ? params.PublicKey : null; this.KeyId = 'KeyId' in params ? params.KeyId : null; this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeOrgNode request structure. * @class */ class DescribeOrgNodeRequest extends AbstractModel { constructor(){ super(); /** * Organization node ID, which is globally unique and can contain up to 64 characters. If this parameter is left empty, the information of the root organization node will be read by default. * @type {string || null} */ this.OrgNodeId = null; /** * Whether to read the information of its sub-nodes. When this parameter is left empty or specified as `false`, only the information of the current organization node will be read by default. When it is specified as `true`, the information of the current organization node and its level-1 sub-nodes will be read. * @type {boolean || null} */ this.IncludeOrgNodeChildInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OrgNodeId = 'OrgNodeId' in params ? params.OrgNodeId : null; this.IncludeOrgNodeChildInfo = 'IncludeOrgNodeChildInfo' in params ? params.IncludeOrgNodeChildInfo : null; } } /** * CreateAccountGroup request structure. * @class */ class CreateAccountGroupRequest extends AbstractModel { constructor(){ super(); /** * Application ID. * @type {string || null} */ this.ApplicationId = null; /** * Account group name. * @type {string || null} */ this.GroupName = null; /** * Description. * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; this.Description = 'Description' in params ? params.Description : null; } } /** * DescribeUserGroup request structure. * @class */ class DescribeUserGroupRequest extends AbstractModel { constructor(){ super(); /** * User group ID, which is globally unique. * @type {string || null} */ this.UserGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null; } } /** * CreateOrgNode response structure. * @class */ class CreateOrgNodeResponse extends AbstractModel { constructor(){ super(); /** * Organization node ID, which is globally unique. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OrgNodeId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OrgNodeId = 'OrgNodeId' in params ? params.OrgNodeId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * User group attribute search criteria in the list of the user's user groups. * @class */ class UserGroupInformationSearchCriteria extends AbstractModel { constructor(){ super(); /** * Search by name. The match criteria include user group name. * @type {string || null} */ this.Keyword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Keyword = 'Keyword' in params ? params.Keyword : null; } } /** * Account group query parameters * @class */ class AccountGroupSearchCriteria extends AbstractModel { constructor(){ super(); /** * Keyword * @type {string || null} */ this.Keyword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Keyword = 'Keyword' in params ? params.Keyword : null; } } /** * CreateUser response structure. * @class */ class CreateUserResponse extends AbstractModel { constructor(){ super(); /** * Returned ID of the newly created user, which is globally unique. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserId = 'UserId' in params ? params.UserId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Third-Party account information. * @class */ class ThirdPartyAccountInfo extends AbstractModel { constructor(){ super(); /** * Third-Party account code. `2` indicates WeCom account. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AccountCode = null; /** * Username of the account. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AccountName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccountCode = 'AccountCode' in params ? params.AccountCode : null; this.AccountName = 'AccountName' in params ? params.AccountName : null; } } /** * ModifyAppAccount response structure. * @class */ class ModifyAppAccountResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * DeleteUser response structure. * @class */ class DeleteUserResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * ListUsersInUserGroup response structure. * @class */ class ListUsersInUserGroupResponse extends AbstractModel { constructor(){ super(); /** * User group ID, which is globally unique. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserGroupId = null; /** * Returned user information list. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<UserInfo> || null} */ this.UserInfo = null; /** * Total number of returned user information items. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalNum = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null; if (params.UserInfo) { this.UserInfo = new Array(); for (let z in params.UserInfo) { let obj = new UserInfo(); obj.deserialize(params.UserInfo[z]); this.UserInfo.push(obj); } } this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateAppAccount request structure. * @class */ class CreateAppAccountRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Account name * @type {string || null} */ this.AccountName = null; /** * Account password * @type {string || null} */ this.Password = null; /** * Description * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.AccountName = 'AccountName' in params ? params.AccountName : null; this.Password = 'Password' in params ? params.Password : null; this.Description = 'Description' in params ? params.Description : null; } } /** * DescribeApplication response structure. * @class */ class DescribeApplicationResponse extends AbstractModel { constructor(){ super(); /** * Key ID. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.KeyId = null; /** * Displayed application name, which can contain up to 64 characters and is the same as the application name by default. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DisplayName = null; /** * Last modification time of the application in ISO 8601 format. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LastModifiedDate = null; /** * Client ID. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ClientId = null; /** * Application type, i.e., the application template type selected during application creation. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationType = null; /** * Application creation time in ISO 8601 format. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreatedDate = null; /** * Application ID, which is globally unique. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationId = null; /** * Token validity period in seconds. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TokenExpired = null; /** * Client secret. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ClientSecret = null; /** * Public key information. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.PublicKey = null; /** * Authorization address. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AuthorizeUrl = null; /** * Access address of the application icon image. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IconUrl = null; /** * Security level. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SecureLevel = null; /** * Application status. Note: this field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.AppStatus = null; /** * Description. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Description = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.KeyId = 'KeyId' in params ? params.KeyId : null; this.DisplayName = 'DisplayName' in params ? params.DisplayName : null; this.LastModifiedDate = 'LastModifiedDate' in params ? params.LastModifiedDate : null; this.ClientId = 'ClientId' in params ? params.ClientId : null; this.ApplicationType = 'ApplicationType' in params ? params.ApplicationType : null; this.CreatedDate = 'CreatedDate' in params ? params.CreatedDate : null; this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.TokenExpired = 'TokenExpired' in params ? params.TokenExpired : null; this.ClientSecret = 'ClientSecret' in params ? params.ClientSecret : null; this.PublicKey = 'PublicKey' in params ? params.PublicKey : null; this.AuthorizeUrl = 'AuthorizeUrl' in params ? params.AuthorizeUrl : null; this.IconUrl = 'IconUrl' in params ? params.IconUrl : null; this.SecureLevel = 'SecureLevel' in params ? params.SecureLevel : null; this.AppStatus = 'AppStatus' in params ? params.AppStatus : null; this.Description = 'Description' in params ? params.Description : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAppAccount response structure. * @class */ class DescribeAppAccountResponse extends AbstractModel { constructor(){ super(); /** * Total number of records returned for the query. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalCount = null; /** * Application ID. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationId = null; /** * Returned list of eligible data. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<AppAccountInfo> || null} */ this.AppAccountList = null; /** * The unique request ID, which is returned for each req