pub struct LaunchInstanceRequest {
pub parent: String,
pub launch_template_data: Option<LaunchTemplateData>,
pub request_id: String,
pub launch_template: String,
}Expand description
The request for LaunchInstance.
Fields§
§parent: StringThe zone to launch the instance in, projects/{project}/zones/{zone}.
launch_template_data: Option<LaunchTemplateData>The recipe of the instance to launch. Required unless
launch_template is set. With launch_template, the fields set here
override the version’s for this launch only, and the version stays as
it is: a field left empty keeps the version’s, so an override can’t
clear one. image or image_family replaces both of the version’s,
size_gib and storage_class of boot_volume each replace the
version’s own, and tags, network_interfaces and local_disks
replace the version’s whole.
request_id: StringA UUID; a repeat with the same id returns the first request’s operation instead of launching a second instance.
launch_template: StringThe full name of a launch template of the instance’s project to launch
from,
//compute.origincloudapis.eu/projects/{project}/launchTemplates/{launch_template}
for its default version, or with @{version}, @default or @latest
after it for that version, resolved when the launch is made. Launching
from one needs compute.launch_template.get on it as well. An unknown
template or version is refused with NOT_FOUND, and a version whose
image, key pair or subnet is gone is refused naming that field of
launch_template_data.
Trait Implementations§
Source§impl Clone for LaunchInstanceRequest
impl Clone for LaunchInstanceRequest
Source§impl Debug for LaunchInstanceRequest
impl Debug for LaunchInstanceRequest
Source§impl Default for LaunchInstanceRequest
impl Default for LaunchInstanceRequest
Source§impl<'de> Deserialize<'de> for LaunchInstanceRequest
impl<'de> Deserialize<'de> for LaunchInstanceRequest
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 LaunchInstanceRequest
impl Message for LaunchInstanceRequest
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.