# Cloud Workstations V1BETA API - Class Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk (v0.10.0)

0.10.0 (latest) 0.9.0 0.8.1 0.7.1 0.6.0 0.5.1 0.4.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk.

An EphemeralDirectory is backed by a Compute Engine persistent disk.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #disk_type

    def disk_type() -> ::String

**Returns**

- (::String) --- Optional. Type of the disk to use. Defaults to `"pd-standard"`.

### #disk_type=

    def disk_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Type of the disk to use. Defaults to `"pd-standard"`.
**Returns**

- (::String) --- Optional. Type of the disk to use. Defaults to `"pd-standard"`.

### #read_only

    def read_only() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") must be set.

### #read_only=

    def read_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") must be set.
**Returns**

- (::Boolean) --- Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") must be set.

### #source_image

    def source_image() -> ::String

**Returns**

- (::String) --- Optional. Name of the disk image to use as the source for the disk. Must be empty if [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") is set. Updating [source_image](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_image_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_image (method)") will update content in the ephemeral directory after the workstation is restarted.


  Only file systems supported by Container-Optimized OS (COS)
  are explicitly supported. For a list of supported file systems, please
  refer to the [COS
  documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems).

  This field is mutable.

### #source_image=

    def source_image=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Name of the disk image to use as the source for the disk. Must be empty if [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") is set. Updating [source_image](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_image_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_image (method)") will update content in the ephemeral directory after the workstation is restarted.


  Only file systems supported by Container-Optimized OS (COS)
  are explicitly supported. For a list of supported file systems, please
  refer to the [COS
  documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems).

  This field is mutable.
**Returns**

- (::String) --- Optional. Name of the disk image to use as the source for the disk. Must be empty if [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") is set. Updating [source_image](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_image_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_image (method)") will update content in the ephemeral directory after the workstation is restarted.


  Only file systems supported by Container-Optimized OS (COS)
  are explicitly supported. For a list of supported file systems, please
  refer to the [COS
  documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems).

  This field is mutable.

### #source_snapshot

    def source_snapshot() -> ::String

**Returns**

- (::String) --- Optional. Name of the snapshot to use as the source for the disk. Must be empty if [source_image](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_image_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_image (method)") is set. Must be empty if [read_only](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_read_only_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#read_only (method)") is false. Updating [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") will update content in the ephemeral directory after the workstation is restarted.


  Only file systems supported by Container-Optimized OS (COS)
  are explicitly supported. For a list of supported file systems, see
  [the filesystems available in Container-Optimized
  OS](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems).

  This field is mutable.

### #source_snapshot=

    def source_snapshot=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Name of the snapshot to use as the source for the disk. Must be empty if [source_image](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_image_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_image (method)") is set. Must be empty if [read_only](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_read_only_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#read_only (method)") is false. Updating [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") will update content in the ephemeral directory after the workstation is restarted.


  Only file systems supported by Container-Optimized OS (COS)
  are explicitly supported. For a list of supported file systems, see
  [the filesystems available in Container-Optimized
  OS](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems).

  This field is mutable.
**Returns**

- (::String) --- Optional. Name of the snapshot to use as the source for the disk. Must be empty if [source_image](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_image_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_image (method)") is set. Must be empty if [read_only](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_read_only_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#read_only (method)") is false. Updating [source_snapshot](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1beta/latest/Google-Cloud-Workstations-V1beta-WorkstationConfig-EphemeralDirectory-GcePersistentDisk#Google__Cloud__Workstations__V1beta__WorkstationConfig__EphemeralDirectory__GcePersistentDisk_source_snapshot_instance_ "Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk#source_snapshot (method)") will update content in the ephemeral directory after the workstation is restarted.


  Only file systems supported by Container-Optimized OS (COS)
  are explicitly supported. For a list of supported file systems, see
  [the filesystems available in Container-Optimized
  OS](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems).

  This field is mutable.