Class: TencentCloud::Tdmq::V20200217::DescribeSubscriptionsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::DescribeSubscriptionsResponse
- Defined in:
- lib/v20200217/models.rb
Overview
DescribeSubscriptions返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(subscriptionsets = nil, totalcount = nil, requestid = nil) ⇒ DescribeSubscriptionsResponse
constructor
A new instance of DescribeSubscriptionsResponse.
Constructor Details
#initialize(subscriptionsets = nil, totalcount = nil, requestid = nil) ⇒ DescribeSubscriptionsResponse
Returns a new instance of DescribeSubscriptionsResponse.
7731 7732 7733 7734 7735 |
# File 'lib/v20200217/models.rb', line 7731 def initialize(subscriptionsets=nil, totalcount=nil, requestid=nil) @SubscriptionSets = subscriptionsets @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
7729 7730 7731 |
# File 'lib/v20200217/models.rb', line 7729 def RequestId @RequestId end |
#SubscriptionSets ⇒ Object
7729 7730 7731 |
# File 'lib/v20200217/models.rb', line 7729 def SubscriptionSets @SubscriptionSets end |
#TotalCount ⇒ Object
7729 7730 7731 |
# File 'lib/v20200217/models.rb', line 7729 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 |
# File 'lib/v20200217/models.rb', line 7737 def deserialize(params) unless params['SubscriptionSets'].nil? @SubscriptionSets = [] params['SubscriptionSets'].each do |i| subscription_tmp = Subscription.new subscription_tmp.deserialize(i) @SubscriptionSets << subscription_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |