Debian Codegraph @

docs/dyn/dlp_v2.projects.locations.connections.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="dlp_v2.html">Sensitive Data Protection (DLP)</a> . <a href="dlp_v2.projects.html">projects</a> . <a href="dlp_v2.projects.locations.html">locations</a> . <a href="dlp_v2.projects.locations.connections.html">connections</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, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a Connection to an external data source.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Delete a Connection.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Get a Connection by name.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists Connections in a parent. Use SearchConnections to see all connections within an organization.</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, x__xgafv=None)</a></code></p>
97 <p class="firstline">Update a Connection.</p>
98 <p class="toc_element">
99 <code><a href="#search">search(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Searches for Connections in a parent.</p>
101 <p class="toc_element">
102 <code><a href="#search_next">search_next()</a></code></p>
103 <p class="firstline">Retrieves the next page of results.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
112 <pre>Create a Connection to an external data source.
113
114 Args:
115 parent: string, Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: `projects/{project_id}/locations/{location_id}` + Organizations scope: `organizations/{org_id}/locations/{location_id}` (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # Request message for CreateConnection.
120 &quot;connection&quot;: { # A data connection to allow the DLP API to profile data in locations that require additional configuration. # Required. The connection resource.
121 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
122 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
123 },
124 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
125 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
126 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
127 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
128 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
129 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
130 },
131 },
132 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
133 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
134 &quot;details&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). # Detailed error codes and messages.
135 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
136 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
137 {
138 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
139 },
140 ],
141 &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.
142 },
143 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
144 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
145 &quot;A String&quot;,
146 ],
147 },
148 ],
149 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
150 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
151 },
152 }
153
154 x__xgafv: string, V1 error format.
155 Allowed values
156 1 - v1 error format
157 2 - v2 error format
158
159 Returns:
160 An object of the form:
161
162 { # A data connection to allow the DLP API to profile data in locations that require additional configuration.
163 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
164 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
165 },
166 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
167 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
168 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
169 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
170 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
171 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
172 },
173 },
174 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
175 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
176 &quot;details&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). # Detailed error codes and messages.
177 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
178 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
179 {
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 ],
183 &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.
184 },
185 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
186 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
187 &quot;A String&quot;,
188 ],
189 },
190 ],
191 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
192 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
193 }</pre>
194 </div>
195
196 <div class="method">
197 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
198 <pre>Delete a Connection.
199
200 Args:
201 name: string, Required. Resource name of the Connection to be deleted, in the format: `projects/{project}/locations/{location}/connections/{connection}`. (required)
202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207 Returns:
208 An object of the form:
209
210 { # 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); }
211 }</pre>
212 </div>
213
214 <div class="method">
215 <code class="details" id="get">get(name, x__xgafv=None)</code>
216 <pre>Get a Connection by name.
217
218 Args:
219 name: string, Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`. (required)
220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
224
225 Returns:
226 An object of the form:
227
228 { # A data connection to allow the DLP API to profile data in locations that require additional configuration.
229 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
230 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
231 },
232 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
233 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
234 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
235 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
236 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
237 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
238 },
239 },
240 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
241 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
242 &quot;details&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). # Detailed error codes and messages.
243 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
244 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
245 {
246 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
247 },
248 ],
249 &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.
250 },
251 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
252 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
253 &quot;A String&quot;,
254 ],
255 },
256 ],
257 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
258 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
259 }</pre>
260 </div>
261
262 <div class="method">
263 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
264 <pre>Lists Connections in a parent. Use SearchConnections to see all connections within an organization.
265
266 Args:
267 parent: string, Required. Resource name of the organization or project, for example, `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. (required)
268 filter: string, Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR The syntax is based on https://google.aip.dev/160.
269 pageSize: integer, Optional. Number of results per page, max 1000.
270 pageToken: string, Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
271 x__xgafv: string, V1 error format.
272 Allowed values
273 1 - v1 error format
274 2 - v2 error format
275
276 Returns:
277 An object of the form:
278
279 { # Response message for ListConnections.
280 &quot;connections&quot;: [ # List of connections.
281 { # A data connection to allow the DLP API to profile data in locations that require additional configuration.
282 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
283 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
284 },
285 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
286 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
287 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
288 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
289 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
290 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
291 },
292 },
293 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
294 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
295 &quot;details&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). # Detailed error codes and messages.
296 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
297 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
298 {
299 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
300 },
301 ],
302 &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.
303 },
304 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
305 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
306 &quot;A String&quot;,
307 ],
308 },
309 ],
310 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
311 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
312 },
313 ],
314 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results. An empty value means there are no more results.
315 }</pre>
316 </div>
317
318 <div class="method">
319 <code class="details" id="list_next">list_next()</code>
320 <pre>Retrieves the next page of results.
321
322 Args:
323 previous_request: The request for the previous page. (required)
324 previous_response: The response from the request for the previous page. (required)
325
326 Returns:
327 A request object that you can call &#x27;execute()&#x27; on to request the next
328 page. Returns None if there are no more items in the collection.
329 </pre>
330 </div>
331
332 <div class="method">
333 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
334 <pre>Update a Connection.
335
336 Args:
337 name: string, Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`. (required)
338 body: object, The request body.
339 The object takes the form of:
340
341 { # Request message for UpdateConnection.
342 &quot;connection&quot;: { # A data connection to allow the DLP API to profile data in locations that require additional configuration. # Required. The connection with new values for the relevant fields.
343 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
344 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
345 },
346 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
347 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
348 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
349 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
350 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
351 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
352 },
353 },
354 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
355 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
356 &quot;details&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). # Detailed error codes and messages.
357 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
358 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
359 {
360 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
361 },
362 ],
363 &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.
364 },
365 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
366 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
367 &quot;A String&quot;,
368 ],
369 },
370 ],
371 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
372 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
373 },
374 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. Mask to control which fields get updated.
375 }
376
377 x__xgafv: string, V1 error format.
378 Allowed values
379 1 - v1 error format
380 2 - v2 error format
381
382 Returns:
383 An object of the form:
384
385 { # A data connection to allow the DLP API to profile data in locations that require additional configuration.
386 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
387 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
388 },
389 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
390 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
391 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
392 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
393 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
394 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
395 },
396 },
397 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
398 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
399 &quot;details&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). # Detailed error codes and messages.
400 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
401 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
402 {
403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
404 },
405 ],
406 &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.
407 },
408 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
409 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
410 &quot;A String&quot;,
411 ],
412 },
413 ],
414 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
415 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
416 }</pre>
417 </div>
418
419 <div class="method">
420 <code class="details" id="search">search(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
421 <pre>Searches for Connections in a parent.
422
423 Args:
424 parent: string, Required. Resource name of the organization or project with a wildcard location, for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`. (required)
425 filter: string, Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR The syntax is based on https://google.aip.dev/160.
426 pageSize: integer, Optional. Number of results per page, max 1000.
427 pageToken: string, Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
428 x__xgafv: string, V1 error format.
429 Allowed values
430 1 - v1 error format
431 2 - v2 error format
432
433 Returns:
434 An object of the form:
435
436 { # Response message for SearchConnections.
437 &quot;connections&quot;: [ # List of connections that match the search query. Note that only a subset of the fields will be populated, and only &quot;name&quot; is guaranteed to be set. For full details of a Connection, call GetConnection with the name.
438 { # A data connection to allow the DLP API to profile data in locations that require additional configuration.
439 &quot;cloudSql&quot;: { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
440 &quot;cloudSqlIam&quot;: { # Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
441 },
442 &quot;connectionName&quot;: &quot;A String&quot;, # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1`
443 &quot;databaseEngine&quot;: &quot;A String&quot;, # Required. The database engine used by the Cloud SQL instance that this connection configures.
444 &quot;maxConnections&quot;: 42, # Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.
445 &quot;usernamePassword&quot;: { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
446 &quot;passwordSecretVersionName&quot;: &quot;A String&quot;, # Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`.
447 &quot;username&quot;: &quot;A String&quot;, # Required. The username.
448 },
449 },
450 &quot;errors&quot;: [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
451 { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
452 &quot;details&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). # Detailed error codes and messages.
453 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
454 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
455 {
456 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
457 },
458 ],
459 &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.
460 },
461 &quot;extraInfo&quot;: &quot;A String&quot;, # Additional information about the error.
462 &quot;timestamps&quot;: [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
463 &quot;A String&quot;,
464 ],
465 },
466 ],
467 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.
468 &quot;state&quot;: &quot;A String&quot;, # Required. The connection&#x27;s state in its lifecycle.
469 },
470 ],
471 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results. An empty value means there are no more results.
472 }</pre>
473 </div>
474
475 <div class="method">
476 <code class="details" id="search_next">search_next()</code>
477 <pre>Retrieves the next page of results.
478
479 Args:
480 previous_request: The request for the previous page. (required)
481 previous_response: The response from the request for the previous page. (required)
482
483 Returns:
484 A request object that you can call &#x27;execute()&#x27; on to request the next
485 page. Returns None if there are no more items in the collection.
486 </pre>
487 </div>
488
489 </body></html>