Struct google_api_proto::google::cloud::vmmigration::v1::ComputeEngineTargetDefaults
source · pub struct ComputeEngineTargetDefaults {Show 18 fields
pub vm_name: String,
pub target_project: String,
pub zone: String,
pub machine_type_series: String,
pub machine_type: String,
pub network_tags: Vec<String>,
pub network_interfaces: Vec<NetworkInterface>,
pub service_account: String,
pub disk_type: i32,
pub labels: BTreeMap<String, String>,
pub license_type: i32,
pub applied_license: Option<AppliedLicense>,
pub compute_scheduling: Option<ComputeScheduling>,
pub secure_boot: bool,
pub boot_option: i32,
pub metadata: BTreeMap<String, String>,
pub additional_licenses: Vec<String>,
pub hostname: String,
}
Expand description
ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
Fields§
§vm_name: String
The name of the VM to create.
target_project: String
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
zone: String
The zone in which to create the VM.
machine_type_series: String
The machine type series to create the VM with.
machine_type: String
The machine type to create the VM with.
A map of network tags to associate with the VM.
network_interfaces: Vec<NetworkInterface>
List of NICs connected to this VM.
service_account: String
The service account to associate the VM with.
disk_type: i32
The disk type to use in the VM.
labels: BTreeMap<String, String>
A map of labels to associate with the VM.
license_type: i32
The license type to use in OS adaptation.
applied_license: Option<AppliedLicense>
Output only. The OS license returned from the adaptation module report.
compute_scheduling: Option<ComputeScheduling>
Compute instance scheduling information (if empty default is used).
secure_boot: bool
Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
boot_option: i32
Output only. The VM Boot Option, as set in the source vm.
metadata: BTreeMap<String, String>
The metadata key/value pairs to assign to the VM.
additional_licenses: Vec<String>
Additional licenses to assign to the VM.
hostname: String
The hostname to assign to the VM.
Implementations§
source§impl ComputeEngineTargetDefaults
impl ComputeEngineTargetDefaults
sourcepub fn disk_type(&self) -> ComputeEngineDiskType
pub fn disk_type(&self) -> ComputeEngineDiskType
Returns the enum value of disk_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_disk_type(&mut self, value: ComputeEngineDiskType)
pub fn set_disk_type(&mut self, value: ComputeEngineDiskType)
Sets disk_type
to the provided enum value.
sourcepub fn license_type(&self) -> ComputeEngineLicenseType
pub fn license_type(&self) -> ComputeEngineLicenseType
Returns the enum value of license_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_license_type(&mut self, value: ComputeEngineLicenseType)
pub fn set_license_type(&mut self, value: ComputeEngineLicenseType)
Sets license_type
to the provided enum value.
sourcepub fn boot_option(&self) -> ComputeEngineBootOption
pub fn boot_option(&self) -> ComputeEngineBootOption
Returns the enum value of boot_option
, or the default if the field is set to an invalid enum value.
sourcepub fn set_boot_option(&mut self, value: ComputeEngineBootOption)
pub fn set_boot_option(&mut self, value: ComputeEngineBootOption)
Sets boot_option
to the provided enum value.
Trait Implementations§
source§impl Clone for ComputeEngineTargetDefaults
impl Clone for ComputeEngineTargetDefaults
source§fn clone(&self) -> ComputeEngineTargetDefaults
fn clone(&self) -> ComputeEngineTargetDefaults
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeEngineTargetDefaults
impl Debug for ComputeEngineTargetDefaults
source§impl Message for ComputeEngineTargetDefaults
impl Message for ComputeEngineTargetDefaults
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 ComputeEngineTargetDefaults
impl PartialEq for ComputeEngineTargetDefaults
source§fn eq(&self, other: &ComputeEngineTargetDefaults) -> bool
fn eq(&self, other: &ComputeEngineTargetDefaults) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComputeEngineTargetDefaults
Auto Trait Implementations§
impl Freeze for ComputeEngineTargetDefaults
impl RefUnwindSafe for ComputeEngineTargetDefaults
impl Send for ComputeEngineTargetDefaults
impl Sync for ComputeEngineTargetDefaults
impl Unpin for ComputeEngineTargetDefaults
impl UnwindSafe for ComputeEngineTargetDefaults
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