Class: Google::Apis::ManagerV1beta2::Action

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

Overview

An Action encapsulates a set of commands as a single runnable module with additional information needed during run-time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Action

Returns a new instance of Action.


73
74
75
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 73

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

Instance Attribute Details

#commandsArray<String>

A list of commands to run sequentially for this action. Corresponds to the JSON property commands

Returns:

  • (Array<String>)

66
67
68
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 66

def commands
  @commands
end

#timeout_msFixnum

The timeout in milliseconds for this action to run. Corresponds to the JSON property timeoutMs

Returns:

  • (Fixnum)

71
72
73
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 71

def timeout_ms
  @timeout_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


78
79
80
81
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 78

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