Class: Google::Apis::DataprocV1::JobReference

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

Overview

Encapsulates the full scoping used to reference a job.

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

Returns a new instance of JobReference.


738
739
740
# File 'generated/google/apis/dataproc_v1/classes.rb', line 738

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

Instance Attribute Details

#job_idString

[Required] The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 512 characters. Corresponds to the JSON property jobId

Returns:

  • (String)

736
737
738
# File 'generated/google/apis/dataproc_v1/classes.rb', line 736

def job_id
  @job_id
end

#project_idString

[Required] The ID of the Google Cloud Platform project that the job belongs to. Corresponds to the JSON property projectId

Returns:

  • (String)

727
728
729
# File 'generated/google/apis/dataproc_v1/classes.rb', line 727

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


743
744
745
746
# File 'generated/google/apis/dataproc_v1/classes.rb', line 743

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