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.
Implements
IMessage<AllocationPolicy.Types.Disk>, IEquatable<AllocationPolicy.Types.Disk>, IDeepCloneable<AllocationPolicy.Types.Disk>, IBufferMessage, IMessageNamespace
Google.Cloud.Batch.V1Assembly
Google.Cloud.Batch.V1.dll
Constructors
Disk()
public Disk()
Disk(AllocationPolicy.Types.Disk)
public Disk(AllocationPolicy.Types.Disk other)
Parameter | |
---|---|
Name | Description |
other | AllocationPolicy.Types.Disk |
Properties
DataSourceCase
public AllocationPolicy.Types.Disk.DataSourceOneofCase DataSourceCase { get; }
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
Image
public string Image { get; set; }
Name of a public or custom image used as the data source.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Int64 |
Snapshot
public string Snapshot { get; set; }
Name of a snapshot used as the data source.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |