Class: Google::Apis::WorkloadmanagerV1::Command

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb

Overview

  • Command specifies the type of command to execute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Command

Returns a new instance of Command.



215
216
217
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 215

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

Instance Attribute Details

#agent_commandGoogle::Apis::WorkloadmanagerV1::AgentCommand

  • An AgentCommand specifies a one-time executable program for the agent to run. Corresponds to the JSON property agentCommand


208
209
210
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 208

def agent_command
  @agent_command
end

#shell_commandGoogle::Apis::WorkloadmanagerV1::ShellCommand

  • A ShellCommand is invoked via the agent's command line executor Corresponds to the JSON property shellCommand


213
214
215
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 213

def shell_command
  @shell_command
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



220
221
222
223
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 220

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