public sealed class SchedulingGracefulShutdown : IMessage<SchedulingGracefulShutdown>, IEquatable<SchedulingGracefulShutdown>, IDeepCloneable<SchedulingGracefulShutdown>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class SchedulingGracefulShutdown.
The configuration for gracefully shutting down the instance.
Implements
IMessageSchedulingGracefulShutdown, IEquatableSchedulingGracefulShutdown, IDeepCloneableSchedulingGracefulShutdown, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
SchedulingGracefulShutdown()
public SchedulingGracefulShutdown()SchedulingGracefulShutdown(SchedulingGracefulShutdown)
public SchedulingGracefulShutdown(SchedulingGracefulShutdown other)| Parameter | |
|---|---|
| Name | Description |
other |
SchedulingGracefulShutdown |
Properties
Enabled
public bool Enabled { get; set; }Opts-in for graceful shutdown.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasEnabled
public bool HasEnabled { get; }Gets whether the "enabled" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MaxDuration
public Duration MaxDuration { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
Duration |
|