Class: TencentCloud::Cdn::V20180606::UserAgentFilterRule

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

UserAgent黑白名单规则配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruletype = nil, rulepaths = nil, useragents = nil, filtertype = nil) ⇒ UserAgentFilterRule

Returns a new instance of UserAgentFilterRule.



14202
14203
14204
14205
14206
14207
# File 'lib/v20180606/models.rb', line 14202

def initialize(ruletype=nil, rulepaths=nil, useragents=nil, filtertype=nil)
  @RuleType = ruletype
  @RulePaths = rulepaths
  @UserAgents = useragents
  @FilterType = filtertype
end

Instance Attribute Details

#FilterTypeObject

all: 所有访问路径生效file: 根据文件后缀类型生效directory: 根据目录生效path: 根据完整访问路径生效注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleType:

    访问路径生效类型

  • RulePaths:

    访问路径生效内容

  • UserAgents:

    UserAgent列表

  • FilterType:

    黑名单或白名单,blacklist或whitelist



14200
14201
14202
# File 'lib/v20180606/models.rb', line 14200

def FilterType
  @FilterType
end

#RulePathsObject

all: 所有访问路径生效file: 根据文件后缀类型生效directory: 根据目录生效path: 根据完整访问路径生效注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleType:

    访问路径生效类型

  • RulePaths:

    访问路径生效内容

  • UserAgents:

    UserAgent列表

  • FilterType:

    黑名单或白名单,blacklist或whitelist



14200
14201
14202
# File 'lib/v20180606/models.rb', line 14200

def RulePaths
  @RulePaths
end

#RuleTypeObject

all: 所有访问路径生效file: 根据文件后缀类型生效directory: 根据目录生效path: 根据完整访问路径生效注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleType:

    访问路径生效类型

  • RulePaths:

    访问路径生效内容

  • UserAgents:

    UserAgent列表

  • FilterType:

    黑名单或白名单,blacklist或whitelist



14200
14201
14202
# File 'lib/v20180606/models.rb', line 14200

def RuleType
  @RuleType
end

#UserAgentsObject

all: 所有访问路径生效file: 根据文件后缀类型生效directory: 根据目录生效path: 根据完整访问路径生效注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleType:

    访问路径生效类型

  • RulePaths:

    访问路径生效内容

  • UserAgents:

    UserAgent列表

  • FilterType:

    黑名单或白名单,blacklist或whitelist



14200
14201
14202
# File 'lib/v20180606/models.rb', line 14200

def UserAgents
  @UserAgents
end

Instance Method Details

#deserialize(params) ⇒ Object



14209
14210
14211
14212
14213
14214
# File 'lib/v20180606/models.rb', line 14209

def deserialize(params)
  @RuleType = params['RuleType']
  @RulePaths = params['RulePaths']
  @UserAgents = params['UserAgents']
  @FilterType = params['FilterType']
end