google-apis-cloudtasks_v2beta3 0.33.0 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d96e8ba5b01a3e4a9dd339cb4bcae59ca74db55f62dd7dbc8a7b772337d2a4e7
4
- data.tar.gz: 24380391ea19fda9d1c445186093d481f21c475bee33f6a01d22e4a30c19a4b3
3
+ metadata.gz: e48d10e6acbe81f53e271ee7b38778999c649e87b4065ef2190c5654f57f3a38
4
+ data.tar.gz: d0ace2f48f7df8e5438e01e7419606d511807cf38adaf78778bb580a9a73d113
5
5
  SHA512:
6
- metadata.gz: e59b64eebf1c08058fef15e380ffde227993585cdbc660675c68b3feb7c9061fa3d3f89e318f393e9c48867c6986f9ded4a857ea0cd8434e259beb85ec0f0653
7
- data.tar.gz: 0fd0688cea8cf90de49fa7b6fc77540d8c3d2c27c3823769098c2986f72b44eeb9216a4f2d1d501921cf201704f615cf4cf81fb143f342794706e9f8a31faf2d
6
+ metadata.gz: c2794b4b336ba192fe86a4430d0ab934b0b4ad3a2374fbd729833cf189a862617c6eba0b4d0d46835f9f937b32de638bb8c6eeaf3baa86d0b12f64b1a623a5f7
7
+ data.tar.gz: c79562b8ed82523273f3addfbf02da2e46329bc587825ccfd8d876f67efb48655a3919e0b844bdbfcb47ed80db21436ad0edd9ae09f37c71f5eba0cc04966c8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudtasks_v2beta3
2
2
 
3
+ ### v0.35.0 (2023-10-15)
4
+
5
+ * Regenerated from discovery document revision 20230929
6
+
7
+ ### v0.34.0 (2023-10-08)
8
+
9
+ * Regenerated from discovery document revision 20230927
10
+
3
11
  ### v0.33.0 (2023-09-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20230906
@@ -414,6 +414,37 @@ module Google
414
414
  end
415
415
  end
416
416
 
417
+ # CMEK, or Customer Managed Encryption Keys, enables GCP products to put control
418
+ # over encryption and key management in their customer’s hands.
419
+ class CmekConfig
420
+ include Google::Apis::Core::Hashable
421
+
422
+ # Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/
423
+ # LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to
424
+ # encrypt the Queues & Tasks in the region. Setting this as blank will turn off
425
+ # CMEK encryption.
426
+ # Corresponds to the JSON property `kmsKey`
427
+ # @return [String]
428
+ attr_accessor :kms_key
429
+
430
+ # Output only. The config resource name which includes the project and location
431
+ # and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
432
+ # LOCATION_ID/cmekConfig`
433
+ # Corresponds to the JSON property `name`
434
+ # @return [String]
435
+ attr_accessor :name
436
+
437
+ def initialize(**args)
438
+ update!(**args)
439
+ end
440
+
441
+ # Update properties of this object
442
+ def update!(**args)
443
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
444
+ @name = args[:name] if args.key?(:name)
445
+ end
446
+ end
447
+
417
448
  # Request message for CreateTask.
418
449
  class CreateTaskRequest
419
450
  include Google::Apis::Core::Hashable
@@ -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.33.0"
19
+ GEM_VERSION = "0.35.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 = "20230906"
25
+ REVISION = "20230929"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class CmekConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class CreateTaskRequest
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -341,6 +347,14 @@ module Google
341
347
  end
342
348
  end
343
349
 
350
+ class CmekConfig
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ property :kms_key, as: 'kmsKey'
354
+ property :name, as: 'name'
355
+ end
356
+ end
357
+
344
358
  class CreateTaskRequest
345
359
  # @private
346
360
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -79,6 +79,38 @@ module Google
79
79
  execute_or_queue_command(command, &block)
80
80
  end
81
81
 
82
+ # Gets the CMEK config. Gets the Customer Managed Encryption Key configured with
83
+ # the Cloud Tasks lcoation. By default there is no kms_key configured.
84
+ # @param [String] name
85
+ # Required. The config resource name. For example: projects/PROJECT_ID/locations/
86
+ # LOCATION_ID/cmekConfig`
87
+ # @param [String] fields
88
+ # Selector specifying which fields to include in a partial response.
89
+ # @param [String] quota_user
90
+ # Available to use for quota purposes for server-side applications. Can be any
91
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::CloudtasksV2beta3::CmekConfig] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::CloudtasksV2beta3::CmekConfig]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def get_project_location_cmek_config(name, fields: nil, quota_user: nil, options: nil, &block)
105
+ command = make_simple_command(:get, 'v2beta3/{+name}', options)
106
+ command.response_representation = Google::Apis::CloudtasksV2beta3::CmekConfig::Representation
107
+ command.response_class = Google::Apis::CloudtasksV2beta3::CmekConfig
108
+ command.params['name'] = name unless name.nil?
109
+ command.query['fields'] = fields unless fields.nil?
110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
111
+ execute_or_queue_command(command, &block)
112
+ end
113
+
82
114
  # Lists information about the supported locations for this service.
83
115
  # @param [String] name
84
116
  # The resource that owns the locations collection, if applicable.
@@ -122,6 +154,47 @@ module Google
122
154
  execute_or_queue_command(command, &block)
123
155
  end
124
156
 
157
+ # Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key
158
+ # assotiated with the Cloud Tasks location (Creates if the key does not already
159
+ # exist). All new tasks created in the location will be encrypted at-rest with
160
+ # the KMS-key provided in the config.
161
+ # @param [String] name
162
+ # Output only. The config resource name which includes the project and location
163
+ # and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
164
+ # LOCATION_ID/cmekConfig`
165
+ # @param [Google::Apis::CloudtasksV2beta3::CmekConfig] cmek_config_object
166
+ # @param [String] update_mask
167
+ # List of fields to be updated in this request.
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
170
+ # @param [String] quota_user
171
+ # Available to use for quota purposes for server-side applications. Can be any
172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
173
+ # @param [Google::Apis::RequestOptions] options
174
+ # Request-specific options
175
+ #
176
+ # @yield [result, err] Result & error if block supplied
177
+ # @yieldparam result [Google::Apis::CloudtasksV2beta3::CmekConfig] parsed result object
178
+ # @yieldparam err [StandardError] error object if request failed
179
+ #
180
+ # @return [Google::Apis::CloudtasksV2beta3::CmekConfig]
181
+ #
182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
185
+ def update_project_location_cmek_config(name, cmek_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
186
+ command = make_simple_command(:patch, 'v2beta3/{+name}', options)
187
+ command.request_representation = Google::Apis::CloudtasksV2beta3::CmekConfig::Representation
188
+ command.request_object = cmek_config_object
189
+ command.response_representation = Google::Apis::CloudtasksV2beta3::CmekConfig::Representation
190
+ command.response_class = Google::Apis::CloudtasksV2beta3::CmekConfig
191
+ command.params['name'] = name unless name.nil?
192
+ command.query['updateMask'] = update_mask unless update_mask.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ execute_or_queue_command(command, &block)
196
+ end
197
+
125
198
  # Creates a queue. Queues created with this method allow tasks to live for a
126
199
  # maximum of 31 days. After a task is 31 days old, the task will be deleted
127
200
  # regardless of whether it was dispatched or not. WARNING: Using this method may
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudtasks_v2beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.35.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-09-17 00:00:00.000000000 Z
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_v2beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta3
63
63
  post_install_message:
64
64
  rdoc_options: []