Class: TencentCloud::Cdn::V20180606::GeoBlockStrategy
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::GeoBlockStrategy
- Defined in:
- lib/v20180606/models.rb
Overview
区域访问控制策略
Instance Attribute Summary collapse
-
#BlockType ⇒ Object
whitelist: 白名单 blacklist: 黑名单 all: 全部 directory: 目录.
-
#Districts ⇒ Object
whitelist: 白名单 blacklist: 黑名单 all: 全部 directory: 目录.
-
#RulePaths ⇒ Object
whitelist: 白名单 blacklist: 黑名单 all: 全部 directory: 目录.
-
#RuleType ⇒ Object
whitelist: 白名单 blacklist: 黑名单 all: 全部 directory: 目录.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(blocktype = nil, rulepaths = nil, ruletype = nil, districts = nil) ⇒ GeoBlockStrategy
constructor
A new instance of GeoBlockStrategy.
Constructor Details
#initialize(blocktype = nil, rulepaths = nil, ruletype = nil, districts = nil) ⇒ GeoBlockStrategy
Returns a new instance of GeoBlockStrategy.
5337 5338 5339 5340 5341 5342 |
# File 'lib/v20180606/models.rb', line 5337 def initialize(blocktype=nil, rulepaths=nil, ruletype=nil, districts=nil) @BlockType = blocktype @RulePaths = rulepaths @RuleType = ruletype @Districts = districts end |
Instance Attribute Details
#BlockType ⇒ Object
whitelist: 白名单blacklist: 黑名单all: 全部directory: 目录
5335 5336 5337 |
# File 'lib/v20180606/models.rb', line 5335 def BlockType @BlockType end |
#Districts ⇒ Object
whitelist: 白名单blacklist: 黑名单all: 全部directory: 目录
5335 5336 5337 |
# File 'lib/v20180606/models.rb', line 5335 def Districts @Districts end |
#RulePaths ⇒ Object
whitelist: 白名单blacklist: 黑名单all: 全部directory: 目录
5335 5336 5337 |
# File 'lib/v20180606/models.rb', line 5335 def RulePaths @RulePaths end |
#RuleType ⇒ Object
whitelist: 白名单blacklist: 黑名单all: 全部directory: 目录
5335 5336 5337 |
# File 'lib/v20180606/models.rb', line 5335 def RuleType @RuleType end |
Instance Method Details
#deserialize(params) ⇒ Object
5344 5345 5346 5347 5348 5349 |
# File 'lib/v20180606/models.rb', line 5344 def deserialize(params) @BlockType = params['BlockType'] @RulePaths = params['RulePaths'] @RuleType = params['RuleType'] @Districts = params['Districts'] end |