VirtualMachineConfig class

The config settings for virtual machine.

Constructors

VirtualMachineConfig({Input<RuntimeAcceleratorConfig>? acceleratorConfig, Input<Map<String, dynamic>>? bootImage, Input<List<ContainerImage>>? containerImages, required Input<LocalDisk> dataDisk, Input<EncryptionConfig>? encryptionConfig, Input<bool>? internalIpOnly, Input<Map<String, String>>? labels, required Input<String> machineType, Input<Map<String, String>>? metadata, Input<String>? network, Input<VirtualMachineConfigNicType>? nicType, Input<String>? reservedIpRange, Input<RuntimeShieldedInstanceConfig>? shieldedInstanceConfig, Input<String>? subnet, Input<List<String>>? tags})
Creates a new VirtualMachineConfig. acceleratorConfig Optional. The Compute Engine accelerator configuration for this runtime. bootImage Optional. Boot image metadata used for runtime upgradeability. containerImages Optional. Use a list of container images to use as Kernels in the notebook instance. dataDisk Data disk option configuration settings. encryptionConfig Optional. Encryption settings for virtual machine data disk. internalIpOnly Optional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. labels Optional. The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster. machineType The Compute Engine machine type used for runtimes. Short name is valid. Examples: * n1-standard-2 * e2-standard-8 metadata Optional. The Compute Engine metadata entries to add to virtual machine. (see Project and instance metadata). network Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither network nor subnet is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default * projects/[project_id]/global/networks/default Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network & subnet are empty) * Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access. * Shared VPC (network & subnet are required). Requires configuring Private Service Access. nicType Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. reservedIpRange Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: managed-notebooks-range-c shieldedInstanceConfig Optional. Shielded VM Instance configuration settings. subnet Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 * projects/[project_id]/regions/us-east1/subnetworks/sub0 tags Optional. The Compute Engine tags to add to runtime (see Tagging instances).
const
VirtualMachineConfig.fromMap(Map<String, dynamic> map)
factory

Properties

acceleratorConfig → Input<RuntimeAcceleratorConfig>?
Optional. The Compute Engine accelerator configuration for this runtime.
final
bootImage → Input<Map<String, dynamic>>?
Optional. Boot image metadata used for runtime upgradeability.
final
containerImages → Input<List<ContainerImage>>?
Optional. Use a list of container images to use as Kernels in the notebook instance.
final
dataDisk → Input<LocalDisk>
Data disk option configuration settings.
final
encryptionConfig → Input<EncryptionConfig>?
Optional. Encryption settings for virtual machine data disk.
final
hashCode → int
The hash code for this object.
no setterinherited
internalIpOnly → Input<bool>?
Optional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
final
labels → Input<Map<String, String>>?
Optional. The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster.
final
machineType → Input<String>
The Compute Engine machine type used for runtimes. Short name is valid. Examples: * n1-standard-2 * e2-standard-8
final
metadata → Input<Map<String, String>>?
Optional. The Compute Engine metadata entries to add to virtual machine. (see Project and instance metadata).
final
network → Input<String>?
Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither network nor subnet is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default * projects/[project_id]/global/networks/default Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network & subnet are empty) * Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access. * Shared VPC (network & subnet are required). Requires configuring Private Service Access.
final
nicType → Input<VirtualMachineConfigNicType>?
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
final
reservedIpRange → Input<String>?
Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: managed-notebooks-range-c
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shieldedInstanceConfig → Input<RuntimeShieldedInstanceConfig>?
Optional. Shielded VM Instance configuration settings.
final
subnet → Input<String>?
Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 * projects/[project_id]/regions/us-east1/subnetworks/sub0
final
tags → Input<List<String>>?
Optional. The Compute Engine tags to add to runtime (see Tagging instances).
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