tencentcloud-sdk-nodejs-intl-en
Version:
1,926 lines (1,611 loc) • 121 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");
/**
* Parameters
* @class
*/
class ConfigParams extends AbstractModel {
constructor(){
super();
/**
* Name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ParameterName = null;
/**
* Value.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ParameterValue = null;
/**
* Value before modification.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ParameterOldValue = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ParameterName = 'ParameterName' in params ? params.ParameterName : null;
this.ParameterValue = 'ParameterValue' in params ? params.ParameterValue : null;
this.ParameterOldValue = 'ParameterOldValue' in params ? params.ParameterOldValue : null;
}
}
/**
* ModifyInstance response structure.
* @class
*/
class ModifyInstanceResponse 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;
}
}
/**
* DescribeInstanceInfo request structure.
* @class
*/
class DescribeInstanceInfoRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* DescribeUserHbaConfig response structure.
* @class
*/
class DescribeUserHbaConfigResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of instances.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Hba Config array.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<HbaConfig> || null}
*/
this.HbaConfigs = 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.HbaConfigs) {
this.HbaConfigs = new Array();
for (let z in params.HbaConfigs) {
let obj = new HbaConfig();
obj.deserialize(params.HbaConfigs[z]);
this.HbaConfigs.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Access information.
* @class
*/
class AccessInfo extends AbstractModel {
constructor(){
super();
/**
* Address.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Address = null;
/**
* Protocol.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Protocol = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Address = 'Address' in params ? params.Address : null;
this.Protocol = 'Protocol' in params ? params.Protocol : null;
}
}
/**
* DescribeUserHbaConfig request structure.
* @class
*/
class DescribeUserHbaConfigRequest extends AbstractModel {
constructor(){
super();
/**
* InstanceId.
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* ModifyDBParameters response structure.
* @class
*/
class ModifyDBParametersResponse extends AbstractModel {
constructor(){
super();
/**
* Asynchronous process ID.
* @type {number || null}
*/
this.TaskId = 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.TaskId = 'TaskId' in params ? params.TaskId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Instance State Information
* @class
*/
class InstanceStateInfo extends AbstractModel {
constructor(){
super();
/**
* Instance status. Example: serving.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceState = null;
/**
* Creation time of instance operation.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FlowCreateTime = null;
/**
* Instance operation name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FlowName = null;
/**
* Instance operation progress.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.FlowProgress = null;
/**
* Instance status description. Example: running.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceStateDesc = null;
/**
* Instance process error messages. Example: "Creation failed, insufficient resources."
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FlowMsg = null;
/**
* The name of the current step. Example: "Purchasing resources."
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProcessName = null;
/**
* Indicates whether there is a backup task in the instance. 1 indicates yes and 0 indicates no.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.BackupStatus = null;
/**
* Request ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RequestId = null;
/**
* Indicates whether there is a backup task in the cluster. 1 indicates yes and 0 indicates no.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.BackupOpenStatus = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceState = 'InstanceState' in params ? params.InstanceState : null;
this.FlowCreateTime = 'FlowCreateTime' in params ? params.FlowCreateTime : null;
this.FlowName = 'FlowName' in params ? params.FlowName : null;
this.FlowProgress = 'FlowProgress' in params ? params.FlowProgress : null;
this.InstanceStateDesc = 'InstanceStateDesc' in params ? params.InstanceStateDesc : null;
this.FlowMsg = 'FlowMsg' in params ? params.FlowMsg : null;
this.ProcessName = 'ProcessName' in params ? params.ProcessName : null;
this.BackupStatus = 'BackupStatus' in params ? params.BackupStatus : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
this.BackupOpenStatus = 'BackupOpenStatus' in params ? params.BackupOpenStatus : null;
}
}
/**
* Slow query item information
* @class
*/
class NormQueryItem extends AbstractModel {
constructor(){
super();
/**
* Number of calls.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CallTimes = null;
/**
* Number of read-only shared memory blocks.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.SharedReadBlocks = null;
/**
* Number of write-only shared memory blocks.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.SharedWriteBlocks = null;
/**
* Database.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DatabaseName = null;
/**
* Statement after masking.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.NormalQuery = null;
/**
* The statement with the longest execution time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.MaxElapsedQuery = null;
/**
* Total consumption time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CostTime = null;
/**
* Client IP address.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ClientIp = null;
/**
* Username.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserName = null;
/**
* Proportion of total count.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalCallTimesPercent = null;
/**
* Proportion of total consumption time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalCostTimePercent = null;
/**
* Minimum consumption time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MinCostTime = null;
/**
* Maximum consumption time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MaxCostTime = null;
/**
* Time of the earliest item.Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FirstTime = null;
/**
* Time of the latest item.Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LastTime = null;
/**
* Total consumption time of I/O reading.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ReadCostTime = null;
/**
* Total consumption time I/O writing.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.WriteCostTime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CallTimes = 'CallTimes' in params ? params.CallTimes : null;
this.SharedReadBlocks = 'SharedReadBlocks' in params ? params.SharedReadBlocks : null;
this.SharedWriteBlocks = 'SharedWriteBlocks' in params ? params.SharedWriteBlocks : null;
this.DatabaseName = 'DatabaseName' in params ? params.DatabaseName : null;
this.NormalQuery = 'NormalQuery' in params ? params.NormalQuery : null;
this.MaxElapsedQuery = 'MaxElapsedQuery' in params ? params.MaxElapsedQuery : null;
this.CostTime = 'CostTime' in params ? params.CostTime : null;
this.ClientIp = 'ClientIp' in params ? params.ClientIp : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.TotalCallTimesPercent = 'TotalCallTimesPercent' in params ? params.TotalCallTimesPercent : null;
this.TotalCostTimePercent = 'TotalCostTimePercent' in params ? params.TotalCostTimePercent : null;
this.MinCostTime = 'MinCostTime' in params ? params.MinCostTime : null;
this.MaxCostTime = 'MaxCostTime' in params ? params.MaxCostTime : null;
this.FirstTime = 'FirstTime' in params ? params.FirstTime : null;
this.LastTime = 'LastTime' in params ? params.LastTime : null;
this.ReadCostTime = 'ReadCostTime' in params ? params.ReadCostTime : null;
this.WriteCostTime = 'WriteCostTime' in params ? params.WriteCostTime : null;
}
}
/**
* DescribeInstanceState request structure.
* @class
*/
class DescribeInstanceStateRequest extends AbstractModel {
constructor(){
super();
/**
* InstanceId.
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* Description of the account name and instance IDs under the account
* @class
*/
class AccountInfo extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Account name.
* @type {string || null}
*/
this.UserName = null;
/**
* Account attribute.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.Perms = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.Perms = 'Perms' in params ? params.Perms : null;
}
}
/**
* DescribeAccounts request structure.
* @class
*/
class DescribeAccountsRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Limit.
* @type {number || null}
*/
this.Limit = 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;
}
}
/**
* ScaleOutInstance response structure.
* @class
*/
class ScaleOutInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* FlowId.
* @type {string || null}
*/
this.FlowId = null;
/**
* Error message.
Note: This field may return null, indicating that no valid values can be obtained.
* @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;
}
}
/**
* DescribeInstanceNodes request structure.
* @class
*/
class DescribeInstanceNodesRequest extends AbstractModel {
constructor(){
super();
/**
* InstanceId.
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* RestartInstance response structure.
* @class
*/
class RestartInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* FlowId.
* @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;
}
}
/**
* Billing time parameter.
* @class
*/
class ChargeProperties extends AbstractModel {
constructor(){
super();
/**
* 1: requires auto-renewal.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.RenewFlag = null;
/**
* Order time range.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TimeSpan = null;
/**
* Time unit. Valid values: h and m.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TimeUnit = null;
/**
* Billing type: 0 indicates pay-as-you-go and 1 indicates monthly subscription.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.PayMode = null;
/**
* PREPAID and POSTPAID_BY_HOUR
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ChargeType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null;
this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
this.TimeUnit = 'TimeUnit' in params ? params.TimeUnit : null;
this.PayMode = 'PayMode' in params ? params.PayMode : null;
this.ChargeType = 'ChargeType' in params ? params.ChargeType : null;
}
}
/**
* DestroyInstanceByApi request structure.
* @class
*/
class DestroyInstanceByApiRequest extends AbstractModel {
constructor(){
super();
/**
* Instance id. Example: "cdwpg-xxxx".
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* Upgrade information
* @class
*/
class UpgradeItem extends AbstractModel {
constructor(){
super();
/**
* Task name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskName = null;
/**
* Original kernel version.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SourceVersion = null;
/**
* Target kernel version.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TargetVersion = null;
/**
* Task creation time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Task end time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.EndTime = null;
/**
* Task completion status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Status = null;
/**
* Operator.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OperateUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskName = 'TaskName' in params ? params.TaskName : null;
this.SourceVersion = 'SourceVersion' in params ? params.SourceVersion : null;
this.TargetVersion = 'TargetVersion' in params ? params.TargetVersion : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
this.Status = 'Status' in params ? params.Status : null;
this.OperateUin = 'OperateUin' in params ? params.OperateUin : null;
}
}
/**
* DescribeDBConfigHistory response structure.
* @class
*/
class DescribeDBConfigHistoryResponse extends AbstractModel {
constructor(){
super();
/**
* Total count.
* @type {number || null}
*/
this.TotalCount = null;
/**
* DBConfig history.
* @type {Array.<ConfigHistory> || null}
*/
this.ConfigHistory = 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.ConfigHistory) {
this.ConfigHistory = new Array();
for (let z in params.ConfigHistory) {
let obj = new ConfigHistory();
obj.deserialize(params.ConfigHistory[z]);
this.ConfigHistory.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Resource specifications.
* @class
*/
class ResourceSpecNew extends AbstractModel {
constructor(){
super();
/**
* Resource name.
* @type {string || null}
*/
this.SpecName = null;
/**
* Resource count.
* @type {number || null}
*/
this.Count = null;
/**
* Disk information.
* @type {CBSSpec || null}
*/
this.DiskSpec = null;
/**
* Resource type, DATA.
* @type {string || null}
*/
this.Type = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SpecName = 'SpecName' in params ? params.SpecName : null;
this.Count = 'Count' in params ? params.Count : null;
if (params.DiskSpec) {
let obj = new CBSSpec();
obj.deserialize(params.DiskSpec)
this.DiskSpec = obj;
}
this.Type = 'Type' in params ? params.Type : null;
}
}
/**
* Instance node
* @class
*/
class InstanceNode extends AbstractModel {
constructor(){
super();
/**
* id
* @type {number || null}
*/
this.NodeId = null;
/**
* cn
* @type {string || null}
*/
this.NodeType = null;
/**
* ip
* @type {string || null}
*/
this.NodeIp = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.NodeId = 'NodeId' in params ? params.NodeId : null;
this.NodeType = 'NodeType' in params ? params.NodeType : null;
this.NodeIp = 'NodeIp' in params ? params.NodeIp : null;
}
}
/**
* DescribeDBConfigHistory request structure.
* @class
*/
class DescribeDBConfigHistoryRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Limit.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset.
* @type {number || null}
*/
this.Offset = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
}
}
/**
* Error log details
* @class
*/
class ErrorLogDetail 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;
/**
* Database.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Database = null;
/**
* The time an error was reported.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ErrorTime = null;
/**
* Error message.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ErrorMessage = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.UserName = 'UserName' in params ? params.UserName : null;
this.Database = 'Database' in params ? params.Database : null;
this.ErrorTime = 'ErrorTime' in params ? params.ErrorTime : null;
this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
}
}
/**
* DescribeDBParams request structure.
* @class
*/
class DescribeDBParamsRequest extends AbstractModel {
constructor(){
super();
/**
* cn/dn
* @type {Array.<string> || null}
*/
this.NodeTypes = null;
/**
* Limit.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset.
* @type {number || null}
*/
this.Offset = null;
/**
* InstanceId.
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.NodeTypes = 'NodeTypes' in params ? params.NodeTypes : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* Disk specifications.
* @class
*/
class CBSSpec extends AbstractModel {
constructor(){
super();
/**
* Disk type.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DiskType = null;
/**
* Size.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.DiskSize = null;
/**
* Number.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.DiskCount = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DiskType = 'DiskType' in params ? params.DiskType : null;
this.DiskSize = 'DiskSize' in params ? params.DiskSize : null;
this.DiskCount = 'DiskCount' in params ? params.DiskCount : null;
}
}
/**
* DescribeInstanceNodes response structure.
* @class
*/
class DescribeInstanceNodesResponse extends AbstractModel {
constructor(){
super();
/**
* error msg
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ErrorMsg = null;
/**
* Node list.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<InstanceNode> || null}
*/
this.InstanceNodes = 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;
if (params.InstanceNodes) {
this.InstanceNodes = new Array();
for (let z in params.InstanceNodes) {
let obj = new InstanceNode();
obj.deserialize(params.InstanceNodes[z]);
this.InstanceNodes.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyInstance request structure.
* @class
*/
class ModifyInstanceRequest extends AbstractModel {
constructor(){
super();
/**
* InstanceId.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Name of the newly modified instance.
* @type {string || null}
*/
this.InstanceName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
}
}
/**
* DescribeSimpleInstances response structure.
* @class
*/
class DescribeSimpleInstancesResponse extends AbstractModel {
constructor(){
super();
/**
* Total count of instance lists.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Instance list details.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<InstanceSimpleInfoNew> || null}
*/
this.InstancesList = null;
/**
* Error message.
Note: This field may return null, indicating that no valid values can be obtained.
* @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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.InstancesList) {
this.InstancesList = new Array();
for (let z in params.InstancesList) {
let obj = new InstanceSimpleInfoNew();
obj.deserialize(params.InstancesList[z]);
this.InstancesList.push(obj);
}
}
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* UpgradeInstance request structure.
* @class
*/
class UpgradeInstanceRequest extends AbstractModel {
constructor(){
super();
/**
* InstanceId.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Installation package version.
* @type {string || null}
*/
this.PackageVersion = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.PackageVersion = 'PackageVersion' in params ? params.PackageVersion : null;
}
}
/**
* DescribeSlowLog response structure.
* @class
*/
class DescribeSlowLogResponse extends AbstractModel {
constructor(){
super();
/**
* Total count of messages returned.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Slow SQL log details.
* @type {SlowLogDetail || null}
*/
this.SlowLogDetails = 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.SlowLogDetails) {
let obj = new SlowLogDetail();
obj.deserialize(params.SlowLogDetails)
this.SlowLogDetails = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyUserHba response structure.
* @class
*/
class ModifyUserHbaResponse extends AbstractModel {
constructor(){
super();
/**
* Task ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TaskId = null;
/**
* Error message.
Note: This field may return null, indicating that no valid values can be obtained.
* @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.TaskId = 'TaskId' in params ? params.TaskId : null;
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Node parameter
* @class
*/
class NodeConfigParams extends AbstractModel {
constructor(){
super();
/**
* Node type.
* @type {string || null}
*/
this.NodeType = null;
/**
* Parameter.
* @type {Array.<ConfigParams> || null}
*/
this.ConfigParams = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.NodeType = 'NodeType' in params ? params.NodeType : null;
if (params.ConfigParams) {
this.ConfigParams = new Array();
for (let z in params.ConfigParams) {
let obj = new ConfigParams();
obj.deserialize(params.ConfigParams[z]);
this.ConfigParams.push(obj);
}
}
}
}
/**
* instance information.
* @class
*/
class InstanceInfo extends AbstractModel {
constructor(){
super();
/**
* Instance ID
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ID = null;
/**
* Kernel version type.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceType = null;
/**
* Cluster name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceName = null;
/**
* Cluster status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Status = null;
/**
* Cluster status details.Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.StatusDesc = null;
/**
* Cluster status information.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {InstanceStateInfo || null}
*/
this.InstanceStateInfo = null;
/**
* Cluster ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceID = null;
/**
* Creation time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Region.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Region = null;
/**
* Region.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Zone = null;
/**
* Region details.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RegionDesc = null;
/**
* Region details.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ZoneDesc = null;
/**
* Tag.Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<Tag> || null}
*/
this.Tags = null;
/**
* Kernel version.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Version = null;
/**
* Character set.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Charset = null;
/**
* CN node list.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<InstanceNodeGroup> || null}
*/
this.CNNodes = null;
/**
* DN node list.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<InstanceNodeGroup> || null}
*/
this.DNNodes = null;
/**
* Region ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.RegionId = null;
/**
* Region ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ZoneId = null;
/**
* Virtual Private Cloud (VPC).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.VpcId = null;
/**
* Subnet.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SubnetId = null;
/**
* Expiration time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExpireTime = null;
/**
* Billing mode.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PayMode = null;
/**
* Automatic renewal.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.RenewFlag = null;
/**
* Cluster ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Access information.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<AccessInfo> || null}
*/
this.AccessDetails = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ID = 'ID' in params ? params.ID : null;
this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
this.Status = 'Status' in params ? params.Status : null;
this.StatusDesc = 'StatusDesc' in params ? params.StatusDesc : null;
if (params.InstanceStateInfo) {
let obj = new InstanceStateInfo();
obj.deserialize(params.InstanceStateInfo)
this.InstanceStateInfo = obj;
}
this.InstanceID = 'InstanceID' in params ? params.InstanceID : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.Region = 'Region' in params ? params.Region : null;
this.Zone = 'Zone' in params ? params.Zone : null;
this.RegionDesc = 'RegionDesc' in params ? params.RegionDesc : null;
this.ZoneDesc = 'ZoneDesc' in params ? params.ZoneDesc : null;
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new Tag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
this.Version = 'Version' in params ? params.Version : null;
this.Charset = 'Charset' in params ? params.Charset : null;
if (params.CNNodes) {
this.CNNodes = new Array();
for (let z in params.CNNodes) {
let obj = new InstanceNodeGroup();
obj.deserialize(params.CNNodes[z]);
this.CNNodes.push(obj);
}
}
if (params.DNNodes) {
this.DNNodes = new Array();
for (let z in params.DNNodes) {
let obj = new InstanceNodeGroup();
obj.deserialize(params.DNNodes[z]);
this.DNNodes.push(obj);
}
}
this.RegionId = 'RegionId' in params ? params.RegionId : null;
this.ZoneId = 'ZoneId' in params ? params.ZoneId : null;
this.VpcId = 'VpcId' in params ? params.VpcId : null;
this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
this.PayMode = 'PayMode' in params ? params.PayMode : null;
this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
if (params.AccessDetails) {
this.AccessDetails = new Array();
for (let z in params.AccessDetails) {
let obj = new AccessInfo();
obj.deserialize(params.AccessDetails[z]);
this.AccessDetails.push(obj);
}
}
}
}
/**
* DescribeDBParams response structure.
* @class
*/
class DescribeDBParamsResponse extends AbstractModel {
constructor(){
super();
/**
* Total count.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Parameters information.
* @type {Array.<ParamItem> || 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.Items) {
this.Items = new Array();
for (let z in params.Items) {
let obj = new ParamItem();
obj.deserialize(params.Items[z]);
this.Items.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ParamDetail
* @class
*/
class ParamDetail 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 f