Class: TencentCloud::Clb::V20180317::ListenerItem

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

Overview

反查监听器类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listenerid = nil, protocol = nil, port = nil, rules = nil, targets = nil, endport = nil) ⇒ ListenerItem



5314
5315
5316
5317
5318
5319
5320
5321
# File 'lib/v20180317/models.rb', line 5314

def initialize(listenerid=nil, protocol=nil, port=nil, rules=nil, targets=nil, endport=nil)
  @ListenerId = listenerid
  @Protocol = protocol
  @Port = port
  @Rules = rules
  @Targets = targets
  @EndPort = endport
end

Instance Attribute Details

#EndPortObject

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



5312
5313
5314
# File 'lib/v20180317/models.rb', line 5312

def EndPort
  @EndPort
end

#ListenerIdObject

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



5312
5313
5314
# File 'lib/v20180317/models.rb', line 5312

def ListenerId
  @ListenerId
end

#PortObject

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



5312
5313
5314
# File 'lib/v20180317/models.rb', line 5312

def Port
  @Port
end

#ProtocolObject

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



5312
5313
5314
# File 'lib/v20180317/models.rb', line 5312

def Protocol
  @Protocol
end

#RulesObject

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



5312
5313
5314
# File 'lib/v20180317/models.rb', line 5312

def Rules
  @Rules
end

#TargetsObject

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



5312
5313
5314
# File 'lib/v20180317/models.rb', line 5312

def Targets
  @Targets
end

Instance Method Details

#deserialize(params) ⇒ Object



5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
# File 'lib/v20180317/models.rb', line 5323

def deserialize(params)
  @ListenerId = params['ListenerId']
  @Protocol = params['Protocol']
  @Port = params['Port']
  unless params['Rules'].nil?
    @Rules = []
    params['Rules'].each do |i|
      rulesitems_tmp = RulesItems.new
      rulesitems_tmp.deserialize(i)
      @Rules << rulesitems_tmp
    end
  end
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      lbrstargets_tmp = LbRsTargets.new
      lbrstargets_tmp.deserialize(i)
      @Targets << lbrstargets_tmp
    end
  end
  @EndPort = params['EndPort']
end