Class: Google::Apis::DataflowV1b3::ShellTask

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

A task which consists of a shell command for the worker to execute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShellTask

Returns a new instance of ShellTask.



4414
4415
4416
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4414

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

Instance Attribute Details

#commandString

The shell command to run. Corresponds to the JSON property command

Returns:

  • (String)


4407
4408
4409
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4407

def command
  @command
end

#exit_codeFixnum

Exit code for the task. Corresponds to the JSON property exitCode

Returns:

  • (Fixnum)


4412
4413
4414
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4412

def exit_code
  @exit_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4419
4420
4421
4422
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4419

def update!(**args)
  @command = args[:command] if args.key?(:command)
  @exit_code = args[:exit_code] if args.key?(:exit_code)
end