Class: Google::Cloud::Tasks::V2beta2::Task
- Inherits:
-
Object
- Object
- Google::Cloud::Tasks::V2beta2::Task
- Defined in:
- lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb
Overview
A unit of scheduled work.
Defined Under Namespace
Modules: View
Instance Attribute Summary collapse
-
#app_engine_http_request ⇒ Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest
App Engine HTTP request that is sent to the task's target.
-
#create_time ⇒ Google::Protobuf::Timestamp
Output only.
-
#name ⇒ String
Optionally caller-specified in CreateTask.
-
#pull_message ⇒ Google::Cloud::Tasks::V2beta2::PullMessage
LeaseTasks to process the task.
-
#schedule_time ⇒ Google::Protobuf::Timestamp
The time when the task is scheduled to be attempted.
-
#status ⇒ Google::Cloud::Tasks::V2beta2::TaskStatus
Output only.
-
#view ⇒ Google::Cloud::Tasks::V2beta2::Task::View
Output only.
Instance Attribute Details
#app_engine_http_request ⇒ Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |
#create_time ⇒ Google::Protobuf::Timestamp
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |
#name ⇒ String
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |
#pull_message ⇒ Google::Cloud::Tasks::V2beta2::PullMessage
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |
#schedule_time ⇒ Google::Protobuf::Timestamp
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |
#status ⇒ Google::Cloud::Tasks::V2beta2::TaskStatus
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |
#view ⇒ Google::Cloud::Tasks::V2beta2::Task::View
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb', line 88 class Task # The view specifies a subset of {Google::Cloud::Tasks::V2beta2::Task 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. module View # Unspecified. Defaults to BASIC. VIEW_UNSPECIFIED = 0 # 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. BASIC = 1 # All information is returned. # # Authorization for {Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} # requires `cloudtasks.tasks.fullView` [Google # IAM](https://cloud.google.com/iam/) permission on the # {Google::Cloud::Tasks::V2beta2::Queue Queue} resource. FULL = 2 end end |