Struct googapis::google::cloud::compute::v1::InstanceProperties [−][src]
pub struct InstanceProperties {Show 18 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 labels: HashMap<String, String>,
pub machine_type: Option<String>,
pub metadata: Option<Metadata>,
pub min_cpu_platform: Option<String>,
pub network_interfaces: Vec<NetworkInterface>,
pub private_ipv6_google_access: Option<String>,
pub reservation_affinity: Option<ReservationAffinity>,
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.
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.
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.
labels: HashMap<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.
private_ipv6_google_access: Option<String>
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
reservation_affinity: Option<ReservationAffinity>
Specifies the reservations that instances can consume from.
resource_policies: Vec<String>
Resource policies (names, not ULRs) applied to instances created from these properties.
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>
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
Returns the value of private_ipv6_google_access
, or the default value if private_ipv6_google_access
is unset.
Returns the value of machine_type
, or the default value if machine_type
is unset.
Returns the value of min_cpu_platform
, or the default value if min_cpu_platform
is unset.
Returns the value of description
, or the default value if description
is unset.
Returns the value of can_ip_forward
, or the default value if can_ip_forward
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InstanceProperties
impl Send for InstanceProperties
impl Sync for InstanceProperties
impl Unpin for InstanceProperties
impl UnwindSafe for InstanceProperties
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more