Class: TencentCloud::Tse::V20201207::KongServices

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

Overview

kong实例的服务列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(servicelist = nil, totalcount = nil) ⇒ KongServices

Returns a new instance of KongServices.



4844
4845
4846
4847
# File 'lib/v20201207/models.rb', line 4844

def initialize(servicelist=nil, totalcount=nil)
  @ServiceList = servicelist
  @TotalCount = totalcount
end

Instance Attribute Details

#ServiceListObject

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

Parameters:

  • ServiceList:

    kong实例的服务列表

  • TotalCount:

    列表总数



4842
4843
4844
# File 'lib/v20201207/models.rb', line 4842

def ServiceList
  @ServiceList
end

#TotalCountObject

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

Parameters:

  • ServiceList:

    kong实例的服务列表

  • TotalCount:

    列表总数



4842
4843
4844
# File 'lib/v20201207/models.rb', line 4842

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
# File 'lib/v20201207/models.rb', line 4849

def deserialize(params)
  unless params['ServiceList'].nil?
    @ServiceList = []
    params['ServiceList'].each do |i|
      kongservicepreview_tmp = KongServicePreview.new
      kongservicepreview_tmp.deserialize(i)
      @ServiceList << kongservicepreview_tmp
    end
  end
  @TotalCount = params['TotalCount']
end