Class: Google::Apis::WorkstationsV1beta::PersistentDirectory
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::PersistentDirectory
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb
Overview
A directory to persist across workstation sessions.
Instance Attribute Summary collapse
-
#gce_pd ⇒ Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk
A PersistentDirectory backed by a Compute Engine regional persistent disk.
-
#mount_path ⇒ String
Location of this directory in the running workstation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersistentDirectory
constructor
A new instance of PersistentDirectory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersistentDirectory
Returns a new instance of PersistentDirectory.
989 990 991 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 989 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gce_pd ⇒ Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk
A PersistentDirectory backed by a Compute Engine regional persistent disk. The
persistentDirectories[] 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.
Corresponds to the JSON property gcePd
982 983 984 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 982 def gce_pd @gce_pd end |
#mount_path ⇒ String
Location of this directory in the running workstation.
Corresponds to the JSON property mountPath
987 988 989 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 987 def mount_path @mount_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
994 995 996 997 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 994 def update!(**args) @gce_pd = args[:gce_pd] if args.key?(:gce_pd) @mount_path = args[:mount_path] if args.key?(:mount_path) end |