Struct google_api_proto::google::cloud::compute::v1::InstanceProperties
source · pub struct InstanceProperties {Show 21 fields
pub advanced_machine_features: Option<AdvancedMachineFeatures>,
pub can_ip_forward: Option<bool>,
pub confidential_instance_config: Option<ConfidentialInstanceConfig>,
pub description: Option<String>,
pub disks: Vec<AttachedDisk>,
pub guest_accelerators: Vec<AcceleratorConfig>,
pub key_revocation_action_type: Option<String>,
pub labels: BTreeMap<String, String>,
pub machine_type: Option<String>,
pub metadata: Option<Metadata>,
pub min_cpu_platform: Option<String>,
pub network_interfaces: Vec<NetworkInterface>,
pub network_performance_config: Option<NetworkPerformanceConfig>,
pub private_ipv6_google_access: Option<String>,
pub reservation_affinity: Option<ReservationAffinity>,
pub resource_manager_tags: BTreeMap<String, String>,
pub resource_policies: Vec<String>,
pub scheduling: Option<Scheduling>,
pub service_accounts: Vec<ServiceAccount>,
pub shielded_instance_config: Option<ShieldedInstanceConfig>,
pub tags: Option<Tags>,
}
Expand description
Fields§
§advanced_machine_features: Option<AdvancedMachineFeatures>
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet.
can_ip_forward: Option<bool>
Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
confidential_instance_config: Option<ConfidentialInstanceConfig>
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet.
description: Option<String>
An optional text description for the instances that are created from these properties.
disks: Vec<AttachedDisk>
An array of disks that are associated with the instances that are created from these properties.
guest_accelerators: Vec<AcceleratorConfig>
A list of guest accelerator cards’ type and count to use for instances created from these properties.
key_revocation_action_type: Option<String>
KeyRevocationActionType of the instance. Supported options are “STOP” and “NONE”. The default value is “NONE” if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
labels: BTreeMap<String, String>
Labels to apply to instances that are created from these properties.
machine_type: Option<String>
The machine type to use for instances that are created from these properties.
metadata: Option<Metadata>
The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
min_cpu_platform: Option<String>
Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: “Intel Haswell” or minCpuPlatform: “Intel Sandy Bridge”. For more information, read Specifying a Minimum CPU Platform.
network_interfaces: Vec<NetworkInterface>
An array of network access configurations for this interface.
network_performance_config: Option<NetworkPerformanceConfig>
Note that for MachineImage, this is not supported yet.
private_ipv6_google_access: Option<String>
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
reservation_affinity: Option<ReservationAffinity>
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}
, and values are in the format tagValues/456
. The field is ignored (both PUT & PATCH) when empty.
resource_policies: Vec<String>
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
scheduling: Option<Scheduling>
Specifies the scheduling options for the instances that are created from these properties.
service_accounts: Vec<ServiceAccount>
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
shielded_instance_config: Option<ShieldedInstanceConfig>
Note that for MachineImage, this is not supported yet.
A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
Implementations§
source§impl InstanceProperties
impl InstanceProperties
sourcepub fn private_ipv6_google_access(&self) -> &str
pub fn private_ipv6_google_access(&self) -> &str
Returns the value of private_ipv6_google_access
, or the default value if private_ipv6_google_access
is unset.
sourcepub fn machine_type(&self) -> &str
pub fn machine_type(&self) -> &str
Returns the value of machine_type
, or the default value if machine_type
is unset.
sourcepub fn key_revocation_action_type(&self) -> &str
pub fn key_revocation_action_type(&self) -> &str
Returns the value of key_revocation_action_type
, or the default value if key_revocation_action_type
is unset.
sourcepub fn min_cpu_platform(&self) -> &str
pub fn min_cpu_platform(&self) -> &str
Returns the value of min_cpu_platform
, or the default value if min_cpu_platform
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn can_ip_forward(&self) -> bool
pub fn can_ip_forward(&self) -> bool
Returns the value of can_ip_forward
, or the default value if can_ip_forward
is unset.
Trait Implementations§
source§impl Clone for InstanceProperties
impl Clone for InstanceProperties
source§fn clone(&self) -> InstanceProperties
fn clone(&self) -> InstanceProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceProperties
impl Debug for InstanceProperties
source§impl Default for InstanceProperties
impl Default for InstanceProperties
source§impl Message for InstanceProperties
impl Message for InstanceProperties
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 InstanceProperties
impl PartialEq for InstanceProperties
source§fn eq(&self, other: &InstanceProperties) -> bool
fn eq(&self, other: &InstanceProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceProperties
Auto Trait Implementations§
impl Freeze for InstanceProperties
impl RefUnwindSafe for InstanceProperties
impl Send for InstanceProperties
impl Sync for InstanceProperties
impl Unpin for InstanceProperties
impl UnwindSafe for InstanceProperties
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