Class: Google::Apis::RunV1alpha1::Lifecycle
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::Lifecycle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
Instance Attribute Summary collapse
-
#post_start ⇒ Google::Apis::RunV1alpha1::Handler
Handler defines a specific action that should be taken Corresponds to the JSON property
postStart. -
#pre_stop ⇒ Google::Apis::RunV1alpha1::Handler
Handler defines a specific action that should be taken Corresponds to the JSON property
preStop.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Lifecycle
constructor
A new instance of Lifecycle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Lifecycle
Returns a new instance of Lifecycle.
1780 1781 1782 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1780 def initialize(**args) update!(**args) end |
Instance Attribute Details
#post_start ⇒ Google::Apis::RunV1alpha1::Handler
Handler defines a specific action that should be taken
Corresponds to the JSON property postStart
1773 1774 1775 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1773 def post_start @post_start end |
#pre_stop ⇒ Google::Apis::RunV1alpha1::Handler
Handler defines a specific action that should be taken
Corresponds to the JSON property preStop
1778 1779 1780 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1778 def pre_stop @pre_stop end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1785 1786 1787 1788 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1785 def update!(**args) @post_start = args[:post_start] if args.key?(:post_start) @pre_stop = args[:pre_stop] if args.key?(:pre_stop) end |