pub struct LocalDiskInitializeParams {
pub description: Option<String>,
pub disk_name: Option<String>,
pub disk_size_gb: Option<i64>,
pub disk_type: Option<String>,
pub labels: Option<HashMap<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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>Optional. Provide this property when creating the disk.
disk_name: Option<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: Option<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: Option<String>Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).
labels: Option<HashMap<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.
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§fn default() -> LocalDiskInitializeParams
fn default() -> LocalDiskInitializeParams
Source§impl<'de> Deserialize<'de> for LocalDiskInitializeParams
impl<'de> Deserialize<'de> for LocalDiskInitializeParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more