public sealed class PreservedStatePreservedDisk : IMessage<PreservedStatePreservedDisk>, IEquatable<PreservedStatePreservedDisk>, IDeepCloneable<PreservedStatePreservedDisk>, IBufferMessage, IMessage
Implements
IMessagePreservedStatePreservedDisk, IEquatablePreservedStatePreservedDisk, IDeepCloneablePreservedStatePreservedDisk, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.ComputeV1Assembly
Google.Cloud.Compute.V1.dll
Constructors
PreservedStatePreservedDisk()
public PreservedStatePreservedDisk()
PreservedStatePreservedDisk(PreservedStatePreservedDisk)
public PreservedStatePreservedDisk(PreservedStatePreservedDisk other)
Parameter | |
---|---|
Name | Description |
other | PreservedStatePreservedDisk |
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 | |
---|---|
Type | Description |
string |
HasAutoDelete
public bool HasAutoDelete { get; }
Gets whether the "auto_delete" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasMode
public bool HasMode { get; }
Gets whether the "mode" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasSource
public bool HasSource { get; }
Gets whether the "source" field is set
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |