Class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#metadata_based_readiness_signal ⇒ Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal
The configuration for metadata based readiness signal sent by the instance during initialization when stopping / suspending an instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceGroupManagerInstanceLifecyclePolicy
constructor
A new instance of InstanceGroupManagerInstanceLifecyclePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceGroupManagerInstanceLifecyclePolicy
Returns a new instance of InstanceGroupManagerInstanceLifecyclePolicy.
15031 15032 15033 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 15031 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata_based_readiness_signal ⇒ Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal
The configuration for metadata based readiness signal sent by the instance
during initialization when stopping / suspending an instance. The Instance
Group Manager will wait for a signal that indicates successful initialization
before stopping / suspending an instance.
If a successful readiness signal is not sent before timeout, the corresponding
instance will not be stopped / suspended. Instead, an error will be visible in
the lastAttempt.errors field of the managed instance in the
listmanagedinstances method.
If metadataBasedReadinessSignal.timeoutSec is unset, the Instance Group
Manager will directly proceed to suspend / stop instances, skipping
initialization on them.
Corresponds to the JSON property metadataBasedReadinessSignal
15029 15030 15031 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 15029 def @metadata_based_readiness_signal end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15036 15037 15038 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 15036 def update!(**args) @metadata_based_readiness_signal = args[:metadata_based_readiness_signal] if args.key?(:metadata_based_readiness_signal) end |