google-apis-cloudtasks_v2 0.46.0 → 0.48.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_v2/classes.rb +93 -28
- data/lib/google/apis/cloudtasks_v2/gem_version.rb +3 -3
- data/lib/google/apis/cloudtasks_v2/representations.rb +18 -0
- data/lib/google/apis/cloudtasks_v2/service.rb +31 -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: dc6e09f1845235971d7ed3f3eaa7bfc1ad20af5e4b251d2a5e680d377fe2140a
|
|
4
|
+
data.tar.gz: 110b9f3fa8173df51170684c80a32ff9611a152927210d303500e89a0763bbed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0daea8789d9a7d1e7b4dafc42a89824871a213903df2549698a6be11e2d44e2f02d6cfdaa67c15d50fbda208c9896f56ee7c749088889145b4658aeca56ebb18
|
|
7
|
+
data.tar.gz: 653d4a1468860abf7d847f8140e273e099ad27938a641ada5aa131fd7374b21e1a7b60fbfa3f064661554b0cd309035daaf5daa9802cded8c2c9336375f7f28d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2
|
|
2
2
|
|
|
3
|
+
### v0.48.0 (2026-09-06)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260831
|
|
6
|
+
|
|
7
|
+
### v0.47.0 (2026-06-14)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260512
|
|
10
|
+
* Regenerated using generator version 0.19.0
|
|
11
|
+
|
|
3
12
|
### v0.46.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
|
|
|
@@ -774,8 +774,8 @@ module Google
|
|
|
774
774
|
end
|
|
775
775
|
end
|
|
776
776
|
|
|
777
|
-
# HTTP target. When specified
|
|
778
|
-
#
|
|
777
|
+
# HTTP target. When specified at the Queue level, all tasks with HttpRequest are
|
|
778
|
+
# overridden according to the target.
|
|
779
779
|
class HttpTarget
|
|
780
780
|
include Google::Apis::Core::Hashable
|
|
781
781
|
|
|
@@ -1033,6 +1033,68 @@ module Google
|
|
|
1033
1033
|
end
|
|
1034
1034
|
end
|
|
1035
1035
|
|
|
1036
|
+
# This resource represents a long-running operation that is the result of a
|
|
1037
|
+
# network API call.
|
|
1038
|
+
class Operation
|
|
1039
|
+
include Google::Apis::Core::Hashable
|
|
1040
|
+
|
|
1041
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
1042
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
1043
|
+
# Corresponds to the JSON property `done`
|
|
1044
|
+
# @return [Boolean]
|
|
1045
|
+
attr_accessor :done
|
|
1046
|
+
alias_method :done?, :done
|
|
1047
|
+
|
|
1048
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1049
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
1050
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
1051
|
+
# data: error code, error message, and error details. You can find out more
|
|
1052
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
1053
|
+
# //cloud.google.com/apis/design/errors).
|
|
1054
|
+
# Corresponds to the JSON property `error`
|
|
1055
|
+
# @return [Google::Apis::CloudtasksV2::Status]
|
|
1056
|
+
attr_accessor :error
|
|
1057
|
+
|
|
1058
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1059
|
+
# progress information and common metadata such as create time. Some services
|
|
1060
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1061
|
+
# operation should document the metadata type, if any.
|
|
1062
|
+
# Corresponds to the JSON property `metadata`
|
|
1063
|
+
# @return [Hash<String,Object>]
|
|
1064
|
+
attr_accessor :metadata
|
|
1065
|
+
|
|
1066
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1067
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
1068
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
1069
|
+
# Corresponds to the JSON property `name`
|
|
1070
|
+
# @return [String]
|
|
1071
|
+
attr_accessor :name
|
|
1072
|
+
|
|
1073
|
+
# The normal, successful response of the operation. If the original method
|
|
1074
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
1075
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
1076
|
+
# response should be the resource. For other methods, the response should have
|
|
1077
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
1078
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
1079
|
+
# `TakeSnapshotResponse`.
|
|
1080
|
+
# Corresponds to the JSON property `response`
|
|
1081
|
+
# @return [Hash<String,Object>]
|
|
1082
|
+
attr_accessor :response
|
|
1083
|
+
|
|
1084
|
+
def initialize(**args)
|
|
1085
|
+
update!(**args)
|
|
1086
|
+
end
|
|
1087
|
+
|
|
1088
|
+
# Update properties of this object
|
|
1089
|
+
def update!(**args)
|
|
1090
|
+
@done = args[:done] if args.key?(:done)
|
|
1091
|
+
@error = args[:error] if args.key?(:error)
|
|
1092
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1093
|
+
@name = args[:name] if args.key?(:name)
|
|
1094
|
+
@response = args[:response] if args.key?(:response)
|
|
1095
|
+
end
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1036
1098
|
# PathOverride. Path message defines path override for HTTP targets.
|
|
1037
1099
|
class PathOverride
|
|
1038
1100
|
include Google::Apis::Core::Hashable
|
|
@@ -1209,8 +1271,8 @@ module Google
|
|
|
1209
1271
|
# @return [Google::Apis::CloudtasksV2::AppEngineRouting]
|
|
1210
1272
|
attr_accessor :app_engine_routing_override
|
|
1211
1273
|
|
|
1212
|
-
# HTTP target. When specified
|
|
1213
|
-
#
|
|
1274
|
+
# HTTP target. When specified at the Queue level, all tasks with HttpRequest are
|
|
1275
|
+
# overridden according to the target.
|
|
1214
1276
|
# Corresponds to the JSON property `httpTarget`
|
|
1215
1277
|
# @return [Google::Apis::CloudtasksV2::HttpTarget]
|
|
1216
1278
|
attr_accessor :http_target
|
|
@@ -1328,7 +1390,7 @@ module Google
|
|
|
1328
1390
|
attr_accessor :max_concurrent_dispatches
|
|
1329
1391
|
|
|
1330
1392
|
# The maximum rate at which tasks are dispatched from this queue. If unspecified
|
|
1331
|
-
# when the queue is created, Cloud Tasks will pick the default.
|
|
1393
|
+
# when the queue is created, Cloud Tasks will pick the default. The maximum
|
|
1332
1394
|
# allowed value is 500. This field has the same meaning as [rate in queue.yaml/
|
|
1333
1395
|
# xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#
|
|
1334
1396
|
# rate).
|
|
@@ -1365,29 +1427,31 @@ module Google
|
|
|
1365
1427
|
class RetryConfig
|
|
1366
1428
|
include Google::Apis::Core::Hashable
|
|
1367
1429
|
|
|
1368
|
-
# Number of attempts per task
|
|
1369
|
-
#
|
|
1370
|
-
#
|
|
1371
|
-
#
|
|
1372
|
-
# the
|
|
1373
|
-
#
|
|
1374
|
-
#
|
|
1375
|
-
#
|
|
1376
|
-
#
|
|
1377
|
-
#
|
|
1378
|
-
#
|
|
1430
|
+
# Number of attempts per task, including the first attempt. (If the first
|
|
1431
|
+
# attempt fails, there will be `max_attempts - 1` retries.) Must be greater than
|
|
1432
|
+
# or equal to -1, which indicates unlimited attempts. Cloud Tasks stops retrying
|
|
1433
|
+
# only when `max_attempts` and `max_retry_duration` are both satisfied, or when
|
|
1434
|
+
# the task is successfully executed. When the task has been attempted `
|
|
1435
|
+
# max_attempts` times and when the `max_retry_duration` time has passed, no
|
|
1436
|
+
# further attempts are made, and the task is deleted. If `max_attempts` is set
|
|
1437
|
+
# to -1 and `max_retry_duration` is set to 0, the task is retried until the [
|
|
1438
|
+
# maximum task retention](https://docs.cloud.google.com/tasks/docs/quotas#limits)
|
|
1439
|
+
# limit is reached. If unspecified when the queue is created, Cloud Tasks will
|
|
1440
|
+
# pick the default. This field has the same meaning as [task_retry_limit in
|
|
1441
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
1442
|
+
# queueref#retry_parameters).
|
|
1379
1443
|
# Corresponds to the JSON property `maxAttempts`
|
|
1380
1444
|
# @return [Fixnum]
|
|
1381
1445
|
attr_accessor :max_attempts
|
|
1382
1446
|
|
|
1383
1447
|
# A task will be scheduled for retry between min_backoff and max_backoff
|
|
1384
1448
|
# duration after it fails, if the queue's RetryConfig specifies that the task
|
|
1385
|
-
# should be retried.
|
|
1386
|
-
# pick the default. The value must be given as a string that indicates the
|
|
1449
|
+
# should be retried. The value must be given as a string that indicates the
|
|
1387
1450
|
# length of time (in seconds) followed by `s` (for "seconds"). For more
|
|
1388
1451
|
# information on the format, see the documentation for [Duration](https://
|
|
1389
1452
|
# protobuf.dev/reference/protobuf/google.protobuf/#duration). `max_backoff` will
|
|
1390
|
-
# be truncated to the nearest second.
|
|
1453
|
+
# be truncated to the nearest second. If unspecified when the queue is created,
|
|
1454
|
+
# Cloud Tasks will pick the default. This field has the same meaning as [
|
|
1391
1455
|
# max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/
|
|
1392
1456
|
# standard/python/config/queueref#retry_parameters).
|
|
1393
1457
|
# Corresponds to the JSON property `maxBackoff`
|
|
@@ -1413,14 +1477,15 @@ module Google
|
|
|
1413
1477
|
# If positive, `max_retry_duration` specifies the time limit for retrying a
|
|
1414
1478
|
# failed task, measured from when the task was first attempted. Once `
|
|
1415
1479
|
# max_retry_duration` time has passed *and* the task has been attempted
|
|
1416
|
-
# max_attempts times, no further attempts
|
|
1417
|
-
#
|
|
1418
|
-
#
|
|
1419
|
-
# as a string that indicates the length of time (in seconds) followed
|
|
1420
|
-
# for "seconds"). For the maximum possible value or the format, see the
|
|
1480
|
+
# max_attempts times, no further attempts are made and the task is deleted. A
|
|
1481
|
+
# zero (0) indicates an unlimited duration, up to the [maximum task retention](
|
|
1482
|
+
# https://docs.cloud.google.com/tasks/docs/quotas#limits) limit. The value must
|
|
1483
|
+
# be given as a string that indicates the length of time (in seconds) followed
|
|
1484
|
+
# by `s` (for "seconds"). For the maximum possible value or the format, see the
|
|
1421
1485
|
# documentation for [Duration](https://protobuf.dev/reference/protobuf/google.
|
|
1422
1486
|
# protobuf/#duration). `max_retry_duration` will be truncated to the nearest
|
|
1423
|
-
# second.
|
|
1487
|
+
# second. If unspecified when the queue is created, Cloud Tasks will pick the
|
|
1488
|
+
# default. This field has the same meaning as [task_age_limit in queue.yaml/xml](
|
|
1424
1489
|
# https://cloud.google.com/appengine/docs/standard/python/config/queueref#
|
|
1425
1490
|
# retry_parameters).
|
|
1426
1491
|
# Corresponds to the JSON property `maxRetryDuration`
|
|
@@ -1429,12 +1494,12 @@ module Google
|
|
|
1429
1494
|
|
|
1430
1495
|
# A task will be scheduled for retry between min_backoff and max_backoff
|
|
1431
1496
|
# duration after it fails, if the queue's RetryConfig specifies that the task
|
|
1432
|
-
# should be retried.
|
|
1433
|
-
# pick the default. The value must be given as a string that indicates the
|
|
1497
|
+
# should be retried. The value must be given as a string that indicates the
|
|
1434
1498
|
# length of time (in seconds) followed by `s` (for "seconds"). For more
|
|
1435
1499
|
# information on the format, see the documentation for [Duration](https://
|
|
1436
1500
|
# protobuf.dev/reference/protobuf/google.protobuf/#duration). `min_backoff` will
|
|
1437
|
-
# be truncated to the nearest second.
|
|
1501
|
+
# be truncated to the nearest second. If unspecified when the queue is created,
|
|
1502
|
+
# Cloud Tasks will pick the default. This field has the same meaning as [
|
|
1438
1503
|
# min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/
|
|
1439
1504
|
# standard/python/config/queueref#retry_parameters).
|
|
1440
1505
|
# Corresponds to the JSON property `minBackoff`
|
|
@@ -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.48.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 = "20260831"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -160,6 +160,12 @@ module Google
|
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
class Operation
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
167
|
+
end
|
|
168
|
+
|
|
163
169
|
class PathOverride
|
|
164
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
171
|
|
|
@@ -477,6 +483,18 @@ module Google
|
|
|
477
483
|
end
|
|
478
484
|
end
|
|
479
485
|
|
|
486
|
+
class Operation
|
|
487
|
+
# @private
|
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
489
|
+
property :done, as: 'done'
|
|
490
|
+
property :error, as: 'error', class: Google::Apis::CloudtasksV2::Status, decorator: Google::Apis::CloudtasksV2::Status::Representation
|
|
491
|
+
|
|
492
|
+
hash :metadata, as: 'metadata'
|
|
493
|
+
property :name, as: 'name'
|
|
494
|
+
hash :response, as: 'response'
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
|
|
480
498
|
class PathOverride
|
|
481
499
|
# @private
|
|
482
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -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
|
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.48.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.48.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:
|
|
@@ -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
|
- - ">="
|