Struct google_api_proto::google::cloud::workstations::v1beta::workstation_config::ephemeral_directory::GcePersistentDisk
source · pub struct GcePersistentDisk {
pub disk_type: String,
pub source_snapshot: String,
pub source_image: String,
pub read_only: bool,
}
Expand description
An EphemeralDirectory is backed by a Compute Engine persistent disk.
Fields§
§disk_type: String
Optional. Type of the disk to use. Defaults to "pd-standard"
.
source_snapshot: String
Optional. Name of the snapshot to use as the source for the disk. Must be empty if [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image] is set. Updating [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot] will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
source_image: String
Optional. Name of the disk image to use as the source for the disk. Must be empty if [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot] is set. Updating [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image] will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
read_only: bool
Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot] must be set.
Trait Implementations§
source§impl Clone for GcePersistentDisk
impl Clone for GcePersistentDisk
source§fn clone(&self) -> GcePersistentDisk
fn clone(&self) -> GcePersistentDisk
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GcePersistentDisk
impl Debug for GcePersistentDisk
source§impl Default for GcePersistentDisk
impl Default for GcePersistentDisk
source§impl Message for GcePersistentDisk
impl Message for GcePersistentDisk
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for GcePersistentDisk
impl PartialEq for GcePersistentDisk
source§fn eq(&self, other: &GcePersistentDisk) -> bool
fn eq(&self, other: &GcePersistentDisk) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GcePersistentDisk
Auto Trait Implementations§
impl Freeze for GcePersistentDisk
impl RefUnwindSafe for GcePersistentDisk
impl Send for GcePersistentDisk
impl Sync for GcePersistentDisk
impl Unpin for GcePersistentDisk
impl UnwindSafe for GcePersistentDisk
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request