Class: Google::Apis::DataprocV1beta2::WorkflowNode

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

Overview

The workflow node.

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

Returns a new instance of WorkflowNode



2277
2278
2279
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2277

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

Instance Attribute Details

#errorString

Output only. The error detail. Corresponds to the JSON property error

Returns:

  • (String)


2255
2256
2257
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2255

def error
  @error
end

#job_idString

Output only. The job id; populated after the node enters RUNNING state. Corresponds to the JSON property jobId

Returns:

  • (String)


2260
2261
2262
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2260

def job_id
  @job_id
end

#prerequisite_step_idsArray<String>

Output only. Node's prerequisite nodes. Corresponds to the JSON property prerequisiteStepIds

Returns:

  • (Array<String>)


2265
2266
2267
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2265

def prerequisite_step_ids
  @prerequisite_step_ids
end

#stateString

Output only. The node state. Corresponds to the JSON property state

Returns:

  • (String)


2270
2271
2272
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2270

def state
  @state
end

#step_idString

Output only. The name of the node. Corresponds to the JSON property stepId

Returns:

  • (String)


2275
2276
2277
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2275

def step_id
  @step_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2282
2283
2284
2285
2286
2287
2288
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2282

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @job_id = args[:job_id] if args.key?(:job_id)
  @prerequisite_step_ids = args[:prerequisite_step_ids] if args.key?(:prerequisite_step_ids)
  @state = args[:state] if args.key?(:state)
  @step_id = args[:step_id] if args.key?(:step_id)
end