Compute Engine v1 API - Class PreservedStatePreservedDisk (2.7.0)

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

Inheritance

object > PreservedStatePreservedDisk

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

PreservedStatePreservedDisk()

public PreservedStatePreservedDisk()

PreservedStatePreservedDisk(PreservedStatePreservedDisk)

public PreservedStatePreservedDisk(PreservedStatePreservedDisk other)
Parameter
NameDescription
otherPreservedStatePreservedDisk

Properties

AutoDelete

public string AutoDelete { get; set; }

These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.

Property Value
TypeDescription
string

HasAutoDelete

public bool HasAutoDelete { get; }

Gets whether the "auto_delete" field is set

Property Value
TypeDescription
bool

HasMode

public bool HasMode { get; }

Gets whether the "mode" field is set

Property Value
TypeDescription
bool

HasSource

public bool HasSource { get; }

Gets whether the "source" field is set

Property Value
TypeDescription
bool

Mode

public string Mode { get; set; }

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.

Property Value
TypeDescription
string

Source

public string Source { get; set; }

The URL of the disk resource that is stateful and should be attached to the VM instance.

Property Value
TypeDescription
string