Class: TencentCloud::Clb::V20180317::ModifyRuleRequest

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

Overview

ModifyRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, listenerid = nil, locationid = nil, url = nil, healthcheck = nil, scheduler = nil, sessionexpiretime = nil, forwardtype = nil, trpccallee = nil, trpcfunc = nil, oauth = nil, cookiename = nil) ⇒ ModifyRuleRequest



6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
# File 'lib/v20180317/models.rb', line 6692

def initialize(loadbalancerid=nil, listenerid=nil, locationid=nil, url=nil, healthcheck=nil, scheduler=nil, sessionexpiretime=nil, forwardtype=nil, trpccallee=nil, trpcfunc=nil, oauth=nil, cookiename=nil)
  @LoadBalancerId = loadbalancerid
  @ListenerId = listenerid
  @LocationId = locationid
  @Url = url
  @HealthCheck = healthcheck
  @Scheduler = scheduler
  @SessionExpireTime = sessionexpiretime
  @ForwardType = forwardtype
  @TrpcCallee = trpccallee
  @TrpcFunc = trpcfunc
  @OAuth = oauth
  @CookieName = cookiename
end

Instance Attribute Details

#CookieNameObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def CookieName
  @CookieName
end

#ForwardTypeObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def ForwardType
  @ForwardType
end

#HealthCheckObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def HealthCheck
  @HealthCheck
end

#ListenerIdObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def ListenerId
  @ListenerId
end

#LoadBalancerIdObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def LoadBalancerId
  @LoadBalancerId
end

#LocationIdObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def LocationId
  @LocationId
end

#OAuthObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def OAuth
  @OAuth
end

#SchedulerObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def Scheduler
  @Scheduler
end

#SessionExpireTimeObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def SessionExpireTime
  @SessionExpireTime
end

#TrpcCalleeObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def TrpcCallee
  @TrpcCallee
end

#TrpcFuncObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def TrpcFunc
  @TrpcFunc
end

#UrlObject

分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。



6690
6691
6692
# File 'lib/v20180317/models.rb', line 6690

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
# File 'lib/v20180317/models.rb', line 6707

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @ListenerId = params['ListenerId']
  @LocationId = params['LocationId']
  @Url = params['Url']
  unless params['HealthCheck'].nil?
    @HealthCheck = HealthCheck.new
    @HealthCheck.deserialize(params['HealthCheck'])
  end
  @Scheduler = params['Scheduler']
  @SessionExpireTime = params['SessionExpireTime']
  @ForwardType = params['ForwardType']
  @TrpcCallee = params['TrpcCallee']
  @TrpcFunc = params['TrpcFunc']
  unless params['OAuth'].nil?
    @OAuth = OAuth.new
    @OAuth.deserialize(params['OAuth'])
  end
  @CookieName = params['CookieName']
end