google-cloud-tasks-v2 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -4
  3. data/lib/google/cloud/tasks/v2/bindings_override.rb +1 -1
  4. data/lib/google/cloud/tasks/v2/cloud_tasks/client.rb +466 -12
  5. data/lib/google/cloud/tasks/v2/cloud_tasks/credentials.rb +1 -1
  6. data/lib/google/cloud/tasks/v2/cloud_tasks/operations.rb +843 -0
  7. data/lib/google/cloud/tasks/v2/cloud_tasks/paths.rb +39 -1
  8. data/lib/google/cloud/tasks/v2/cloud_tasks/rest/client.rb +438 -12
  9. data/lib/google/cloud/tasks/v2/cloud_tasks/rest/operations.rb +927 -0
  10. data/lib/google/cloud/tasks/v2/cloud_tasks/rest/service_stub.rb +248 -1
  11. data/lib/google/cloud/tasks/v2/cloud_tasks/rest.rb +2 -1
  12. data/lib/google/cloud/tasks/v2/cloud_tasks.rb +2 -1
  13. data/lib/google/cloud/tasks/v2/cloudtasks_pb.rb +15 -1
  14. data/lib/google/cloud/tasks/v2/cloudtasks_services_pb.rb +37 -7
  15. data/lib/google/cloud/tasks/v2/cmek_config_pb.rb +24 -0
  16. data/lib/google/cloud/tasks/v2/queue_pb.rb +2 -1
  17. data/lib/google/cloud/tasks/v2/rest.rb +1 -1
  18. data/lib/google/cloud/tasks/v2/target_pb.rb +9 -1
  19. data/lib/google/cloud/tasks/v2/task_pb.rb +3 -1
  20. data/lib/google/cloud/tasks/v2/version.rb +1 -1
  21. data/lib/google/cloud/tasks/v2.rb +1 -1
  22. data/lib/google-cloud-tasks-v2.rb +1 -1
  23. data/proto_docs/google/api/client.rb +1 -1
  24. data/proto_docs/google/api/field_behavior.rb +1 -1
  25. data/proto_docs/google/api/field_info.rb +88 -0
  26. data/proto_docs/google/api/launch_stage.rb +1 -1
  27. data/proto_docs/google/api/resource.rb +1 -1
  28. data/proto_docs/google/cloud/tasks/v2/cloudtasks.rb +203 -6
  29. data/proto_docs/google/cloud/tasks/v2/cmek_config.rb +44 -0
  30. data/proto_docs/google/cloud/tasks/v2/queue.rb +54 -30
  31. data/proto_docs/google/cloud/tasks/v2/target.rb +217 -3
  32. data/proto_docs/google/cloud/tasks/v2/task.rb +13 -1
  33. data/proto_docs/google/iam/v1/iam_policy.rb +1 -1
  34. data/proto_docs/google/iam/v1/options.rb +1 -1
  35. data/proto_docs/google/iam/v1/policy.rb +1 -1
  36. data/proto_docs/google/longrunning/operations.rb +191 -0
  37. data/proto_docs/google/protobuf/any.rb +1 -1
  38. data/proto_docs/google/protobuf/duration.rb +1 -1
  39. data/proto_docs/google/protobuf/empty.rb +1 -1
  40. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  41. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  42. data/proto_docs/google/rpc/status.rb +1 -1
  43. data/proto_docs/google/type/expr.rb +1 -1
  44. metadata +11 -7
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -21,6 +21,220 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2
24
+ # PathOverride.
25
+ #
26
+ # Path message defines path override for HTTP targets.
27
+ # @!attribute [rw] path
28
+ # @return [::String]
29
+ # The URI path (e.g., /users/1234). Default is an empty string.
30
+ class PathOverride
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # QueryOverride.
36
+ #
37
+ # Query message defines query override for HTTP targets.
38
+ # @!attribute [rw] query_params
39
+ # @return [::String]
40
+ # The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
41
+ # string.
42
+ class QueryOverride
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # URI Override.
48
+ #
49
+ # When specified, all the HTTP tasks inside the queue will be partially or
50
+ # fully overridden depending on the configured values.
51
+ # @!attribute [rw] scheme
52
+ # @return [::Google::Cloud::Tasks::V2::UriOverride::Scheme]
53
+ # Scheme override.
54
+ #
55
+ # When specified, the task URI scheme is replaced by the provided value (HTTP
56
+ # or HTTPS).
57
+ # @!attribute [rw] host
58
+ # @return [::String]
59
+ # Host override.
60
+ #
61
+ # When specified, replaces the host part of the task URL. For example,
62
+ # if the task URL is "https://www.google.com," and host value is set to
63
+ # "example.net", the overridden URI will be changed to "https://example.net."
64
+ # Host value cannot be an empty string (INVALID_ARGUMENT).
65
+ # @!attribute [rw] port
66
+ # @return [::Integer]
67
+ # Port override.
68
+ #
69
+ # When specified, replaces the port part of the task URI. For instance,
70
+ # for a URI "https://www.example.com/example" and port=123, the overridden
71
+ # URI becomes "https://www.example.com:123/example". Note that the port value
72
+ # must be a positive integer. Setting the port to 0 (Zero) clears the URI
73
+ # port.
74
+ # @!attribute [rw] path_override
75
+ # @return [::Google::Cloud::Tasks::V2::PathOverride]
76
+ # URI path.
77
+ #
78
+ # When specified, replaces the existing path of the task URL. Setting the
79
+ # path value to an empty string clears the URI path segment.
80
+ # @!attribute [rw] query_override
81
+ # @return [::Google::Cloud::Tasks::V2::QueryOverride]
82
+ # URI query.
83
+ #
84
+ # When specified, replaces the query part of the task URI. Setting the
85
+ # query value to an empty string clears the URI query segment.
86
+ # @!attribute [rw] uri_override_enforce_mode
87
+ # @return [::Google::Cloud::Tasks::V2::UriOverride::UriOverrideEnforceMode]
88
+ # URI Override Enforce Mode
89
+ #
90
+ # When specified, determines the Target UriOverride mode. If not specified,
91
+ # it defaults to ALWAYS.
92
+ class UriOverride
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+
96
+ # The Scheme for an HTTP request. By default, it is HTTPS.
97
+ module Scheme
98
+ # Scheme unspecified. Defaults to HTTPS.
99
+ SCHEME_UNSPECIFIED = 0
100
+
101
+ # Convert the scheme to HTTP, e.g., "https://www.example.com" will change
102
+ # to "http://www.example.com".
103
+ HTTP = 1
104
+
105
+ # Convert the scheme to HTTPS, e.g., "http://www.example.com" will change
106
+ # to "https://www.example.com".
107
+ HTTPS = 2
108
+ end
109
+
110
+ # UriOverrideEnforceMode defines when the URI override is enforced.
111
+ module UriOverrideEnforceMode
112
+ # UriOverrideEnforceMode Unspecified. Defaults to ALWAYS.
113
+ URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED = 0
114
+
115
+ # In the IF_NOT_EXISTS mode, queue-level configuration is only
116
+ # applied where task-level configuration does not exist.
117
+ IF_NOT_EXISTS = 1
118
+
119
+ # In the ALWAYS mode, queue-level configuration overrides all
120
+ # task-level configuration
121
+ ALWAYS = 2
122
+ end
123
+ end
124
+
125
+ # HTTP target.
126
+ #
127
+ # When specified at the {::Google::Cloud::Tasks::V2::Queue Queue} level, all tasks
128
+ # with {::Google::Cloud::Tasks::V2::HttpRequest HttpRequest} are overridden
129
+ # according to the target.
130
+ # @!attribute [rw] uri_override
131
+ # @return [::Google::Cloud::Tasks::V2::UriOverride]
132
+ # URI override.
133
+ #
134
+ # When specified, overrides the execution URI for all the tasks in the queue.
135
+ # @!attribute [rw] http_method
136
+ # @return [::Google::Cloud::Tasks::V2::HttpMethod]
137
+ # The HTTP method to use for the request.
138
+ #
139
+ # When specified, it overrides
140
+ # {::Google::Cloud::Tasks::V2::HttpTarget#http_method HttpRequest} for the task.
141
+ # Note that if the value is set to [HttpMethod][GET] the [HttpRequest][body]
142
+ # of the task will be ignored at execution time.
143
+ # @!attribute [rw] header_overrides
144
+ # @return [::Array<::Google::Cloud::Tasks::V2::HttpTarget::HeaderOverride>]
145
+ # HTTP target headers.
146
+ #
147
+ # This map contains the header field names and values.
148
+ # Headers will be set when running the
149
+ # {::Google::Cloud::Tasks::V2::CloudTasks::Client#create_task CreateTask} and/or
150
+ # [BufferTask][google.cloud.tasks.v2.CloudTasks.BufferTask].
151
+ #
152
+ # These headers represent a subset of the headers that will be configured for
153
+ # the task's HTTP request. Some HTTP request headers will be ignored or
154
+ # replaced.
155
+ #
156
+ # A partial list of headers that will be ignored or replaced is:
157
+ # * Several predefined headers, prefixed with "X-CloudTasks-", can
158
+ # be used to define properties of the task.
159
+ # * Host: This will be computed by Cloud Tasks and derived from
160
+ # [HttpRequest.url][google.cloud.tasks.v2.Target.HttpRequest.url].
161
+ # * Content-Length: This will be computed by Cloud Tasks.
162
+ #
163
+ # `Content-Type` won't be set by Cloud Tasks. You can explicitly set
164
+ # `Content-Type` to a media type when the
165
+ # {::Google::Cloud::Tasks::V2::CloudTasks::Client#create_task task is created}.
166
+ # For example, `Content-Type` can be set to `"application/octet-stream"` or
167
+ # `"application/json"`. The default value is set to `"application/json"`.
168
+ #
169
+ # * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
170
+ #
171
+ # Headers which can have multiple values (according to RFC2616) can be
172
+ # specified using comma-separated values.
173
+ #
174
+ # The size of the headers must be less than 80KB.
175
+ # Queue-level headers to override headers of all the tasks in the queue.
176
+ #
177
+ # Do not put business sensitive or personally identifying data in the HTTP
178
+ # Header Override Configuration or other similar fields in accordance with
179
+ # Section 12 (Resource Fields) of the
180
+ # [Service Specific Terms](https://cloud.google.com/terms/service-terms).
181
+ # @!attribute [rw] oauth_token
182
+ # @return [::Google::Cloud::Tasks::V2::OAuthToken]
183
+ # If specified, an
184
+ # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
185
+ # is generated and attached as the `Authorization` header in the HTTP
186
+ # request.
187
+ #
188
+ # This type of authorization should generally be used only when calling
189
+ # Google APIs hosted on *.googleapis.com. Note that both the service
190
+ # account email and the scope MUST be specified when using the queue-level
191
+ # authorization override.
192
+ #
193
+ # Note: The following fields are mutually exclusive: `oauth_token`, `oidc_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
194
+ # @!attribute [rw] oidc_token
195
+ # @return [::Google::Cloud::Tasks::V2::OidcToken]
196
+ # If specified, an
197
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
198
+ # token is generated and attached as an `Authorization` header in the
199
+ # HTTP request.
200
+ #
201
+ # This type of authorization can be used for many scenarios, including
202
+ # calling Cloud Run, or endpoints where you intend to validate the token
203
+ # yourself. Note that both the service account email and the audience MUST
204
+ # be specified when using the queue-level authorization override.
205
+ #
206
+ # Note: The following fields are mutually exclusive: `oidc_token`, `oauth_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
207
+ class HttpTarget
208
+ include ::Google::Protobuf::MessageExts
209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
+
211
+ # Defines a header message. A header can have a key and a value.
212
+ # @!attribute [rw] key
213
+ # @return [::String]
214
+ # The Key of the header.
215
+ # @!attribute [rw] value
216
+ # @return [::String]
217
+ # The Value of the header.
218
+ class Header
219
+ include ::Google::Protobuf::MessageExts
220
+ extend ::Google::Protobuf::MessageExts::ClassMethods
221
+ end
222
+
223
+ # Wraps the Header object.
224
+ # @!attribute [rw] header
225
+ # @return [::Google::Cloud::Tasks::V2::HttpTarget::Header]
226
+ # Header embodying a key and a value.
227
+ #
228
+ # Do not put business sensitive or personally identifying data in the HTTP
229
+ # Header Override Configuration or other similar fields in accordance with
230
+ # Section 12 (Resource Fields) of the
231
+ # [Service Specific Terms](https://cloud.google.com/terms/service-terms).
232
+ class HeaderOverride
233
+ include ::Google::Protobuf::MessageExts
234
+ extend ::Google::Protobuf::MessageExts::ClassMethods
235
+ end
236
+ end
237
+
24
238
  # HTTP request.
25
239
  #
26
240
  # The task will be pushed to the worker as an HTTP request. If the worker
@@ -72,7 +286,7 @@ module Google
72
286
  #
73
287
  # This map contains the header field names and values.
74
288
  # Headers can be set when the
75
- # [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
289
+ # {::Google::Cloud::Tasks::V2::CloudTasks::Client#create_task task is created}.
76
290
  #
77
291
  # These headers represent a subset of the headers that will accompany the
78
292
  # task's HTTP request. Some HTTP request headers will be ignored or replaced.
@@ -88,7 +302,7 @@ module Google
88
302
  #
89
303
  # `Content-Type` won't be set by Cloud Tasks. You can explicitly set
90
304
  # `Content-Type` to a media type when the
91
- # [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
305
+ # {::Google::Cloud::Tasks::V2::CloudTasks::Client#create_task task is created}.
92
306
  # For example, `Content-Type` can be set to `"application/octet-stream"` or
93
307
  # `"application/json"`.
94
308
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -104,6 +104,10 @@ module Google
104
104
  # information see
105
105
  # [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
106
106
  #
107
+ # The value must be given as a string that indicates the length of time
108
+ # (in seconds) followed by `s` (for "seconds"). For more information on the
109
+ # format, see the documentation for
110
+ # [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration).
107
111
  # `dispatch_deadline` will be truncated to the nearest millisecond. The
108
112
  # deadline is an approximate deadline.
109
113
  # @!attribute [rw] dispatch_count
@@ -129,6 +133,14 @@ module Google
129
133
  # @return [::Google::Cloud::Tasks::V2::Task::View]
130
134
  # Output only. The view specifies which subset of the
131
135
  # {::Google::Cloud::Tasks::V2::Task Task} has been returned.
136
+ # @!attribute [rw] retry_config
137
+ # @return [::Google::Cloud::Tasks::V2::RetryConfig]
138
+ # Optional. Specifies the task-level
139
+ # {::Google::Cloud::Tasks::V2::RetryConfig RetryConfig}.
140
+ #
141
+ # If present, this overrides the
142
+ # {::Google::Cloud::Tasks::V2::Queue#retry_config Queue.retry_config} for this
143
+ # task.
132
144
  class Task
133
145
  include ::Google::Protobuf::MessageExts
134
146
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -0,0 +1,191 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Longrunning
22
+ # This resource represents a long-running operation that is the result of a
23
+ # network API call.
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # The server-assigned name, which is only unique within the same service that
27
+ # originally returns it. If you use the default HTTP mapping, the
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
+ # @!attribute [rw] metadata
30
+ # @return [::Google::Protobuf::Any]
31
+ # Service-specific metadata associated with the operation. It typically
32
+ # contains progress information and common metadata such as create time.
33
+ # Some services might not provide such metadata. Any method that returns a
34
+ # long-running operation should document the metadata type, if any.
35
+ # @!attribute [rw] done
36
+ # @return [::Boolean]
37
+ # If the value is `false`, it means the operation is still in progress.
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
+ # available.
40
+ # @!attribute [rw] error
41
+ # @return [::Google::Rpc::Status]
42
+ # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
45
+ # @!attribute [rw] response
46
+ # @return [::Google::Protobuf::Any]
47
+ # The normal, successful response of the operation. If the original
48
+ # method returns no data on success, such as `Delete`, the response is
49
+ # `google.protobuf.Empty`. If the original method is standard
50
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
51
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
52
+ # is the original method name. For example, if the original method name
53
+ # is `TakeSnapshot()`, the inferred response type is
54
+ # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
57
+ class Operation
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+ end
61
+
62
+ # The request message for
63
+ # Operations.GetOperation.
64
+ # @!attribute [rw] name
65
+ # @return [::String]
66
+ # The name of the operation resource.
67
+ class GetOperationRequest
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+ end
71
+
72
+ # The request message for
73
+ # Operations.ListOperations.
74
+ # @!attribute [rw] name
75
+ # @return [::String]
76
+ # The name of the operation's parent resource.
77
+ # @!attribute [rw] filter
78
+ # @return [::String]
79
+ # The standard list filter.
80
+ # @!attribute [rw] page_size
81
+ # @return [::Integer]
82
+ # The standard list page size.
83
+ # @!attribute [rw] page_token
84
+ # @return [::String]
85
+ # The standard list page token.
86
+ # @!attribute [rw] return_partial_success
87
+ # @return [::Boolean]
88
+ # When set to `true`, operations that are reachable are returned as normal,
89
+ # and those that are unreachable are returned in the
90
+ # [ListOperationsResponse.unreachable] field.
91
+ #
92
+ # This can only be `true` when reading across collections e.g. when `parent`
93
+ # is set to `"projects/example/locations/-"`.
94
+ #
95
+ # This field is not by default supported and will result in an
96
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
97
+ # service or product specific documentation.
98
+ class ListOperationsRequest
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # The response message for
104
+ # Operations.ListOperations.
105
+ # @!attribute [rw] operations
106
+ # @return [::Array<::Google::Longrunning::Operation>]
107
+ # A list of operations that matches the specified filter in the request.
108
+ # @!attribute [rw] next_page_token
109
+ # @return [::String]
110
+ # The standard List next-page token.
111
+ # @!attribute [rw] unreachable
112
+ # @return [::Array<::String>]
113
+ # Unordered list. Unreachable resources. Populated when the request sets
114
+ # `ListOperationsRequest.return_partial_success` and reads across
115
+ # collections e.g. when attempting to list all resources across all supported
116
+ # locations.
117
+ class ListOperationsResponse
118
+ include ::Google::Protobuf::MessageExts
119
+ extend ::Google::Protobuf::MessageExts::ClassMethods
120
+ end
121
+
122
+ # The request message for
123
+ # Operations.CancelOperation.
124
+ # @!attribute [rw] name
125
+ # @return [::String]
126
+ # The name of the operation resource to be cancelled.
127
+ class CancelOperationRequest
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+ end
131
+
132
+ # The request message for
133
+ # Operations.DeleteOperation.
134
+ # @!attribute [rw] name
135
+ # @return [::String]
136
+ # The name of the operation resource to be deleted.
137
+ class DeleteOperationRequest
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
+ end
141
+
142
+ # The request message for
143
+ # Operations.WaitOperation.
144
+ # @!attribute [rw] name
145
+ # @return [::String]
146
+ # The name of the operation resource to wait on.
147
+ # @!attribute [rw] timeout
148
+ # @return [::Google::Protobuf::Duration]
149
+ # The maximum duration to wait before timing out. If left blank, the wait
150
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
151
+ # If RPC context deadline is also specified, the shorter one will be used.
152
+ class WaitOperationRequest
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+ end
156
+
157
+ # A message representing the message types used by a long-running operation.
158
+ #
159
+ # Example:
160
+ #
161
+ # rpc Export(ExportRequest) returns (google.longrunning.Operation) {
162
+ # option (google.longrunning.operation_info) = {
163
+ # response_type: "ExportResponse"
164
+ # metadata_type: "ExportMetadata"
165
+ # };
166
+ # }
167
+ # @!attribute [rw] response_type
168
+ # @return [::String]
169
+ # Required. The message name of the primary return type for this
170
+ # long-running operation.
171
+ # This type will be used to deserialize the LRO's response.
172
+ #
173
+ # If the response is in a different package from the rpc, a fully-qualified
174
+ # message name must be used (e.g. `google.protobuf.Struct`).
175
+ #
176
+ # Note: Altering this value constitutes a breaking change.
177
+ # @!attribute [rw] metadata_type
178
+ # @return [::String]
179
+ # Required. The message name of the metadata type for this long-running
180
+ # operation.
181
+ #
182
+ # If the response is in a different package from the rpc, a fully-qualified
183
+ # message name must be used (e.g. `google.protobuf.Struct`).
184
+ #
185
+ # Note: Altering this value constitutes a breaking change.
186
+ class OperationInfo
187
+ include ::Google::Protobuf::MessageExts
188
+ extend ::Google::Protobuf::MessageExts::ClassMethods
189
+ end
190
+ end
191
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -65,12 +65,10 @@ dependencies:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '1.11'
68
- description: Cloud Tasks is a fully managed service that allows you to manage the
69
- execution, dispatch and delivery of a large number of distributed tasks. You can
70
- asynchronously perform work outside of a user request. Your tasks can be executed
71
- on App Engine or any arbitrary HTTP endpoint. Note that google-cloud-tasks-v2 is
72
- a version-specific client library. For most uses, we recommend installing the main
73
- client library google-cloud-tasks instead. See the readme for more details.
68
+ description: Manages the execution of large numbers of distributed requests. Note
69
+ that google-cloud-tasks-v2 is a version-specific client library. For most uses,
70
+ we recommend installing the main client library google-cloud-tasks instead. See
71
+ the readme for more details.
74
72
  email: googleapis-packages@google.com
75
73
  executables: []
76
74
  extensions: []
@@ -86,12 +84,15 @@ files:
86
84
  - lib/google/cloud/tasks/v2/cloud_tasks.rb
87
85
  - lib/google/cloud/tasks/v2/cloud_tasks/client.rb
88
86
  - lib/google/cloud/tasks/v2/cloud_tasks/credentials.rb
87
+ - lib/google/cloud/tasks/v2/cloud_tasks/operations.rb
89
88
  - lib/google/cloud/tasks/v2/cloud_tasks/paths.rb
90
89
  - lib/google/cloud/tasks/v2/cloud_tasks/rest.rb
91
90
  - lib/google/cloud/tasks/v2/cloud_tasks/rest/client.rb
91
+ - lib/google/cloud/tasks/v2/cloud_tasks/rest/operations.rb
92
92
  - lib/google/cloud/tasks/v2/cloud_tasks/rest/service_stub.rb
93
93
  - lib/google/cloud/tasks/v2/cloudtasks_pb.rb
94
94
  - lib/google/cloud/tasks/v2/cloudtasks_services_pb.rb
95
+ - lib/google/cloud/tasks/v2/cmek_config_pb.rb
95
96
  - lib/google/cloud/tasks/v2/queue_pb.rb
96
97
  - lib/google/cloud/tasks/v2/rest.rb
97
98
  - lib/google/cloud/tasks/v2/target_pb.rb
@@ -100,15 +101,18 @@ files:
100
101
  - proto_docs/README.md
101
102
  - proto_docs/google/api/client.rb
102
103
  - proto_docs/google/api/field_behavior.rb
104
+ - proto_docs/google/api/field_info.rb
103
105
  - proto_docs/google/api/launch_stage.rb
104
106
  - proto_docs/google/api/resource.rb
105
107
  - proto_docs/google/cloud/tasks/v2/cloudtasks.rb
108
+ - proto_docs/google/cloud/tasks/v2/cmek_config.rb
106
109
  - proto_docs/google/cloud/tasks/v2/queue.rb
107
110
  - proto_docs/google/cloud/tasks/v2/target.rb
108
111
  - proto_docs/google/cloud/tasks/v2/task.rb
109
112
  - proto_docs/google/iam/v1/iam_policy.rb
110
113
  - proto_docs/google/iam/v1/options.rb
111
114
  - proto_docs/google/iam/v1/policy.rb
115
+ - proto_docs/google/longrunning/operations.rb
112
116
  - proto_docs/google/protobuf/any.rb
113
117
  - proto_docs/google/protobuf/duration.rb
114
118
  - proto_docs/google/protobuf/empty.rb