Class: Google::Apis::WorkstationsV1::EphemeralDirectory

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workstations_v1/classes.rb,
lib/google/apis/workstations_v1/representations.rb,
lib/google/apis/workstations_v1/representations.rb

Overview

An ephemeral directory which won't persist across workstation sessions. It is freshly created on every workstation start operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EphemeralDirectory

Returns a new instance of EphemeralDirectory.



364
365
366
# File 'lib/google/apis/workstations_v1/classes.rb', line 364

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

Instance Attribute Details

#gce_pdGoogle::Apis::WorkstationsV1::GcePersistentDisk

An EphemeralDirectory is backed by a Compute Engine persistent disk. Corresponds to the JSON property gcePd



357
358
359
# File 'lib/google/apis/workstations_v1/classes.rb', line 357

def gce_pd
  @gce_pd
end

#mount_pathString

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

Returns:

  • (String)


362
363
364
# File 'lib/google/apis/workstations_v1/classes.rb', line 362

def mount_path
  @mount_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



369
370
371
372
# File 'lib/google/apis/workstations_v1/classes.rb', line 369

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