google-apis-cloudtasks_v2beta2 0.37.0 → 0.39.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 +31 -0
- data/lib/google/apis/cloudtasks_v2beta2/gem_version.rb +2 -2
- data/lib/google/apis/cloudtasks_v2beta2/representations.rb +14 -0
- data/lib/google/apis/cloudtasks_v2beta2/service.rb +85 -5
- 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: 608bbadfd343740697cc5e3b4c76ccf1a266a8db0de0bab382857f2cccc685e6
|
4
|
+
data.tar.gz: cc17ef1b3e1262fa69dcbc2b18e7e64e9476fbeb6c1b8a378d09a6abd349a127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4066f111a1223b633f2ab69702f1956f43304dd1f63f96d919322686fe3e2456745ef0ca7ffba293a66001c55de15154fe4dc81e211c8f7d5be0c2d88f8996b
|
7
|
+
data.tar.gz: 952206902e717caca8303dd6f6bdff84cc79e0ff55d0c573a62a7a519033d443e280b664ac1132266143b571f25e08f8adeea8515a818a5e32d7cc236fc826dc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta2
|
2
2
|
|
3
|
+
### v0.39.0 (2023-10-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230929
|
6
|
+
|
7
|
+
### v0.38.0 (2023-09-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230906
|
10
|
+
|
3
11
|
### v0.37.0 (2023-08-27)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230809
|
@@ -487,6 +487,37 @@ module Google
|
|
487
487
|
end
|
488
488
|
end
|
489
489
|
|
490
|
+
# CMEK, or Customer Managed Encryption Keys, enables GCP products to put control
|
491
|
+
# over encryption and key management in their customer’s hands.
|
492
|
+
class CmekConfig
|
493
|
+
include Google::Apis::Core::Hashable
|
494
|
+
|
495
|
+
# Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/
|
496
|
+
# LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to
|
497
|
+
# encrypt the Queues & Tasks in the region. Setting this as blank will turn off
|
498
|
+
# CMEK encryption.
|
499
|
+
# Corresponds to the JSON property `kmsKey`
|
500
|
+
# @return [String]
|
501
|
+
attr_accessor :kms_key
|
502
|
+
|
503
|
+
# Output only. The config resource name which includes the project and location
|
504
|
+
# and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
|
505
|
+
# LOCATION_ID/cmekConfig`
|
506
|
+
# Corresponds to the JSON property `name`
|
507
|
+
# @return [String]
|
508
|
+
attr_accessor :name
|
509
|
+
|
510
|
+
def initialize(**args)
|
511
|
+
update!(**args)
|
512
|
+
end
|
513
|
+
|
514
|
+
# Update properties of this object
|
515
|
+
def update!(**args)
|
516
|
+
@kms_key = args[:kms_key] if args.key?(:kms_key)
|
517
|
+
@name = args[:name] if args.key?(:name)
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
490
521
|
# Request message for CreateTask.
|
491
522
|
class CreateTaskRequest
|
492
523
|
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.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230929"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,12 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class CmekConfig
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
79
85
|
class CreateTaskRequest
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
@@ -392,6 +398,14 @@ module Google
|
|
392
398
|
end
|
393
399
|
end
|
394
400
|
|
401
|
+
class CmekConfig
|
402
|
+
# @private
|
403
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
404
|
+
property :kms_key, as: 'kmsKey'
|
405
|
+
property :name, as: 'name'
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
395
409
|
class CreateTaskRequest
|
396
410
|
# @private
|
397
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -117,6 +117,38 @@ module Google
|
|
117
117
|
execute_or_queue_command(command, &block)
|
118
118
|
end
|
119
119
|
|
120
|
+
# Gets the CMEK config. Gets the Customer Managed Encryption Key configured with
|
121
|
+
# the Cloud Tasks lcoation. By default there is no kms_key configured.
|
122
|
+
# @param [String] name
|
123
|
+
# Required. The config. For example: projects/PROJECT_ID/locations/LOCATION_ID/
|
124
|
+
# CmekConfig`
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::CmekConfig] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::CloudtasksV2beta2::CmekConfig]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def get_project_location_cmek_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
144
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::CmekConfig::Representation
|
145
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::CmekConfig
|
146
|
+
command.params['name'] = name unless name.nil?
|
147
|
+
command.query['fields'] = fields unless fields.nil?
|
148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
149
|
+
execute_or_queue_command(command, &block)
|
150
|
+
end
|
151
|
+
|
120
152
|
# Lists information about the supported locations for this service.
|
121
153
|
# @param [String] name
|
122
154
|
# The resource that owns the locations collection, if applicable.
|
@@ -160,6 +192,47 @@ module Google
|
|
160
192
|
execute_or_queue_command(command, &block)
|
161
193
|
end
|
162
194
|
|
195
|
+
# Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key
|
196
|
+
# assotiated with the Cloud Tasks location (Creates if the key does not already
|
197
|
+
# exist). All new tasks created in the location will be encrypted at-rest with
|
198
|
+
# the KMS-key provided in the config.
|
199
|
+
# @param [String] name
|
200
|
+
# Output only. The config resource name which includes the project and location
|
201
|
+
# and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
|
202
|
+
# LOCATION_ID/cmekConfig`
|
203
|
+
# @param [Google::Apis::CloudtasksV2beta2::CmekConfig] cmek_config_object
|
204
|
+
# @param [String] update_mask
|
205
|
+
# List of fields to be updated in this request.
|
206
|
+
# @param [String] fields
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
208
|
+
# @param [String] quota_user
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
212
|
+
# Request-specific options
|
213
|
+
#
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
215
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::CmekConfig] parsed result object
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
217
|
+
#
|
218
|
+
# @return [Google::Apis::CloudtasksV2beta2::CmekConfig]
|
219
|
+
#
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
223
|
+
def update_project_location_cmek_config(name, cmek_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
224
|
+
command = make_simple_command(:patch, 'v2beta2/{+name}', options)
|
225
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::CmekConfig::Representation
|
226
|
+
command.request_object = cmek_config_object
|
227
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::CmekConfig::Representation
|
228
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::CmekConfig
|
229
|
+
command.params['name'] = name unless name.nil?
|
230
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
163
236
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
164
237
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
165
238
|
# regardless of whether it was dispatched or not. WARNING: Using this method may
|
@@ -202,11 +275,18 @@ module Google
|
|
202
275
|
end
|
203
276
|
|
204
277
|
# Deletes a queue. This command will delete the queue even if it has tasks in it.
|
205
|
-
# Note: If you delete a queue,
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
278
|
+
# Note: If you delete a queue, you may be prevented from creating a new queue
|
279
|
+
# with the same name as the deleted queue for a tombstone window of up to 3 days.
|
280
|
+
# During this window, the CreateQueue operation may appear to recreate the
|
281
|
+
# queue, but this can be misleading. If you attempt to create a queue with the
|
282
|
+
# same name as one that is in the tombstone window, run GetQueue to confirm that
|
283
|
+
# the queue creation was successful. If GetQueue returns 200 response code, your
|
284
|
+
# queue was successfully created with the name of the previously deleted queue.
|
285
|
+
# Otherwise, your queue did not successfully recreate. WARNING: Using this
|
286
|
+
# method may have unintended side effects if you are using an App Engine `queue.
|
287
|
+
# yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue
|
288
|
+
# Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
289
|
+
# before using this method.
|
210
290
|
# @param [String] name
|
211
291
|
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
212
292
|
# LOCATION_ID/queues/QUEUE_ID`
|
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.39.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: 2023-
|
11
|
+
date: 2023-10-15 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.39.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: []
|