google-apis-cloudtasks_v2beta3 0.52.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 +4 -0
- data/lib/google/apis/cloudtasks_v2beta3/classes.rb +135 -0
- data/lib/google/apis/cloudtasks_v2beta3/gem_version.rb +2 -2
- data/lib/google/apis/cloudtasks_v2beta3/representations.rb +50 -0
- data/lib/google/apis/cloudtasks_v2beta3/service.rb +104 -0
- 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: 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
|
@@ -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
|
|
@@ -1885,6 +2014,11 @@ module Google
|
|
|
1885
2014
|
# @return [Fixnum]
|
|
1886
2015
|
attr_accessor :response_count
|
|
1887
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
|
+
|
|
1888
2022
|
# The time when the task is scheduled to be attempted. For App Engine queues,
|
|
1889
2023
|
# this is when the task will be attempted or retried. `schedule_time` will be
|
|
1890
2024
|
# truncated to the nearest microsecond.
|
|
@@ -1913,6 +2047,7 @@ module Google
|
|
|
1913
2047
|
@name = args[:name] if args.key?(:name)
|
|
1914
2048
|
@pull_message = args[:pull_message] if args.key?(:pull_message)
|
|
1915
2049
|
@response_count = args[:response_count] if args.key?(:response_count)
|
|
2050
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
|
1916
2051
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
1917
2052
|
@view = args[:view] if args.key?(:view)
|
|
1918
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
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:
|