tencentcloud-sdk-nodejs-intl-en
Version:
1,770 lines (1,484 loc) • 411 kB
JavaScript
/*
* Copyright (c) 2018 Tencent. 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");
/**
* ListTasks request structure.
* @class
*/
class ListTasksRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID.
* @type {string || null}
*/
this.ZoneId = null;
/**
* User synchronization ID. Valid values: When PrincipalType is Group, it is a user group ID (g-****). When PrincipalType is User, it is a user ID (u-****).
* @type {string || null}
*/
this.PrincipalId = null;
/**
* Token for querying the next page of returned results. During use of the API for the first time, NextToken is not needed. When you call the API for the first time, if the total number of returned data entries exceeds the MaxResults limit, the data is truncated and only MaxResults data entries are returned. Meanwhile, the return parameter IsTruncated is true and a NextToken is returned. You can use the NextToken returned last time to continue calling the API with other request parameters unchanged, to query the truncated data. You can use this method for multiple queries until IsTruncated is false, indicating that all data has been queried.
* @type {string || null}
*/
this.NextToken = null;
/**
* Maximum number of data entries per page. Value range: 1-100. Default value: 10.
* @type {number || null}
*/
this.MaxResults = null;
/**
* Identity types synchronized for CAM users. Valid values: User: indicates the synchronized identity is a user. Group: indicates the synchronized identity is a user group.
* @type {string || null}
*/
this.PrincipalType = null;
/**
* UIN of the synchronized target account of the Tencent Cloud Organization.
* @type {number || null}
*/
this.TargetUin = null;
/**
* Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
* @type {string || null}
*/
this.TargetType = null;
/**
* Permission configuration ID.
* @type {string || null}
*/
this.RoleConfigurationId = null;
/**
* InProgress: The task is being executed; Success: The task execution succeeded; Failed: The task execution failed.
* @type {string || null}
*/
this.Status = null;
/**
* Task type.
* @type {string || null}
*/
this.TaskType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.PrincipalId = 'PrincipalId' in params ? params.PrincipalId : null;
this.NextToken = 'NextToken' in params ? params.NextToken : null;
this.MaxResults = 'MaxResults' in params ? params.MaxResults : null;
this.PrincipalType = 'PrincipalType' in params ? params.PrincipalType : null;
this.TargetUin = 'TargetUin' in params ? params.TargetUin : null;
this.TargetType = 'TargetType' in params ? params.TargetType : null;
this.RoleConfigurationId = 'RoleConfigurationId' in params ? params.RoleConfigurationId : null;
this.Status = 'Status' in params ? params.Status : null;
this.TaskType = 'TaskType' in params ? params.TaskType : null;
}
}
/**
* ListRoleConfigurations request structure.
* @class
*/
class ListRoleConfigurationsRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID.
* @type {string || null}
*/
this.ZoneId = null;
/**
* Token for querying the next page of returned results. During use of the API for the first time, NextToken is not needed. When you call the API for the first time, if the total number of returned data entries exceeds the MaxResults limit, the data is truncated and only MaxResults data entries are returned. Meanwhile, the return parameter IsTruncated is true and a NextToken is returned. You can use the NextToken returned last time to continue calling the API with other request parameters unchanged, to query the truncated data. You can use this method for multiple queries until IsTruncated is false, indicating that all data has been queried.
* @type {string || null}
*/
this.NextToken = null;
/**
* Maximum number of data entries per page. Value range: 1-100. Default value: 10.
* @type {number || null}
*/
this.MaxResults = null;
/**
* Text for filtering, which is case insensitive. Currently, values of RoleConfigurationName and Description are supported. For example, if Filter is set to test, permission configurations whose name or description contains test are queried.
* @type {string || null}
*/
this.Filter = null;
/**
* Check whether the member account has been configured with permissions. If configured, return IsSelected: true; otherwise, return false.
* @type {Array.<number> || null}
*/
this.FilterTargets = null;
/**
* UserId of the authorized user or GroupId of the authorized user group, which must be set together with the input parameter FilterTargets.
* @type {string || null}
*/
this.PrincipalId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.NextToken = 'NextToken' in params ? params.NextToken : null;
this.MaxResults = 'MaxResults' in params ? params.MaxResults : null;
this.Filter = 'Filter' in params ? params.Filter : null;
this.FilterTargets = 'FilterTargets' in params ? params.FilterTargets : null;
this.PrincipalId = 'PrincipalId' in params ? params.PrincipalId : null;
}
}
/**
* DeleteSCIMCredential request structure.
* @class
*/
class DeleteSCIMCredentialRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID, which starts with the z- prefix, followed by 12 random digits/lowercase letters.
* @type {string || null}
*/
this.ZoneId = null;
/**
* SCIM key ID, which starts with the scimcred- prefix, followed by 12 random digits/lowercase letters.
* @type {string || null}
*/
this.CredentialId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.CredentialId = 'CredentialId' in params ? params.CredentialId : null;
}
}
/**
* ListGroupMembers response structure.
* @class
*/
class ListGroupMembersResponse extends AbstractModel {
constructor(){
super();
/**
* Token for querying the next page of returned results. Note: This parameter is displayed only when IsTruncated is true.
* @type {string || null}
*/
this.NextToken = null;
/**
* Total number of data entries that meet the request parameter conditions.
* @type {number || null}
*/
this.TotalCounts = null;
/**
* Maximum number of data entries per page.
* @type {number || null}
*/
this.MaxResults = null;
/**
* Whether the returned result is truncated. Valid values: true: truncated; false: not truncated.
* @type {boolean || null}
*/
this.IsTruncated = null;
/**
* The user list of a user group.
* @type {Array.<GroupMembers> || null}
*/
this.GroupMembers = 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.NextToken = 'NextToken' in params ? params.NextToken : null;
this.TotalCounts = 'TotalCounts' in params ? params.TotalCounts : null;
this.MaxResults = 'MaxResults' in params ? params.MaxResults : null;
this.IsTruncated = 'IsTruncated' in params ? params.IsTruncated : null;
if (params.GroupMembers) {
this.GroupMembers = new Array();
for (let z in params.GroupMembers) {
let obj = new GroupMembers();
obj.deserialize(params.GroupMembers[z]);
this.GroupMembers.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* SetExternalSAMLIdentityProvider request structure.
* @class
*/
class SetExternalSAMLIdentityProviderRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID.
* @type {string || null}
*/
this.ZoneId = null;
/**
* IdP metadata document (Base64 encoded). Provided by an IdP that supports the SAML 2.0 protocol.
* @type {string || null}
*/
this.EncodedMetadataDocument = null;
/**
* SSO enabling status. Valid values: Enabled, Disabled (default).
* @type {string || null}
*/
this.SSOStatus = null;
/**
* IdP identifier.
* @type {string || null}
*/
this.EntityId = null;
/**
* IdP login URL.
* @type {string || null}
*/
this.LoginUrl = null;
/**
* X509 certificate in PEM format. If this parameter is specified, all existing certificates will be replaced.
* @type {string || null}
*/
this.X509Certificate = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.EncodedMetadataDocument = 'EncodedMetadataDocument' in params ? params.EncodedMetadataDocument : null;
this.SSOStatus = 'SSOStatus' in params ? params.SSOStatus : null;
this.EntityId = 'EntityId' in params ? params.EntityId : null;
this.LoginUrl = 'LoginUrl' in params ? params.LoginUrl : null;
this.X509Certificate = 'X509Certificate' in params ? params.X509Certificate : null;
}
}
/**
* ListGroupMembers request structure.
* @class
*/
class ListGroupMembersRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID.
* @type {string || null}
*/
this.ZoneId = null;
/**
* User ID.
* @type {string || null}
*/
this.GroupId = null;
/**
* Token for querying the next page of returned results. During use of the API for the first time, NextToken is not needed. When you call the API for the first time, if the total number of returned data entries exceeds the MaxResults limit, the data is truncated and only MaxResults data entries are returned. Meanwhile, the return parameter IsTruncated is true and a NextToken is returned. You can use the NextToken returned last time to continue calling the API with other request parameters unchanged, to query the truncated data. You can use this method for multiple queries until IsTruncated is false, indicating that all data has been queried.
* @type {string || null}
*/
this.NextToken = null;
/**
* Maximum number of data entries per page. Value range: 1-100. Default value: 10.
* @type {number || null}
*/
this.MaxResults = null;
/**
* Type of the user. Manual: manually created; Synchronized: imported from external sources.
* @type {string || null}
*/
this.UserType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.GroupId = 'GroupId' in params ? params.GroupId : null;
this.NextToken = 'NextToken' in params ? params.NextToken : null;
this.MaxResults = 'MaxResults' in params ? params.MaxResults : null;
this.UserType = 'UserType' in params ? params.UserType : null;
}
}
/**
* Permission configuration synchronization.
* @class
*/
class RoleConfigurationProvisionings extends AbstractModel {
constructor(){
super();
/**
* Deployed: Deployment succeeded; DeployedRequired: Redeployment required; DeployFailed: Deployment failed.
* @type {string || null}
*/
this.DeploymentStatus = null;
/**
* Permission configuration ID.
* @type {string || null}
*/
this.RoleConfigurationId = null;
/**
* Permission configuration name.
* @type {string || null}
*/
this.RoleConfigurationName = null;
/**
* UIN of the target account of the Tencent Cloud Organization.
* @type {number || null}
*/
this.TargetUin = null;
/**
* Name of the target account of the Tencent Cloud Organization.
* @type {string || null}
*/
this.TargetName = null;
/**
* Creation time.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Modification time.
* @type {string || null}
*/
this.UpdateTime = null;
/**
* Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
* @type {string || null}
*/
this.TargetType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DeploymentStatus = 'DeploymentStatus' in params ? params.DeploymentStatus : null;
this.RoleConfigurationId = 'RoleConfigurationId' in params ? params.RoleConfigurationId : null;
this.RoleConfigurationName = 'RoleConfigurationName' in params ? params.RoleConfigurationName : null;
this.TargetUin = 'TargetUin' in params ? params.TargetUin : null;
this.TargetName = 'TargetName' in params ? params.TargetName : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
this.TargetType = 'TargetType' in params ? params.TargetType : null;
}
}
/**
* UpdatePolicy request structure.
* @class
*/
class UpdatePolicyRequest extends AbstractModel {
constructor(){
super();
/**
* Policy ID that needs to be edited. you can call the [ListPolicies](https://www.tencentcloud.com/document/product/850/105311?from_cn_redirect=1) api to obtain it.
* @type {number || null}
*/
this.PolicyId = null;
/**
* Policy description
* @type {string || null}
*/
this.Description = null;
/**
* Policy content. See the CAM policy syntax.
* @type {string || null}
*/
this.Content = null;
/**
* Policy name. The name is between one and 128 characters in length and can contain letters, digits, and underscores (_).
* @type {string || null}
*/
this.Name = null;
/**
* Policy type. Valid values: SERVICE_CONTROL_POLICY: service control policy; TAG_POLICY: tag policy. The default value is SERVICE_CONTROL_POLICY.
* @type {string || null}
*/
this.Type = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
this.Description = 'Description' in params ? params.Description : null;
this.Content = 'Content' in params ? params.Content : null;
this.Name = 'Name' in params ? params.Name : null;
this.Type = 'Type' in params ? params.Type : null;
}
}
/**
* DescribeShareUnitResources response structure.
* @class
*/
class DescribeShareUnitResourcesResponse extends AbstractModel {
constructor(){
super();
/**
* Total number.
* @type {number || null}
*/
this.Total = null;
/**
* Shared unit resource list.
* @type {Array.<ShareUnitResource> || null}
*/
this.Items = 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.Total = 'Total' in params ? params.Total : null;
if (params.Items) {
this.Items = new Array();
for (let z in params.Items) {
let obj = new ShareUnitResource();
obj.deserialize(params.Items[z]);
this.Items.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CIC permission configuration.
* @class
*/
class RoleConfiguration extends AbstractModel {
constructor(){
super();
/**
* Permission configuration ID.
* @type {string || null}
*/
this.RoleConfigurationId = null;
/**
* Permission configuration name.
* @type {string || null}
*/
this.RoleConfigurationName = null;
/**
* Permission configuration description.
* @type {string || null}
*/
this.Description = null;
/**
* Session duration. It indicates the maximum session duration when CIC users use the access configuration to access member accounts.
Unit: seconds.
* @type {number || null}
*/
this.SessionDuration = null;
/**
* Initial access page. It indicates the initial access page URL when CIC users use the access configuration to access member accounts.
* @type {string || null}
*/
this.RelayState = null;
/**
* Creation time of the permission configuration.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Update time of the permission configuration.
* @type {string || null}
*/
this.UpdateTime = null;
/**
* If the input parameter FilterTargets is provided, check whether the member account has been configured with permissions. If configured, return true; otherwise, return false.
* @type {boolean || null}
*/
this.IsSelected = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RoleConfigurationId = 'RoleConfigurationId' in params ? params.RoleConfigurationId : null;
this.RoleConfigurationName = 'RoleConfigurationName' in params ? params.RoleConfigurationName : null;
this.Description = 'Description' in params ? params.Description : null;
this.SessionDuration = 'SessionDuration' in params ? params.SessionDuration : null;
this.RelayState = 'RelayState' in params ? params.RelayState : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
this.IsSelected = 'IsSelected' in params ? params.IsSelected : null;
}
}
/**
* DescribeOrganizationMemberEmailBind response structure.
* @class
*/
class DescribeOrganizationMemberEmailBindResponse extends AbstractModel {
constructor(){
super();
/**
* Bound ID.
* @type {number || null}
*/
this.BindId = null;
/**
* Application time.
* @type {string || null}
*/
this.ApplyTime = null;
/**
* Email address.
* @type {string || null}
*/
this.Email = null;
/**
* Verification mobile number.
* @type {string || null}
*/
this.Phone = null;
/**
* Binding status: unbound indicates not bound; valid indicates to be activated; success indicates bound successfully; failed indicates binding failed.
* @type {string || null}
*/
this.BindStatus = null;
/**
* Binding time.
* @type {string || null}
*/
this.BindTime = null;
/**
* Failure description.
* @type {string || null}
*/
this.Description = null;
/**
* Verification mobile number binding status. 0 indicates unbound and 1 indicates bound.
* @type {number || null}
*/
this.PhoneBind = null;
/**
* International area code.
* @type {string || null}
*/
this.CountryCode = 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.BindId = 'BindId' in params ? params.BindId : null;
this.ApplyTime = 'ApplyTime' in params ? params.ApplyTime : null;
this.Email = 'Email' in params ? params.Email : null;
this.Phone = 'Phone' in params ? params.Phone : null;
this.BindStatus = 'BindStatus' in params ? params.BindStatus : null;
this.BindTime = 'BindTime' in params ? params.BindTime : null;
this.Description = 'Description' in params ? params.Description : null;
this.PhoneBind = 'PhoneBind' in params ? params.PhoneBind : null;
this.CountryCode = 'CountryCode' in params ? params.CountryCode : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* EnablePolicyType response structure.
* @class
*/
class EnablePolicyTypeResponse 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;
}
}
/**
* ListTargetsForPolicy response structure.
* @class
*/
class ListTargetsForPolicyResponse extends AbstractModel {
constructor(){
super();
/**
* Total quantity.
* @type {number || null}
*/
this.TotalNum = null;
/**
* Specifies the list of targets associated with the SCP policy.
* @type {Array.<ListTargetsForPolicyNode> || null}
*/
this.List = 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.TotalNum = 'TotalNum' in params ? params.TotalNum : null;
if (params.List) {
this.List = new Array();
for (let z in params.List) {
let obj = new ListTargetsForPolicyNode();
obj.deserialize(params.List[z]);
this.List.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteUser request structure.
* @class
*/
class DeleteUserRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID.
* @type {string || null}
*/
this.ZoneId = null;
/**
* User ID.
* @type {string || null}
*/
this.UserId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.UserId = 'UserId' in params ? params.UserId : null;
}
}
/**
* Status information of the role synchronization task.
* @class
*/
class RoleProvisioningsTask extends AbstractModel {
constructor(){
super();
/**
* Task ID.
* @type {string || null}
*/
this.TaskId = null;
/**
* Permission configuration ID.
* @type {string || null}
*/
this.RoleConfigurationId = null;
/**
* Permission configuration name.
* @type {string || null}
*/
this.RoleConfigurationName = null;
/**
* UIN of the authorized target account of the Tencent Cloud Organization.
* @type {number || null}
*/
this.TargetUin = null;
/**
* Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
* @type {string || null}
*/
this.TargetType = null;
/**
* Task type.
* @type {string || null}
*/
this.TaskType = null;
/**
* Task status. InProgress: The task is in progress; Failed: The task failed; Success: The task succeeded.
* @type {string || null}
*/
this.TaskStatus = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.RoleConfigurationId = 'RoleConfigurationId' in params ? params.RoleConfigurationId : null;
this.RoleConfigurationName = 'RoleConfigurationName' in params ? params.RoleConfigurationName : null;
this.TargetUin = 'TargetUin' in params ? params.TargetUin : null;
this.TargetType = 'TargetType' in params ? params.TargetType : null;
this.TaskType = 'TaskType' in params ? params.TaskType : null;
this.TaskStatus = 'TaskStatus' in params ? params.TaskStatus : null;
}
}
/**
* ProvisionRoleConfiguration request structure.
* @class
*/
class ProvisionRoleConfigurationRequest extends AbstractModel {
constructor(){
super();
/**
* Space ID.
* @type {string || null}
*/
this.ZoneId = null;
/**
* Permission configuration ID.
* @type {string || null}
*/
this.RoleConfigurationId = null;
/**
* Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
* @type {string || null}
*/
this.TargetType = null;
/**
* UIN of the target account of the Tencent Cloud Organization.
* @type {number || null}
*/
this.TargetUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.RoleConfigurationId = 'RoleConfigurationId' in params ? params.RoleConfigurationId : null;
this.TargetType = 'TargetType' in params ? params.TargetType : null;
this.TargetUin = 'TargetUin' in params ? params.TargetUin : null;
}
}
/**
* ListNonCompliantResource response structure.
* @class
*/
class ListNonCompliantResourceResponse extends AbstractModel {
constructor(){
super();
/**
* Resource and tag compliance information.
* @type {Array.<ResourceTagMapping> || null}
*/
this.Items = null;
/**
* Token value obtained for the next page.
* @type {string || null}
*/
this.PaginationToken = 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.Items) {
this.Items = new Array();
for (let z in params.Items) {
let obj = new ResourceTagMapping();
obj.deserialize(params.Items[z]);
this.Items.push(obj);
}
}
this.PaginationToken = 'PaginationToken' in params ? params.PaginationToken : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteUser response structure.
* @class
*/
class DeleteUserResponse 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;
}
}
/**
* UpdateZone response structure.
* @class
*/
class UpdateZoneResponse 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;
}
}
/**
* DeleteOrganization request structure.
* @class
*/
class DeleteOrganizationRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* Tag compliance information.
* @class
*/
class TagComplianceDetails extends AbstractModel {
constructor(){
super();
/**
* Compliance status. true: compliant; false: non-compliant.
* @type {boolean || null}
*/
this.ComplianceStatus = null;
/**
* List of tag keys with invalid values.
* @type {Array.<string> || null}
*/
this.KeysWithNonCompliantValues = null;
/**
* List of invalid tag keys.
* @type {Array.<string> || null}
*/
this.NonCompliantKeys = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ComplianceStatus = 'ComplianceStatus' in params ? params.ComplianceStatus : null;
this.KeysWithNonCompliantValues = 'KeysWithNonCompliantValues' in params ? params.KeysWithNonCompliantValues : null;
this.NonCompliantKeys = 'NonCompliantKeys' in params ? params.NonCompliantKeys : null;
}
}
/**
* RejectJoinShareUnitInvitation request structure.
* @class
*/
class RejectJoinShareUnitInvitationRequest extends AbstractModel {
constructor(){
super();
/**
* Shared unit ID.
* @type {string || null}
*/
this.UnitId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.UnitId = 'UnitId' in params ? params.UnitId : null;
}
}
/**
* DescribeIdentityCenter response structure.
* @class
*/
class DescribeIdentityCenterResponse extends AbstractModel {
constructor(){
super();
/**
* Space ID, which starts with the z- prefix, followed by 12 random digits/lowercase letters.
* @type {string || null}
*/
this.ZoneId = null;
/**
* Space name, which must be globally unique and contain 2-64 characters including lowercase letters, digits, and hyphens (-). It can neither start or end with a hyphen (-) nor contain two consecutive hyphens (-).
* @type {string || null}
*/
this.ZoneName = null;
/**
* Service activation status. Disabled: not activated; Enabled: activated.
* @type {string || null}
*/
this.ServiceStatus = null;
/**
* SCIM synchronization status. Enabled: enabled. Disabled: disabled.
* @type {string || null}
*/
this.ScimSyncStatus = null;
/**
* Creation time
* @type {string || null}
*/
this.CreateTime = null;
/**
* Update date
* @type {string || null}
*/
this.UpdateTime = 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.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
this.ServiceStatus = 'ServiceStatus' in params ? params.ServiceStatus : null;
this.ScimSyncStatus = 'ScimSyncStatus' in params ? params.ScimSyncStatus : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribePolicyConfig response structure.
* @class
*/
class DescribePolicyConfigResponse extends AbstractModel {
constructor(){
super();
/**
* Status. Valid values: 0 (not enabled) and 1 (enabled).
* @type {number || null}
*/
this.Status = null;
/**
* Policy type. Valid values: SERVICE_CONTROL_POLICY (service control policy) and TAG_POLICY (Tag policy).
* @type {string || null}
*/
this.Type = 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.Status = 'Status' in params ? params.Status : null;
this.Type = 'Type' in params ? params.Type : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* GetZoneStatistics response structure.
* @class
*/
class GetZoneStatisticsResponse extends AbstractModel {
constructor(){
super();
/**
* Space statistics.
* @type {ZoneStatistics || null}
*/
this.ZoneStatistics = 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.ZoneStatistics) {
let obj = new ZoneStatistics();
obj.deserialize(params.ZoneStatistics)
this.ZoneStatistics = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* GetExternalSAMLIdentityProvider response structure.
* @class
*/
class GetExternalSAMLIdentityProviderResponse extends AbstractModel {
constructor(){
super();
/**
* SAML identity provider configuration information.
* @type {SAMLIdentityProviderConfiguration || null}
*/
this.SAMLIdentityProviderConfiguration = 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.SAMLIdentityProviderConfiguration) {
let obj = new SAMLIdentityProviderConfiguration();
obj.deserialize(params.SAMLIdentityProviderConfiguration)
this.SAMLIdentityProviderConfiguration = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ListOrganizationIdentity request structure.
* @class
*/
class ListOrganizationIdentityRequest extends AbstractModel {
constructor(){
super();
/**
* Offset. It must be an integer multiple of the value of `Limit`. Default value: `0`.
* @type {number || null}
*/
this.Offset = null;
/**
* The limit for the number of query results. Value range: 1-50. Default value: `10`.
* @type {number || null}
*/
this.Limit = null;
/**
* Search by name.
* @type {string || null}
*/
this.SearchKey = null;
/**
* Identity ID, which can be searched by identity ID.
* @type {number || null}
*/
this.IdentityId = null;
/**
* Identity type. Valid values: `1` (Preset), `2` (Custom).
* @type {number || null}
*/
this.IdentityType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.SearchKey = 'SearchKey' in params ? params.SearchKey : null;
this.IdentityId = 'IdentityId' in params ? params.IdentityId : null;
this.IdentityType = 'IdentityType' in params ? params.IdentityType : null;
}
}
/**
* DeleteOrganizationMembers request structure.
* @class
*/
class DeleteOrganizationMembersRequest extends AbstractModel {
constructor(){
super();
/**
* Uin list of the deleted members.
* @type {Array.<number> || null}
*/
this.MemberUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberUin = 'MemberUin' in params ? params.MemberUin : null;
}
}
/**
* CreateOrganization response structure.
* @class
*/
class CreateOrganizationResponse extends AbstractModel {
constructor(){
super();
/**
* Organization ID.
* @type {number || null}
*/
this.OrgId = null;
/**
* Creator's nickname.
* @type {string || null}
*/
this.NickName = 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.OrgId = 'OrgId' in params ? params.OrgId : null;
this.NickName = 'NickName' in params ? params.NickName : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* AddShareUnitResources response structure.
* @class
*/
class AddShareUnitResourcesResponse 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;
}
}
/**
* Organization identity policy
* @class
*/
class IdentityPolicy extends AbstractModel {
constructor(){
super();
/**
* CAM preset policy ID, which is valid and required when PolicyType is a preset policy.
* @type {number || null}
*/
this.PolicyId = null;
/**
* CAM preset policy name, which is valid and required when PolicyType is a preset policy.
* @type {string || null}
*/
this.PolicyName = null;
/**
* Policy type. Valid values: 1: custom policy; 2: preset policy. The default value is 2.
* @type {number || null}
*/
this.PolicyType = null;
/**
* Custom policy content, which follows the CAM policy syntax. It is valid and mandatory when PolicyType is a custom policy.
* @type {string || null}
*/
this.PolicyDocument = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
this.PolicyName = 'PolicyName' in params ? params.PolicyName : null;
this.PolicyType = 'PolicyType' in params ? params.PolicyType : null;
this.PolicyDocument = 'PolicyDocument' in params ? params.PolicyDocument : null;
}
}
/**
* AddOrganizationNode response structure.
* @class
*/
class AddOrganizationNodeResponse extends AbstractModel {
constructor(){
super();
/**
* Node ID.
* @type {number || null}
*/
this.NodeId = 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.NodeId = 'NodeId' in params ? params.NodeId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* UpdateSCIMSynchronizationStatus response structure.
* @class
*/
class UpdateSCIMSynchronizationStatusResponse 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;
}
}
/**
* ListPermissionPoliciesInRoleConfiguration response structure.
* @class
*/
class ListPermissionPoliciesInRoleConfigurationResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of permission policies.
* @type {number || null}
*/
this.TotalCounts = null;
/**
* Permission policy list.
* @type {Array.<RolePolicie> || null}
*/
this.RolePolicies = 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.TotalCounts = 'TotalCounts' in params ? params.TotalCounts : null;
if (params.RolePolicies) {
this.RolePolicies = new Array();
for (let z in params.RolePolicies) {
let obj = new RolePolicie();
obj.deserialize(params.RolePolicies[z]);
this.RolePolicies.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* MoveOrganizationNodeMembers response structure.
* @class
*/
class MoveOrganizationNodeMembersResponse 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;
}
}
/**
* AttachPolicy request structure.
* @class
*/
class AttachPolicyRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Bind policy target ID. member Uin or department ID</p>.
* @type {number || null}
*/
this.TargetId = null;
/**
* <p>Target type. valid values: NODE-department, MEMBER-MEMBER</p>.
* @type {string || null}
*/
this.TargetType = null;
/**
* <p>Policy Id. you can call the <a href="https://www.tencentcloud.com/document/product/850/105311?from_cn_redirect=1">ListPolicies</a> api to obtain it.</p>.
* @type {number || null}
*/
this.PolicyId = null;
/**
* <p>POLICY type. default value: SERVICE_CONTROL_POLICY. valid values: SERVICE_CONTROL_POLICY (SERVICE CONTROL POLICY) and TAG_POLICY (TAG POLICY).</p>.
* @type {string || null}
*/
this.Type = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TargetId = 'TargetId' in params ? params.TargetId : null;
this.TargetType = 'TargetType' in params ? params.TargetType : null;
this.PolicyId = 'PolicyId' in params ? params.PolicyId : null;
this.Type = 'Type' in params ? params.Type : null;
}
}
/**
* DeleteShareUnit response structure.
* @class
*/
class DeleteShareUnitResponse extends AbstractModel {
constructor(){
su