Debian Codegraph @

docs/dyn/managedkafka_v1.projects.locations.clusters.topics.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> . <a href="managedkafka_v1.projects.locations.clusters.topics.html">topics</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, topicId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new topic in a given project and location.</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 single topic.</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 topic.</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 topics in a given 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 single topic.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, topicId=None, x__xgafv=None)</code>
106 <pre>Creates a new topic in a given project and location.
107
108 Args:
109 parent: string, Required. The parent cluster in which to create the topic. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # A Kafka topic in a given cluster.
114 &quot;configs&quot;: { # Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.
115 &quot;a_key&quot;: &quot;A String&quot;,
116 },
117 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
118 &quot;partitionCount&quot;: 42, # Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
119 &quot;replicationFactor&quot;: 42, # Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
120 }
121
122 topicId: string, Required. The ID to use for the topic, which will become the final component of the topic&#x27;s name. This value is structured like: `my-topic-name`.
123 x__xgafv: string, V1 error format.
124 Allowed values
125 1 - v1 error format
126 2 - v2 error format
127
128 Returns:
129 An object of the form:
130
131 { # A Kafka topic in a given cluster.
132 &quot;configs&quot;: { # Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.
133 &quot;a_key&quot;: &quot;A String&quot;,
134 },
135 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
136 &quot;partitionCount&quot;: 42, # Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
137 &quot;replicationFactor&quot;: 42, # Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
138 }</pre>
139 </div>
140
141 <div class="method">
142 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
143 <pre>Deletes a single topic.
144
145 Args:
146 name: string, Required. The name of the topic to delete. `projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}`. (required)
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152 Returns:
153 An object of the form:
154
155 { # 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); }
156 }</pre>
157 </div>
158
159 <div class="method">
160 <code class="details" id="get">get(name, x__xgafv=None)</code>
161 <pre>Returns the properties of a single topic.
162
163 Args:
164 name: string, Required. The name of the topic whose configuration to return. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}. (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 Kafka topic in a given cluster.
174 &quot;configs&quot;: { # Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.
175 &quot;a_key&quot;: &quot;A String&quot;,
176 },
177 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
178 &quot;partitionCount&quot;: 42, # Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
179 &quot;replicationFactor&quot;: 42, # Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
180 }</pre>
181 </div>
182
183 <div class="method">
184 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
185 <pre>Lists the topics in a given cluster.
186
187 Args:
188 parent: string, Required. The parent cluster whose topics are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`. (required)
189 pageSize: integer, Optional. The maximum number of topics to return. The service may return fewer than this value. If unset or zero, all topics for the parent is returned.
190 pageToken: string, Optional. A page token, received from a previous `ListTopics` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTopics` must match the call that provided the page token.
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196 Returns:
197 An object of the form:
198
199 { # Response for ListTopics.
200 &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.
201 &quot;topics&quot;: [ # The list of topics in the requested parent. The order of the topics is unspecified.
202 { # A Kafka topic in a given cluster.
203 &quot;configs&quot;: { # Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.
204 &quot;a_key&quot;: &quot;A String&quot;,
205 },
206 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
207 &quot;partitionCount&quot;: 42, # Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
208 &quot;replicationFactor&quot;: 42, # Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
209 },
210 ],
211 }</pre>
212 </div>
213
214 <div class="method">
215 <code class="details" id="list_next">list_next()</code>
216 <pre>Retrieves the next page of results.
217
218 Args:
219 previous_request: The request for the previous page. (required)
220 previous_response: The response from the request for the previous page. (required)
221
222 Returns:
223 A request object that you can call &#x27;execute()&#x27; on to request the next
224 page. Returns None if there are no more items in the collection.
225 </pre>
226 </div>
227
228 <div class="method">
229 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
230 <pre>Updates the properties of a single topic.
231
232 Args:
233 name: string, Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic} (required)
234 body: object, The request body.
235 The object takes the form of:
236
237 { # A Kafka topic in a given cluster.
238 &quot;configs&quot;: { # Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.
239 &quot;a_key&quot;: &quot;A String&quot;,
240 },
241 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
242 &quot;partitionCount&quot;: 42, # Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
243 &quot;replicationFactor&quot;: 42, # Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
244 }
245
246 updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the Topic 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.
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252 Returns:
253 An object of the form:
254
255 { # A Kafka topic in a given cluster.
256 &quot;configs&quot;: { # Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.
257 &quot;a_key&quot;: &quot;A String&quot;,
258 },
259 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
260 &quot;partitionCount&quot;: 42, # Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
261 &quot;replicationFactor&quot;: 42, # Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
262 }</pre>
263 </div>
264
265 </body></html>