Class GceRegionalPersistentDisk (0.8.2)

GceRegionalPersistentDisk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Persistent Directory 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 <https://cloud.google.com/compute/docs/disks/persistent-disks>__ 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.

Attributes

Name Description
size_gb int
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".
max_size_gb int
Optional. Maximum size in GB to which this persistent directory can be resized. Defaults to unlimited if not set.
fs_type str
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".
disk_type str
Optional. The `type of the persistent disk
source_snapshot str
Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty. Must be formatted as ext4 file system with no partitions.
reclaim_policy google.cloud.workstations_v1beta.types.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy
Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are DELETE and RETAIN. Defaults to DELETE.
archive_timeout google.protobuf.duration_pb2.Duration
Optional. Number of seconds to wait after initially creating or subsequently shutting down the workstation before converting its disk into a snapshot. This generally saves costs at the expense of greater startup time on next workstation start, as the service will need to create a disk from the archival snapshot. A value of "0s" indicates that the disk will never be archived.

Classes

ReclaimPolicy

ReclaimPolicy(value)

Value representing what should happen to the disk after the workstation is deleted.