Cloud Workstations V1BETA API - Class Google::Cloud::Workstations::V1beta::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk (v0.1.3)

Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk.

A PersistentDirectory backed by a Compute Engine regional persistent disk. The persistent_directories field is repeated, but it may contain only one entry. It creates a persistent disk that mounts to the workstation VM at /home when the session starts and detaches when the session ends. If this field is empty, workstations created with this configuration do not have a persistent home directory.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disk_type

def disk_type() -> ::String
Returns

#disk_type=

def disk_type=(value) -> ::String
Parameter
Returns

#fs_type

def fs_type() -> ::String
Returns
  • (::String) — Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to "ext4".

#fs_type=

def fs_type=(value) -> ::String
Parameter
  • value (::String) — Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to "ext4".
Returns
  • (::String) — Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to "ext4".

#reclaim_policy

def reclaim_policy() -> ::Google::Cloud::Workstations::V1beta::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk::ReclaimPolicy
Returns

#reclaim_policy=

def reclaim_policy=(value) -> ::Google::Cloud::Workstations::V1beta::WorkstationConfig::PersistentDirectory::GceRegionalPersistentDisk::ReclaimPolicy
Parameter
Returns

#size_gb

def size_gb() -> ::Integer
Returns
  • (::Integer) — Optional. The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if source_snapshot is set.

    Valid values are 10, 50, 100, 200, 500, or 1000. Defaults to 200. If less than 200 GB, the disk_type must be "pd-balanced" or "pd-ssd".

#size_gb=

def size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if source_snapshot is set.

    Valid values are 10, 50, 100, 200, 500, or 1000. Defaults to 200. If less than 200 GB, the disk_type must be "pd-balanced" or "pd-ssd".

Returns
  • (::Integer) — Optional. The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if source_snapshot is set.

    Valid values are 10, 50, 100, 200, 500, or 1000. Defaults to 200. If less than 200 GB, the disk_type must be "pd-balanced" or "pd-ssd".

#source_snapshot

def source_snapshot() -> ::String
Returns
  • (::String) — Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.

#source_snapshot=

def source_snapshot=(value) -> ::String
Parameter
  • value (::String) — Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.
Returns
  • (::String) — Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.