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.
6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 |
# File 'lib/v20180317/models.rb', line 6891 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。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def ForwardType @ForwardType end |
#HealthCheck ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def HealthCheck @HealthCheck end |
#ListenerId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def ListenerId @ListenerId end |
#LoadBalancerId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def LoadBalancerId @LoadBalancerId end |
#LocationId ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def LocationId @LocationId end |
#OAuth ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def OAuth @OAuth end |
#Scheduler ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def Scheduler @Scheduler end |
#SessionExpireTime ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def SessionExpireTime @SessionExpireTime end |
#TrpcCallee ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def TrpcCallee @TrpcCallee end |
#TrpcFunc ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def TrpcFunc @TrpcFunc end |
#Url ⇒ Object
分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。默认为0。
6889 6890 6891 |
# File 'lib/v20180317/models.rb', line 6889 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 |
# File 'lib/v20180317/models.rb', line 6905 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 |