# Class LocationPolicyLocation (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `constraints` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.LocationPolicyLocationConstraints` Constraints that the caller requires on the result distribution in this zone. This field is a member of `oneof`_ `_constraints`. |
| `preference` | `str` Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values. This field is a member of `oneof`_ `_preference`. |

## Classes

### Preference

    Preference(value)

Preference for a given location. Set to either ALLOW orDENY.