By default response_view is BASIC;
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.
Authorization for FULL requires
cloudtasks.tasks.fullViewGoogle IAM
permission on the Task resource.
By default response_view is BASIC;
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.
Authorization for FULL requires
cloudtasks.tasks.fullViewGoogle IAM
permission on the Task resource.
By default response_view is BASIC;
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.
Authorization for FULL requires
cloudtasks.tasks.fullViewGoogle IAM
permission on the Task 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 - Class Google::Cloud::Tasks::V2::RunTaskRequest (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-RunTaskRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-tasks-v2/1.2.1/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-tasks-v2/1.1.0/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-tasks-v2/1.0.1/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-tasks-v2/0.11.0/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.10.2](/ruby/docs/reference/google-cloud-tasks-v2/0.10.2/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-tasks-v2/0.9.0/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.8.2](/ruby/docs/reference/google-cloud-tasks-v2/0.8.2/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2/0.7.0/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2/0.6.0/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-tasks-v2/0.5.0/Google-Cloud-Tasks-V2-RunTaskRequest)\n- [0.4.6](/ruby/docs/reference/google-cloud-tasks-v2/0.4.6/Google-Cloud-Tasks-V2-RunTaskRequest) \nReference documentation and code samples for the Cloud Tasks V2 API class Google::Cloud::Tasks::V2::RunTaskRequest.\n\nRequest message for forcing a task to run now using\n[RunTask](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-CloudTasks-Client#Google__Cloud__Tasks__V2__CloudTasks__Client_run_task_instance_ \"Google::Cloud::Tasks::V2::CloudTasks::Client#run_task (method)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` \n**Returns**\n\n- (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`\n\n### #response_view\n\n def response_view() -\u003e ::Google::Cloud::Tasks::V2::Task::View\n\n**Returns**\n\n- ([::Google::Cloud::Tasks::V2::Task::View](./Google-Cloud-Tasks-V2-Task-View)) --- The response_view specifies which subset of the [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") will be returned.\n\n\n By default response_view is [BASIC](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task-View#Google__Cloud__Tasks__V2__Task__View__BASIC \"Google::Cloud::Tasks::V2::Task::View::BASIC (constant)\");\n not all information is retrieved by default because some data, such as\n payloads, might be desirable to return only when needed because\n of its large size or because of the sensitivity of data that it\n contains.\n\n Authorization 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/)\n permission on the [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") resource.\n\n### #response_view=\n\n def response_view=(value) -\u003e ::Google::Cloud::Tasks::V2::Task::View\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Tasks::V2::Task::View](./Google-Cloud-Tasks-V2-Task-View)) --- The response_view specifies which subset of the [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") will be returned.\n\n\n By default response_view is [BASIC](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task-View#Google__Cloud__Tasks__V2__Task__View__BASIC \"Google::Cloud::Tasks::V2::Task::View::BASIC (constant)\");\n not all information is retrieved by default because some data, such as\n payloads, might be desirable to return only when needed because\n of its large size or because of the sensitivity of data that it\n contains.\n\n Authorization 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 [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") resource. \n**Returns**\n\n- ([::Google::Cloud::Tasks::V2::Task::View](./Google-Cloud-Tasks-V2-Task-View)) --- The response_view specifies which subset of the [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") will be returned.\n\n\n By default response_view is [BASIC](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task-View#Google__Cloud__Tasks__V2__Task__View__BASIC \"Google::Cloud::Tasks::V2::Task::View::BASIC (constant)\");\n not all information is retrieved by default because some data, such as\n payloads, might be desirable to return only when needed because\n of its large size or because of the sensitivity of data that it\n contains.\n\n Authorization 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/)\n permission on the [Task](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Task \"Google::Cloud::Tasks::V2::Task (class)\") resource."]]