Class: TencentCloud::Apigateway::V20180808::UsagePlansStatus

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

Overview

使用计划列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, usageplanstatusset = nil) ⇒ UsagePlansStatus

Returns a new instance of UsagePlansStatus.



10147
10148
10149
10150
# File 'lib/v20180808/models.rb', line 10147

def initialize(totalcount=nil, usageplanstatusset=nil)
  @TotalCount = totalcount
  @UsagePlanStatusSet = usageplanstatusset
end

Instance Attribute Details

#TotalCountObject

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

Parameters:

  • TotalCount:

    符合条件的使用计划数量。

  • UsagePlanStatusSet:

    使用计划列表。



10145
10146
10147
# File 'lib/v20180808/models.rb', line 10145

def TotalCount
  @TotalCount
end

#UsagePlanStatusSetObject

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

Parameters:

  • TotalCount:

    符合条件的使用计划数量。

  • UsagePlanStatusSet:

    使用计划列表。



10145
10146
10147
# File 'lib/v20180808/models.rb', line 10145

def UsagePlanStatusSet
  @UsagePlanStatusSet
end

Instance Method Details

#deserialize(params) ⇒ Object



10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
# File 'lib/v20180808/models.rb', line 10152

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['UsagePlanStatusSet'].nil?
    @UsagePlanStatusSet = []
    params['UsagePlanStatusSet'].each do |i|
      usageplanstatusinfo_tmp = UsagePlanStatusInfo.new
      usageplanstatusinfo_tmp.deserialize(i)
      @UsagePlanStatusSet << usageplanstatusinfo_tmp
    end
  end
end