Class: TencentCloud::Tke::V20220501::IntOrString

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

Overview

数值结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, intval = nil, strval = nil) ⇒ IntOrString

Returns a new instance of IntOrString.



1567
1568
1569
1570
1571
# File 'lib/v20220501/models.rb', line 1567

def initialize(type=nil, intval=nil, strval=nil)
  @Type = type
  @IntVal = intval
  @StrVal = strval
end

Instance Attribute Details

#IntValObject

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

Parameters:

  • Type:

    数值类型,0是int, 1是字符串

  • IntVal:

    整数

  • StrVal:

    字符串



1565
1566
1567
# File 'lib/v20220501/models.rb', line 1565

def IntVal
  @IntVal
end

#StrValObject

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

Parameters:

  • Type:

    数值类型,0是int, 1是字符串

  • IntVal:

    整数

  • StrVal:

    字符串



1565
1566
1567
# File 'lib/v20220501/models.rb', line 1565

def StrVal
  @StrVal
end

#TypeObject

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

Parameters:

  • Type:

    数值类型,0是int, 1是字符串

  • IntVal:

    整数

  • StrVal:

    字符串



1565
1566
1567
# File 'lib/v20220501/models.rb', line 1565

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1573
1574
1575
1576
1577
# File 'lib/v20220501/models.rb', line 1573

def deserialize(params)
  @Type = params['Type']
  @IntVal = params['IntVal']
  @StrVal = params['StrVal']
end