google-apis-cloudtasks_v2beta2 0.54.0 → 0.55.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/cloudtasks_v2beta2/classes.rb +135 -0
- data/lib/google/apis/cloudtasks_v2beta2/gem_version.rb +2 -2
- data/lib/google/apis/cloudtasks_v2beta2/representations.rb +50 -0
- data/lib/google/apis/cloudtasks_v2beta2/service.rb +104 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55bbcb81d758dc6cd3aea32e824511d2ec45517bec59115825a13808e1ea5b78
|
|
4
|
+
data.tar.gz: 27604e08bdd88232739b8b7d0e2606a1fc12212b43c571132e0c9bb5d3b9e335
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bb5abdd2b936393a009946672d86a58665d6537360fae8e6b0409e8144cef14e00a374619fe7e7125f88fd6a9c5bd6ea0e34790c192f2a20b22ee10d1d46b65
|
|
7
|
+
data.tar.gz: fca5c768b77cdfd0170b55276c13bb2964b377478d19bc49e09c1793303d634c934e888c2f01c0b9ed92706b48c115d4ab0b0caa381fe169a21565930e3efe38
|
data/CHANGELOG.md
CHANGED
|
@@ -326,6 +326,66 @@ module Google
|
|
|
326
326
|
end
|
|
327
327
|
end
|
|
328
328
|
|
|
329
|
+
# Request message for [BatchCreateTasks].
|
|
330
|
+
class BatchCreateTasksRequest
|
|
331
|
+
include Google::Apis::Core::Hashable
|
|
332
|
+
|
|
333
|
+
# Optional. This field will be used to identify the long running operation,
|
|
334
|
+
# avoiding duplication when user retries. If not provided, then a UUID will be
|
|
335
|
+
# generated at server side.
|
|
336
|
+
# Corresponds to the JSON property `requestId`
|
|
337
|
+
# @return [String]
|
|
338
|
+
attr_accessor :request_id
|
|
339
|
+
|
|
340
|
+
# Required. The list of requests to create tasks. The queue specified in parent
|
|
341
|
+
# field of each CreateTaskRequest will be the same. This validation happens on
|
|
342
|
+
# the client side as well as in the handler. BatchCreateTasksRequest.parent will
|
|
343
|
+
# also be the same value as the individual CreateTaskRequest.parent . The
|
|
344
|
+
# maximum number of requests is 100.
|
|
345
|
+
# Corresponds to the JSON property `requests`
|
|
346
|
+
# @return [Array<Google::Apis::CloudtasksV2beta2::CreateTaskRequest>]
|
|
347
|
+
attr_accessor :requests
|
|
348
|
+
|
|
349
|
+
def initialize(**args)
|
|
350
|
+
update!(**args)
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Update properties of this object
|
|
354
|
+
def update!(**args)
|
|
355
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
356
|
+
@requests = args[:requests] if args.key?(:requests)
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Request message for deleting a batch of tasks using BatchDeleteTasks.
|
|
361
|
+
class BatchDeleteTasksRequest
|
|
362
|
+
include Google::Apis::Core::Hashable
|
|
363
|
+
|
|
364
|
+
# Required. The names of the tasks to delete. A maximum of 1000 tasks can be
|
|
365
|
+
# deleted in a batch. For example: Format: `projects/PROJECT_ID/locations/
|
|
366
|
+
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
|
367
|
+
# Corresponds to the JSON property `names`
|
|
368
|
+
# @return [Array<String>]
|
|
369
|
+
attr_accessor :names
|
|
370
|
+
|
|
371
|
+
# Optional. This field will be used to identify the long running operation,
|
|
372
|
+
# avoiding duplication when user retries. If not provided, then a UUID will be
|
|
373
|
+
# generated at server side.
|
|
374
|
+
# Corresponds to the JSON property `requestId`
|
|
375
|
+
# @return [String]
|
|
376
|
+
attr_accessor :request_id
|
|
377
|
+
|
|
378
|
+
def initialize(**args)
|
|
379
|
+
update!(**args)
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Update properties of this object
|
|
383
|
+
def update!(**args)
|
|
384
|
+
@names = args[:names] if args.key?(:names)
|
|
385
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
329
389
|
# Associates `members`, or principals, with a `role`.
|
|
330
390
|
class Binding
|
|
331
391
|
include Google::Apis::Core::Hashable
|
|
@@ -547,6 +607,12 @@ module Google
|
|
|
547
607
|
class CreateTaskRequest
|
|
548
608
|
include Google::Apis::Core::Hashable
|
|
549
609
|
|
|
610
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
|
611
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
|
612
|
+
# Corresponds to the JSON property `parent`
|
|
613
|
+
# @return [String]
|
|
614
|
+
attr_accessor :parent
|
|
615
|
+
|
|
550
616
|
# The response_view specifies which subset of the Task will be returned. By
|
|
551
617
|
# default response_view is BASIC; not all information is retrieved by default
|
|
552
618
|
# because some data, such as payloads, might be desirable to return only when
|
|
@@ -568,6 +634,7 @@ module Google
|
|
|
568
634
|
|
|
569
635
|
# Update properties of this object
|
|
570
636
|
def update!(**args)
|
|
637
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
571
638
|
@response_view = args[:response_view] if args.key?(:response_view)
|
|
572
639
|
@task = args[:task] if args.key?(:task)
|
|
573
640
|
end
|
|
@@ -1207,6 +1274,68 @@ module Google
|
|
|
1207
1274
|
end
|
|
1208
1275
|
end
|
|
1209
1276
|
|
|
1277
|
+
# This resource represents a long-running operation that is the result of a
|
|
1278
|
+
# network API call.
|
|
1279
|
+
class Operation
|
|
1280
|
+
include Google::Apis::Core::Hashable
|
|
1281
|
+
|
|
1282
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
1283
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
1284
|
+
# Corresponds to the JSON property `done`
|
|
1285
|
+
# @return [Boolean]
|
|
1286
|
+
attr_accessor :done
|
|
1287
|
+
alias_method :done?, :done
|
|
1288
|
+
|
|
1289
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1290
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
1291
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
1292
|
+
# data: error code, error message, and error details. You can find out more
|
|
1293
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
1294
|
+
# //cloud.google.com/apis/design/errors).
|
|
1295
|
+
# Corresponds to the JSON property `error`
|
|
1296
|
+
# @return [Google::Apis::CloudtasksV2beta2::Status]
|
|
1297
|
+
attr_accessor :error
|
|
1298
|
+
|
|
1299
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1300
|
+
# progress information and common metadata such as create time. Some services
|
|
1301
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1302
|
+
# operation should document the metadata type, if any.
|
|
1303
|
+
# Corresponds to the JSON property `metadata`
|
|
1304
|
+
# @return [Hash<String,Object>]
|
|
1305
|
+
attr_accessor :metadata
|
|
1306
|
+
|
|
1307
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1308
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
1309
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
1310
|
+
# Corresponds to the JSON property `name`
|
|
1311
|
+
# @return [String]
|
|
1312
|
+
attr_accessor :name
|
|
1313
|
+
|
|
1314
|
+
# The normal, successful response of the operation. If the original method
|
|
1315
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
1316
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
1317
|
+
# response should be the resource. For other methods, the response should have
|
|
1318
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
1319
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
1320
|
+
# `TakeSnapshotResponse`.
|
|
1321
|
+
# Corresponds to the JSON property `response`
|
|
1322
|
+
# @return [Hash<String,Object>]
|
|
1323
|
+
attr_accessor :response
|
|
1324
|
+
|
|
1325
|
+
def initialize(**args)
|
|
1326
|
+
update!(**args)
|
|
1327
|
+
end
|
|
1328
|
+
|
|
1329
|
+
# Update properties of this object
|
|
1330
|
+
def update!(**args)
|
|
1331
|
+
@done = args[:done] if args.key?(:done)
|
|
1332
|
+
@error = args[:error] if args.key?(:error)
|
|
1333
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1334
|
+
@name = args[:name] if args.key?(:name)
|
|
1335
|
+
@response = args[:response] if args.key?(:response)
|
|
1336
|
+
end
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1210
1339
|
# PathOverride. Path message defines path override for HTTP targets.
|
|
1211
1340
|
class PathOverride
|
|
1212
1341
|
include Google::Apis::Core::Hashable
|
|
@@ -1973,6 +2102,11 @@ module Google
|
|
|
1973
2102
|
# @return [Google::Apis::CloudtasksV2beta2::PullMessage]
|
|
1974
2103
|
attr_accessor :pull_message
|
|
1975
2104
|
|
|
2105
|
+
# Retry config. These settings determine how a failed task attempt is retried.
|
|
2106
|
+
# Corresponds to the JSON property `retryConfig`
|
|
2107
|
+
# @return [Google::Apis::CloudtasksV2beta2::RetryConfig]
|
|
2108
|
+
attr_accessor :retry_config
|
|
2109
|
+
|
|
1976
2110
|
# The time when the task is scheduled to be attempted. For App Engine queues,
|
|
1977
2111
|
# this is when the task will be attempted or retried. For pull queues, this is
|
|
1978
2112
|
# the time when the task is available to be leased; if a task is currently
|
|
@@ -2004,6 +2138,7 @@ module Google
|
|
|
2004
2138
|
@http_request = args[:http_request] if args.key?(:http_request)
|
|
2005
2139
|
@name = args[:name] if args.key?(:name)
|
|
2006
2140
|
@pull_message = args[:pull_message] if args.key?(:pull_message)
|
|
2141
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
|
2007
2142
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
2008
2143
|
@status = args[:status] if args.key?(:status)
|
|
2009
2144
|
@view = args[:view] if args.key?(:view)
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudtasksV2beta2
|
|
18
18
|
# Version of the google-apis-cloudtasks_v2beta2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.55.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 = "20260714"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -52,6 +52,18 @@ module Google
|
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
class BatchCreateTasksRequest
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class BatchDeleteTasksRequest
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
55
67
|
class Binding
|
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
69
|
|
|
@@ -190,6 +202,12 @@ module Google
|
|
|
190
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
191
203
|
end
|
|
192
204
|
|
|
205
|
+
class Operation
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
193
211
|
class PathOverride
|
|
194
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
213
|
|
|
@@ -364,6 +382,23 @@ module Google
|
|
|
364
382
|
end
|
|
365
383
|
end
|
|
366
384
|
|
|
385
|
+
class BatchCreateTasksRequest
|
|
386
|
+
# @private
|
|
387
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
388
|
+
property :request_id, as: 'requestId'
|
|
389
|
+
collection :requests, as: 'requests', class: Google::Apis::CloudtasksV2beta2::CreateTaskRequest, decorator: Google::Apis::CloudtasksV2beta2::CreateTaskRequest::Representation
|
|
390
|
+
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
class BatchDeleteTasksRequest
|
|
395
|
+
# @private
|
|
396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
397
|
+
collection :names, as: 'names'
|
|
398
|
+
property :request_id, as: 'requestId'
|
|
399
|
+
end
|
|
400
|
+
end
|
|
401
|
+
|
|
367
402
|
class Binding
|
|
368
403
|
# @private
|
|
369
404
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -409,6 +444,7 @@ module Google
|
|
|
409
444
|
class CreateTaskRequest
|
|
410
445
|
# @private
|
|
411
446
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
447
|
+
property :parent, as: 'parent'
|
|
412
448
|
property :response_view, as: 'responseView'
|
|
413
449
|
property :task, as: 'task', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
|
|
414
450
|
|
|
@@ -572,6 +608,18 @@ module Google
|
|
|
572
608
|
end
|
|
573
609
|
end
|
|
574
610
|
|
|
611
|
+
class Operation
|
|
612
|
+
# @private
|
|
613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
614
|
+
property :done, as: 'done'
|
|
615
|
+
property :error, as: 'error', class: Google::Apis::CloudtasksV2beta2::Status, decorator: Google::Apis::CloudtasksV2beta2::Status::Representation
|
|
616
|
+
|
|
617
|
+
hash :metadata, as: 'metadata'
|
|
618
|
+
property :name, as: 'name'
|
|
619
|
+
hash :response, as: 'response'
|
|
620
|
+
end
|
|
621
|
+
end
|
|
622
|
+
|
|
575
623
|
class PathOverride
|
|
576
624
|
# @private
|
|
577
625
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -727,6 +775,8 @@ module Google
|
|
|
727
775
|
property :name, as: 'name'
|
|
728
776
|
property :pull_message, as: 'pullMessage', class: Google::Apis::CloudtasksV2beta2::PullMessage, decorator: Google::Apis::CloudtasksV2beta2::PullMessage::Representation
|
|
729
777
|
|
|
778
|
+
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
|
|
779
|
+
|
|
730
780
|
property :schedule_time, as: 'scheduleTime'
|
|
731
781
|
property :status, as: 'status', class: Google::Apis::CloudtasksV2beta2::TaskStatus, decorator: Google::Apis::CloudtasksV2beta2::TaskStatus::Representation
|
|
732
782
|
|
|
@@ -248,6 +248,37 @@ module Google
|
|
|
248
248
|
execute_or_queue_command(command, &block)
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
252
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
253
|
+
# @param [String] name
|
|
254
|
+
# The name of the operation resource.
|
|
255
|
+
# @param [String] fields
|
|
256
|
+
# Selector specifying which fields to include in a partial response.
|
|
257
|
+
# @param [String] quota_user
|
|
258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
260
|
+
# @param [Google::Apis::RequestOptions] options
|
|
261
|
+
# Request-specific options
|
|
262
|
+
#
|
|
263
|
+
# @yield [result, err] Result & error if block supplied
|
|
264
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::Operation] parsed result object
|
|
265
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
266
|
+
#
|
|
267
|
+
# @return [Google::Apis::CloudtasksV2beta2::Operation]
|
|
268
|
+
#
|
|
269
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
270
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
271
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
272
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
273
|
+
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
|
274
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::Operation::Representation
|
|
275
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::Operation
|
|
276
|
+
command.params['name'] = name unless name.nil?
|
|
277
|
+
command.query['fields'] = fields unless fields.nil?
|
|
278
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
279
|
+
execute_or_queue_command(command, &block)
|
|
280
|
+
end
|
|
281
|
+
|
|
251
282
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
|
252
283
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
|
253
284
|
# regardless of whether it was dispatched or not. WARNING: Using this method may
|
|
@@ -748,6 +779,79 @@ module Google
|
|
|
748
779
|
execute_or_queue_command(command, &block)
|
|
749
780
|
end
|
|
750
781
|
|
|
782
|
+
# Creates a batch of tasks and adds them to a queue. This call is not atomic.
|
|
783
|
+
# All tasks must be for the same queue. A maximum of 100 tasks can be created in
|
|
784
|
+
# a single batch.
|
|
785
|
+
# @param [String] parent
|
|
786
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
|
787
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
|
788
|
+
# @param [Google::Apis::CloudtasksV2beta2::BatchCreateTasksRequest] batch_create_tasks_request_object
|
|
789
|
+
# @param [String] fields
|
|
790
|
+
# Selector specifying which fields to include in a partial response.
|
|
791
|
+
# @param [String] quota_user
|
|
792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
794
|
+
# @param [Google::Apis::RequestOptions] options
|
|
795
|
+
# Request-specific options
|
|
796
|
+
#
|
|
797
|
+
# @yield [result, err] Result & error if block supplied
|
|
798
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::Operation] parsed result object
|
|
799
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
800
|
+
#
|
|
801
|
+
# @return [Google::Apis::CloudtasksV2beta2::Operation]
|
|
802
|
+
#
|
|
803
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
804
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
805
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
806
|
+
def batch_create_tasks(parent, batch_create_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
807
|
+
command = make_simple_command(:post, 'v2beta2/{+parent}/tasks:batchCreate', options)
|
|
808
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::BatchCreateTasksRequest::Representation
|
|
809
|
+
command.request_object = batch_create_tasks_request_object
|
|
810
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::Operation::Representation
|
|
811
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::Operation
|
|
812
|
+
command.params['parent'] = parent unless parent.nil?
|
|
813
|
+
command.query['fields'] = fields unless fields.nil?
|
|
814
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
815
|
+
execute_or_queue_command(command, &block)
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
# Deletes a batch of tasks. This is a non-atomic operation: if deletion fails
|
|
819
|
+
# for some tasks, it can still succeed for others. The metadata field of google.
|
|
820
|
+
# longrunning.Operation contains details of failed deletions. A maximum of 1000
|
|
821
|
+
# tasks can be deleted in a batch.
|
|
822
|
+
# @param [String] parent
|
|
823
|
+
# Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/
|
|
824
|
+
# LOCATION_ID/queues/QUEUE_ID`
|
|
825
|
+
# @param [Google::Apis::CloudtasksV2beta2::BatchDeleteTasksRequest] batch_delete_tasks_request_object
|
|
826
|
+
# @param [String] fields
|
|
827
|
+
# Selector specifying which fields to include in a partial response.
|
|
828
|
+
# @param [String] quota_user
|
|
829
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
830
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
831
|
+
# @param [Google::Apis::RequestOptions] options
|
|
832
|
+
# Request-specific options
|
|
833
|
+
#
|
|
834
|
+
# @yield [result, err] Result & error if block supplied
|
|
835
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::Operation] parsed result object
|
|
836
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
837
|
+
#
|
|
838
|
+
# @return [Google::Apis::CloudtasksV2beta2::Operation]
|
|
839
|
+
#
|
|
840
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
841
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
842
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
843
|
+
def batch_delete_tasks(parent, batch_delete_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
844
|
+
command = make_simple_command(:post, 'v2beta2/{+parent}/tasks:batchDelete', options)
|
|
845
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::BatchDeleteTasksRequest::Representation
|
|
846
|
+
command.request_object = batch_delete_tasks_request_object
|
|
847
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::Operation::Representation
|
|
848
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::Operation
|
|
849
|
+
command.params['parent'] = parent unless parent.nil?
|
|
850
|
+
command.query['fields'] = fields unless fields.nil?
|
|
851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
852
|
+
execute_or_queue_command(command, &block)
|
|
853
|
+
end
|
|
854
|
+
|
|
751
855
|
# Creates and buffers a new task without the need to explicitly define a Task
|
|
752
856
|
# message. The queue must have HTTP target. To create the task with a custom ID,
|
|
753
857
|
# 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_v2beta2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.55.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_v2beta2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.55.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|