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

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

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

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

Returns a new instance of ShellTask



3229
3230
3231
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3229

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

Instance Attribute Details

#commandString

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

Returns:

  • (String)


3222
3223
3224
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3222

def command
  @command
end

#exit_codeFixnum

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

Returns:

  • (Fixnum)


3227
3228
3229
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3227

def exit_code
  @exit_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3234
3235
3236
3237
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3234

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