Compute V1 Client - Class StackType (2.5.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Compute V1 Client class StackType.
The stack type for the subnet. If set to IPV4_ONLY, new VMsin the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 andIPv6 addresses. If not specified, IPV4_ONLY is used.
This field can be both set at resource creation time and updated usingpatch.
Protobuf typegoogle.cloud.compute.v1.UsableSubnetwork.StackType
Namespace
Google \ Cloud \ Compute \ V1 \ UsableSubnetworkMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value | mixed |
static::value
| Parameter | |
|---|---|
| Name | Description |
name | mixed |
Constants
UNDEFINED_STACK_TYPE
Value: 0A value indicating that the enum field is not set.
Generated from protobuf enumUNDEFINED_STACK_TYPE = 0;
IPV4_IPV6
Value: 22197249New VMs in this subnet can have both IPv4 and IPv6 addresses.
Generated from protobuf enumIPV4_IPV6 = 22197249;
IPV4_ONLY
Value: 22373798New VMs in this subnet will only be assigned IPv4 addresses.
Generated from protobuf enumIPV4_ONLY = 22373798;
IPV6_ONLY
Value: 79632100New VMs in this subnet will only be assigned IPv6 addresses.
Generated from protobuf enumIPV6_ONLY = 79632100;
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-23 UTC.