Class: TencentCloud::Tse::V20201207::KongUpstreamPreview
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::KongUpstreamPreview
- Defined in:
- lib/v20201207/models.rb
Overview
云原生网关Upstream信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, target = nil) ⇒ KongUpstreamPreview
constructor
A new instance of KongUpstreamPreview.
Constructor Details
#initialize(id = nil, name = nil, target = nil) ⇒ KongUpstreamPreview
Returns a new instance of KongUpstreamPreview.
9289 9290 9291 9292 9293 |
# File 'lib/v20201207/models.rb', line 9289 def initialize(id=nil, name=nil, target=nil) @ID = id @Name = name @Target = target end |
Instance Attribute Details
#ID ⇒ Object
9287 9288 9289 |
# File 'lib/v20201207/models.rb', line 9287 def ID @ID end |
#Name ⇒ Object
9287 9288 9289 |
# File 'lib/v20201207/models.rb', line 9287 def Name @Name end |
#Target ⇒ Object
9287 9288 9289 |
# File 'lib/v20201207/models.rb', line 9287 def Target @Target end |
Instance Method Details
#deserialize(params) ⇒ Object
9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 |
# File 'lib/v20201207/models.rb', line 9295 def deserialize(params) @ID = params['ID'] @Name = params['Name'] unless params['Target'].nil? @Target = [] params['Target'].each do |i| kongtarget_tmp = KongTarget.new kongtarget_tmp.deserialize(i) @Target << kongtarget_tmp end end end |