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: HashMap<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: HashMap<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: StringThe name of the VM to create.
target_project: StringThe full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
zone: StringThe zone in which to create the VM.
machine_type_series: StringThe machine type series to create the VM with.
machine_type: StringThe 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: StringThe service account to associate the VM with.
disk_type: i32The disk type to use in the VM.
labels: HashMap<String, String>A map of labels to associate with the VM.
license_type: i32The 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: boolDefines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
boot_option: i32Output only. The VM Boot Option, as set in the source vm.
metadata: HashMap<String, String>The metadata key/value pairs to assign to the VM.
additional_licenses: Vec<String>Additional licenses to assign to the VM.
hostname: StringThe 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<'de> Deserialize<'de> for ComputeEngineTargetDefaults
impl<'de> Deserialize<'de> for ComputeEngineTargetDefaults
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>,
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.