google-apis-cloudtasks_v2beta2 0.22.0 → 0.25.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 +12 -0
- data/lib/google/apis/cloudtasks_v2beta2/classes.rb +33 -30
- data/lib/google/apis/cloudtasks_v2beta2/gem_version.rb +2 -2
- data/lib/google/apis/cloudtasks_v2beta2/representations.rb +6 -5
- data/lib/google/apis/cloudtasks_v2beta2/service.rb +37 -39
- 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: 7cb8e6f8ee50d6825fb1907f5e7142569e9dac3e34b771948cc56f130b99754f
|
4
|
+
data.tar.gz: 47061fa17656fcc1f45c5e25c1083bd744c41a0a6d480916dff7d3383e5b351d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12187a6dd2a9d28593d175d8aa84dfb2ac8aef2937f318ad6797a3bacbcc1ce873e1e78d87f04815313feb0b8433274ff81063f29f2819ed5b2da16c90dfa26a
|
7
|
+
data.tar.gz: a8e36f49c01d250b577f1f9af5f434a3c3ead37ebef0da4eb7323952ea4e00cd5199786764f34b9ee51cca87127b8fb35e79f795e1fb46f1aba529c5ba737981
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta2
|
2
2
|
|
3
|
+
### v0.25.0 (2022-09-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220908
|
6
|
+
|
7
|
+
### v0.24.0 (2022-08-25)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220825
|
10
|
+
|
11
|
+
### v0.23.0 (2022-08-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220803
|
14
|
+
|
3
15
|
### v0.22.0 (2022-07-24)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220722
|
@@ -353,28 +353,33 @@ module Google
|
|
353
353
|
# members` can have the following values: * `allUsers`: A special identifier
|
354
354
|
# that represents anyone who is on the internet; with or without a Google
|
355
355
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
356
|
-
# anyone who is authenticated with a Google account or a service account.
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
# `
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
# example, `
|
369
|
-
# If the
|
370
|
-
# emailid`` and the
|
371
|
-
# `deleted:
|
372
|
-
# identifier) representing a
|
373
|
-
# example, `
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
356
|
+
# anyone who is authenticated with a Google account or a service account. Does
|
357
|
+
# not include identities that come from external identity providers (IdPs)
|
358
|
+
# through identity federation. * `user:`emailid``: An email address that
|
359
|
+
# represents a specific Google account. For example, `alice@example.com` . * `
|
360
|
+
# serviceAccount:`emailid``: An email address that represents a Google service
|
361
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
|
362
|
+
# serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
|
363
|
+
# identifier for a [Kubernetes service account](https://cloud.google.com/
|
364
|
+
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
|
365
|
+
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
366
|
+
# email address that represents a Google group. For example, `admins@example.com`
|
367
|
+
# . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
368
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
369
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
370
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
371
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
372
|
+
# address (plus unique identifier) representing a service account that has been
|
373
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
374
|
+
# 123456789012345678901`. If the service account is undeleted, this value
|
375
|
+
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
376
|
+
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
377
|
+
# An email address (plus unique identifier) representing a Google group that has
|
378
|
+
# been recently deleted. For example, `admins@example.com?uid=
|
379
|
+
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
380
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
381
|
+
# domain:`domain``: The G Suite domain (primary) that represents all the users
|
382
|
+
# of that domain. For example, `google.com` or `example.com`.
|
378
383
|
# Corresponds to the JSON property `members`
|
379
384
|
# @return [Array<String>]
|
380
385
|
attr_accessor :members
|
@@ -397,8 +402,8 @@ module Google
|
|
397
402
|
end
|
398
403
|
end
|
399
404
|
|
400
|
-
# Request message for
|
401
|
-
class
|
405
|
+
# Request message for BufferTask.
|
406
|
+
class BufferTaskRequest
|
402
407
|
include Google::Apis::Core::Hashable
|
403
408
|
|
404
409
|
# Message that represents an arbitrary HTTP body. It should only be used for
|
@@ -431,15 +436,13 @@ module Google
|
|
431
436
|
end
|
432
437
|
end
|
433
438
|
|
434
|
-
# Response message for
|
435
|
-
class
|
439
|
+
# Response message for BufferTask.
|
440
|
+
class BufferTaskResponse
|
436
441
|
include Google::Apis::Core::Hashable
|
437
442
|
|
438
|
-
#
|
439
|
-
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and
|
440
|
-
# is unique within the queue.
|
443
|
+
# A unit of scheduled work.
|
441
444
|
# Corresponds to the JSON property `task`
|
442
|
-
# @return [
|
445
|
+
# @return [Google::Apis::CloudtasksV2beta2::Task]
|
443
446
|
attr_accessor :task
|
444
447
|
|
445
448
|
def initialize(**args)
|
@@ -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.25.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 = "20220908"
|
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
|
|
@@ -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,43 @@ 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. Note: This feature is in its
|
620
|
+
# experimental stage. You must request access to the API through the [Cloud
|
621
|
+
# Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
|
622
|
+
# @param [String] parent
|
623
|
+
# Required. The parent queue name. For example: projects/PROJECT_ID/locations/
|
624
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
625
|
+
# @param [Google::Apis::CloudtasksV2beta2::BufferTaskRequest] buffer_task_request_object
|
626
|
+
# @param [String] fields
|
627
|
+
# Selector specifying which fields to include in a partial response.
|
628
|
+
# @param [String] quota_user
|
629
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
630
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
631
|
+
# @param [Google::Apis::RequestOptions] options
|
632
|
+
# Request-specific options
|
633
|
+
#
|
634
|
+
# @yield [result, err] Result & error if block supplied
|
635
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferTaskResponse] parsed result object
|
636
|
+
# @yieldparam err [StandardError] error object if request failed
|
637
|
+
#
|
638
|
+
# @return [Google::Apis::CloudtasksV2beta2::BufferTaskResponse]
|
639
|
+
#
|
640
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
641
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
642
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
643
|
+
def buffer_task(parent, buffer_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
644
|
+
command = make_simple_command(:post, 'v2beta2/{+parent}/tasks:buffer', options)
|
645
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::BufferTaskRequest::Representation
|
646
|
+
command.request_object = buffer_task_request_object
|
647
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::BufferTaskResponse::Representation
|
648
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::BufferTaskResponse
|
649
|
+
command.params['parent'] = parent unless parent.nil?
|
650
|
+
command.query['fields'] = fields unless fields.nil?
|
651
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
652
|
+
execute_or_queue_command(command, &block)
|
653
|
+
end
|
654
|
+
|
657
655
|
# Cancel a pull task's lease. The worker can use this method to cancel a task's
|
658
656
|
# lease by setting its schedule_time to now. This will make the task available
|
659
657
|
# 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.25.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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.25.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: []
|