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.



9077
9078
9079
9080
# File 'lib/v20201207/models.rb', line 9077

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

Instance Attribute Details

#ServiceListObject

Parameters:

  • ServiceList:

    kong实例的服务列表

  • TotalCount:

    列表总数



9075
9076
9077
# File 'lib/v20201207/models.rb', line 9075

def ServiceList
  @ServiceList
end

#TotalCountObject

Parameters:

  • ServiceList:

    kong实例的服务列表

  • TotalCount:

    列表总数



9075
9076
9077
# File 'lib/v20201207/models.rb', line 9075

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
# File 'lib/v20201207/models.rb', line 9082

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