Skip to content

Commit 0187753

Browse files
feat(dlp): update the api
#### dlp:v2 The following keys were added: - resources.organizations.resources.locations.resources.connections.methods.list (Total Keys: 18) - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.properties.refreshFrequency.type (Total Keys: 1)
1 parent c6a49d6 commit 0187753

9 files changed

+163
-10
lines changed

docs/dyn/dlp_v2.organizations.locations.connections.html

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ <h2>Instance Methods</h2>
8686
<p class="toc_element">
8787
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
8888
<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>
8995
<p class="toc_element">
9096
<code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p>
9197
<p class="firstline">Update a Connection.</p>
@@ -253,6 +259,76 @@ <h3>Method Details</h3>
253259
}</pre>
254260
</div>
255261

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
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 DLP 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. DLP 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+
256332
<div class="method">
257333
<code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
258334
<pre>Update a Connection.
@@ -345,7 +421,7 @@ <h3>Method Details</h3>
345421
<pre>Searches for Connections in a parent.
346422

347423
Args:
348-
parent: string, Required. Parent name, typically an organization, without location. For example: `organizations/12345678`. (required)
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)
349425
filter: string, Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR
350426
pageSize: integer, Optional. Number of results per page, max 1000.
351427
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.

docs/dyn/dlp_v2.organizations.locations.discoveryConfigs.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ <h3>Method Details</h3>
179179
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
180180
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
181181
},
182+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
182183
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
183184
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
184185
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -395,6 +396,7 @@ <h3>Method Details</h3>
395396
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
396397
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
397398
},
399+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
398400
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
399401
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
400402
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -635,6 +637,7 @@ <h3>Method Details</h3>
635637
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
636638
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
637639
},
640+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
638641
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
639642
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
640643
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -862,6 +865,7 @@ <h3>Method Details</h3>
862865
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
863866
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
864867
},
868+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
865869
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
866870
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
867871
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -1097,6 +1101,7 @@ <h3>Method Details</h3>
10971101
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
10981102
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
10991103
},
1104+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
11001105
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
11011106
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
11021107
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -1314,6 +1319,7 @@ <h3>Method Details</h3>
13141319
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
13151320
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
13161321
},
1322+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
13171323
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
13181324
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
13191325
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.

docs/dyn/dlp_v2.organizations.locations.fileStoreDataProfiles.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ <h3>Method Details</h3>
233233
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
234234
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
235235
},
236+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
236237
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
237238
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
238239
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -806,6 +807,7 @@ <h3>Method Details</h3>
806807
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
807808
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
808809
},
810+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
809811
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
810812
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
811813
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.

docs/dyn/dlp_v2.organizations.locations.tableDataProfiles.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ <h3>Method Details</h3>
233233
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
234234
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
235235
},
236+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
236237
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
237238
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
238239
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.
@@ -750,6 +751,7 @@ <h3>Method Details</h3>
750751
&quot;inspectTemplateModifiedCadence&quot;: { # The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change. # Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update.
751752
&quot;frequency&quot;: &quot;A String&quot;, # How frequently data profiles can be updated when the template is modified. Defaults to never.
752753
},
754+
&quot;refreshFrequency&quot;: &quot;A String&quot;, # Frequency to update profiles regardless of whether the underlying resource has changed. Defaults to never.
753755
&quot;schemaModifiedCadence&quot;: { # The cadence at which to update data profiles when a schema is modified. # Governs when to update data profiles when a schema is modified.
754756
&quot;frequency&quot;: &quot;A String&quot;, # How frequently profiles may be updated when schemas are modified. Defaults to monthly.
755757
&quot;types&quot;: [ # The type of events to consider when deciding if the table&#x27;s schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.

0 commit comments

Comments
 (0)