# Class UriOverride (2.23.0)

2.23.0 (latest) 2.22.0 2.21.0 2.20.0 2.19.3 2.18.0 2.17.1 2.16.5 2.15.1 2.14.2 2.13.2 2.12.1 2.11.0 2.10.4 2.9.1 2.8.1 2.7.2 2.6.0 2.5.3 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.5.2 1.4.0 1.3.0 1.2.1

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

Uri Override.

When specified, all the HTTP tasks inside the queue will be
partially or fully overridden depending on the configured
values.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `scheme` | `https://docs.cloud.google.com/python/docs/reference/cloudtasks/latest/google.cloud.tasks_v2beta2.types.UriOverride.Scheme` Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS). This field is a member of `oneof`_ `_scheme`. |
| `host` | `str` Host override. When specified, replaces the host part of the task URL. For example, if the task URL is "https://www.google.com," and host value is set to "example.net", the overridden URI will be changed to "https://example.net." Host value cannot be an empty string (INVALID_ARGUMENT). This field is a member of `oneof`_ `_host`. |
| `port` | `int` Port override. When specified, replaces the port part of the task URI. For instance, for a URI http://www.google.com/foo and port=123, the overridden URI becomes http://www.google.com:123/foo. Note that the port value must be a positive integer. Setting the port to 0 (Zero) clears the URI port. This field is a member of `oneof`_ `_port`. |
| `path_override` | `https://docs.cloud.google.com/python/docs/reference/cloudtasks/latest/google.cloud.tasks_v2beta2.types.PathOverride` URI path. When specified, replaces the existing path of the task URL. Setting the path value to an empty string clears the URI path segment. |
| `query_override` | `https://docs.cloud.google.com/python/docs/reference/cloudtasks/latest/google.cloud.tasks_v2beta2.types.QueryOverride` URI Query. When specified, replaces the query part of the task URI. Setting the query value to an empty string clears the URI query segment. |
| `uri_override_enforce_mode` | `https://docs.cloud.google.com/python/docs/reference/cloudtasks/latest/google.cloud.tasks_v2beta2.types.UriOverride.UriOverrideEnforceMode` URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS. |

## Classes

### Scheme

    Scheme(value)

The Scheme for an HTTP request. By default, it is HTTPS.

### UriOverrideEnforceMode

    UriOverrideEnforceMode(value)

UriOverrideEnforceMode mode is to define enforcing mode for
the override modes.