Class: TencentCloud::Scf::V20180416::PathRewriteRule

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

Overview

路径路由重写规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = nil, type = nil, rewrite = nil) ⇒ PathRewriteRule

Returns a new instance of PathRewriteRule.



3966
3967
3968
3969
3970
# File 'lib/v20180416/models.rb', line 3966

def initialize(path=nil, type=nil, rewrite=nil)
  @Path = path
  @Type = type
  @Rewrite = rewrite
end

Instance Attribute Details

#Path ⇒ Object

Parameters:

  • Path: —

    需要重路由的路径,取值规范:/,/,/xxx,/xxx/a,/xxx/

  • Type: —

    匹配规,取值范围: WildcardRules 通配符匹配, ExactRules 精确匹配

  • Rewrite: —

    替换值:比如/, /$



3964
3965
3966
# File 'lib/v20180416/models.rb', line 3964

def Path
  @Path
end

#Rewrite ⇒ Object

Parameters:

  • Path: —

    需要重路由的路径,取值规范:/,/,/xxx,/xxx/a,/xxx/

  • Type: —

    匹配规,取值范围: WildcardRules 通配符匹配, ExactRules 精确匹配

  • Rewrite: —

    替换值:比如/, /$



3964
3965
3966
# File 'lib/v20180416/models.rb', line 3964

def Rewrite
  @Rewrite
end

#Type ⇒ Object

Parameters:

  • Path: —

    需要重路由的路径,取值规范:/,/,/xxx,/xxx/a,/xxx/

  • Type: —

    匹配规,取值范围: WildcardRules 通配符匹配, ExactRules 精确匹配

  • Rewrite: —

    替换值:比如/, /$



3964
3965
3966
# File 'lib/v20180416/models.rb', line 3964

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



3972
3973
3974
3975
3976
# File 'lib/v20180416/models.rb', line 3972

def deserialize(params)
  @Path = params['Path']
  @Type = params['Type']
  @Rewrite = params['Rewrite']
end