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.



104
105
106
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 104

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


97
98
99
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 97

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


102
103
104
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 102

def shell_command
  @shell_command
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



109
110
111
112
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 109

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