GetInstanceResult constructor

const GetInstanceResult({
  1. required AdvancedMachineFeaturesResponse advancedMachineFeatures,
  2. required bool canIpForward,
  3. required ConfidentialInstanceConfigResponse confidentialInstanceConfig,
  4. required String cpuPlatform,
  5. required String creationTimestamp,
  6. required bool deletionProtection,
  7. required String description,
  8. required List<AttachedDiskResponse> disks,
  9. required DisplayDeviceResponse displayDevice,
  10. required bool eraseWindowsVssSignature,
  11. required String fingerprint,
  12. required List<AcceleratorConfigResponse> guestAccelerators,
  13. required String hostname,
  14. required CustomerEncryptionKeyResponse instanceEncryptionKey,
  15. required String keyRevocationActionType,
  16. required String kind,
  17. required String labelFingerprint,
  18. required Map<String, String> labels,
  19. required String lastStartTimestamp,
  20. required String lastStopTimestamp,
  21. required String lastSuspendedTimestamp,
  22. required String machineType,
  23. required MetadataResponse metadata,
  24. required String minCpuPlatform,
  25. required String name,
  26. required List<NetworkInterfaceResponse> networkInterfaces,
  27. required NetworkPerformanceConfigResponse networkPerformanceConfig,
  28. required InstanceParamsResponse params,
  29. required Map<String, String> partnerMetadata,
  30. required String postKeyRevocationActionType,
  31. required String preservedStateSizeGb,
  32. required String privateIpv6GoogleAccess,
  33. required ReservationAffinityResponse reservationAffinity,
  34. required List<String> resourcePolicies,
  35. required ResourceStatusResponse resourceStatus,
  36. required bool satisfiesPzs,
  37. required SchedulingResponse scheduling,
  38. required List<String> secureTags,
  39. required String selfLink,
  40. required String selfLinkWithId,
  41. required List<ServiceAccountResponse> serviceAccounts,
  42. required Map<String, String> serviceIntegrationSpecs,
  43. required ShieldedInstanceConfigResponse shieldedInstanceConfig,
  44. required ShieldedInstanceIntegrityPolicyResponse shieldedInstanceIntegrityPolicy,
  45. required ShieldedVmConfigResponse shieldedVmConfig,
  46. required ShieldedVmIntegrityPolicyResponse shieldedVmIntegrityPolicy,
  47. required String sourceMachineImage,
  48. required CustomerEncryptionKeyResponse sourceMachineImageEncryptionKey,
  49. required bool startRestricted,
  50. required String status,
  51. required String statusMessage,
  52. required TagsResponse tags,
  53. required UpcomingMaintenanceResponse upcomingMaintenance,
  54. required String zone,
})

Creates a new GetInstanceResult. advancedMachineFeatures Controls for advanced machine-related behavior features. canIpForward Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding . confidentialInstanceConfig Required. cpuPlatform The CPU platform used by this instance. creationTimestamp Creation timestamp in RFC3339 text format. deletionProtection Whether the resource should be protected against deletion. description An optional description of this resource. Provide this property when you create the resource. disks Array of disks associated with this instance. Persistent disks must be created before you can assign them. displayDevice Enables display device for the instance. eraseWindowsVssSignature Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature. fingerprint Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance. guestAccelerators A list of the type and count of accelerator cards attached to the instance. hostname Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is INSTANCE_NAME.c.PROJECT_ID.internal when using the global DNS, and INSTANCE_NAME.ZONE.c.PROJECT_ID.internal when using zonal DNS. instanceEncryptionKey Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation. keyRevocationActionType KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. kind Type of the resource. Always compute#instance for instances. labelFingerprint A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance. labels Labels to apply to this instance. These can be later modified by the setLabels method. lastStartTimestamp Last start timestamp in RFC3339 text format. lastStopTimestamp Last stop timestamp in RFC3339 text format. lastSuspendedTimestamp Last suspended timestamp in RFC3339 text format. machineType Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types. metadata The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. minCpuPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". name The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. networkInterfaces An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. networkPerformanceConfig Required. params Input only. Input Only Additional params passed with the request, but not persisted as part of resource payload. partnerMetadata Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. postKeyRevocationActionType PostKeyRevocationActionType of the instance. preservedStateSizeGb Total amount of preserved state for SUSPENDED instances. Read-only in the api. privateIpv6GoogleAccess The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. reservationAffinity Specifies the reservations that this instance can consume from. resourcePolicies Resource policies applied to this instance. resourceStatus Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field. satisfiesPzs Reserved for future use. scheduling Sets the scheduling options for this instance. secureTags Input Only Secure tags to apply to this instance. These can be later modified by the update method. Maximum number of secure tags allowed is 50. selfLink Server-defined URL for this resource. selfLinkWithId Server-defined URL for this resource with the resource id. serviceAccounts A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. serviceIntegrationSpecs Mapping of user-defined keys to specifications for service integrations. Currently only a single key-value pair is supported. shieldedInstanceConfig Required. shieldedInstanceIntegrityPolicy Required. shieldedVmConfig Deprecating, please use shielded_instance_config. shieldedVmIntegrityPolicy Deprecating, please use shielded_instance_integrity_policy. sourceMachineImage Source machine image sourceMachineImageEncryptionKey Source machine image encryption key when creating an instance from a machine image. startRestricted Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. status The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. statusMessage An optional, human-readable explanation of the status. tags Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field. upcomingMaintenance Specifies upcoming maintenance for the instance. zone URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Implementation

const GetInstanceResult({
  required this.advancedMachineFeatures,
  required this.canIpForward,
  required this.confidentialInstanceConfig,
  required this.cpuPlatform,
  required this.creationTimestamp,
  required this.deletionProtection,
  required this.description,
  required this.disks,
  required this.displayDevice,
  required this.eraseWindowsVssSignature,
  required this.fingerprint,
  required this.guestAccelerators,
  required this.hostname,
  required this.instanceEncryptionKey,
  required this.keyRevocationActionType,
  required this.kind,
  required this.labelFingerprint,
  required this.labels,
  required this.lastStartTimestamp,
  required this.lastStopTimestamp,
  required this.lastSuspendedTimestamp,
  required this.machineType,
  required this.metadata,
  required this.minCpuPlatform,
  required this.name,
  required this.networkInterfaces,
  required this.networkPerformanceConfig,
  required this.params,
  required this.partnerMetadata,
  required this.postKeyRevocationActionType,
  required this.preservedStateSizeGb,
  required this.privateIpv6GoogleAccess,
  required this.reservationAffinity,
  required this.resourcePolicies,
  required this.resourceStatus,
  required this.satisfiesPzs,
  required this.scheduling,
  required this.secureTags,
  required this.selfLink,
  required this.selfLinkWithId,
  required this.serviceAccounts,
  required this.serviceIntegrationSpecs,
  required this.shieldedInstanceConfig,
  required this.shieldedInstanceIntegrityPolicy,
  required this.shieldedVmConfig,
  required this.shieldedVmIntegrityPolicy,
  required this.sourceMachineImage,
  required this.sourceMachineImageEncryptionKey,
  required this.startRestricted,
  required this.status,
  required this.statusMessage,
  required this.tags,
  required this.upcomingMaintenance,
  required this.zone,
});