google-apis-cloudtasks_v2 0.48.0 → 0.50.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: 671cd4c4210f46ba33cf26fc045bbe6375cc23531d930582abaf5c302c20189f
|
|
4
|
+
data.tar.gz: c8309ed2d4abedfdbed903dcbb66c99913a841bee5987e34e2b174f9da8c0f40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5a7d39c32f60378fcb7553c06ca218cf99215e1903be3c12f2836353bbbcf98ff162bc108bc64c64f1f8389703c4aba981b872282afb511cdd111d4b247ac00
|
|
7
|
+
data.tar.gz: 6948005250fc7d5b35458be431b51dc536071c27b1e0162a7a4aacc35be8bd45407a6593fc2eb3bd87ba33b59027e0fbd90d9b1d5fc5922255dbc2bee3801abd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2
|
|
2
2
|
|
|
3
|
+
### v0.50.0 (2026-10-21)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20261005
|
|
6
|
+
* Regenerated using generator version 0.19.1
|
|
7
|
+
|
|
8
|
+
### v0.49.0 (2026-09-27)
|
|
9
|
+
|
|
10
|
+
* Regenerated from discovery document revision 20260916
|
|
11
|
+
|
|
3
12
|
### v0.48.0 (2026-09-06)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260831
|
|
@@ -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
|
|
@@ -426,7 +486,7 @@ module Google
|
|
|
426
486
|
attr_accessor :kms_key
|
|
427
487
|
|
|
428
488
|
# Output only. The config resource name which includes the project and location
|
|
429
|
-
# and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
|
|
489
|
+
# and must end in 'cmekConfig', in the format `projects/PROJECT_ID/locations/
|
|
430
490
|
# LOCATION_ID/cmekConfig`
|
|
431
491
|
# Corresponds to the JSON property `name`
|
|
432
492
|
# @return [String]
|
|
@@ -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
|
|
@@ -788,11 +855,11 @@ module Google
|
|
|
788
855
|
# properties of the task. * Host: This will be computed by Cloud Tasks and
|
|
789
856
|
# derived from HttpRequest.url. * Content-Length: This will be computed by Cloud
|
|
790
857
|
# Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `
|
|
791
|
-
# Content-Type` to a media type when the task is created. For example
|
|
858
|
+
# Content-Type` to a media type when the task is created. For example, `Content-
|
|
792
859
|
# Type` can be set to `"application/octet-stream"` or `"application/json"`. The
|
|
793
|
-
# default value is set to "application/json"`. * User-Agent: This will be set
|
|
794
|
-
# `"Google-Cloud-Tasks"`. Headers which can have multiple values (according
|
|
795
|
-
# RFC2616) can be specified using comma-separated values. The size of the
|
|
860
|
+
# default value is set to `"application/json"`. * User-Agent: This will be set
|
|
861
|
+
# to `"Google-Cloud-Tasks"`. Headers which can have multiple values (according
|
|
862
|
+
# to RFC2616) can be specified using comma-separated values. The size of the
|
|
796
863
|
# headers must be less than 80KB. Queue-level headers to override headers of all
|
|
797
864
|
# the tasks in the queue. Do not put business sensitive or personally
|
|
798
865
|
# identifying data in the HTTP Header Override Configuration or other similar
|
|
@@ -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.50.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.19.
|
|
22
|
+
GENERATOR_VERSION = "0.19.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20261005"
|
|
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
|
|
@@ -82,10 +82,10 @@ module Google
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
# Gets the CMEK config. Gets the Customer Managed Encryption Key configured with
|
|
85
|
-
# the Cloud Tasks
|
|
85
|
+
# the Cloud Tasks location. By default there is no `kms_key` configured.
|
|
86
86
|
# @param [String] name
|
|
87
|
-
# Required. The config. For example: projects/PROJECT_ID/locations/LOCATION_ID/
|
|
88
|
-
#
|
|
87
|
+
# Required. The config. For example: `projects/PROJECT_ID/locations/LOCATION_ID/
|
|
88
|
+
# cmekConfig`
|
|
89
89
|
# @param [String] fields
|
|
90
90
|
# Selector specifying which fields to include in a partial response.
|
|
91
91
|
# @param [String] quota_user
|
|
@@ -175,7 +175,7 @@ module Google
|
|
|
175
175
|
# the KMS-key provided in the config.
|
|
176
176
|
# @param [String] name
|
|
177
177
|
# Output only. The config resource name which includes the project and location
|
|
178
|
-
# and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
|
|
178
|
+
# and must end in 'cmekConfig', in the format `projects/PROJECT_ID/locations/
|
|
179
179
|
# LOCATION_ID/cmekConfig`
|
|
180
180
|
# @param [Google::Apis::CloudtasksV2::CmekConfig] cmek_config_object
|
|
181
181
|
# @param [String] update_mask
|
|
@@ -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.50.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.50.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:
|