UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
2,004 lines (1,685 loc) • 523 kB
/* * 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"); /** * UpgradeProxyVersion response structure. * @class */ class UpgradeProxyVersionResponse extends AbstractModel { constructor(){ super(); /** * Async flow ID * @type {number || null} */ this.FlowId = null; /** * Async task 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.FlowId = 'FlowId' in params ? params.FlowId : null; this.TaskId = 'TaskId' in params ? params.TaskId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyMaintainPeriodConfig request structure. * @class */ class ModifyMaintainPeriodConfigRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Maintenance start time in seconds. For example, 03:00 AM is represented by 10800 * @type {number || null} */ this.MaintainStartTime = null; /** * Maintenance duration in seconds. For example, one hour is represented by 3600 * @type {number || null} */ this.MaintainDuration = null; /** * Maintenance days of the week. Valid values: [Mon, Tue, Wed, Thu, Fri, Sat, Sun]. * @type {Array.<string> || null} */ this.MaintainWeekDays = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.MaintainStartTime = 'MaintainStartTime' in params ? params.MaintainStartTime : null; this.MaintainDuration = 'MaintainDuration' in params ? params.MaintainDuration : null; this.MaintainWeekDays = 'MaintainWeekDays' in params ? params.MaintainWeekDays : null; } } /** * ModifyClusterReadOnly response structure. * @class */ class ModifyClusterReadOnlyResponse extends AbstractModel { constructor(){ super(); /** * List of cluster task ids. * @type {Array.<ClusterTaskId> || null} */ this.ClusterTaskIds = 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.ClusterTaskIds) { this.ClusterTaskIds = new Array(); for (let z in params.ClusterTaskIds) { let obj = new ClusterTaskId(); obj.deserialize(params.ClusterTaskIds[z]); this.ClusterTaskIds.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeResourcePackageDetail response structure. * @class */ class DescribeResourcePackageDetailResponse extends AbstractModel { constructor(){ super(); /** * Total number of deducted resource packs * @type {number || null} */ this.Total = null; /** * Resource pack details * @type {Array.<PackageDetail> || null} */ this.Detail = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Total = 'Total' in params ? params.Total : null; if (params.Detail) { this.Detail = new Array(); for (let z in params.Detail) { let obj = new PackageDetail(); obj.deserialize(params.Detail[z]); this.Detail.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SearchClusterTables request structure. * @class */ class SearchClusterTablesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Database name * @type {string || null} */ this.Database = null; /** * Data table name * @type {string || null} */ this.Table = null; /** * Data table type. Valid values: `view`: Only return to view, `base_table`: Only return to basic table, `all`: Return to view and table. * @type {string || null} */ this.TableType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Database = 'Database' in params ? params.Database : null; this.Table = 'Table' in params ? params.Table : null; this.TableType = 'TableType' in params ? params.TableType : null; } } /** * DescribeMaintainPeriod request structure. * @class */ class DescribeMaintainPeriodRequest 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; } } /** * DescribeProjectSecurityGroups response structure. * @class */ class DescribeProjectSecurityGroupsResponse extends AbstractModel { constructor(){ super(); /** * Security group details * @type {Array.<SecurityGroup> || null} */ this.Groups = null; /** * The total number of groups * @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; } 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.Total = 'Total' in params ? params.Total : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeClusterDatabaseTables request structure. * @class */ class DescribeClusterDatabaseTablesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Database name * @type {string || null} */ this.Db = null; /** * Offset * @type {number || null} */ this.Offset = null; /** * Number * @type {number || null} */ this.Limit = null; /** * Specifies the table type. Specifies that "view" only returns the view, "base_table" only returns the basic table, and "all" returns both the view and the table. the default value is all. * @type {string || null} */ this.TableType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Db = 'Db' in params ? params.Db : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.TableType = 'TableType' in params ? params.TableType : null; } } /** * DescribeClusterParams response structure. * @class */ class DescribeClusterParamsResponse extends AbstractModel { constructor(){ super(); /** * Number of parameters * @type {number || null} */ this.TotalCount = null; /** * Instance parameter list. * @type {Array.<ParamInfo> || 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 ParamInfo(); obj.deserialize(params.Items[z]); this.Items.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * RefundResourcePackage response structure. * @class */ class RefundResourcePackageResponse extends AbstractModel { constructor(){ super(); /** * Each item has only one `dealName`, through which you can ensure the idempotency of the delivery API. * @type {Array.<string> || null} */ this.DealNames = 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.DealNames = 'DealNames' in params ? params.DealNames : null; this.RequestId = 'RequestId' in params ? params.RequestId : 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; } } /** * DescribeParamTemplates request structure. * @class */ class DescribeParamTemplatesRequest extends AbstractModel { constructor(){ super(); /** * Database engine version number * @type {Array.<string> || null} */ this.EngineVersions = null; /** * Template name * @type {Array.<string> || null} */ this.TemplateNames = null; /** * Template ID * @type {Array.<number> || null} */ this.TemplateIds = null; /** * Database Type. Valid values: `NORMAL`, `SERVERLESS`. * @type {Array.<string> || null} */ this.DbModes = null; /** * Offset for query * @type {number || null} */ this.Offset = null; /** * Limit on queries * @type {number || null} */ this.Limit = null; /** * Product type of the queried template * @type {Array.<string> || null} */ this.Products = null; /** * Template type * @type {Array.<string> || null} */ this.TemplateTypes = null; /** * Version type * @type {Array.<string> || null} */ this.EngineTypes = null; /** * The sorting order of the returned results * @type {string || null} */ this.OrderBy = null; /** * Sorting order. Valid values: `desc`, `asc `. * @type {string || null} */ this.OrderDirection = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EngineVersions = 'EngineVersions' in params ? params.EngineVersions : null; this.TemplateNames = 'TemplateNames' in params ? params.TemplateNames : null; this.TemplateIds = 'TemplateIds' in params ? params.TemplateIds : null; this.DbModes = 'DbModes' in params ? params.DbModes : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Products = 'Products' in params ? params.Products : null; this.TemplateTypes = 'TemplateTypes' in params ? params.TemplateTypes : null; this.EngineTypes = 'EngineTypes' in params ? params.EngineTypes : null; this.OrderBy = 'OrderBy' in params ? params.OrderBy : null; this.OrderDirection = 'OrderDirection' in params ? params.OrderDirection : null; } } /** * DescribeSlaveZones response structure. * @class */ class DescribeSlaveZonesResponse extends AbstractModel { constructor(){ super(); /** * Secondary AZ. * @type {Array.<string> || null} */ this.SlaveZones = 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.SlaveZones = 'SlaveZones' in params ? params.SlaveZones : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeProxies response structure. * @class */ class DescribeProxiesResponse extends AbstractModel { constructor(){ super(); /** * Number of database proxy groups * @type {number || null} */ this.TotalCount = null; /** * List of database proxy groups. * @type {Array.<ProxyGroupInfo> || null} */ this.ProxyGroupInfos = null; /** * Database proxy node Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<ProxyNodeInfo> || null} */ this.ProxyNodeInfos = 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.ProxyGroupInfos) { this.ProxyGroupInfos = new Array(); for (let z in params.ProxyGroupInfos) { let obj = new ProxyGroupInfo(); obj.deserialize(params.ProxyGroupInfos[z]); this.ProxyGroupInfos.push(obj); } } if (params.ProxyNodeInfos) { this.ProxyNodeInfos = new Array(); for (let z in params.ProxyNodeInfos) { let obj = new ProxyNodeInfo(); obj.deserialize(params.ProxyNodeInfos[z]); this.ProxyNodeInfos.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeClusterDetailDatabases request structure. * @class */ class DescribeClusterDetailDatabasesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Offset. Default value: `0`. * @type {number || null} */ this.Offset = null; /** * Number of returned results. Default value: `20`. Maximum value: `100`. * @type {number || null} */ this.Limit = null; /** * Database name * @type {string || null} */ this.DbName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.DbName = 'DbName' in params ? params.DbName : null; } } /** * CreateClusters response structure. * @class */ class CreateClustersResponse extends AbstractModel { constructor(){ super(); /** * Frozen transaction ID. * @type {string || null} */ this.TranId = null; /** * Order ID * @type {Array.<string> || null} */ this.DealNames = null; /** * Resource ID list (this field is no longer maintained. please use the dealNames field and the DescribeResourcesByDealName query API to obtain resource ids.). * @type {Array.<string> || null} */ this.ResourceIds = null; /** * Cluster ID list. this field is no longer maintained. please use the dealNames field and the DescribeResourcesByDealName query API to get the cluster ID. * @type {Array.<string> || null} */ this.ClusterIds = null; /** * Big order ID Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.BigDealIds = 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.TranId = 'TranId' in params ? params.TranId : null; this.DealNames = 'DealNames' in params ? params.DealNames : null; this.ResourceIds = 'ResourceIds' in params ? params.ResourceIds : null; this.ClusterIds = 'ClusterIds' in params ? params.ClusterIds : null; this.BigDealIds = 'BigDealIds' in params ? params.BigDealIds : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Instance group information * @class */ class CynosdbInstanceGrp extends AbstractModel { constructor(){ super(); /** * User `appId` * @type {number || null} */ this.AppId = null; /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Creation time * @type {string || null} */ this.CreatedTime = null; /** * Deletion time * @type {string || null} */ this.DeletedTime = null; /** * Instance group ID * @type {string || null} */ this.InstanceGrpId = null; /** * Status * @type {string || null} */ this.Status = null; /** * Instance group type. ha: HA group; ro: RO group * @type {string || null} */ this.Type = null; /** * Update time * @type {string || null} */ this.UpdatedTime = null; /** * Private IP * @type {string || null} */ this.Vip = null; /** * Private port * @type {number || null} */ this.Vport = null; /** * Public domain name * @type {string || null} */ this.WanDomain = null; /** * Public IP * @type {string || null} */ this.WanIP = null; /** * Public port * @type {number || null} */ this.WanPort = null; /** * Public network status * @type {string || null} */ this.WanStatus = null; /** * Information of instances contained in instance group * @type {Array.<CynosdbInstance> || null} */ this.InstanceSet = null; /** * VPC ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UniqVpcId = null; /** * Subnet ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UniqSubnetId = null; /** * Information of the old IP Note: This field may return null, indicating that no valid values can be obtained. * @type {OldAddrInfo || null} */ this.OldAddrInfo = null; /** * Task in progress * @type {Array.<string> || null} */ this.ProcessingTasks = null; /** * Task list * @type {Array.<ObjectTask> || null} */ this.Tasks = null; /** * biz_net_service table ID * @type {number || null} */ this.NetServiceId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AppId = 'AppId' in params ? params.AppId : null; this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null; this.DeletedTime = 'DeletedTime' in params ? params.DeletedTime : null; this.InstanceGrpId = 'InstanceGrpId' in params ? params.InstanceGrpId : null; this.Status = 'Status' in params ? params.Status : null; this.Type = 'Type' in params ? params.Type : null; this.UpdatedTime = 'UpdatedTime' in params ? params.UpdatedTime : null; this.Vip = 'Vip' in params ? params.Vip : null; this.Vport = 'Vport' in params ? params.Vport : null; this.WanDomain = 'WanDomain' in params ? params.WanDomain : null; this.WanIP = 'WanIP' in params ? params.WanIP : null; this.WanPort = 'WanPort' in params ? params.WanPort : null; this.WanStatus = 'WanStatus' in params ? params.WanStatus : null; if (params.InstanceSet) { this.InstanceSet = new Array(); for (let z in params.InstanceSet) { let obj = new CynosdbInstance(); obj.deserialize(params.InstanceSet[z]); this.InstanceSet.push(obj); } } this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null; this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null; if (params.OldAddrInfo) { let obj = new OldAddrInfo(); obj.deserialize(params.OldAddrInfo) this.OldAddrInfo = obj; } this.ProcessingTasks = 'ProcessingTasks' in params ? params.ProcessingTasks : null; if (params.Tasks) { this.Tasks = new Array(); for (let z in params.Tasks) { let obj = new ObjectTask(); obj.deserialize(params.Tasks[z]); this.Tasks.push(obj); } } this.NetServiceId = 'NetServiceId' in params ? params.NetServiceId : null; } } /** * ModifyInstanceParam request structure. * @class */ class ModifyInstanceParamRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Instance ID * @type {Array.<string> || null} */ this.InstanceIds = null; /** * List of cluster parameters * @type {Array.<ModifyParamItem> || null} */ this.ClusterParamList = null; /** * List of the instance parameters * @type {Array.<ModifyParamItem> || null} */ this.InstanceParamList = null; /** * Valid values: `yes` (modify in maintenance window), `no` (execute now by default). * @type {string || null} */ this.IsInMaintainPeriod = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null; if (params.ClusterParamList) { this.ClusterParamList = new Array(); for (let z in params.ClusterParamList) { let obj = new ModifyParamItem(); obj.deserialize(params.ClusterParamList[z]); this.ClusterParamList.push(obj); } } if (params.InstanceParamList) { this.InstanceParamList = new Array(); for (let z in params.InstanceParamList) { let obj = new ModifyParamItem(); obj.deserialize(params.InstanceParamList[z]); this.InstanceParamList.push(obj); } } this.IsInMaintainPeriod = 'IsInMaintainPeriod' in params ? params.IsInMaintainPeriod : null; } } /** * Database table information * @class */ class DatabaseTables extends AbstractModel { constructor(){ super(); /** * Database name * @type {string || null} */ this.Database = null; /** * Table name list. * @type {Array.<string> || null} */ this.Tables = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Database = 'Database' in params ? params.Database : null; this.Tables = 'Tables' in params ? params.Tables : null; } } /** * User host permissions * @class */ class UserHostPrivilege extends AbstractModel { constructor(){ super(); /** * Authorized user * @type {string || null} */ this.DbUserName = null; /** * Client IP * @type {string || null} */ this.DbHost = null; /** * User permission * @type {string || null} */ this.DbPrivilege = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DbUserName = 'DbUserName' in params ? params.DbUserName : null; this.DbHost = 'DbHost' in params ? params.DbHost : null; this.DbPrivilege = 'DbPrivilege' in params ? params.DbPrivilege : null; } } /** * ExportResourcePackageDeductDetails response structure. * @class */ class ExportResourcePackageDeductDetailsResponse extends AbstractModel { constructor(){ super(); /** * File detail. * @type {string || null} */ this.FileContent = 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.FileContent = 'FileContent' in params ? params.FileContent : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeClusters request structure. * @class */ class DescribeClustersRequest extends AbstractModel { constructor(){ super(); /** * Engine type. Currently, `MYSQL` is supported. * @type {string || null} */ this.DbType = null; /** * Number of returned results. Default value: 20. Maximum value: 100 * @type {number || null} */ this.Limit = null; /** * Record offset. Default value: 0 * @type {number || null} */ this.Offset = null; /** * Sort by field. Valid values: <li> CREATETIME: creation time</li> <li> PERIODENDTIME: expiration time</li> * @type {string || null} */ this.OrderBy = null; /** * Sorting order. Valid values: <li> ASC: ascending</li> <li> DESC: descending</li> * @type {string || null} */ this.OrderByType = null; /** * Filter. If more than one filter exists, the logical relationship between these filters is `AND`. * @type {Array.<QueryFilter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DbType = 'DbType' in params ? params.DbType : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.OrderBy = 'OrderBy' in params ? params.OrderBy : null; this.OrderByType = 'OrderByType' in params ? params.OrderByType : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new QueryFilter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * OpenReadOnlyInstanceExclusiveAccess response structure. * @class */ class OpenReadOnlyInstanceExclusiveAccessResponse extends AbstractModel { constructor(){ super(); /** * Activation process ID * @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; } } /** * SearchClusterDatabases response structure. * @class */ class SearchClusterDatabasesResponse extends AbstractModel { constructor(){ super(); /** * Database List Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.Databases = 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.Databases = 'Databases' in params ? params.Databases : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateParamTemplate request structure. * @class */ class CreateParamTemplateRequest extends AbstractModel { constructor(){ super(); /** * Template name * @type {string || null} */ this.TemplateName = null; /** * MySQL version number * @type {string || null} */ this.EngineVersion = null; /** * Template description * @type {string || null} */ this.TemplateDescription = null; /** * ID of the template to be copied * @type {number || null} */ this.TemplateId = null; /** * Database type. Valid values: `NORMAL` (default), `SERVERLESS`. * @type {string || null} */ this.DbMode = null; /** * List of the parameters * @type {Array.<ParamItem> || null} */ this.ParamList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TemplateName = 'TemplateName' in params ? params.TemplateName : null; this.EngineVersion = 'EngineVersion' in params ? params.EngineVersion : null; this.TemplateDescription = 'TemplateDescription' in params ? params.TemplateDescription : null; this.TemplateId = 'TemplateId' in params ? params.TemplateId : null; this.DbMode = 'DbMode' in params ? params.DbMode : null; if (params.ParamList) { this.ParamList = new Array(); for (let z in params.ParamList) { let obj = new ParamItem(); obj.deserialize(params.ParamList[z]); this.ParamList.push(obj); } } } } /** * DescribeBackupDownloadUserRestriction request structure. * @class */ class DescribeBackupDownloadUserRestrictionRequest extends AbstractModel { constructor(){ super(); /** * Pagination size * @type {number || null} */ this.Limit = null; /** * Offset. * @type {number || null} */ this.Offset = null; /** * Specifies whether to query only user-level download limits. true - yes, false - no. * @type {boolean || null} */ this.OnlyUserRestriction = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.OnlyUserRestriction = 'OnlyUserRestriction' in params ? params.OnlyUserRestriction : null; } } /** * DescribeClusterDetail request structure. * @class */ class DescribeClusterDetailRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; } } /** * ModifyResourcePackageName request structure. * @class */ class ModifyResourcePackageNameRequest extends AbstractModel { constructor(){ super(); /** * The unique ID of a resource pack * @type {string || null} */ this.PackageId = null; /** * Custom resource pack name, which can contains up to 120 characters. * @type {string || null} */ this.PackageName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PackageId = 'PackageId' in params ? params.PackageId : null; this.PackageName = 'PackageName' in params ? params.PackageName : null; } } /** * Backup file information * @class */ class BackupFileInfo extends AbstractModel { constructor(){ super(); /** * Snapshot file ID, which is deprecated. You need to use `BackupId`. * @type {number || null} */ this.SnapshotId = null; /** * Backup file name * @type {string || null} */ this.FileName = null; /** * Backup file size * @type {number || null} */ this.FileSize = null; /** * Backup start time * @type {string || null} */ this.StartTime = null; /** * Backup end time * @type {string || null} */ this.FinishTime = null; /** * Backup type. Valid values: `snapshot` (snapshot backup), `logic` (logic backup). * @type {string || null} */ this.BackupType = null; /** * Back mode. auto: auto backup; manual: manual backup * @type {string || null} */ this.BackupMethod = null; /** * Backup file status. success: backup succeeded; fail: backup failed; creating: creating backup file; deleting: deleting backup file * @type {string || null} */ this.BackupStatus = null; /** * Backup file time * @type {string || null} */ this.SnapshotTime = null; /** * Backup ID. * @type {number || null} */ this.BackupId = null; /** * Specifies the snapshot type. valid values: full (full snapshot); increment (incremental snapshot). * @type {string || null} */ this.SnapShotType = null; /** * Specifies the remark of the backup file. * @type {string || null} */ this.BackupName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SnapshotId = 'SnapshotId' in params ? params.SnapshotId : null; this.FileName = 'FileName' in params ? params.FileName : null; this.FileSize = 'FileSize' in params ? params.FileSize : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.FinishTime = 'FinishTime' in params ? params.FinishTime : null; this.BackupType = 'BackupType' in params ? params.BackupType : null; this.BackupMethod = 'BackupMethod' in params ? params.BackupMethod : null; this.BackupStatus = 'BackupStatus' in params ? params.BackupStatus : null; this.SnapshotTime = 'SnapshotTime' in params ? params.SnapshotTime : null; this.BackupId = 'BackupId' in params ? params.BackupId : null; this.SnapShotType = 'SnapShotType' in params ? params.SnapShotType : null; this.BackupName = 'BackupName' in params ? params.BackupName : null; } } /** * UpgradeProxy request structure. * @class */ class UpgradeProxyRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Number of CPU cores * @type {number || null} */ this.Cpu = null; /** * Memory * @type {number || null} */ this.Mem = null; /** * Number of nodes in the proxy group * @type {number || null} */ this.ProxyCount = null; /** * ID of the database proxy group (disused) * @type {string || null} */ this.ProxyGroupId = null; /** * Load rebalance mode. Valid values: `auto`, `manual` * @type {string || null} */ this.ReloadBalance = null; /** * Upgrade time. Valid values: `no` (upon upgrade completion), `timeWindow` (upgrade during instance maintenance time) * @type {string || null} */ this.IsInMaintainPeriod = null; /** * Node information of the atabase proxy * @type {Array.<ProxyZone> || null} */ this.ProxyZones = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Cpu = 'Cpu' in params ? params.Cpu : null; this.Mem = 'Mem' in params ? params.Mem : null; this.ProxyCount = 'ProxyCount' in params ? params.ProxyCount : null; this.ProxyGroupId = 'ProxyGroupId' in params ? params.ProxyGroupId : null; this.ReloadBalance = 'ReloadBalance' in params ? params.ReloadBalance : null; this.IsInMaintainPeriod = 'IsInMaintainPeriod' in params ? params.IsInMaintainPeriod : null; if (params.ProxyZones) { this.ProxyZones = new Array(); for (let z in params.ProxyZones) { let obj = new ProxyZone(); obj.deserialize(params.ProxyZones[z]); this.ProxyZones.push(obj); } } } } /** * DescribeBinlogDownloadUrl response structure. * @class */ class DescribeBinlogDownloadUrlResponse extends AbstractModel { constructor(){ super(); /** * Download address * @type {string || null} */ this.DownloadUrl = 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.DownloadUrl = 'DownloadUrl' in params ? params.DownloadUrl : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SwitchClusterVpc request structure. * @class */ class SwitchClusterVpcRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * VPC ID in string * @type {string || null} */ this.UniqVpcId = null; /** * Subnet ID in string * @type {string || null} */ this.UniqSubnetId = null; /** * Valid hours of old IP * @type {number || null} */ this.OldIpReserveHours = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null; this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null; this.OldIpReserveHours = 'OldIpReserveHours' in params ? params.OldIpReserveHours : null; } } /** * CloseProxy request structure. * @class */ class CloseProxyRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Database proxy group ID * @type {string || null} */ this.ProxyGroupId = null; /** * Whether only to disable read/write separation. Valid values: `true`, `false`. * @type {boolean || null} */ this.OnlyCloseRW = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.ProxyGroupId = 'ProxyGroupId' in params ? params.ProxyGroupId : null; this.OnlyCloseRW = 'OnlyCloseRW' in params ? params.OnlyCloseRW : null; } } /** * CloseSSL request structure. * @class */ class CloseSSLRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Instance ID * @type {string || null} */ this.InstanceId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; } } /** * Instance information * @class */ class CynosdbInstance extends AbstractModel { constructor(){ super(); /** * User `Uin` * @type {string || null} */ this.Uin = null; /** * User `AppId` * @type {number || null} */ this.AppId = null; /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Cluster name * @type {string || null} */ this.ClusterName = null; /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Instance name * @type {string || null} */ this.InstanceName = null; /** * Project ID * @type {number || null} */ this.ProjectId = null; /** * Region * @type {string || null} */ this.Region = null; /** * AZ * @type {string || null} */ this.Zone = null; /** * Instance status * @type {string || null} */ this.Status = null; /** * Instance status description * @type {string || null} */ this.StatusDesc = null; /** * Instance type, which is used to indicate whether it is a serverless instance. * @type {string || null} */ this.DbMode = null; /** * Database type * @type {string || null} */ this.DbType = null; /** * Database version * @type {string || null} */ this.DbVersion = null; /** * Number of CPU cores * @type {number || null} */ this.Cpu = null; /** * Memory in GB * @type {number || null} */ this.Memory = null; /** * Storage capacity in GB * @type {number || null} */ this.Storage = null; /** * Instance type * @type {string || null} */ this.InstanceType = null; /** * Current instance role * @type {string || null} */ this.InstanceRole = null; /** * Update time * @type {string || null} */ this.UpdateTime = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; /** * VPC ID * @type {string || null} */ this.VpcId = null;