InstanceComputeV1Args class

The set of arguments for Instance. The set of arguments for Instance.

Constructors

InstanceComputeV1Args({Input<AdvancedMachineFeaturesComputeV1>? advancedMachineFeatures, Input<bool>? canIpForward, Input<ConfidentialInstanceConfigComputeV1>? confidentialInstanceConfig, Input<bool>? deletionProtection, Input<String>? description, Input<List<AttachedDiskComputeV1>>? disks, Input<DisplayDeviceComputeV1>? displayDevice, Input<List<AcceleratorConfigComputeV1>>? guestAccelerators, Input<String>? hostname, Input<CustomerEncryptionKeyComputeV1>? instanceEncryptionKey, Input<InstanceKeyRevocationActionTypeComputeV1>? keyRevocationActionType, Input<Map<String, String>>? labels, Input<String>? machineType, Input<MetadataComputeV1>? metadata, Input<String>? minCpuPlatform, Input<String>? name, Input<List<NetworkInterfaceComputeV1>>? networkInterfaces, Input<NetworkPerformanceConfigComputeV1>? networkPerformanceConfig, Input<InstanceParamsComputeV1>? params, Input<InstancePrivateIpv6GoogleAccessComputeV1>? privateIpv6GoogleAccess, Input<String>? project, Input<String>? requestId, Input<ReservationAffinityComputeV1>? reservationAffinity, Input<List<String>>? resourcePolicies, Input<SchedulingComputeV1>? scheduling, Input<List<ServiceAccountComputeV1>>? serviceAccounts, Input<ShieldedInstanceConfigComputeV1>? shieldedInstanceConfig, Input<ShieldedInstanceIntegrityPolicyComputeV1>? shieldedInstanceIntegrityPolicy, Input<String>? sourceInstanceTemplate, Input<String>? sourceMachineImage, Input<CustomerEncryptionKeyComputeV1>? sourceMachineImageEncryptionKey, Input<TagsComputeV1>? tags, Input<String>? zone})
Creates a new InstanceComputeV1Args. 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 Optional. 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. 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. labels Labels to apply to this instance. These can be later modified by the setLabels method. 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 Optional. params Input only. Input Only Additional params passed with the request, but not persisted as part of resource payload. privateIpv6GoogleAccess The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. project Optional. requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). reservationAffinity Specifies the reservations that this instance can consume from. resourcePolicies Resource policies applied to this instance. scheduling Sets the scheduling options for this instance. 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. shieldedInstanceConfig Optional. shieldedInstanceIntegrityPolicy Optional. sourceInstanceTemplate Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate sourceMachineImage Source machine image sourceMachineImageEncryptionKey Source machine image encryption key when creating an instance from a machine image. 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. zone Optional.
const
InstanceComputeV1Args.fromMap(Map<String, dynamic> map)
factory

Properties

advancedMachineFeatures → Input<AdvancedMachineFeaturesComputeV1>?
Controls for advanced machine-related behavior features.
final
canIpForward → Input<bool>?
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 .
final
confidentialInstanceConfig → Input<ConfidentialInstanceConfigComputeV1>?
final
deletionProtection → Input<bool>?
Whether the resource should be protected against deletion.
final
description → Input<String>?
An optional description of this resource. Provide this property when you create the resource.
final
disks → Input<List<AttachedDiskComputeV1>>?
Array of disks associated with this instance. Persistent disks must be created before you can assign them.
final
displayDevice → Input<DisplayDeviceComputeV1>?
Enables display device for the instance.
final
guestAccelerators → Input<List<AcceleratorConfigComputeV1>>?
A list of the type and count of accelerator cards attached to the instance.
final
hashCode → int
The hash code for this object.
no setterinherited
hostname → Input<String>?
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.
final
instanceEncryptionKey → Input<CustomerEncryptionKeyComputeV1>?
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.
final
keyRevocationActionType → Input<InstanceKeyRevocationActionTypeComputeV1>?
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.
final
labels → Input<Map<String, String>>?
Labels to apply to this instance. These can be later modified by the setLabels method.
final
machineType → Input<String>?
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.
final
metadata → Input<MetadataComputeV1>?
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
final
minCpuPlatform → Input<String>?
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".
final
name → Input<String>?
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.
final
networkInterfaces → Input<List<NetworkInterfaceComputeV1>>?
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.
final
networkPerformanceConfig → Input<NetworkPerformanceConfigComputeV1>?
final
params → Input<InstanceParamsComputeV1>?
Input only. Input Only Additional params passed with the request, but not persisted as part of resource payload.
final
privateIpv6GoogleAccess → Input<InstancePrivateIpv6GoogleAccessComputeV1>?
The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default.
final
project → Input<String>?
final
requestId → Input<String>?
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
final
reservationAffinity → Input<ReservationAffinityComputeV1>?
Specifies the reservations that this instance can consume from.
final
resourcePolicies → Input<List<String>>?
Resource policies applied to this instance.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduling → Input<SchedulingComputeV1>?
Sets the scheduling options for this instance.
final
serviceAccounts → Input<List<ServiceAccountComputeV1>>?
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.
final
shieldedInstanceConfig → Input<ShieldedInstanceConfigComputeV1>?
final
shieldedInstanceIntegrityPolicy → Input<ShieldedInstanceIntegrityPolicyComputeV1>?
final
sourceInstanceTemplate → Input<String>?
Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
final
sourceMachineImage → Input<String>?
Source machine image
final
sourceMachineImageEncryptionKey → Input<CustomerEncryptionKeyComputeV1>?
Source machine image encryption key when creating an instance from a machine image.
final
tags → Input<TagsComputeV1>?
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.
final
zone → Input<String>?
final

Methods

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

Operators

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