Class: TencentCloud::Clb::V20180317::ModifyTargetWeightRequest

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

Overview

ModifyTargetWeight请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, listenerid = nil, targets = nil, locationid = nil, domain = nil, url = nil, weight = nil) ⇒ ModifyTargetWeightRequest



6977
6978
6979
6980
6981
6982
6983
6984
6985
# File 'lib/v20180317/models.rb', line 6977

def initialize(loadbalancerid=nil, listenerid=nil, targets=nil, locationid=nil, domain=nil, url=nil, weight=nil)
  @LoadBalancerId = loadbalancerid
  @ListenerId = listenerid
  @Targets = targets
  @LocationId = locationid
  @Domain = domain
  @Url = url
  @Weight = weight
end

Instance Attribute Details

#DomainObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def Domain
  @Domain
end

#ListenerIdObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def ListenerId
  @ListenerId
end

#LoadBalancerIdObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def LoadBalancerId
  @LoadBalancerId
end

#LocationIdObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def LocationId
  @LocationId
end

#TargetsObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def Targets
  @Targets
end

#UrlObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def Url
  @Url
end

#WeightObject



6975
6976
6977
# File 'lib/v20180317/models.rb', line 6975

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
# File 'lib/v20180317/models.rb', line 6987

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @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']
  @Domain = params['Domain']
  @Url = params['Url']
  @Weight = params['Weight']
end