The stack type for the subnet. If set to IPV4_ONLY, new VMs in the
subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new
VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If
not specified, IPV4_ONLY is used. This field can be both set at
resource creation time and updated using patch.
Enums
Name
Description
UNDEFINED_STACK_TYPE
A value indicating that the enum field is not set.
IPV4_IPV6
New VMs in this subnet can have both IPv4 and IPv6 addresses.
IPV4_ONLY
New VMs in this subnet will only be assigned IPv4 addresses.
IPV6_ONLY
New VMs in this subnet will only be assigned IPv6 addresses.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class StackType (0.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.5 (latest)](/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.Subnetwork.StackType)\n- [0.1.4](/python/docs/reference/google-cloud-compute-v1beta/0.1.4/google.cloud.compute_v1beta.types.Subnetwork.StackType) \n\n StackType(value)\n\nThe stack type for the subnet. If set to IPV4_ONLY, new VMs in the\nsubnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new\nVMs in the subnet can be assigned both IPv4 and IPv6 addresses. If\nnot specified, IPV4_ONLY is used. This field can be both set at\nresource creation time and updated using patch."]]