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

Returns a new instance of ParallelInstruction



3297
3298
3299
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3297

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



3272
3273
3274
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3272

def flatten
  @flatten
end

#nameString

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

Returns:

  • (String)


3253
3254
3255
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3253

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)


3277
3278
3279
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3277

def original_name
  @original_name
end

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

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



3248
3249
3250
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3248

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



3267
3268
3269
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3267

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



3295
3296
3297
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3295

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



3259
3260
3261
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3259

def read
  @read
end

#system_nameString

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

Returns:

  • (String)


3283
3284
3285
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3283

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



3289
3290
3291
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3289

def write
  @write
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3302

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