Cloud Workstations V1BETA API - Class Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk (v0.2.0)

Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::WorkstationConfig::EphemeralDirectory::GcePersistentDisk.

An EphemeralDirectory is backed by a Compute Engine persistent disk.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disk_type

def disk_type() -> ::String
Returns
  • (::String) — Optional. Type of the disk to use. Defaults to "pd-standard".

#disk_type=

def disk_type=(value) -> ::String
Parameter
  • value (::String) — Optional. Type of the disk to use. Defaults to "pd-standard".
Returns
  • (::String) — Optional. Type of the disk to use. Defaults to "pd-standard".

#read_only

def read_only() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and source_snapshot must be set.

#read_only=

def read_only=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and source_snapshot must be set.
Returns
  • (::Boolean) — Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and source_snapshot must be set.

#source_image

def source_image() -> ::String
Returns
  • (::String) — Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

#source_image=

def source_image=(value) -> ::String
Parameter
  • value (::String) — Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
Returns
  • (::String) — Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

#source_snapshot

def source_snapshot() -> ::String
Returns
  • (::String) — Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

#source_snapshot=

def source_snapshot=(value) -> ::String
Parameter
  • value (::String) — Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
Returns
  • (::String) — Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.