tencentcloud-sdk-nodejs-intl-en
Version:
1,954 lines (1,639 loc) • 344 kB
JavaScript
/*
* 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");
/**
* UpdateDatabase request structure.
* @class
*/
class UpdateDatabaseRequest extends AbstractModel {
constructor(){
super();
/**
* The database name to be modified
* @type {string || null}
*/
this.DbName = null;
/**
* Modify the operation type, such as SET_QUOTA, RENAME, SET_REPLICA_QUOTA, and SET_PROPERTIES. Modify the operation type, such as SET_QUOTA, RENAME, SET_REPLICA_QUOTA, and SET_PROPERTIES.
* @type {string || null}
*/
this.Operation = null;
/**
* InstanceId
* @type {string || null}
*/
this.InstanceId = null;
/**
* Quota value, which is used to set the quota of data volume or replicas.
* @type {string || null}
*/
this.Quota = null;
/**
* New database name, used for renaming operation.
* @type {string || null}
*/
this.NewDbName = null;
/**
* Attribute key-value pair to be set
* @type {Array.<PropertiesMap> || null}
*/
this.Properties = null;
/**
* Use the user who has corresponding permissions for operations. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.UserName = null;
/**
* Password corresponding to the user. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.PassWord = null;
/**
* The name of the catalog, if left unspecified, defaults to "internal".
* @type {string || null}
*/
this.CatalogName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DbName = 'DbName' in params ? params.DbName : null;
this.Operation = 'Operation' in params ? params.Operation : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Quota = 'Quota' in params ? params.Quota : null;
this.NewDbName = 'NewDbName' in params ? params.NewDbName : null;
if (params.Properties) {
this.Properties = new Array();
for (let z in params.Properties) {
let obj = new PropertiesMap();
obj.deserialize(params.Properties[z]);
this.Properties.push(obj);
}
}
this.UserName = 'UserName' in params ? params.UserName : null;
this.PassWord = 'PassWord' in params ? params.PassWord : null;
this.CatalogName = 'CatalogName' in params ? params.CatalogName : null;
}
}
/**
* DescribeInstanceUsedSubnets response structure.
* @class
*/
class DescribeInstanceUsedSubnetsResponse extends AbstractModel {
constructor(){
super();
/**
* VPC information used by the cluster
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.VpcId = null;
/**
* Subnet information used by the cluster
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.UsedSubnets = 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.VpcId = 'VpcId' in params ? params.VpcId : null;
this.UsedSubnets = 'UsedSubnets' in params ? params.UsedSubnets : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeInstanceNodes response structure.
* @class
*/
class DescribeInstanceNodesResponse extends AbstractModel {
constructor(){
super();
/**
* Total number
* @type {number || null}
*/
this.TotalCount = null;
/**
* Total number of instance nodes
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<InstanceNode> || null}
*/
this.InstanceNodesList = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.InstanceNodesList) {
this.InstanceNodesList = new Array();
for (let z in params.InstanceNodesList) {
let obj = new InstanceNode();
obj.deserialize(params.InstanceNodesList[z]);
this.InstanceNodesList.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeClusterConfigsHistory response structure.
* @class
*/
class DescribeClusterConfigsHistoryResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of instances
* @type {number || null}
*/
this.TotalCount = null;
/**
* Modification history of the configuration file
* @type {Array.<ClusterConfigsHistory> || null}
*/
this.ClusterConfHistory = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.ClusterConfHistory) {
this.ClusterConfHistory = new Array();
for (let z in params.ClusterConfHistory) {
let obj = new ClusterConfigsHistory();
obj.deserialize(params.ClusterConfHistory[z]);
this.ClusterConfHistory.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeInstanceOperations request structure.
* @class
*/
class DescribeInstanceOperationsRequest extends AbstractModel {
constructor(){
super();
/**
*
* @type {string || null}
*/
this.InstanceId = null;
/**
*
* @type {number || null}
*/
this.Offset = null;
/**
*
* @type {number || null}
*/
this.Limit = null;
/**
*
* @type {string || null}
*/
this.StartTime = null;
/**
*
* @type {string || null}
*/
this.EndTime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
}
}
/**
* DescribeClusterConfigs response structure.
* @class
*/
class DescribeClusterConfigsResponse extends AbstractModel {
constructor(){
super();
/**
* Return information about the instance's configuration file.
* @type {Array.<ClusterConfigsInfoFromEMR> || null}
*/
this.ClusterConfList = null;
/**
* Return the current kernel version. If it does not exist, a null character string is returned.
* @type {string || null}
*/
this.BuildVersion = 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.ClusterConfList) {
this.ClusterConfList = new Array();
for (let z in params.ClusterConfList) {
let obj = new ClusterConfigsInfoFromEMR();
obj.deserialize(params.ClusterConfList[z]);
this.ClusterConfList.push(obj);
}
}
this.BuildVersion = 'BuildVersion' in params ? params.BuildVersion : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ScaleOutInstance response structure.
* @class
*/
class ScaleOutInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* Process ID
* @type {string || null}
*/
this.FlowId = null;
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Error message
* @type {string || null}
*/
this.ErrorMsg = 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.FlowId = 'FlowId' in params ? params.FlowId : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyNodeStatus response structure.
* @class
*/
class ModifyNodeStatusResponse extends AbstractModel {
constructor(){
super();
/**
* Process related information
* @type {number || null}
*/
this.FlowId = null;
/**
* Error message
* @type {string || null}
*/
this.ErrorMsg = 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.FlowId = 'FlowId' in params ? params.FlowId : null;
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyUserPrivilegesV3 response structure.
* @class
*/
class ModifyUserPrivilegesV3Response extends AbstractModel {
constructor(){
super();
/**
* Error message; null means no error.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ErrorMsg = null;
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = 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.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* UpdateTableSchema response structure.
* @class
*/
class UpdateTableSchemaResponse extends AbstractModel {
constructor(){
super();
/**
* Error message
* @type {string || null}
*/
this.Message = null;
/**
* Is it successful
* @type {boolean || null}
*/
this.Success = 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.Message = 'Message' in params ? params.Message : null;
this.Success = 'Success' in params ? params.Success : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyUserPrivilegesV3 request structure.
* @class
*/
class ModifyUserPrivilegesV3Request extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Username
* @type {string || null}
*/
this.UserName = null;
/**
* User permission
* @type {UpdateUserPrivileges || null}
*/
this.UserPrivileges = null;
/**
* The IP address of the user link
* @type {string || null}
*/
this.WhiteHost = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.UserName = 'UserName' in params ? params.UserName : null;
if (params.UserPrivileges) {
let obj = new UpdateUserPrivileges();
obj.deserialize(params.UserPrivileges)
this.UserPrivileges = obj;
}
this.WhiteHost = 'WhiteHost' in params ? params.WhiteHost : null;
}
}
/**
* DestroyInstance request structure.
* @class
*/
class DestroyInstanceRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* User information bound to the resource group requires username and host information for authorization.
* @class
*/
class BindUser extends AbstractModel {
constructor(){
super();
/**
* Username
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserName = null;
/**
* Host information
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Host = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.UserName = 'UserName' in params ? params.UserName : null;
this.Host = 'Host' in params ? params.Host : null;
}
}
/**
* CancelBackupJob request structure.
* @class
*/
class CancelBackupJobRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Backup instance ID to be canceled
* @type {number || null}
*/
this.BackUpJobId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.BackUpJobId = 'BackUpJobId' in params ? params.BackUpJobId : null;
}
}
/**
* ModifyWorkloadGroup request structure.
* @class
*/
class ModifyWorkloadGroupRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Modified resource group information
* @type {WorkloadGroupConfig || null}
*/
this.WorkloadGroup = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
if (params.WorkloadGroup) {
let obj = new WorkloadGroupConfig();
obj.deserialize(params.WorkloadGroup)
this.WorkloadGroup = obj;
}
}
}
/**
* Resource group information bound to the user
* @class
*/
class UserWorkloadGroup extends AbstractModel {
constructor(){
super();
/**
* test
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserName = null;
/**
* normal
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkloadGroupName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.UserName = 'UserName' in params ? params.UserName : null;
this.WorkloadGroupName = 'WorkloadGroupName' in params ? params.WorkloadGroupName : null;
}
}
/**
* DescribeSlowQueryRecordsDownload response structure.
* @class
*/
class DescribeSlowQueryRecordsDownloadResponse extends AbstractModel {
constructor(){
super();
/**
* cos address
* @type {string || null}
*/
this.CosUrl = 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.CosUrl = 'CosUrl' in params ? params.CosUrl : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteWorkloadGroup request structure.
* @class
*/
class DeleteWorkloadGroupRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Resource group name to be deleted
* @type {string || null}
*/
this.WorkloadGroupName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.WorkloadGroupName = 'WorkloadGroupName' in params ? params.WorkloadGroupName : null;
}
}
/**
* Resource group configuration
* @class
*/
class WorkloadGroupConfig extends AbstractModel {
constructor(){
super();
/**
* Resource group name
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkloadGroupName = null;
/**
* CPU weight
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CpuShare = null;
/**
* Memory limit. The sum of memory limit values of all resource groups should be less than or equal to 100.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MemoryLimit = null;
/**
* Whether to allow over-allocation
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.EnableMemoryOverCommit = null;
/**
* CPU hard limit
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CpuHardLimit = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.WorkloadGroupName = 'WorkloadGroupName' in params ? params.WorkloadGroupName : null;
this.CpuShare = 'CpuShare' in params ? params.CpuShare : null;
this.MemoryLimit = 'MemoryLimit' in params ? params.MemoryLimit : null;
this.EnableMemoryOverCommit = 'EnableMemoryOverCommit' in params ? params.EnableMemoryOverCommit : null;
this.CpuHardLimit = 'CpuHardLimit' in params ? params.CpuHardLimit : null;
}
}
/**
* DescribeInstanceOperationHistory response structure.
* @class
*/
class DescribeInstanceOperationHistoryResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of operation records
* @type {number || null}
*/
this.TotalCount = null;
/**
* Specific data of operation records
* @type {Array.<InstanceOperation> || null}
*/
this.Operations = null;
/**
* Error message
* @type {string || null}
*/
this.Message = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.Operations) {
this.Operations = new Array();
for (let z in params.Operations) {
let obj = new InstanceOperation();
obj.deserialize(params.Operations[z]);
this.Operations.push(obj);
}
}
this.Message = 'Message' in params ? params.Message : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* InsertDatasToTable request structure.
* @class
*/
class InsertDatasToTableRequest extends AbstractModel {
constructor(){
super();
/**
* Database name
* @type {string || null}
*/
this.Database = null;
/**
* Table name
* @type {string || null}
*/
this.Table = null;
/**
* Array of column names
* @type {Array.<string> || null}
*/
this.Columns = null;
/**
* Data line
* @type {Array.<Rows> || null}
*/
this.Rows = null;
/**
* Array of column types
* @type {Array.<string> || null}
*/
this.Types = null;
/**
* InstanceId
* @type {string || null}
*/
this.InstanceId = null;
/**
* Whether to use the strict mode
* @type {boolean || null}
*/
this.Strict = null;
/**
* Maximum filtration ratio, ranging from 0 to 1.0
* @type {number || null}
*/
this.MaxFilterRatio = null;
/**
* Tags for inserting data
* @type {string || null}
*/
this.Label = null;
/**
* Use the user who has corresponding permissions for operations. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.UserName = null;
/**
* Password corresponding to the user. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.PassWord = null;
/**
* Catalog name, defaults to 'internal' if not specified.
* @type {string || null}
*/
this.CatalogName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Database = 'Database' in params ? params.Database : null;
this.Table = 'Table' in params ? params.Table : null;
this.Columns = 'Columns' in params ? params.Columns : null;
if (params.Rows) {
this.Rows = new Array();
for (let z in params.Rows) {
let obj = new Rows();
obj.deserialize(params.Rows[z]);
this.Rows.push(obj);
}
}
this.Types = 'Types' in params ? params.Types : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Strict = 'Strict' in params ? params.Strict : null;
this.MaxFilterRatio = 'MaxFilterRatio' in params ? params.MaxFilterRatio : null;
this.Label = 'Label' in params ? params.Label : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.PassWord = 'PassWord' in params ? params.PassWord : null;
this.CatalogName = 'CatalogName' in params ? params.CatalogName : null;
}
}
/**
* Detail field of the Instance table
* @class
*/
class InstanceDetail extends AbstractModel {
constructor(){
super();
/**
* Whether the alarm policy is available
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.EnableAlarmStrategy = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.EnableAlarmStrategy = 'EnableAlarmStrategy' in params ? params.EnableAlarmStrategy : null;
}
}
/**
* ModifyDatabaseTableAccess request structure.
* @class
*/
class ModifyDatabaseTableAccessRequest extends AbstractModel {
constructor(){
super();
/**
* Database name
* @type {string || null}
*/
this.Database = null;
/**
* Permission list
* @type {Array.<string> || null}
*/
this.Privileges = null;
/**
* Operation type: GRANT or REVOKE
* @type {string || null}
*/
this.GrantOrRevoke = null;
/**
* InstanceId
* @type {string || null}
*/
this.InstanceId = null;
/**
* Table name. If it is null, it indicates that the entire database is authorized.
* @type {string || null}
*/
this.Table = null;
/**
* Role name, if authorized to the role
* @type {string || null}
*/
this.Role = null;
/**
* Use the user who has corresponding permissions for operations. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.UserName = null;
/**
* Password corresponding to the user. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.PassWord = null;
/**
* Catalog name, defaults to internal if not specified.
* @type {string || null}
*/
this.CatalogName = null;
/**
* Machine Group, defaults to % if not specified.
* @type {string || null}
*/
this.WhiteHost = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Database = 'Database' in params ? params.Database : null;
this.Privileges = 'Privileges' in params ? params.Privileges : null;
this.GrantOrRevoke = 'GrantOrRevoke' in params ? params.GrantOrRevoke : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Table = 'Table' in params ? params.Table : null;
this.Role = 'Role' in params ? params.Role : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.PassWord = 'PassWord' in params ? params.PassWord : null;
this.CatalogName = 'CatalogName' in params ? params.CatalogName : null;
this.WhiteHost = 'WhiteHost' in params ? params.WhiteHost : null;
}
}
/**
* DescribeInstances response structure.
* @class
*/
class DescribeInstancesResponse extends AbstractModel {
constructor(){
super();
/**
* Total Number of Instances
* @type {number || null}
*/
this.TotalCount = null;
/**
* Quantities of instances array
* @type {Array.<InstanceInfo> || null}
*/
this.InstancesList = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.InstancesList) {
this.InstancesList = new Array();
for (let z in params.InstancesList) {
let obj = new InstanceInfo();
obj.deserialize(params.InstancesList[z]);
this.InstancesList.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* The customer provides cos authentication information.
* @class
*/
class CosSourceInfo extends AbstractModel {
constructor(){
super();
/**
* ID in cos authentication
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SecretId = null;
/**
* Key in cos authentication
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SecretKey = null;
/**
* Path in cos authentication
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CosPath = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SecretId = 'SecretId' in params ? params.SecretId : null;
this.SecretKey = 'SecretKey' in params ? params.SecretKey : null;
this.CosPath = 'CosPath' in params ? params.CosPath : null;
}
}
/**
* ReduceInstance response structure.
* @class
*/
class ReduceInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* Process ID
* @type {string || null}
*/
this.FlowId = null;
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Error message
* @type {string || null}
*/
this.ErrorMsg = 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.FlowId = 'FlowId' in params ? params.FlowId : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyCoolDownPolicy request structure.
* @class
*/
class ModifyCoolDownPolicyRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Policy name
* @type {string || null}
*/
this.PolicyName = null;
/**
* cooldown_ttl
* @type {string || null}
*/
this.CoolDownTtl = null;
/**
* cooldown_datetime
* @type {string || null}
*/
this.CoolDownDatetime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.PolicyName = 'PolicyName' in params ? params.PolicyName : null;
this.CoolDownTtl = 'CoolDownTtl' in params ? params.CoolDownTtl : null;
this.CoolDownDatetime = 'CoolDownDatetime' in params ? params.CoolDownDatetime : null;
}
}
/**
* DescribeBackUpTaskDetail request structure.
* @class
*/
class DescribeBackUpTaskDetailRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Task ID
* @type {number || null}
*/
this.BackUpJobId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.BackUpJobId = 'BackUpJobId' in params ? params.BackUpJobId : null;
}
}
/**
* RecoverBackUpJob request structure.
* @class
*/
class RecoverBackUpJobRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Task ID
* @type {number || null}
*/
this.BackUpJobId = null;
/**
* Number of new table replicas recovered
* @type {number || null}
*/
this.ReplicationNum = null;
/**
* Whether to retain the configuration in the source table during recovery. 1 indicates that the configurations in the source table are retained.
* @type {number || null}
*/
this.ReserveSourceConfig = null;
/**
* 0: default; 1: cos recovery
* @type {number || null}
*/
this.RecoverType = null;
/**
* CosSourceInfo object
* @type {CosSourceInfo || null}
*/
this.CosSourceInfo = null;
/**
* 0: default; 1: regular execution
* @type {number || null}
*/
this.ScheduleType = null;
/**
* YY-MM-DD Hour : Minute : Second
* @type {string || null}
*/
this.NextTime = null;
/**
* Scheduling name
* @type {string || null}
*/
this.ScheduleName = null;
/**
* create update
* @type {string || null}
*/
this.OperationType = null;
/**
* Recovery granularity: All, Database, and Table
* @type {string || null}
*/
this.RecoverScope = null;
/**
* Recover database: If you back up by database, this field is required. Use commas to separate databases.
* @type {string || null}
*/
this.RecoverDatabase = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.BackUpJobId = 'BackUpJobId' in params ? params.BackUpJobId : null;
this.ReplicationNum = 'ReplicationNum' in params ? params.ReplicationNum : null;
this.ReserveSourceConfig = 'ReserveSourceConfig' in params ? params.ReserveSourceConfig : null;
this.RecoverType = 'RecoverType' in params ? params.RecoverType : null;
if (params.CosSourceInfo) {
let obj = new CosSourceInfo();
obj.deserialize(params.CosSourceInfo)
this.CosSourceInfo = obj;
}
this.ScheduleType = 'ScheduleType' in params ? params.ScheduleType : null;
this.NextTime = 'NextTime' in params ? params.NextTime : null;
this.ScheduleName = 'ScheduleName' in params ? params.ScheduleName : null;
this.OperationType = 'OperationType' in params ? params.OperationType : null;
this.RecoverScope = 'RecoverScope' in params ? params.RecoverScope : null;
this.RecoverDatabase = 'RecoverDatabase' in params ? params.RecoverDatabase : null;
}
}
/**
* Disk specification description
* @class
*/
class DiskSpec extends AbstractModel {
constructor(){
super();
/**
* Disk type, such as CLOUD_SSD and LOCAL_SSD
* @type {string || null}
*/
this.DiskType = null;
/**
* Disk type description, such as cloud SSD and local SSD
* @type {string || null}
*/
this.DiskDesc = null;
/**
* Minimum disk size, in GB
* @type {number || null}
*/
this.MinDiskSize = null;
/**
* Maximum disk size, in GB
* @type {number || null}
*/
this.MaxDiskSize = null;
/**
* Number of disks
* @type {number || null}
*/
this.DiskCount = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DiskType = 'DiskType' in params ? params.DiskType : null;
this.DiskDesc = 'DiskDesc' in params ? params.DiskDesc : null;
this.MinDiskSize = 'MinDiskSize' in params ? params.MinDiskSize : null;
this.MaxDiskSize = 'MaxDiskSize' in params ? params.MaxDiskSize : null;
this.DiskCount = 'DiskCount' in params ? params.DiskCount : null;
}
}
/**
* DescribeInstanceOperations response structure.
* @class
*/
class DescribeInstanceOperationsResponse extends AbstractModel {
constructor(){
super();
/**
*
* @type {number || null}
*/
this.TotalCount = null;
/**
* Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<InstanceOperation> || null}
*/
this.Operations = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.Operations) {
this.Operations = new Array();
for (let z in params.Operations) {
let obj = new InstanceOperation();
obj.deserialize(params.Operations[z]);
this.Operations.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeUserBindWorkloadGroup response structure.
* @class
*/
class DescribeUserBindWorkloadGroupResponse extends AbstractModel {
constructor(){
super();
/**
* Resource group information bound to the user
* @type {Array.<UserWorkloadGroup> || null}
*/
this.UserBindInfos = null;
/**
* Error message
* @type {string || null}
*/
this.ErrorMsg = 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.UserBindInfos) {
this.UserBindInfos = new Array();
for (let z in params.UserBindInfos) {
let obj = new UserWorkloadGroup();
obj.deserialize(params.UserBindInfos[z]);
this.UserBindInfos.push(obj);
}
}
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DDL information for creating a table
* @class
*/
class CreateTablesDDL extends AbstractModel {
constructor(){
super();
/**
* Database name
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DbName = null;
/**
* DDL information of the table
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<TablesDDL> || null}
*/
this.TablesDDLs = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DbName = 'DbName' in params ? params.DbName : null;
if (params.TablesDDLs) {
this.TablesDDLs = new Array();
for (let z in params.TablesDDLs) {
let obj = new TablesDDL();
obj.deserialize(params.TablesDDLs[z]);
this.TablesDDLs.push(obj);
}
}
}
}
/**
* ScaleOutInstance request structure.
* @class
*/
class ScaleOutInstanceRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Role (MATER/CORE), MASTER corresponds to FE, CORE corresponds to BE.
* @type {string || null}
*/
this.Type = null;
/**
* Number of nodes
* @type {number || null}
*/
this.NodeCount = null;
/**
* Cluster high availability type after scaled out: 0 indicates non-high availability, 1 indicates read high availability, and 2 indicates read-write high availability.
* @type {number || null}
*/
this.HaType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Type = 'Type' in params ? params.Type : null;
this.NodeCount = 'NodeCount' in params ? params.NodeCount : null;
this.HaType = 'HaType' in params ? params.HaType : null;
}
}
/**
* Update user permission structure
* @class
*/
class UpdateUserPrivileges extends AbstractModel {
constructor(){
super();
/**
* Whether to set catalog permission
* @type {boolean || null}
*/
this.IsSetGlobalCatalog = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.IsSetGlobalCatalog = 'IsSetGlobalCatalog' in params ? params.IsSetGlobalCatalog : null;
}
}
/**
* ModifyClusterConfigs request structure.
* @class
*/
class ModifyClusterConfigsRequest extends AbstractModel {
constructor(){
super();
/**
* Cluster ID, for example, cdwch-xxxx
* @type {string || null}
*/
this.InstanceId = null;
/**
* Configuration file modification information
* @type {Array.<ConfigSubmitContext> || null}
*/
this.ModifyConfContext = null;
/**
* Reason for modification
* @type {string || null}
*/
this.Remark = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
if (params.ModifyConfContext) {
this.ModifyConfContext = new Array();
for (let z in params.ModifyConfContext) {
let obj = new ConfigSubmitContext();
obj.deserialize(params.ModifyConfContext[z]);
this.ModifyConfContext.push(obj);
}
}
this.Remark = 'Remark' in params ? params.Remark : null;
}
}
/**
* DescribeQueryAnalyse request structure.
* @class
*/
class DescribeQueryAnalyseRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Use the user who has corresponding permissions for operations. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.UserName = null;
/**
* Password corresponding to the user. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.
* @type {string || null}
*/
this.PassWord = null;
/**
* Start time of operation period
* @type {string || null}
*/
this.StartTime = null;
/**
* End time of operation period.
* @type {string || null}
*/
this.EndTime = null;
/**
* SQL fragments (fuzzy query supported)
* @type {string || null}
*/
this.SQLFragment = null;
/**
* Catalog filter condition
* @type {string || null}
*/
this.CatalogFilter = null;
/**
* Database name filter condition
* @type {string || null}
*/
this.DatabaseFilter = null;
/**
* SQL type filter criteria
* @type {string || null}
*/
this.SQLTypeFilter = null;
/**
* Sorting field
* @type {string || null}
*/
this.SortField = null;
/**
* Sorting order: asc (ascending) or desc (descending)
* @type {string || null}
*/
this.SortOrder = null;
/**
* Minimum query execution time, in milliseconds.
* @type {number || null}
*/
this.QueryTime = null;
/**
* Page number, defaults to 1.
* @type {number || null}
*/
this.PageNum = null;
/**
* Number of records per page, defaults to 10.
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @priv