Class: Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk
- 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 PersistentDirectory backed by a Compute Engine regional persistent disk.
Instance Attribute Summary collapse
-
#disk_type ⇒ String
Type of the disk to use.
-
#fs_type ⇒ String
Type of file system that the disk should be formatted with.
-
#reclaim_policy ⇒ String
What should happen to the disk after the workstation is deleted.
-
#size_gb ⇒ Fixnum
Size of the disk in GB.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GceRegionalPersistentDisk
constructor
A new instance of GceRegionalPersistentDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GceRegionalPersistentDisk
Returns a new instance of GceRegionalPersistentDisk.
433 434 435 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_type ⇒ String
Type of the disk to use.
Corresponds to the JSON property diskType
413 414 415 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 413 def disk_type @disk_type end |
#fs_type ⇒ String
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.
Corresponds to the JSON property fsType
420 421 422 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 420 def fs_type @fs_type end |
#reclaim_policy ⇒ String
What should happen to the disk after the workstation is deleted. Defaults to
DELETE.
Corresponds to the JSON property reclaimPolicy
426 427 428 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 426 def reclaim_policy @reclaim_policy end |
#size_gb ⇒ Fixnum
Size of the disk in GB. Must be empty if source_snapshot is set.
Corresponds to the JSON property sizeGb
431 432 433 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 431 def size_gb @size_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
438 439 440 441 442 443 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 438 def update!(**args) @disk_type = args[:disk_type] if args.key?(:disk_type) @fs_type = args[:fs_type] if args.key?(:fs_type) @reclaim_policy = args[:reclaim_policy] if args.key?(:reclaim_policy) @size_gb = args[:size_gb] if args.key?(:size_gb) end |