Class: Google::Apis::BigqueryV2::JobStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobStatus

Returns a new instance of JobStatus



2242
2243
2244
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2242

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

Instance Attribute Details

#error_resultGoogle::Apis::BigqueryV2::ErrorProto

[Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful. Corresponds to the JSON property errorResult



2227
2228
2229
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2227

def error_result
  @error_result
end

#errorsArray<Google::Apis::BigqueryV2::ErrorProto>

[Output-only] The first errors encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. Corresponds to the JSON property errors



2235
2236
2237
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2235

def errors
  @errors
end

#stateString

[Output-only] Running state of the job. Corresponds to the JSON property state

Returns:

  • (String)


2240
2241
2242
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2240

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2247
2248
2249
2250
2251
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2247

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