Class: Google::Apis::DataflowV1b3::Job
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Job
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb
Overview
Defines a job to be run by the Cloud Dataflow service.
Instance Attribute Summary collapse
-
#client_request_id ⇒ String
The client's unique identifier of the job, re-used across retried attempts.
-
#create_time ⇒ String
The timestamp when the job was initially created.
-
#current_state ⇒ String
The current state of the job.
-
#current_state_time ⇒ String
The timestamp associated with the current state.
-
#environment ⇒ Google::Apis::DataflowV1b3::Environment
Describes the environment in which a Dataflow Job runs.
-
#execution_info ⇒ Google::Apis::DataflowV1b3::JobExecutionInfo
Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job.
-
#id ⇒ String
The unique ID of this job.
-
#labels ⇒ Hash<String,String>
User-defined labels for this job.
-
#location ⇒ String
The location that contains this job.
-
#name ⇒ String
The user-specified Cloud Dataflow job name.
-
#pipeline_description ⇒ Google::Apis::DataflowV1b3::PipelineDescription
A descriptive representation of submitted pipeline as well as the executed form.
-
#project_id ⇒ String
The ID of the Cloud Platform project that the job belongs to.
-
#replace_job_id ⇒ String
If this job is an update of an existing job, this field is the job ID of the job it replaced.
-
#replaced_by_job_id ⇒ String
If another job is an update of this job (and thus, this job is in
JOB_STATE_UPDATED
), this field contains the ID of that job. -
#requested_state ⇒ String
The job's requested state.
-
#stage_states ⇒ Array<Google::Apis::DataflowV1b3::ExecutionStageState>
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
-
#steps ⇒ Array<Google::Apis::DataflowV1b3::Step>
The top-level steps that constitute the entire job.
-
#temp_files ⇒ Array<String>
A set of files the system should be aware of that are used for temporary storage.
-
#transform_name_mapping ⇒ Hash<String,String>
The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
-
#type ⇒ String
The type of Cloud Dataflow job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Job
constructor
A new instance of Job.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Job
Returns a new instance of Job
4818 4819 4820 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4818 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_request_id ⇒ String
The client's unique identifier of the job, re-used across retried attempts.
If this field is set, the service will ensure its uniqueness.
The request to create a job will fail if the service has knowledge of a
previously submitted job with the same client's ID and job name.
The caller may use this field to ensure idempotence of job
creation across retried attempts to create a job.
By default, the field is empty and, in that case, the service ignores it.
Corresponds to the JSON property clientRequestId
4725 4726 4727 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4725 def client_request_id @client_request_id end |
#create_time ⇒ String
The timestamp when the job was initially created. Immutable and set by the
Cloud Dataflow service.
Corresponds to the JSON property createTime
4810 4811 4812 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4810 def create_time @create_time end |
#current_state ⇒ String
The current state of the job.
Jobs are created in the JOB_STATE_STOPPED
state unless otherwise
specified.
A job in the JOB_STATE_RUNNING
state may asynchronously enter a
terminal state. After a job has reached a terminal state, no
further state updates may be made.
This field may be mutated by the Cloud Dataflow service;
callers cannot mutate it.
Corresponds to the JSON property currentState
4772 4773 4774 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4772 def current_state @current_state end |
#current_state_time ⇒ String
The timestamp associated with the current state.
Corresponds to the JSON property currentStateTime
4782 4783 4784 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4782 def current_state_time @current_state_time end |
#environment ⇒ Google::Apis::DataflowV1b3::Environment
Describes the environment in which a Dataflow Job runs.
Corresponds to the JSON property environment
4804 4805 4806 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4804 def environment @environment end |
#execution_info ⇒ Google::Apis::DataflowV1b3::JobExecutionInfo
Additional information about how a Cloud Dataflow job will be executed that
isn't contained in the submitted job.
Corresponds to the JSON property executionInfo
4753 4754 4755 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4753 def execution_info @execution_info end |
#id ⇒ String
The unique ID of this job.
This field is set by the Cloud Dataflow service when the Job is
created, and is immutable for the life of the job.
Corresponds to the JSON property id
4760 4761 4762 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4760 def id @id end |
#labels ⇒ Hash<String,String>
User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions:
- Keys must conform to regexp: \p
Ll
\pLo
0,62
- Values must conform to regexp: [\p
Ll
\pLo
\pN
_-]0,63
- Both keys and values are additionally constrained to be <= 128 bytes in
size.
Corresponds to the JSON property
labels
4799 4800 4801 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4799 def labels @labels end |
#location ⇒ String
The location that contains this job.
Corresponds to the JSON property location
4777 4778 4779 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4777 def location @location end |
#name ⇒ String
The user-specified Cloud Dataflow job name.
Only one Job with a given name may exist in a project at any
given time. If a caller attempts to create a Job with the same
name as an already-existing Job, the attempt returns the
existing Job.
The name must match the regular expression
[a-z]([-a-z0-9]
0,38[a-z0-9])?
Corresponds to the JSON property name
4736 4737 4738 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4736 def name @name end |
#pipeline_description ⇒ Google::Apis::DataflowV1b3::PipelineDescription
A descriptive representation of submitted pipeline as well as the executed
form. This data is provided by the Dataflow service for ease of visualizing
the pipeline and interpretting Dataflow provided metrics.
Corresponds to the JSON property pipelineDescription
4682 4683 4684 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4682 def pipeline_description @pipeline_description end |
#project_id ⇒ String
The ID of the Cloud Platform project that the job belongs to.
Corresponds to the JSON property projectId
4670 4671 4672 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4670 def project_id @project_id end |
#replace_job_id ⇒ String
If this job is an update of an existing job, this field is the job ID
of the job it replaced.
When sending a CreateJobRequest
, you can update a job by specifying it
here. The job named here is stopped, and its intermediate state is
transferred to this job.
Corresponds to the JSON property replaceJobId
4691 4692 4693 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4691 def replace_job_id @replace_job_id end |
#replaced_by_job_id ⇒ String
If another job is an update of this job (and thus, this job is in
JOB_STATE_UPDATED
), this field contains the ID of that job.
Corresponds to the JSON property replacedByJobId
4747 4748 4749 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4747 def replaced_by_job_id @replaced_by_job_id end |
#requested_state ⇒ String
The job's requested state.
UpdateJob
may be used to switch between the JOB_STATE_STOPPED
and
JOB_STATE_RUNNING
states, by setting requested_state. UpdateJob
may
also be used to directly set a job's requested state to
JOB_STATE_CANCELLED
or JOB_STATE_DONE
, irrevocably terminating the
job if it has not already reached a terminal state.
Corresponds to the JSON property requestedState
4701 4702 4703 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4701 def requested_state @requested_state end |
#stage_states ⇒ Array<Google::Apis::DataflowV1b3::ExecutionStageState>
This field may be mutated by the Cloud Dataflow service;
callers cannot mutate it.
Corresponds to the JSON property stageStates
4816 4817 4818 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4816 def stage_states @stage_states end |
#steps ⇒ Array<Google::Apis::DataflowV1b3::Step>
The top-level steps that constitute the entire job.
Corresponds to the JSON property steps
4741 4742 4743 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4741 def steps @steps end |
#temp_files ⇒ Array<String>
A set of files the system should be aware of that are used
for temporary storage. These temporary files will be
removed on job completion.
No duplicates are allowed.
No file patterns are supported.
The supported files are:
Google Cloud Storage:
storage.googleapis.com/bucket
/object
bucket.storage.googleapis.com/object
Corresponds to the JSON property tempFiles
4714 4715 4716 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4714 def temp_files @temp_files end |
#transform_name_mapping ⇒ Hash<String,String>
The map of transform name prefixes of the job to be replaced to the
corresponding name prefixes of the new job.
Corresponds to the JSON property transformNameMapping
4788 4789 4790 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4788 def transform_name_mapping @transform_name_mapping end |
#type ⇒ String
The type of Cloud Dataflow job.
Corresponds to the JSON property type
4675 4676 4677 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4675 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4823 def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @type = args[:type] if args.key?(:type) @pipeline_description = args[:pipeline_description] if args.key?(:pipeline_description) @replace_job_id = args[:replace_job_id] if args.key?(:replace_job_id) @requested_state = args[:requested_state] if args.key?(:requested_state) @temp_files = args[:temp_files] if args.key?(:temp_files) @client_request_id = args[:client_request_id] if args.key?(:client_request_id) @name = args[:name] if args.key?(:name) @steps = args[:steps] if args.key?(:steps) @replaced_by_job_id = args[:replaced_by_job_id] if args.key?(:replaced_by_job_id) @execution_info = args[:execution_info] if args.key?(:execution_info) @id = args[:id] if args.key?(:id) @current_state = args[:current_state] if args.key?(:current_state) @location = args[:location] if args.key?(:location) @current_state_time = args[:current_state_time] if args.key?(:current_state_time) @transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping) @labels = args[:labels] if args.key?(:labels) @environment = args[:environment] if args.key?(:environment) @create_time = args[:create_time] if args.key?(:create_time) @stage_states = args[:stage_states] if args.key?(:stage_states) end |