0.18.0 (latest) 0.17.0 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Cloud Life Sciences V2beta API class Google::Cloud::LifeSciences::V2beta::Disk.

Carries information about a disk that can be attached to a VM.


See <https://cloud.google.com/compute/docs/disks/performance> for more
information about disk type, size, and performance considerations.

<br />

Specify either [`Volume`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Volume "Google::Cloud::LifeSciences::V2beta::Volume (class)") or
[`Disk`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Disk "Google::Cloud::LifeSciences::V2beta::Disk (class)"), but not both.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.
**Returns**

- (::String) --- A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.

### #size_gb

    def size_gb() -> ::Integer

**Returns**

- (::Integer) --- The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance.

  If the disk type is specified as `local-ssd`, multiple local drives are
  automatically combined to provide the requested size. Note, however, that
  each physical SSD is 375GB in size, and no more than 8 drives can be
  attached to a single instance.

### #size_gb=

    def size_gb=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance.


  If the disk type is specified as `local-ssd`, multiple local drives are
  automatically combined to provide the requested size. Note, however, that
  each physical SSD is 375GB in size, and no more than 8 drives can be
  attached to a single instance.
**Returns**

- (::Integer) --- The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance.

  If the disk type is specified as `local-ssd`, multiple local drives are
  automatically combined to provide the requested size. Note, however, that
  each physical SSD is 375GB in size, and no more than 8 drives can be
  attached to a single instance.

### #source_image

    def source_image() -> ::String

**Returns**

- (::String) --- An optional image to put on the disk before attaching it to the VM.

### #source_image=

    def source_image=(value) -> ::String

**Parameter**

- **value** (::String) --- An optional image to put on the disk before attaching it to the VM.
**Returns**

- (::String) --- An optional image to put on the disk before attaching it to the VM.

### #type

    def type() -> ::String

**Returns**

- (::String) --- The Compute Engine disk type. If unspecified, `pd-standard` is used.

### #type=

    def type=(value) -> ::String

**Parameter**

- **value** (::String) --- The Compute Engine disk type. If unspecified, `pd-standard` is used.
**Returns**

- (::String) --- The Compute Engine disk type. If unspecified, `pd-standard` is used.