Class: Google::Apis::WorkloadmanagerV1::ShellCommand

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

  • A ShellCommand is invoked via the agent's command line executor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShellCommand

Returns a new instance of ShellCommand.



1927
1928
1929
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1927

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

Instance Attribute Details

#argsString

args is a string of arguments to be passed to the command. Corresponds to the JSON property args

Returns:

  • (String)


1915
1916
1917
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1915

def args
  @args
end

#commandString

command is the name of the command to be executed. Corresponds to the JSON property command

Returns:

  • (String)


1920
1921
1922
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1920

def command
  @command
end

#timeout_secondsFixnum

Optional. If not specified, the default timeout is 60 seconds. Corresponds to the JSON property timeoutSeconds

Returns:

  • (Fixnum)


1925
1926
1927
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1925

def timeout_seconds
  @timeout_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1932
1933
1934
1935
1936
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1932

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