AI Platform Notebooks v1 API - Class Instance.Types.Disk (2.3.0)

public sealed class Instance.Types.Disk : IMessage<Instance.Types.Disk>, IEquatable<Instance.Types.Disk>, IDeepCloneable<Instance.Types.Disk>, IBufferMessage, IMessage

Reference documentation and code samples for the AI Platform Notebooks v1 API class Instance.Types.Disk.

An instance-attached disk resource.

Inheritance

object > Instance.Types.Disk

Namespace

Google.Cloud.Notebooks.V1

Assembly

Google.Cloud.Notebooks.V1.dll

Constructors

Disk()

public Disk()

Disk(Disk)

public Disk(Instance.Types.Disk other)
Parameter
NameDescription
otherInstanceTypesDisk

Properties

AutoDelete

public bool AutoDelete { get; set; }

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

Property Value
TypeDescription
bool

Boot

public bool Boot { get; set; }

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

Property Value
TypeDescription
bool

DeviceName

public string DeviceName { get; set; }

Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.

Property Value
TypeDescription
string

DiskSizeGb

public long DiskSizeGb { get; set; }

Indicates the size of the disk in base-2 GB.

Property Value
TypeDescription
long

GuestOsFeatures

public RepeatedField<Instance.Types.Disk.Types.GuestOsFeature> GuestOsFeatures { get; }

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

Property Value
TypeDescription
RepeatedFieldInstanceTypesDiskTypesGuestOsFeature

Index

public long Index { get; set; }

A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.

Property Value
TypeDescription
long

Interface

public string Interface { get; set; }

Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:

  • NVME
  • SCSI
Property Value
TypeDescription
string

Kind

public string Kind { get; set; }

Type of the resource. Always compute#attachedDisk for attached disks.

Property Value
TypeDescription
string

Licenses

public RepeatedField<string> Licenses { get; }

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

Property Value
TypeDescription
RepeatedFieldstring

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. Valid values:

  • READ_ONLY
  • READ_WRITE
Property Value
TypeDescription
string

Source

public string Source { get; set; }

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

Property Value
TypeDescription
string

Type

public string Type { get; set; }

Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH
Property Value
TypeDescription
string