# Cloud Tasks V2 API - Module Google::Cloud::Tasks::V2::Task::View (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.2 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Tasks V2 API module Google::Cloud::Tasks::V2::Task::View.

The view specifies a subset of [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task "Google::Cloud::Tasks::V2::Task (class)") data.


<br />

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.

## Constants

### VIEW_UNSPECIFIED

**value:** 0  
Unspecified. Defaults to BASIC.

### BASIC

**value:** 1  
The basic view omits fields which can be large or can contain
sensitive data.


<br />

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

**value:** 2  
All information is returned.


<br />

Authorization for [FULL](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task-View#Google__Cloud__Tasks__V2__Task__View__FULL "Google::Cloud::Tasks::V2::Task::View::FULL (constant)") requires
`cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
permission on the [Queue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue "Google::Cloud::Tasks::V2::Queue (class)") resource.