Compute Engine v1 API - Class SchedulingGracefulShutdown (3.30.0)

public sealed class SchedulingGracefulShutdown : IMessage<SchedulingGracefulShutdown>, IEquatable<SchedulingGracefulShutdown>, IDeepCloneable<SchedulingGracefulShutdown>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class SchedulingGracefulShutdown.

The configuration for gracefully shutting down the instance.

Inheritance

object > SchedulingGracefulShutdown

Namespace

Google.Cloud.Compute.V1

Assembly

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