Class: TencentCloud::Scf::V20180416::EndpointsConf
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Scf::V20180416::EndpointsConf
- Defined in:
- lib/v20180416/models.rb
Overview
后端路由配置信息
Instance Attribute Summary collapse
-
#FunctionName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Namespace ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PathMatch ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PathRewrite ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Qualifier ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(namespace = nil, functionname = nil, qualifier = nil, pathmatch = nil, pathrewrite = nil) ⇒ EndpointsConf
constructor
A new instance of EndpointsConf.
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,表示取不到有效值。
1355 1356 1357 |
# File 'lib/v20180416/models.rb', line 1355 def FunctionName @FunctionName end |
#Namespace ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1355 1356 1357 |
# File 'lib/v20180416/models.rb', line 1355 def Namespace @Namespace end |
#PathMatch ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1355 1356 1357 |
# File 'lib/v20180416/models.rb', line 1355 def PathMatch @PathMatch end |
#PathRewrite ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1355 1356 1357 |
# File 'lib/v20180416/models.rb', line 1355 def PathRewrite @PathRewrite end |
#Qualifier ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
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 |