Class: TencentCloud::Tse::V20201207::KongUpstreamPreview

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

Overview

云原生网关Upstream信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, target = nil) ⇒ KongUpstreamPreview

Returns a new instance of KongUpstreamPreview.



5071
5072
5073
5074
5075
# File 'lib/v20201207/models.rb', line 5071

def initialize(id=nil, name=nil, target=nil)
  @ID = id
  @Name = name
  @Target = target
end

Instance Attribute Details

#IDObject

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

Parameters:

  • ID:

    服务ID

  • Name:

    服务名字

  • Target:

    后端配置



5069
5070
5071
# File 'lib/v20201207/models.rb', line 5069

def ID
  @ID
end

#NameObject

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

Parameters:

  • ID:

    服务ID

  • Name:

    服务名字

  • Target:

    后端配置



5069
5070
5071
# File 'lib/v20201207/models.rb', line 5069

def Name
  @Name
end

#TargetObject

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

Parameters:

  • ID:

    服务ID

  • Name:

    服务名字

  • Target:

    后端配置



5069
5070
5071
# File 'lib/v20201207/models.rb', line 5069

def Target
  @Target
end

Instance Method Details

#deserialize(params) ⇒ Object



5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
# File 'lib/v20201207/models.rb', line 5077

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