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
([payload in
AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
and [payload in
PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These
payloads 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 V2beta2 API - Module Google::Cloud::Tasks::V2beta2::Task::View (v0.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.0 (latest)](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.14.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.14.1/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.13.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.13.0/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.12.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.12.1/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.11.3](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.11.3/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.10.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.10.0/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.9.2](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.9.2/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.8.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.8.0/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.7.0/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.6.0/Google-Cloud-Tasks-V2beta2-Task-View)\n- [0.5.5](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.5.5/Google-Cloud-Tasks-V2beta2-Task-View) \nReference documentation and code samples for the Cloud Tasks V2beta2 API module Google::Cloud::Tasks::V2beta2::Task::View.\n\nThe view specifies a subset of [Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\")\ndata.\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(\\[payload in\nAppEngineHttpRequest\\]\\[google.cloud.tasks.v2beta2.AppEngineHttpRequest\\]\nand \\[payload in\nPullMessage\\]\\[google.cloud.tasks.v2beta2.PullMessage.payload\\]). These\npayloads are desirable to return only when needed, because they can be\nlarge and because of the sensitivity of the data that you choose to store\nin 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-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL \"Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)\")\nrequires `cloudtasks.tasks.fullView` [Google\nIAM](https://cloud.google.com/iam/) permission on the\n[Queue](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Queue \"Google::Cloud::Tasks::V2beta2::Queue (class)\") resource."]]