Class: TencentCloud::Clb::V20180317::ModifyRuleRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ModifyRuleRequest
- Defined in:
- lib/v20180317/models.rb
Overview
ModifyRule请求参数结构体
Instance Attribute Summary collapse
-
#ForwardType ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#HealthCheck ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#ListenerId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#LoadBalancerId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#LocationId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#OAuth ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#Scheduler ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#SessionExpireTime ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#TrpcCallee ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#TrpcFunc ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
-
#Url ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。 默认为0。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(loadbalancerid = nil, listenerid = nil, locationid = nil, url = nil, healthcheck = nil, scheduler = nil, sessionexpiretime = nil, forwardtype = nil, trpccallee = nil, trpcfunc = nil, oauth = nil) ⇒ ModifyRuleRequest
constructor
A new instance of ModifyRuleRequest.
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) ⇒ ModifyRuleRequest
Returns a new instance of ModifyRuleRequest.
6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 |
# File 'lib/v20180317/models.rb', line 6762 def initialize(loadbalancerid=nil, listenerid=nil, locationid=nil, url=nil, healthcheck=nil, scheduler=nil, sessionexpiretime=nil, forwardtype=nil, trpccallee=nil, trpcfunc=nil, oauth=nil) @LoadBalancerId = loadbalancerid @ListenerId = listenerid @LocationId = locationid @Url = url @HealthCheck = healthcheck @Scheduler = scheduler @SessionExpireTime = sessionexpiretime @ForwardType = forwardtype @TrpcCallee = trpccallee @TrpcFunc = trpcfunc @OAuth = oauth end |
Instance Attribute Details
#ForwardType ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def ForwardType @ForwardType end |
#HealthCheck ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def HealthCheck @HealthCheck end |
#ListenerId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def ListenerId @ListenerId end |
#LoadBalancerId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def LoadBalancerId @LoadBalancerId end |
#LocationId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def LocationId @LocationId end |
#OAuth ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def OAuth @OAuth end |
#Scheduler ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def Scheduler @Scheduler end |
#SessionExpireTime ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def SessionExpireTime @SessionExpireTime end |
#TrpcCallee ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def TrpcCallee @TrpcCallee end |
#TrpcFunc ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def TrpcFunc @TrpcFunc end |
#Url ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6760 6761 6762 |
# File 'lib/v20180317/models.rb', line 6760 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 |
# File 'lib/v20180317/models.rb', line 6776 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 end |