Struct google_api_proto::google::cloud::notebooks::v1::LocalDiskInitializeParams
source · pub struct LocalDiskInitializeParams {
pub description: String,
pub disk_name: String,
pub disk_size_gb: i64,
pub disk_type: i32,
pub labels: BTreeMap<String, String>,
}
Expand description
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Fields§
§description: String
Optional. Provide this property when creating the disk.
disk_name: String
Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
disk_size_gb: i64
Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
disk_type: i32
Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (PD_STANDARD
).
labels: BTreeMap<String, String>
Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
Implementations§
Trait Implementations§
source§impl Clone for LocalDiskInitializeParams
impl Clone for LocalDiskInitializeParams
source§fn clone(&self) -> LocalDiskInitializeParams
fn clone(&self) -> LocalDiskInitializeParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocalDiskInitializeParams
impl Debug for LocalDiskInitializeParams
source§impl Default for LocalDiskInitializeParams
impl Default for LocalDiskInitializeParams
source§impl Message for LocalDiskInitializeParams
impl Message for LocalDiskInitializeParams
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for LocalDiskInitializeParams
impl PartialEq for LocalDiskInitializeParams
source§fn eq(&self, other: &LocalDiskInitializeParams) -> bool
fn eq(&self, other: &LocalDiskInitializeParams) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocalDiskInitializeParams
Auto Trait Implementations§
impl Freeze for LocalDiskInitializeParams
impl RefUnwindSafe for LocalDiskInitializeParams
impl Send for LocalDiskInitializeParams
impl Sync for LocalDiskInitializeParams
impl Unpin for LocalDiskInitializeParams
impl UnwindSafe for LocalDiskInitializeParams
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