UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,684 lines (1,430 loc) 656 kB
/* * 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"); /** * 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: This 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; } } /** * CreateRabbitMQBinding response structure. * @class */ class CreateRabbitMQBindingResponse extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Vhost name * @type {string || null} */ this.VirtualHost = null; /** * Routing relationship ID. * @type {number || null} */ this.BindingId = 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; this.VirtualHost = 'VirtualHost' in params ? params.VirtualHost : null; this.BindingId = 'BindingId' in params ? params.BindingId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyRocketMQInstanceSpec request structure. * @class */ class ModifyRocketMQInstanceSpecRequest extends AbstractModel { constructor(){ super(); /** * <p>Dedicated Instance ID</p> * @type {string || null} */ this.InstanceId = null; /** * <p>Instance specification,<br>rocket-vip-basic-1 basic<br>rocket-vip-basic-2 standard type<br>rocket-vip-basic-3 higher-order type I<br>rocket-vip-basic-4 higher-order type II</p> * @type {string || null} */ this.Specification = null; /** * <p>Node count</p> * @type {number || null} */ this.NodeCount = null; /** * <p>Storage space in GB</p> * @type {number || null} */ this.StorageSize = null; /** * <p>Deploy availability zone list</p> * @type {Array.<string> || null} */ this.ZoneIds = 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; this.ZoneIds = 'ZoneIds' in params ? params.ZoneIds : null; } } /** * DeleteCluster response structure. * @class */ class DeleteClusterResponse extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = 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.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateCmqTopic request structure. * @class */ class CreateCmqTopicRequest extends AbstractModel { constructor(){ super(); /** * Topic name is unique under the same account in a single region. Topic name can only contain letters, numbers, "-", and "_", with a maximum of 64 characters. It cannot be modified after creation and is case-insensitive. * @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); } } } } /** * 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. * @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 * @type {string || null} */ this.Remark = null; /** * Instance specification ID * @type {string || null} */ this.SpecName = null; /** * Maximum configurable message retention time, in hours * @type {number || null} */ this.MaxRetention = null; /** * Minimum configurable message retention time, in hours * @type {number || null} */ this.MinRetention = null; /** * Instance message retention time, in hours * @type {number || null} */ this.Retention = null; /** * Whether to enable ACL authentication. * @type {boolean || null} */ this.AclEnabled = null; /** * Destruction time. * @type {number || null} */ this.DestroyTime = 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; this.AclEnabled = 'AclEnabled' in params ? params.AclEnabled : null; this.DestroyTime = 'DestroyTime' in params ? params.DestroyTime : null; } } /** * DescribeCmqQueues response structure. * @class */ class DescribeCmqQueuesResponse extends AbstractModel { constructor(){ super(); /** * The number of queues. * @type {number || null} */ this.TotalCount = null; /** * Queue list. * @type {Array.<CmqQueue> || null} */ this.QueueList = 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.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; } } /** * DescribeRabbitMQNodeList request structure. * @class */ class DescribeRabbitMQNodeListRequest extends AbstractModel { constructor(){ super(); /** * Instance ID, such as amqp-xxxxxxxx. specifies the effective InstanceId that can be queried by logging in to the TDMQ RabbitMQ console (https://console.cloud.tencent.com/trabbitmq/cluster?rid=1). * @type {string || null} */ this.InstanceId = null; /** * Offset, default value 0. * @type {number || null} */ this.Offset = null; /** * Page limit. default value: 20. * @type {number || null} */ this.Limit = null; /** * Node name for fuzzy search * @type {string || null} */ this.NodeName = null; /** * Filter parameter name and value. currently only support filtering based on node status. "Name": "nodeStatus" "Value": running or down * @type {Array.<Filter> || null} */ this.Filters = null; /** * Sorts by the specified element. only 2 are present. CPU usage: specifies the CPU utilization of the node. diskUsage: specifies the node disk utilization. * @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; } } /** * DeleteCmqQueue response structure. * @class */ class DeleteCmqQueueResponse 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; } } /** * DescribeRocketMQEnvironmentRoles request structure. * @class */ class DescribeRocketMQEnvironmentRolesRequest extends AbstractModel { constructor(){ super(); /** * Required. Specifies the ID of the RocketMQ cluster. * @type {string || null} */ this.ClusterId = null; /** * Namespace, the common Cluster Namespace for 4.x is fixed as: tdmq_default * @type {string || null} */ this.EnvironmentId = null; /** * Starting index. Default is 0 if left empty. * @type {number || null} */ this.Offset = null; /** * Number of returns, default to 10 if not specified, maximum value: 20. * @type {number || null} */ this.Limit = null; /** * Role name. * @type {string || null} */ this.RoleName = null; /** * Filters RoleName by role name for precise query. Type: string. Required: no. * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.RoleName = 'RoleName' in params ? params.RoleName : 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); } } } } /** * DeleteRocketMQGroup request structure. * @class */ class DeleteRocketMQGroupRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Namespace of the consumption group. The 4.x common Cluster Namespace is fixed as: tdmq_default * @type {string || null} */ this.NamespaceId = null; /** * Consumer group name * @type {string || null} */ this.GroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.NamespaceId = 'NamespaceId' in params ? params.NamespaceId : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; } } /** * RocketMQ consumer group information * @class */ class RocketMQGroup extends AbstractModel { constructor(){ super(); /** * Consumer group name. * @type {string || null} */ this.Name = null; /** * The number of online consumers. * @type {number || null} */ this.ConsumerNum = null; /** * Consumption TPS. * @type {number || null} */ this.TPS = null; /** * The total number of heaped messages. * @type {number || null} */ this.TotalAccumulative = null; /** * 0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown. * @type {number || null} */ this.ConsumptionMode = null; /** * Whether to allow consumption. * @type {boolean || null} */ this.ReadEnabled = null; /** * The number of partitions in a retry topic. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.RetryPartitionNum = null; /** * Creation time in milliseconds. * @type {number || null} */ this.CreateTime = null; /** * Modification time in milliseconds. * @type {number || null} */ this.UpdateTime = null; /** * Client protocol. * @type {string || null} */ this.ClientProtocol = null; /** * Description. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Remark = null; /** * Consumer type. Enumerated values: `ACTIVELY` or `PASSIVELY`. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ConsumerType = null; /** * Whether to enable broadcast consumption. * @type {boolean || null} */ this.BroadcastEnabled = null; /** * Group type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.GroupType = null; /** * The number of retries Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.RetryMaxTimes = null; /** * Instance ID. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.InstanceId = null; /** * Namespace Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Namespace = null; /** * Number of subscribed topics. * @type {number || null} */ this.SubscribeTopicNum = null; /** * List of bound tags * @type {Array.<Tag> || null} */ this.TagList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.ConsumerNum = 'ConsumerNum' in params ? params.ConsumerNum : null; this.TPS = 'TPS' in params ? params.TPS : null; this.TotalAccumulative = 'TotalAccumulative' in params ? params.TotalAccumulative : null; this.ConsumptionMode = 'ConsumptionMode' in params ? params.ConsumptionMode : null; this.ReadEnabled = 'ReadEnabled' in params ? params.ReadEnabled : null; this.RetryPartitionNum = 'RetryPartitionNum' in params ? params.RetryPartitionNum : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null; this.ClientProtocol = 'ClientProtocol' in params ? params.ClientProtocol : null; this.Remark = 'Remark' in params ? params.Remark : null; this.ConsumerType = 'ConsumerType' in params ? params.ConsumerType : null; this.BroadcastEnabled = 'BroadcastEnabled' in params ? params.BroadcastEnabled : null; this.GroupType = 'GroupType' in params ? params.GroupType : null; this.RetryMaxTimes = 'RetryMaxTimes' in params ? params.RetryMaxTimes : null; this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.Namespace = 'Namespace' in params ? params.Namespace : null; this.SubscribeTopicNum = 'SubscribeTopicNum' in params ? params.SubscribeTopicNum : null; if (params.TagList) { this.TagList = new Array(); for (let z in params.TagList) { let obj = new Tag(); obj.deserialize(params.TagList[z]); this.TagList.push(obj); } } } } /** * ModifyRabbitMQUser request structure. * @class */ class ModifyRabbitMQUserRequest extends AbstractModel { constructor(){ super(); /** * <p>Instance ID, such as amqp-xxxxxxxx. Effective InstanceId can be obtained by logging in to the <a href="https://console.cloud.tencent.com/trabbitmq/cluster?rid=1">TDMQ RabbitMQ Console</a> for querying.</p> * @type {string || null} */ this.InstanceId = null; /** * <p>Username, such as rabbitmq. To find an effective userName, log in to the <a href="https://console.cloud.tencent.com/trabbitmq/cluster?rid=1">TDMQ RabbitMQ Console</a>, click a cluster in the list, enter cluster details, and locate the list of users under the user and permission management tab so as to find the username. Modification of the admin password is not supported currently.</p> * @type {string || null} */ this.User = null; /** * <p>Password, used when logging in. Requirements: Cannot be empty, 8-64 characters, must contain at least two of the following: lowercase letter, uppercase letter, digit, special character [()`~!@#$%^&*_=|{}[]:;',.?/].</p> * @type {string || null} */ this.Password = null; /** * <p>Description. Leave it empty to keep it unchanged.</p> * @type {string || null} */ this.Description = null; /** * <p>User tag, used to determine the access permission of the user to RabbitMQ Management<br>management: ordinary console user, monitoring: console user with management privileges, other value: non-console user</p> * @type {Array.<string> || null} */ this.Tags = null; /** * <p>Maximum number of connections for this user. Leave it blank to keep unchanged.</p> * @type {number || null} */ this.MaxConnections = null; /** * <p>Maximum number of channels for the user's. Leave blank to keep unchanged.</p> * @type {number || null} */ this.MaxChannels = null; /** * <p>Whether cam authentication is enabled</p> * @type {boolean || null} */ this.EnableCamAuth = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.User = 'User' in params ? params.User : null; this.Password = 'Password' in params ? params.Password : null; this.Description = 'Description' in params ? params.Description : null; this.Tags = 'Tags' in params ? params.Tags : null; this.MaxConnections = 'MaxConnections' in params ? params.MaxConnections : null; this.MaxChannels = 'MaxChannels' in params ? params.MaxChannels : null; this.EnableCamAuth = 'EnableCamAuth' in params ? params.EnableCamAuth : null; } } /** * CreateSubscription request structure. * @class */ class CreateSubscriptionRequest extends AbstractModel { constructor(){ super(); /** * Environment (namespace) name. * @type {string || null} */ this.EnvironmentId = null; /** * Topic name. * @type {string || null} */ this.TopicName = null; /** * Subscriber name, which can contain up to 128 characters. * @type {string || null} */ this.SubscriptionName = null; /** * Whether the creation is idempotent; if not, you cannot create subscriptions with the same name. * @type {boolean || null} */ this.IsIdempotent = null; /** * Pulsar cluster ID * @type {string || null} */ this.ClusterId = null; /** * Remarks (up to 128 characters). * @type {string || null} */ this.Remark = null; /** * Whether to automatically create a dead letter topic and a retry letter topic. true: yes (default value); false: no. * @type {boolean || null} */ this.AutoCreatePolicyTopic = null; /** * Naming convention for dead letter and retry letter topics. `LEGACY` indicates to use the legacy naming convention, and `COMMUNITY` indicates to use the naming convention in the Pulsar community. * @type {string || null} */ this.PostFixPattern = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.TopicName = 'TopicName' in params ? params.TopicName : null; this.SubscriptionName = 'SubscriptionName' in params ? params.SubscriptionName : null; this.IsIdempotent = 'IsIdempotent' in params ? params.IsIdempotent : null; this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Remark = 'Remark' in params ? params.Remark : null; this.AutoCreatePolicyTopic = 'AutoCreatePolicyTopic' in params ? params.AutoCreatePolicyTopic : null; this.PostFixPattern = 'PostFixPattern' in params ? params.PostFixPattern : null; } } /** * RabbitMQ managed instance information. * @class */ class RabbitMQVipInstance extends AbstractModel { constructor(){ super(); /** * <p>Instance ID</p> * @type {string || null} */ this.InstanceId = null; /** * <p>Instance name</p> * @type {string || null} */ this.InstanceName = null; /** * <p>Instance version</p> * @type {string || null} */ this.InstanceVersion = null; /** * <p>Instance status. 0 indicates creating in progress, 1 indicates normal, 2 indicates isolated, 3 indicates terminated, 4 - abnormal, 5 - delivery failed</p> * @type {number || null} */ this.Status = null; /** * <p>Node count</p> * @type {number || null} */ this.NodeCount = null; /** * <p>Instance configuration specification name</p> * @type {string || null} */ this.ConfigDisplay = null; /** * <p>Peak TPS</p> * @type {number || null} */ this.MaxTps = null; /** * <p>Peak bandwidth in Mbps</p> * @type {number || null} */ this.MaxBandWidth = null; /** * <p>Storage capacity in GB</p> * @type {number || null} */ this.MaxStorage = null; /** * <p>Instance expiration time. The value is 0 for pay-as-you-go instances, in milliseconds. unix timestamp.</p> * @type {number || null} */ this.ExpireTime = null; /** * <p>Auto-renewal flag. 0 means default state (not set by the user, i.e., initial state is manual renewal), 1 means auto-renew, 2 means explicitly no auto-renew (set by the user)</p> * @type {number || null} */ this.AutoRenewFlag = null; /** * <p>1 indicates prepaid mode, 0 indicates postpaid</p> * @type {number || null} */ this.PayMode = null; /** * <p>Remark information</p> * @type {string || null} */ this.Remark = null; /** * <p>Node specification of the cluster with corresponding flag:<br>2C8G: rabbit-vip-profession-2c8g<br>4C16G: rabbit-vip-profession-4c16g<br>8C32G: rabbit-vip-profession-8c32g<br>16C32G: rabbit-vip-basic-4<br>16C64G: rabbit-vip-profession-16c64g<br>2C4G: rabbit-vip-basic-5<br>4C8G: rabbit-vip-basic-1<br>8C16G (sold out): rabbit-vip-basic-2<br>Defaults to 4C8G: rabbit-vip-basic-1 if not specified</p> * @type {string || null} */ this.SpecName = null; /** * <p>Cluster exception information</p> Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ExceptionInformation = null; /** * <p>Instance status. 0 indicates creating in progress, 1 indicates normal, 2 indicates isolated, 3 indicates terminated, 4 - abnormal, 5 - delivery failed<br>To separate from the billing area, enable an additional status bit for display.</p> * @type {number || null} */ this.ClusterStatus = null; /** * <p>public network access point</p> Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.PublicAccessEndpoint = null; /** * <p>VPC access point list</p> * @type {Array.<VpcEndpointInfo> || null} */ this.Vpcs = null; /** * <p>Creation time in milliseconds. unix timestamp</p> * @type {number || null} */ this.CreateTime = null; /** * <p>Instance type</p><p>Enumeration value:</p><ul><li>0: Managed version instance</li></ul> * @type {number || null} */ this.InstanceType = null; /** * <p>Isolation time in milliseconds. unix timestamp</p> * @type {number || null} */ this.IsolatedTime = null; /** * <p>Whether deletion protection is enabled</p> * @type {boolean || null} */ this.EnableDeletionProtection = null; /** * <p>Tag list</p> * @type {Array.<Tag> || null} */ this.Tags = null; /** * <p>public data stream Stream access point</p> * @type {string || null} */ this.PublicStreamAccessEndpoint = 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; this.PublicAccessEndpoint = 'PublicAccessEndpoint' in params ? params.PublicAccessEndpoint : null; if (params.Vpcs) { this.Vpcs = new Array(); for (let z in params.Vpcs) { let obj = new VpcEndpointInfo(); obj.deserialize(params.Vpcs[z]); this.Vpcs.push(obj); } } this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.InstanceType = 'InstanceType' in params ? params.InstanceType : null; this.IsolatedTime = 'IsolatedTime' in params ? params.IsolatedTime : null; this.EnableDeletionProtection = 'EnableDeletionProtection' in params ? params.EnableDeletionProtection : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new Tag(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } this.PublicStreamAccessEndpoint = 'PublicStreamAccessEndpoint' in params ? params.PublicStreamAccessEndpoint : null; } } /** * RabbitMQ cluster basic information. * @class */ class RabbitMQClusterInfo extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * * @type {string || null} */ this.ClusterName = null; /** * * @type {string || null} */ this.Region = null; /** * Creation time in milliseconds. unix timestamp. * @type {number || null} */ this.CreateTime = null; /** * Cluster description information * @type {string || null} */ this.Remark = null; /** * * @type {Array.<VpcEndpointInfo> || null} */ this.Vpcs = null; /** * AZ information * @type {Array.<number> || null} */ this.ZoneIds = null; /** * * @type {number || null} */ this.VirtualHostNumber = null; /** * * @type {number || null} */ this.QueueNumber = null; /** * * @type {number || null} */ this.MessagePublishRate = null; /** * * @type {number || null} */ this.MessageStackNumber = null; /** * Specifies the instance expiration time in milliseconds as a unix timestamp. the value is 0 for pay-as-you-go resources. * @type {number || null} */ this.ExpireTime = null; /** * * @type {number || null} */ this.ChannelNumber = null; /** * * @type {number || null} */ this.ConnectionNumber = null; /** * * @type {number || null} */ this.ConsumerNumber = null; /** * * @type {number || null} */ this.ExchangeNumber = null; /** * Cluster exception information. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ExceptionInformation = null; /** * Instance status. 0: creating; 1: normal; 2: isolating; 3: terminated; 4: abnormal; 5: delivery failed. * @type {number || null} */ this.ClusterStatus = null; /** * Auto-renewal flag. 0 indicates the default status (If the default status is not configured, manual renewal is enabled), 1 indicates auto-renewal, and 2 indicates explicitly no auto-renewal (configured by the user). * @type {number || null} */ this.AutoRenewFlag = null; /** * Whether the image queue policy is enabled. 1: enabled; 0: disabled. * @type {number || null} */ this.MirrorQueuePolicyFlag = null; /** * Number of messages consumed per second. Unit: messages/second. * @type {number || null} */ this.MessageConsumeRate = null; /** * Cluster version information. * @type {string || null} */ this.ClusterVersion = null; /** * Billing mode. 0: postpaid; 1: prepaid. * @type {number || null} */ this.PayMode = null; /** * Instance type. 0: Exclusive Edition; 1: Serverless Edition. * @type {number || null} */ this.InstanceType = null; /** * Specifies the isolation time started. unix timestamp. * @type {number || null} */ this.IsolatedTime = null; /** * Whether it is a container instance. default true. * @type {boolean || null} */ this.Container = null; /** * Tag list * @type {Array.<Tag> || null} */ this.Tags = null; /** * Whether deletion protection is enabled. * @type {boolean || null} */ this.EnableDeletionProtection = null; /** * Whether there is a risk of vhost without mirror queue enabled * @type {boolean || null} */ this.MirroredQueueRisk = null; /** * whether to indicate risk * @type {boolean || null} */ this.EnableRiskWarning = null; /** * Timeout period for consumption * @type {number || null} */ this.ConsumeTimeout = null; /** * Maximum number of channels * @type {number || null} */ this.ChannelMax = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.ClusterName = 'ClusterName' in params ? params.ClusterName : null; this.Region = 'Region' in params ? params.Region : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.Remark = 'Remark' in params ? params.Remark : null; if (params.Vpcs) { this.Vpcs = new Array(); for (let z in params.Vpcs) { let obj = new VpcEndpointInfo(); obj.deserialize(params.Vpcs[z]); this.Vpcs.push(obj); } } this.ZoneIds = 'ZoneIds' in params ? params.ZoneIds : null; this.VirtualHostNumber = 'VirtualHostNumber' in params ? params.VirtualHostNumber : null; this.QueueNumber = 'QueueNumber' in params ? params.QueueNumber : null; this.MessagePublishRate = 'MessagePublishRate' in params ? params.MessagePublishRate : null; this.MessageStackNumber = 'MessageStackNumber' in params ? params.MessageStackNumber : null; this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null; this.ChannelNumber = 'ChannelNumber' in params ? params.ChannelNumber : null; this.ConnectionNumber = 'ConnectionNumber' in params ? params.ConnectionNumber : null; this.ConsumerNumber = 'ConsumerNumber' in params ? params.ConsumerNumber : null; this.ExchangeNumber = 'ExchangeNumber' in params ? params.ExchangeNumber : null; this.ExceptionInformation = 'ExceptionInformation' in params ? params.ExceptionInformation : null; this.ClusterStatus = 'ClusterStatus' in params ? params.ClusterStatus : null; this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null; this.MirrorQueuePolicyFlag = 'MirrorQueuePolicyFlag' in params ? params.MirrorQueuePolicyFlag : null; this.MessageConsumeRate = 'MessageConsumeRate' in params ? params.MessageConsumeRate : null; this.ClusterVersion = 'ClusterVersion' in params ? params.ClusterVersion : null; this.PayMode = 'PayMode' in params ? params.PayMode : null; this.InstanceType = 'InstanceType' in params ? params.InstanceType : null; this.IsolatedTime = 'IsolatedTime' in params ? params.IsolatedTime : null; this.Container = 'Container' in params ? params.Container : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new Tag(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } this.EnableDeletionProtection = 'EnableDeletionProtection' in params ? params.EnableDeletionProtection : null; this.MirroredQueueRisk = 'MirroredQueueRisk' in params ? params.MirroredQueueRisk : null; this.EnableRiskWarning = 'EnableRiskWarning' in params ? params.EnableRiskWarning : null; this.ConsumeTimeout = 'ConsumeTimeout' in params ? params.ConsumeTimeout : null; this.ChannelMax = 'ChannelMax' in params ? params.ChannelMax : null; } } /** * Statistics of vhost overview * @class */ class RabbitMQVirtualHostStatistics extends AbstractModel { constructor(){ super(); /** * The number of queues in the current vhost * @type {number || null} */ this.CurrentQueues = null; /** * The number of exchanges in the current vhost * @type {number || null} */ this.CurrentExchanges = null; /** * The number of connections in the current vhost * @type {number || null} */ this.CurrentConnections = null; /** * The number of channels in the current vhost * @type {number || null} */ this.CurrentChannels = null; /** * The number of users in the current vhost * @type {number || null} */ this.CurrentUsers = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CurrentQueues = 'CurrentQueues' in params ? params.CurrentQueues : null; this.CurrentExchanges = 'CurrentExchanges' in params ? params.CurrentExchanges : null; this.CurrentConnections = 'CurrentConnections' in params ? params.CurrentConnections : null; this.CurrentChannels = 'CurrentChannels' in params ? params.CurrentChannels : null; this.CurrentUsers = 'CurrentUsers' in params ? params.CurrentUsers : null; } } /** * DescribeRabbitMQQueues response structure. * @class */ class DescribeRabbitMQQueuesResponse extends AbstractModel { constructor(){ super(); /** * Queue list information. * @type {Array.<RabbitMQQueueListInfo> || null} */ this.QueueInfoList = null; /** * Number of queues * @type {number || null} */ this.TotalCount = 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.QueueInfoList) { this.QueueInfoList = new Array(); for (let z in params.QueueInfoList) { let obj = new RabbitMQQueueListInfo(); obj.deserialize(params.QueueInfoList[z]); this.QueueInfoList.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeEnvironments request structure. * @class */ class DescribeEnvironmentsRequest extends AbstractModel { constructor(){ super(); /** * Pulsar cluster ID * @type {string || null} */ this.ClusterId = null; /** * Fuzzy search by namespace name. * @type {string || null} */ this.EnvironmentId = 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; /** * * EnvironmentId Filter by namespace for exact query. Type: String Required: No * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.Offset = 'Offset' in params ? params