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.



7727
7728
7729
7730
7731
7732
# File 'lib/v20180317/models.rb', line 7727

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

Instance Attribute Details

#ListenerIdObject

Parameters:



7725
7726
7727
# File 'lib/v20180317/models.rb', line 7725

def ListenerId
  @ListenerId
end

#LocationIdObject

Parameters:



7725
7726
7727
# File 'lib/v20180317/models.rb', line 7725

def LocationId
  @LocationId
end

#TagObject

Parameters:



7725
7726
7727
# File 'lib/v20180317/models.rb', line 7725

def Tag
  @Tag
end

#TargetsObject

Parameters:



7725
7726
7727
# File 'lib/v20180317/models.rb', line 7725

def Targets
  @Targets
end

Instance Method Details

#deserialize(params) ⇒ Object



7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
# File 'lib/v20180317/models.rb', line 7734

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