You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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
+
"configs": { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
127
+
"a_key": "A String",
128
+
},
129
+
"name": "A String", # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
130
+
"state": "A String", # Output only. The current state of the connector.
131
+
"taskRestartPolicy": { # 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
+
"maximumBackoff": "A String", # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
133
+
"minimumBackoff": "A String", # 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'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
+
"configs": { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
148
+
"a_key": "A String",
149
+
},
150
+
"name": "A String", # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
151
+
"state": "A String", # Output only. The current state of the connector.
152
+
"taskRestartPolicy": { # 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
+
"maximumBackoff": "A String", # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
154
+
"minimumBackoff": "A String", # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
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); }
<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
+
"configs": { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
193
+
"a_key": "A String",
194
+
},
195
+
"name": "A String", # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
196
+
"state": "A String", # Output only. The current state of the connector.
197
+
"taskRestartPolicy": { # 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
+
"maximumBackoff": "A String", # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
199
+
"minimumBackoff": "A String", # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
<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
+
"connectors": [ # The list of connectors in the requested parent.
222
+
{ # A Kafka Connect connector in a given ConnectCluster.
223
+
"configs": { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
224
+
"a_key": "A String",
225
+
},
226
+
"name": "A String", # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
227
+
"state": "A String", # Output only. The current state of the connector.
228
+
"taskRestartPolicy": { # 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
+
"maximumBackoff": "A String", # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
230
+
"minimumBackoff": "A String", # 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
+
"nextPageToken": "A String", # 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.
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
+
"configs": { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
263
+
"a_key": "A String",
264
+
},
265
+
"name": "A String", # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
266
+
"state": "A String", # Output only. The current state of the connector.
267
+
"taskRestartPolicy": { # 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
+
"maximumBackoff": "A String", # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
269
+
"minimumBackoff": "A String", # 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
+
"configs": { # Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
284
+
"a_key": "A String",
285
+
},
286
+
"name": "A String", # Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
287
+
"state": "A String", # Output only. The current state of the connector.
288
+
"taskRestartPolicy": { # 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
+
"maximumBackoff": "A String", # Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
290
+
"minimumBackoff": "A String", # Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
name: string, Required. The name of the connector to pause. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
name: string, Required. The name of the connector to restart. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
name: string, Required. The name of the connector to pause. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
name: string, Required. The name of the connector to stop. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} (required)
0 commit comments