Class: TencentCloud::Tse::V20201207::KongTarget

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

Overview

Kong Upstream中的Target

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host = nil, port = nil, weight = nil, health = nil, createdtime = nil, source = nil, cvminstanceid = nil, cvminstancename = nil, tags = nil) ⇒ KongTarget

Returns a new instance of KongTarget.



9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
# File 'lib/v20201207/models.rb', line 9136

def initialize(host=nil, port=nil, weight=nil, health=nil, createdtime=nil, source=nil, cvminstanceid=nil, cvminstancename=nil, tags=nil)
  @Host = host
  @Port = port
  @Weight = weight
  @Health = health
  @CreatedTime = createdtime
  @Source = source
  @CvmInstanceId = cvminstanceid
  @CvmInstanceName = cvminstancename
  @Tags = tags
end

Instance Attribute Details

#CreatedTimeObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def CreatedTime
  @CreatedTime
end

#CvmInstanceIdObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def CvmInstanceId
  @CvmInstanceId
end

#CvmInstanceNameObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def CvmInstanceName
  @CvmInstanceName
end

#HealthObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def Health
  @Health
end

#HostObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def Host
  @Host
end

#PortObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def Port
  @Port
end

#SourceObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def Source
  @Source
end

#TagsObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def Tags
  @Tags
end

#WeightObject

Parameters:

  • Host

  • 端口

  • 权重

  • 健康状态

  • 创建时间

  • Target的来源

  • CVM实例ID

  • CVM实例名称

  • target标签



9134
9135
9136
# File 'lib/v20201207/models.rb', line 9134

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
# File 'lib/v20201207/models.rb', line 9148

def deserialize(params)
  @Host = params['Host']
  @Port = params['Port']
  @Weight = params['Weight']
  @Health = params['Health']
  @CreatedTime = params['CreatedTime']
  @Source = params['Source']
  @CvmInstanceId = params['CvmInstanceId']
  @CvmInstanceName = params['CvmInstanceName']
  @Tags = params['Tags']
end