Class: TencentCloud::Tdmq::V20200217::DescribeCmqSubscriptionDetailResponse

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

Overview

DescribeCmqSubscriptionDetail返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, subscriptionset = nil, requestid = nil) ⇒ DescribeCmqSubscriptionDetailResponse

Returns a new instance of DescribeCmqSubscriptionDetailResponse.



3961
3962
3963
3964
3965
# File 'lib/v20200217/models.rb', line 3961

def initialize(totalcount=nil, subscriptionset=nil, requestid=nil)
  @TotalCount = totalcount
  @SubscriptionSet = subscriptionset
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    总数

  • SubscriptionSet:

    Subscription属性集合

  • RequestId:

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



3959
3960
3961
# File 'lib/v20200217/models.rb', line 3959

def RequestId
  @RequestId
end

#SubscriptionSetObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    总数

  • SubscriptionSet:

    Subscription属性集合

  • RequestId:

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



3959
3960
3961
# File 'lib/v20200217/models.rb', line 3959

def SubscriptionSet
  @SubscriptionSet
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    总数

  • SubscriptionSet:

    Subscription属性集合

  • RequestId:

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



3959
3960
3961
# File 'lib/v20200217/models.rb', line 3959

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
# File 'lib/v20200217/models.rb', line 3967

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['SubscriptionSet'].nil?
    @SubscriptionSet = []
    params['SubscriptionSet'].each do |i|
      cmqsubscription_tmp = CmqSubscription.new
      cmqsubscription_tmp.deserialize(i)
      @SubscriptionSet << cmqsubscription_tmp
    end
  end
  @RequestId = params['RequestId']
end