Class: Google::Apis::DataformV1beta1::BigQueryAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataform_v1beta1/classes.rb,
lib/google/apis/dataform_v1beta1/representations.rb,
lib/google/apis/dataform_v1beta1/representations.rb

Overview

Represents a workflow action that will run against BigQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BigQueryAction

Returns a new instance of BigQueryAction.



92
93
94
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 92

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#job_idString

Output only. The ID of the BigQuery job that executed the SQL in sql_script. Only set once the job has started to run. Corresponds to the JSON property jobId

Returns:

  • (String)


85
86
87
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 85

def job_id
  @job_id
end

#sql_scriptString

Output only. The generated BigQuery SQL script that will be executed. Corresponds to the JSON property sqlScript

Returns:

  • (String)


90
91
92
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 90

def sql_script
  @sql_script
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



97
98
99
100
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 97

def update!(**args)
  @job_id = args[:job_id] if args.key?(:job_id)
  @sql_script = args[:sql_script] if args.key?(:sql_script)
end