Class: TencentCloud::Waf::V20180125::AreaBanRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::AreaBanRule
- Defined in:
- lib/v20180125/models.rb
Overview
地域封禁规则详情
Instance Attribute Summary collapse
- #Areas ⇒ Object
- #CronType ⇒ Object
- #JobDateTime ⇒ Object
- #JobType ⇒ Object
- #Lang ⇒ Object
- #Source ⇒ Object
- #Status ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(status = nil, source = nil, areas = nil, jobtype = nil, jobdatetime = nil, crontype = nil, lang = nil) ⇒ AreaBanRule
constructor
A new instance of AreaBanRule.
Constructor Details
#initialize(status = nil, source = nil, areas = nil, jobtype = nil, jobdatetime = nil, crontype = nil, lang = nil) ⇒ AreaBanRule
Returns a new instance of AreaBanRule.
1779 1780 1781 1782 1783 1784 1785 1786 1787 |
# File 'lib/v20180125/models.rb', line 1779 def initialize(status=nil, source=nil, areas=nil, jobtype=nil, jobdatetime=nil, crontype=nil, lang=nil) @Status = status @Source = source @Areas = areas @JobType = jobtype @JobDateTime = jobdatetime @CronType = crontype @Lang = lang end |
Instance Attribute Details
#Areas ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def Areas @Areas end |
#CronType ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def CronType @CronType end |
#JobDateTime ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def JobDateTime @JobDateTime end |
#JobType ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def JobType @JobType end |
#Lang ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def Lang @Lang end |
#Source ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def Source @Source end |
#Status ⇒ Object
1777 1778 1779 |
# File 'lib/v20180125/models.rb', line 1777 def Status @Status end |
Instance Method Details
#deserialize(params) ⇒ Object
1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 |
# File 'lib/v20180125/models.rb', line 1789 def deserialize(params) @Status = params['Status'] @Source = params['Source'] unless params['Areas'].nil? @Areas = [] params['Areas'].each do |i| area_tmp = Area.new area_tmp.deserialize(i) @Areas << area_tmp end end @JobType = params['JobType'] unless params['JobDateTime'].nil? @JobDateTime = JobDateTime.new @JobDateTime.deserialize(params['JobDateTime']) end @CronType = params['CronType'] @Lang = params['Lang'] end |