UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
2,200 lines (1,838 loc) • 198 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"); /** * Sub-user information * @class */ class SubAccountUser extends AbstractModel { constructor(){ super(); /** * Sub-user ID * @type {number || null} */ this.Uin = null; /** * Sub-user name * @type {string || null} */ this.Name = null; /** * Sub-user UID. UID is the unique identifier of a user who is a message recipient, while UIN is a unique identifier of a user. * @type {number || null} */ this.Uid = null; /** * Sub-user remarks * @type {string || null} */ this.Remark = null; /** * Creation time Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreateTime = null; /** * User type (1: root account; 2: sub-user; 3: WeCom sub-user; 4: collaborator; 5: message recipient) * @type {number || null} */ this.UserType = null; /** * * @type {string || null} */ this.LastLoginIp = null; /** * * @type {string || null} */ this.LastLoginTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Uin = 'Uin' in params ? params.Uin : null; this.Name = 'Name' in params ? params.Name : null; this.Uid = 'Uid' in params ? params.Uid : null; this.Remark = 'Remark' in params ? params.Remark : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.UserType = 'UserType' in params ? params.UserType : null; this.LastLoginIp = 'LastLoginIp' in params ? params.LastLoginIp : null; this.LastLoginTime = 'LastLoginTime' in params ? params.LastLoginTime : null; } } /** * ListAttachedRolePolicies response structure. * @class */ class ListAttachedRolePoliciesResponse extends AbstractModel { constructor(){ super(); /** * List of policies associated with the role * @type {Array.<AttachedPolicyOfRole> || null} */ this.List = null; /** * Total number of policies associated with the role * @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; } if (params.List) { this.List = new Array(); for (let z in params.List) { let obj = new AttachedPolicyOfRole(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Login and sensitive operation flag * @class */ class LoginActionFlagIntl extends AbstractModel { constructor(){ super(); /** * Mobile number * @type {number || null} */ this.Phone = null; /** * Hard token * @type {number || null} */ this.Token = null; /** * Soft token * @type {number || null} */ this.Stoken = null; /** * WeChat * @type {number || null} */ this.Wechat = null; /** * Custom * @type {number || null} */ this.Custom = null; /** * Email * @type {number || null} */ this.Mail = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Phone = 'Phone' in params ? params.Phone : null; this.Token = 'Token' in params ? params.Token : null; this.Stoken = 'Stoken' in params ? params.Stoken : null; this.Wechat = 'Wechat' in params ? params.Wechat : null; this.Custom = 'Custom' in params ? params.Custom : null; this.Mail = 'Mail' in params ? params.Mail : null; } } /** * UpdateUserOIDCConfig response structure. * @class */ class UpdateUserOIDCConfigResponse 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; } } /** * ListAccessKeys request structure. * @class */ class ListAccessKeysRequest extends AbstractModel { constructor(){ super(); /** * `UIN` of the specified user. If this parameter is left empty, access keys of the current user will be listed by default * @type {number || null} */ this.TargetUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TargetUin = 'TargetUin' in params ? params.TargetUin : null; } } /** * SetMfaFlag response structure. * @class */ class SetMfaFlagResponse 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(); /** * Sub-user username * @type {string || null} */ this.Name = null; /** * Whether to forcibly delete the sub-user. The default input parameter is `0`. `0`: do not delete the user if the user has undeleted API keys; `1`: first delete the API keys then delete the user if the user has undeleted API keys. To delete API keys, you need to have cam:DeleteApiKey permission, which enables you to delete both enabled and disabled API keys. If you do not have this permission, you will not be able to delete API keys and the user. * @type {number || null} */ this.Force = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Force = 'Force' in params ? params.Force : null; } } /** * DetachGroupPolicy request structure. * @class */ class DetachGroupPolicyRequest extends AbstractModel { constructor(){ super(); /** * Policy ID * @type {number || null} */ this.PolicyId = null; /** * User Group ID * @type {number || null} */ this.DetachGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PolicyId = 'PolicyId' in params ? params.PolicyId : null; this.DetachGroupId = 'DetachGroupId' in params ? params.DetachGroupId : null; } } /** * DescribeRoleList response structure. * @class */ class DescribeRoleListResponse extends AbstractModel { constructor(){ super(); /** * Role details list Note: This field may return null, indicating that no valid value was found. * @type {Array.<RoleInfo> || null} */ this.List = null; /** * Total number of roles * @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; } if (params.List) { this.List = new Array(); for (let z in params.List) { let obj = new RoleInfo(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; 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; } } /** * TagRole response structure. * @class */ class TagRoleResponse 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; } } /** * GetRole request structure. * @class */ class GetRoleRequest extends AbstractModel { constructor(){ super(); /** * Role ID, used to specify role. Input either `RoleId` or `RoleName` * @type {string || null} */ this.RoleId = null; /** * Role name, used to specify role. Input either `RoleId` or `RoleName` * @type {string || null} */ this.RoleName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RoleId = 'RoleId' in params ? params.RoleId : null; this.RoleName = 'RoleName' in params ? params.RoleName : null; } } /** * CreateServiceLinkedRole request structure. * @class */ class CreateServiceLinkedRoleRequest extends AbstractModel { constructor(){ super(); /** * Authorized service, i.e., Tencent Cloud service entity with this role attached. * @type {Array.<string> || null} */ this.QCSServiceName = null; /** * Custom suffix. A string you provide, which is combined with the service-provided prefix to form the complete role name. * @type {string || null} */ this.CustomSuffix = null; /** * Role description. * @type {string || null} */ this.Description = null; /** * Tags bound to the role. * @type {Array.<RoleTags> || null} */ this.Tags = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.QCSServiceName = 'QCSServiceName' in params ? params.QCSServiceName : null; this.CustomSuffix = 'CustomSuffix' in params ? params.CustomSuffix : null; this.Description = 'Description' in params ? params.Description : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new RoleTags(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } } } /** * ListAttachedGroupPolicies request structure. * @class */ class ListAttachedGroupPoliciesRequest extends AbstractModel { constructor(){ super(); /** * User group ID * @type {number || null} */ this.TargetGroupId = null; /** * Page number, which starts from 1. Default is 1 * @type {number || null} */ this.Page = null; /** * Number of entries per page; 20 by default * @type {number || null} */ this.Rp = null; /** * Search by keyword * @type {string || null} */ this.Keyword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TargetGroupId = 'TargetGroupId' in params ? params.TargetGroupId : null; this.Page = 'Page' in params ? params.Page : null; this.Rp = 'Rp' in params ? params.Rp : null; this.Keyword = 'Keyword' in params ? params.Keyword : null; } } /** * ListGroupsForUser request structure. * @class */ class ListGroupsForUserRequest extends AbstractModel { constructor(){ super(); /** * Sub-user UID * @type {number || null} */ this.Uid = null; /** * Number of entries per page; default is 20 * @type {number || null} */ this.Rp = null; /** * Page number; default is 1 * @type {number || null} */ this.Page = null; /** * Sub-account UIN * @type {number || null} */ this.SubUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Uid = 'Uid' in params ? params.Uid : null; this.Rp = 'Rp' in params ? params.Rp : null; this.Page = 'Page' in params ? params.Page : null; this.SubUin = 'SubUin' in params ? params.SubUin : null; } } /** * AttachRolePolicy response structure. * @class */ class AttachRolePolicyResponse 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; } } /** * UpdatePolicy response structure. * @class */ class UpdatePolicyResponse extends AbstractModel { constructor(){ super(); /** * Policy ID, which will be returned only if the input parameter is `PolicyName` Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.PolicyId = 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.PolicyId = 'PolicyId' in params ? params.PolicyId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeOIDCConfig request structure. * @class */ class DescribeOIDCConfigRequest extends AbstractModel { constructor(){ super(); /** * Name. * @type {string || null} */ this.Name = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; } } /** * GetServiceLinkedRoleDeletionStatus response structure. * @class */ class GetServiceLinkedRoleDeletionStatusResponse extends AbstractModel { constructor(){ super(); /** * Status: NOT_STARTED, IN_PROGRESS, SUCCEEDED, FAILED * @type {string || null} */ this.Status = null; /** * Reasons why the deletion failed. * @type {string || null} */ this.Reason = null; /** * Service type Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ServiceType = null; /** * Service name Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ServiceName = 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.Status = 'Status' in params ? params.Status : null; this.Reason = 'Reason' in params ? params.Reason : null; this.ServiceType = 'ServiceType' in params ? params.ServiceType : null; this.ServiceName = 'ServiceName' in params ? params.ServiceName : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetSecurityLastUsed request structure. * @class */ class GetSecurityLastUsedRequest extends AbstractModel { constructor(){ super(); /** * Key ID list query. Up to 10 key IDs can be queried. * @type {Array.<string> || null} */ this.SecretIdList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SecretIdList = 'SecretIdList' in params ? params.SecretIdList : null; } } /** * DescribeUserSAMLConfig response structure. * @class */ class DescribeUserSAMLConfigResponse extends AbstractModel { constructor(){ super(); /** * SAML metadata document. * @type {string || null} */ this.SAMLMetadata = null; /** * Status. `0`: not set, `1`: enabled, `2`: disabled. * @type {number || null} */ this.Status = 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.SAMLMetadata = 'SAMLMetadata' in params ? params.SAMLMetadata : null; this.Status = 'Status' in params ? params.Status : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteUserPermissionsBoundary response structure. * @class */ class DeleteUserPermissionsBoundaryResponse 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; } } /** * ListUsers response structure. * @class */ class ListUsersResponse extends AbstractModel { constructor(){ super(); /** * Sub-user information * @type {Array.<SubAccountInfo> || null} */ this.Data = 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.Data) { this.Data = new Array(); for (let z in params.Data) { let obj = new SubAccountInfo(); obj.deserialize(params.Data[z]); this.Data.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateRoleDescription response structure. * @class */ class UpdateRoleDescriptionResponse 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; } } /** * GetAccountSummary request structure. * @class */ class GetAccountSummaryRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * DeletePolicy response structure. * @class */ class DeletePolicyResponse 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; } } /** * GetUserAppId response structure. * @class */ class GetUserAppIdResponse extends AbstractModel { constructor(){ super(); /** * UIN of the current account. * @type {string || null} */ this.Uin = null; /** * OwnerUin of the current account. * @type {string || null} */ this.OwnerUin = null; /** * AppId of the current account. * @type {number || null} */ this.AppId = 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.Uin = 'Uin' in params ? params.Uin : null; this.OwnerUin = 'OwnerUin' in params ? params.OwnerUin : null; this.AppId = 'AppId' in params ? params.AppId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetUserAppId request structure. * @class */ class GetUserAppIdRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * DescribeOIDCConfig response structure. * @class */ class DescribeOIDCConfigResponse extends AbstractModel { constructor(){ super(); /** * IdP type. 11: Role IdP. * @type {number || null} */ this.ProviderType = null; /** * IdP URL. * @type {string || null} */ this.IdentityUrl = null; /** * Public key for signature. * @type {string || null} */ this.IdentityKey = null; /** * Client ID. * @type {Array.<string> || null} */ this.ClientId = null; /** * Status. 0: Not set; 2: Disabled; 11: Enabled. * @type {number || null} */ this.Status = null; /** * Description. * @type {string || null} */ this.Description = null; /** * Name. * @type {string || null} */ this.Name = 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.ProviderType = 'ProviderType' in params ? params.ProviderType : null; this.IdentityUrl = 'IdentityUrl' in params ? params.IdentityUrl : null; this.IdentityKey = 'IdentityKey' in params ? params.IdentityKey : null; this.ClientId = 'ClientId' in params ? params.ClientId : null; this.Status = 'Status' in params ? params.Status : null; this.Description = 'Description' in params ? params.Description : null; this.Name = 'Name' in params ? params.Name : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListPolicyVersions request structure. * @class */ class ListPolicyVersionsRequest extends AbstractModel { constructor(){ super(); /** * Policy ID * @type {number || null} */ this.PolicyId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PolicyId = 'PolicyId' in params ? params.PolicyId : null; } } /** * GetCustomMFATokenInfo request structure. * @class */ class GetCustomMFATokenInfoRequest extends AbstractModel { constructor(){ super(); /** * Custom multi-factor verification Token * @type {string || null} */ this.MFAToken = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MFAToken = 'MFAToken' in params ? params.MFAToken : null; } } /** * DescribeRoleList request structure. * @class */ class DescribeRoleListRequest extends AbstractModel { constructor(){ super(); /** * Page number, beginning from 1 * @type {number || null} */ this.Page = null; /** * Number of lines per page, no greater than 200 * @type {number || null} */ this.Rp = null; /** * A parameter used to filter the list of roles under a tag. * @type {Array.<RoleTags> || null} */ this.Tags = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Page = 'Page' in params ? params.Page : null; this.Rp = 'Rp' in params ? params.Rp : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new RoleTags(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } } } /** * DescribeUserSAMLConfig request structure. * @class */ class DescribeUserSAMLConfigRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * DeleteAccessKey response structure. * @class */ class DeleteAccessKeyResponse 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; } } /** * PutRolePermissionsBoundary request structure. * @class */ class PutRolePermissionsBoundaryRequest extends AbstractModel { constructor(){ super(); /** * Policy ID * @type {number || null} */ this.PolicyId = null; /** * Role ID (either it or the role name must be entered) * @type {string || null} */ this.RoleId = null; /** * Role name (either it or the role ID must be entered) * @type {string || null} */ this.RoleName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PolicyId = 'PolicyId' in params ? params.PolicyId : null; this.RoleId = 'RoleId' in params ? params.RoleId : null; this.RoleName = 'RoleName' in params ? params.RoleName : null; } } /** * GetGroup request structure. * @class */ class GetGroupRequest extends AbstractModel { constructor(){ super(); /** * User Group ID * @type {number || null} */ this.GroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; } } /** * Policy information * @class */ class StrategyInfo extends AbstractModel { constructor(){ super(); /** * Policy ID * @type {number || null} */ this.PolicyId = null; /** * Policy name * @type {string || null} */ this.PolicyName = null; /** * Time policy created Note: This field may return null, indicating that no valid value was found. * @type {string || null} */ this.AddTime = null; /** * Policy type. 1: Custom policy; 2: Preset policy * @type {number || null} */ this.Type = null; /** * Policy description Note: This field may return null, indicating that no valid value was found. * @type {string || null} */ this.Description = null; /** * How the policy was created: 1: Via console; 2: Via syntax * @type {number || null} */ this.CreateMode = null; /** * Number of associated users * @type {number || null} */ this.Attachments = null; /** * Product associated with the policy Note: This field may return null, indicating that no valid value was found. * @type {string || null} */ this.ServiceType = null; /** * This value should not be null when querying whether a marked entity has been associated with a policy. 0 indicates that no policy has been associated, while 1 indicates that a policy has been associated * @type {number || null} */ this.IsAttached = null; /** * Queries if the policy has been deactivated Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Deactived = null; /** * List of deprecated products Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.DeactivedDetail = null; /** * The deletion task identifier used to check the deletion status of the service-linked role Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.IsServiceLinkedPolicy = null; /** * The number of entities associated with the policy. Note: this field may return `null`, indicating that no valid values can be obtained. * @type {number || null} */ this.AttachEntityCount = null; /** * The number of entities associated with the permission boundary. Note: this field may return `null`, indicating that no valid values can be obtained. * @type {number || null} */ this.AttachEntityBoundaryCount = null; /** * The last edited time. Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.UpdateTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PolicyId = 'PolicyId' in params ? params.PolicyId : null; this.PolicyName = 'PolicyName' in params ? params.PolicyName : null; this.AddTime = 'AddTime' in params ? params.AddTime : null; this.Type = 'Type' in params ? params.Type : null; this.Description = 'Description' in params ? params.Description : null; this.CreateMode = 'CreateMode' in params ? params.CreateMode : null; this.Attachments = 'Attachments' in params ? params.Attachments : null; this.ServiceType = 'ServiceType' in params ? params.ServiceType : null; this.IsAttached = 'IsAttached' in params ? params.IsAttached : null; this.Deactived = 'Deactived' in params ? params.Deactived : null; this.DeactivedDetail = 'DeactivedDetail' in params ? params.DeactivedDetail : null; this.IsServiceLinkedPolicy = 'IsServiceLinkedPolicy' in params ? params.IsServiceLinkedPolicy : null; this.AttachEntityCount = 'AttachEntityCount' in params ? params.AttachEntityCount : null; this.AttachEntityBoundaryCount = 'AttachEntityBoundaryCount' in params ? params.AttachEntityBoundaryCount : null; this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null; } } /** * DeleteRole response structure. * @class */ class DeleteRoleResponse 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; } } /** * Policy version list element structure * @class */ class PolicyVersionItem extends AbstractModel { constructor(){ super(); /** * Policy version ID Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.VersionId = null; /** * Policy version creation time Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreateDate = null; /** * Whether it is the operative version. 0: no, 1: yes Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.IsDefaultVersion = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VersionId = 'VersionId' in params ? params.VersionId : null; this.CreateDate = 'CreateDate' in params ? params.CreateDate : null; this.IsDefaultVersion = 'IsDefaultVersion' in params ? params.IsDefaultVersion : null; } } /** * DetachUserPolicy request structure. * @class */ class DetachUserPolicyRequest extends AbstractModel { constructor(){ super(); /** * Policy ID * @type {number || null} */ this.PolicyId = null; /** * Sub-account UIN * @type {number || null} */ this.DetachUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PolicyId = 'PolicyId' in params ? params.PolicyId : null; this.DetachUin = 'DetachUin' in params ? params.DetachUin : null; } } /** * DescribeSubAccounts request structure. * @class */ class DescribeSubAccountsRequest extends AbstractModel { constructor(){ super(); /** * List of sub-user UINs. Up to 50 UINs are supported. * @type {Array.<number> || null} */ this.FilterSubAccountUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FilterSubAccountUin = 'FilterSubAccountUin' in params ? params.FilterSubAccountUin : null; } } /** * DeleteUserPermissionsBoundary request structure. * @class */ class DeleteUserPermissionsBoundaryRequest extends AbstractModel { constructor(){ super(); /** * Sub-account `Uin` * @type {number || null} */ this.TargetUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TargetUin = 'TargetUin' in params ? params.TargetUin : null; } } /** * ListSAMLProviders request structure. * @class */ class ListSAMLProvidersRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * CreateAccessKey response structure. * @class */ class CreateAccessKeyResponse extends AbstractModel { constructor(){ super(); /** * Access key Note: This field may return null, indicating that no valid values can be obtained. * @type {AccessKeyDetail || null} */ this.AccessKey = 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.AccessKey) { let obj = new AccessKeyDetail(); obj.deserialize(params.AccessKey) this.AccessKey = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeletePolicyVersion response structure. * @class */ class DeletePolicyVersionResponse 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; } } /** * CreateAccessKey request structure. * @class */ class CreateAccessKeyRequest extends AbstractModel { constructor(){ super(); /** * UIN of the specified user. If this parameter is left empty, the access key will be created for the current user by default. * @type {number || null} */ this.TargetUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TargetUin = 'TargetUin' in params ? params.TargetUin : null; } } /** * UpdateSAMLProvider request structure. * @class */ class UpdateSAMLProviderRequest extends AbstractModel { constructor(){ super(); /** * SAML identity provider name * @type {string || null} */ this.Name = null; /** * SAML identity provider description * @type {string || null} */ this.Description = null; /** * SAML identity provider metadata document (Base64) * @type {string || null} */ this.SAMLMetadataDocument = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Description = 'Description' in params ? params.Description : null; this.SAMLMetadataDocument = 'SAMLMetadataDocument' in params ? params.SAMLMetadataDocument : null; } } /** * Information on policies that are associated with the user and inherited from the user group * @class */ class AttachedUserPolicyGroupInfo extends AbstractModel { constructor(){ super(); /** * Group ID. * @type {number || null} */ this.GroupId = null; /** * Group name. * @type {string || null} */ this.GroupName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; } } /** * ListGroupsForUser response structure. * @class */ class ListGroupsForUserResponse extends AbstractModel { constructor(){ super(); /** * Total number of User Groups to which the sub-user has been added * @type {number || null} */ this.TotalNum = null; /** * User Group information * @type {Array.<GroupInfo> || null} */ this.GroupInfo = 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.TotalNum = 'TotalNum' in params ? params.TotalNum : null; if (params.GroupInfo) { this.GroupInfo = new Array(); for (let z in params.GroupInfo) { let obj = new GroupInfo(); obj.deserialize(params.GroupInfo[z]); this.GroupInfo.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListUsersForGroup request structure. * @class */ class ListUsersForGroupRequest extends AbstractModel { constructor(){ super(); /** * User group ID * @type {number || null} */ this.GroupId = null; /** * Page number; default is 1 * @type {number || null} */ this.Page = null; /** * Number of entries per page; default is 20 * @type {number || null} */ this.Rp = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.Page = 'Page' in params ? params.Page : null; this.Rp = 'Rp' in params ? params.Rp : null; } } /** * RemoveUserFromGroup request structure. * @class */ class RemoveUserFromGroupRequest extends AbstractModel { constructor(){ super(); /** * The user’s UIN/UID to be deleted and the array corresponding to the user group ID. * @type {Array.<GroupIdOfUidInfo> || null} */ this.Info = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Info) { this.Info = new Array(); for (let z in params.Info) { let obj = new GroupIdOfUidInfo(); obj.deserialize(params.Info[z]); this.Info.push(obj); } } } } /** * CreatePolicyVersion response structure. * @class */ class CreatePolicyVersionResponse extends AbstractModel { constructor(){ super(); /** * Policy version ID Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.VersionId = 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.VersionId = 'VersionId' in params ? params.VersionId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListPolicies response structure. * @class */ class ListPoliciesResponse extends AbstractModel { constructor(){ super(); /** * Total number of policies * @type {number || null} */ this.TotalNum = null; /** * Policy array. Each array contains fields including `policyId`, `policyName`, `addTime`, `type`, `description`, and `createMode`. policyId: policy ID policyName: policy name addTime: policy creation time type: 1: custom policy, 2: preset policy description: policy description createMode: 1 indicates a policy created based on business permissions, while other values indicate that the policy syntax can be viewed and the policy can be updated using the policy syntax Attachments: number of associated users ServiceType: the product the policy is associated with IsAttached: this value should not be null when querying if a marked entity has been associated with a policy. 0 indicates that no policy has been associated, and 1 indicates that a policy has been associated * @type {Array.<StrategyInfo> || null} */ this.List = null; /** * Reserved field Note: This field may return null, indicating that no valid value was found. * @type {Array.<string> || null} */ this.ServiceTypeList = 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.TotalNum = 'TotalNum' in params ? params.TotalNum : null; if (params.List) { this.List = new Array(); for (let z in params.List) { let obj = new StrategyInfo(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.ServiceTypeList = 'ServiceTypeList' in params ? params.ServiceTypeList : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteAccessKey request structure. * @class */ class DeleteAccessKeyRequest extends AbstractModel { constructor(){ super(); /** * ID of the specified access key that needs to be deleted * @type {string || null} */ this.AccessKeyId = null; /** * UIN of the specified user. If this parameter is left empty, the access key will be deleted for the current user by default. * @type {number || null} */ this.TargetUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccessKeyId = 'AccessKeyId' in params ? params.AccessKeyId : null; this.TargetUin = 'TargetUin' in params ? params.TargetUin : null; } } /** * Access key * @class */ class AccessKeyDetail extends AbstractModel { constructor(){ super(); /** * Access key ID * @type {string || null} */ this.AccessKeyId = null; /** * Access key, which is visible only when it is created. Keep it properly. * @type {string || null} */ this.SecretAccessKey = null; /** * Key status. Valid values: `Active` (activated), `Inactive` (not activated). * @type {string || null} */ this.Status = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; } /** * @private */ deserialize(params) { if (!params) { re