Class: TencentCloud::Tdmq::V20200217::DescribeSubscriptionsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200217/models.rb

Overview

DescribeSubscriptions返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#RequestIdObject

Parameters:

  • SubscriptionSets:

    订阅者集合数组。

  • TotalCount:

    数量。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



7729
7730
7731
# File 'lib/v20200217/models.rb', line 7729

def RequestId
  @RequestId
end

#SubscriptionSetsObject

Parameters:

  • SubscriptionSets:

    订阅者集合数组。

  • TotalCount:

    数量。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



7729
7730
7731
# File 'lib/v20200217/models.rb', line 7729

def SubscriptionSets
  @SubscriptionSets
end

#TotalCountObject

Parameters:

  • SubscriptionSets:

    订阅者集合数组。

  • TotalCount:

    数量。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



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