Class: TencentCloud::Clb::V20180317::RsTagRule

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, targets = nil, locationid = nil, tag = nil) ⇒ RsTagRule

Returns a new instance of RsTagRule.



7591
7592
7593
7594
7595
7596
# File 'lib/v20180317/models.rb', line 7591

def initialize(listenerid=nil, targets=nil, locationid=nil, tag=nil)
  @ListenerId = listenerid
  @Targets = targets
  @LocationId = locationid
  @Tag = tag
end

Instance Attribute Details

#ListenerIdObject

Parameters:



7589
7590
7591
# File 'lib/v20180317/models.rb', line 7589

def ListenerId
  @ListenerId
end

#LocationIdObject

Parameters:



7589
7590
7591
# File 'lib/v20180317/models.rb', line 7589

def LocationId
  @LocationId
end

#TagObject

Parameters:



7589
7590
7591
# File 'lib/v20180317/models.rb', line 7589

def Tag
  @Tag
end

#TargetsObject

Parameters:



7589
7590
7591
# File 'lib/v20180317/models.rb', line 7589

def Targets
  @Targets
end

Instance Method Details

#deserialize(params) ⇒ Object



7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
# File 'lib/v20180317/models.rb', line 7598

def deserialize(params)
  @ListenerId = params['ListenerId']
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      target_tmp = Target.new
      target_tmp.deserialize(i)
      @Targets << target_tmp
    end
  end
  @LocationId = params['LocationId']
  @Tag = params['Tag']
end