Class: Google::Apis::ManagerV1beta2::Action
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::Action
- 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
-
#commands ⇒ Array<String>
A list of commands to run sequentially for this action.
-
#timeout_ms ⇒ Fixnum
The timeout in milliseconds for this action to run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Action
constructor
A new instance of Action.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#commands ⇒ Array<String>
A list of commands to run sequentially for this action.
Corresponds to the JSON property commands
66 67 68 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 66 def commands @commands end |
#timeout_ms ⇒ Fixnum
The timeout in milliseconds for this action to run.
Corresponds to the JSON property timeoutMs
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 |