Class: TencentCloud::Waf::V20180125::CreateRateLimitV2Request
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::CreateRateLimitV2Request
- Defined in:
- lib/v20180125/models.rb
Overview
CreateRateLimitV2请求参数结构体
Instance Attribute Summary collapse
- #BlockPage ⇒ Object
- #Domain ⇒ Object
- #GetParamsName ⇒ Object
- #GetParamsValue ⇒ Object
- #IpLocation ⇒ Object
- #LimitHeaderName ⇒ Object
- #LimitHeaders ⇒ Object
- #LimitMethod ⇒ Object
- #LimitObject ⇒ Object
- #LimitPaths ⇒ Object
- #LimitStrategy ⇒ Object
- #LimitWindow ⇒ Object
- #Name ⇒ Object
- #ObjectSrc ⇒ Object
- #Order ⇒ Object
- #PathsOption ⇒ Object
- #PostParamsName ⇒ Object
- #PostParamsValue ⇒ Object
- #Priority ⇒ Object
- #QuotaShare ⇒ Object
- #RedirectInfo ⇒ Object
- #Status ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(domain = nil, name = nil, priority = nil, status = nil, limitwindow = nil, limitobject = nil, limitstrategy = nil, limitmethod = nil, limitpaths = nil, limitheaders = nil, limitheadername = nil, getparamsname = nil, getparamsvalue = nil, postparamsname = nil, postparamsvalue = nil, iplocation = nil, redirectinfo = nil, blockpage = nil, objectsrc = nil, quotashare = nil, pathsoption = nil, order = nil) ⇒ CreateRateLimitV2Request
constructor
A new instance of CreateRateLimitV2Request.
Constructor Details
#initialize(domain = nil, name = nil, priority = nil, status = nil, limitwindow = nil, limitobject = nil, limitstrategy = nil, limitmethod = nil, limitpaths = nil, limitheaders = nil, limitheadername = nil, getparamsname = nil, getparamsvalue = nil, postparamsname = nil, postparamsvalue = nil, iplocation = nil, redirectinfo = nil, blockpage = nil, objectsrc = nil, quotashare = nil, pathsoption = nil, order = nil) ⇒ CreateRateLimitV2Request
Returns a new instance of CreateRateLimitV2Request.
4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 |
# File 'lib/v20180125/models.rb', line 4194 def initialize(domain=nil, name=nil, priority=nil, status=nil, limitwindow=nil, limitobject=nil, limitstrategy=nil, limitmethod=nil, limitpaths=nil, limitheaders=nil, limitheadername=nil, getparamsname=nil, getparamsvalue=nil, postparamsname=nil, postparamsvalue=nil, iplocation=nil, redirectinfo=nil, blockpage=nil, objectsrc=nil, quotashare=nil, pathsoption=nil, order=nil) @Domain = domain @Name = name @Priority = priority @Status = status @LimitWindow = limitwindow @LimitObject = limitobject @LimitStrategy = limitstrategy @LimitMethod = limitmethod @LimitPaths = limitpaths @LimitHeaders = limitheaders @LimitHeaderName = limitheadername @GetParamsName = getparamsname @GetParamsValue = getparamsvalue @PostParamsName = postparamsname @PostParamsValue = postparamsvalue @IpLocation = iplocation @RedirectInfo = redirectinfo @BlockPage = blockpage @ObjectSrc = objectsrc @QuotaShare = quotashare @PathsOption = pathsoption @Order = order end |
Instance Attribute Details
#BlockPage ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def BlockPage @BlockPage end |
#Domain ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def Domain @Domain end |
#GetParamsName ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def GetParamsName @GetParamsName end |
#GetParamsValue ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def GetParamsValue @GetParamsValue end |
#IpLocation ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def IpLocation @IpLocation end |
#LimitHeaderName ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitHeaderName @LimitHeaderName end |
#LimitHeaders ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitHeaders @LimitHeaders end |
#LimitMethod ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitMethod @LimitMethod end |
#LimitObject ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitObject @LimitObject end |
#LimitPaths ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitPaths @LimitPaths end |
#LimitStrategy ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitStrategy @LimitStrategy end |
#LimitWindow ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def LimitWindow @LimitWindow end |
#Name ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def Name @Name end |
#ObjectSrc ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def ObjectSrc @ObjectSrc end |
#Order ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def Order @Order end |
#PathsOption ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def PathsOption @PathsOption end |
#PostParamsName ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def PostParamsName @PostParamsName end |
#PostParamsValue ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def PostParamsValue @PostParamsValue end |
#Priority ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def Priority @Priority end |
#QuotaShare ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def QuotaShare @QuotaShare end |
#RedirectInfo ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def RedirectInfo @RedirectInfo end |
#Status ⇒ Object
4192 4193 4194 |
# File 'lib/v20180125/models.rb', line 4192 def Status @Status end |
Instance Method Details
#deserialize(params) ⇒ Object
4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 |
# File 'lib/v20180125/models.rb', line 4219 def deserialize(params) @Domain = params['Domain'] @Name = params['Name'] @Priority = params['Priority'] @Status = params['Status'] unless params['LimitWindow'].nil? @LimitWindow = LimitWindow.new @LimitWindow.deserialize(params['LimitWindow']) end @LimitObject = params['LimitObject'] @LimitStrategy = params['LimitStrategy'] unless params['LimitMethod'].nil? @LimitMethod = LimitMethod.new @LimitMethod.deserialize(params['LimitMethod']) end unless params['LimitPaths'].nil? @LimitPaths = LimitPath.new @LimitPaths.deserialize(params['LimitPaths']) end unless params['LimitHeaders'].nil? @LimitHeaders = [] params['LimitHeaders'].each do |i| limitheader_tmp = LimitHeader.new limitheader_tmp.deserialize(i) @LimitHeaders << limitheader_tmp end end unless params['LimitHeaderName'].nil? @LimitHeaderName = LimitHeaderName.new @LimitHeaderName.deserialize(params['LimitHeaderName']) end unless params['GetParamsName'].nil? @GetParamsName = MatchOption.new @GetParamsName.deserialize(params['GetParamsName']) end unless params['GetParamsValue'].nil? @GetParamsValue = MatchOption.new @GetParamsValue.deserialize(params['GetParamsValue']) end unless params['PostParamsName'].nil? @PostParamsName = MatchOption.new @PostParamsName.deserialize(params['PostParamsName']) end unless params['PostParamsValue'].nil? @PostParamsValue = MatchOption.new @PostParamsValue.deserialize(params['PostParamsValue']) end unless params['IpLocation'].nil? @IpLocation = MatchOption.new @IpLocation.deserialize(params['IpLocation']) end unless params['RedirectInfo'].nil? @RedirectInfo = RedirectInfo.new @RedirectInfo.deserialize(params['RedirectInfo']) end @BlockPage = params['BlockPage'] @ObjectSrc = params['ObjectSrc'] @QuotaShare = params['QuotaShare'] unless params['PathsOption'].nil? @PathsOption = [] params['PathsOption'].each do |i| pathitem_tmp = PathItem.new pathitem_tmp.deserialize(i) @PathsOption << pathitem_tmp end end @Order = params['Order'] end |