Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk (v0.15.1)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk.

A new or an existing persistent disk (PD) or a local ssd attached to a VM instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#device_name

def device_name() -> ::String
Returns
  • (::String) — Device name that the guest operating system will see. It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.

#device_name=

def device_name=(value) -> ::String
Parameter
  • value (::String) — Device name that the guest operating system will see. It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.
Returns
  • (::String) — Device name that the guest operating system will see. It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.

#existing_disk

def existing_disk() -> ::String
Returns
  • (::String) — Name of an existing PD.

#existing_disk=

def existing_disk=(value) -> ::String
Parameter
  • value (::String) — Name of an existing PD.
Returns
  • (::String) — Name of an existing PD.

#new_disk

def new_disk() -> ::Google::Cloud::Batch::V1::AllocationPolicy::Disk

#new_disk=

def new_disk=(value) -> ::Google::Cloud::Batch::V1::AllocationPolicy::Disk