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.
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.
Authorization for FULL requires
cloudtasks.tasks.fullViewGoogle IAM
permission on the Queue resource.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Tasks V2 API - Module Google::Cloud::Tasks::V2::Task::View (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task-View)\n- [1.2.1](/ruby/docs/reference/google-cloud-tasks-v2/1.2.1/Google-Cloud-Tasks-V2-Task-View)\n- [1.1.0](/ruby/docs/reference/google-cloud-tasks-v2/1.1.0/Google-Cloud-Tasks-V2-Task-View)\n- [1.0.1](/ruby/docs/reference/google-cloud-tasks-v2/1.0.1/Google-Cloud-Tasks-V2-Task-View)\n- [0.11.0](/ruby/docs/reference/google-cloud-tasks-v2/0.11.0/Google-Cloud-Tasks-V2-Task-View)\n- [0.10.2](/ruby/docs/reference/google-cloud-tasks-v2/0.10.2/Google-Cloud-Tasks-V2-Task-View)\n- [0.9.0](/ruby/docs/reference/google-cloud-tasks-v2/0.9.0/Google-Cloud-Tasks-V2-Task-View)\n- [0.8.2](/ruby/docs/reference/google-cloud-tasks-v2/0.8.2/Google-Cloud-Tasks-V2-Task-View)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2/0.7.0/Google-Cloud-Tasks-V2-Task-View)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2/0.6.0/Google-Cloud-Tasks-V2-Task-View)\n- [0.5.0](/ruby/docs/reference/google-cloud-tasks-v2/0.5.0/Google-Cloud-Tasks-V2-Task-View)\n- [0.4.6](/ruby/docs/reference/google-cloud-tasks-v2/0.4.6/Google-Cloud-Tasks-V2-Task-View) \nReference documentation and code samples for the Cloud Tasks V2 API module Google::Cloud::Tasks::V2::Task::View.\n\nThe view specifies a subset of [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") data.\n\n\n\u003cbr /\u003e\n\nWhen a task is returned in a response, not all\ninformation is retrieved by default because some data, such as\npayloads, might be desirable to return only when needed because\nof its large size or because of the sensitivity of data that it\ncontains.\n\nConstants\n---------\n\n### VIEW_UNSPECIFIED\n\n**value:** 0 \nUnspecified. Defaults to BASIC.\n\n### BASIC\n\n**value:** 1 \nThe basic view omits fields which can be large or can contain\nsensitive data.\n\n\n\u003cbr /\u003e\n\nThis view does not include the\n\\[body in\nAppEngineHttpRequest\\]\\[google.cloud.tasks.v2.AppEngineHttpRequest.body\\].\nBodies are desirable to return only when needed, because they\ncan be large and because of the sensitivity of the data that you\nchoose to store in it.\n\n### FULL\n\n**value:** 2 \nAll information is returned.\n\n\n\u003cbr /\u003e\n\nAuthorization for [FULL](/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\n`cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)\npermission on the [Queue](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue \"Google::Cloud::Tasks::V2::Queue (class)\") resource."]]