Class: Google::Apis::DataflowV1b3::Job
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Job
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Defines a job to be run by the Cloud Dataflow service. Do not enter confidential information when you supply string values using the API.
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.
-
#created_from_snapshot_id ⇒ String
If this is specified, the job's initial state is populated from the given snapshot.
-
#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.
-
#job_metadata ⇒ Google::Apis::DataflowV1b3::JobMetadata
Metadata available primarily for filtering jobs.
-
#labels ⇒ Hash<String,String>
User-defined labels for this job.
-
#location ⇒ String
Optional.
-
#name ⇒ String
Optional.
-
#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 Google Cloud 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.
-
#runtime_updatable_params ⇒ Google::Apis::DataflowV1b3::RuntimeUpdatableParams
Additional job parameters that can only be updated during runtime using the projects.jobs.update method.
-
#satisfies_pzi ⇒ Boolean
(also: #satisfies_pzi?)
Output only.
-
#satisfies_pzs ⇒ Boolean
(also: #satisfies_pzs?)
Reserved for future use.
-
#service_resources ⇒ Google::Apis::DataflowV1b3::ServiceResources
Resources used by the Dataflow Service to run the job.
-
#stage_states ⇒ Array<Google::Apis::DataflowV1b3::ExecutionStageState>
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
-
#start_time ⇒ String
The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
-
#steps ⇒ Array<Google::Apis::DataflowV1b3::Step>
Exactly one of step or steps_location should be specified.
-
#steps_location ⇒ String
The Cloud Storage location where the steps are stored.
-
#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>
Optional.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Job
constructor
A new instance of Job.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Job
Returns a new instance of Job.
2488 2489 2490 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2488 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
2303 2304 2305 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2303 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
2309 2310 2311 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2309 def create_time @create_time end |
#created_from_snapshot_id ⇒ String
If this is specified, the job's initial state is populated from the given
snapshot.
Corresponds to the JSON property createdFromSnapshotId
2315 2316 2317 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2315 def created_from_snapshot_id @created_from_snapshot_id 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 might be mutated by
the Dataflow service; callers cannot mutate it.
Corresponds to the JSON property currentState
2324 2325 2326 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2324 def current_state @current_state end |
#current_state_time ⇒ String
The timestamp associated with the current state.
Corresponds to the JSON property currentStateTime
2329 2330 2331 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2329 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
2334 2335 2336 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2334 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
2340 2341 2342 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2340 def execution_info @execution_info end |
#id ⇒ String
The unique ID of this job. This field is set by the Dataflow service when the
job is created, and is immutable for the life of the job.
Corresponds to the JSON property id
2346 2347 2348 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2346 def id @id end |
#job_metadata ⇒ Google::Apis::DataflowV1b3::JobMetadata
Metadata available primarily for filtering jobs. Will be included in the
ListJob response and Job SUMMARY view.
Corresponds to the JSON property jobMetadata
2352 2353 2354 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2352 def @job_metadata 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: \pLl
\pLo
0,62
*
Values must conform to regexp: [\pLl
\pLo
\pN
_-]0,63
* Both keys and
values are additionally constrained to be <= 128 bytes in size.
Corresponds to the JSON property labels
2361 2362 2363 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2361 def labels @labels end |
#location ⇒ String
Optional. The regional endpoint that contains this job.
Corresponds to the JSON property location
2367 2368 2369 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2367 def location @location end |
#name ⇒ String
Optional. The user-specified Dataflow job name. Only one active job with a
given name can exist in a project within one region at any given time. Jobs in
different regions can have the same name. If a caller attempts to create a job
with the same name as an active job that already exists, the attempt returns
the existing job. The name must match the regular expression [a-z]([-a-z0-9]
0,1022[a-z0-9])?
Corresponds to the JSON property name
2377 2378 2379 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2377 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 interpreting Dataflow provided metrics.
Corresponds to the JSON property pipelineDescription
2384 2385 2386 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2384 def pipeline_description @pipeline_description end |
#project_id ⇒ String
The ID of the Google Cloud project that the job belongs to.
Corresponds to the JSON property projectId
2389 2390 2391 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2389 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
2397 2398 2399 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2397 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
2403 2404 2405 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2403 def replaced_by_job_id @replaced_by_job_id end |
#requested_state ⇒ String
The job's requested state. Applies to UpdateJob
requests. Set
requested_state
with UpdateJob
requests to switch between the states
JOB_STATE_STOPPED
and JOB_STATE_RUNNING
. You can also use UpdateJob
requests to change a job's state from JOB_STATE_RUNNING
to
JOB_STATE_CANCELLED
, JOB_STATE_DONE
, or JOB_STATE_DRAINED
. These states
irrevocably terminate the job if it hasn't already reached a terminal state.
This field has no effect on CreateJob
requests.
Corresponds to the JSON property requestedState
2414 2415 2416 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2414 def requested_state @requested_state end |
#runtime_updatable_params ⇒ Google::Apis::DataflowV1b3::RuntimeUpdatableParams
Additional job parameters that can only be updated during runtime using the
projects.jobs.update method. These fields have no effect when specified during
job creation.
Corresponds to the JSON property runtimeUpdatableParams
2421 2422 2423 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2421 def runtime_updatable_params @runtime_updatable_params end |
#satisfies_pzi ⇒ Boolean Also known as: satisfies_pzi?
Output only. Reserved for future use. This field is set only in responses from
the server; it is ignored if it is set in any requests.
Corresponds to the JSON property satisfiesPzi
2427 2428 2429 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2427 def satisfies_pzi @satisfies_pzi end |
#satisfies_pzs ⇒ Boolean Also known as: satisfies_pzs?
Reserved for future use. This field is set only in responses from the server;
it is ignored if it is set in any requests.
Corresponds to the JSON property satisfiesPzs
2434 2435 2436 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2434 def satisfies_pzs @satisfies_pzs end |
#service_resources ⇒ Google::Apis::DataflowV1b3::ServiceResources
Resources used by the Dataflow Service to run the job.
Corresponds to the JSON property serviceResources
2440 2441 2442 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2440 def service_resources @service_resources 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
2446 2447 2448 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2446 def stage_states @stage_states end |
#start_time ⇒ String
The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
Flexible resource scheduling jobs are started with some delay after job
creation, so start_time is unset before start and is updated when the job is
started by the Cloud Dataflow service. For other jobs, start_time always
equals to create_time and is immutable and set by the Cloud Dataflow service.
Corresponds to the JSON property startTime
2455 2456 2457 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2455 def start_time @start_time end |
#steps ⇒ Array<Google::Apis::DataflowV1b3::Step>
Exactly one of step or steps_location should be specified. The top-level steps
that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
Corresponds to the JSON property steps
2461 2462 2463 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2461 def steps @steps end |
#steps_location ⇒ String
The Cloud Storage location where the steps are stored.
Corresponds to the JSON property stepsLocation
2466 2467 2468 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2466 def steps_location @steps_location 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
2475 2476 2477 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2475 def temp_files @temp_files end |
#transform_name_mapping ⇒ Hash<String,String>
Optional. 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
2481 2482 2483 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2481 def transform_name_mapping @transform_name_mapping end |
#type ⇒ String
Optional. The type of Dataflow job.
Corresponds to the JSON property type
2486 2487 2488 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2486 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2493 def update!(**args) @client_request_id = args[:client_request_id] if args.key?(:client_request_id) @create_time = args[:create_time] if args.key?(:create_time) @created_from_snapshot_id = args[:created_from_snapshot_id] if args.key?(:created_from_snapshot_id) @current_state = args[:current_state] if args.key?(:current_state) @current_state_time = args[:current_state_time] if args.key?(:current_state_time) @environment = args[:environment] if args.key?(:environment) @execution_info = args[:execution_info] if args.key?(:execution_info) @id = args[:id] if args.key?(:id) @job_metadata = args[:job_metadata] if args.key?(:job_metadata) @labels = args[:labels] if args.key?(:labels) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @pipeline_description = args[:pipeline_description] if args.key?(:pipeline_description) @project_id = args[:project_id] if args.key?(:project_id) @replace_job_id = args[:replace_job_id] if args.key?(:replace_job_id) @replaced_by_job_id = args[:replaced_by_job_id] if args.key?(:replaced_by_job_id) @requested_state = args[:requested_state] if args.key?(:requested_state) @runtime_updatable_params = args[:runtime_updatable_params] if args.key?(:runtime_updatable_params) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @service_resources = args[:service_resources] if args.key?(:service_resources) @stage_states = args[:stage_states] if args.key?(:stage_states) @start_time = args[:start_time] if args.key?(:start_time) @steps = args[:steps] if args.key?(:steps) @steps_location = args[:steps_location] if args.key?(:steps_location) @temp_files = args[:temp_files] if args.key?(:temp_files) @transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping) @type = args[:type] if args.key?(:type) end |