Class: TencentCloud::Apigateway::V20180808::ApiUsagePlanSet

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

Overview

api绑定使用计划列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, apiusageplanlist = nil) ⇒ ApiUsagePlanSet

Returns a new instance of ApiUsagePlanSet.



1062
1063
1064
1065
# File 'lib/v20180808/models.rb', line 1062

def initialize(totalcount=nil, apiusageplanlist=nil)
  @TotalCount = totalcount
  @ApiUsagePlanList = apiusageplanlist
end

Instance Attribute Details

#ApiUsagePlanListObject

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

Parameters:

  • TotalCount:

    API 绑定的使用计划总数。

  • ApiUsagePlanList:

    API 绑定使用计划列表。



1060
1061
1062
# File 'lib/v20180808/models.rb', line 1060

def ApiUsagePlanList
  @ApiUsagePlanList
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    API 绑定的使用计划总数。

  • ApiUsagePlanList:

    API 绑定使用计划列表。



1060
1061
1062
# File 'lib/v20180808/models.rb', line 1060

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
# File 'lib/v20180808/models.rb', line 1067

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