Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::SchedulingGracefulShutdown.
The configuration for gracefully shutting down the instance.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#enabled
def enabled() -> ::Boolean
Returns
- (::Boolean) — Opts-in for graceful shutdown.
#enabled=
def enabled=(value) -> ::Boolean
Parameter
- value (::Boolean) — Opts-in for graceful shutdown.
Returns
- (::Boolean) — Opts-in for graceful shutdown.
#max_duration
def max_duration() -> ::Google::Cloud::Compute::V1::Duration
Returns
- (::Google::Cloud::Compute::V1::Duration) — The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
#max_duration=
def max_duration=(value) -> ::Google::Cloud::Compute::V1::Duration
Parameter
- value (::Google::Cloud::Compute::V1::Duration) — The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
Returns
- (::Google::Cloud::Compute::V1::Duration) — The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.