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: Option<Vec<AttachedDisk>>, pub guest_accelerators: Option<Vec<AcceleratorConfig>>, pub key_revocation_action_type: Option<String>, pub labels: Option<HashMap<String, String>>, pub machine_type: Option<String>, pub metadata: Option<Metadata>, pub min_cpu_platform: Option<String>, pub network_interfaces: Option<Vec<NetworkInterface>>, pub network_performance_config: Option<NetworkPerformanceConfig>, pub private_ipv6_google_access: Option<String>, pub reservation_affinity: Option<ReservationAffinity>, pub resource_manager_tags: Option<HashMap<String, String>>, pub resource_policies: Option<Vec<String>>, pub scheduling: Option<Scheduling>, pub service_accounts: Option<Vec<ServiceAccount>>, pub shielded_instance_config: Option<ShieldedInstanceConfig>, pub tags: Option<Tags>,
}
Expand description

There is no detailed description.

This type is not used in any activity, and only used as part of another schema.

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: Option<Vec<AttachedDisk>>

An array of disks that are associated with the instances that are created from these properties.

§guest_accelerators: Option<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.

§labels: Option<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: Option<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.

§reservation_affinity: Option<ReservationAffinity>

Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet.

§resource_manager_tags: Option<HashMap<String, String>>

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: Option<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: Option<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.

§tags: Option<Tags>

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.

Trait Implementations§

source§

impl Clone for InstanceProperties

source§

fn clone(&self) -> InstanceProperties

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InstanceProperties

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InstanceProperties

source§

fn default() -> InstanceProperties

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for InstanceProperties

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for InstanceProperties

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for InstanceProperties

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,