Batch v1 API - Class AllocationPolicy.Types.Disk (1.2.0)

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

Reference documentation and code samples for the Batch v1 API class AllocationPolicy.Types.Disk.

A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#pdspecs. https://cloud.google.com/compute/docs/disks#localssds.

Inheritance

Object > AllocationPolicy.Types.Disk

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

Disk()

public Disk()

Disk(AllocationPolicy.Types.Disk)

public Disk(AllocationPolicy.Types.Disk other)
Parameter
NameDescription
otherAllocationPolicy.Types.Disk

Properties

DataSourceCase

public AllocationPolicy.Types.Disk.DataSourceOneofCase DataSourceCase { get; }
Property Value
TypeDescription
AllocationPolicy.Types.Disk.DataSourceOneofCase

DiskInterface

public string DiskInterface { get; set; }

Local SSDs are available through both "SCSI" and "NVMe" interfaces. If not indicated, "NVMe" will be the default one for local ssds. We only support "SCSI" for persistent disks now.

Property Value
TypeDescription
String

Image

public string Image { get; set; }

Name of a public or custom image used as the data source.

Property Value
TypeDescription
String

SizeGb

public long SizeGb { get; set; }

Disk size in GB. This field is ignored if data_source is disk or image. If type is local-ssd, size_gb should be a multiple of 375GB, otherwise, the final size will be the next greater multiple of 375 GB.

Property Value
TypeDescription
Int64

Snapshot

public string Snapshot { get; set; }

Name of a snapshot used as the data source.

Property Value
TypeDescription
String

Type

public string Type { get; set; }

Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".

Property Value
TypeDescription
String