google-apis-cloudtasks_v2beta3 0.51.0 → 0.53.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 +9 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/cloudtasks_v2beta3/classes.rb +162 -24
- data/lib/google/apis/cloudtasks_v2beta3/gem_version.rb +3 -3
- data/lib/google/apis/cloudtasks_v2beta3/representations.rb +50 -0
- data/lib/google/apis/cloudtasks_v2beta3/service.rb +104 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87e7d60eb0711c0726fda6948bf95e28ea9ba9646c7d5c4ebfeb08adf3f048b4
|
|
4
|
+
data.tar.gz: b55bfa2fd5cc153c48eebff466e0545b26eb5a17a669f2ce767f3193998c4b19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2220633219c4bcd68584de285053690e595de28728a4def1cab3726c927bf6db422b2c871800e921a6648feb73613e0ae185cf217df0840d5474a3117e92de78
|
|
7
|
+
data.tar.gz: 94c47112e410df96c80c78fcf9f38c30fd3dea38427b9562ed27f80e2a110f5ddfdfffe65aca4586f4f420bd7527b2a4d597bac3d2668fba04d2e647c1d3b419
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta3
|
|
2
2
|
|
|
3
|
+
### v0.53.0 (2026-07-26)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260714
|
|
6
|
+
|
|
7
|
+
### v0.52.0 (2026-06-14)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260512
|
|
10
|
+
* Regenerated using generator version 0.19.0
|
|
11
|
+
|
|
3
12
|
### v0.51.0 (2026-05-10)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260423
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/tasks/) may provide guidanc
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -285,6 +285,66 @@ module Google
|
|
|
285
285
|
end
|
|
286
286
|
end
|
|
287
287
|
|
|
288
|
+
# Request message for [BatchCreateTasks].
|
|
289
|
+
class BatchCreateTasksRequest
|
|
290
|
+
include Google::Apis::Core::Hashable
|
|
291
|
+
|
|
292
|
+
# Optional. This field will be used to identify the long running operation,
|
|
293
|
+
# avoiding duplication when user retries. If not provided, then a UUID will be
|
|
294
|
+
# generated at server side.
|
|
295
|
+
# Corresponds to the JSON property `requestId`
|
|
296
|
+
# @return [String]
|
|
297
|
+
attr_accessor :request_id
|
|
298
|
+
|
|
299
|
+
# Required. The list of requests to create tasks. The queue specified in parent
|
|
300
|
+
# field of each CreateTaskRequest will be the same. This validation happens on
|
|
301
|
+
# the client side as well as in the handler. BatchCreateTasksRequest.parent will
|
|
302
|
+
# also be the same value as the individual CreateTaskRequest.parent . The
|
|
303
|
+
# maximum number of requests is 100.
|
|
304
|
+
# Corresponds to the JSON property `requests`
|
|
305
|
+
# @return [Array<Google::Apis::CloudtasksV2beta3::CreateTaskRequest>]
|
|
306
|
+
attr_accessor :requests
|
|
307
|
+
|
|
308
|
+
def initialize(**args)
|
|
309
|
+
update!(**args)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Update properties of this object
|
|
313
|
+
def update!(**args)
|
|
314
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
315
|
+
@requests = args[:requests] if args.key?(:requests)
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Request message for deleting a batch of tasks using BatchDeleteTasks.
|
|
320
|
+
class BatchDeleteTasksRequest
|
|
321
|
+
include Google::Apis::Core::Hashable
|
|
322
|
+
|
|
323
|
+
# Required. The names of the tasks to delete. A maximum of 1000 tasks can be
|
|
324
|
+
# deleted in a batch. For example: Format: `projects/PROJECT_ID/locations/
|
|
325
|
+
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
|
326
|
+
# Corresponds to the JSON property `names`
|
|
327
|
+
# @return [Array<String>]
|
|
328
|
+
attr_accessor :names
|
|
329
|
+
|
|
330
|
+
# Optional. This field will be used to identify the long running operation,
|
|
331
|
+
# avoiding duplication when user retries. If not provided, then a UUID will be
|
|
332
|
+
# generated at server side.
|
|
333
|
+
# Corresponds to the JSON property `requestId`
|
|
334
|
+
# @return [String]
|
|
335
|
+
attr_accessor :request_id
|
|
336
|
+
|
|
337
|
+
def initialize(**args)
|
|
338
|
+
update!(**args)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Update properties of this object
|
|
342
|
+
def update!(**args)
|
|
343
|
+
@names = args[:names] if args.key?(:names)
|
|
344
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
288
348
|
# Associates `members`, or principals, with a `role`.
|
|
289
349
|
class Binding
|
|
290
350
|
include Google::Apis::Core::Hashable
|
|
@@ -474,6 +534,12 @@ module Google
|
|
|
474
534
|
class CreateTaskRequest
|
|
475
535
|
include Google::Apis::Core::Hashable
|
|
476
536
|
|
|
537
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
|
538
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
|
539
|
+
# Corresponds to the JSON property `parent`
|
|
540
|
+
# @return [String]
|
|
541
|
+
attr_accessor :parent
|
|
542
|
+
|
|
477
543
|
# The response_view specifies which subset of the Task will be returned. By
|
|
478
544
|
# default response_view is BASIC; not all information is retrieved by default
|
|
479
545
|
# because some data, such as payloads, might be desirable to return only when
|
|
@@ -495,6 +561,7 @@ module Google
|
|
|
495
561
|
|
|
496
562
|
# Update properties of this object
|
|
497
563
|
def update!(**args)
|
|
564
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
498
565
|
@response_view = args[:response_view] if args.key?(:response_view)
|
|
499
566
|
@task = args[:task] if args.key?(:task)
|
|
500
567
|
end
|
|
@@ -1063,6 +1130,68 @@ module Google
|
|
|
1063
1130
|
end
|
|
1064
1131
|
end
|
|
1065
1132
|
|
|
1133
|
+
# This resource represents a long-running operation that is the result of a
|
|
1134
|
+
# network API call.
|
|
1135
|
+
class Operation
|
|
1136
|
+
include Google::Apis::Core::Hashable
|
|
1137
|
+
|
|
1138
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
1139
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
1140
|
+
# Corresponds to the JSON property `done`
|
|
1141
|
+
# @return [Boolean]
|
|
1142
|
+
attr_accessor :done
|
|
1143
|
+
alias_method :done?, :done
|
|
1144
|
+
|
|
1145
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1146
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
1147
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
1148
|
+
# data: error code, error message, and error details. You can find out more
|
|
1149
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
1150
|
+
# //cloud.google.com/apis/design/errors).
|
|
1151
|
+
# Corresponds to the JSON property `error`
|
|
1152
|
+
# @return [Google::Apis::CloudtasksV2beta3::Status]
|
|
1153
|
+
attr_accessor :error
|
|
1154
|
+
|
|
1155
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1156
|
+
# progress information and common metadata such as create time. Some services
|
|
1157
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1158
|
+
# operation should document the metadata type, if any.
|
|
1159
|
+
# Corresponds to the JSON property `metadata`
|
|
1160
|
+
# @return [Hash<String,Object>]
|
|
1161
|
+
attr_accessor :metadata
|
|
1162
|
+
|
|
1163
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1164
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
1165
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
1166
|
+
# Corresponds to the JSON property `name`
|
|
1167
|
+
# @return [String]
|
|
1168
|
+
attr_accessor :name
|
|
1169
|
+
|
|
1170
|
+
# The normal, successful response of the operation. If the original method
|
|
1171
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
1172
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
1173
|
+
# response should be the resource. For other methods, the response should have
|
|
1174
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
1175
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
1176
|
+
# `TakeSnapshotResponse`.
|
|
1177
|
+
# Corresponds to the JSON property `response`
|
|
1178
|
+
# @return [Hash<String,Object>]
|
|
1179
|
+
attr_accessor :response
|
|
1180
|
+
|
|
1181
|
+
def initialize(**args)
|
|
1182
|
+
update!(**args)
|
|
1183
|
+
end
|
|
1184
|
+
|
|
1185
|
+
# Update properties of this object
|
|
1186
|
+
def update!(**args)
|
|
1187
|
+
@done = args[:done] if args.key?(:done)
|
|
1188
|
+
@error = args[:error] if args.key?(:error)
|
|
1189
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1190
|
+
@name = args[:name] if args.key?(:name)
|
|
1191
|
+
@response = args[:response] if args.key?(:response)
|
|
1192
|
+
end
|
|
1193
|
+
end
|
|
1194
|
+
|
|
1066
1195
|
# PathOverride. Path message defines path override for HTTP targets.
|
|
1067
1196
|
class PathOverride
|
|
1068
1197
|
include Google::Apis::Core::Hashable
|
|
@@ -1483,7 +1612,7 @@ module Google
|
|
|
1483
1612
|
attr_accessor :max_concurrent_dispatches
|
|
1484
1613
|
|
|
1485
1614
|
# The maximum rate at which tasks are dispatched from this queue. If unspecified
|
|
1486
|
-
# when the queue is created, Cloud Tasks will pick the default.
|
|
1615
|
+
# when the queue is created, Cloud Tasks will pick the default. For App Engine
|
|
1487
1616
|
# queues, the maximum allowed value is 500. This field has the same meaning as [
|
|
1488
1617
|
# rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/
|
|
1489
1618
|
# python/config/queueref#rate).
|
|
@@ -1520,29 +1649,31 @@ module Google
|
|
|
1520
1649
|
class RetryConfig
|
|
1521
1650
|
include Google::Apis::Core::Hashable
|
|
1522
1651
|
|
|
1523
|
-
# Number of attempts per task
|
|
1524
|
-
#
|
|
1525
|
-
#
|
|
1526
|
-
#
|
|
1527
|
-
# the
|
|
1528
|
-
#
|
|
1529
|
-
#
|
|
1530
|
-
#
|
|
1531
|
-
#
|
|
1532
|
-
#
|
|
1533
|
-
#
|
|
1652
|
+
# Number of attempts per task, including the first attempt. (If the first
|
|
1653
|
+
# attempt fails, there will be `max_attempts - 1` retries.) Must be greater than
|
|
1654
|
+
# or equal to -1, which indicates unlimited attempts. Cloud Tasks stops retrying
|
|
1655
|
+
# only when `max_attempts` and `max_retry_duration` are both satisfied, or when
|
|
1656
|
+
# the task is successfully executed. When the task has been attempted `
|
|
1657
|
+
# max_attempts` times and when the `max_retry_duration` time has passed, no
|
|
1658
|
+
# further attempts are made, and the task is deleted. If `max_attempts` is set
|
|
1659
|
+
# to -1 and `max_retry_duration` is set to 0, the task is retried until the [
|
|
1660
|
+
# maximum task retention](https://docs.cloud.google.com/tasks/docs/quotas#limits)
|
|
1661
|
+
# limit is reached. If unspecified when the queue is created, Cloud Tasks will
|
|
1662
|
+
# pick the default. This field has the same meaning as [task_retry_limit in
|
|
1663
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
1664
|
+
# queueref#retry_parameters).
|
|
1534
1665
|
# Corresponds to the JSON property `maxAttempts`
|
|
1535
1666
|
# @return [Fixnum]
|
|
1536
1667
|
attr_accessor :max_attempts
|
|
1537
1668
|
|
|
1538
1669
|
# A task will be scheduled for retry between min_backoff and max_backoff
|
|
1539
1670
|
# duration after it fails, if the queue's RetryConfig specifies that the task
|
|
1540
|
-
# should be retried.
|
|
1541
|
-
# pick the default. The value must be given as a string that indicates the
|
|
1671
|
+
# should be retried. The value must be given as a string that indicates the
|
|
1542
1672
|
# length of time (in seconds) followed by `s` (for "seconds"). For more
|
|
1543
1673
|
# information on the format, see the documentation for [Duration](https://
|
|
1544
1674
|
# protobuf.dev/reference/protobuf/google.protobuf/#duration). `max_backoff` will
|
|
1545
|
-
# be truncated to the nearest second.
|
|
1675
|
+
# be truncated to the nearest second. If unspecified when the queue is created,
|
|
1676
|
+
# Cloud Tasks will pick the default. This field has the same meaning as [
|
|
1546
1677
|
# max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/
|
|
1547
1678
|
# standard/python/config/queueref#retry_parameters).
|
|
1548
1679
|
# Corresponds to the JSON property `maxBackoff`
|
|
@@ -1568,14 +1699,15 @@ module Google
|
|
|
1568
1699
|
# If positive, `max_retry_duration` specifies the time limit for retrying a
|
|
1569
1700
|
# failed task, measured from when the task was first attempted. Once `
|
|
1570
1701
|
# max_retry_duration` time has passed *and* the task has been attempted
|
|
1571
|
-
# max_attempts times, no further attempts
|
|
1572
|
-
#
|
|
1573
|
-
#
|
|
1574
|
-
# as a string that indicates the length of time (in seconds) followed
|
|
1575
|
-
# for "seconds"). For the maximum possible value or the format, see the
|
|
1702
|
+
# max_attempts times, no further attempts are made and the task is deleted. A
|
|
1703
|
+
# zero (0) indicates an unlimited duration, up to the [maximum task retention](
|
|
1704
|
+
# https://docs.cloud.google.com/tasks/docs/quotas#limits) limit. The value must
|
|
1705
|
+
# be given as a string that indicates the length of time (in seconds) followed
|
|
1706
|
+
# by `s` (for "seconds"). For the maximum possible value or the format, see the
|
|
1576
1707
|
# documentation for [Duration](https://protobuf.dev/reference/protobuf/google.
|
|
1577
1708
|
# protobuf/#duration). `max_retry_duration` will be truncated to the nearest
|
|
1578
|
-
# second.
|
|
1709
|
+
# second. If unspecified when the queue is created, Cloud Tasks will pick the
|
|
1710
|
+
# default. This field has the same meaning as [task_age_limit in queue.yaml/xml](
|
|
1579
1711
|
# https://cloud.google.com/appengine/docs/standard/python/config/queueref#
|
|
1580
1712
|
# retry_parameters).
|
|
1581
1713
|
# Corresponds to the JSON property `maxRetryDuration`
|
|
@@ -1584,12 +1716,12 @@ module Google
|
|
|
1584
1716
|
|
|
1585
1717
|
# A task will be scheduled for retry between min_backoff and max_backoff
|
|
1586
1718
|
# duration after it fails, if the queue's RetryConfig specifies that the task
|
|
1587
|
-
# should be retried.
|
|
1588
|
-
# pick the default. The value must be given as a string that indicates the
|
|
1719
|
+
# should be retried. The value must be given as a string that indicates the
|
|
1589
1720
|
# length of time (in seconds) followed by `s` (for "seconds"). For more
|
|
1590
1721
|
# information on the format, see the documentation for [Duration](https://
|
|
1591
1722
|
# protobuf.dev/reference/protobuf/google.protobuf/#duration). `min_backoff` will
|
|
1592
|
-
# be truncated to the nearest second.
|
|
1723
|
+
# be truncated to the nearest second. If unspecified when the queue is created,
|
|
1724
|
+
# Cloud Tasks will pick the default. This field has the same meaning as [
|
|
1593
1725
|
# min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/
|
|
1594
1726
|
# standard/python/config/queueref#retry_parameters).
|
|
1595
1727
|
# Corresponds to the JSON property `minBackoff`
|
|
@@ -1882,6 +2014,11 @@ module Google
|
|
|
1882
2014
|
# @return [Fixnum]
|
|
1883
2015
|
attr_accessor :response_count
|
|
1884
2016
|
|
|
2017
|
+
# Retry config. These settings determine when a failed task attempt is retried.
|
|
2018
|
+
# Corresponds to the JSON property `retryConfig`
|
|
2019
|
+
# @return [Google::Apis::CloudtasksV2beta3::RetryConfig]
|
|
2020
|
+
attr_accessor :retry_config
|
|
2021
|
+
|
|
1885
2022
|
# The time when the task is scheduled to be attempted. For App Engine queues,
|
|
1886
2023
|
# this is when the task will be attempted or retried. `schedule_time` will be
|
|
1887
2024
|
# truncated to the nearest microsecond.
|
|
@@ -1910,6 +2047,7 @@ module Google
|
|
|
1910
2047
|
@name = args[:name] if args.key?(:name)
|
|
1911
2048
|
@pull_message = args[:pull_message] if args.key?(:pull_message)
|
|
1912
2049
|
@response_count = args[:response_count] if args.key?(:response_count)
|
|
2050
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
|
1913
2051
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
1914
2052
|
@view = args[:view] if args.key?(:view)
|
|
1915
2053
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudtasksV2beta3
|
|
18
18
|
# Version of the google-apis-cloudtasks_v2beta3 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.53.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
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
|
|
@@ -46,6 +46,18 @@ module Google
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
class BatchCreateTasksRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class BatchDeleteTasksRequest
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
49
61
|
class Binding
|
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
63
|
|
|
@@ -166,6 +178,12 @@ module Google
|
|
|
166
178
|
include Google::Apis::Core::JsonObjectSupport
|
|
167
179
|
end
|
|
168
180
|
|
|
181
|
+
class Operation
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
169
187
|
class PathOverride
|
|
170
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
189
|
|
|
@@ -321,6 +339,23 @@ module Google
|
|
|
321
339
|
end
|
|
322
340
|
end
|
|
323
341
|
|
|
342
|
+
class BatchCreateTasksRequest
|
|
343
|
+
# @private
|
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
345
|
+
property :request_id, as: 'requestId'
|
|
346
|
+
collection :requests, as: 'requests', class: Google::Apis::CloudtasksV2beta3::CreateTaskRequest, decorator: Google::Apis::CloudtasksV2beta3::CreateTaskRequest::Representation
|
|
347
|
+
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
class BatchDeleteTasksRequest
|
|
352
|
+
# @private
|
|
353
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
354
|
+
collection :names, as: 'names'
|
|
355
|
+
property :request_id, as: 'requestId'
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
|
|
324
359
|
class Binding
|
|
325
360
|
# @private
|
|
326
361
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -358,6 +393,7 @@ module Google
|
|
|
358
393
|
class CreateTaskRequest
|
|
359
394
|
# @private
|
|
360
395
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
396
|
+
property :parent, as: 'parent'
|
|
361
397
|
property :response_view, as: 'responseView'
|
|
362
398
|
property :task, as: 'task', class: Google::Apis::CloudtasksV2beta3::Task, decorator: Google::Apis::CloudtasksV2beta3::Task::Representation
|
|
363
399
|
|
|
@@ -503,6 +539,18 @@ module Google
|
|
|
503
539
|
end
|
|
504
540
|
end
|
|
505
541
|
|
|
542
|
+
class Operation
|
|
543
|
+
# @private
|
|
544
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
545
|
+
property :done, as: 'done'
|
|
546
|
+
property :error, as: 'error', class: Google::Apis::CloudtasksV2beta3::Status, decorator: Google::Apis::CloudtasksV2beta3::Status::Representation
|
|
547
|
+
|
|
548
|
+
hash :metadata, as: 'metadata'
|
|
549
|
+
property :name, as: 'name'
|
|
550
|
+
hash :response, as: 'response'
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
506
554
|
class PathOverride
|
|
507
555
|
# @private
|
|
508
556
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -657,6 +705,8 @@ module Google
|
|
|
657
705
|
property :pull_message, as: 'pullMessage', class: Google::Apis::CloudtasksV2beta3::PullMessage, decorator: Google::Apis::CloudtasksV2beta3::PullMessage::Representation
|
|
658
706
|
|
|
659
707
|
property :response_count, as: 'responseCount'
|
|
708
|
+
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta3::RetryConfig, decorator: Google::Apis::CloudtasksV2beta3::RetryConfig::Representation
|
|
709
|
+
|
|
660
710
|
property :schedule_time, as: 'scheduleTime'
|
|
661
711
|
property :view, as: 'view'
|
|
662
712
|
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::CloudtasksV2beta3::Operation] parsed result object
|
|
227
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
228
|
+
#
|
|
229
|
+
# @return [Google::Apis::CloudtasksV2beta3::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, 'v2beta3/{+name}', options)
|
|
236
|
+
command.response_representation = Google::Apis::CloudtasksV2beta3::Operation::Representation
|
|
237
|
+
command.response_class = Google::Apis::CloudtasksV2beta3::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
|
|
@@ -671,6 +702,79 @@ module Google
|
|
|
671
702
|
execute_or_queue_command(command, &block)
|
|
672
703
|
end
|
|
673
704
|
|
|
705
|
+
# Creates a batch of tasks and adds them to a queue. This call is not atomic.
|
|
706
|
+
# All tasks must be for the same queue. A maximum of 100 tasks can be created in
|
|
707
|
+
# a single batch.
|
|
708
|
+
# @param [String] parent
|
|
709
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
|
710
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
|
711
|
+
# @param [Google::Apis::CloudtasksV2beta3::BatchCreateTasksRequest] batch_create_tasks_request_object
|
|
712
|
+
# @param [String] fields
|
|
713
|
+
# Selector specifying which fields to include in a partial response.
|
|
714
|
+
# @param [String] quota_user
|
|
715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
717
|
+
# @param [Google::Apis::RequestOptions] options
|
|
718
|
+
# Request-specific options
|
|
719
|
+
#
|
|
720
|
+
# @yield [result, err] Result & error if block supplied
|
|
721
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta3::Operation] parsed result object
|
|
722
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
723
|
+
#
|
|
724
|
+
# @return [Google::Apis::CloudtasksV2beta3::Operation]
|
|
725
|
+
#
|
|
726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
729
|
+
def batch_create_tasks(parent, batch_create_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
730
|
+
command = make_simple_command(:post, 'v2beta3/{+parent}/tasks:batchCreate', options)
|
|
731
|
+
command.request_representation = Google::Apis::CloudtasksV2beta3::BatchCreateTasksRequest::Representation
|
|
732
|
+
command.request_object = batch_create_tasks_request_object
|
|
733
|
+
command.response_representation = Google::Apis::CloudtasksV2beta3::Operation::Representation
|
|
734
|
+
command.response_class = Google::Apis::CloudtasksV2beta3::Operation
|
|
735
|
+
command.params['parent'] = parent unless parent.nil?
|
|
736
|
+
command.query['fields'] = fields unless fields.nil?
|
|
737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
738
|
+
execute_or_queue_command(command, &block)
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
# Deletes a batch of tasks. This is a non-atomic operation: if deletion fails
|
|
742
|
+
# for some tasks, it can still succeed for others. The metadata field of google.
|
|
743
|
+
# longrunning.Operation contains details of failed deletions. A maximum of 1000
|
|
744
|
+
# tasks can be deleted in a batch.
|
|
745
|
+
# @param [String] parent
|
|
746
|
+
# Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/
|
|
747
|
+
# LOCATION_ID/queues/QUEUE_ID`
|
|
748
|
+
# @param [Google::Apis::CloudtasksV2beta3::BatchDeleteTasksRequest] batch_delete_tasks_request_object
|
|
749
|
+
# @param [String] fields
|
|
750
|
+
# Selector specifying which fields to include in a partial response.
|
|
751
|
+
# @param [String] quota_user
|
|
752
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
753
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
754
|
+
# @param [Google::Apis::RequestOptions] options
|
|
755
|
+
# Request-specific options
|
|
756
|
+
#
|
|
757
|
+
# @yield [result, err] Result & error if block supplied
|
|
758
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta3::Operation] parsed result object
|
|
759
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
760
|
+
#
|
|
761
|
+
# @return [Google::Apis::CloudtasksV2beta3::Operation]
|
|
762
|
+
#
|
|
763
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
764
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
765
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
766
|
+
def batch_delete_tasks(parent, batch_delete_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
767
|
+
command = make_simple_command(:post, 'v2beta3/{+parent}/tasks:batchDelete', options)
|
|
768
|
+
command.request_representation = Google::Apis::CloudtasksV2beta3::BatchDeleteTasksRequest::Representation
|
|
769
|
+
command.request_object = batch_delete_tasks_request_object
|
|
770
|
+
command.response_representation = Google::Apis::CloudtasksV2beta3::Operation::Representation
|
|
771
|
+
command.response_class = Google::Apis::CloudtasksV2beta3::Operation
|
|
772
|
+
command.params['parent'] = parent unless parent.nil?
|
|
773
|
+
command.query['fields'] = fields unless fields.nil?
|
|
774
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
775
|
+
execute_or_queue_command(command, &block)
|
|
776
|
+
end
|
|
777
|
+
|
|
674
778
|
# Creates and buffers a new task without the need to explicitly define a Task
|
|
675
779
|
# message. The queue must have HTTP target. To create the task with a custom ID,
|
|
676
780
|
# 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_v2beta3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.53.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_v2beta3/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.53.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta3
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|