Class: Google::Apis::BigqueryV2::JobList::Job

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) ⇒ Job

Returns a new instance of Job.


3440
3441
3442
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3440

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

Instance Attribute Details

#configurationGoogle::Apis::BigqueryV2::JobConfiguration

[Full-projection-only] Specifies the job configuration. Corresponds to the JSON property configuration


3396
3397
3398
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3396

def configuration
  @configuration
end

#error_resultGoogle::Apis::BigqueryV2::ErrorProto

A result object that will be present only if the job has failed. Corresponds to the JSON property errorResult


3401
3402
3403
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3401

def error_result
  @error_result
end

#idString

Unique opaque ID of the job. Corresponds to the JSON property id

Returns:

  • (String)

3406
3407
3408
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3406

def id
  @id
end

#job_referenceGoogle::Apis::BigqueryV2::JobReference

Job reference uniquely identifying the job. Corresponds to the JSON property jobReference


3411
3412
3413
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3411

def job_reference
  @job_reference
end

#kindString

The resource type. Corresponds to the JSON property kind

Returns:

  • (String)

3416
3417
3418
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3416

def kind
  @kind
end

#stateString

Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed. Corresponds to the JSON property state

Returns:

  • (String)

3422
3423
3424
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3422

def state
  @state
end

#statisticsGoogle::Apis::BigqueryV2::JobStatistics

[Output-only] Information about the job, including starting time and ending time of the job. Corresponds to the JSON property statistics


3428
3429
3430
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3428

def statistics
  @statistics
end

#statusGoogle::Apis::BigqueryV2::JobStatus

[Full-projection-only] Describes the state of the job. Corresponds to the JSON property status


3433
3434
3435
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3433

def status
  @status
end

#user_emailString

[Full-projection-only] Email address of the user who ran the job. Corresponds to the JSON property user_email

Returns:

  • (String)

3438
3439
3440
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3438

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3445

def update!(**args)
  @configuration = args[:configuration] if args.key?(:configuration)
  @error_result = args[:error_result] if args.key?(:error_result)
  @id = args[:id] if args.key?(:id)
  @job_reference = args[:job_reference] if args.key?(:job_reference)
  @kind = args[:kind] if args.key?(:kind)
  @state = args[:state] if args.key?(:state)
  @statistics = args[:statistics] if args.key?(:statistics)
  @status = args[:status] if args.key?(:status)
  @user_email = args[:user_email] if args.key?(:user_email)
end