Class: TencentCloud::Tdmq::V20200217::DescribeRocketMQSubscriptionsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::DescribeRocketMQSubscriptionsResponse
- Defined in:
- lib/v20200217/models.rb
Overview
DescribeRocketMQSubscriptions返回参数结构体
Instance Attribute Summary collapse
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Subscriptions ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, subscriptions = nil, requestid = nil) ⇒ DescribeRocketMQSubscriptionsResponse
constructor
A new instance of DescribeRocketMQSubscriptionsResponse.
Constructor Details
#initialize(totalcount = nil, subscriptions = nil, requestid = nil) ⇒ DescribeRocketMQSubscriptionsResponse
Returns a new instance of DescribeRocketMQSubscriptionsResponse.
7184 7185 7186 7187 7188 |
# File 'lib/v20200217/models.rb', line 7184 def initialize(totalcount=nil, subscriptions=nil, requestid=nil) @TotalCount = totalcount @Subscriptions = subscriptions @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7182 7183 7184 |
# File 'lib/v20200217/models.rb', line 7182 def RequestId @RequestId end |
#Subscriptions ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7182 7183 7184 |
# File 'lib/v20200217/models.rb', line 7182 def Subscriptions @Subscriptions end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7182 7183 7184 |
# File 'lib/v20200217/models.rb', line 7182 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 |
# File 'lib/v20200217/models.rb', line 7190 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Subscriptions'].nil? @Subscriptions = [] params['Subscriptions'].each do |i| rocketmqsubscription_tmp = RocketMQSubscription.new rocketmqsubscription_tmp.deserialize(i) @Subscriptions << rocketmqsubscription_tmp end end @RequestId = params['RequestId'] end |