Class: Google::Apis::DataflowV1b3::ShellTask
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataflowV1b3::ShellTask
 
- 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
- 
  
    
      #command  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The shell command to run. 
- 
  
    
      #exit_code  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Exit code for the task. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ShellTask 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ShellTask. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ShellTask
Returns a new instance of ShellTask
| 3244 3245 3246 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3244 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#command ⇒ String
The shell command to run.
Corresponds to the JSON property command
| 3237 3238 3239 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3237 def command @command end | 
#exit_code ⇒ Fixnum
Exit code for the task.
Corresponds to the JSON property exitCode
| 3242 3243 3244 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3242 def exit_code @exit_code end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3249 3250 3251 3252 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3249 def update!(**args) @command = args[:command] if args.key?(:command) @exit_code = args[:exit_code] if args.key?(:exit_code) end |