Class: Google::Apis::WorkstationsV1beta::PersistentDirectory

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PersistentDirectory

Returns a new instance of PersistentDirectory.



937
938
939
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 937

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gce_pdGoogle::Apis::WorkstationsV1beta::GceRegionalPersistentDisk

A PersistentDirectory backed by a Compute Engine regional persistent disk. Corresponds to the JSON property gcePd



930
931
932
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 930

def gce_pd
  @gce_pd
end

#mount_pathString

Location of this directory in the running workstation. Corresponds to the JSON property mountPath

Returns:

  • (String)


935
936
937
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 935

def mount_path
  @mount_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



942
943
944
945
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 942

def update!(**args)
  @gce_pd = args[:gce_pd] if args.key?(:gce_pd)
  @mount_path = args[:mount_path] if args.key?(:mount_path)
end