pub struct GceSetup {Show 13 fields
pub machine_type: String,
pub accelerator_configs: Vec<AcceleratorConfig>,
pub service_accounts: Vec<ServiceAccount>,
pub boot_disk: Option<BootDisk>,
pub data_disks: Vec<DataDisk>,
pub shielded_instance_config: Option<ShieldedInstanceConfig>,
pub network_interfaces: Vec<NetworkInterface>,
pub disable_public_ip: bool,
pub tags: Vec<String>,
pub metadata: BTreeMap<String, String>,
pub enable_ip_forwarding: bool,
pub gpu_driver_config: Option<GpuDriverConfig>,
pub image: Option<Image>,
}
Expand description
The definition of how to configure a VM instance outside of Resources and Identity.
Fields§
§machine_type: String
Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource
accelerator_configs: Vec<AcceleratorConfig>
Optional. The hardware accelerators used on this instance. If you use
accelerators, make sure that your configuration has
enough vCPUs and memory to support the machine_type
you have
selected.
Currently supports only one accelerator configuration.
service_accounts: Vec<ServiceAccount>
Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.
boot_disk: Option<BootDisk>
Optional. The boot disk for the VM.
data_disks: Vec<DataDisk>
Optional. Data disks attached to the VM instance. Currently supports only one data disk.
shielded_instance_config: Option<ShieldedInstanceConfig>
Optional. Shielded VM configuration. Images using supported Shielded VM features.
network_interfaces: Vec<NetworkInterface>
Optional. The network interfaces for the VM. Supports only one interface.
disable_public_ip: bool
Optional. If true, no external IP will be assigned to this VM instance.
Optional. The Compute Engine tags to add to runtime (see Tagging instances).
metadata: BTreeMap<String, String>
Optional. Custom metadata to apply to this instance.
enable_ip_forwarding: bool
Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward
gpu_driver_config: Option<GpuDriverConfig>
Optional. Configuration for GPU drivers.
image: Option<Image>
Type of the image; can be one of VM image, or container image.
Trait Implementations§
source§impl Message for GceSetup
impl Message for GceSetup
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 GceSetup
impl PartialEq for GceSetup
impl StructuralPartialEq for GceSetup
Auto Trait Implementations§
impl Freeze for GceSetup
impl RefUnwindSafe for GceSetup
impl Send for GceSetup
impl Sync for GceSetup
impl Unpin for GceSetup
impl UnwindSafe for GceSetup
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