google-apis-cloudtasks_v2beta2 0.24.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/cloudtasks_v2beta2/classes.rb +8 -12
- data/lib/google/apis/cloudtasks_v2beta2/gem_version.rb +2 -2
- data/lib/google/apis/cloudtasks_v2beta2/representations.rb +8 -7
- data/lib/google/apis/cloudtasks_v2beta2/service.rb +46 -39
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8034a195af832f6cd0cc7b8c3ec42e38c288c199b1795ac7415031c115ab298
|
4
|
+
data.tar.gz: 28c43b0bfdc01c9f65f0b6081af07d290db35b3cd6e02ec2d30b8f6c7691f14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d753bc295ca4b4feddc56a7d0839ebdae97da130cf22cc1951a39dfe8c28b1f8e3f700bae169d5e8a06e5ea69503aba9560deddde16e0f768c82f182716515
|
7
|
+
data.tar.gz: 67ce42950452dbde678ff4779358aceb7d837e32d44590d9f7c1fe4a7454c0a9abbee82ea84055a646ad32fba5749c23effd1071432c32d29ff0dca13983de87
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta2
|
2
2
|
|
3
|
+
### v0.26.0 (2022-09-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220914
|
6
|
+
|
7
|
+
### v0.25.0 (2022-09-09)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220908
|
10
|
+
|
3
11
|
### v0.24.0 (2022-08-25)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20220825
|
@@ -402,8 +402,8 @@ module Google
|
|
402
402
|
end
|
403
403
|
end
|
404
404
|
|
405
|
-
# Request message for
|
406
|
-
class
|
405
|
+
# Request message for BufferTask.
|
406
|
+
class BufferTaskRequest
|
407
407
|
include Google::Apis::Core::Hashable
|
408
408
|
|
409
409
|
# Message that represents an arbitrary HTTP body. It should only be used for
|
@@ -436,15 +436,13 @@ module Google
|
|
436
436
|
end
|
437
437
|
end
|
438
438
|
|
439
|
-
# Response message for
|
440
|
-
class
|
439
|
+
# Response message for BufferTask.
|
440
|
+
class BufferTaskResponse
|
441
441
|
include Google::Apis::Core::Hashable
|
442
442
|
|
443
|
-
#
|
444
|
-
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and
|
445
|
-
# is unique within the queue.
|
443
|
+
# A unit of scheduled work.
|
446
444
|
# Corresponds to the JSON property `task`
|
447
|
-
# @return [
|
445
|
+
# @return [Google::Apis::CloudtasksV2beta2::Task]
|
448
446
|
attr_accessor :task
|
449
447
|
|
450
448
|
def initialize(**args)
|
@@ -640,15 +638,13 @@ module Google
|
|
640
638
|
class Header
|
641
639
|
include Google::Apis::Core::Hashable
|
642
640
|
|
643
|
-
#
|
641
|
+
# The key of the header.
|
644
642
|
# Corresponds to the JSON property `key`
|
645
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
646
643
|
# @return [String]
|
647
644
|
attr_accessor :key
|
648
645
|
|
649
|
-
#
|
646
|
+
# The value of the header.
|
650
647
|
# Corresponds to the JSON property `value`
|
651
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
652
648
|
# @return [String]
|
653
649
|
attr_accessor :value
|
654
650
|
|
@@ -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.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220914"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -58,13 +58,13 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class BufferTaskRequest
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class BufferTaskResponse
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -356,7 +356,7 @@ module Google
|
|
356
356
|
end
|
357
357
|
end
|
358
358
|
|
359
|
-
class
|
359
|
+
class BufferTaskRequest
|
360
360
|
# @private
|
361
361
|
class Representation < Google::Apis::Core::JsonRepresentation
|
362
362
|
property :body, as: 'body', class: Google::Apis::CloudtasksV2beta2::HttpBody, decorator: Google::Apis::CloudtasksV2beta2::HttpBody::Representation
|
@@ -364,10 +364,11 @@ module Google
|
|
364
364
|
end
|
365
365
|
end
|
366
366
|
|
367
|
-
class
|
367
|
+
class BufferTaskResponse
|
368
368
|
# @private
|
369
369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
370
|
-
property :task, as: 'task'
|
370
|
+
property :task, as: 'task', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
|
371
|
+
|
371
372
|
end
|
372
373
|
end
|
373
374
|
|
@@ -422,8 +423,8 @@ module Google
|
|
422
423
|
class Header
|
423
424
|
# @private
|
424
425
|
class Representation < Google::Apis::Core::JsonRepresentation
|
425
|
-
property :key,
|
426
|
-
property :value,
|
426
|
+
property :key, as: 'key'
|
427
|
+
property :value, as: 'value'
|
427
428
|
end
|
428
429
|
end
|
429
430
|
|
@@ -122,45 +122,6 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
-
# Note: This feature is in its experimental stage. You must request access to
|
126
|
-
# the API through the [Cloud Tasks BufferQueues Experiment Signup form](https://
|
127
|
-
# forms.gle/X8Zr5hiXH5tTGFqh8). Creates and buffers a new task without the need
|
128
|
-
# to explicitly define a Task message. The queue must be an http queue (i.e.,
|
129
|
-
# must have HTTP target). This method is used for a simplified application of
|
130
|
-
# Cloud Tasks queues in buffer and rate limitting HTTP requests.
|
131
|
-
# @param [String] name
|
132
|
-
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
133
|
-
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
134
|
-
# @param [Google::Apis::CloudtasksV2beta2::BufferQueueRequest] buffer_queue_request_object
|
135
|
-
# @param [String] fields
|
136
|
-
# Selector specifying which fields to include in a partial response.
|
137
|
-
# @param [String] quota_user
|
138
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
139
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
140
|
-
# @param [Google::Apis::RequestOptions] options
|
141
|
-
# Request-specific options
|
142
|
-
#
|
143
|
-
# @yield [result, err] Result & error if block supplied
|
144
|
-
# @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferQueueResponse] parsed result object
|
145
|
-
# @yieldparam err [StandardError] error object if request failed
|
146
|
-
#
|
147
|
-
# @return [Google::Apis::CloudtasksV2beta2::BufferQueueResponse]
|
148
|
-
#
|
149
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
-
def buffer_queue(name, buffer_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
-
command = make_simple_command(:post, 'v2beta2/{+name}:buffer', options)
|
154
|
-
command.request_representation = Google::Apis::CloudtasksV2beta2::BufferQueueRequest::Representation
|
155
|
-
command.request_object = buffer_queue_request_object
|
156
|
-
command.response_representation = Google::Apis::CloudtasksV2beta2::BufferQueueResponse::Representation
|
157
|
-
command.response_class = Google::Apis::CloudtasksV2beta2::BufferQueueResponse
|
158
|
-
command.params['name'] = name unless name.nil?
|
159
|
-
command.query['fields'] = fields unless fields.nil?
|
160
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
161
|
-
execute_or_queue_command(command, &block)
|
162
|
-
end
|
163
|
-
|
164
125
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
165
126
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
166
127
|
# regardless of whether it was dispatched or not. WARNING: Using this method may
|
@@ -654,6 +615,52 @@ module Google
|
|
654
615
|
execute_or_queue_command(command, &block)
|
655
616
|
end
|
656
617
|
|
618
|
+
# Creates and buffers a new task without the need to explicitly define a Task
|
619
|
+
# message. The queue must have HTTP target. To create the task with a custom ID,
|
620
|
+
# use the following format and set TASK_ID to your desired ID: projects/
|
621
|
+
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To
|
622
|
+
# create the task with an automatically generated ID, use the following format:
|
623
|
+
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note:
|
624
|
+
# This feature is in its experimental stage. You must request access to the API
|
625
|
+
# through the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/
|
626
|
+
# X8Zr5hiXH5tTGFqh8).
|
627
|
+
# @param [String] queue
|
628
|
+
# Required. The parent queue name. For example: projects/PROJECT_ID/locations/
|
629
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
630
|
+
# @param [String] task_id
|
631
|
+
# Optional. Task ID for the task being created. If not provided, a random task
|
632
|
+
# ID is assigned to the task.
|
633
|
+
# @param [Google::Apis::CloudtasksV2beta2::BufferTaskRequest] buffer_task_request_object
|
634
|
+
# @param [String] fields
|
635
|
+
# Selector specifying which fields to include in a partial response.
|
636
|
+
# @param [String] quota_user
|
637
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
638
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
639
|
+
# @param [Google::Apis::RequestOptions] options
|
640
|
+
# Request-specific options
|
641
|
+
#
|
642
|
+
# @yield [result, err] Result & error if block supplied
|
643
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferTaskResponse] parsed result object
|
644
|
+
# @yieldparam err [StandardError] error object if request failed
|
645
|
+
#
|
646
|
+
# @return [Google::Apis::CloudtasksV2beta2::BufferTaskResponse]
|
647
|
+
#
|
648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
651
|
+
def buffer_task(queue, task_id, buffer_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
652
|
+
command = make_simple_command(:post, 'v2beta2/{+queue}/tasks/{taskId}:buffer', options)
|
653
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::BufferTaskRequest::Representation
|
654
|
+
command.request_object = buffer_task_request_object
|
655
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::BufferTaskResponse::Representation
|
656
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::BufferTaskResponse
|
657
|
+
command.params['queue'] = queue unless queue.nil?
|
658
|
+
command.params['taskId'] = task_id unless task_id.nil?
|
659
|
+
command.query['fields'] = fields unless fields.nil?
|
660
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
661
|
+
execute_or_queue_command(command, &block)
|
662
|
+
end
|
663
|
+
|
657
664
|
# Cancel a pull task's lease. The worker can use this method to cancel a task's
|
658
665
|
# lease by setting its schedule_time to now. This will make the task available
|
659
666
|
# to be leased to the next caller of LeaseTasks.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.7.2
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.7.2
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.26.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|