Class: Google::Apis::DataflowV1b3::ParallelInstruction

Inherits:
Object
  • Object
show all
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

Describes a particular operation comprising a MapTask.

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


2655
2656
2657
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2655

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

Instance Attribute Details

#flattenGoogle::Apis::DataflowV1b3::FlattenInstruction

An instruction that copies its inputs (zero or more) to its (single) output. Corresponds to the JSON property flatten


2648
2649
2650
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2648

def flatten
  @flatten
end

#nameString

User-provided name of this operation. Corresponds to the JSON property name


2617
2618
2619
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2617

def name
  @name
end

#original_nameString

System-defined name for the operation in the original workflow graph. Corresponds to the JSON property originalName


2622
2623
2624
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2622

def original_name
  @original_name
end

#outputsArray<Google::Apis::DataflowV1b3::InstructionOutput>

Describes the outputs of the instruction. Corresponds to the JSON property outputs


2653
2654
2655
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2653

def outputs
  @outputs
end

#par_doGoogle::Apis::DataflowV1b3::ParDoInstruction

An instruction that does a ParDo operation. Takes one main input and zero or more side inputs, and produces zero or more outputs. Runs user code. Corresponds to the JSON property parDo


2638
2639
2640
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2638

def par_do
  @par_do
end

#partial_group_by_keyGoogle::Apis::DataflowV1b3::PartialGroupByKeyInstruction

An instruction that does a partial group-by-key. One input and one output. Corresponds to the JSON property partialGroupByKey


2643
2644
2645
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2643

def partial_group_by_key
  @partial_group_by_key
end

#readGoogle::Apis::DataflowV1b3::ReadInstruction

An instruction that reads records. Takes no inputs, produces one output. Corresponds to the JSON property read


2627
2628
2629
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2627

def read
  @read
end

#system_nameString

System-defined name of this operation. Unique across the workflow. Corresponds to the JSON property systemName


2612
2613
2614
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2612

def system_name
  @system_name
end

#writeGoogle::Apis::DataflowV1b3::WriteInstruction

An instruction that writes records. Takes one input, produces no outputs. Corresponds to the JSON property write


2632
2633
2634
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2632

def write
  @write
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2660

def update!(**args)
  @system_name = args[:system_name] if args.key?(:system_name)
  @name = args[:name] if args.key?(:name)
  @original_name = args[:original_name] if args.key?(:original_name)
  @read = args[:read] if args.key?(:read)
  @write = args[:write] if args.key?(:write)
  @par_do = args[:par_do] if args.key?(:par_do)
  @partial_group_by_key = args[:partial_group_by_key] if args.key?(:partial_group_by_key)
  @flatten = args[:flatten] if args.key?(:flatten)
  @outputs = args[:outputs] if args.key?(:outputs)
end