Skip to content

Commit 7e80d5a

Browse files
feat(managedkafka): update the api
#### managedkafka:v1 The following keys were added: - resources.projects.resources.locations.resources.connectClusters.methods.create (Total Keys: 16) - resources.projects.resources.locations.resources.connectClusters.methods.delete (Total Keys: 13) - resources.projects.resources.locations.resources.connectClusters.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.connectClusters.methods.list (Total Keys: 20) - resources.projects.resources.locations.resources.connectClusters.methods.patch (Total Keys: 17) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.patch (Total Keys: 15) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.pause (Total Keys: 12) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.restart (Total Keys: 12) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.resume (Total Keys: 12) - resources.projects.resources.locations.resources.connectClusters.resources.connectors.methods.stop (Total Keys: 12) - schemas.ConnectAccessConfig (Total Keys: 4) - schemas.ConnectCluster (Total Keys: 18) - schemas.ConnectGcpConfig (Total Keys: 5) - schemas.ConnectNetworkConfig (Total Keys: 7) - schemas.Connector (Total Keys: 8) - schemas.ListConnectClustersResponse (Total Keys: 7) - schemas.ListConnectorsResponse (Total Keys: 5) - schemas.PauseConnectorRequest (Total Keys: 2) - schemas.PauseConnectorResponse (Total Keys: 2) - schemas.RestartConnectorRequest (Total Keys: 2) - schemas.RestartConnectorResponse (Total Keys: 2) - schemas.ResumeConnectorRequest (Total Keys: 2) - schemas.ResumeConnectorResponse (Total Keys: 2) - schemas.StopConnectorRequest (Total Keys: 2) - schemas.StopConnectorResponse (Total Keys: 2) - schemas.TaskRetryPolicy (Total Keys: 6)
1 parent 3786649 commit 7e80d5a

File tree

4 files changed

+1551
-1
lines changed

4 files changed

+1551
-1
lines changed
Lines changed: 391 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,391 @@
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.connectClusters.html">connectClusters</a> . <a href="managedkafka_v1.projects.locations.connectClusters.connectors.html">connectors</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#create">create(parent, body=None, connectorId=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Creates a new connector in a given Connect cluster.</p>
83+
<p class="toc_element">
84+
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Deletes a connector.</p>
86+
<p class="toc_element">
87+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88+
<p class="firstline">Returns the properties of a single connector.</p>
89+
<p class="toc_element">
90+
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91+
<p class="firstline">Lists the connectors in a given Connect cluster.</p>
92+
<p class="toc_element">
93+
<code><a href="#list_next">list_next()</a></code></p>
94+
<p class="firstline">Retrieves the next page of results.</p>
95+
<p class="toc_element">
96+
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97+
<p class="firstline">Updates the properties of a connector.</p>
98+
<p class="toc_element">
99+
<code><a href="#pause">pause(name, body=None, x__xgafv=None)</a></code></p>
100+
<p class="firstline">Pauses the connector and its tasks.</p>
101+
<p class="toc_element">
102+
<code><a href="#restart">restart(name, body=None, x__xgafv=None)</a></code></p>
103+
<p class="firstline">Restarts the connector.</p>
104+
<p class="toc_element">
105+
<code><a href="#resume">resume(name, body=None, x__xgafv=None)</a></code></p>
106+
<p class="firstline">Resumes the connector and its tasks.</p>
107+
<p class="toc_element">
108+
<code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
109+
<p class="firstline">Stops the connector.</p>
110+
<h3>Method Details</h3>
111+
<div class="method">
112+
<code class="details" id="close">close()</code>
113+
<pre>Close httplib2 connections.</pre>
114+
</div>
115+
116+
<div class="method">
117+
<code class="details" id="create">create(parent, body=None, connectorId=None, x__xgafv=None)</code>
118+
<pre>Creates a new connector in a given Connect cluster.
119+
120+
Args:
121+
parent: string, Required. The parent Connect cluster in which to create the connector. Structured like `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`. (required)
122+
body: object, The request body.
123+
The object takes the form of:
124+
125+
{ # A Kafka Connect connector in a given ConnectCluster.
126+
&quot;configs&quot;: { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
127+
&quot;a_key&quot;: &quot;A String&quot;,
128+
},
129+
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
130+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the connector.
131+
&quot;taskRestartPolicy&quot;: { # Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. # Optional. Restarts the individual tasks of a Connector.
132+
&quot;maximumBackoff&quot;: &quot;A String&quot;, # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
133+
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
134+
},
135+
}
136+
137+
connectorId: string, Required. The ID to use for the connector, which will become the final component of the connector&#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-connector-id`.
138+
x__xgafv: string, V1 error format.
139+
Allowed values
140+
1 - v1 error format
141+
2 - v2 error format
142+
143+
Returns:
144+
An object of the form:
145+
146+
{ # A Kafka Connect connector in a given ConnectCluster.
147+
&quot;configs&quot;: { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
148+
&quot;a_key&quot;: &quot;A String&quot;,
149+
},
150+
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
151+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the connector.
152+
&quot;taskRestartPolicy&quot;: { # Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. # Optional. Restarts the individual tasks of a Connector.
153+
&quot;maximumBackoff&quot;: &quot;A String&quot;, # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
154+
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
155+
},
156+
}</pre>
157+
</div>
158+
159+
<div class="method">
160+
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
161+
<pre>Deletes a connector.
162+
163+
Args:
164+
name: string, Required. The name of the connector to delete. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
165+
x__xgafv: string, V1 error format.
166+
Allowed values
167+
1 - v1 error format
168+
2 - v2 error format
169+
170+
Returns:
171+
An object of the form:
172+
173+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
174+
}</pre>
175+
</div>
176+
177+
<div class="method">
178+
<code class="details" id="get">get(name, x__xgafv=None)</code>
179+
<pre>Returns the properties of a single connector.
180+
181+
Args:
182+
name: string, Required. The name of the connector whose configuration to return. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
183+
x__xgafv: string, V1 error format.
184+
Allowed values
185+
1 - v1 error format
186+
2 - v2 error format
187+
188+
Returns:
189+
An object of the form:
190+
191+
{ # A Kafka Connect connector in a given ConnectCluster.
192+
&quot;configs&quot;: { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
193+
&quot;a_key&quot;: &quot;A String&quot;,
194+
},
195+
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
196+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the connector.
197+
&quot;taskRestartPolicy&quot;: { # Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. # Optional. Restarts the individual tasks of a Connector.
198+
&quot;maximumBackoff&quot;: &quot;A String&quot;, # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
199+
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
200+
},
201+
}</pre>
202+
</div>
203+
204+
<div class="method">
205+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
206+
<pre>Lists the connectors in a given Connect cluster.
207+
208+
Args:
209+
parent: string, Required. The parent Connect cluster whose connectors are to be listed. Structured like `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`. (required)
210+
pageSize: integer, Optional. The maximum number of connectors to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default.
211+
pageToken: string, Optional. A page token, received from a previous `ListConnectors` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectors` must match the call that provided the page token.
212+
x__xgafv: string, V1 error format.
213+
Allowed values
214+
1 - v1 error format
215+
2 - v2 error format
216+
217+
Returns:
218+
An object of the form:
219+
220+
{ # Response for ListConnectors.
221+
&quot;connectors&quot;: [ # The list of connectors in the requested parent.
222+
{ # A Kafka Connect connector in a given ConnectCluster.
223+
&quot;configs&quot;: { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
224+
&quot;a_key&quot;: &quot;A String&quot;,
225+
},
226+
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
227+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the connector.
228+
&quot;taskRestartPolicy&quot;: { # Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. # Optional. Restarts the individual tasks of a Connector.
229+
&quot;maximumBackoff&quot;: &quot;A String&quot;, # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
230+
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
231+
},
232+
},
233+
],
234+
&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.
235+
}</pre>
236+
</div>
237+
238+
<div class="method">
239+
<code class="details" id="list_next">list_next()</code>
240+
<pre>Retrieves the next page of results.
241+
242+
Args:
243+
previous_request: The request for the previous page. (required)
244+
previous_response: The response from the request for the previous page. (required)
245+
246+
Returns:
247+
A request object that you can call &#x27;execute()&#x27; on to request the next
248+
page. Returns None if there are no more items in the collection.
249+
</pre>
250+
</div>
251+
252+
<div class="method">
253+
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
254+
<pre>Updates the properties of a connector.
255+
256+
Args:
257+
name: string, Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector} (required)
258+
body: object, The request body.
259+
The object takes the form of:
260+
261+
{ # A Kafka Connect connector in a given ConnectCluster.
262+
&quot;configs&quot;: { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
263+
&quot;a_key&quot;: &quot;A String&quot;,
264+
},
265+
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
266+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the connector.
267+
&quot;taskRestartPolicy&quot;: { # Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. # Optional. Restarts the individual tasks of a Connector.
268+
&quot;maximumBackoff&quot;: &quot;A String&quot;, # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
269+
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
270+
},
271+
}
272+
273+
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.
274+
x__xgafv: string, V1 error format.
275+
Allowed values
276+
1 - v1 error format
277+
2 - v2 error format
278+
279+
Returns:
280+
An object of the form:
281+
282+
{ # A Kafka Connect connector in a given ConnectCluster.
283+
&quot;configs&quot;: { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
284+
&quot;a_key&quot;: &quot;A String&quot;,
285+
},
286+
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
287+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the connector.
288+
&quot;taskRestartPolicy&quot;: { # Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. # Optional. Restarts the individual tasks of a Connector.
289+
&quot;maximumBackoff&quot;: &quot;A String&quot;, # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
290+
&quot;minimumBackoff&quot;: &quot;A String&quot;, # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
291+
},
292+
}</pre>
293+
</div>
294+
295+
<div class="method">
296+
<code class="details" id="pause">pause(name, body=None, x__xgafv=None)</code>
297+
<pre>Pauses the connector and its tasks.
298+
299+
Args:
300+
name: string, Required. The name of the connector to pause. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
301+
body: object, The request body.
302+
The object takes the form of:
303+
304+
{ # Request for PauseConnector.
305+
}
306+
307+
x__xgafv: string, V1 error format.
308+
Allowed values
309+
1 - v1 error format
310+
2 - v2 error format
311+
312+
Returns:
313+
An object of the form:
314+
315+
{ # Response for PauseConnector.
316+
}</pre>
317+
</div>
318+
319+
<div class="method">
320+
<code class="details" id="restart">restart(name, body=None, x__xgafv=None)</code>
321+
<pre>Restarts the connector.
322+
323+
Args:
324+
name: string, Required. The name of the connector to restart. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
325+
body: object, The request body.
326+
The object takes the form of:
327+
328+
{ # Request for RestartConnector.
329+
}
330+
331+
x__xgafv: string, V1 error format.
332+
Allowed values
333+
1 - v1 error format
334+
2 - v2 error format
335+
336+
Returns:
337+
An object of the form:
338+
339+
{ # Response for RestartConnector.
340+
}</pre>
341+
</div>
342+
343+
<div class="method">
344+
<code class="details" id="resume">resume(name, body=None, x__xgafv=None)</code>
345+
<pre>Resumes the connector and its tasks.
346+
347+
Args:
348+
name: string, Required. The name of the connector to pause. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
349+
body: object, The request body.
350+
The object takes the form of:
351+
352+
{ # Request for ResumeConnector.
353+
}
354+
355+
x__xgafv: string, V1 error format.
356+
Allowed values
357+
1 - v1 error format
358+
2 - v2 error format
359+
360+
Returns:
361+
An object of the form:
362+
363+
{ # Response for ResumeConnector.
364+
}</pre>
365+
</div>
366+
367+
<div class="method">
368+
<code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
369+
<pre>Stops the connector.
370+
371+
Args:
372+
name: string, Required. The name of the connector to stop. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
373+
body: object, The request body.
374+
The object takes the form of:
375+
376+
{ # Request for StopConnector.
377+
}
378+
379+
x__xgafv: string, V1 error format.
380+
Allowed values
381+
1 - v1 error format
382+
2 - v2 error format
383+
384+
Returns:
385+
An object of the form:
386+
387+
{ # Response for StopConnector.
388+
}</pre>
389+
</div>
390+
391+
</body></html>

0 commit comments

Comments
 (0)