Class: TencentCloud::Waf::V20180125::UpdateRateLimitV2Request
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::UpdateRateLimitV2Request
- Defined in:
- lib/v20180125/models.rb
Overview
UpdateRateLimitV2请求参数结构体
Instance Attribute Summary collapse
- #BlockPage ⇒ Object
- #Domain ⇒ Object
- #GetParamsName ⇒ Object
- #GetParamsValue ⇒ Object
- #IpLocation ⇒ Object
- #LimitHeaderName ⇒ Object
- #LimitHeaders ⇒ Object
- #LimitMethod ⇒ Object
- #LimitObject ⇒ Object
- #LimitPaths ⇒ Object
- #LimitRuleId ⇒ 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, limitruleid = nil, name = nil, priority = nil, status = nil, limitobject = nil, limitstrategy = nil, limitheadername = nil, limitmethod = nil, limitpaths = nil, limitheaders = nil, limitwindow = nil, getparamsname = nil, getparamsvalue = nil, postparamsname = nil, postparamsvalue = nil, iplocation = nil, redirectinfo = nil, blockpage = nil, objectsrc = nil, quotashare = nil, pathsoption = nil, order = nil) ⇒ UpdateRateLimitV2Request
constructor
A new instance of UpdateRateLimitV2Request.
Constructor Details
#initialize(domain = nil, limitruleid = nil, name = nil, priority = nil, status = nil, limitobject = nil, limitstrategy = nil, limitheadername = nil, limitmethod = nil, limitpaths = nil, limitheaders = nil, limitwindow = nil, getparamsname = nil, getparamsvalue = nil, postparamsname = nil, postparamsvalue = nil, iplocation = nil, redirectinfo = nil, blockpage = nil, objectsrc = nil, quotashare = nil, pathsoption = nil, order = nil) ⇒ UpdateRateLimitV2Request
Returns a new instance of UpdateRateLimitV2Request.
19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 |
# File 'lib/v20180125/models.rb', line 19201 def initialize(domain=nil, limitruleid=nil, name=nil, priority=nil, status=nil, limitobject=nil, limitstrategy=nil, limitheadername=nil, limitmethod=nil, limitpaths=nil, limitheaders=nil, limitwindow=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 @LimitRuleId = limitruleid @Name = name @Priority = priority @Status = status @LimitObject = limitobject @LimitStrategy = limitstrategy @LimitHeaderName = limitheadername @LimitMethod = limitmethod @LimitPaths = limitpaths @LimitHeaders = limitheaders @LimitWindow = limitwindow @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
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def BlockPage @BlockPage end |
#Domain ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def Domain @Domain end |
#GetParamsName ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def GetParamsName @GetParamsName end |
#GetParamsValue ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def GetParamsValue @GetParamsValue end |
#IpLocation ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def IpLocation @IpLocation end |
#LimitHeaderName ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitHeaderName @LimitHeaderName end |
#LimitHeaders ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitHeaders @LimitHeaders end |
#LimitMethod ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitMethod @LimitMethod end |
#LimitObject ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitObject @LimitObject end |
#LimitPaths ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitPaths @LimitPaths end |
#LimitRuleId ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitRuleId @LimitRuleId end |
#LimitStrategy ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitStrategy @LimitStrategy end |
#LimitWindow ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def LimitWindow @LimitWindow end |
#Name ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def Name @Name end |
#ObjectSrc ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def ObjectSrc @ObjectSrc end |
#Order ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def Order @Order end |
#PathsOption ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def PathsOption @PathsOption end |
#PostParamsName ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def PostParamsName @PostParamsName end |
#PostParamsValue ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def PostParamsValue @PostParamsValue end |
#Priority ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def Priority @Priority end |
#QuotaShare ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def QuotaShare @QuotaShare end |
#RedirectInfo ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def RedirectInfo @RedirectInfo end |
#Status ⇒ Object
19199 19200 19201 |
# File 'lib/v20180125/models.rb', line 19199 def Status @Status end |
Instance Method Details
#deserialize(params) ⇒ Object
19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 |
# File 'lib/v20180125/models.rb', line 19227 def deserialize(params) @Domain = params['Domain'] @LimitRuleId = params['LimitRuleId'] @Name = params['Name'] @Priority = params['Priority'] @Status = params['Status'] @LimitObject = params['LimitObject'] @LimitStrategy = params['LimitStrategy'] unless params['LimitHeaderName'].nil? @LimitHeaderName = LimitHeaderName.new @LimitHeaderName.deserialize(params['LimitHeaderName']) end 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['LimitWindow'].nil? @LimitWindow = LimitWindow.new @LimitWindow.deserialize(params['LimitWindow']) 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 |