Class: Google::Apis::BigqueryV2::JobCreationReason
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::JobCreationReason
- 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
. Preview
Instance Attribute Summary collapse
-
#code ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobCreationReason
constructor
A new instance of JobCreationReason.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobCreationReason
Returns a new instance of JobCreationReason.
5238 5239 5240 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Output only. Specifies the high level reason why a Job was created.
Corresponds to the JSON property code
5236 5237 5238 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5236 def code @code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5243 5244 5245 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5243 def update!(**args) @code = args[:code] if args.key?(:code) end |