# Class UsableSubnetwork (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    UsableSubnetwork(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Subnetwork which the current user has compute.subnetworks.use
permission on.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `external_ipv6_prefix` | `str` Output only. \[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. \[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 orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE 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`. |
| `secondary_ip_ranges` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.UsableSubnetworkSecondaryRange]` Secondary IP ranges. |
| `stack_type` | `str` The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set toIPV4_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 usingpatch. 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 orREGIONAL_MANAGED_PROXY. The
value can be set toACTIVE 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 toIPV4_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
usingpatch.