Debian Codegraph @

docs/dyn/managedkafka_v1.projects.locations.clusters.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="managedkafka_v1.html">Managed Service for Apache Kafka API</a> . <a href="managedkafka_v1.projects.html">projects</a> . <a href="managedkafka_v1.projects.locations.html">locations</a> . <a href="managedkafka_v1.projects.locations.clusters.html">clusters</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="managedkafka_v1.projects.locations.clusters.acls.html">acls()</a></code>
79 </p>
80 <p class="firstline">Returns the acls Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="managedkafka_v1.projects.locations.clusters.consumerGroups.html">consumerGroups()</a></code>
84 </p>
85 <p class="firstline">Returns the consumerGroups Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="managedkafka_v1.projects.locations.clusters.topics.html">topics()</a></code>
89 </p>
90 <p class="firstline">Returns the topics Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="#close">close()</a></code></p>
94 <p class="firstline">Close httplib2 connections.</p>
95 <p class="toc_element">
96 <code><a href="#create">create(parent, body=None, clusterId=None, requestId=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Creates a new cluster in a given project and location.</p>
98 <p class="toc_element">
99 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Deletes a single cluster.</p>
101 <p class="toc_element">
102 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Returns the properties of a single cluster.</p>
104 <p class="toc_element">
105 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Lists the clusters in a given project and location.</p>
107 <p class="toc_element">
108 <code><a href="#list_next">list_next()</a></code></p>
109 <p class="firstline">Retrieves the next page of results.</p>
110 <p class="toc_element">
111 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Updates the properties of a single cluster.</p>
113 <h3>Method Details</h3>
114 <div class="method">
115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117 </div>
118
119 <div class="method">
120 <code class="details" id="create">create(parent, body=None, clusterId=None, requestId=None, x__xgafv=None)</code>
121 <pre>Creates a new cluster in a given project and location.
122
123 Args:
124 parent: string, Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`. (required)
125 body: object, The request body.
126 The object takes the form of:
127
128 { # An Apache Kafka cluster deployed in a location.
129 &quot;brokerDetails&quot;: [ # Output only. Only populated when FULL view is requested. Details of each broker in the cluster.
130 { # Details of a broker in the Kafka cluster.
131 &quot;brokerIndex&quot;: &quot;A String&quot;, # Output only. The index of the broker.
132 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. The node id of the broker.
133 &quot;rack&quot;: &quot;A String&quot;, # Output only. The rack of the broker.
134 },
135 ],
136 &quot;capacityConfig&quot;: { # A capacity configuration of a Kafka cluster. # Required. Capacity configuration for the Kafka cluster.
137 &quot;memoryBytes&quot;: &quot;A String&quot;, # Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
138 &quot;vcpuCount&quot;: &quot;A String&quot;, # Required. The number of vCPUs to provision for the cluster. Minimum: 3.
139 },
140 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was created.
141 &quot;gcpConfig&quot;: { # Configuration properties for a Kafka cluster deployed to Google Cloud Platform. # Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
142 &quot;accessConfig&quot;: { # The configuration of access to the Kafka cluster. # Required. Access configuration for the Kafka cluster.
143 &quot;networkConfigs&quot;: [ # Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.
144 { # The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.
145 &quot;subnet&quot;: &quot;A String&quot;, # Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified.
146 },
147 ],
148 },
149 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
150 },
151 &quot;kafkaVersion&quot;: &quot;A String&quot;, # Output only. Only populated when FULL view is requested. The Kafka version of the cluster.
152 &quot;labels&quot;: { # Optional. Labels as key value pairs.
153 &quot;a_key&quot;: &quot;A String&quot;,
154 },
155 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}
156 &quot;rebalanceConfig&quot;: { # Defines rebalancing behavior of a Kafka cluster. # Optional. Rebalance configuration for the Kafka cluster.
157 &quot;mode&quot;: &quot;A String&quot;, # Optional. The rebalance behavior for the cluster. When not specified, defaults to `NO_REBALANCE`.
158 },
159 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
160 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
161 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the cluster.
162 &quot;tlsConfig&quot;: { # The TLS configuration for the Kafka cluster. # Optional. TLS configuration for the Kafka cluster.
163 &quot;sslPrincipalMappingRules&quot;: &quot;A String&quot;, # Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: &quot;RULE:^CN=(.*?),OU=ServiceUsers.*$/[email protected]/,DEFAULT&quot; This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
164 &quot;trustConfig&quot;: { # Sources of CA certificates to install in the broker&#x27;s truststore. # Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
165 &quot;casConfigs&quot;: [ # Optional. Configuration for the Google Certificate Authority Service. Maximum 10.
166 { # A configuration for the Google Certificate Authority Service.
167 &quot;caPool&quot;: &quot;A String&quot;, # Required. The name of the CA pool to pull CA certificates from. Structured like: projects/{project}/locations/{location}/caPools/{ca_pool}. The CA pool does not need to be in the same project or location as the Kafka cluster.
168 },
169 ],
170 },
171 },
172 &quot;updateOptions&quot;: { # UpdateOptions specifies options that influence how a cluster update is applied. These options control the behavior of the update process, rather than defining the desired end-state of a cluster. # Optional. UpdateOptions represents options that control how updates to the cluster are applied.
173 &quot;allowBrokerDownscaleOnClusterUpscale&quot;: True or False, # Optional. If true, allows an update operation that increases the total vCPU and/or memory allocation of the cluster to significantly decrease the per-broker vCPU and/or memory allocation. This can result in reduced performance and availability. By default, the update operation will fail if an upscale request results in a vCPU or memory allocation for the brokers that is smaller than 90% of the current broker size.
174 },
175 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was last updated.
176 }
177
178 clusterId: string, Required. The ID to use for the cluster, which will become the final component of the cluster&#x27;s name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035. This value is structured like: `my-cluster-id`.
179 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
180 x__xgafv: string, V1 error format.
181 Allowed values
182 1 - v1 error format
183 2 - v2 error format
184
185 Returns:
186 An object of the form:
187
188 { # This resource represents a long-running operation that is the result of a network API call.
189 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
190 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
191 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
192 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
193 {
194 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
195 },
196 ],
197 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
198 },
199 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
201 },
202 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
203 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 }</pre>
207 </div>
208
209 <div class="method">
210 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
211 <pre>Deletes a single cluster.
212
213 Args:
214 name: string, Required. The name of the cluster to delete. (required)
215 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
216 x__xgafv: string, V1 error format.
217 Allowed values
218 1 - v1 error format
219 2 - v2 error format
220
221 Returns:
222 An object of the form:
223
224 { # This resource represents a long-running operation that is the result of a network API call.
225 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
226 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
227 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
228 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
229 {
230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
231 },
232 ],
233 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
234 },
235 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
236 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
237 },
238 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
239 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
240 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
241 },
242 }</pre>
243 </div>
244
245 <div class="method">
246 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
247 <pre>Returns the properties of a single cluster.
248
249 Args:
250 name: string, Required. The name of the cluster whose configuration to return. (required)
251 view: string, Optional. Specifies the view of the Cluster resource to be returned. Defaults to CLUSTER_VIEW_BASIC. See the ClusterView enum for possible values.
252 Allowed values
253 CLUSTER_VIEW_UNSPECIFIED - The default / unset value. The API will default to the BASIC view.
254 CLUSTER_VIEW_BASIC - Include the basic metadata of the Cluster. This is the default value (for both ListClusters and GetCluster).
255 CLUSTER_VIEW_FULL - Include everything, including data fetched from the Kafka cluster source of truth.
256 x__xgafv: string, V1 error format.
257 Allowed values
258 1 - v1 error format
259 2 - v2 error format
260
261 Returns:
262 An object of the form:
263
264 { # An Apache Kafka cluster deployed in a location.
265 &quot;brokerDetails&quot;: [ # Output only. Only populated when FULL view is requested. Details of each broker in the cluster.
266 { # Details of a broker in the Kafka cluster.
267 &quot;brokerIndex&quot;: &quot;A String&quot;, # Output only. The index of the broker.
268 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. The node id of the broker.
269 &quot;rack&quot;: &quot;A String&quot;, # Output only. The rack of the broker.
270 },
271 ],
272 &quot;capacityConfig&quot;: { # A capacity configuration of a Kafka cluster. # Required. Capacity configuration for the Kafka cluster.
273 &quot;memoryBytes&quot;: &quot;A String&quot;, # Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
274 &quot;vcpuCount&quot;: &quot;A String&quot;, # Required. The number of vCPUs to provision for the cluster. Minimum: 3.
275 },
276 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was created.
277 &quot;gcpConfig&quot;: { # Configuration properties for a Kafka cluster deployed to Google Cloud Platform. # Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
278 &quot;accessConfig&quot;: { # The configuration of access to the Kafka cluster. # Required. Access configuration for the Kafka cluster.
279 &quot;networkConfigs&quot;: [ # Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.
280 { # The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.
281 &quot;subnet&quot;: &quot;A String&quot;, # Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified.
282 },
283 ],
284 },
285 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
286 },
287 &quot;kafkaVersion&quot;: &quot;A String&quot;, # Output only. Only populated when FULL view is requested. The Kafka version of the cluster.
288 &quot;labels&quot;: { # Optional. Labels as key value pairs.
289 &quot;a_key&quot;: &quot;A String&quot;,
290 },
291 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}
292 &quot;rebalanceConfig&quot;: { # Defines rebalancing behavior of a Kafka cluster. # Optional. Rebalance configuration for the Kafka cluster.
293 &quot;mode&quot;: &quot;A String&quot;, # Optional. The rebalance behavior for the cluster. When not specified, defaults to `NO_REBALANCE`.
294 },
295 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
296 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
297 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the cluster.
298 &quot;tlsConfig&quot;: { # The TLS configuration for the Kafka cluster. # Optional. TLS configuration for the Kafka cluster.
299 &quot;sslPrincipalMappingRules&quot;: &quot;A String&quot;, # Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: &quot;RULE:^CN=(.*?),OU=ServiceUsers.*$/[email protected]/,DEFAULT&quot; This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
300 &quot;trustConfig&quot;: { # Sources of CA certificates to install in the broker&#x27;s truststore. # Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
301 &quot;casConfigs&quot;: [ # Optional. Configuration for the Google Certificate Authority Service. Maximum 10.
302 { # A configuration for the Google Certificate Authority Service.
303 &quot;caPool&quot;: &quot;A String&quot;, # Required. The name of the CA pool to pull CA certificates from. Structured like: projects/{project}/locations/{location}/caPools/{ca_pool}. The CA pool does not need to be in the same project or location as the Kafka cluster.
304 },
305 ],
306 },
307 },
308 &quot;updateOptions&quot;: { # UpdateOptions specifies options that influence how a cluster update is applied. These options control the behavior of the update process, rather than defining the desired end-state of a cluster. # Optional. UpdateOptions represents options that control how updates to the cluster are applied.
309 &quot;allowBrokerDownscaleOnClusterUpscale&quot;: True or False, # Optional. If true, allows an update operation that increases the total vCPU and/or memory allocation of the cluster to significantly decrease the per-broker vCPU and/or memory allocation. This can result in reduced performance and availability. By default, the update operation will fail if an upscale request results in a vCPU or memory allocation for the brokers that is smaller than 90% of the current broker size.
310 },
311 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was last updated.
312 }</pre>
313 </div>
314
315 <div class="method">
316 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
317 <pre>Lists the clusters in a given project and location.
318
319 Args:
320 parent: string, Required. The parent location whose clusters are to be listed. Structured like `projects/{project}/locations/{location}`. (required)
321 filter: string, Optional. Filter expression for the result.
322 orderBy: string, Optional. Order by fields for the result.
323 pageSize: integer, Optional. The maximum number of clusters to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default.
324 pageToken: string, Optional. A page token, received from a previous `ListClusters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListClusters` must match the call that provided the page token.
325 x__xgafv: string, V1 error format.
326 Allowed values
327 1 - v1 error format
328 2 - v2 error format
329
330 Returns:
331 An object of the form:
332
333 { # Response for ListClusters.
334 &quot;clusters&quot;: [ # The list of Clusters in the requested parent.
335 { # An Apache Kafka cluster deployed in a location.
336 &quot;brokerDetails&quot;: [ # Output only. Only populated when FULL view is requested. Details of each broker in the cluster.
337 { # Details of a broker in the Kafka cluster.
338 &quot;brokerIndex&quot;: &quot;A String&quot;, # Output only. The index of the broker.
339 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. The node id of the broker.
340 &quot;rack&quot;: &quot;A String&quot;, # Output only. The rack of the broker.
341 },
342 ],
343 &quot;capacityConfig&quot;: { # A capacity configuration of a Kafka cluster. # Required. Capacity configuration for the Kafka cluster.
344 &quot;memoryBytes&quot;: &quot;A String&quot;, # Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
345 &quot;vcpuCount&quot;: &quot;A String&quot;, # Required. The number of vCPUs to provision for the cluster. Minimum: 3.
346 },
347 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was created.
348 &quot;gcpConfig&quot;: { # Configuration properties for a Kafka cluster deployed to Google Cloud Platform. # Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
349 &quot;accessConfig&quot;: { # The configuration of access to the Kafka cluster. # Required. Access configuration for the Kafka cluster.
350 &quot;networkConfigs&quot;: [ # Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.
351 { # The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.
352 &quot;subnet&quot;: &quot;A String&quot;, # Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified.
353 },
354 ],
355 },
356 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
357 },
358 &quot;kafkaVersion&quot;: &quot;A String&quot;, # Output only. Only populated when FULL view is requested. The Kafka version of the cluster.
359 &quot;labels&quot;: { # Optional. Labels as key value pairs.
360 &quot;a_key&quot;: &quot;A String&quot;,
361 },
362 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}
363 &quot;rebalanceConfig&quot;: { # Defines rebalancing behavior of a Kafka cluster. # Optional. Rebalance configuration for the Kafka cluster.
364 &quot;mode&quot;: &quot;A String&quot;, # Optional. The rebalance behavior for the cluster. When not specified, defaults to `NO_REBALANCE`.
365 },
366 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
367 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
368 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the cluster.
369 &quot;tlsConfig&quot;: { # The TLS configuration for the Kafka cluster. # Optional. TLS configuration for the Kafka cluster.
370 &quot;sslPrincipalMappingRules&quot;: &quot;A String&quot;, # Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: &quot;RULE:^CN=(.*?),OU=ServiceUsers.*$/[email protected]/,DEFAULT&quot; This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
371 &quot;trustConfig&quot;: { # Sources of CA certificates to install in the broker&#x27;s truststore. # Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
372 &quot;casConfigs&quot;: [ # Optional. Configuration for the Google Certificate Authority Service. Maximum 10.
373 { # A configuration for the Google Certificate Authority Service.
374 &quot;caPool&quot;: &quot;A String&quot;, # Required. The name of the CA pool to pull CA certificates from. Structured like: projects/{project}/locations/{location}/caPools/{ca_pool}. The CA pool does not need to be in the same project or location as the Kafka cluster.
375 },
376 ],
377 },
378 },
379 &quot;updateOptions&quot;: { # UpdateOptions specifies options that influence how a cluster update is applied. These options control the behavior of the update process, rather than defining the desired end-state of a cluster. # Optional. UpdateOptions represents options that control how updates to the cluster are applied.
380 &quot;allowBrokerDownscaleOnClusterUpscale&quot;: True or False, # Optional. If true, allows an update operation that increases the total vCPU and/or memory allocation of the cluster to significantly decrease the per-broker vCPU and/or memory allocation. This can result in reduced performance and availability. By default, the update operation will fail if an upscale request results in a vCPU or memory allocation for the brokers that is smaller than 90% of the current broker size.
381 },
382 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was last updated.
383 },
384 ],
385 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
386 &quot;unreachable&quot;: [ # Locations that could not be reached.
387 &quot;A String&quot;,
388 ],
389 }</pre>
390 </div>
391
392 <div class="method">
393 <code class="details" id="list_next">list_next()</code>
394 <pre>Retrieves the next page of results.
395
396 Args:
397 previous_request: The request for the previous page. (required)
398 previous_response: The response from the request for the previous page. (required)
399
400 Returns:
401 A request object that you can call &#x27;execute()&#x27; on to request the next
402 page. Returns None if there are no more items in the collection.
403 </pre>
404 </div>
405
406 <div class="method">
407 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
408 <pre>Updates the properties of a single cluster.
409
410 Args:
411 name: string, Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id} (required)
412 body: object, The request body.
413 The object takes the form of:
414
415 { # An Apache Kafka cluster deployed in a location.
416 &quot;brokerDetails&quot;: [ # Output only. Only populated when FULL view is requested. Details of each broker in the cluster.
417 { # Details of a broker in the Kafka cluster.
418 &quot;brokerIndex&quot;: &quot;A String&quot;, # Output only. The index of the broker.
419 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. The node id of the broker.
420 &quot;rack&quot;: &quot;A String&quot;, # Output only. The rack of the broker.
421 },
422 ],
423 &quot;capacityConfig&quot;: { # A capacity configuration of a Kafka cluster. # Required. Capacity configuration for the Kafka cluster.
424 &quot;memoryBytes&quot;: &quot;A String&quot;, # Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
425 &quot;vcpuCount&quot;: &quot;A String&quot;, # Required. The number of vCPUs to provision for the cluster. Minimum: 3.
426 },
427 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was created.
428 &quot;gcpConfig&quot;: { # Configuration properties for a Kafka cluster deployed to Google Cloud Platform. # Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
429 &quot;accessConfig&quot;: { # The configuration of access to the Kafka cluster. # Required. Access configuration for the Kafka cluster.
430 &quot;networkConfigs&quot;: [ # Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.
431 { # The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.
432 &quot;subnet&quot;: &quot;A String&quot;, # Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified.
433 },
434 ],
435 },
436 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
437 },
438 &quot;kafkaVersion&quot;: &quot;A String&quot;, # Output only. Only populated when FULL view is requested. The Kafka version of the cluster.
439 &quot;labels&quot;: { # Optional. Labels as key value pairs.
440 &quot;a_key&quot;: &quot;A String&quot;,
441 },
442 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}
443 &quot;rebalanceConfig&quot;: { # Defines rebalancing behavior of a Kafka cluster. # Optional. Rebalance configuration for the Kafka cluster.
444 &quot;mode&quot;: &quot;A String&quot;, # Optional. The rebalance behavior for the cluster. When not specified, defaults to `NO_REBALANCE`.
445 },
446 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
447 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
448 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the cluster.
449 &quot;tlsConfig&quot;: { # The TLS configuration for the Kafka cluster. # Optional. TLS configuration for the Kafka cluster.
450 &quot;sslPrincipalMappingRules&quot;: &quot;A String&quot;, # Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: &quot;RULE:^CN=(.*?),OU=ServiceUsers.*$/[email protected]/,DEFAULT&quot; This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
451 &quot;trustConfig&quot;: { # Sources of CA certificates to install in the broker&#x27;s truststore. # Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
452 &quot;casConfigs&quot;: [ # Optional. Configuration for the Google Certificate Authority Service. Maximum 10.
453 { # A configuration for the Google Certificate Authority Service.
454 &quot;caPool&quot;: &quot;A String&quot;, # Required. The name of the CA pool to pull CA certificates from. Structured like: projects/{project}/locations/{location}/caPools/{ca_pool}. The CA pool does not need to be in the same project or location as the Kafka cluster.
455 },
456 ],
457 },
458 },
459 &quot;updateOptions&quot;: { # UpdateOptions specifies options that influence how a cluster update is applied. These options control the behavior of the update process, rather than defining the desired end-state of a cluster. # Optional. UpdateOptions represents options that control how updates to the cluster are applied.
460 &quot;allowBrokerDownscaleOnClusterUpscale&quot;: True or False, # Optional. If true, allows an update operation that increases the total vCPU and/or memory allocation of the cluster to significantly decrease the per-broker vCPU and/or memory allocation. This can result in reduced performance and availability. By default, the update operation will fail if an upscale request results in a vCPU or memory allocation for the brokers that is smaller than 90% of the current broker size.
461 },
462 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the cluster was last updated.
463 }
464
465 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
466 updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
467 x__xgafv: string, V1 error format.
468 Allowed values
469 1 - v1 error format
470 2 - v2 error format
471
472 Returns:
473 An object of the form:
474
475 { # This resource represents a long-running operation that is the result of a network API call.
476 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
477 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
478 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
479 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
480 {
481 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
482 },
483 ],
484 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
485 },
486 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
488 },
489 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
490 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
491 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
492 },
493 }</pre>
494 </div>
495
496 </body></html>