Class: TencentCloud::Apigateway::V20180808::ServiceUsagePlanSet

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, serviceusageplanlist = nil) ⇒ ServiceUsagePlanSet

Returns a new instance of ServiceUsagePlanSet.



8987
8988
8989
8990
# File 'lib/v20180808/models.rb', line 8987

def initialize(totalcount=nil, serviceusageplanlist=nil)
  @TotalCount = totalcount
  @ServiceUsagePlanList = serviceusageplanlist
end

Instance Attribute Details

#ServiceUsagePlanListObject

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

Parameters:

  • TotalCount:

    服务上绑定的使用计划总数。

  • ServiceUsagePlanList:

    服务上绑定的使用计划列表。



8985
8986
8987
# File 'lib/v20180808/models.rb', line 8985

def ServiceUsagePlanList
  @ServiceUsagePlanList
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    服务上绑定的使用计划总数。

  • ServiceUsagePlanList:

    服务上绑定的使用计划列表。



8985
8986
8987
# File 'lib/v20180808/models.rb', line 8985

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
# File 'lib/v20180808/models.rb', line 8992

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['ServiceUsagePlanList'].nil?
    @ServiceUsagePlanList = []
    params['ServiceUsagePlanList'].each do |i|
      apiusageplan_tmp = ApiUsagePlan.new
      apiusageplan_tmp.deserialize(i)
      @ServiceUsagePlanList << apiusageplan_tmp
    end
  end
end