tencentcloud-sdk-nodejs-intl-en
Version:
1,802 lines (1,523 loc) • 242 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");
/**
* CreateDBInstances request structure.
* @class
*/
class CreateDBInstancesRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Creating an Instance Region</p>
* @type {string || null}
*/
this.Zone = null;
/**
* <p>Character type vpcid</p>
* @type {string || null}
*/
this.VpcId = null;
/**
* <p>Character type subnetid</p>
* @type {string || null}
*/
this.SubnetId = null;
/**
* <p>Purchase specification</p>
* @type {string || null}
*/
this.SpecCode = null;
/**
* <p>Node disk capacity (unit: GB)</p>
* @type {number || null}
*/
this.Disk = null;
/**
* <p>Number of storage nodes</p>
* @type {number || null}
*/
this.StorageNodeNum = null;
/**
* <p>Number of node replicas for storage, up to 5, must be an odd number</p>
* @type {number || null}
*/
this.Replications = null;
/**
* <p>Instance count. Maximum is 10.</p>
* @type {number || null}
*/
this.InstanceCount = null;
/**
* <p>Number of replicas</p>
* @type {number || null}
*/
this.FullReplications = null;
/**
* <p>Create an instance version, using the current latest version by default</p>
* @type {string || null}
*/
this.CreateVersion = null;
/**
* <p>Instance name. The required length is 1-60. It can contain Chinese characters, English case, digits, hyphens (-), and underscores (_).</p>
* @type {string || null}
*/
this.InstanceName = null;
/**
* <p>Tag key-value pair array</p>
* @type {Array.<ResourceTag> || null}
*/
this.ResourceTags = null;
/**
* <p>Initialize instance parameters. For example:<br>character_set_server (character set, defaults to utf8),<br>lower_case_table_names (table name case sensitivity, 0 - sensitive; 1 - insensitive, default is 0)</p>
* @type {Array.<InstanceParam> || null}
*/
this.InitParams = null;
/**
* <p>Time unit, m: month</p>
* @type {string || null}
*/
this.TimeUnit = null;
/**
* <p>Commodity duration size</p>
* @type {number || null}
*/
this.TimeSpan = null;
/**
* <p>CPU cores of the storage node</p>
* @type {number || null}
*/
this.StorageNodeCpu = null;
/**
* <p>Storage node memory size</p>
* @type {number || null}
*/
this.StorageNodeMem = null;
/**
* <p>Payment mode. 0 means pay-as-you-go/postpaid, 1 means prepaid.</p>
* @type {string || null}
*/
this.PayMode = null;
/**
* <p>Number of control nodes</p>
* @type {number || null}
*/
this.MCNum = null;
/**
* <p>Custom port</p>
* @type {number || null}
*/
this.Vport = null;
/**
* <p>Multi-AZ availability zone list</p>
* @type {Array.<string> || null}
*/
this.Zones = null;
/**
* <p>Whether to use a coupon.</p>
* @type {boolean || null}
*/
this.AutoVoucher = null;
/**
* <p>Coupon list</p>
* @type {Array.<string> || null}
*/
this.VoucherIds = null;
/**
* <p>Instance Architecture Type, separate: decoupled architecture; hybrid: peer-to-peer architecture</p>
* @type {string || null}
*/
this.InstanceType = null;
/**
* <p>Disk Type, CLOUD_HSSD enhanced SSD, CLOUD_TCS local SSD disk</p>
* @type {string || null}
*/
this.StorageType = null;
/**
* <p>AZ mode. 1: Single AZ, 2: Multi-AZ non-primary AZ, 3: Multi-AZ primary AZ</p>
* @type {number || null}
*/
this.AZMode = null;
/**
* <p>Instance mode</p>
* @type {string || null}
*/
this.InstanceMode = null;
/**
* <p>Parameter template id</p>
* @type {string || null}
*/
this.TemplateId = null;
/**
* <p>Compatible mode, enum:MySQL,HBase</p>
* @type {string || null}
*/
this.SQLMode = null;
/**
* <p>ccu configuration of the svls instance</p>
* @type {AutoScalingConfig || null}
*/
this.AutoScaleConfig = null;
/**
* <p>Bind to security group list</p>
* @type {Array.<string> || null}
*/
this.SecurityGroupIds = null;
/**
* <p>root userName. The default is dbaadmin in the current version. It will reset to dbaadmin even if a value is passed.</p>
* @type {string || null}
*/
this.UserName = null;
/**
* <p>dbaadmin password</p>
* @type {string || null}
*/
this.Password = null;
/**
* <p>Whether transparent data encryption is enabled. 0: not enabled; 1: enabled</p>
* @type {number || null}
*/
this.EncryptionEnable = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Zone = 'Zone' in params ? params.Zone : null;
this.VpcId = 'VpcId' in params ? params.VpcId : null;
this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
this.SpecCode = 'SpecCode' in params ? params.SpecCode : null;
this.Disk = 'Disk' in params ? params.Disk : null;
this.StorageNodeNum = 'StorageNodeNum' in params ? params.StorageNodeNum : null;
this.Replications = 'Replications' in params ? params.Replications : null;
this.InstanceCount = 'InstanceCount' in params ? params.InstanceCount : null;
this.FullReplications = 'FullReplications' in params ? params.FullReplications : null;
this.CreateVersion = 'CreateVersion' in params ? params.CreateVersion : null;
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
if (params.ResourceTags) {
this.ResourceTags = new Array();
for (let z in params.ResourceTags) {
let obj = new ResourceTag();
obj.deserialize(params.ResourceTags[z]);
this.ResourceTags.push(obj);
}
}
if (params.InitParams) {
this.InitParams = new Array();
for (let z in params.InitParams) {
let obj = new InstanceParam();
obj.deserialize(params.InitParams[z]);
this.InitParams.push(obj);
}
}
this.TimeUnit = 'TimeUnit' in params ? params.TimeUnit : null;
this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
this.StorageNodeCpu = 'StorageNodeCpu' in params ? params.StorageNodeCpu : null;
this.StorageNodeMem = 'StorageNodeMem' in params ? params.StorageNodeMem : null;
this.PayMode = 'PayMode' in params ? params.PayMode : null;
this.MCNum = 'MCNum' in params ? params.MCNum : null;
this.Vport = 'Vport' in params ? params.Vport : null;
this.Zones = 'Zones' in params ? params.Zones : null;
this.AutoVoucher = 'AutoVoucher' in params ? params.AutoVoucher : null;
this.VoucherIds = 'VoucherIds' in params ? params.VoucherIds : null;
this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
this.StorageType = 'StorageType' in params ? params.StorageType : null;
this.AZMode = 'AZMode' in params ? params.AZMode : null;
this.InstanceMode = 'InstanceMode' in params ? params.InstanceMode : null;
this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
this.SQLMode = 'SQLMode' in params ? params.SQLMode : null;
if (params.AutoScaleConfig) {
let obj = new AutoScalingConfig();
obj.deserialize(params.AutoScaleConfig)
this.AutoScaleConfig = obj;
}
this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.Password = 'Password' in params ? params.Password : null;
this.EncryptionEnable = 'EncryptionEnable' in params ? params.EncryptionEnable : null;
}
}
/**
* ModifyDBInstanceVPort request structure.
* @class
*/
class ModifyDBInstanceVPortRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID, such as tdsql3-5baee8df.
* @type {string || null}
*/
this.InstanceId = null;
/**
* New VPC port 3308
* @type {number || null}
*/
this.Vport = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Vport = 'Vport' in params ? params.Vport : null;
}
}
/**
* ExpandInstance response structure.
* @class
*/
class ExpandInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* <p>Asynchronous task ID. You can call the Query Task API to get task status with this ID.</p>
* @type {number || null}
*/
this.FlowId = 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.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Query the sales API. The return type is zone information.
* @class
*/
class DescribeSaleZonesInfo extends AbstractModel {
constructor(){
super();
/**
* <p>English string of Zone</p>
* @type {string || null}
*/
this.Zone = null;
/**
* <p>Zone Chinese character string</p>
* @type {string || null}
*/
this.ZoneName = null;
/**
* <p>Whether to sell, 1: sell; 0: do not sell</p>
* @type {number || null}
*/
this.Enable = null;
/**
* <p>Whether the default primary AZ is used. 0 means no, 1 means yes.</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.IsDefaultMaster = null;
/**
* <p>Selectable disk types in availability zones</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.AvailableDiskTypes = null;
/**
* <p>Whether it is an exclusive availability zone</p>
* @type {Array.<string> || null}
*/
this.SupportTypes = null;
/**
* <p>Whether serverless is supported</p>
* @type {boolean || null}
*/
this.IsSupportServerless = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Zone = 'Zone' in params ? params.Zone : null;
this.ZoneName = 'ZoneName' in params ? params.ZoneName : null;
this.Enable = 'Enable' in params ? params.Enable : null;
this.IsDefaultMaster = 'IsDefaultMaster' in params ? params.IsDefaultMaster : null;
this.AvailableDiskTypes = 'AvailableDiskTypes' in params ? params.AvailableDiskTypes : null;
this.SupportTypes = 'SupportTypes' in params ? params.SupportTypes : null;
this.IsSupportServerless = 'IsSupportServerless' in params ? params.IsSupportServerless : null;
}
}
/**
* Backup method statistical object, provided to backup set statistical detail API
* @class
*/
class BackupMethodStatisticsOutPut extends AbstractModel {
constructor(){
super();
/**
* <p>Auto-backup size in Byte</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<number> || null}
*/
this.AutoBackupSize = null;
/**
* <p>Manual backup size, unit Byte</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<number> || null}
*/
this.ManualBackupSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AutoBackupSize = 'AutoBackupSize' in params ? params.AutoBackupSize : null;
this.ManualBackupSize = 'ManualBackupSize' in params ? params.ManualBackupSize : null;
}
}
/**
* DescribeDatabases request structure.
* @class
*/
class DescribeDatabasesRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Instance ID, such as tdsql3-ow7t8lmc.</p>
* @type {string || null}
*/
this.InstanceId = null;
/**
* <p>Pagination index</p>
* @type {number || null}
*/
this.Offset = null;
/**
* <p>Number of items per page</p>
* @type {number || null}
*/
this.Limit = null;
/**
* <p>Database name matching expression</p>
* @type {string || null}
*/
this.DatabaseRegexp = 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.DatabaseRegexp = 'DatabaseRegexp' in params ? params.DatabaseRegexp : null;
}
}
/**
* DescribeDBParameters request structure.
* @class
*/
class DescribeDBParametersRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID, for example: tdsql3-ow728lmc.
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* ModifyInstanceNetwork response structure.
* @class
*/
class ModifyInstanceNetworkResponse 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;
}
}
/**
* ModifyInstanceSSLStatus response structure.
* @class
*/
class ModifyInstanceSSLStatusResponse extends AbstractModel {
constructor(){
super();
/**
* <p>Async process ID.</p>
* @type {number || null}
*/
this.FlowId = 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.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* RestartDBInstances response structure.
* @class
*/
class RestartDBInstancesResponse extends AbstractModel {
constructor(){
super();
/**
* <p>Async task id.</p>
* @type {number || null}
*/
this.FlowId = 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.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeSlowLogs request structure.
* @class
*/
class DescribeSlowLogsRequest extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Search log start time
* @type {string || null}
*/
this.StartTime = null;
/**
* End time to retrieve logs
* @type {string || null}
*/
this.EndTime = null;
/**
* Filter criteria.
* @type {Array.<LogFilter> || null}
*/
this.LogFilter = null;
/**
* Items per page limit
* @type {number || null}
*/
this.Limit = null;
/**
* Offset.
* @type {number || null}
*/
this.Offset = null;
/**
* Sort, selectable: ASC, DESC
* @type {string || null}
*/
this.Order = null;
/**
* Sorting criteria may not be the same as selectable fields used to sort according to business.
* @type {string || null}
*/
this.OrderBy = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
if (params.LogFilter) {
this.LogFilter = new Array();
for (let z in params.LogFilter) {
let obj = new LogFilter();
obj.deserialize(params.LogFilter[z]);
this.LogFilter.push(obj);
}
}
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Order = 'Order' in params ? params.Order : null;
this.OrderBy = 'OrderBy' in params ? params.OrderBy : null;
}
}
/**
* ModifyInstanceName request structure.
* @class
*/
class ModifyInstanceNameRequest extends AbstractModel {
constructor(){
super();
/**
* Instance id that needs to be modified.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Modified instance name. required length: 1-60. can contain chinese, english uppercase and lowercase letters, digits, -, _.
* @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;
}
}
/**
* DescribeUserPrivileges response structure.
* @class
*/
class DescribeUserPrivilegesResponse extends AbstractModel {
constructor(){
super();
/**
* Permission list
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.Privileges = 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.Privileges = 'Privileges' in params ? params.Privileges : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeDBSecurityGroups response structure.
* @class
*/
class DescribeDBSecurityGroupsResponse extends AbstractModel {
constructor(){
super();
/**
* Security group description.
* @type {Array.<SecurityGroup> || null}
*/
this.Groups = null;
/**
* Instance VIP.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.VIP = null;
/**
* Instance port.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.VPort = 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.Groups) {
this.Groups = new Array();
for (let z in params.Groups) {
let obj = new SecurityGroup();
obj.deserialize(params.Groups[z]);
this.Groups.push(obj);
}
}
this.VIP = 'VIP' in params ? params.VIP : null;
this.VPort = 'VPort' in params ? params.VPort : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* List filter criteria for instances
* @class
*/
class InstanceFilter extends AbstractModel {
constructor(){
super();
/**
* Filter key, support InstanceId, VpcId, SubnetId, Vip, Vport, Status, InstanceName, TagKey.
* @type {string || null}
*/
this.Name = null;
/**
* Filter value.
* @type {Array.<string> || null}
*/
this.Values = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Name = 'Name' in params ? params.Name : null;
this.Values = 'Values' in params ? params.Values : null;
}
}
/**
* Execution plan
* @class
*/
class Explain extends AbstractModel {
constructor(){
super();
/**
* <p>Identifier</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ID = null;
/**
* <p>Query type</p><p>Enumeration value:</p><ul><li>SIMPLE: A regular query with no subquery and UNION. Single table or ordinary JOIN is SIMPLE.</li></ul>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SelectType = null;
/**
* <p>Table name</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Table = null;
/**
* <p>Partition</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Partitions = null;
/**
* <p>Access type</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Type = null;
/**
* <p>Possibly used indexes</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PossibleKeys = null;
/**
* <p>Used Indexes</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Key = null;
/**
* <p>Used Indexes length</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.KeyLen = null;
/**
* <p>Column or constant to compare with the index</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Ref = null;
/**
* <p>Estimate the number of scanned rows</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Rows = null;
/**
* <p>Estimated percentage of remaining rows after conditional filtering</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Filtered = null;
/**
* <p>Additional information, such as Using index, Using filesort</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Extra = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ID = 'ID' in params ? params.ID : null;
this.SelectType = 'SelectType' in params ? params.SelectType : null;
this.Table = 'Table' in params ? params.Table : null;
this.Partitions = 'Partitions' in params ? params.Partitions : null;
this.Type = 'Type' in params ? params.Type : null;
this.PossibleKeys = 'PossibleKeys' in params ? params.PossibleKeys : null;
this.Key = 'Key' in params ? params.Key : null;
this.KeyLen = 'KeyLen' in params ? params.KeyLen : null;
this.Ref = 'Ref' in params ? params.Ref : null;
this.Rows = 'Rows' in params ? params.Rows : null;
this.Filtered = 'Filtered' in params ? params.Filtered : null;
this.Extra = 'Extra' in params ? params.Extra : null;
}
}
/**
* Backup statistics object
* @class
*/
class BackupStatisticsModel extends AbstractModel {
constructor(){
super();
/**
* <p>Average size of total backup per day in Byte</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.AverageSizePerDay = null;
/**
* <p>Backup size of data, in Byte</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.DataBackupSize = null;
/**
* <p>Log backup size in Byte</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.LogBackupSize = null;
/**
* <p>Total backup count</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalCount = null;
/**
* <p>Total backup size in Byte</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TotalSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AverageSizePerDay = 'AverageSizePerDay' in params ? params.AverageSizePerDay : null;
this.DataBackupSize = 'DataBackupSize' in params ? params.DataBackupSize : null;
this.LogBackupSize = 'LogBackupSize' in params ? params.LogBackupSize : null;
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.TotalSize = 'TotalSize' in params ? params.TotalSize : null;
}
}
/**
* ResetUsersPassword request structure.
* @class
*/
class ResetUsersPasswordRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Instance id</p>
* @type {string || null}
*/
this.InstanceId = null;
/**
* <p>Reset user password list</p>
* @type {Array.<ResetUserPasswordInfo> || null}
*/
this.Users = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
if (params.Users) {
this.Users = new Array();
for (let z in params.Users) {
let obj = new ResetUserPasswordInfo();
obj.deserialize(params.Users[z]);
this.Users.push(obj);
}
}
}
}
/**
* Backup policy object
* @class
*/
class BackupPolicyModelOutPut extends AbstractModel {
constructor(){
super();
/**
* <p>Backup end time</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.BackupEndTime = null;
/**
* <p>Backup method</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.BackupMethod = null;
/**
* <p>Backup start time</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.BackupStartTime = null;
/**
* <p>Engine type</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DBType = null;
/**
* <p>Engine version</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DBVersion = null;
/**
* <p>Whether full backup is enabled</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.EnableFull = null;
/**
* <p>Whether to enable log backup</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.EnableLog = null;
/**
* <p>Expected next backup time</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExpectedNextBackupPeriod = null;
/**
* <p>Full backup retention time</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.FullRetentionPeriod = null;
/**
* <p>Policy ID</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ID = null;
/**
* <p>Instance ID.</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceId = null;
/**
* <p>Log retention days</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.LogRetentionPeriod = null;
/**
* <p>Days of the week to perform backup</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PeriodTime = null;
/**
* <p>Region</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Region = null;
/**
* <p>Backup cycle type 0:Weekly</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.PeriodType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BackupEndTime = 'BackupEndTime' in params ? params.BackupEndTime : null;
this.BackupMethod = 'BackupMethod' in params ? params.BackupMethod : null;
this.BackupStartTime = 'BackupStartTime' in params ? params.BackupStartTime : null;
this.DBType = 'DBType' in params ? params.DBType : null;
this.DBVersion = 'DBVersion' in params ? params.DBVersion : null;
this.EnableFull = 'EnableFull' in params ? params.EnableFull : null;
this.EnableLog = 'EnableLog' in params ? params.EnableLog : null;
this.ExpectedNextBackupPeriod = 'ExpectedNextBackupPeriod' in params ? params.ExpectedNextBackupPeriod : null;
this.FullRetentionPeriod = 'FullRetentionPeriod' in params ? params.FullRetentionPeriod : null;
this.ID = 'ID' in params ? params.ID : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.LogRetentionPeriod = 'LogRetentionPeriod' in params ? params.LogRetentionPeriod : null;
this.PeriodTime = 'PeriodTime' in params ? params.PeriodTime : null;
this.Region = 'Region' in params ? params.Region : null;
this.PeriodType = 'PeriodType' in params ? params.PeriodType : null;
}
}
/**
* ModifyInstanceSSLStatus request structure.
* @class
*/
class ModifyInstanceSSLStatusRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Instance ID.</p>
* @type {string || null}
*/
this.InstanceId = null;
/**
* <p>Whether to enable SSL.</p>
* @type {boolean || null}
*/
this.Enabled = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.Enabled = 'Enabled' in params ? params.Enabled : null;
}
}
/**
* ModifyInstanceName response structure.
* @class
*/
class ModifyInstanceNameResponse 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;
}
}
/**
* DescribeDBSBackupStatisticsDetail request structure.
* @class
*/
class DescribeDBSBackupStatisticsDetailRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Instance ID.</p>
* @type {string || null}
*/
this.InstanceId = null;
/**
* <p>End time.</p>
* @type {string || null}
*/
this.EndTime = null;
/**
* <p>Start time.</p>
* @type {string || null}
*/
this.StartTime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
}
}
/**
* DescribeDBParameters response structure.
* @class
*/
class DescribeDBParametersResponse extends AbstractModel {
constructor(){
super();
/**
* Instance ID, for example: tdsql3-ow728lmc.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Request the current parameter value of the instance.
* @type {Array.<ParamDesc> || null}
*/
this.Params = 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.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
if (params.Params) {
this.Params = new Array();
for (let z in params.Params) {
let obj = new ParamDesc();
obj.deserialize(params.Params[z]);
this.Params.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Node specification for storage
* @class
*/
class StorageNodeSpec extends AbstractModel {
constructor(){
super();
/**
* <p>Specification code</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SpecCode = null;
/**
* <p>CPU cores of the storage node</p>
* @type {number || null}
*/
this.StorageNodeCpu = null;
/**
* <p>Storage node memory size</p>
* @type {number || null}
*/
this.StorageNodeMem = null;
/**
* <p>Maximum quantity of storage nodes</p>
* @type {number || null}
*/
this.StorageNodeMaxNum = null;
/**
* <p>Node disk size capacity limit</p>
* @type {number || null}
*/
this.StorageNodeMaxDisk = null;
/**
* <p>Minimum number of storage nodes</p>
* @type {number || null}
*/
this.StorageNodeMinNum = null;
/**
* <p>Node disk size minimum</p>
* @type {number || null}
*/
this.StorageNodeMinDisk = null;
/**
* <p>Disk Type, CLOUD_HSSD enhanced SSD, CLOUD_TCS local SSD disk</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.StorageType = null;
/**
* <p>Default disk size of storage node for frontend display</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.StorageNodeDefaultDisk = null;
/**
* <p>Specification support billing mode list</p>
* @type {Array.<string> || null}
*/
this.InstanceMode = null;
/**
* <p>Disk Type CLOUD_DISK: cloud disk LOCAL_DISK: local disk</p>
* @type {string || null}
*/
this.DiskTypeCategory = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SpecCode = 'SpecCode' in params ? params.SpecCode : null;
this.StorageNodeCpu = 'StorageNodeCpu' in params ? params.StorageNodeCpu : null;
this.StorageNodeMem = 'StorageNodeMem' in params ? params.StorageNodeMem : null;
this.StorageNodeMaxNum = 'StorageNodeMaxNum' in params ? params.StorageNodeMaxNum : null;
this.StorageNodeMaxDisk = 'StorageNodeMaxDisk' in params ? params.StorageNodeMaxDisk : null;
this.StorageNodeMinNum = 'StorageNodeMinNum' in params ? params.StorageNodeMinNum : null;
this.StorageNodeMinDisk = 'StorageNodeMinDisk' in params ? params.StorageNodeMinDisk : null;
this.StorageType = 'StorageType' in params ? params.StorageType : null;
this.StorageNodeDefaultDisk = 'StorageNodeDefaultDisk' in params ? params.StorageNodeDefaultDisk : null;
this.InstanceMode = 'InstanceMode' in params ? params.InstanceMode : null;
this.DiskTypeCategory = 'DiskTypeCategory' in params ? params.DiskTypeCategory : null;
}
}
/**
* IsolateDBInstance response structure.
* @class
*/
class IsolateDBInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* Isolation successful instance Id list.
* @type {Array.<string> || null}
*/
this.SuccessInstanceIds = null;
/**
* Isolation failed instance Id list.
* @type {Array.<string> || null}
*/
this.FailedInstanceIds = 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.SuccessInstanceIds = 'SuccessInstanceIds' in params ? params.SuccessInstanceIds : null;
this.FailedInstanceIds = 'FailedInstanceIds' in params ? params.FailedInstanceIds : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ResetUserPassword response structure.
* @class
*/
class ResetUserPasswordResponse 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;
}
}
/**
* DescribeInstanceSSLStatus response structure.
* @class
*/
class DescribeInstanceSSLStatusResponse extends AbstractModel {
constructor(){
super();
/**
* <p>SSL enable status</p><p>Enumeration values:</p><ul><li>Enabled: SSL is on</li><li>Disabled: SSL is closed</li><li>Enabling: SSL is enabling</li><li>Disabling: SSL is disabling</li></ul>
* @type {string || null}
*/
this.SSLStatus = 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.SSLStatus = 'SSLStatus' in params ? params.SSLStatus : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteDBSBackupSets response structure.
* @class
*/
class DeleteDBSBackupSetsResponse extends AbstractModel {
constructor(){
super();
/**
* <P>Number of backups deleted this time.</p>
* @type {number || null}
*/
this.Deleted = null;
/**
* <P>Whether all are deleted successfully.</p>
* @type {boolean || null}
*/
this.IsSuccess = null;
/**
* <P>Total number of backups to be deleted.</p>
* @type {number || null}
*/
this.Total = 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.Deleted = 'Deleted' in params ? params.Deleted : null;
this.IsSuccess = 'IsSuccess' in params ? params.IsSuccess : null;
this.Total = 'Total' in params ? params.Total : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeFlow response structure.
* @class
*/
class DescribeFlowResponse 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;
}
}
/**
* Maintenance window configuration
* @class
*/
class MaintenanceWindowInfo extends AbstractModel {
constructor(){
super();
/**
*
* @type {number || null}
*/
this.StartTime = null;
/**
*
* @type {number || null}
*/
this.Duration = null;
/**
*
* @type {Array.<string> || null}
*/
this.WeekDays = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.Duration = 'Duration' in params ? params.Duration : null;
this.WeekDays = 'WeekDays' in params ? params.WeekDays : null;
}
}
/**
* DescribeDBSBackupStatisticsDetail response structure.
* @class
*/
class DescribeDBSBackupStatisticsDetailResponse extends AbstractModel {
constructor(){
super();
/**
* <p>Statistics by backup method</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {BackupMethodStatisticsOutPut || null}
*/
this.BackupMethodStatistics = null;
/**
* <p>Backup time</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.BackupTime = null;
/**
* <p>Data type statistics by backup</p>
Note: This field may return null, indicating that no valid values can be obtained.
* @type {BackupTypeStatisticsModel || null}
*/
this.BackupTypeStatistics = 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.BackupMethodStatistics) {
let obj = new BackupMethodStatisticsOutPut();
obj.deserialize(params.BackupMethodStatistics)
this.BackupMethodStatistics = obj;
}
this.BackupTime = 'BackupTime' in params ? params.BackupTime : null;
if (params.BackupTypeStatistics) {
let obj = new BackupTypeStatisticsModel();
obj.deserialize(params.BackupTypeStatistics)
this.BackupTypeStatistics = obj;
}
this.RequestId = 'RequestId' in