[][src]Struct google_compute1::InstanceProperties

pub struct InstanceProperties {
    pub reservation_affinity: Option<ReservationAffinity>,
    pub labels: Option<HashMap<String, String>>,
    pub machine_type: Option<String>,
    pub guest_accelerators: Option<Vec<AcceleratorConfig>>,
    pub tags: Option<Tags>,
    pub description: Option<String>,
    pub disks: Option<Vec<AttachedDisk>>,
    pub metadata: Option<Metadata>,
    pub can_ip_forward: Option<bool>,
    pub scheduling: Option<Scheduling>,
    pub min_cpu_platform: Option<String>,
    pub service_accounts: Option<Vec<ServiceAccount>>,
    pub network_interfaces: Option<Vec<NetworkInterface>>,
    pub shielded_instance_config: Option<ShieldedInstanceConfig>,
}

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

Fields

reservation_affinity: Option<ReservationAffinity>

Specifies the reservations that this instance can consume from.

labels: Option<HashMap<String, String>>

Labels to apply to instances that are created from this template.

machine_type: Option<String>

The machine type to use for instances that are created from this template.

guest_accelerators: Option<Vec<AcceleratorConfig>>

A list of guest accelerator cards' type and count to use for instances created from the instance template.

tags: Option<Tags>

A list of tags to apply to the instances that are created from this template. 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.

description: Option<String>

An optional text description for the instances that are created from this instance template.

disks: Option<Vec<AttachedDisk>>

An array of disks that are associated with the instances that are created from this template.

metadata: Option<Metadata>

The metadata key/value pairs to assign to instances that are created from this template. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.

can_ip_forward: Option<bool>

Enables instances created based on this template 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.

scheduling: Option<Scheduling>

Specifies the scheduling options for the instances that are created from this template.

min_cpu_platform: Option<String>

Minimum cpu/platform to be used by this instance. 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.

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 this template. Use metadata queries to obtain the access tokens for these instances.

network_interfaces: Option<Vec<NetworkInterface>>

An array of network access configurations for this interface.

shielded_instance_config: Option<ShieldedInstanceConfig>

no description provided

Trait Implementations

impl Part for InstanceProperties[src]

impl Default for InstanceProperties[src]

impl Clone for InstanceProperties[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for InstanceProperties[src]

impl Serialize for InstanceProperties[src]

impl<'de> Deserialize<'de> for InstanceProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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