google-apis-cloudtasks_v2beta2 0.37.0 → 0.38.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 +4 -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 +84 -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: 67ba36f234ae86326cb2eff11b7265a82acb65983d568eedbced72ee4372f525
|
4
|
+
data.tar.gz: 9bf2c1e9c19d902e14a877984f3679ed15cb2ef9d7d732256d36465fc05ba6d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fb1135fceb37d95c01bb90729734917ceafc9da012262d0de9aa80042f04bbefc145cd5c4ad27cac11d3a832d72352e15915952ddf4d820c8406b5ab6bf6310
|
7
|
+
data.tar.gz: 252f054e16df029e51e173d79fec9544cf1bddf32f768d0ca6d8eeb27133a2710aca70e94f185cdef3b239a9dbfda7b5210feb388e6695233c1c18737a501376
|
data/CHANGELOG.md
CHANGED
@@ -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.38.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 = "20230906"
|
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,46 @@ 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] projects_id
|
200
|
+
# @param [String] locations_id
|
201
|
+
# @param [Google::Apis::CloudtasksV2beta2::CmekConfig] cmek_config_object
|
202
|
+
# @param [String] update_mask
|
203
|
+
# List of fields to be updated in this request.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::CmekConfig] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::CloudtasksV2beta2::CmekConfig]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def update_project_location_cmek_config(projects_id, locations_id, cmek_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:patch, 'v2beta2/projects/{projectsId}/locations/{locationsId}/cmekConfig', options)
|
223
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::CmekConfig::Representation
|
224
|
+
command.request_object = cmek_config_object
|
225
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::CmekConfig::Representation
|
226
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::CmekConfig
|
227
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
228
|
+
command.params['locationsId'] = locations_id unless locations_id.nil?
|
229
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
232
|
+
execute_or_queue_command(command, &block)
|
233
|
+
end
|
234
|
+
|
163
235
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
164
236
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
165
237
|
# regardless of whether it was dispatched or not. WARNING: Using this method may
|
@@ -202,11 +274,18 @@ module Google
|
|
202
274
|
end
|
203
275
|
|
204
276
|
# 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
|
-
#
|
277
|
+
# Note: If you delete a queue, you may be prevented from creating a new queue
|
278
|
+
# with the same name as the deleted queue for a tombstone window of up to 3 days.
|
279
|
+
# During this window, the CreateQueue operation may appear to recreate the
|
280
|
+
# queue, but this can be misleading. If you attempt to create a queue with the
|
281
|
+
# same name as one that is in the tombstone window, run GetQueue to confirm that
|
282
|
+
# the queue creation was successful. If GetQueue returns 200 response code, your
|
283
|
+
# queue was successfully created with the name of the previously deleted queue.
|
284
|
+
# Otherwise, your queue did not successfully recreate. WARNING: Using this
|
285
|
+
# method may have unintended side effects if you are using an App Engine `queue.
|
286
|
+
# yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue
|
287
|
+
# Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
288
|
+
# before using this method.
|
210
289
|
# @param [String] name
|
211
290
|
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
212
291
|
# 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.38.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-09-17 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.38.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: []
|