Backup and DR Service v1 API - Class AttachedDisk (1.2.0)

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

Reference documentation and code samples for the Backup and DR Service v1 API class AttachedDisk.

An instance-attached disk resource.

Inheritance

object > AttachedDisk

Namespace

Google.Cloud.BackupDR.V1

Assembly

Google.Cloud.BackupDR.V1.dll

Constructors

AttachedDisk()

public AttachedDisk()

AttachedDisk(AttachedDisk)

public AttachedDisk(AttachedDisk other)
Parameter
Name Description
other AttachedDisk

Properties

AutoDelete

public bool AutoDelete { get; set; }

Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

Property Value
Type Description
bool

Boot

public bool Boot { get; set; }

Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

Property Value
Type Description
bool

DeviceName

public string DeviceName { get; set; }

Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)

Property Value
Type Description
string

DiskEncryptionKey

public CustomerEncryptionKey DiskEncryptionKey { get; set; }

Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.

Property Value
Type Description
CustomerEncryptionKey

DiskInterface

public AttachedDisk.Types.DiskInterface DiskInterface { get; set; }

Optional. Specifies the disk interface to use for attaching this disk.

Property Value
Type Description
AttachedDiskTypesDiskInterface

DiskSizeGb

public long DiskSizeGb { get; set; }

Optional. The size of the disk in GB.

Property Value
Type Description
long

DiskType

public string DiskType { get; set; }

Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd

Property Value
Type Description
string

DiskTypeDeprecated

[Obsolete]
public AttachedDisk.Types.DiskType DiskTypeDeprecated { get; set; }

Specifies the type of the disk.

Property Value
Type Description
AttachedDiskTypesDiskType

GuestOsFeature

public RepeatedField<GuestOsFeature> GuestOsFeature { get; }

Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.

Property Value
Type Description
RepeatedFieldGuestOsFeature

HasAutoDelete

public bool HasAutoDelete { get; }

Gets whether the "auto_delete" field is set

Property Value
Type Description
bool

HasBoot

public bool HasBoot { get; }

Gets whether the "boot" field is set

Property Value
Type Description
bool

HasDeviceName

public bool HasDeviceName { get; }

Gets whether the "device_name" field is set

Property Value
Type Description
bool

HasDiskInterface

public bool HasDiskInterface { get; }

Gets whether the "disk_interface" field is set

Property Value
Type Description
bool

HasDiskSizeGb

public bool HasDiskSizeGb { get; }

Gets whether the "disk_size_gb" field is set

Property Value
Type Description
bool

HasDiskType

public bool HasDiskType { get; }

Gets whether the "disk_type" field is set

Property Value
Type Description
bool

HasDiskTypeDeprecated

[Obsolete]
public bool HasDiskTypeDeprecated { get; }

Gets whether the "disk_type_deprecated" field is set

Property Value
Type Description
bool

HasIndex

public bool HasIndex { get; }

Gets whether the "index" field is set

Property Value
Type Description
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" 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

HasSavedState

public bool HasSavedState { get; }

Gets whether the "saved_state" 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

HasType

public bool HasType { get; }

Gets whether the "type" field is set

Property Value
Type Description
bool

Index

public long Index { get; set; }

Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.

Property Value
Type Description
long

InitializeParams

public AttachedDisk.Types.InitializeParams InitializeParams { get; set; }

Optional. Specifies the parameters to initialize this disk.

Property Value
Type Description
AttachedDiskTypesInitializeParams

Kind

public string Kind { get; set; }

Optional. Type of the resource.

Property Value
Type Description
string

License

public RepeatedField<string> License { get; }

Optional. Any valid publicly visible licenses.

Property Value
Type Description
RepeatedFieldstring

Mode

public AttachedDisk.Types.DiskMode Mode { get; set; }

Optional. The mode in which to attach this disk.

Property Value
Type Description
AttachedDiskTypesDiskMode

SavedState

public AttachedDisk.Types.DiskSavedState SavedState { get; set; }

Optional. Output only. The state of the disk.

Property Value
Type Description
AttachedDiskTypesDiskSavedState

Source

public string Source { get; set; }

Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.

Property Value
Type Description
string

Type

public AttachedDisk.Types.DiskType Type { get; set; }

Optional. Specifies the type of the disk.

Property Value
Type Description
AttachedDiskTypesDiskType