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.



725
726
727
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 725

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



718
719
720
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 718

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



723
724
725
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 723

def shell_command
  @shell_command
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



730
731
732
733
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 730

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