# Class Subnet (1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.0 1.8.3 1.7.0 1.6.1 1.5.0 1.4.4 1.3.0 1.2.0 1.1.1 1.0.1 0.2.2 0.1.1

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

Subnet in a private cloud. Either `management` subnets (such as
vMotion) that are read-only, or `userDefined`, which can also be
updated.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The resource name of this subnet. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` |
| `ip_cidr_range` | `str` The IP address range of the subnet in CIDR format '10.0.0.0/24'. |
| `gateway_ip` | `str` The IP address of the gateway of this subnet. Must fall within the IP prefix defined above. |
| `type_` | `str` Output only. The type of the subnet. For example "management" or "userDefined". |
| `state` | `https://docs.cloud.google.com/python/docs/reference/vmwareengine/latest/google.cloud.vmwareengine_v1.types.Subnet.State` Output only. The state of the resource. |
| `vlan_id` | `int` Output only. VLAN ID of the VLAN on which the subnet is configured |

## Classes

### State

    State(value)

Defines possible states of subnets.