InstanceProperties class

Constructors

InstanceProperties()
InstanceProperties.fromJson(Map _json)

Properties

canIpForward ↔ 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.
read / write
description ↔ String
An optional text description for the instances that are created from this instance template.
read / write
disks ↔ List<AttachedDisk>
An array of disks that are associated with the instances that are created from this template.
read / write
guestAccelerators ↔ List<AcceleratorConfig>
A list of guest accelerator cards' type and count to use for instances created from the instance template.
read / write
labels ↔ Map<String, String>
Labels to apply to instances that are created from this template.
read / write
machineType ↔ String
The machine type to use for instances that are created from this template.
read / write
metadata 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.
read / write
minCpuPlatform ↔ 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.
read / write
networkInterfaces ↔ List<NetworkInterface>
An array of network access configurations for this interface.
read / write
reservationAffinity ReservationAffinity
Specifies the reservations that this instance can consume from.
read / write
scheduling Scheduling
Specifies the scheduling options for the instances that are created from this template.
read / write
serviceAccounts ↔ List<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.
read / write
shieldedInstanceConfig ShieldedInstanceConfig
read / write
tags 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.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited