Class: TencentCloud::Apigateway::V20180808::ConstantParameter

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

Overview

常量参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, desc = nil, position = nil, defaultvalue = nil) ⇒ ConstantParameter

Returns a new instance of ConstantParameter.



1698
1699
1700
1701
1702
1703
# File 'lib/v20180808/models.rb', line 1698

def initialize(name=nil, desc=nil, position=nil, defaultvalue=nil)
  @Name = name
  @Desc = desc
  @Position = position
  @DefaultValue = defaultvalue
end

Instance Attribute Details

#DefaultValueObject

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

Parameters:

  • Name:

    常量参数名称。只有 ServiceType 是 HTTP 才会用到此参数。

  • Desc:

    常量参数描述。只有 ServiceType 是 HTTP 才会用到此参数。

  • Position:

    常量参数位置。只有 ServiceType 是 HTTP 才会用到此参数。

  • DefaultValue:

    常量参数默认值。只有 ServiceType 是 HTTP 才会用到此参数。



1696
1697
1698
# File 'lib/v20180808/models.rb', line 1696

def DefaultValue
  @DefaultValue
end

#DescObject

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

Parameters:

  • Name:

    常量参数名称。只有 ServiceType 是 HTTP 才会用到此参数。

  • Desc:

    常量参数描述。只有 ServiceType 是 HTTP 才会用到此参数。

  • Position:

    常量参数位置。只有 ServiceType 是 HTTP 才会用到此参数。

  • DefaultValue:

    常量参数默认值。只有 ServiceType 是 HTTP 才会用到此参数。



1696
1697
1698
# File 'lib/v20180808/models.rb', line 1696

def Desc
  @Desc
end

#NameObject

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

Parameters:

  • Name:

    常量参数名称。只有 ServiceType 是 HTTP 才会用到此参数。

  • Desc:

    常量参数描述。只有 ServiceType 是 HTTP 才会用到此参数。

  • Position:

    常量参数位置。只有 ServiceType 是 HTTP 才会用到此参数。

  • DefaultValue:

    常量参数默认值。只有 ServiceType 是 HTTP 才会用到此参数。



1696
1697
1698
# File 'lib/v20180808/models.rb', line 1696

def Name
  @Name
end

#PositionObject

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

Parameters:

  • Name:

    常量参数名称。只有 ServiceType 是 HTTP 才会用到此参数。

  • Desc:

    常量参数描述。只有 ServiceType 是 HTTP 才会用到此参数。

  • Position:

    常量参数位置。只有 ServiceType 是 HTTP 才会用到此参数。

  • DefaultValue:

    常量参数默认值。只有 ServiceType 是 HTTP 才会用到此参数。



1696
1697
1698
# File 'lib/v20180808/models.rb', line 1696

def Position
  @Position
end

Instance Method Details

#deserialize(params) ⇒ Object



1705
1706
1707
1708
1709
1710
# File 'lib/v20180808/models.rb', line 1705

def deserialize(params)
  @Name = params['Name']
  @Desc = params['Desc']
  @Position = params['Position']
  @DefaultValue = params['DefaultValue']
end