Class: TencentCloud::Eb::V20210416::TextParams

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

Overview

描述如何切分数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(separator = nil, regex = nil) ⇒ TextParams

Returns a new instance of TextParams.



2415
2416
2417
2418
# File 'lib/v20210416/models.rb', line 2415

def initialize(separator=nil, regex=nil)
  @Separator = separator
  @Regex = regex
end

Instance Attribute Details

#RegexObject

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

Parameters:

  • Separator:

    逗号、| 、制表符、空格、换行符、%、#,限制长度为 1。

  • Regex:

    填写正则表达式:长度128



2413
2414
2415
# File 'lib/v20210416/models.rb', line 2413

def Regex
  @Regex
end

#SeparatorObject

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

Parameters:

  • Separator:

    逗号、| 、制表符、空格、换行符、%、#,限制长度为 1。

  • Regex:

    填写正则表达式:长度128



2413
2414
2415
# File 'lib/v20210416/models.rb', line 2413

def Separator
  @Separator
end

Instance Method Details

#deserialize(params) ⇒ Object



2420
2421
2422
2423
# File 'lib/v20210416/models.rb', line 2420

def deserialize(params)
  @Separator = params['Separator']
  @Regex = params['Regex']
end