Skip to content

Commit e5e971d

Browse files
Google APIscopybara-github
authored andcommitted
feat: update libraries and clients for Managed Kafka
PiperOrigin-RevId: 780098649
1 parent baedbe7 commit e5e971d

File tree

3 files changed

+45
-109
lines changed

3 files changed

+45
-109
lines changed

google/cloud/managedkafka/v1/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ load(
342342

343343
csharp_proto_library(
344344
name = "managedkafka_csharp_proto",
345-
extra_opts = [],
346345
deps = [":managedkafka_proto"],
347346
)
348347

google/cloud/managedkafka/v1/managedkafka_v1_grpc_service_config.json

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -41,78 +41,6 @@
4141
{
4242
"service": "google.cloud.managedkafka.v1.ManagedKafkaConnect",
4343
"method": "GetConnector"
44-
},
45-
{
46-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
47-
"method": "ListSchemaRegistries"
48-
},
49-
{
50-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
51-
"method": "GetSchemaRegistry"
52-
},
53-
{
54-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
55-
"method": "ListContexts"
56-
},
57-
{
58-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
59-
"method": "GetContext"
60-
},
61-
{
62-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
63-
"method": "GetSchema"
64-
},
65-
{
66-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
67-
"method": "GetRawSchema"
68-
},
69-
{
70-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
71-
"method": "ListSchemaVersions"
72-
},
73-
{
74-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
75-
"method": "ListSchemaTypes"
76-
},
77-
{
78-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
79-
"method": "ListSubjects"
80-
},
81-
{
82-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
83-
"method": "ListSubjectsBySchemaId"
84-
},
85-
{
86-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
87-
"method": "LookUpVersion"
88-
},
89-
{
90-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
91-
"method": "GetVersion"
92-
},
93-
{
94-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
95-
"method": "GetRawSchemaVersion"
96-
},
97-
{
98-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
99-
"method": "ListVersions"
100-
},
101-
{
102-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
103-
"method": "ListReferencedSchemas"
104-
},
105-
{
106-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
107-
"method": "CheckCompatibility"
108-
},
109-
{
110-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
111-
"method": "GetSchemaConfig"
112-
},
113-
{
114-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
115-
"method": "GetSchemaMode"
11644
}
11745
],
11846
"timeout": "60s",
@@ -201,42 +129,6 @@
201129
{
202130
"service": "google.cloud.managedkafka.v1.ManagedKafkaConnect",
203131
"method": "StopConnector"
204-
},
205-
{
206-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
207-
"method": "CreateSchemaRegistry"
208-
},
209-
{
210-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
211-
"method": "DeleteSchemaRegistry"
212-
},
213-
{
214-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
215-
"method": "CreateContext"
216-
},
217-
{
218-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
219-
"method": "DeleteSubject"
220-
},
221-
{
222-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
223-
"method": "CreateVersion"
224-
},
225-
{
226-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
227-
"method": "DeleteVersion"
228-
},
229-
{
230-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
231-
"method": "UpdateSchemaConfig"
232-
},
233-
{
234-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
235-
"method": "DeleteSchemaConfig"
236-
},
237-
{
238-
"service": "google.cloud.managedkafka.v1.ManagedSchemaRegistry",
239-
"method": "UpdateSchemaMode"
240132
}
241133
],
242134
"timeout": "60s"

google/cloud/managedkafka/v1/resources.proto

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ message Cluster {
101101

102102
// Output only. Reserved for future use.
103103
optional bool satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
104+
105+
// Optional. TLS configuration for the Kafka cluster.
106+
TlsConfig tls_config = 13 [(google.api.field_behavior) = OPTIONAL];
104107
}
105108

106109
// A capacity configuration of a Kafka cluster.
@@ -175,6 +178,48 @@ message GcpConfig {
175178
];
176179
}
177180

181+
// The TLS configuration for the Kafka cluster.
182+
message TlsConfig {
183+
// Optional. The configuration of the broker truststore. If specified, clients
184+
// can use mTLS for authentication.
185+
TrustConfig trust_config = 1 [(google.api.field_behavior) = OPTIONAL];
186+
187+
// Optional. A list of rules for mapping from SSL principal names to
188+
// short names. These are applied in order by Kafka.
189+
// Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
190+
// for the precise formatting details and syntax.
191+
// Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
192+
//
193+
// This is a static Kafka broker configuration. Setting or modifying this
194+
// field will trigger a rolling restart of the Kafka brokers to apply
195+
// the change. An empty string means no rules are applied (Kafka default).
196+
string ssl_principal_mapping_rules = 2
197+
[(google.api.field_behavior) = OPTIONAL];
198+
}
199+
200+
// Sources of CA certificates to install in the broker's truststore.
201+
message TrustConfig {
202+
// A configuration for the Google Certificate Authority Service.
203+
message CertificateAuthorityServiceConfig {
204+
// Required. The name of the CA pool to pull CA certificates from.
205+
// Structured like:
206+
// projects/{project}/locations/{location}/caPools/{ca_pool}.
207+
// The CA pool does not need to be in the same project or location as the
208+
// Kafka cluster.
209+
string ca_pool = 1 [
210+
(google.api.field_behavior) = REQUIRED,
211+
(google.api.resource_reference) = {
212+
type: "privateca.googleapis.com/CaPool"
213+
}
214+
];
215+
}
216+
217+
// Optional. Configuration for the Google Certificate Authority Service.
218+
// Maximum 10.
219+
repeated CertificateAuthorityServiceConfig cas_configs = 1
220+
[(google.api.field_behavior) = OPTIONAL];
221+
}
222+
178223
// A Kafka topic in a given cluster.
179224
message Topic {
180225
option (google.api.resource) = {

0 commit comments

Comments
 (0)