Class: Google::Apis::BigqueryV2::JobCreationReason

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

Overview

Reason about why a Job was created from a jobs.query method when used with JOB_CREATION_OPTIONAL Job creation mode. For jobs.insert method calls it will always be REQUESTED. This feature is not yet available. Jobs will always be created.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobCreationReason

Returns a new instance of JobCreationReason.



5194
5195
5196
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5194

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

Instance Attribute Details

#codeString

Output only. Specifies the high level reason why a Job was created. Corresponds to the JSON property code

Returns:

  • (String)


5192
5193
5194
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5192

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5199
5200
5201
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5199

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