Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::Disk (v0.4.3)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::AllocationPolicy::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disk_interface

def disk_interface() -> ::String
Returns
  • (::String) — 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.

#disk_interface=

def disk_interface=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#image

def image() -> ::String
Returns
  • (::String) — Name of a public or custom image used as the data source.

#image=

def image=(value) -> ::String
Parameter
  • value (::String) — Name of a public or custom image used as the data source.
Returns
  • (::String) — Name of a public or custom image used as the data source.

#size_gb

def size_gb() -> ::Integer
Returns
  • (::Integer) — 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.

#size_gb=

def size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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.

#snapshot

def snapshot() -> ::String
Returns
  • (::String) — Name of a snapshot used as the data source.

#snapshot=

def snapshot=(value) -> ::String
Parameter
  • value (::String) — Name of a snapshot used as the data source.
Returns
  • (::String) — Name of a snapshot used as the data source.

#type

def type() -> ::String
Returns
  • (::String) — Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".
Returns
  • (::String) — Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".