GceRegionalPersistentDisk class
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.
Constructors
-
GceRegionalPersistentDisk({Input<
String> ? diskType, Input<String> ? fsType, Input<GceRegionalPersistentDiskReclaimPolicy> ? reclaimPolicy, Input<int> ? sizeGb, Input<String> ? sourceSnapshot}) -
Creates a new GceRegionalPersistentDisk.
diskTypeOptional. The type of the persistent disk for the home directory. Defaults to"pd-standard".fsTypeOptional. 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".reclaimPolicyOptional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values areDELETEandRETAIN. Defaults toDELETE.sizeGbOptional. 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 are10,50,100,200,500, or1000. Defaults to200. If less than200GB, the disk_type must be"pd-balanced"or"pd-ssd".sourceSnapshotOptional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.const -
GceRegionalPersistentDisk.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
diskType
→ Input<
String> ? -
Optional. The type of the persistent disk for the home directory. Defaults to
"pd-standard".final -
fsType
→ Input<
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".final - hashCode → int
-
The hash code for this object.
no setterinherited
-
reclaimPolicy
→ Input<
GceRegionalPersistentDiskReclaimPolicy> ? -
Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are
DELETEandRETAIN. Defaults toDELETE.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sizeGb
→ Input<
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, or1000. Defaults to200. If less than200GB, the disk_type must be"pd-balanced"or"pd-ssd".final -
sourceSnapshot
→ Input<
String> ? -
Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited