UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,933 lines (1,631 loc) 373 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"); /** * DescribeRoles response structure. * @class */ class DescribeRolesResponse extends AbstractModel { constructor(){ super(); /** * Number of records. * @type {number || null} */ this.TotalCount = null; /** * Array of roles. * @type {Array.<Role> || null} */ this.RoleSets = null; /** * The unique request ID, which is returned for each request. 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.RoleSets) { this.RoleSets = new Array(); for (let z in params.RoleSets) { let obj = new Role(); obj.deserialize(params.RoleSets[z]); this.RoleSets.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeBindClusters response structure. * @class */ class DescribeBindClustersResponse extends AbstractModel { constructor(){ super(); /** * The number of dedicated clusters * @type {number || null} */ this.TotalCount = null; /** * List of dedicated clusters * @type {Array.<BindCluster> || null} */ this.ClusterSet = null; /** * The unique request ID, which is returned for each request. 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.ClusterSet) { this.ClusterSet = new Array(); for (let z in params.ClusterSet) { let obj = new BindCluster(); obj.deserialize(params.ClusterSet[z]); this.ClusterSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeRabbitMQVirtualHost response structure. * @class */ class DescribeRabbitMQVirtualHostResponse extends AbstractModel { constructor(){ super(); /** * Returned number of vhosts * @type {number || null} */ this.TotalCount = null; /** * List of vhost details * @type {Array.<RabbitMQVirtualHostInfo> || null} */ this.VirtualHostList = null; /** * The unique request ID, which is returned for each request. 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.VirtualHostList) { this.VirtualHostList = new Array(); for (let z in params.VirtualHostList) { let obj = new RabbitMQVirtualHostInfo(); obj.deserialize(params.VirtualHostList[z]); this.VirtualHostList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * cmq DeadLetterPolicy * @class */ class CmqDeadLetterPolicy extends AbstractModel { constructor(){ super(); /** * Dead letter queue. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DeadLetterQueue = null; /** * Dead letter queue policy. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Policy = null; /** * Maximum period in seconds before an unconsumed message expires, which is required if `Policy` is 1. Value range: 300–43200. This value should be smaller than `MsgRetentionSeconds` (maximum message retention period) Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.MaxTimeToLive = null; /** * Maximum number of receipts. Note: this field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.MaxReceiveCount = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DeadLetterQueue = 'DeadLetterQueue' in params ? params.DeadLetterQueue : null; this.Policy = 'Policy' in params ? params.Policy : null; this.MaxTimeToLive = 'MaxTimeToLive' in params ? params.MaxTimeToLive : null; this.MaxReceiveCount = 'MaxReceiveCount' in params ? params.MaxReceiveCount : null; } } /** * DeleteRabbitMQUser request structure. * @class */ class DeleteRabbitMQUserRequest extends AbstractModel { constructor(){ super(); /** * Cluster instance ID * @type {string || null} */ this.InstanceId = null; /** * Username, which is used for login. * @type {string || null} */ this.User = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.User = 'User' in params ? params.User : null; } } /** * RocketMQ namespace information * @class */ class RocketMQNamespace extends AbstractModel { constructor(){ super(); /** * Namespace name, which can contain 3–64 letters, digits, hyphens, and underscores. * @type {string || null} */ this.NamespaceId = null; /** * Retention period for unconsumed messages in milliseconds. Valid range: 60 seconds–15 days. This parameter is disused. * @type {number || null} */ this.Ttl = null; /** * Retention period for persistently stored messages in milliseconds. * @type {number || null} */ this.RetentionTime = null; /** * Description. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Remark = null; /** * Public network access point address. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.PublicEndpoint = null; /** * VPC access point address. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.VpcEndpoint = null; /** * Internal access point address Note: u200dThis field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.InternalEndpoint = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NamespaceId = 'NamespaceId' in params ? params.NamespaceId : null; this.Ttl = 'Ttl' in params ? params.Ttl : null; this.RetentionTime = 'RetentionTime' in params ? params.RetentionTime : null; this.Remark = 'Remark' in params ? params.Remark : null; this.PublicEndpoint = 'PublicEndpoint' in params ? params.PublicEndpoint : null; this.VpcEndpoint = 'VpcEndpoint' in params ? params.VpcEndpoint : null; this.InternalEndpoint = 'InternalEndpoint' in params ? params.InternalEndpoint : null; } } /** * DescribeSubscriptions request structure. * @class */ class DescribeSubscriptionsRequest extends AbstractModel { constructor(){ super(); /** * Environment (namespace) name. * @type {string || null} */ this.EnvironmentId = null; /** * Topic name. * @type {string || null} */ this.TopicName = null; /** * Offset, which defaults to 0 if left empty. * @type {number || null} */ this.Offset = null; /** * The number of results to be returned, which defaults to 10 if left empty. The maximum value is 20. * @type {number || null} */ this.Limit = null; /** * Fuzzy match by subscriber name. * @type {string || null} */ this.SubscriptionName = null; /** * Data filter. * @type {Array.<FilterSubscription> || null} */ this.Filters = null; /** * Pulsar cluster ID * @type {string || null} */ this.ClusterId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.TopicName = 'TopicName' in params ? params.TopicName : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.SubscriptionName = 'SubscriptionName' in params ? params.SubscriptionName : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new FilterSubscription(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; } } /** * DescribeRocketMQGroups request structure. * @class */ class DescribeRocketMQGroupsRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID. * @type {string || null} */ this.ClusterId = null; /** * Namespace. * @type {string || null} */ this.NamespaceId = null; /** * Offset. * @type {number || null} */ this.Offset = null; /** * The max number of returned results. * @type {number || null} */ this.Limit = null; /** * Topic name, which can be used to query all subscription groups under the topic * @type {string || null} */ this.FilterTopic = null; /** * Consumer group query by consumer group name. Fuzzy query is supported * @type {string || null} */ this.FilterGroup = null; /** * Sort by specified field. Valid values: `tps`, `accumulative`. * @type {string || null} */ this.SortedBy = null; /** * Sort in ascending or descending order. Valid values: `asc`, `desc`. * @type {string || null} */ this.SortOrder = null; /** * Subscription group name. After it is specified, the information of only this subscription group will be returned. * @type {string || null} */ this.FilterOneGroup = null; /** * Group type * @type {Array.<string> || null} */ this.Types = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.NamespaceId = 'NamespaceId' in params ? params.NamespaceId : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.FilterTopic = 'FilterTopic' in params ? params.FilterTopic : null; this.FilterGroup = 'FilterGroup' in params ? params.FilterGroup : null; this.SortedBy = 'SortedBy' in params ? params.SortedBy : null; this.SortOrder = 'SortOrder' in params ? params.SortOrder : null; this.FilterOneGroup = 'FilterOneGroup' in params ? params.FilterOneGroup : null; this.Types = 'Types' in params ? params.Types : null; } } /** * CreateRocketMQGroup request structure. * @class */ class CreateRocketMQGroupRequest extends AbstractModel { constructor(){ super(); /** * Group name (8–64 characters) * @type {string || null} */ this.GroupId = null; /** * Namespace. Currently, only one namespace is supported * @type {Array.<string> || null} */ this.Namespaces = null; /** * Whether to enable consumption * @type {boolean || null} */ this.ReadEnable = null; /** * Whether to enable broadcast consumption * @type {boolean || null} */ this.BroadcastEnable = null; /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Remarks (up to 128 characters) * @type {string || null} */ this.Remark = null; /** * Group type (`TCP`, `HTTP`) * @type {string || null} */ this.GroupType = null; /** * The maximum number of retries for a group * @type {number || null} */ this.RetryMaxTimes = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.Namespaces = 'Namespaces' in params ? params.Namespaces : null; this.ReadEnable = 'ReadEnable' in params ? params.ReadEnable : null; this.BroadcastEnable = 'BroadcastEnable' in params ? params.BroadcastEnable : null; this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Remark = 'Remark' in params ? params.Remark : null; this.GroupType = 'GroupType' in params ? params.GroupType : null; this.RetryMaxTimes = 'RetryMaxTimes' in params ? params.RetryMaxTimes : null; } } /** * ModifyRabbitMQVirtualHost request structure. * @class */ class ModifyRabbitMQVirtualHostRequest extends AbstractModel { constructor(){ super(); /** * Cluster instance ID * @type {string || null} */ this.InstanceId = null; /** * Vhost name * @type {string || null} */ this.VirtualHost = null; /** * Description * @type {string || null} */ this.Description = null; /** * Message trace flag. Valid values: `true` (Enabled), `false` (Disabled). * @type {boolean || null} */ this.TraceFlag = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.VirtualHost = 'VirtualHost' in params ? params.VirtualHost : null; this.Description = 'Description' in params ? params.Description : null; this.TraceFlag = 'TraceFlag' in params ? params.TraceFlag : null; } } /** * ModifyEnvironmentAttributes request structure. * @class */ class ModifyEnvironmentAttributesRequest extends AbstractModel { constructor(){ super(); /** * Namespace name. * @type {string || null} */ this.EnvironmentId = null; /** * Retention period for unconsumed messages in seconds. Value range: 60s to 1,296,000s (or 15 days). * @type {number || null} */ this.MsgTTL = null; /** * Remarks (up to 128 characters). * @type {string || null} */ this.Remark = null; /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Message retention policy * @type {RetentionPolicy || null} */ this.RetentionPolicy = null; /** * Whether to enable "Auto-Create Subscription" * @type {boolean || null} */ this.AutoSubscriptionCreation = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.MsgTTL = 'MsgTTL' in params ? params.MsgTTL : null; this.Remark = 'Remark' in params ? params.Remark : null; this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; if (params.RetentionPolicy) { let obj = new RetentionPolicy(); obj.deserialize(params.RetentionPolicy) this.RetentionPolicy = obj; } this.AutoSubscriptionCreation = 'AutoSubscriptionCreation' in params ? params.AutoSubscriptionCreation : null; } } /** * DeleteCluster response structure. * @class */ class DeleteClusterResponse extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SendBatchMessages response structure. * @class */ class SendBatchMessagesResponse extends AbstractModel { constructor(){ super(); /** * Unique message ID Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.MessageId = null; /** * Error message. If an empty string is returned, no error occurred. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ErrorMsg = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MessageId = 'MessageId' in params ? params.MessageId : null; this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyCmqSubscriptionAttribute response structure. * @class */ class ModifyCmqSubscriptionAttributeResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * CreateCmqTopic request structure. * @class */ class CreateCmqTopicRequest extends AbstractModel { constructor(){ super(); /** * Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter. * @type {string || null} */ this.TopicName = null; /** * Maximum message length. Value range: 1024–65536 bytes (i.e., 1–64 KB). Default value: 65536. * @type {number || null} */ this.MaxMsgSize = null; /** * Used to specify the message match policy for the topic. 1: tag match policy (default value); 2: routing match policy. * @type {number || null} */ this.FilterType = null; /** * Message retention period. Value range: 60–86400 seconds (i.e., 1 minute–1 day). Default value: 86400. * @type {number || null} */ this.MsgRetentionSeconds = null; /** * Whether to enable message trace. true: yes; false: no. If this field is left empty, the feature will not be enabled. * @type {boolean || null} */ this.Trace = null; /** * Tag array. * @type {Array.<Tag> || null} */ this.Tags = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TopicName = 'TopicName' in params ? params.TopicName : null; this.MaxMsgSize = 'MaxMsgSize' in params ? params.MaxMsgSize : null; this.FilterType = 'FilterType' in params ? params.FilterType : null; this.MsgRetentionSeconds = 'MsgRetentionSeconds' in params ? params.MsgRetentionSeconds : null; this.Trace = 'Trace' in params ? params.Trace : 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); } } } } /** * TDMQ for Pulsar pro cluster specification information * @class */ class PulsarProClusterSpecInfo extends AbstractModel { constructor(){ super(); /** * Cluster specification name * @type {string || null} */ this.SpecName = null; /** * Peak TPS * @type {number || null} */ this.MaxTps = null; /** * Peak bandwidth in Mbps * @type {number || null} */ this.MaxBandWidth = null; /** * Maximum number of namespaces * @type {number || null} */ this.MaxNamespaces = null; /** * Maximum number of topic partitions * @type {number || null} */ this.MaxTopics = null; /** * Elastic TPS beyond the specification Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.ScalableTps = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SpecName = 'SpecName' in params ? params.SpecName : null; this.MaxTps = 'MaxTps' in params ? params.MaxTps : null; this.MaxBandWidth = 'MaxBandWidth' in params ? params.MaxBandWidth : null; this.MaxNamespaces = 'MaxNamespaces' in params ? params.MaxNamespaces : null; this.MaxTopics = 'MaxTopics' in params ? params.MaxTopics : null; this.ScalableTps = 'ScalableTps' in params ? params.ScalableTps : null; } } /** * TDMQ for RocketMQ topic distribution * @class */ class RocketMQTopicDistribution extends AbstractModel { constructor(){ super(); /** * Topic type * @type {string || null} */ this.TopicType = null; /** * Number of topics * @type {number || null} */ this.Count = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TopicType = 'TopicType' in params ? params.TopicType : null; this.Count = 'Count' in params ? params.Count : null; } } /** * DescribeRocketMQNamespaces response structure. * @class */ class DescribeRocketMQNamespacesResponse extends AbstractModel { constructor(){ super(); /** * List of namespaces * @type {Array.<RocketMQNamespace> || null} */ this.Namespaces = null; /** * The total number of returned results. * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Namespaces) { this.Namespaces = new Array(); for (let z in params.Namespaces) { let obj = new RocketMQNamespace(); obj.deserialize(params.Namespaces[z]); this.Namespaces.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyRocketMQInstanceSpec request structure. * @class */ class ModifyRocketMQInstanceSpecRequest extends AbstractModel { constructor(){ super(); /** * ID of the exclusive instance * @type {string || null} */ this.InstanceId = null; /** * Instance specification. Valid values: `rocket-vip-basic-1` (Basic), `rocket-vip-basic-2` (Standard), `rocket-vip-basic-3` (Advanced I), `rocket-vip-basic-4` (Advanced II). * @type {string || null} */ this.Specification = null; /** * Node count * @type {number || null} */ this.NodeCount = null; /** * Storage space in GB * @type {number || null} */ this.StorageSize = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.Specification = 'Specification' in params ? params.Specification : null; this.NodeCount = 'NodeCount' in params ? params.NodeCount : null; this.StorageSize = 'StorageSize' in params ? params.StorageSize : null; } } /** * Information of dedicated clusters * @class */ class BindCluster extends AbstractModel { constructor(){ super(); /** * Name of a physical cluster. * @type {string || null} */ this.ClusterName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterName = 'ClusterName' in params ? params.ClusterName : null; } } /** * Sort by field * @class */ class Sort extends AbstractModel { constructor(){ super(); /** * Sorting field. * @type {string || null} */ this.Name = null; /** * Ascending order: `ASC`; descending order: `DESC`. * @type {string || null} */ this.Order = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Order = 'Order' in params ? params.Order : null; } } /** * ModifyCluster response structure. * @class */ class ModifyClusterResponse extends AbstractModel { constructor(){ super(); /** * Pulsar cluster ID * @type {string || null} */ this.ClusterId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SendRocketMQMessage request structure. * @class */ class SendRocketMQMessageRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Namespace ID * @type {string || null} */ this.NamespaceId = null; /** * Topic name * @type {string || null} */ this.TopicName = null; /** * Message content * @type {string || null} */ this.MsgBody = null; /** * Message key * @type {string || null} */ this.MsgKey = null; /** * Message tag * @type {string || null} */ this.MsgTag = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.NamespaceId = 'NamespaceId' in params ? params.NamespaceId : null; this.TopicName = 'TopicName' in params ? params.TopicName : null; this.MsgBody = 'MsgBody' in params ? params.MsgBody : null; this.MsgKey = 'MsgKey' in params ? params.MsgKey : null; this.MsgTag = 'MsgTag' in params ? params.MsgTag : null; } } /** * TDMQ for RabbitMQ exclusive vhost * @class */ class RabbitMQPrivateVirtualHost extends AbstractModel { constructor(){ super(); /** * Vhost name Note: u200dThis field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.VirtualHostName = null; /** * Vhost description Note: u200dThis field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VirtualHostName = 'VirtualHostName' in params ? params.VirtualHostName : null; this.Description = 'Description' in params ? params.Description : null; } } /** * Information of TDMQ for RocketMQ exclusive instances * @class */ class RocketMQVipInstance extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Instance name * @type {string || null} */ this.InstanceName = null; /** * Instance version Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.InstanceVersion = null; /** * Instance status. Valid values: `0` (Creating), `1` (Normal), `2` (Isolated), `3` (Terminated), `4` (Abnormal), `5` (Delivery failed). * @type {number || null} */ this.Status = null; /** * Number of nodes * @type {number || null} */ this.NodeCount = null; /** * Instance specification name * @type {string || null} */ this.ConfigDisplay = null; /** * Peak TPS * @type {number || null} */ this.MaxTps = null; /** * Peak bandwidth in Mbps * @type {number || null} */ this.MaxBandWidth = null; /** * Storage capacity in GB * @type {number || null} */ this.MaxStorage = null; /** * Instance expiration time in milliseconds * @type {number || null} */ this.ExpireTime = null; /** * Renewal mode. Valid values: `0` (Manual renewal, which is the default mode), `1` (Auto-renewal), `2` (Manual renewal, which is specified by users). * @type {number || null} */ this.AutoRenewFlag = null; /** * Payment mode. 0: Postpaid; 1: Prepaid. * @type {number || null} */ this.PayMode = null; /** * Remarks Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Remark = null; /** * Instance specification ID * @type {string || null} */ this.SpecName = null; /** * The maximum message retention period in hours Note: u200dThis field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.MaxRetention = null; /** * The minimum message retention period in hours Note: u200dThis field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.MinRetention = null; /** * Instance message retention period in hours Note: u200dThis field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Retention = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.InstanceVersion = 'InstanceVersion' in params ? params.InstanceVersion : null; this.Status = 'Status' in params ? params.Status : null; this.NodeCount = 'NodeCount' in params ? params.NodeCount : null; this.ConfigDisplay = 'ConfigDisplay' in params ? params.ConfigDisplay : null; this.MaxTps = 'MaxTps' in params ? params.MaxTps : null; this.MaxBandWidth = 'MaxBandWidth' in params ? params.MaxBandWidth : null; this.MaxStorage = 'MaxStorage' in params ? params.MaxStorage : null; this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null; this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null; this.PayMode = 'PayMode' in params ? params.PayMode : null; this.Remark = 'Remark' in params ? params.Remark : null; this.SpecName = 'SpecName' in params ? params.SpecName : null; this.MaxRetention = 'MaxRetention' in params ? params.MaxRetention : null; this.MinRetention = 'MinRetention' in params ? params.MinRetention : null; this.Retention = 'Retention' in params ? params.Retention : null; } } /** * TDMQ for RabbitMQ exclusive instance information * @class */ class RabbitMQVipInstance extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Instance name * @type {string || null} */ this.InstanceName = null; /** * Instance version Note: This field may return null, indicating that no valid value can be obtained. * @type {string || null} */ this.InstanceVersion = null; /** * Instance status. Valid values: `0` (Creating), `1` (Normal), `2` (Isolated), `3` (Terminated), `4` (Abnormal), `5` (Delivery failed). * @type {number || null} */ this.Status = null; /** * Number of nodes * @type {number || null} */ this.NodeCount = null; /** * Instance specification name * @type {string || null} */ this.ConfigDisplay = null; /** * Peak TPS * @type {number || null} */ this.MaxTps = null; /** * Peak bandwidth in Mbps * @type {number || null} */ this.MaxBandWidth = null; /** * Storage capacity in GB * @type {number || null} */ this.MaxStorage = null; /** * Instance expiration time in milliseconds * @type {number || null} */ this.ExpireTime = null; /** * Renewal mode. Valid values: `0` (Manual renewal, which is the default mode), `1` (Auto-renewal), `2` (Manual renewal, which is specified by users). * @type {number || null} */ this.AutoRenewFlag = null; /** * Payment mode. `0`: Postpaid; `1`: Prepaid. * @type {number || null} */ this.PayMode = null; /** * Remarks Note: This field may return null, indicating that no valid value can be obtained. * @type {string || null} */ this.Remark = null; /** * Instance specification ID * @type {string || null} */ this.SpecName = null; /** * Cluster exception Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ExceptionInformation = null; /** * Instance status. Valid values: `0` (Creating), `1` (Normal), `2` (Isolated), `3` (Terminated), `4` (Abnormal), `5` (Delivery failed). This parameter is used to display the instance status additionally and distinguish from the `Status` parameter. * @type {number || null} */ this.ClusterStatus = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.InstanceVersion = 'InstanceVersion' in params ? params.InstanceVersion : null; this.Status = 'Status' in params ? params.Status : null; this.NodeCount = 'NodeCount' in params ? params.NodeCount : null; this.ConfigDisplay = 'ConfigDisplay' in params ? params.ConfigDisplay : null; this.MaxTps = 'MaxTps' in params ? params.MaxTps : null; this.MaxBandWidth = 'MaxBandWidth' in params ? params.MaxBandWidth : null; this.MaxStorage = 'MaxStorage' in params ? params.MaxStorage : null; this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null; this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null; this.PayMode = 'PayMode' in params ? params.PayMode : null; this.Remark = 'Remark' in params ? params.Remark : null; this.SpecName = 'SpecName' in params ? params.SpecName : null; this.ExceptionInformation = 'ExceptionInformation' in params ? params.ExceptionInformation : null; this.ClusterStatus = 'ClusterStatus' in params ? params.ClusterStatus : null; } } /** * DescribeCmqQueues response structure. * @class */ class DescribeCmqQueuesResponse extends AbstractModel { constructor(){ super(); /** * The number of queues. * @type {number || null} */ this.TotalCount = null; /** * Queue list. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<CmqQueue> || null} */ this.QueueList = null; /** * The unique request ID, which is returned for each request. 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.QueueList) { this.QueueList = new Array(); for (let z in params.QueueList) { let obj = new CmqQueue(); obj.deserialize(params.QueueList[z]); this.QueueList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateRabbitMQVipInstance request structure. * @class */ class CreateRabbitMQVipInstanceRequest extends AbstractModel { constructor(){ super(); /** * AZ * @type {Array.<number> || null} */ this.ZoneIds = null; /** * VPC ID * @type {string || null} */ this.VpcId = null; /** * VPC subnet ID * @type {string || null} */ this.SubnetId = null; /** * Cluster name * @type {string || null} */ this.ClusterName = null; /** * Node specification (`rabbit-vip-basic-1`: Basic; `rabbit-vip-basic-2`: Standard; `rabbit-vip-basic-3`: Advanced I; `rabbit-vip-basic-4`: Advanced II). If this parameter is left empty, the default value is `rabbit-vip-basic-1`. * @type {string || null} */ this.NodeSpec = null; /** * Number of nodes, which is at least three for multi-AZ deployment. If this parameter is left empty, the value will be set to 1 for single-AZ deployment and 3 for multi-AZ deployment by default. * @type {number || null} */ this.NodeNum = null; /** * Storage capacity of a single node, which is 200 GB by default. * @type {number || null} */ this.StorageSize = null; /** * Whether to enable mirrored queue. Default value: `false`. * @type {boolean || null} */ this.EnableCreateDefaultHaMirrorQueue = null; /** * Whether to enable auto-renewal. Default value: `true`. * @type {boolean || null} */ this.AutoRenewFlag = null; /** * Validity period, which is one month by default. * @type {number || null} */ this.TimeSpan = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneIds = 'ZoneIds' in params ? params.ZoneIds : null; this.VpcId = 'VpcId' in params ? params.VpcId : null; this.SubnetId = 'SubnetId' in params ? params.SubnetId : null; this.ClusterName = 'ClusterName' in params ? params.ClusterName : null; this.NodeSpec = 'NodeSpec' in params ? params.NodeSpec : null; this.NodeNum = 'NodeNum' in params ? params.NodeNum : null; this.StorageSize = 'StorageSize' in params ? params.StorageSize : null; this.EnableCreateDefaultHaMirrorQueue = 'EnableCreateDefaultHaMirrorQueue' in params ? params.EnableCreateDefaultHaMirrorQueue : null; this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null; this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null; } } /** * CreateRabbitMQVirtualHost response structure. * @class */ class CreateRabbitMQVirtualHostResponse extends AbstractModel { constructor(){ super(); /** * Vhost name * @type {string || null} */ this.VirtualHost = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VirtualHost = 'VirtualHost' in params ? params.VirtualHost : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeRabbitMQNodeList request structure. * @class */ class DescribeRabbitMQNodeListRequest extends AbstractModel { constructor(){ super(); /** * TDMQ for RabbitMQ cluster ID * @type {string || null} */ this.InstanceId = null; /** * Offset * @type {number || null} */ this.Offset = null; /** * The maximum entries per page * @type {number || null} */ this.Limit = null; /** * Node name for fuzzy search * @type {string || null} */ this.NodeName = null; /** * Name and value of a filter. Currently, only the `nodeStatus` filter is supported. Valid values: `running`, `down`. It is an array type and can contain multiple filters. * @type {Array.<Filter> || null} */ this.Filters = null; /** * Sorting by a specified element. Valid values: `cpuUsage`, `diskUsage`. * @type {string || null} */ this.SortElement = null; /** * Sorting order. Valid values: `ascend`, `descend`. * @type {string || null} */ this.SortOrder = 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.NodeName = 'NodeName' in params ? params.NodeName : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.SortElement = 'SortElement' in params ? params.SortElement : null; this.SortOrder = 'SortOrder' in params ? params.SortOrder : null; } } /** * PublishCmqMsg request structure. * @class */ class PublishCmqMsgRequest extends AbstractModel { constructor(){ super(); /** * Topic name * @type {string || null} */ this.TopicName = null; /** * Message content. The total message size is up to 1,024 KB. * @type {string || null} */ this.MsgContent = null; /** * Message tag. You can pass in multiple tags or a single route. Each tag or route can contain up to 64 characters. * @type {Array.<string> || null} */ this.MsgTag = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TopicName = 'TopicName' in params ? params.TopicName : null; this.MsgContent = 'MsgContent' in params ? params.MsgContent : null; this.MsgTag = 'MsgTag' in params ? params.MsgTag : null; } } /** * Instance configurations of a TDMQ for RocketMQ exclusive cluster * @class */ class RocketMQInstanceConfig extends AbstractModel { constructor(){ super(); /** * Maximum TPS per namespace * @type {number || null} */ this.MaxTpsPerNamespace = null; /** * Maximum number of namespaces * @type {number || null} */ this.MaxNamespaceNum = null; /** * Number of used namespaces * @type {number || null} */ this.UsedNamespaceNum = null; /** * Maximum number of topics * @type {number || null} */ this.MaxTopicNum = null; /** * Number of used topics * @type {number || null} */ this.UsedTopicNum = null; /** * Maximum number of groups * @type {number || null} */ this.MaxGroupNum = null; /** * Number of used groups * @type {number || null} */ this.UsedGroupNum = null; /** * Cluster type * @type {string || null} */ this.ConfigDisplay = null; /** * Number of nodes in the cluster * @type {number || null} */ this.NodeCount = null; /** * Node distribution * @type {Array.<InstanceNodeDistribution> || null} */ this.NodeDistribution = null; /** * Topic distribution * @type {Array.<RocketMQTopicDistribution> || null} */ this.TopicDistribution = null; /** * * @type