# Cloud Workstations V1 API - Class Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.1 1.2.0 1.1.1 1.0.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Cloud Workstations V1 API class Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory.

A directory to persist across workstation sessions. Updates to this field
will not update existing workstations and will only take effect on new
workstations.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #gce_hd

    def gce_hd() -> ::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceHyperdiskBalancedHighAvailability

**Returns**

- ([::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceHyperdiskBalancedHighAvailability](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1/latest/Google-Cloud-Workstations-V1-WorkstationConfig-PersistentDirectory-GceHyperdiskBalancedHighAvailability)) --- A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.


  Note: The following fields are mutually exclusive: `gce_hd`, `gce_pd`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gce_hd=

    def gce_hd=(value) -> ::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceHyperdiskBalancedHighAvailability

**Parameter**

- **value** ([::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceHyperdiskBalancedHighAvailability](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1/latest/Google-Cloud-Workstations-V1-WorkstationConfig-PersistentDirectory-GceHyperdiskBalancedHighAvailability)) --- A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.


  Note: The following fields are mutually exclusive: `gce_hd`, `gce_pd`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceHyperdiskBalancedHighAvailability](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1/latest/Google-Cloud-Workstations-V1-WorkstationConfig-PersistentDirectory-GceHyperdiskBalancedHighAvailability)) --- A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.


  Note: The following fields are mutually exclusive: `gce_hd`, `gce_pd`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gce_pd

    def gce_pd() -> ::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk

**Returns**

- ([::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1/latest/Google-Cloud-Workstations-V1-WorkstationConfig-PersistentDirectory-GceRegionalPersistentDisk)) --- A PersistentDirectory backed by a Compute Engine persistent disk.


  Note: The following fields are mutually exclusive: `gce_pd`, `gce_hd`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gce_pd=

    def gce_pd=(value) -> ::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk

**Parameter**

- **value** ([::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1/latest/Google-Cloud-Workstations-V1-WorkstationConfig-PersistentDirectory-GceRegionalPersistentDisk)) --- A PersistentDirectory backed by a Compute Engine persistent disk.


  Note: The following fields are mutually exclusive: `gce_pd`, `gce_hd`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Workstations::V1::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workstations-v1/latest/Google-Cloud-Workstations-V1-WorkstationConfig-PersistentDirectory-GceRegionalPersistentDisk)) --- A PersistentDirectory backed by a Compute Engine persistent disk.


  Note: The following fields are mutually exclusive: `gce_pd`, `gce_hd`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #mount_path

    def mount_path() -> ::String

**Returns**

- (::String) --- Optional. Location of this directory in the running workstation.

### #mount_path=

    def mount_path=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Location of this directory in the running workstation.
**Returns**

- (::String) --- Optional. Location of this directory in the running workstation.