Class: TencentCloud::Dlc::V20210125::TColumn

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

Overview

表字段描述信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, type = nil, comment = nil, default = nil, notnull = nil, precision = nil, scale = nil, position = nil, ispartition = nil) ⇒ TColumn

Returns a new instance of TColumn.



15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
# File 'lib/v20210125/models.rb', line 15268

def initialize(name=nil, type=nil, comment=nil, default=nil, notnull=nil, precision=nil, scale=nil, position=nil, ispartition=nil)
  @Name = name
  @Type = type
  @Comment = comment
  @Default = default
  @NotNull = notnull
  @Precision = precision
  @Scale = scale
  @Position = position
  @IsPartition = ispartition
end

Instance Attribute Details

#CommentObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Comment
  @Comment
end

#DefaultObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Default
  @Default
end

#IsPartitionObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def IsPartition
  @IsPartition
end

#NameObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Name
  @Name
end

#NotNullObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def NotNull
  @NotNull
end

#PositionObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Position
  @Position
end

#PrecisionObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Precision
  @Precision
end

#ScaleObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Scale
  @Scale
end

#TypeObject

Scale小于Precision

Parameters:

  • Name:

    字段名称

  • Type:

    字段类型

  • Comment:

    字段描述

  • Default:

    字段默认值

  • NotNull:

    字段是否是非空

  • Precision:

    表示整个 numeric 的长度,取值1-38

  • Scale:

    表示小数部分的长度

  • Position:

    字段位置,小的在前

  • IsPartition:

    是否为分区字段



15266
15267
15268
# File 'lib/v20210125/models.rb', line 15266

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
# File 'lib/v20210125/models.rb', line 15280

def deserialize(params)
  @Name = params['Name']
  @Type = params['Type']
  @Comment = params['Comment']
  @Default = params['Default']
  @NotNull = params['NotNull']
  @Precision = params['Precision']
  @Scale = params['Scale']
  @Position = params['Position']
  @IsPartition = params['IsPartition']
end