Class: TencentCloud::Dlc::V20210125::SQLTask

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

Overview

SQL查询任务

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sql = nil, config = nil) ⇒ SQLTask

Returns a new instance of SQLTask.



13974
13975
13976
13977
# File 'lib/v20210125/models.rb', line 13974

def initialize(sql=nil, config=nil)
  @SQL = sql
  @Config = config
end

Instance Attribute Details

#ConfigObject

Parameters:

  • SQL:

    base64加密后的SQL语句

  • Config:

    任务的配置信息



13972
13973
13974
# File 'lib/v20210125/models.rb', line 13972

def Config
  @Config
end

#SQLObject

Parameters:

  • SQL:

    base64加密后的SQL语句

  • Config:

    任务的配置信息



13972
13973
13974
# File 'lib/v20210125/models.rb', line 13972

def SQL
  @SQL
end

Instance Method Details

#deserialize(params) ⇒ Object



13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
# File 'lib/v20210125/models.rb', line 13979

def deserialize(params)
  @SQL = params['SQL']
  unless params['Config'].nil?
    @Config = []
    params['Config'].each do |i|
      kvpair_tmp = KVPair.new
      kvpair_tmp.deserialize(i)
      @Config << kvpair_tmp
    end
  end
end