1.57.0 (latest) 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.1 1.19.2 1.18.0 1.17.0 1.16.1 1.15.0 1.14.1 1.13.0 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

```python
AccessConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
```
An access configuration attached to an instance's network
interface. Only one access config per instance is supported.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `external_ipv6` | `str` Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork. This field is a member of `oneof`_ `_external_ipv6`. |
| `external_ipv6_prefix_length` | `int` Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. This field is a member of `oneof`_ `_external_ipv6_prefix_length`. |
| `ip_collection` | `str` Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when allocating an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name This field is a member of `oneof`_ `_ip_collection`. |
| `kind` | `str` Output only. \[Output Only\] Type of the resource. Alwayscompute#accessConfig for access configs. This field is a member of `oneof`_ `_kind`. |
| `name` | `str` The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork Access. In ipv6AccessConfigs, the recommend name is External IPv6. This field is a member of `oneof`_ `_name`. |
| `nat_i_p` | `str` Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. This field is a member of `oneof`_ `_nat_i_p`. |
| `network_tier` | `str` This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM,STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. Check the NetworkTier enum for the list of possible values. This field is a member of `oneof`_ `_network_tier`. |
| `public_ptr_domain_name` | `str` The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in associated external IPv6 range. This field is a member of `oneof`_ `_public_ptr_domain_name`. |
| `security_policy` | `str` The resource URL for the security policy associated with this access config. This field is a member of `oneof`_ `_security_policy`. |
| `set_public_ptr` | `bool` Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated. This field is a member of `oneof`_ `_set_public_ptr`. |
| `type_` | `str` The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. Check the Type enum for the list of possible values. This field is a member of `oneof`_ `_type`. |

## Classes

### NetworkTier

```python
NetworkTier(value)
```
This signifies the networking tier used for configuring this
access configuration and can only take the following values:
PREMIUM,STANDARD.

If an AccessConfig is specified without a valid external IP
address, an ephemeral IP will be created with this networkTier.

If an AccessConfig with a valid external IP address is
specified, it must match that of the networkTier associated with
the Address resource owning that IP.

### Type

```python
Type(value)
```
The type of configuration. In accessConfigs (IPv4), the default and
only option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and
only option isDIRECT_IPV6.