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

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

Describes a particular operation comprising a MapTask.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParallelInstruction

Returns a new instance of ParallelInstruction.



3425
3426
3427
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3425

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



3382
3383
3384
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3382

def flatten
  @flatten
end

#nameString

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

Returns:

  • (String)


3387
3388
3389
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3387

def name
  @name
end

#original_nameString

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

Returns:

  • (String)


3392
3393
3394
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3392

def original_name
  @original_name
end

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

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



3397
3398
3399
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3397

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



3403
3404
3405
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3403

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



3408
3409
3410
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3408

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



3413
3414
3415
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3413

def read
  @read
end

#system_nameString

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

Returns:

  • (String)


3418
3419
3420
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3418

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



3423
3424
3425
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3423

def write
  @write
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3430

def update!(**args)
  @flatten = args[:flatten] if args.key?(:flatten)
  @name = args[:name] if args.key?(:name)
  @original_name = args[:original_name] if args.key?(:original_name)
  @outputs = args[:outputs] if args.key?(:outputs)
  @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)
  @read = args[:read] if args.key?(:read)
  @system_name = args[:system_name] if args.key?(:system_name)
  @write = args[:write] if args.key?(:write)
end