Enum google_api_proto::google::cloud::compute::v1::disk_instantiation_config::InstantiateFrom
source · #[repr(i32)]pub enum InstantiateFrom {
UndefinedInstantiateFrom = 0,
AttachReadOnly = 513_775_419,
Blank = 63_281_460,
CustomImage = 196_311_789,
Default = 115_302_945,
DoNotInclude = 104_218_952,
SourceImage = 62_631_959,
SourceImageFamily = 76_850_316,
}
Expand description
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance’s corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance’s corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks.
Variants§
UndefinedInstantiateFrom = 0
A value indicating that the enum field is not set.
AttachReadOnly = 513_775_419
Attach the existing disk in read-only mode. The request will fail if the disk was attached in read-write mode on the source instance. Applicable to: read-only disks.
Blank = 63_281_460
Create a blank disk. The disk will be created unformatted. Applicable to: additional read-write disks, local SSDs.
CustomImage = 196_311_789
Use the custom image specified in the custom_image field. Applicable to: boot disk, additional read-write disks.
Default = 115_302_945
Use the default instantiation option for the corresponding type of disk. For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
DoNotInclude = 104_218_952
Do not include the disk in the instance template. Applicable to: additional read-write disks, local SSDs, read-only disks.
SourceImage = 62_631_959
Use the same source image used for creation of the source instance’s corresponding disk. The request will fail if the source VM’s disk was created from a snapshot. Applicable to: boot disk, additional read-write disks.
SourceImageFamily = 76_850_316
Use the same source image family used for creation of the source instance’s corresponding disk. The request will fail if the source image of the source disk does not belong to any image family. Applicable to: boot disk, additional read-write disks.
Implementations§
source§impl InstantiateFrom
impl InstantiateFrom
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for InstantiateFrom
impl Clone for InstantiateFrom
source§fn clone(&self) -> InstantiateFrom
fn clone(&self) -> InstantiateFrom
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstantiateFrom
impl Debug for InstantiateFrom
source§impl Default for InstantiateFrom
impl Default for InstantiateFrom
source§fn default() -> InstantiateFrom
fn default() -> InstantiateFrom
source§impl From<InstantiateFrom> for i32
impl From<InstantiateFrom> for i32
source§fn from(value: InstantiateFrom) -> i32
fn from(value: InstantiateFrom) -> i32
source§impl Hash for InstantiateFrom
impl Hash for InstantiateFrom
source§impl Ord for InstantiateFrom
impl Ord for InstantiateFrom
source§fn cmp(&self, other: &InstantiateFrom) -> Ordering
fn cmp(&self, other: &InstantiateFrom) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InstantiateFrom
impl PartialEq for InstantiateFrom
source§fn eq(&self, other: &InstantiateFrom) -> bool
fn eq(&self, other: &InstantiateFrom) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstantiateFrom
impl PartialOrd for InstantiateFrom
source§fn partial_cmp(&self, other: &InstantiateFrom) -> Option<Ordering>
fn partial_cmp(&self, other: &InstantiateFrom) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for InstantiateFrom
impl TryFrom<i32> for InstantiateFrom
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<InstantiateFrom, UnknownEnumValue>
fn try_from(value: i32) -> Result<InstantiateFrom, UnknownEnumValue>
impl Copy for InstantiateFrom
impl Eq for InstantiateFrom
impl StructuralPartialEq for InstantiateFrom
Auto Trait Implementations§
impl Freeze for InstantiateFrom
impl RefUnwindSafe for InstantiateFrom
impl Send for InstantiateFrom
impl Sync for InstantiateFrom
impl Unpin for InstantiateFrom
impl UnwindSafe for InstantiateFrom
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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