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.



9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
# File 'lib/v20201207/models.rb', line 9118

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:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def CreatedTime
  @CreatedTime
end

#CvmInstanceIdObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def CvmInstanceId
  @CvmInstanceId
end

#CvmInstanceNameObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def CvmInstanceName
  @CvmInstanceName
end

#HealthObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def Health
  @Health
end

#HostObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def Host
  @Host
end

#PortObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def Port
  @Port
end

#SourceObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def Source
  @Source
end

#TagsObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def Tags
  @Tags
end

#WeightObject

Parameters:

  • Host:

    Host

  • Port:

    端口

  • Weight:

    权重

  • Health:

    健康状态

  • CreatedTime:

    创建时间

  • Source:

    Target的来源

  • CvmInstanceId:

    CVM实例ID

  • CvmInstanceName:

    CVM实例名称

  • Tags:

    target标签



9116
9117
9118
# File 'lib/v20201207/models.rb', line 9116

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
# File 'lib/v20201207/models.rb', line 9130

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