google-apis-managedkafka_v1 0.1.0 → 0.3.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3671c6f63f5135adf3c67eb4dd211918899183533d86d88272d82d2f8302cd9
|
4
|
+
data.tar.gz: 0a624c6f128b0aed50770a9f351017fbf050ae1d945638ed345c932fae701501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba10e5a7fe91d99cd36a908f0393b65e1ce00d711dde6fa16bcb0789d32aaff859ef70015b2cd277576f0333136985dfa00df1ae295767975a827d3175caf13f
|
7
|
+
data.tar.gz: b1c85c98750e9c26fc4318757cddbfcec36b2e45f181be5de8bd5f4596c7158b94e36542c580cbb4e43cfefcb8e47dbb61d7e79ed2f2d13ce9400b4e550fd8f1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-managedkafka_v1
|
2
2
|
|
3
|
+
### v0.3.0 (2025-04-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250320
|
6
|
+
|
7
|
+
### v0.2.0 (2025-03-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250313
|
10
|
+
|
3
11
|
### v0.1.0 (2025-03-16)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250306
|
@@ -158,6 +158,216 @@ module Google
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
+
# The configuration of access to the Kafka Connect cluster.
|
162
|
+
class ConnectAccessConfig
|
163
|
+
include Google::Apis::Core::Hashable
|
164
|
+
|
165
|
+
# Required. Virtual Private Cloud (VPC) networks that must be granted direct
|
166
|
+
# access to the Kafka Connect cluster. Minimum of 1 network is required. Maximum
|
167
|
+
# 10 networks can be specified.
|
168
|
+
# Corresponds to the JSON property `networkConfigs`
|
169
|
+
# @return [Array<Google::Apis::ManagedkafkaV1::ConnectNetworkConfig>]
|
170
|
+
attr_accessor :network_configs
|
171
|
+
|
172
|
+
def initialize(**args)
|
173
|
+
update!(**args)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Update properties of this object
|
177
|
+
def update!(**args)
|
178
|
+
@network_configs = args[:network_configs] if args.key?(:network_configs)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# An Apache Kafka Connect cluster deployed in a location.
|
183
|
+
class ConnectCluster
|
184
|
+
include Google::Apis::Core::Hashable
|
185
|
+
|
186
|
+
# A capacity configuration of a Kafka cluster.
|
187
|
+
# Corresponds to the JSON property `capacityConfig`
|
188
|
+
# @return [Google::Apis::ManagedkafkaV1::CapacityConfig]
|
189
|
+
attr_accessor :capacity_config
|
190
|
+
|
191
|
+
# Optional. Configurations for the worker that are overridden from the defaults.
|
192
|
+
# The key of the map is a Kafka Connect worker property name, for example: `
|
193
|
+
# exactly.once.source.support`.
|
194
|
+
# Corresponds to the JSON property `config`
|
195
|
+
# @return [Hash<String,String>]
|
196
|
+
attr_accessor :config
|
197
|
+
|
198
|
+
# Output only. The time when the cluster was created.
|
199
|
+
# Corresponds to the JSON property `createTime`
|
200
|
+
# @return [String]
|
201
|
+
attr_accessor :create_time
|
202
|
+
|
203
|
+
# Configuration properties for a Kafka Connect cluster deployed to Google Cloud
|
204
|
+
# Platform.
|
205
|
+
# Corresponds to the JSON property `gcpConfig`
|
206
|
+
# @return [Google::Apis::ManagedkafkaV1::ConnectGcpConfig]
|
207
|
+
attr_accessor :gcp_config
|
208
|
+
|
209
|
+
# Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster
|
210
|
+
# is attached to. Structured like: projects/`project`/locations/`location`/
|
211
|
+
# clusters/`cluster`
|
212
|
+
# Corresponds to the JSON property `kafkaCluster`
|
213
|
+
# @return [String]
|
214
|
+
attr_accessor :kafka_cluster
|
215
|
+
|
216
|
+
# Optional. Labels as key value pairs.
|
217
|
+
# Corresponds to the JSON property `labels`
|
218
|
+
# @return [Hash<String,String>]
|
219
|
+
attr_accessor :labels
|
220
|
+
|
221
|
+
# Identifier. The name of the Kafka Connect cluster. Structured like: projects/`
|
222
|
+
# project_number`/locations/`location`/connectClusters/`connect_cluster_id`
|
223
|
+
# Corresponds to the JSON property `name`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :name
|
226
|
+
|
227
|
+
# Output only. The current state of the cluster.
|
228
|
+
# Corresponds to the JSON property `state`
|
229
|
+
# @return [String]
|
230
|
+
attr_accessor :state
|
231
|
+
|
232
|
+
# Output only. The time when the cluster was last updated.
|
233
|
+
# Corresponds to the JSON property `updateTime`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :update_time
|
236
|
+
|
237
|
+
def initialize(**args)
|
238
|
+
update!(**args)
|
239
|
+
end
|
240
|
+
|
241
|
+
# Update properties of this object
|
242
|
+
def update!(**args)
|
243
|
+
@capacity_config = args[:capacity_config] if args.key?(:capacity_config)
|
244
|
+
@config = args[:config] if args.key?(:config)
|
245
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
246
|
+
@gcp_config = args[:gcp_config] if args.key?(:gcp_config)
|
247
|
+
@kafka_cluster = args[:kafka_cluster] if args.key?(:kafka_cluster)
|
248
|
+
@labels = args[:labels] if args.key?(:labels)
|
249
|
+
@name = args[:name] if args.key?(:name)
|
250
|
+
@state = args[:state] if args.key?(:state)
|
251
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# Configuration properties for a Kafka Connect cluster deployed to Google Cloud
|
256
|
+
# Platform.
|
257
|
+
class ConnectGcpConfig
|
258
|
+
include Google::Apis::Core::Hashable
|
259
|
+
|
260
|
+
# The configuration of access to the Kafka Connect cluster.
|
261
|
+
# Corresponds to the JSON property `accessConfig`
|
262
|
+
# @return [Google::Apis::ManagedkafkaV1::ConnectAccessConfig]
|
263
|
+
attr_accessor :access_config
|
264
|
+
|
265
|
+
# Optional. Secrets to load into workers. Exact SecretVersions from Secret
|
266
|
+
# Manager must be provided -- aliases are not supported. Up to 32 secrets may be
|
267
|
+
# loaded into one cluster. Format: projects//secrets//versions/
|
268
|
+
# Corresponds to the JSON property `secretPaths`
|
269
|
+
# @return [Array<String>]
|
270
|
+
attr_accessor :secret_paths
|
271
|
+
|
272
|
+
def initialize(**args)
|
273
|
+
update!(**args)
|
274
|
+
end
|
275
|
+
|
276
|
+
# Update properties of this object
|
277
|
+
def update!(**args)
|
278
|
+
@access_config = args[:access_config] if args.key?(:access_config)
|
279
|
+
@secret_paths = args[:secret_paths] if args.key?(:secret_paths)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# The configuration of a Virtual Private Cloud (VPC) network that can access the
|
284
|
+
# Kafka Connect cluster.
|
285
|
+
class ConnectNetworkConfig
|
286
|
+
include Google::Apis::Core::Hashable
|
287
|
+
|
288
|
+
# Optional. Additional subnets may be specified. They may be in another region,
|
289
|
+
# but must be in the same VPC network. The Connect workers can communicate with
|
290
|
+
# network endpoints in either the primary or additional subnets.
|
291
|
+
# Corresponds to the JSON property `additionalSubnets`
|
292
|
+
# @return [Array<String>]
|
293
|
+
attr_accessor :additional_subnets
|
294
|
+
|
295
|
+
# Optional. Additional DNS domain names from the subnet's network to be made
|
296
|
+
# visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add
|
297
|
+
# the bootstrap address's dns domain name of the target cluster to make it
|
298
|
+
# visible to the connector. For example: my-kafka-cluster.us-central1.
|
299
|
+
# managedkafka.my-project.cloud.goog
|
300
|
+
# Corresponds to the JSON property `dnsDomainNames`
|
301
|
+
# @return [Array<String>]
|
302
|
+
attr_accessor :dns_domain_names
|
303
|
+
|
304
|
+
# Required. VPC subnet to make available to the Kafka Connect cluster.
|
305
|
+
# Structured like: projects/`project`/regions/`region`/subnetworks/`subnet_id`
|
306
|
+
# It is used to create a Private Service Connect (PSC) interface for the Kafka
|
307
|
+
# Connect workers. It must be located in the same region as the Kafka Connect
|
308
|
+
# cluster. The CIDR range of the subnet must be within the IPv4 address ranges
|
309
|
+
# for private networks, as specified in RFC 1918. The primary subnet CIDR range
|
310
|
+
# must have a minimum size of /22 (1024 addresses).
|
311
|
+
# Corresponds to the JSON property `primarySubnet`
|
312
|
+
# @return [String]
|
313
|
+
attr_accessor :primary_subnet
|
314
|
+
|
315
|
+
def initialize(**args)
|
316
|
+
update!(**args)
|
317
|
+
end
|
318
|
+
|
319
|
+
# Update properties of this object
|
320
|
+
def update!(**args)
|
321
|
+
@additional_subnets = args[:additional_subnets] if args.key?(:additional_subnets)
|
322
|
+
@dns_domain_names = args[:dns_domain_names] if args.key?(:dns_domain_names)
|
323
|
+
@primary_subnet = args[:primary_subnet] if args.key?(:primary_subnet)
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# A Kafka Connect connector in a given ConnectCluster.
|
328
|
+
class Connector
|
329
|
+
include Google::Apis::Core::Hashable
|
330
|
+
|
331
|
+
# Optional. Connector config as keys/values. The keys of the map are connector
|
332
|
+
# property names, for example: `connector.class`, `tasks.max`, `key.converter`.
|
333
|
+
# Corresponds to the JSON property `configs`
|
334
|
+
# @return [Hash<String,String>]
|
335
|
+
attr_accessor :configs
|
336
|
+
|
337
|
+
# Identifier. The name of the connector. Structured like: projects/`project`/
|
338
|
+
# locations/`location`/connectClusters/`connect_cluster`/connectors/`connector`
|
339
|
+
# Corresponds to the JSON property `name`
|
340
|
+
# @return [String]
|
341
|
+
attr_accessor :name
|
342
|
+
|
343
|
+
# Output only. The current state of the connector.
|
344
|
+
# Corresponds to the JSON property `state`
|
345
|
+
# @return [String]
|
346
|
+
attr_accessor :state
|
347
|
+
|
348
|
+
# Task Retry Policy is implemented on a best-effort basis. Retry delay will be
|
349
|
+
# exponential based on provided minimum and maximum backoffs. https://en.
|
350
|
+
# wikipedia.org/wiki/Exponential_backoff. Note that the delay between
|
351
|
+
# consecutive task restarts may not always precisely match the configured
|
352
|
+
# settings. This can happen when the ConnectCluster is in rebalancing state or
|
353
|
+
# if the ConnectCluster is unresponsive etc.
|
354
|
+
# Corresponds to the JSON property `taskRestartPolicy`
|
355
|
+
# @return [Google::Apis::ManagedkafkaV1::TaskRetryPolicy]
|
356
|
+
attr_accessor :task_restart_policy
|
357
|
+
|
358
|
+
def initialize(**args)
|
359
|
+
update!(**args)
|
360
|
+
end
|
361
|
+
|
362
|
+
# Update properties of this object
|
363
|
+
def update!(**args)
|
364
|
+
@configs = args[:configs] if args.key?(:configs)
|
365
|
+
@name = args[:name] if args.key?(:name)
|
366
|
+
@state = args[:state] if args.key?(:state)
|
367
|
+
@task_restart_policy = args[:task_restart_policy] if args.key?(:task_restart_policy)
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
161
371
|
# A Kafka consumer group in a given cluster.
|
162
372
|
class ConsumerGroup
|
163
373
|
include Google::Apis::Core::Hashable
|
@@ -311,6 +521,64 @@ module Google
|
|
311
521
|
end
|
312
522
|
end
|
313
523
|
|
524
|
+
# Response for ListConnectClusters.
|
525
|
+
class ListConnectClustersResponse
|
526
|
+
include Google::Apis::Core::Hashable
|
527
|
+
|
528
|
+
# The list of Connect clusters in the requested parent.
|
529
|
+
# Corresponds to the JSON property `connectClusters`
|
530
|
+
# @return [Array<Google::Apis::ManagedkafkaV1::ConnectCluster>]
|
531
|
+
attr_accessor :connect_clusters
|
532
|
+
|
533
|
+
# A token that can be sent as `page_token` to retrieve the next page of results.
|
534
|
+
# If this field is omitted, there are no more results.
|
535
|
+
# Corresponds to the JSON property `nextPageToken`
|
536
|
+
# @return [String]
|
537
|
+
attr_accessor :next_page_token
|
538
|
+
|
539
|
+
# Locations that could not be reached.
|
540
|
+
# Corresponds to the JSON property `unreachable`
|
541
|
+
# @return [Array<String>]
|
542
|
+
attr_accessor :unreachable
|
543
|
+
|
544
|
+
def initialize(**args)
|
545
|
+
update!(**args)
|
546
|
+
end
|
547
|
+
|
548
|
+
# Update properties of this object
|
549
|
+
def update!(**args)
|
550
|
+
@connect_clusters = args[:connect_clusters] if args.key?(:connect_clusters)
|
551
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
552
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
# Response for ListConnectors.
|
557
|
+
class ListConnectorsResponse
|
558
|
+
include Google::Apis::Core::Hashable
|
559
|
+
|
560
|
+
# The list of connectors in the requested parent.
|
561
|
+
# Corresponds to the JSON property `connectors`
|
562
|
+
# @return [Array<Google::Apis::ManagedkafkaV1::Connector>]
|
563
|
+
attr_accessor :connectors
|
564
|
+
|
565
|
+
# A token that can be sent as `page_token` to retrieve the next page of results.
|
566
|
+
# If this field is omitted, there are no more results.
|
567
|
+
# Corresponds to the JSON property `nextPageToken`
|
568
|
+
# @return [String]
|
569
|
+
attr_accessor :next_page_token
|
570
|
+
|
571
|
+
def initialize(**args)
|
572
|
+
update!(**args)
|
573
|
+
end
|
574
|
+
|
575
|
+
# Update properties of this object
|
576
|
+
def update!(**args)
|
577
|
+
@connectors = args[:connectors] if args.key?(:connectors)
|
578
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
314
582
|
# Response for ListConsumerGroups.
|
315
583
|
class ListConsumerGroupsResponse
|
316
584
|
include Google::Apis::Core::Hashable
|
@@ -607,6 +875,32 @@ module Google
|
|
607
875
|
end
|
608
876
|
end
|
609
877
|
|
878
|
+
# Request for PauseConnector.
|
879
|
+
class PauseConnectorRequest
|
880
|
+
include Google::Apis::Core::Hashable
|
881
|
+
|
882
|
+
def initialize(**args)
|
883
|
+
update!(**args)
|
884
|
+
end
|
885
|
+
|
886
|
+
# Update properties of this object
|
887
|
+
def update!(**args)
|
888
|
+
end
|
889
|
+
end
|
890
|
+
|
891
|
+
# Response for PauseConnector.
|
892
|
+
class PauseConnectorResponse
|
893
|
+
include Google::Apis::Core::Hashable
|
894
|
+
|
895
|
+
def initialize(**args)
|
896
|
+
update!(**args)
|
897
|
+
end
|
898
|
+
|
899
|
+
# Update properties of this object
|
900
|
+
def update!(**args)
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
610
904
|
# Defines rebalancing behavior of a Kafka cluster.
|
611
905
|
class RebalanceConfig
|
612
906
|
include Google::Apis::Core::Hashable
|
@@ -627,6 +921,58 @@ module Google
|
|
627
921
|
end
|
628
922
|
end
|
629
923
|
|
924
|
+
# Request for RestartConnector.
|
925
|
+
class RestartConnectorRequest
|
926
|
+
include Google::Apis::Core::Hashable
|
927
|
+
|
928
|
+
def initialize(**args)
|
929
|
+
update!(**args)
|
930
|
+
end
|
931
|
+
|
932
|
+
# Update properties of this object
|
933
|
+
def update!(**args)
|
934
|
+
end
|
935
|
+
end
|
936
|
+
|
937
|
+
# Response for RestartConnector.
|
938
|
+
class RestartConnectorResponse
|
939
|
+
include Google::Apis::Core::Hashable
|
940
|
+
|
941
|
+
def initialize(**args)
|
942
|
+
update!(**args)
|
943
|
+
end
|
944
|
+
|
945
|
+
# Update properties of this object
|
946
|
+
def update!(**args)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
# Request for ResumeConnector.
|
951
|
+
class ResumeConnectorRequest
|
952
|
+
include Google::Apis::Core::Hashable
|
953
|
+
|
954
|
+
def initialize(**args)
|
955
|
+
update!(**args)
|
956
|
+
end
|
957
|
+
|
958
|
+
# Update properties of this object
|
959
|
+
def update!(**args)
|
960
|
+
end
|
961
|
+
end
|
962
|
+
|
963
|
+
# Response for ResumeConnector.
|
964
|
+
class ResumeConnectorResponse
|
965
|
+
include Google::Apis::Core::Hashable
|
966
|
+
|
967
|
+
def initialize(**args)
|
968
|
+
update!(**args)
|
969
|
+
end
|
970
|
+
|
971
|
+
# Update properties of this object
|
972
|
+
def update!(**args)
|
973
|
+
end
|
974
|
+
end
|
975
|
+
|
630
976
|
# The `Status` type defines a logical error model that is suitable for different
|
631
977
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
632
978
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -666,6 +1012,64 @@ module Google
|
|
666
1012
|
end
|
667
1013
|
end
|
668
1014
|
|
1015
|
+
# Request for StopConnector.
|
1016
|
+
class StopConnectorRequest
|
1017
|
+
include Google::Apis::Core::Hashable
|
1018
|
+
|
1019
|
+
def initialize(**args)
|
1020
|
+
update!(**args)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Update properties of this object
|
1024
|
+
def update!(**args)
|
1025
|
+
end
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Response for StopConnector.
|
1029
|
+
class StopConnectorResponse
|
1030
|
+
include Google::Apis::Core::Hashable
|
1031
|
+
|
1032
|
+
def initialize(**args)
|
1033
|
+
update!(**args)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Update properties of this object
|
1037
|
+
def update!(**args)
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# Task Retry Policy is implemented on a best-effort basis. Retry delay will be
|
1042
|
+
# exponential based on provided minimum and maximum backoffs. https://en.
|
1043
|
+
# wikipedia.org/wiki/Exponential_backoff. Note that the delay between
|
1044
|
+
# consecutive task restarts may not always precisely match the configured
|
1045
|
+
# settings. This can happen when the ConnectCluster is in rebalancing state or
|
1046
|
+
# if the ConnectCluster is unresponsive etc.
|
1047
|
+
class TaskRetryPolicy
|
1048
|
+
include Google::Apis::Core::Hashable
|
1049
|
+
|
1050
|
+
# Optional. The maximum amount of time to wait before retrying a failed task.
|
1051
|
+
# This sets an upper bound for the backoff delay.
|
1052
|
+
# Corresponds to the JSON property `maximumBackoff`
|
1053
|
+
# @return [String]
|
1054
|
+
attr_accessor :maximum_backoff
|
1055
|
+
|
1056
|
+
# Optional. The minimum amount of time to wait before retrying a failed task.
|
1057
|
+
# This sets a lower bound for the backoff delay.
|
1058
|
+
# Corresponds to the JSON property `minimumBackoff`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :minimum_backoff
|
1061
|
+
|
1062
|
+
def initialize(**args)
|
1063
|
+
update!(**args)
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# Update properties of this object
|
1067
|
+
def update!(**args)
|
1068
|
+
@maximum_backoff = args[:maximum_backoff] if args.key?(:maximum_backoff)
|
1069
|
+
@minimum_backoff = args[:minimum_backoff] if args.key?(:minimum_backoff)
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
|
669
1073
|
# A Kafka topic in a given cluster.
|
670
1074
|
class Topic
|
671
1075
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ManagedkafkaV1
|
18
18
|
# Version of the google-apis-managedkafka_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250320"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|