# Class View (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

    View(value)

The view specifies a subset of Task
data.

When a task is returned in a response, not all information is
retrieved by default because some data, such as payloads, might be
desirable to return only when needed because of its large size or
because of the sensitivity of data that it contains.

        This view does not include the [body in
        AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body].
        Bodies are desirable to return only when needed, because
        they can be large and because of the sensitivity of the data
        that you choose to store in it.
    FULL (2):
        All information is returned.

        Authorization for
        <xref uid="google.cloud.tasks.v2.Task.View.FULL">FULL</xref> requires
        `cloudtasks.tasks.fullView` `Google
        IAM <https://cloud.google.com/iam/>`__ permission on the
        <xref uid="google.cloud.tasks.v2.Queue">Queue</xref> resource.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `VIEW_UNSPECIFIED` | Unspecified. Defaults to BASIC. |
| `BASIC` | The basic view omits fields which can be large or can contain sensitive data. |