google-apis-cloudtasks_v2 0.28.0 → 0.30.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: 8784ce6840181675f2b3308c6c9c194e266f5c2bfbe219b56d7af541c8175427
4
- data.tar.gz: 5be51db8342c0ab8dc091b70f104b7fc5d36faab1c0da24d6a83661e44f32a74
3
+ metadata.gz: 6c893e3128b636c60910070c4ebb5634907a1784da408c57009bdbd0e061f0ae
4
+ data.tar.gz: 5d299ea9b70e4189843d34846e51cfc0f8d2fbc773181bb04cc08a47502d091f
5
5
  SHA512:
6
- metadata.gz: e75f236736033fce366ccdd71ffe56c8ee03cbd7e1a8183ee5c4be2839ba4056dfae7431437eb9db2b2c7bc6b8100fe816a70826202878f616d3d5a91c1ca0c4
7
- data.tar.gz: 50146b9bdaa10305e7c024351a4c124f6c71040356852e53d1a0226a968f9ceb0a007fad0aec1c5337eb052f5b1a9820e5d87d4b653851e903ee8997d17cc30e
6
+ metadata.gz: 7f62a76aec9a280f6a33c1c7937b95f31369d000cc45f419936ec4f89b28d4a1bdd0a42bd71d46754abb388960165bb55766eeb67bb06ed1341dc54f86b7dad8
7
+ data.tar.gz: d1eca51a11e1f03edc886198d9966b28f7a7a7b9598c73a3e1c2e71e95fd652e3d30c2361332df798a05c70a13912b80d9f880dc9caf02326a1f266ff026c0f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudtasks_v2
2
2
 
3
+ ### v0.30.0 (2023-10-15)
4
+
5
+ * Regenerated from discovery document revision 20230929
6
+
7
+ ### v0.29.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230906
10
+
3
11
  ### v0.28.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230809
@@ -334,6 +334,37 @@ module Google
334
334
  end
335
335
  end
336
336
 
337
+ # CMEK, or Customer Managed Encryption Keys, enables GCP products to put control
338
+ # over encryption and key management in their customer’s hands.
339
+ class CmekConfig
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/
343
+ # LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to
344
+ # encrypt the Queues & Tasks in the region. Setting this as blank will turn off
345
+ # CMEK encryption.
346
+ # Corresponds to the JSON property `kmsKey`
347
+ # @return [String]
348
+ attr_accessor :kms_key
349
+
350
+ # Output only. The config resource name which includes the project and location
351
+ # and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
352
+ # LOCATION_ID/cmekConfig`
353
+ # Corresponds to the JSON property `name`
354
+ # @return [String]
355
+ attr_accessor :name
356
+
357
+ def initialize(**args)
358
+ update!(**args)
359
+ end
360
+
361
+ # Update properties of this object
362
+ def update!(**args)
363
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
364
+ @name = args[:name] if args.key?(:name)
365
+ end
366
+ end
367
+
337
368
  # Request message for CreateTask.
338
369
  class CreateTaskRequest
339
370
  include Google::Apis::Core::Hashable
@@ -1058,10 +1089,13 @@ module Google
1058
1089
  # A task will be scheduled for retry between min_backoff and max_backoff
1059
1090
  # duration after it fails, if the queue's RetryConfig specifies that the task
1060
1091
  # should be retried. If unspecified when the queue is created, Cloud Tasks will
1061
- # pick the default. `max_backoff` will be truncated to the nearest second. This
1062
- # field has the same meaning as [max_backoff_seconds in queue.yaml/xml](https://
1063
- # cloud.google.com/appengine/docs/standard/python/config/queueref#
1064
- # retry_parameters).
1092
+ # pick the default. The value must be given as a string that indicates the
1093
+ # length of time (in seconds) followed by `s` (for "seconds"). For more
1094
+ # information on the format, see the documentation for [Duration](https://
1095
+ # protobuf.dev/reference/protobuf/google.protobuf/#duration). `max_backoff` will
1096
+ # be truncated to the nearest second. This field has the same meaning as [
1097
+ # max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1098
+ # standard/python/config/queueref#retry_parameters).
1065
1099
  # Corresponds to the JSON property `maxBackoff`
1066
1100
  # @return [String]
1067
1101
  attr_accessor :max_backoff
@@ -1087,10 +1121,14 @@ module Google
1087
1121
  # max_retry_duration` time has passed *and* the task has been attempted
1088
1122
  # max_attempts times, no further attempts will be made and the task will be
1089
1123
  # deleted. If zero, then the task age is unlimited. If unspecified when the
1090
- # queue is created, Cloud Tasks will pick the default. `max_retry_duration` will
1091
- # be truncated to the nearest second. This field has the same meaning as [
1092
- # task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1093
- # standard/python/config/queueref#retry_parameters).
1124
+ # queue is created, Cloud Tasks will pick the default. The value must be given
1125
+ # as a string that indicates the length of time (in seconds) followed by `s` (
1126
+ # for "seconds"). For the maximum possible value or the format, see the
1127
+ # documentation for [Duration](https://protobuf.dev/reference/protobuf/google.
1128
+ # protobuf/#duration). `max_retry_duration` will be truncated to the nearest
1129
+ # second. This field has the same meaning as [task_age_limit in queue.yaml/xml](
1130
+ # https://cloud.google.com/appengine/docs/standard/python/config/queueref#
1131
+ # retry_parameters).
1094
1132
  # Corresponds to the JSON property `maxRetryDuration`
1095
1133
  # @return [String]
1096
1134
  attr_accessor :max_retry_duration
@@ -1098,10 +1136,13 @@ module Google
1098
1136
  # A task will be scheduled for retry between min_backoff and max_backoff
1099
1137
  # duration after it fails, if the queue's RetryConfig specifies that the task
1100
1138
  # should be retried. If unspecified when the queue is created, Cloud Tasks will
1101
- # pick the default. `min_backoff` will be truncated to the nearest second. This
1102
- # field has the same meaning as [min_backoff_seconds in queue.yaml/xml](https://
1103
- # cloud.google.com/appengine/docs/standard/python/config/queueref#
1104
- # retry_parameters).
1139
+ # pick the default. The value must be given as a string that indicates the
1140
+ # length of time (in seconds) followed by `s` (for "seconds"). For more
1141
+ # information on the format, see the documentation for [Duration](https://
1142
+ # protobuf.dev/reference/protobuf/google.protobuf/#duration). `min_backoff` will
1143
+ # be truncated to the nearest second. This field has the same meaning as [
1144
+ # min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1145
+ # standard/python/config/queueref#retry_parameters).
1105
1146
  # Corresponds to the JSON property `minBackoff`
1106
1147
  # @return [String]
1107
1148
  attr_accessor :min_backoff
@@ -1322,8 +1363,11 @@ module Google
1322
1363
  # service's timeout. We recommend setting the `dispatch_deadline` to at most a
1323
1364
  # few seconds more than the app handler's timeout. For more information see [
1324
1365
  # Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#
1325
- # timeouts). `dispatch_deadline` will be truncated to the nearest millisecond.
1326
- # The deadline is an approximate deadline.
1366
+ # timeouts). The value must be given as a string that indicates the length of
1367
+ # time (in seconds) followed by `s` (for "seconds"). For more information on the
1368
+ # format, see the documentation for [Duration](https://protobuf.dev/reference/
1369
+ # protobuf/google.protobuf/#duration). `dispatch_deadline` will be truncated to
1370
+ # the nearest millisecond. The deadline is an approximate deadline.
1327
1371
  # Corresponds to the JSON property `dispatchDeadline`
1328
1372
  # @return [String]
1329
1373
  attr_accessor :dispatch_deadline
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudtasksV2
18
18
  # Version of the google-apis-cloudtasks_v2 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.30.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 = "20230809"
25
+ REVISION = "20230929"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class CmekConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class CreateTaskRequest
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -245,6 +251,14 @@ module Google
245
251
  end
246
252
  end
247
253
 
254
+ class CmekConfig
255
+ # @private
256
+ class Representation < Google::Apis::Core::JsonRepresentation
257
+ property :kms_key, as: 'kmsKey'
258
+ property :name, as: 'name'
259
+ end
260
+ end
261
+
248
262
  class CreateTaskRequest
249
263
  # @private
250
264
  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. For example: projects/PROJECT_ID/locations/LOCATION_ID/
86
+ # 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::CloudtasksV2::CmekConfig] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::CloudtasksV2::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, 'v2/{+name}', options)
106
+ command.response_representation = Google::Apis::CloudtasksV2::CmekConfig::Representation
107
+ command.response_class = Google::Apis::CloudtasksV2::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::CloudtasksV2::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::CloudtasksV2::CmekConfig] parsed result object
178
+ # @yieldparam err [StandardError] error object if request failed
179
+ #
180
+ # @return [Google::Apis::CloudtasksV2::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, 'v2/{+name}', options)
187
+ command.request_representation = Google::Apis::CloudtasksV2::CmekConfig::Representation
188
+ command.request_object = cmek_config_object
189
+ command.response_representation = Google::Apis::CloudtasksV2::CmekConfig::Representation
190
+ command.response_class = Google::Apis::CloudtasksV2::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_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.30.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-08-27 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2
63
63
  post_install_message:
64
64
  rdoc_options: []