google-apis-cloudtasks_v2 0.47.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb93fc32b72df4079c3c97c78fe908fdad07593ffeedf7ca32edb0f54ce65b3d
4
- data.tar.gz: d067c98e1a8f02c4764ceaffa514a55cbdcc3f0c4302b8b4dbb128083333dffa
3
+ metadata.gz: dc6e09f1845235971d7ed3f3eaa7bfc1ad20af5e4b251d2a5e680d377fe2140a
4
+ data.tar.gz: 110b9f3fa8173df51170684c80a32ff9611a152927210d303500e89a0763bbed
5
5
  SHA512:
6
- metadata.gz: 377bb35d735cf77109a114f4b46638f0f25e793bb777aee149061ce7184da8712262df98d8dbe808343407b6fb23474a73fdb0b940a4b84f0549e26e0ff5b391
7
- data.tar.gz: e880e4361628f984af4243b1f338f2f98e252d47849525d6955af9f8471a4d91186956d13816a09f49056f9e44c4e10f69256489b02d985e2577adfc9fef9c7e
6
+ metadata.gz: 0daea8789d9a7d1e7b4dafc42a89824871a213903df2549698a6be11e2d44e2f02d6cfdaa67c15d50fbda208c9896f56ee7c749088889145b4658aeca56ebb18
7
+ data.tar.gz: 653d4a1468860abf7d847f8140e273e099ad27938a641ada5aa131fd7374b21e1a7b60fbfa3f064661554b0cd309035daaf5daa9802cded8c2c9336375f7f28d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.47.0 (2026-06-14)
4
8
 
5
9
  * Regenerated from discovery document revision 20260512
@@ -774,8 +774,8 @@ module Google
774
774
  end
775
775
  end
776
776
 
777
- # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
778
- # be overridden according to the target.
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 as a Queue, all the tasks with [HttpRequest] will
1213
- # be overridden according to the target.
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
@@ -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.47.0"
19
+ GEM_VERSION = "0.48.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 = "20260512"
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.47.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.47.0
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: