Class: Google::Apis::WorkloadmanagerV1::AgentCommand

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AgentCommand

Returns a new instance of AgentCommand.



40
41
42
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 40

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

Instance Attribute Details

#commandString

command is the name of the agent one-time executable that will be invoked. Corresponds to the JSON property command

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 32

def command
  @command
end

#parametersHash<String,String>

parameters is a map of key/value pairs that can be used to specify additional one-time executable settings. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,String>)


38
39
40
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 38

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 45

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