Class: TencentCloud::Clb::V20180317::DescribeTargetsRequest

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

Overview

DescribeTargets请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, listenerids = nil, protocol = nil, port = nil, filters = nil) ⇒ DescribeTargetsRequest



4208
4209
4210
4211
4212
4213
4214
# File 'lib/v20180317/models.rb', line 4208

def initialize(loadbalancerid=nil, listenerids=nil, protocol=nil, port=nil, filters=nil)
  @LoadBalancerId = loadbalancerid
  @ListenerIds = listenerids
  @Protocol = protocol
  @Port = port
  @Filters = filters
end

Instance Attribute Details

#FiltersObject

<li> location-id - String - 是否必填:否 - (过滤条件)按照 规则ID 过滤,如:“loc-12345678”。</li> <li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 后端服务内网IP 过滤,如:“172.16.1.1”。</li> <li> tag - String - 是否必填:否 - (过滤条件)按照 标签 过滤,如:“tag-test”。</li>



4206
4207
4208
# File 'lib/v20180317/models.rb', line 4206

def Filters
  @Filters
end

#ListenerIdsObject

<li> location-id - String - 是否必填:否 - (过滤条件)按照 规则ID 过滤,如:“loc-12345678”。</li> <li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 后端服务内网IP 过滤,如:“172.16.1.1”。</li> <li> tag - String - 是否必填:否 - (过滤条件)按照 标签 过滤,如:“tag-test”。</li>



4206
4207
4208
# File 'lib/v20180317/models.rb', line 4206

def ListenerIds
  @ListenerIds
end

#LoadBalancerIdObject

<li> location-id - String - 是否必填:否 - (过滤条件)按照 规则ID 过滤,如:“loc-12345678”。</li> <li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 后端服务内网IP 过滤,如:“172.16.1.1”。</li> <li> tag - String - 是否必填:否 - (过滤条件)按照 标签 过滤,如:“tag-test”。</li>



4206
4207
4208
# File 'lib/v20180317/models.rb', line 4206

def LoadBalancerId
  @LoadBalancerId
end

#PortObject

<li> location-id - String - 是否必填:否 - (过滤条件)按照 规则ID 过滤,如:“loc-12345678”。</li> <li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 后端服务内网IP 过滤,如:“172.16.1.1”。</li> <li> tag - String - 是否必填:否 - (过滤条件)按照 标签 过滤,如:“tag-test”。</li>



4206
4207
4208
# File 'lib/v20180317/models.rb', line 4206

def Port
  @Port
end

#ProtocolObject

<li> location-id - String - 是否必填:否 - (过滤条件)按照 规则ID 过滤,如:“loc-12345678”。</li> <li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 后端服务内网IP 过滤,如:“172.16.1.1”。</li> <li> tag - String - 是否必填:否 - (过滤条件)按照 标签 过滤,如:“tag-test”。</li>



4206
4207
4208
# File 'lib/v20180317/models.rb', line 4206

def Protocol
  @Protocol
end

Instance Method Details

#deserialize(params) ⇒ Object



4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
# File 'lib/v20180317/models.rb', line 4216

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @ListenerIds = params['ListenerIds']
  @Protocol = params['Protocol']
  @Port = params['Port']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
end