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.



7530
7531
7532
7533
7534
7535
# File 'lib/v20180317/models.rb', line 7530

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

Instance Attribute Details

#ListenerIdObject

Parameters:



7528
7529
7530
# File 'lib/v20180317/models.rb', line 7528

def ListenerId
  @ListenerId
end

#LocationIdObject

Parameters:



7528
7529
7530
# File 'lib/v20180317/models.rb', line 7528

def LocationId
  @LocationId
end

#TagObject

Parameters:



7528
7529
7530
# File 'lib/v20180317/models.rb', line 7528

def Tag
  @Tag
end

#TargetsObject

Parameters:



7528
7529
7530
# File 'lib/v20180317/models.rb', line 7528

def Targets
  @Targets
end

Instance Method Details

#deserialize(params) ⇒ Object



7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
# File 'lib/v20180317/models.rb', line 7537

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