Instance class

Represents an Instance resource.

An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances.

Constructors

Instance({AdvancedMachineFeatures? advancedMachineFeatures, bool? canIpForward, ConfidentialInstanceConfig? confidentialInstanceConfig, String? cpuPlatform, String? creationTimestamp, bool? deletionProtection, String? description, List<AttachedDisk>? disks, DisplayDevice? displayDevice, String? fingerprint, List<AcceleratorConfig>? guestAccelerators, String? hostname, String? id, CustomerEncryptionKey? instanceEncryptionKey, String? keyRevocationActionType, String? kind, String? labelFingerprint, Map<String, String>? labels, String? lastStartTimestamp, String? lastStopTimestamp, String? lastSuspendedTimestamp, String? machineType, Metadata? metadata, String? minCpuPlatform, String? name, List<NetworkInterface>? networkInterfaces, NetworkPerformanceConfig? networkPerformanceConfig, InstanceParams? params, String? privateIpv6GoogleAccess, ReservationAffinity? reservationAffinity, List<String>? resourcePolicies, ResourceStatus? resourceStatus, bool? satisfiesPzi, bool? satisfiesPzs, Scheduling? scheduling, String? selfLink, List<ServiceAccount>? serviceAccounts, ShieldedInstanceConfig? shieldedInstanceConfig, ShieldedInstanceIntegrityPolicy? shieldedInstanceIntegrityPolicy, String? sourceMachineImage, CustomerEncryptionKey? sourceMachineImageEncryptionKey, bool? startRestricted, String? status, String? statusMessage, Tags? tags, String? zone})
Instance.fromJson(Map json_)

Properties

advancedMachineFeatures AdvancedMachineFeatures?
Controls for advanced machine-related behavior features.
getter/setter pair
canIpForward bool?
Allows this instance to send and receive packets with non-matching destination or source IPs.
getter/setter pair
confidentialInstanceConfig ConfidentialInstanceConfig?
getter/setter pair
cpuPlatform String?
The CPU platform used by this instance.
getter/setter pair
creationTimestamp String?
Creation timestamp in RFC3339 text format.
getter/setter pair
deletionProtection bool?
Whether the resource should be protected against deletion.
getter/setter pair
description String?
An optional description of this resource.
getter/setter pair
disks List<AttachedDisk>?
Array of disks associated with this instance.
getter/setter pair
displayDevice DisplayDevice?
Enables display device for the instance.
getter/setter pair
fingerprint String?
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking.
getter/setter pair
fingerprintAsBytes List<int>
getter/setter pair
guestAccelerators List<AcceleratorConfig>?
A list of the type and count of accelerator cards attached to the instance.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hostname String?
Specifies the hostname of the instance.
getter/setter pair
id String?
The unique identifier for the resource.
getter/setter pair
instanceEncryptionKey CustomerEncryptionKey?
Encrypts suspended data for an instance with a customer-managed encryption key.
getter/setter pair
keyRevocationActionType String?
KeyRevocationActionType of the instance.
getter/setter pair
kind String?
Type of the resource.
getter/setter pair
labelFingerprint String?
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking.
getter/setter pair
labelFingerprintAsBytes List<int>
getter/setter pair
labels Map<String, String>?
Labels to apply to this instance.
getter/setter pair
lastStartTimestamp String?
Last start timestamp in RFC3339 text format.
getter/setter pair
lastStopTimestamp String?
Last stop timestamp in RFC3339 text format.
getter/setter pair
lastSuspendedTimestamp String?
Last suspended timestamp in RFC3339 text format.
getter/setter pair
machineType String?
Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type.
getter/setter pair
metadata Metadata?
The metadata key/value pairs assigned to this instance.
getter/setter pair
minCpuPlatform String?
Specifies a minimum CPU platform for the VM instance.
getter/setter pair
name String?
The name of the resource, provided by the client when initially creating the resource.
getter/setter pair
networkInterfaces List<NetworkInterface>?
An array of network configurations for this instance.
getter/setter pair
networkPerformanceConfig NetworkPerformanceConfig?
getter/setter pair
params InstanceParams?
Input only.
getter/setter pair
privateIpv6GoogleAccess String?
The private IPv6 google access type for the VM.
getter/setter pair
reservationAffinity ReservationAffinity?
Specifies the reservations that this instance can consume from.
getter/setter pair
resourcePolicies List<String>?
Resource policies applied to this instance.
getter/setter pair
resourceStatus ResourceStatus?
Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
satisfiesPzi bool?
Reserved for future use.
getter/setter pair
satisfiesPzs bool?
Reserved for future use.
getter/setter pair
scheduling Scheduling?
Sets the scheduling options for this instance.
getter/setter pair
Server-defined URL for this resource.
getter/setter pair
serviceAccounts List<ServiceAccount>?
A list of service accounts, with their specified scopes, authorized for this instance.
getter/setter pair
shieldedInstanceConfig ShieldedInstanceConfig?
getter/setter pair
shieldedInstanceIntegrityPolicy ShieldedInstanceIntegrityPolicy?
getter/setter pair
sourceMachineImage String?
Source machine image
getter/setter pair
sourceMachineImageEncryptionKey CustomerEncryptionKey?
Source machine image encryption key when creating an instance from a machine image.
getter/setter pair
startRestricted bool?
Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.
getter/setter pair
status String?
The status of the instance.
getter/setter pair
statusMessage String?
An optional, human-readable explanation of the status.
getter/setter pair
tags Tags?
Tags to apply to this instance.
getter/setter pair
zone String?
URL of the zone where the instance resides.
getter/setter pair

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited