google-apis-cloudtasks_v2 0.47.0 → 0.49.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6208f6970c08036ba6d57d5f38f1ba2d27ad1a2da13695c3da0af3b44dd59352
|
|
4
|
+
data.tar.gz: 4f013bae9c32695ee4ba22b36a4514158b18940eac7bd74fa5df646ecc58a5f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c87bb7aee86da1d25eb614c8b78a2dd1611be32fe59566729f42c2fecd264c6b77599f2e97c81e90911e12b28556c265ee0c6c0bd5f51642cab208d607b75a25
|
|
7
|
+
data.tar.gz: de80a74b0eb021f870308e91c17877fd6759a85479590fc93b24caeb31c581bc086325b248d3c88e86d0300b5ca1e596ed18ae787201d8064258425e58873e36
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2
|
|
2
2
|
|
|
3
|
+
### v0.49.0 (2026-09-27)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260916
|
|
6
|
+
|
|
7
|
+
### v0.48.0 (2026-09-06)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260831
|
|
10
|
+
|
|
3
11
|
### v0.47.0 (2026-06-14)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260512
|
|
@@ -258,6 +258,66 @@ module Google
|
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
+
# Request message for [BatchCreateTasks].
|
|
262
|
+
class BatchCreateTasksRequest
|
|
263
|
+
include Google::Apis::Core::Hashable
|
|
264
|
+
|
|
265
|
+
# Optional. This field will be used to identify the long running operation,
|
|
266
|
+
# avoiding duplication when user retries. If not provided, then a UUID will be
|
|
267
|
+
# generated at server side.
|
|
268
|
+
# Corresponds to the JSON property `requestId`
|
|
269
|
+
# @return [String]
|
|
270
|
+
attr_accessor :request_id
|
|
271
|
+
|
|
272
|
+
# Required. The list of requests to create tasks. The queue specified in parent
|
|
273
|
+
# field of each CreateTaskRequest will be the same. This validation happens on
|
|
274
|
+
# the client side as well as in the handler. BatchCreateTasksRequest.parent will
|
|
275
|
+
# also be the same value as the individual CreateTaskRequest.parent . The
|
|
276
|
+
# maximum number of requests is 100.
|
|
277
|
+
# Corresponds to the JSON property `requests`
|
|
278
|
+
# @return [Array<Google::Apis::CloudtasksV2::CreateTaskRequest>]
|
|
279
|
+
attr_accessor :requests
|
|
280
|
+
|
|
281
|
+
def initialize(**args)
|
|
282
|
+
update!(**args)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Update properties of this object
|
|
286
|
+
def update!(**args)
|
|
287
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
288
|
+
@requests = args[:requests] if args.key?(:requests)
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Request message for deleting a batch of tasks using BatchDeleteTasks.
|
|
293
|
+
class BatchDeleteTasksRequest
|
|
294
|
+
include Google::Apis::Core::Hashable
|
|
295
|
+
|
|
296
|
+
# Required. The names of the tasks to delete. A maximum of 1000 tasks can be
|
|
297
|
+
# deleted in a batch. For example: Format: `projects/PROJECT_ID/locations/
|
|
298
|
+
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
|
299
|
+
# Corresponds to the JSON property `names`
|
|
300
|
+
# @return [Array<String>]
|
|
301
|
+
attr_accessor :names
|
|
302
|
+
|
|
303
|
+
# Optional. This field will be used to identify the long running operation,
|
|
304
|
+
# avoiding duplication when user retries. If not provided, then a UUID will be
|
|
305
|
+
# generated at server side.
|
|
306
|
+
# Corresponds to the JSON property `requestId`
|
|
307
|
+
# @return [String]
|
|
308
|
+
attr_accessor :request_id
|
|
309
|
+
|
|
310
|
+
def initialize(**args)
|
|
311
|
+
update!(**args)
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Update properties of this object
|
|
315
|
+
def update!(**args)
|
|
316
|
+
@names = args[:names] if args.key?(:names)
|
|
317
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
|
|
261
321
|
# Associates `members`, or principals, with a `role`.
|
|
262
322
|
class Binding
|
|
263
323
|
include Google::Apis::Core::Hashable
|
|
@@ -447,6 +507,12 @@ module Google
|
|
|
447
507
|
class CreateTaskRequest
|
|
448
508
|
include Google::Apis::Core::Hashable
|
|
449
509
|
|
|
510
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
|
511
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
|
512
|
+
# Corresponds to the JSON property `parent`
|
|
513
|
+
# @return [String]
|
|
514
|
+
attr_accessor :parent
|
|
515
|
+
|
|
450
516
|
# The response_view specifies which subset of the Task will be returned. By
|
|
451
517
|
# default response_view is BASIC; not all information is retrieved by default
|
|
452
518
|
# because some data, such as payloads, might be desirable to return only when
|
|
@@ -468,6 +534,7 @@ module Google
|
|
|
468
534
|
|
|
469
535
|
# Update properties of this object
|
|
470
536
|
def update!(**args)
|
|
537
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
471
538
|
@response_view = args[:response_view] if args.key?(:response_view)
|
|
472
539
|
@task = args[:task] if args.key?(:task)
|
|
473
540
|
end
|
|
@@ -774,8 +841,8 @@ module Google
|
|
|
774
841
|
end
|
|
775
842
|
end
|
|
776
843
|
|
|
777
|
-
# HTTP target. When specified
|
|
778
|
-
#
|
|
844
|
+
# HTTP target. When specified at the Queue level, all tasks with HttpRequest are
|
|
845
|
+
# overridden according to the target.
|
|
779
846
|
class HttpTarget
|
|
780
847
|
include Google::Apis::Core::Hashable
|
|
781
848
|
|
|
@@ -1033,6 +1100,68 @@ module Google
|
|
|
1033
1100
|
end
|
|
1034
1101
|
end
|
|
1035
1102
|
|
|
1103
|
+
# This resource represents a long-running operation that is the result of a
|
|
1104
|
+
# network API call.
|
|
1105
|
+
class Operation
|
|
1106
|
+
include Google::Apis::Core::Hashable
|
|
1107
|
+
|
|
1108
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
1109
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
1110
|
+
# Corresponds to the JSON property `done`
|
|
1111
|
+
# @return [Boolean]
|
|
1112
|
+
attr_accessor :done
|
|
1113
|
+
alias_method :done?, :done
|
|
1114
|
+
|
|
1115
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1116
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
1117
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
1118
|
+
# data: error code, error message, and error details. You can find out more
|
|
1119
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
1120
|
+
# //cloud.google.com/apis/design/errors).
|
|
1121
|
+
# Corresponds to the JSON property `error`
|
|
1122
|
+
# @return [Google::Apis::CloudtasksV2::Status]
|
|
1123
|
+
attr_accessor :error
|
|
1124
|
+
|
|
1125
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1126
|
+
# progress information and common metadata such as create time. Some services
|
|
1127
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1128
|
+
# operation should document the metadata type, if any.
|
|
1129
|
+
# Corresponds to the JSON property `metadata`
|
|
1130
|
+
# @return [Hash<String,Object>]
|
|
1131
|
+
attr_accessor :metadata
|
|
1132
|
+
|
|
1133
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1134
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
1135
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
1136
|
+
# Corresponds to the JSON property `name`
|
|
1137
|
+
# @return [String]
|
|
1138
|
+
attr_accessor :name
|
|
1139
|
+
|
|
1140
|
+
# The normal, successful response of the operation. If the original method
|
|
1141
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
1142
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
1143
|
+
# response should be the resource. For other methods, the response should have
|
|
1144
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
1145
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
1146
|
+
# `TakeSnapshotResponse`.
|
|
1147
|
+
# Corresponds to the JSON property `response`
|
|
1148
|
+
# @return [Hash<String,Object>]
|
|
1149
|
+
attr_accessor :response
|
|
1150
|
+
|
|
1151
|
+
def initialize(**args)
|
|
1152
|
+
update!(**args)
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
# Update properties of this object
|
|
1156
|
+
def update!(**args)
|
|
1157
|
+
@done = args[:done] if args.key?(:done)
|
|
1158
|
+
@error = args[:error] if args.key?(:error)
|
|
1159
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1160
|
+
@name = args[:name] if args.key?(:name)
|
|
1161
|
+
@response = args[:response] if args.key?(:response)
|
|
1162
|
+
end
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1036
1165
|
# PathOverride. Path message defines path override for HTTP targets.
|
|
1037
1166
|
class PathOverride
|
|
1038
1167
|
include Google::Apis::Core::Hashable
|
|
@@ -1209,8 +1338,8 @@ module Google
|
|
|
1209
1338
|
# @return [Google::Apis::CloudtasksV2::AppEngineRouting]
|
|
1210
1339
|
attr_accessor :app_engine_routing_override
|
|
1211
1340
|
|
|
1212
|
-
# HTTP target. When specified
|
|
1213
|
-
#
|
|
1341
|
+
# HTTP target. When specified at the Queue level, all tasks with HttpRequest are
|
|
1342
|
+
# overridden according to the target.
|
|
1214
1343
|
# Corresponds to the JSON property `httpTarget`
|
|
1215
1344
|
# @return [Google::Apis::CloudtasksV2::HttpTarget]
|
|
1216
1345
|
attr_accessor :http_target
|
|
@@ -1722,6 +1851,11 @@ module Google
|
|
|
1722
1851
|
# @return [Fixnum]
|
|
1723
1852
|
attr_accessor :response_count
|
|
1724
1853
|
|
|
1854
|
+
# Retry config. These settings determine when a failed task attempt is retried.
|
|
1855
|
+
# Corresponds to the JSON property `retryConfig`
|
|
1856
|
+
# @return [Google::Apis::CloudtasksV2::RetryConfig]
|
|
1857
|
+
attr_accessor :retry_config
|
|
1858
|
+
|
|
1725
1859
|
# The time when the task is scheduled to be attempted or retried. `schedule_time`
|
|
1726
1860
|
# will be truncated to the nearest microsecond.
|
|
1727
1861
|
# Corresponds to the JSON property `scheduleTime`
|
|
@@ -1748,6 +1882,7 @@ module Google
|
|
|
1748
1882
|
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
|
|
1749
1883
|
@name = args[:name] if args.key?(:name)
|
|
1750
1884
|
@response_count = args[:response_count] if args.key?(:response_count)
|
|
1885
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
|
1751
1886
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
1752
1887
|
@view = args[:view] if args.key?(:view)
|
|
1753
1888
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudtasksV2
|
|
18
18
|
# Version of the google-apis-cloudtasks_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.49.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260916"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -40,6 +40,18 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class BatchCreateTasksRequest
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class BatchDeleteTasksRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
43
55
|
class Binding
|
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
57
|
|
|
@@ -160,6 +172,12 @@ module Google
|
|
|
160
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
161
173
|
end
|
|
162
174
|
|
|
175
|
+
class Operation
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
163
181
|
class PathOverride
|
|
164
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
183
|
|
|
@@ -295,6 +313,23 @@ module Google
|
|
|
295
313
|
end
|
|
296
314
|
end
|
|
297
315
|
|
|
316
|
+
class BatchCreateTasksRequest
|
|
317
|
+
# @private
|
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
319
|
+
property :request_id, as: 'requestId'
|
|
320
|
+
collection :requests, as: 'requests', class: Google::Apis::CloudtasksV2::CreateTaskRequest, decorator: Google::Apis::CloudtasksV2::CreateTaskRequest::Representation
|
|
321
|
+
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
class BatchDeleteTasksRequest
|
|
326
|
+
# @private
|
|
327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
328
|
+
collection :names, as: 'names'
|
|
329
|
+
property :request_id, as: 'requestId'
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
298
333
|
class Binding
|
|
299
334
|
# @private
|
|
300
335
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -332,6 +367,7 @@ module Google
|
|
|
332
367
|
class CreateTaskRequest
|
|
333
368
|
# @private
|
|
334
369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
370
|
+
property :parent, as: 'parent'
|
|
335
371
|
property :response_view, as: 'responseView'
|
|
336
372
|
property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
|
|
337
373
|
|
|
@@ -477,6 +513,18 @@ module Google
|
|
|
477
513
|
end
|
|
478
514
|
end
|
|
479
515
|
|
|
516
|
+
class Operation
|
|
517
|
+
# @private
|
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
519
|
+
property :done, as: 'done'
|
|
520
|
+
property :error, as: 'error', class: Google::Apis::CloudtasksV2::Status, decorator: Google::Apis::CloudtasksV2::Status::Representation
|
|
521
|
+
|
|
522
|
+
hash :metadata, as: 'metadata'
|
|
523
|
+
property :name, as: 'name'
|
|
524
|
+
hash :response, as: 'response'
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
|
|
480
528
|
class PathOverride
|
|
481
529
|
# @private
|
|
482
530
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -605,6 +653,8 @@ module Google
|
|
|
605
653
|
|
|
606
654
|
property :name, as: 'name'
|
|
607
655
|
property :response_count, as: 'responseCount'
|
|
656
|
+
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation
|
|
657
|
+
|
|
608
658
|
property :schedule_time, as: 'scheduleTime'
|
|
609
659
|
property :view, as: 'view'
|
|
610
660
|
end
|
|
@@ -210,6 +210,37 @@ module Google
|
|
|
210
210
|
execute_or_queue_command(command, &block)
|
|
211
211
|
end
|
|
212
212
|
|
|
213
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
214
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
215
|
+
# @param [String] name
|
|
216
|
+
# The name of the operation resource.
|
|
217
|
+
# @param [String] fields
|
|
218
|
+
# Selector specifying which fields to include in a partial response.
|
|
219
|
+
# @param [String] quota_user
|
|
220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
222
|
+
# @param [Google::Apis::RequestOptions] options
|
|
223
|
+
# Request-specific options
|
|
224
|
+
#
|
|
225
|
+
# @yield [result, err] Result & error if block supplied
|
|
226
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Operation] parsed result object
|
|
227
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
228
|
+
#
|
|
229
|
+
# @return [Google::Apis::CloudtasksV2::Operation]
|
|
230
|
+
#
|
|
231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
234
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
235
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
236
|
+
command.response_representation = Google::Apis::CloudtasksV2::Operation::Representation
|
|
237
|
+
command.response_class = Google::Apis::CloudtasksV2::Operation
|
|
238
|
+
command.params['name'] = name unless name.nil?
|
|
239
|
+
command.query['fields'] = fields unless fields.nil?
|
|
240
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
241
|
+
execute_or_queue_command(command, &block)
|
|
242
|
+
end
|
|
243
|
+
|
|
213
244
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
|
214
245
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
|
215
246
|
# regardless of whether it was dispatched or not. WARNING: Using this method may
|
|
@@ -659,6 +690,78 @@ module Google
|
|
|
659
690
|
execute_or_queue_command(command, &block)
|
|
660
691
|
end
|
|
661
692
|
|
|
693
|
+
# Creates a batch of tasks and adds them to a queue. All tasks must be for the
|
|
694
|
+
# same queue. A maximum of 100 tasks can be created in a single batch.
|
|
695
|
+
# @param [String] parent
|
|
696
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
|
697
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
|
698
|
+
# @param [Google::Apis::CloudtasksV2::BatchCreateTasksRequest] batch_create_tasks_request_object
|
|
699
|
+
# @param [String] fields
|
|
700
|
+
# Selector specifying which fields to include in a partial response.
|
|
701
|
+
# @param [String] quota_user
|
|
702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
704
|
+
# @param [Google::Apis::RequestOptions] options
|
|
705
|
+
# Request-specific options
|
|
706
|
+
#
|
|
707
|
+
# @yield [result, err] Result & error if block supplied
|
|
708
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Operation] parsed result object
|
|
709
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
710
|
+
#
|
|
711
|
+
# @return [Google::Apis::CloudtasksV2::Operation]
|
|
712
|
+
#
|
|
713
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
714
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
715
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
716
|
+
def batch_create_tasks(parent, batch_create_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
717
|
+
command = make_simple_command(:post, 'v2/{+parent}/tasks:batchCreate', options)
|
|
718
|
+
command.request_representation = Google::Apis::CloudtasksV2::BatchCreateTasksRequest::Representation
|
|
719
|
+
command.request_object = batch_create_tasks_request_object
|
|
720
|
+
command.response_representation = Google::Apis::CloudtasksV2::Operation::Representation
|
|
721
|
+
command.response_class = Google::Apis::CloudtasksV2::Operation
|
|
722
|
+
command.params['parent'] = parent unless parent.nil?
|
|
723
|
+
command.query['fields'] = fields unless fields.nil?
|
|
724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
725
|
+
execute_or_queue_command(command, &block)
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
# Deletes a batch of tasks. This is a non-atomic operation: if deletion fails
|
|
729
|
+
# for some tasks, it can still succeed for others. The metadata field of google.
|
|
730
|
+
# longrunning.Operation contains details of failed deletions. A maximum of 1000
|
|
731
|
+
# tasks can be deleted in a batch.
|
|
732
|
+
# @param [String] parent
|
|
733
|
+
# Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/
|
|
734
|
+
# LOCATION_ID/queues/QUEUE_ID`
|
|
735
|
+
# @param [Google::Apis::CloudtasksV2::BatchDeleteTasksRequest] batch_delete_tasks_request_object
|
|
736
|
+
# @param [String] fields
|
|
737
|
+
# Selector specifying which fields to include in a partial response.
|
|
738
|
+
# @param [String] quota_user
|
|
739
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
740
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
741
|
+
# @param [Google::Apis::RequestOptions] options
|
|
742
|
+
# Request-specific options
|
|
743
|
+
#
|
|
744
|
+
# @yield [result, err] Result & error if block supplied
|
|
745
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Operation] parsed result object
|
|
746
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
747
|
+
#
|
|
748
|
+
# @return [Google::Apis::CloudtasksV2::Operation]
|
|
749
|
+
#
|
|
750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
753
|
+
def batch_delete_tasks(parent, batch_delete_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
754
|
+
command = make_simple_command(:post, 'v2/{+parent}/tasks:batchDelete', options)
|
|
755
|
+
command.request_representation = Google::Apis::CloudtasksV2::BatchDeleteTasksRequest::Representation
|
|
756
|
+
command.request_object = batch_delete_tasks_request_object
|
|
757
|
+
command.response_representation = Google::Apis::CloudtasksV2::Operation::Representation
|
|
758
|
+
command.response_class = Google::Apis::CloudtasksV2::Operation
|
|
759
|
+
command.params['parent'] = parent unless parent.nil?
|
|
760
|
+
command.query['fields'] = fields unless fields.nil?
|
|
761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
762
|
+
execute_or_queue_command(command, &block)
|
|
763
|
+
end
|
|
764
|
+
|
|
662
765
|
# Creates and buffers a new task without the need to explicitly define a Task
|
|
663
766
|
# message. The queue must have HTTP target. To create the task with a custom ID,
|
|
664
767
|
# use the following format and set TASK_ID to your desired ID: projects/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudtasks_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.49.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.49.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|