str
[Output Only] The external IPv6 address range that is
assigned to this subnetwork.
This field is a member of oneof_ _external_ipv6_prefix.
internal_ipv6_prefix
str
[Output Only] The internal IPv6 address range that is
assigned to this subnetwork.
This field is a member of oneof_ _internal_ipv6_prefix.
ip_cidr_range
str
The range of internal addresses that are
owned by this subnetwork.
This field is a member of oneof_ _ip_cidr_range.
ipv6_access_type
str
The access type of IPv6 address this subnet holds. It's
immutable and can only be specified during creation or the
first time the subnet is updated into IPV4_IPV6 dual stack.
Check the Ipv6AccessType enum for the list of possible
values.
This field is a member of oneof_ _ipv6_access_type.
network
str
Network URL.
This field is a member of oneof_ _network.
purpose
str
Check the Purpose enum for the list of
possible values.
This field is a member of oneof_ _purpose.
role
str
The role of subnetwork. Currently, this field is only used
when purpose is set to GLOBAL_MANAGED_PROXY or
REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or
BACKUP. An ACTIVE subnetwork is one that is currently being
used for Envoy-based load balancers in a region. A BACKUP
subnetwork is one that is ready to be promoted to ACTIVE or
is currently draining. This field can be updated with a
patch request. Check the Role enum for the list of possible
values.
This field is a member of oneof_ _role.
str
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. Check the StackType enum for the list
of possible values.
This field is a member of oneof_ _stack_type.
subnetwork
str
Subnetwork URL.
This field is a member of oneof_ _subnetwork.
Classes
Ipv6AccessType
Ipv6AccessType(value)
The access type of IPv6 address this subnet holds. It's immutable
and can only be specified during creation or the first time the
subnet is updated into IPV4_IPV6 dual stack.
Purpose
Purpose(value)
Role
Role(value)
The role of subnetwork. Currently, this field is only used when
purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is
one that is currently being used for Envoy-based load balancers in a
region. A BACKUP subnetwork is one that is ready to be promoted to
ACTIVE or is currently draining. This field can be updated with a
patch request.
StackType
StackType(value)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-11 UTC."],[],[],null,["# Class UsableSubnetwork (1.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.35.0 (latest)](/python/docs/reference/compute/latest/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.34.0](/python/docs/reference/compute/1.34.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.33.0](/python/docs/reference/compute/1.33.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.32.0](/python/docs/reference/compute/1.32.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.31.0](/python/docs/reference/compute/1.31.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.30.0](/python/docs/reference/compute/1.30.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.29.0](/python/docs/reference/compute/1.29.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.28.0](/python/docs/reference/compute/1.28.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.27.0](/python/docs/reference/compute/1.27.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.26.0](/python/docs/reference/compute/1.26.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.25.0](/python/docs/reference/compute/1.25.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.24.0](/python/docs/reference/compute/1.24.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.23.0](/python/docs/reference/compute/1.23.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.22.0](/python/docs/reference/compute/1.22.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.21.0](/python/docs/reference/compute/1.21.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.20.1](/python/docs/reference/compute/1.20.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.19.2](/python/docs/reference/compute/1.19.2/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.18.0](/python/docs/reference/compute/1.18.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.17.0](/python/docs/reference/compute/1.17.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.16.1](/python/docs/reference/compute/1.16.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.15.0](/python/docs/reference/compute/1.15.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.14.1](/python/docs/reference/compute/1.14.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.13.0](/python/docs/reference/compute/1.13.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.12.1](/python/docs/reference/compute/1.12.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.11.0](/python/docs/reference/compute/1.11.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.10.1](/python/docs/reference/compute/1.10.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.9.0](/python/docs/reference/compute/1.9.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.8.0](/python/docs/reference/compute/1.8.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.7.0](/python/docs/reference/compute/1.7.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.6.1](/python/docs/reference/compute/1.6.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.5.2](/python/docs/reference/compute/1.5.2/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.4.0](/python/docs/reference/compute/1.4.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.3.2](/python/docs/reference/compute/1.3.2/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.2.0](/python/docs/reference/compute/1.2.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.1.0](/python/docs/reference/compute/1.1.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [1.0.0](/python/docs/reference/compute/1.0.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.9.0](/python/docs/reference/compute/0.9.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.8.0](/python/docs/reference/compute/0.8.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.7.0](/python/docs/reference/compute/0.7.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.6.0](/python/docs/reference/compute/0.6.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.5.0](/python/docs/reference/compute/0.5.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.4.2](/python/docs/reference/compute/0.4.2/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.3.0](/python/docs/reference/compute/0.3.0/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.2.1](/python/docs/reference/compute/0.2.1/google.cloud.compute_v1.types.UsableSubnetwork)\n- [0.1.0](/python/docs/reference/compute/0.1.0/google.cloud.compute_v1.types.UsableSubnetwork) \n\n UsableSubnetwork(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSubnetwork which the current user has compute.subnetworks.use\npermission on.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\nClasses\n-------\n\n### Ipv6AccessType\n\n Ipv6AccessType(value)\n\nThe access type of IPv6 address this subnet holds. It's immutable\nand can only be specified during creation or the first time the\nsubnet is updated into IPV4_IPV6 dual stack.\n\n### Purpose\n\n Purpose(value)\n\n### Role\n\n Role(value)\n\nThe role of subnetwork. Currently, this field is only used when\npurpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.\nThe value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is\none that is currently being used for Envoy-based load balancers in a\nregion. A BACKUP subnetwork is one that is ready to be promoted to\nACTIVE or is currently draining. This field can be updated with a\npatch request.\n\n### 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."]]