google-apis-cloudtasks_v2 0.48.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
|
@@ -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
|
|
@@ -1784,6 +1851,11 @@ module Google
|
|
|
1784
1851
|
# @return [Fixnum]
|
|
1785
1852
|
attr_accessor :response_count
|
|
1786
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
|
+
|
|
1787
1859
|
# The time when the task is scheduled to be attempted or retried. `schedule_time`
|
|
1788
1860
|
# will be truncated to the nearest microsecond.
|
|
1789
1861
|
# Corresponds to the JSON property `scheduleTime`
|
|
@@ -1810,6 +1882,7 @@ module Google
|
|
|
1810
1882
|
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
|
|
1811
1883
|
@name = args[:name] if args.key?(:name)
|
|
1812
1884
|
@response_count = args[:response_count] if args.key?(:response_count)
|
|
1885
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
|
1813
1886
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
1814
1887
|
@view = args[:view] if args.key?(:view)
|
|
1815
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
|
|
|
@@ -301,6 +313,23 @@ module Google
|
|
|
301
313
|
end
|
|
302
314
|
end
|
|
303
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
|
+
|
|
304
333
|
class Binding
|
|
305
334
|
# @private
|
|
306
335
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -338,6 +367,7 @@ module Google
|
|
|
338
367
|
class CreateTaskRequest
|
|
339
368
|
# @private
|
|
340
369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
370
|
+
property :parent, as: 'parent'
|
|
341
371
|
property :response_view, as: 'responseView'
|
|
342
372
|
property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
|
|
343
373
|
|
|
@@ -623,6 +653,8 @@ module Google
|
|
|
623
653
|
|
|
624
654
|
property :name, as: 'name'
|
|
625
655
|
property :response_count, as: 'responseCount'
|
|
656
|
+
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation
|
|
657
|
+
|
|
626
658
|
property :schedule_time, as: 'scheduleTime'
|
|
627
659
|
property :view, as: 'view'
|
|
628
660
|
end
|
|
@@ -690,6 +690,78 @@ module Google
|
|
|
690
690
|
execute_or_queue_command(command, &block)
|
|
691
691
|
end
|
|
692
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
|
+
|
|
693
765
|
# Creates and buffers a new task without the need to explicitly define a Task
|
|
694
766
|
# message. The queue must have HTTP target. To create the task with a custom ID,
|
|
695
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:
|