The stack type for this network interface. To assign only IPv4
addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses,
use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can
be both set at instance creation and update network interface
operations.
Enums
Name
Description
UNDEFINED_STACK_TYPE
A value indicating that the enum field is not set.
IPV4_IPV6
The network interface can have both IPv4 and IPv6 addresses.
IPV4_ONLY
The network interface will only be assigned IPv4 addresses.
IPV6_ONLY
The network interface 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.NetworkInterface.StackType)\n- [0.1.4](/python/docs/reference/google-cloud-compute-v1beta/0.1.4/google.cloud.compute_v1beta.types.NetworkInterface.StackType) \n\n StackType(value)\n\nThe stack type for this network interface. To assign only IPv4\naddresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses,\nuse IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can\nbe both set at instance creation and update network interface\noperations."]]