google-apis-cloudtasks_v2beta2 0.50.0 → 0.52.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 +8 -0
- data/lib/google/apis/cloudtasks_v2beta2/classes.rb +62 -0
- data/lib/google/apis/cloudtasks_v2beta2/gem_version.rb +2 -2
- data/lib/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
- data/lib/google/apis/cloudtasks_v2beta2/service.rb +42 -2
- 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: c7d95cf17576431509b32ae7d3e519a868aeb9fc40da2d3387139b7bc1ff7cfb
|
|
4
|
+
data.tar.gz: 57d7c3a38093ffa101cf81f94e2faa776c0253d46bec04576558833a9daaf8a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77adf650f057845a22bc5a8d1a045be39237f1fd2d918d5736fa348166bf72be572074bfe4534ee36abec84e7034a1b6f4f6edbd1aa1cc072f04751c632978f5
|
|
7
|
+
data.tar.gz: c425a11204e09aff24a1f29c3428e3b7aa8afad9a95fe89976f129d531e884ae18f8ebd64bbf462e7c1c9c7c00755d7a7b6cbb79b3e45772f142abeed6e7722c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta2
|
|
2
2
|
|
|
3
|
+
### v0.52.0 (2026-04-19)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260330
|
|
6
|
+
|
|
7
|
+
### v0.51.0 (2026-03-15)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260306
|
|
10
|
+
|
|
3
11
|
### v0.50.0 (2025-11-02)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20251021
|
|
@@ -1207,6 +1207,68 @@ module Google
|
|
|
1207
1207
|
end
|
|
1208
1208
|
end
|
|
1209
1209
|
|
|
1210
|
+
# This resource represents a long-running operation that is the result of a
|
|
1211
|
+
# network API call.
|
|
1212
|
+
class Operation
|
|
1213
|
+
include Google::Apis::Core::Hashable
|
|
1214
|
+
|
|
1215
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
1216
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
1217
|
+
# Corresponds to the JSON property `done`
|
|
1218
|
+
# @return [Boolean]
|
|
1219
|
+
attr_accessor :done
|
|
1220
|
+
alias_method :done?, :done
|
|
1221
|
+
|
|
1222
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1223
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
1224
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
1225
|
+
# data: error code, error message, and error details. You can find out more
|
|
1226
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
1227
|
+
# //cloud.google.com/apis/design/errors).
|
|
1228
|
+
# Corresponds to the JSON property `error`
|
|
1229
|
+
# @return [Google::Apis::CloudtasksV2beta2::Status]
|
|
1230
|
+
attr_accessor :error
|
|
1231
|
+
|
|
1232
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1233
|
+
# progress information and common metadata such as create time. Some services
|
|
1234
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1235
|
+
# operation should document the metadata type, if any.
|
|
1236
|
+
# Corresponds to the JSON property `metadata`
|
|
1237
|
+
# @return [Hash<String,Object>]
|
|
1238
|
+
attr_accessor :metadata
|
|
1239
|
+
|
|
1240
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1241
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
1242
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
1243
|
+
# Corresponds to the JSON property `name`
|
|
1244
|
+
# @return [String]
|
|
1245
|
+
attr_accessor :name
|
|
1246
|
+
|
|
1247
|
+
# The normal, successful response of the operation. If the original method
|
|
1248
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
1249
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
1250
|
+
# response should be the resource. For other methods, the response should have
|
|
1251
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
1252
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
1253
|
+
# `TakeSnapshotResponse`.
|
|
1254
|
+
# Corresponds to the JSON property `response`
|
|
1255
|
+
# @return [Hash<String,Object>]
|
|
1256
|
+
attr_accessor :response
|
|
1257
|
+
|
|
1258
|
+
def initialize(**args)
|
|
1259
|
+
update!(**args)
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
# Update properties of this object
|
|
1263
|
+
def update!(**args)
|
|
1264
|
+
@done = args[:done] if args.key?(:done)
|
|
1265
|
+
@error = args[:error] if args.key?(:error)
|
|
1266
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1267
|
+
@name = args[:name] if args.key?(:name)
|
|
1268
|
+
@response = args[:response] if args.key?(:response)
|
|
1269
|
+
end
|
|
1270
|
+
end
|
|
1271
|
+
|
|
1210
1272
|
# PathOverride. Path message defines path override for HTTP targets.
|
|
1211
1273
|
class PathOverride
|
|
1212
1274
|
include Google::Apis::Core::Hashable
|
|
@@ -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.52.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260330"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -190,6 +190,12 @@ module Google
|
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
|
191
191
|
end
|
|
192
192
|
|
|
193
|
+
class Operation
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
|
+
|
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
197
|
+
end
|
|
198
|
+
|
|
193
199
|
class PathOverride
|
|
194
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
201
|
|
|
@@ -572,6 +578,18 @@ module Google
|
|
|
572
578
|
end
|
|
573
579
|
end
|
|
574
580
|
|
|
581
|
+
class Operation
|
|
582
|
+
# @private
|
|
583
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
584
|
+
property :done, as: 'done'
|
|
585
|
+
property :error, as: 'error', class: Google::Apis::CloudtasksV2beta2::Status, decorator: Google::Apis::CloudtasksV2beta2::Status::Representation
|
|
586
|
+
|
|
587
|
+
hash :metadata, as: 'metadata'
|
|
588
|
+
property :name, as: 'name'
|
|
589
|
+
hash :response, as: 'response'
|
|
590
|
+
end
|
|
591
|
+
end
|
|
592
|
+
|
|
575
593
|
class PathOverride
|
|
576
594
|
# @private
|
|
577
595
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -151,7 +151,16 @@ module Google
|
|
|
151
151
|
execute_or_queue_command(command, &block)
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
# Lists information about the supported locations for this service.
|
|
154
|
+
# Lists information about the supported locations for this service. This method
|
|
155
|
+
# lists locations based on the resource scope provided in the [
|
|
156
|
+
# ListLocationsRequest.name] field: * **Global locations**: If `name` is empty,
|
|
157
|
+
# the method lists the public locations available to all projects. * **Project-
|
|
158
|
+
# specific locations**: If `name` follows the format `projects/`project``, the
|
|
159
|
+
# method lists locations visible to that specific project. This includes public,
|
|
160
|
+
# private, or other project-specific locations enabled for the project. For gRPC
|
|
161
|
+
# and client library implementations, the resource name is passed as the `name`
|
|
162
|
+
# field. For direct service calls, the resource name is incorporated into the
|
|
163
|
+
# request path based on the specific service implementation and version.
|
|
155
164
|
# @param [String] name
|
|
156
165
|
# The resource that owns the locations collection, if applicable.
|
|
157
166
|
# @param [Array<String>, String] extra_location_types
|
|
@@ -199,7 +208,7 @@ module Google
|
|
|
199
208
|
end
|
|
200
209
|
|
|
201
210
|
# Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key
|
|
202
|
-
#
|
|
211
|
+
# associated with the Cloud Tasks location (Creates if the key does not already
|
|
203
212
|
# exist). All new tasks created in the location will be encrypted at-rest with
|
|
204
213
|
# the KMS-key provided in the config.
|
|
205
214
|
# @param [String] name
|
|
@@ -239,6 +248,37 @@ module Google
|
|
|
239
248
|
execute_or_queue_command(command, &block)
|
|
240
249
|
end
|
|
241
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
|
+
|
|
242
282
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
|
243
283
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
|
244
284
|
# 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_v2beta2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.52.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.52.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:
|