Class: TencentCloud::Scf::V20180416::EndpointsConf

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

Overview

后端路由配置信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace = nil, functionname = nil, qualifier = nil, pathmatch = nil, pathrewrite = nil) ⇒ EndpointsConf

Returns a new instance of EndpointsConf.



1357
1358
1359
1360
1361
1362
1363
# File 'lib/v20180416/models.rb', line 1357

def initialize(namespace=nil, functionname=nil, qualifier=nil, pathmatch=nil, pathrewrite=nil)
  @Namespace = namespace
  @FunctionName = functionname
  @Qualifier = qualifier
  @PathMatch = pathmatch
  @PathRewrite = pathrewrite
end

Instance Attribute Details

#FunctionName ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Namespace: —

    函数命名空间

  • FunctionName: —

    函数名

  • Qualifier: —

    函数别名或版本

  • PathMatch: —

    路径,取值规范:/,/,/xxx,/xxx/a,/xxx/"

  • PathRewrite: —

    路径重写策略



1355
1356
1357
# File 'lib/v20180416/models.rb', line 1355

def FunctionName
  @FunctionName
end

#Namespace ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Namespace: —

    函数命名空间

  • FunctionName: —

    函数名

  • Qualifier: —

    函数别名或版本

  • PathMatch: —

    路径,取值规范:/,/,/xxx,/xxx/a,/xxx/"

  • PathRewrite: —

    路径重写策略



1355
1356
1357
# File 'lib/v20180416/models.rb', line 1355

def Namespace
  @Namespace
end

#PathMatch ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Namespace: —

    函数命名空间

  • FunctionName: —

    函数名

  • Qualifier: —

    函数别名或版本

  • PathMatch: —

    路径,取值规范:/,/,/xxx,/xxx/a,/xxx/"

  • PathRewrite: —

    路径重写策略



1355
1356
1357
# File 'lib/v20180416/models.rb', line 1355

def PathMatch
  @PathMatch
end

#PathRewrite ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Namespace: —

    函数命名空间

  • FunctionName: —

    函数名

  • Qualifier: —

    函数别名或版本

  • PathMatch: —

    路径,取值规范:/,/,/xxx,/xxx/a,/xxx/"

  • PathRewrite: —

    路径重写策略



1355
1356
1357
# File 'lib/v20180416/models.rb', line 1355

def PathRewrite
  @PathRewrite
end

#Qualifier ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Namespace: —

    函数命名空间

  • FunctionName: —

    函数名

  • Qualifier: —

    函数别名或版本

  • PathMatch: —

    路径,取值规范:/,/,/xxx,/xxx/a,/xxx/"

  • PathRewrite: —

    路径重写策略



1355
1356
1357
# File 'lib/v20180416/models.rb', line 1355

def Qualifier
  @Qualifier
end

Instance Method Details

#deserialize(params) ⇒ Object



1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'lib/v20180416/models.rb', line 1365

def deserialize(params)
  @Namespace = params['Namespace']
  @FunctionName = params['FunctionName']
  @Qualifier = params['Qualifier']
  @PathMatch = params['PathMatch']
  unless params['PathRewrite'].nil?
    @PathRewrite = []
    params['PathRewrite'].each do |i|
      pathrewriterule_tmp = PathRewriteRule.new
      pathrewriterule_tmp.deserialize(i)
      @PathRewrite << pathrewriterule_tmp
    end
  end
end