tencentcloud-sdk-nodejs-intl-en
Version:
1,900 lines (1,612 loc) • 256 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");
/**
* Page screenshot information
* @class
*/
class PageScreenVO extends AbstractModel {
constructor(){
super();
/**
* Screenshot Base64 or URL.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Content = null;
/**
* Component ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WidgetId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Content = 'Content' in params ? params.Content : null;
this.WidgetId = 'WidgetId' in params ? params.WidgetId : null;
}
}
/**
* DeleteProject request structure.
* @class
*/
class DeleteProjectRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {number || null}
*/
this.Id = null;
/**
* Random number.
* @type {string || null}
*/
this.Seed = null;
/**
* Default dashboard.
Value range:.
1: project dashboard.
2: my dashboard.
* @type {number || null}
*/
this.DefaultPanelType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Seed = 'Seed' in params ? params.Seed : null;
this.DefaultPanelType = 'DefaultPanelType' in params ? params.DefaultPanelType : null;
}
}
/**
* ExportScreenPage response structure.
* @class
*/
class ExportScreenPageResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Extension parameter.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Returned data results.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {PageScreenListVO || null}
*/
this.Data = null;
/**
* Response message.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Extra = 'Extra' in params ? params.Extra : null;
if (params.Data) {
let obj = new PageScreenListVO();
obj.deserialize(params.Data)
this.Data = obj;
}
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Customized query
* @class
*/
class ProjectConfigResult extends AbstractModel {
constructor(){
super();
/**
* Configuration name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ModuleId = null;
/**
* Configuration mode.
Valid values:.
- usable.
- visible.
- disabled: unavailable.
- hidden: hide.
Default value: disabled.
Example value: disabled.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.IncludeType = null;
/**
* Additional parameters.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Params = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ModuleId = 'ModuleId' in params ? params.ModuleId : null;
this.IncludeType = 'IncludeType' in params ? params.IncludeType : null;
this.Params = 'Params' in params ? params.Params : null;
}
}
/**
* DeleteUserRole response structure.
* @class
*/
class DeleteUserRoleResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Expansion.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Data.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Data = null;
/**
* Message.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Extra = 'Extra' in params ? params.Extra : null;
this.Data = 'Data' in params ? params.Data : null;
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeUserProjectList request structure.
* @class
*/
class DescribeUserProjectListRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {number || null}
*/
this.ProjectId = null;
/**
* None.
* @type {boolean || null}
*/
this.AllPage = null;
/**
* None.
* @type {number || null}
*/
this.PageNo = null;
/**
* None.
* @type {number || null}
*/
this.PageSize = null;
/**
* Whether to filter out enterprise administrators.
* @type {boolean || null}
*/
this.IsFilterPerAuthUser = null;
/**
* Whether to filter out the current user.
* @type {boolean || null}
*/
this.IsFilterCurrentUser = null;
/**
* Keyword.
* @type {string || null}
*/
this.Keyword = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.AllPage = 'AllPage' in params ? params.AllPage : null;
this.PageNo = 'PageNo' in params ? params.PageNo : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.IsFilterPerAuthUser = 'IsFilterPerAuthUser' in params ? params.IsFilterPerAuthUser : null;
this.IsFilterCurrentUser = 'IsFilterCurrentUser' in params ? params.IsFilterCurrentUser : null;
this.Keyword = 'Keyword' in params ? params.Keyword : null;
}
}
/**
* ModifyResourceUser request structure.
* @class
*/
class ModifyResourceUserRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {number || null}
*/
this.ProjectId = null;
/**
* User ID
* @type {string || null}
*/
this.UserId = null;
/**
* resource
* @type {UserResourceDTO || null}
*/
this.Resource = null;
/**
* Entity class
* @type {Array.<number> || null}
*/
this.EntityIds = null;
/**
* Resource type.
* @type {string || null}
*/
this.ResourceType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.UserId = 'UserId' in params ? params.UserId : null;
if (params.Resource) {
let obj = new UserResourceDTO();
obj.deserialize(params.Resource)
this.Resource = obj;
}
this.EntityIds = 'EntityIds' in params ? params.EntityIds : null;
this.ResourceType = 'ResourceType' in params ? params.ResourceType : null;
}
}
/**
* Enterprise user list
* @class
*/
class CorpUserListData extends AbstractModel {
constructor(){
super();
/**
* List.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<UserIdAndUserName> || null}
*/
this.List = null;
/**
* Total number.
* @type {number || null}
*/
this.Total = null;
/**
* Number of pages.
* @type {number || null}
*/
this.TotalPages = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.List) {
this.List = new Array();
for (let z in params.List) {
let obj = new UserIdAndUserName();
obj.deserialize(params.List[z]);
this.List.push(obj);
}
}
this.Total = 'Total' in params ? params.Total : null;
this.TotalPages = 'TotalPages' in params ? params.TotalPages : null;
}
}
/**
* Row/column permission configuration
* @class
*/
class RowColumnConfig extends AbstractModel {
constructor(){
super();
/**
* Row column permission rule
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RulerInfo = null;
/**
* Tag value list
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<RowColumnTagValue> || null}
*/
this.TagValueList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RulerInfo = 'RulerInfo' in params ? params.RulerInfo : null;
if (params.TagValueList) {
this.TagValueList = new Array();
for (let z in params.TagValueList) {
let obj = new RowColumnTagValue();
obj.deserialize(params.TagValueList[z]);
this.TagValueList.push(obj);
}
}
}
}
/**
* Join tables and view association information between original tables
* @class
*/
class JoinRelation extends AbstractModel {
constructor(){
super();
/**
* Association relationship id, used by the frontend
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.JoinId = null;
/**
* Original table node id
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SourceTableNodeId = null;
/**
* Target table node id
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TargetTableNodeId = null;
/**
* Association type of multi-table join
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.JoinType = null;
/**
* Field list for joined tables
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<JoinRelationField> || null}
*/
this.Fields = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.JoinId = 'JoinId' in params ? params.JoinId : null;
this.SourceTableNodeId = 'SourceTableNodeId' in params ? params.SourceTableNodeId : null;
this.TargetTableNodeId = 'TargetTableNodeId' in params ? params.TargetTableNodeId : null;
this.JoinType = 'JoinType' in params ? params.JoinType : null;
if (params.Fields) {
this.Fields = new Array();
for (let z in params.Fields) {
let obj = new JoinRelationField();
obj.deserialize(params.Fields[z]);
this.Fields.push(obj);
}
}
}
}
/**
* Screenshot list
* @class
*/
class PageScreenListVO extends AbstractModel {
constructor(){
super();
/**
* Image export type. Valid values: Base64, and URL.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PicType = null;
/**
* Image list.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<PageScreenVO> || null}
*/
this.List = null;
/**
* Async transaction ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TranId = null;
/**
* Transaction status.
1: processing; 2: processing successful; 3: processing failed (error content in outer Msg).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TranStatus = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.PicType = 'PicType' in params ? params.PicType : null;
if (params.List) {
this.List = new Array();
for (let z in params.List) {
let obj = new PageScreenVO();
obj.deserialize(params.List[z]);
this.List.push(obj);
}
}
this.TranId = 'TranId' in params ? params.TranId : null;
this.TranStatus = 'TranStatus' in params ? params.TranStatus : null;
}
}
/**
* DescribeSourceFieldList response structure.
* @class
*/
class DescribeSourceFieldListResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Additional Information
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Information.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = null;
/**
* List of fields in the table
* @type {TableColumnListData || null}
*/
this.Data = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Extra = 'Extra' in params ? params.Extra : null;
this.Msg = 'Msg' in params ? params.Msg : null;
if (params.Data) {
let obj = new TableColumnListData();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* User resource input parameter
* @class
*/
class UserResourceDTO extends AbstractModel {
constructor(){
super();
/**
* Enterprise ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CorpId = null;
/**
* User ID
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserId = null;
/**
* Username.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserName = null;
/**
* Resource list
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<ResourceItem> || null}
*/
this.ResourceList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CorpId = 'CorpId' in params ? params.CorpId : null;
this.UserId = 'UserId' in params ? params.UserId : null;
this.UserName = 'UserName' in params ? params.UserName : null;
if (params.ResourceList) {
this.ResourceList = new Array();
for (let z in params.ResourceList) {
let obj = new ResourceItem();
obj.deserialize(params.ResourceList[z]);
this.ResourceList.push(obj);
}
}
}
}
/**
* ModifyDatasourceCloud response structure.
* @class
*/
class ModifyDatasourceCloudResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* None.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Data = null;
/**
* Additional information.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Prompt.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Data = 'Data' in params ? params.Data : null;
this.Extra = 'Extra' in params ? params.Extra : null;
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* 1
* @class
*/
class ParamCreateDTO extends AbstractModel {
constructor(){
super();
/**
* Parameter name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ParamName = null;
/**
* Default value
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DefaultValue = null;
/**
* Parameter type, string/datetime/number
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ParamType = null;
/**
* Format type, yyyy-MM-dd HH:mm:ss.SSS (only time required)
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FormatRule = null;
/**
* Complex type, another format expression, such as YYYY-MM
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ComplexType = null;
/**
* Application scope
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Scope = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ParamName = 'ParamName' in params ? params.ParamName : null;
this.DefaultValue = 'DefaultValue' in params ? params.DefaultValue : null;
this.ParamType = 'ParamType' in params ? params.ParamType : null;
this.FormatRule = 'FormatRule' in params ? params.FormatRule : null;
this.ComplexType = 'ComplexType' in params ? params.ComplexType : null;
this.Scope = 'Scope' in params ? params.Scope : null;
}
}
/**
* EditCorpTag response structure.
* @class
*/
class EditCorpTagResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Expansion.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Message.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = null;
/**
* Data.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {EditTagVO || null}
*/
this.Data = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Extra = 'Extra' in params ? params.Extra : null;
this.Msg = 'Msg' in params ? params.Msg : null;
if (params.Data) {
let obj = new EditTagVO();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateUserRole response structure.
* @class
*/
class CreateUserRoleResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Expansion.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Data.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {DataId || null}
*/
this.Data = null;
/**
* Message.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Extra = 'Extra' in params ? params.Extra : null;
if (params.Data) {
let obj = new DataId();
obj.deserialize(params.Data)
this.Data = obj;
}
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Token deferral request
* @class
*/
class ApplyEmbedTokenInfo extends AbstractModel {
constructor(){
super();
/**
* Request result.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.Result = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Result = 'Result' in params ? params.Result : null;
}
}
/**
* Project description
* @class
*/
class Project extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {number || null}
*/
this.Id = null;
/**
* Project logo.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Logo = null;
/**
* Project name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Name = null;
/**
* Background color of the logo.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ColorCode = null;
/**
* Creator.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreatedUser = null;
/**
* Creation time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreatedAt = null;
/**
* Number of members.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MemberCount = null;
/**
* Number of pages.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.PageCount = null;
/**
* Last modified report and dashboard names.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LastModifyName = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Source = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.Apply = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UpdatedUser = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UpdatedAt = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CorpId = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Mark = null;
/**
* ""
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Seed = null;
/**
* Permission list in the project.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.AuthList = null;
/**
* Default dashboard.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PanelScope = null;
/**
* Whether it is managed.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.IsExternalManage = null;
/**
* Management platform name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ManagePlatform = null;
/**
* Customization parameter.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<ProjectConfigList> || null}
*/
this.ConfigList = null;
/**
* Creator.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreatedUserName = null;
/**
* Associated person ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Owner = null;
/**
* Associated person.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OwnerName = null;
/**
* Number of dashboard pages.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.NormalCount = null;
/**
* Number of free canvas pages.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.FreeCount = null;
/**
* Number of ad-hoc analysis pages.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.AdhocCount = null;
/**
* Number of pages in the briefing
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.BriefingCount = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Logo = 'Logo' in params ? params.Logo : null;
this.Name = 'Name' in params ? params.Name : null;
this.ColorCode = 'ColorCode' in params ? params.ColorCode : null;
this.CreatedUser = 'CreatedUser' in params ? params.CreatedUser : null;
this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
this.MemberCount = 'MemberCount' in params ? params.MemberCount : null;
this.PageCount = 'PageCount' in params ? params.PageCount : null;
this.LastModifyName = 'LastModifyName' in params ? params.LastModifyName : null;
this.Source = 'Source' in params ? params.Source : null;
this.Apply = 'Apply' in params ? params.Apply : null;
this.UpdatedUser = 'UpdatedUser' in params ? params.UpdatedUser : null;
this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
this.CorpId = 'CorpId' in params ? params.CorpId : null;
this.Mark = 'Mark' in params ? params.Mark : null;
this.Seed = 'Seed' in params ? params.Seed : null;
this.AuthList = 'AuthList' in params ? params.AuthList : null;
this.PanelScope = 'PanelScope' in params ? params.PanelScope : null;
this.IsExternalManage = 'IsExternalManage' in params ? params.IsExternalManage : null;
this.ManagePlatform = 'ManagePlatform' in params ? params.ManagePlatform : null;
if (params.ConfigList) {
this.ConfigList = new Array();
for (let z in params.ConfigList) {
let obj = new ProjectConfigList();
obj.deserialize(params.ConfigList[z]);
this.ConfigList.push(obj);
}
}
this.CreatedUserName = 'CreatedUserName' in params ? params.CreatedUserName : null;
this.Owner = 'Owner' in params ? params.Owner : null;
this.OwnerName = 'OwnerName' in params ? params.OwnerName : null;
this.NormalCount = 'NormalCount' in params ? params.NormalCount : null;
this.FreeCount = 'FreeCount' in params ? params.FreeCount : null;
this.AdhocCount = 'AdhocCount' in params ? params.AdhocCount : null;
this.BriefingCount = 'BriefingCount' in params ? params.BriefingCount : null;
}
}
/**
* ExportScreenPage request structure.
* @class
*/
class ExportScreenPageRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Page ID.
* @type {string || null}
*/
this.PageId = null;
/**
* Canvas type. Grid canvas: GRID; Free canvas: FREE.
* @type {string || null}
*/
this.CanvasType = null;
/**
* Image export type. Valid values: Base64, and URL (valid period: 1 day).
* @type {string || null}
*/
this.PicType = null;
/**
* Component IDs. When empty, export the entire page.
* @type {Array.<string> || null}
*/
this.WidgetIds = null;
/**
* Whether it is an async request.
* @type {boolean || null}
*/
this.AsyncRequest = null;
/**
* Transaction ID.
* @type {string || null}
*/
this.TranId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.PageId = 'PageId' in params ? params.PageId : null;
this.CanvasType = 'CanvasType' in params ? params.CanvasType : null;
this.PicType = 'PicType' in params ? params.PicType : null;
this.WidgetIds = 'WidgetIds' in params ? params.WidgetIds : null;
this.AsyncRequest = 'AsyncRequest' in params ? params.AsyncRequest : null;
this.TranId = 'TranId' in params ? params.TranId : null;
}
}
/**
* Join tables and view original table information
* @class
*/
class JoinSourceTable extends AbstractModel {
constructor(){
super();
/**
* 1: Data source original table, 2: Local table, 3: Excel table, 4: API table
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TableNodeType = null;
/**
* Base Table Node Id
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TableNodeId = null;
/**
* Parent node ID
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ParentId = null;
/**
* Optional, the data source has no ID in the original table.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TableId = null;
/**
* Required. Use the original table name for the data source. Use the logical table name for other types.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TableName = null;
/**
* Field list to display in the base table
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<TableField> || null}
*/
this.Fields = null;
/**
* Data source ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.DatasourceId = null;
/**
* Optional, alias of the data source displayed on the front-end, excel table creation is required
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TableAlias = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TableNodeType = 'TableNodeType' in params ? params.TableNodeType : null;
this.TableNodeId = 'TableNodeId' in params ? params.TableNodeId : null;
this.ParentId = 'ParentId' in params ? params.ParentId : null;
this.TableId = 'TableId' in params ? params.TableId : null;
this.TableName = 'TableName' in params ? params.TableName : null;
if (params.Fields) {
this.Fields = new Array();
for (let z in params.Fields) {
let obj = new TableField();
obj.deserialize(params.Fields[z]);
this.Fields.push(obj);
}
}
this.DatasourceId = 'DatasourceId' in params ? params.DatasourceId : null;
this.TableAlias = 'TableAlias' in params ? params.TableAlias : null;
}
}
/**
* ModifyUserTag request structure.
* @class
*/
class ModifyUserTagRequest extends AbstractModel {
constructor(){
super();
/**
* User ID.
* @type {string || null}
*/
this.UserId = null;
/**
* Tag information.
* @type {Array.<UserTagInfo> || null}
*/
this.TagList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.UserId = 'UserId' in params ? params.UserId : null;
if (params.TagList) {
this.TagList = new Array();
for (let z in params.TagList) {
let obj = new UserTagInfo();
obj.deserialize(params.TagList[z]);
this.TagList.push(obj);
}
}
}
}
/**
* Create tag output parameters
* @class
*/
class CreateTagTableVO extends AbstractModel {
constructor(){
super();
/**
* Tag table id
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Id = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
}
}
/**
* CreateUserRoleProject request structure.
* @class
*/
class CreateUserRoleProjectRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {number || null}
*/
this.ProjectId = null;
/**
* Role ID list.
* @type {Array.<number> || null}
*/
this.RoleIdList = null;
/**
* User list (deprecated).
* @type {Array.<UserIdAndUserName> || null}
*/
this.UserList = null;
/**
* User list (new).
* @type {Array.<UserInfo> || null}
*/
this.UserInfoList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.RoleIdList = 'RoleIdList' in params ? params.RoleIdList : null;
if (params.UserList) {
this.UserList = new Array();
for (let z in params.UserList) {
let obj = new UserIdAndUserName();
obj.deserialize(params.UserList[z]);
this.UserList.push(obj);
}
}
if (params.UserInfoList) {
this.UserInfoList = new Array();
for (let z in params.UserInfoList) {
let obj = new UserInfo();
obj.deserialize(params.UserInfoList[z]);
this.UserInfoList.push(obj);
}
}
}
}
/**
* Component information
* @class
*/
class WidgetVO extends AbstractModel {
constructor(){
super();
/**
* Component ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WidgetId = null;
/**
* Component name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WidgetName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.WidgetId = 'WidgetId' in params ? params.WidgetId : null;
this.WidgetName = 'WidgetName' in params ? params.WidgetName : null;
}
}
/**
* CreateDatasource response structure.
* @class
*/
class CreateDatasourceResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Data source ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {IdDTO || null}
*/
this.Data = null;
/**
* Additional information.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
/**
* Prompt.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Msg = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
if (params.Data) {
let obj = new IdDTO();
obj.deserialize(params.Data)
this.Data = obj;
}
this.Extra = 'Extra' in params ? params.Extra : null;
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Data list of all column names in the table
* @class
*/
class TableColumnListData extends AbstractModel {
constructor(){
super();
/**
* Column list in the table
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<TableColumn> || null}
*/
this.List = null;
/**
* async transaction id
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TranId = null;
/**
* Async transaction status
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TranStatus = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.List) {
this.List = new Array();
for (let z in params.List) {
let obj = new TableColumn();
obj.deserialize(params.List[z]);
this.List.push(obj);
}
}
this.TranId = 'TranId' in params ? params.TranId : null;
this.TranStatus = 'TranStatus' in params ? params.TranStatus : null;
}
}
/**
* DeleteDatasource response structure.
* @class
*/
class DeleteDatasourceResponse extends AbstractModel {
constructor(){
super();
/**
* Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ErrorInfo || null}
*/
this.ErrorInfo = null;
/**
* Data.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Data = null;
/**
* Expansion.
* @type {string || null}
*/
this.Extra = null;
/**
* Information.
* @type {string || null}
*/
this.Msg = 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.ErrorInfo) {
let obj = new ErrorInfo();
obj.deserialize(params.ErrorInfo)
this.ErrorInfo = obj;
}
this.Data = 'Data' in params ? params.Data : null;
this.Extra = 'Extra' in params ? params.Extra : null;
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateProject request structure.
* @class
*/
class CreateProjectRequest extends AbstractModel {
constructor(){
super();
/**
* Project name.
* @type {string || null}
*/
this.Name = null;
/**
* Background color of the logo.
* @type {string || null}
*/
this.ColorCode = null;
/**
* Project logo.
* @type {string || null}
*/
this.Logo = null;
/**
* Remarks.
* @type {string || null}
*/
this.Mark = null;
/**
* Whether to allow user requests.
* @type {boolean || null}
*/
this.IsApply = null;
/**
* Default dashboard.
Value range:.
1: project dashboard.
2: my dashboard.