google-cloud-managed_kafka-v1 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/client.rb +1887 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/credentials.rb +47 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/operations.rb +813 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/paths.rb +109 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest/client.rb +1771 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest/operations.rb +914 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest/service_stub.rb +943 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest.rb +55 -0
- data/lib/google/cloud/managed_kafka/v1/managed_kafka_connect.rb +57 -0
- data/lib/google/cloud/managed_kafka/v1/rest.rb +1 -0
- data/lib/google/cloud/managed_kafka/v1/version.rb +1 -1
- data/lib/google/cloud/managed_kafka/v1.rb +1 -0
- data/lib/google/cloud/managedkafka/v1/managed_kafka_connect_pb.rb +73 -0
- data/lib/google/cloud/managedkafka/v1/managed_kafka_connect_services_pb.rb +72 -0
- data/lib/google/cloud/managedkafka/v1/resources_pb.rb +11 -1
- data/proto_docs/google/cloud/managedkafka/v1/managed_kafka_connect.rb +344 -0
- data/proto_docs/google/cloud/managedkafka/v1/resources.rb +209 -0
- metadata +14 -2
@@ -0,0 +1,344 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ManagedKafka
|
23
|
+
module V1
|
24
|
+
# Request for GetConnectCluster.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The name of the Kafka Connect cluster whose configuration to
|
28
|
+
# return. Structured like
|
29
|
+
# `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
|
30
|
+
class GetConnectClusterRequest
|
31
|
+
include ::Google::Protobuf::MessageExts
|
32
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
end
|
34
|
+
|
35
|
+
# Request for CreateConnectCluster.
|
36
|
+
# @!attribute [rw] parent
|
37
|
+
# @return [::String]
|
38
|
+
# Required. The parent project/location in which to create the Kafka Connect
|
39
|
+
# cluster. Structured like
|
40
|
+
# `projects/{project}/locations/{location}/`.
|
41
|
+
# @!attribute [rw] connect_cluster_id
|
42
|
+
# @return [::String]
|
43
|
+
# Required. The ID to use for the Connect cluster, which will become the
|
44
|
+
# final component of the cluster's name. The ID must be 1-63 characters long,
|
45
|
+
# and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply
|
46
|
+
# with RFC 1035.
|
47
|
+
#
|
48
|
+
# This value is structured like: `my-cluster-id`.
|
49
|
+
# @!attribute [rw] connect_cluster
|
50
|
+
# @return [::Google::Cloud::ManagedKafka::V1::ConnectCluster]
|
51
|
+
# Required. Configuration of the Kafka Connect cluster to create. Its `name`
|
52
|
+
# field is ignored.
|
53
|
+
# @!attribute [rw] request_id
|
54
|
+
# @return [::String]
|
55
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
56
|
+
# request ID to avoid duplication of requests. If a request times out or
|
57
|
+
# fails, retrying with the same ID allows the server to recognize the
|
58
|
+
# previous attempt. For at least 60 minutes, the server ignores duplicate
|
59
|
+
# requests bearing the same ID.
|
60
|
+
#
|
61
|
+
# For example, consider a situation where you make an initial request and the
|
62
|
+
# request times out. If you make the request again with the same request ID
|
63
|
+
# within 60 minutes of the last request, the server checks if an original
|
64
|
+
# operation with the same request ID was received. If so, the server ignores
|
65
|
+
# the second request.
|
66
|
+
#
|
67
|
+
# The request ID must be a valid UUID. A zero UUID is not supported
|
68
|
+
# (00000000-0000-0000-0000-000000000000).
|
69
|
+
class CreateConnectClusterRequest
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# Request for UpdateConnectCluster.
|
75
|
+
# @!attribute [rw] update_mask
|
76
|
+
# @return [::Google::Protobuf::FieldMask]
|
77
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
78
|
+
# cluster resource by the update. The fields specified in the update_mask are
|
79
|
+
# relative to the resource, not the full request. A field will be overwritten
|
80
|
+
# if it is in the mask. The mask is required and a value of * will update all
|
81
|
+
# fields.
|
82
|
+
# @!attribute [rw] connect_cluster
|
83
|
+
# @return [::Google::Cloud::ManagedKafka::V1::ConnectCluster]
|
84
|
+
# Required. The Kafka Connect cluster to update. Its `name` field must be
|
85
|
+
# populated.
|
86
|
+
# @!attribute [rw] request_id
|
87
|
+
# @return [::String]
|
88
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
89
|
+
# request ID to avoid duplication of requests. If a request times out or
|
90
|
+
# fails, retrying with the same ID allows the server to recognize the
|
91
|
+
# previous attempt. For at least 60 minutes, the server ignores duplicate
|
92
|
+
# requests bearing the same ID.
|
93
|
+
#
|
94
|
+
# For example, consider a situation where you make an initial request and the
|
95
|
+
# request times out. If you make the request again with the same request ID
|
96
|
+
# within 60 minutes of the last request, the server checks if an original
|
97
|
+
# operation with the same request ID was received. If so, the server ignores
|
98
|
+
# the second request.
|
99
|
+
#
|
100
|
+
# The request ID must be a valid UUID. A zero UUID is not supported
|
101
|
+
# (00000000-0000-0000-0000-000000000000).
|
102
|
+
class UpdateConnectClusterRequest
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# Request for DeleteConnectCluster.
|
108
|
+
# @!attribute [rw] name
|
109
|
+
# @return [::String]
|
110
|
+
# Required. The name of the Kafka Connect cluster to delete.
|
111
|
+
# Structured like
|
112
|
+
# `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
|
113
|
+
# @!attribute [rw] request_id
|
114
|
+
# @return [::String]
|
115
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
116
|
+
# request ID to avoid duplication of requests. If a request times out or
|
117
|
+
# fails, retrying with the same ID allows the server to recognize the
|
118
|
+
# previous attempt. For at least 60 minutes, the server ignores duplicate
|
119
|
+
# requests bearing the same ID.
|
120
|
+
#
|
121
|
+
# For example, consider a situation where you make an initial request and the
|
122
|
+
# request times out. If you make the request again with the same request ID
|
123
|
+
# within 60 minutes of the last request, the server checks if an original
|
124
|
+
# operation with the same request ID was received. If so, the server ignores
|
125
|
+
# the second request.
|
126
|
+
#
|
127
|
+
# The request ID must be a valid UUID. A zero UUID is not supported
|
128
|
+
# (00000000-0000-0000-0000-000000000000).
|
129
|
+
class DeleteConnectClusterRequest
|
130
|
+
include ::Google::Protobuf::MessageExts
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
|
+
end
|
133
|
+
|
134
|
+
# Request for ListConnectClusters.
|
135
|
+
# @!attribute [rw] parent
|
136
|
+
# @return [::String]
|
137
|
+
# Required. The parent project/location whose Connect clusters are to be
|
138
|
+
# listed. Structured like `projects/{project}/locations/{location}`.
|
139
|
+
# @!attribute [rw] page_size
|
140
|
+
# @return [::Integer]
|
141
|
+
# Optional. The maximum number of Connect clusters to return. The service may
|
142
|
+
# return fewer than this value. If unspecified, server will pick an
|
143
|
+
# appropriate default.
|
144
|
+
# @!attribute [rw] page_token
|
145
|
+
# @return [::String]
|
146
|
+
# Optional. A page token, received from a previous `ListConnectClusters`
|
147
|
+
# call. Provide this to retrieve the subsequent page.
|
148
|
+
#
|
149
|
+
# When paginating, all other parameters provided to `ListConnectClusters`
|
150
|
+
# must match the call that provided the page token.
|
151
|
+
# @!attribute [rw] filter
|
152
|
+
# @return [::String]
|
153
|
+
# Optional. Filter expression for the result.
|
154
|
+
# @!attribute [rw] order_by
|
155
|
+
# @return [::String]
|
156
|
+
# Optional. Order by fields for the result.
|
157
|
+
class ListConnectClustersRequest
|
158
|
+
include ::Google::Protobuf::MessageExts
|
159
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
160
|
+
end
|
161
|
+
|
162
|
+
# Response for ListConnectClusters.
|
163
|
+
# @!attribute [rw] connect_clusters
|
164
|
+
# @return [::Array<::Google::Cloud::ManagedKafka::V1::ConnectCluster>]
|
165
|
+
# The list of Connect clusters in the requested parent.
|
166
|
+
# @!attribute [rw] next_page_token
|
167
|
+
# @return [::String]
|
168
|
+
# A token that can be sent as `page_token` to retrieve the next page of
|
169
|
+
# results. If this field is omitted, there are no more results.
|
170
|
+
# @!attribute [rw] unreachable
|
171
|
+
# @return [::Array<::String>]
|
172
|
+
# Locations that could not be reached.
|
173
|
+
class ListConnectClustersResponse
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
end
|
177
|
+
|
178
|
+
# Request for GetConnector.
|
179
|
+
# @!attribute [rw] name
|
180
|
+
# @return [::String]
|
181
|
+
# Required. The name of the connector whose configuration to return.
|
182
|
+
# Structured like:
|
183
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connectCluster}/connectors/\\{connector}
|
184
|
+
class GetConnectorRequest
|
185
|
+
include ::Google::Protobuf::MessageExts
|
186
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
187
|
+
end
|
188
|
+
|
189
|
+
# Request for CreateConnector.
|
190
|
+
# @!attribute [rw] parent
|
191
|
+
# @return [::String]
|
192
|
+
# Required. The parent Connect cluster in which to create the connector.
|
193
|
+
# Structured like
|
194
|
+
# `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
|
195
|
+
# @!attribute [rw] connector_id
|
196
|
+
# @return [::String]
|
197
|
+
# Required. The ID to use for the connector, which will become the final
|
198
|
+
# component of the connector's name. The ID must be 1-63 characters long, and
|
199
|
+
# match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
|
200
|
+
# RFC 1035.
|
201
|
+
#
|
202
|
+
# This value is structured like: `my-connector-id`.
|
203
|
+
# @!attribute [rw] connector
|
204
|
+
# @return [::Google::Cloud::ManagedKafka::V1::Connector]
|
205
|
+
# Required. The connector to create.
|
206
|
+
class CreateConnectorRequest
|
207
|
+
include ::Google::Protobuf::MessageExts
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
|
211
|
+
# Request for UpdateConnector.
|
212
|
+
# @!attribute [rw] update_mask
|
213
|
+
# @return [::Google::Protobuf::FieldMask]
|
214
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
215
|
+
# cluster resource by the update. The fields specified in the update_mask are
|
216
|
+
# relative to the resource, not the full request. A field will be overwritten
|
217
|
+
# if it is in the mask. The mask is required and a value of * will update all
|
218
|
+
# fields.
|
219
|
+
# @!attribute [rw] connector
|
220
|
+
# @return [::Google::Cloud::ManagedKafka::V1::Connector]
|
221
|
+
# Required. The connector to update. Its `name` field must be populated.
|
222
|
+
class UpdateConnectorRequest
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
end
|
226
|
+
|
227
|
+
# Request for DeleteConnector.
|
228
|
+
# @!attribute [rw] name
|
229
|
+
# @return [::String]
|
230
|
+
# Required. The name of the connector to delete.
|
231
|
+
# Structured like:
|
232
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connectCluster}/connectors/\\{connector}
|
233
|
+
class DeleteConnectorRequest
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
237
|
+
|
238
|
+
# Request for ListConnectors.
|
239
|
+
# @!attribute [rw] parent
|
240
|
+
# @return [::String]
|
241
|
+
# Required. The parent Connect cluster whose connectors are to be listed.
|
242
|
+
# Structured like
|
243
|
+
# `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
|
244
|
+
# @!attribute [rw] page_size
|
245
|
+
# @return [::Integer]
|
246
|
+
# Optional. The maximum number of connectors to return. The service may
|
247
|
+
# return fewer than this value. If unspecified, server will pick an
|
248
|
+
# appropriate default.
|
249
|
+
# @!attribute [rw] page_token
|
250
|
+
# @return [::String]
|
251
|
+
# Optional. A page token, received from a previous `ListConnectors` call.
|
252
|
+
# Provide this to retrieve the subsequent page.
|
253
|
+
#
|
254
|
+
# When paginating, all other parameters provided to `ListConnectors`
|
255
|
+
# must match the call that provided the page token.
|
256
|
+
class ListConnectorsRequest
|
257
|
+
include ::Google::Protobuf::MessageExts
|
258
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
259
|
+
end
|
260
|
+
|
261
|
+
# Response for ListConnectors.
|
262
|
+
# @!attribute [rw] connectors
|
263
|
+
# @return [::Array<::Google::Cloud::ManagedKafka::V1::Connector>]
|
264
|
+
# The list of connectors in the requested parent.
|
265
|
+
# @!attribute [rw] next_page_token
|
266
|
+
# @return [::String]
|
267
|
+
# A token that can be sent as `page_token` to retrieve the next page of
|
268
|
+
# results. If this field is omitted, there are no more results.
|
269
|
+
class ListConnectorsResponse
|
270
|
+
include ::Google::Protobuf::MessageExts
|
271
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
272
|
+
end
|
273
|
+
|
274
|
+
# Request for PauseConnector.
|
275
|
+
# @!attribute [rw] name
|
276
|
+
# @return [::String]
|
277
|
+
# Required. The name of the connector to pause.
|
278
|
+
# Structured like:
|
279
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connectCluster}/connectors/\\{connector}
|
280
|
+
class PauseConnectorRequest
|
281
|
+
include ::Google::Protobuf::MessageExts
|
282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
|
+
end
|
284
|
+
|
285
|
+
# Response for PauseConnector.
|
286
|
+
class PauseConnectorResponse
|
287
|
+
include ::Google::Protobuf::MessageExts
|
288
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
289
|
+
end
|
290
|
+
|
291
|
+
# Request for ResumeConnector.
|
292
|
+
# @!attribute [rw] name
|
293
|
+
# @return [::String]
|
294
|
+
# Required. The name of the connector to pause.
|
295
|
+
# Structured like:
|
296
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connectCluster}/connectors/\\{connector}
|
297
|
+
class ResumeConnectorRequest
|
298
|
+
include ::Google::Protobuf::MessageExts
|
299
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
300
|
+
end
|
301
|
+
|
302
|
+
# Response for ResumeConnector.
|
303
|
+
class ResumeConnectorResponse
|
304
|
+
include ::Google::Protobuf::MessageExts
|
305
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
306
|
+
end
|
307
|
+
|
308
|
+
# Request for RestartConnector.
|
309
|
+
# @!attribute [rw] name
|
310
|
+
# @return [::String]
|
311
|
+
# Required. The name of the connector to restart.
|
312
|
+
# Structured like:
|
313
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connectCluster}/connectors/\\{connector}
|
314
|
+
class RestartConnectorRequest
|
315
|
+
include ::Google::Protobuf::MessageExts
|
316
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
317
|
+
end
|
318
|
+
|
319
|
+
# Response for RestartConnector.
|
320
|
+
class RestartConnectorResponse
|
321
|
+
include ::Google::Protobuf::MessageExts
|
322
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
323
|
+
end
|
324
|
+
|
325
|
+
# Request for StopConnector.
|
326
|
+
# @!attribute [rw] name
|
327
|
+
# @return [::String]
|
328
|
+
# Required. The name of the connector to stop.
|
329
|
+
# Structured like:
|
330
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connectCluster}/connectors/\\{connector}
|
331
|
+
class StopConnectorRequest
|
332
|
+
include ::Google::Protobuf::MessageExts
|
333
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
334
|
+
end
|
335
|
+
|
336
|
+
# Response for StopConnector.
|
337
|
+
class StopConnectorResponse
|
338
|
+
include ::Google::Protobuf::MessageExts
|
339
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
340
|
+
end
|
341
|
+
end
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
@@ -286,6 +286,215 @@ module Google
|
|
286
286
|
include ::Google::Protobuf::MessageExts
|
287
287
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
288
288
|
end
|
289
|
+
|
290
|
+
# An Apache Kafka Connect cluster deployed in a location.
|
291
|
+
# @!attribute [rw] gcp_config
|
292
|
+
# @return [::Google::Cloud::ManagedKafka::V1::ConnectGcpConfig]
|
293
|
+
# Required. Configuration properties for a Kafka Connect cluster deployed
|
294
|
+
# to Google Cloud Platform.
|
295
|
+
# @!attribute [rw] name
|
296
|
+
# @return [::String]
|
297
|
+
# Identifier. The name of the Kafka Connect cluster. Structured like:
|
298
|
+
# projects/\\{project_number}/locations/\\{location}/connectClusters/\\{connect_cluster_id}
|
299
|
+
# @!attribute [rw] kafka_cluster
|
300
|
+
# @return [::String]
|
301
|
+
# Required. Immutable. The name of the Kafka cluster this Kafka Connect
|
302
|
+
# cluster is attached to. Structured like:
|
303
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}
|
304
|
+
# @!attribute [r] create_time
|
305
|
+
# @return [::Google::Protobuf::Timestamp]
|
306
|
+
# Output only. The time when the cluster was created.
|
307
|
+
# @!attribute [r] update_time
|
308
|
+
# @return [::Google::Protobuf::Timestamp]
|
309
|
+
# Output only. The time when the cluster was last updated.
|
310
|
+
# @!attribute [rw] labels
|
311
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
312
|
+
# Optional. Labels as key value pairs.
|
313
|
+
# @!attribute [rw] capacity_config
|
314
|
+
# @return [::Google::Cloud::ManagedKafka::V1::CapacityConfig]
|
315
|
+
# Required. Capacity configuration for the Kafka Connect cluster.
|
316
|
+
# @!attribute [r] state
|
317
|
+
# @return [::Google::Cloud::ManagedKafka::V1::ConnectCluster::State]
|
318
|
+
# Output only. The current state of the cluster.
|
319
|
+
# @!attribute [rw] config
|
320
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
321
|
+
# Optional. Configurations for the worker that are overridden from the
|
322
|
+
# defaults. The key of the map is a Kafka Connect worker property name, for
|
323
|
+
# example: `exactly.once.source.support`.
|
324
|
+
class ConnectCluster
|
325
|
+
include ::Google::Protobuf::MessageExts
|
326
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
327
|
+
|
328
|
+
# @!attribute [rw] key
|
329
|
+
# @return [::String]
|
330
|
+
# @!attribute [rw] value
|
331
|
+
# @return [::String]
|
332
|
+
class LabelsEntry
|
333
|
+
include ::Google::Protobuf::MessageExts
|
334
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
335
|
+
end
|
336
|
+
|
337
|
+
# @!attribute [rw] key
|
338
|
+
# @return [::String]
|
339
|
+
# @!attribute [rw] value
|
340
|
+
# @return [::String]
|
341
|
+
class ConfigEntry
|
342
|
+
include ::Google::Protobuf::MessageExts
|
343
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
344
|
+
end
|
345
|
+
|
346
|
+
# The state of the cluster.
|
347
|
+
module State
|
348
|
+
# A state was not specified.
|
349
|
+
STATE_UNSPECIFIED = 0
|
350
|
+
|
351
|
+
# The cluster is being created.
|
352
|
+
CREATING = 1
|
353
|
+
|
354
|
+
# The cluster is active.
|
355
|
+
ACTIVE = 2
|
356
|
+
|
357
|
+
# The cluster is being deleted.
|
358
|
+
DELETING = 3
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
# The configuration of a Virtual Private Cloud (VPC) network that can access
|
363
|
+
# the Kafka Connect cluster.
|
364
|
+
# @!attribute [rw] primary_subnet
|
365
|
+
# @return [::String]
|
366
|
+
# Required. VPC subnet to make available to the Kafka Connect cluster.
|
367
|
+
# Structured like:
|
368
|
+
# projects/\\{project}/regions/\\{region}/subnetworks/\\{subnet_id}
|
369
|
+
#
|
370
|
+
# It is used to create a Private Service Connect (PSC) interface for the
|
371
|
+
# Kafka Connect workers. It must be located in the same region as the
|
372
|
+
# Kafka Connect cluster.
|
373
|
+
#
|
374
|
+
# The CIDR range of the subnet must be within the IPv4 address ranges for
|
375
|
+
# private networks, as specified in RFC 1918. The primary subnet CIDR range
|
376
|
+
# must have a minimum size of /22 (1024 addresses).
|
377
|
+
# @!attribute [rw] additional_subnets
|
378
|
+
# @return [::Array<::String>]
|
379
|
+
# Optional. Additional subnets may be specified. They may be in another
|
380
|
+
# region, but must be in the same VPC network. The Connect workers can
|
381
|
+
# communicate with network endpoints in either the primary or additional
|
382
|
+
# subnets.
|
383
|
+
# @!attribute [rw] dns_domain_names
|
384
|
+
# @return [::Array<::String>]
|
385
|
+
# Optional. Additional DNS domain names from the subnet's network to be made
|
386
|
+
# visible to the Connect Cluster. When using MirrorMaker2, it's necessary to
|
387
|
+
# add the bootstrap address's dns domain name of the target cluster to make
|
388
|
+
# it visible to the connector. For example:
|
389
|
+
# my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
|
390
|
+
class ConnectNetworkConfig
|
391
|
+
include ::Google::Protobuf::MessageExts
|
392
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
393
|
+
end
|
394
|
+
|
395
|
+
# The configuration of access to the Kafka Connect cluster.
|
396
|
+
# @!attribute [rw] network_configs
|
397
|
+
# @return [::Array<::Google::Cloud::ManagedKafka::V1::ConnectNetworkConfig>]
|
398
|
+
# Required.
|
399
|
+
# Virtual Private Cloud (VPC) networks that must be granted direct access to
|
400
|
+
# the Kafka Connect cluster. Minimum of 1 network is required. Maximum 10
|
401
|
+
# networks can be specified.
|
402
|
+
class ConnectAccessConfig
|
403
|
+
include ::Google::Protobuf::MessageExts
|
404
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
405
|
+
end
|
406
|
+
|
407
|
+
# Configuration properties for a Kafka Connect cluster deployed to Google Cloud
|
408
|
+
# Platform.
|
409
|
+
# @!attribute [rw] access_config
|
410
|
+
# @return [::Google::Cloud::ManagedKafka::V1::ConnectAccessConfig]
|
411
|
+
# Required. Access configuration for the Kafka Connect cluster.
|
412
|
+
# @!attribute [rw] secret_paths
|
413
|
+
# @return [::Array<::String>]
|
414
|
+
# Optional. Secrets to load into workers. Exact SecretVersions from Secret
|
415
|
+
# Manager must be provided -- aliases are not supported. Up to 32 secrets may
|
416
|
+
# be loaded into one cluster. Format:
|
417
|
+
# projects/<project-id>/secrets/<secret-name>/versions/<version-id>
|
418
|
+
class ConnectGcpConfig
|
419
|
+
include ::Google::Protobuf::MessageExts
|
420
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
421
|
+
end
|
422
|
+
|
423
|
+
# A Kafka Connect connector in a given ConnectCluster.
|
424
|
+
# @!attribute [rw] task_restart_policy
|
425
|
+
# @return [::Google::Cloud::ManagedKafka::V1::TaskRetryPolicy]
|
426
|
+
# Optional. Restarts the individual tasks of a Connector.
|
427
|
+
# @!attribute [rw] name
|
428
|
+
# @return [::String]
|
429
|
+
# Identifier. The name of the connector.
|
430
|
+
# Structured like:
|
431
|
+
# projects/\\{project}/locations/\\{location}/connectClusters/\\{connect_cluster}/connectors/\\{connector}
|
432
|
+
# @!attribute [rw] configs
|
433
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
434
|
+
# Optional. Connector config as keys/values.
|
435
|
+
# The keys of the map are connector property names, for example:
|
436
|
+
# `connector.class`, `tasks.max`, `key.converter`.
|
437
|
+
# @!attribute [r] state
|
438
|
+
# @return [::Google::Cloud::ManagedKafka::V1::Connector::State]
|
439
|
+
# Output only. The current state of the connector.
|
440
|
+
class Connector
|
441
|
+
include ::Google::Protobuf::MessageExts
|
442
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
443
|
+
|
444
|
+
# @!attribute [rw] key
|
445
|
+
# @return [::String]
|
446
|
+
# @!attribute [rw] value
|
447
|
+
# @return [::String]
|
448
|
+
class ConfigsEntry
|
449
|
+
include ::Google::Protobuf::MessageExts
|
450
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
451
|
+
end
|
452
|
+
|
453
|
+
# The state of the connector.
|
454
|
+
module State
|
455
|
+
# A state was not specified.
|
456
|
+
STATE_UNSPECIFIED = 0
|
457
|
+
|
458
|
+
# The connector is not assigned to any tasks, usually transient.
|
459
|
+
UNASSIGNED = 1
|
460
|
+
|
461
|
+
# The connector is running.
|
462
|
+
RUNNING = 2
|
463
|
+
|
464
|
+
# The connector has been paused.
|
465
|
+
PAUSED = 3
|
466
|
+
|
467
|
+
# The connector has failed. See logs for why.
|
468
|
+
FAILED = 4
|
469
|
+
|
470
|
+
# The connector is restarting.
|
471
|
+
RESTARTING = 5
|
472
|
+
|
473
|
+
# The connector has been stopped.
|
474
|
+
STOPPED = 6
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
478
|
+
# Task Retry Policy is implemented on a best-effort
|
479
|
+
# basis.
|
480
|
+
# Retry delay will be exponential based on provided minimum and maximum
|
481
|
+
# backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
|
482
|
+
# Note that the delay between consecutive task restarts may not always
|
483
|
+
# precisely match the configured settings. This can happen when the
|
484
|
+
# ConnectCluster is in rebalancing state or if the ConnectCluster is
|
485
|
+
# unresponsive etc.
|
486
|
+
# @!attribute [rw] minimum_backoff
|
487
|
+
# @return [::Google::Protobuf::Duration]
|
488
|
+
# Optional. The minimum amount of time to wait before retrying a failed task.
|
489
|
+
# This sets a lower bound for the backoff delay.
|
490
|
+
# @!attribute [rw] maximum_backoff
|
491
|
+
# @return [::Google::Protobuf::Duration]
|
492
|
+
# Optional. The maximum amount of time to wait before retrying a failed task.
|
493
|
+
# This sets an upper bound for the backoff delay.
|
494
|
+
class TaskRetryPolicy
|
495
|
+
include ::Google::Protobuf::MessageExts
|
496
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
497
|
+
end
|
289
498
|
end
|
290
499
|
end
|
291
500
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-managed_kafka-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: gapic-common
|
@@ -88,8 +88,19 @@ files:
|
|
88
88
|
- lib/google/cloud/managed_kafka/v1/managed_kafka/rest/client.rb
|
89
89
|
- lib/google/cloud/managed_kafka/v1/managed_kafka/rest/operations.rb
|
90
90
|
- lib/google/cloud/managed_kafka/v1/managed_kafka/rest/service_stub.rb
|
91
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect.rb
|
92
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/client.rb
|
93
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/credentials.rb
|
94
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/operations.rb
|
95
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/paths.rb
|
96
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest.rb
|
97
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest/client.rb
|
98
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest/operations.rb
|
99
|
+
- lib/google/cloud/managed_kafka/v1/managed_kafka_connect/rest/service_stub.rb
|
91
100
|
- lib/google/cloud/managed_kafka/v1/rest.rb
|
92
101
|
- lib/google/cloud/managed_kafka/v1/version.rb
|
102
|
+
- lib/google/cloud/managedkafka/v1/managed_kafka_connect_pb.rb
|
103
|
+
- lib/google/cloud/managedkafka/v1/managed_kafka_connect_services_pb.rb
|
93
104
|
- lib/google/cloud/managedkafka/v1/managed_kafka_pb.rb
|
94
105
|
- lib/google/cloud/managedkafka/v1/managed_kafka_services_pb.rb
|
95
106
|
- lib/google/cloud/managedkafka/v1/resources_pb.rb
|
@@ -100,6 +111,7 @@ files:
|
|
100
111
|
- proto_docs/google/api/launch_stage.rb
|
101
112
|
- proto_docs/google/api/resource.rb
|
102
113
|
- proto_docs/google/cloud/managedkafka/v1/managed_kafka.rb
|
114
|
+
- proto_docs/google/cloud/managedkafka/v1/managed_kafka_connect.rb
|
103
115
|
- proto_docs/google/cloud/managedkafka/v1/resources.rb
|
104
116
|
- proto_docs/google/longrunning/operations.rb
|
105
117
|
- proto_docs/google/protobuf/any.rb
|