Skip to content

Commit

Permalink
feat: [dlp] add the TagResources API (googleapis#5588)
Browse files Browse the repository at this point in the history
* feat: org-level connection bindings
feat: gRPC config for get, list, and delete FileStoreDataProfiles
feat: add refresh frequency for data profiling
docs: small improvements

PiperOrigin-RevId: 657319510

Source-Link: googleapis/googleapis@e1d378c

Source-Link: https://github.com/googleapis/googleapis-gen/commit/21ec656b840558f9154129a85bd412f8557c9e6e
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiIyMWVjNjU2Yjg0MDU1OGY5MTU0MTI5YTg1YmQ0MTJmODU1N2M5ZTZlIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* docs: replace HTML tags with CommonMark notation

PiperOrigin-RevId: 657655346

Source-Link: googleapis/googleapis@aa6fe3b

Source-Link: https://github.com/googleapis/googleapis-gen/commit/118ba2b02273d7a38606958163420aa4b68328e7
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiIxMThiYTJiMDIyNzNkN2EzODYwNjk1ODE2MzQyMGFhNGI2ODMyOGU3In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore(dlp): fix ordering of Connection resource patterns

PiperOrigin-RevId: 657674261

Source-Link: googleapis/googleapis@29bff4c

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5c2e8865e43d4c682fad11b8e5848e44538424a2
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiI1YzJlODg2NWU0M2Q0YzY4MmZhZDExYjhlNTg0OGU0NDUzODQyNGEyIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add the TagResources API

PiperOrigin-RevId: 659709816

Source-Link: googleapis/googleapis@7314e20

Source-Link: https://github.com/googleapis/googleapis-gen/commit/7c795b5d8eb8354c58d5acd18c620b197ac338a4
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiI3Yzc5NWI1ZDhlYjgzNTRjNThkNWFjZDE4YzYyMGIxOTdhYzMzOGE0In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Aug 8, 2024
1 parent 1e600c2 commit 91df9a7
Show file tree
Hide file tree
Showing 29 changed files with 2,136 additions and 503 deletions.
226 changes: 163 additions & 63 deletions packages/google-privacy-dlp/protos/google/privacy/dlp/v2/dlp.proto

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ message StorageConfig {
// Specification of the field containing the timestamp of scanned items.
// Used for data sources like Datastore and BigQuery.
//
// <b>For BigQuery</b>
// **For BigQuery**
//
// If this value is not specified and the table was modified between the
// given start and end times, the entire table will be scanned. If this
Expand All @@ -668,13 +668,11 @@ message StorageConfig {
// you can use any of the following pseudo-columns as your timestamp field.
// When used with Cloud DLP, these pseudo-column names are case sensitive.
//
// <ul>
// <li><code>_PARTITIONTIME</code></li>
// <li><code>_PARTITIONDATE</code></li>
// <li><code>_PARTITION_LOAD_TIME</code></li>
// </ul>
// - `_PARTITIONTIME`
// - `_PARTITIONDATE`
// - `_PARTITION_LOAD_TIME`
//
// <b>For Datastore</b>
// **For Datastore**
//
// If this value is specified, then entities are filtered based on the given
// start and end times. If an entity does not contain the provided timestamp
Expand Down
339 changes: 338 additions & 1 deletion packages/google-privacy-dlp/protos/protos.d.ts

Large diffs are not rendered by default.

1,188 changes: 1,044 additions & 144 deletions packages/google-privacy-dlp/protos/protos.js

Large diffs are not rendered by default.

148 changes: 121 additions & 27 deletions packages/google-privacy-dlp/protos/protos.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ function main(parent, connection) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Parent resource name in the format:
* `projects/{project}/locations/{location}`.
* 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}`
*/
// const parent = 'abc123'
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function main(parent, deidentifyTemplate) {
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* + Organizations scope, location specified:
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
* `organizations/{org_id}/locations/{location_id}`
* + Organizations scope, no location specified (defaults to global):
* `organizations/`<var>ORG_ID</var>
* `organizations/{org_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function main(parent, discoveryConfig) {
* The format of this value varies depending on the scope of the request
* (project or organization):
* + Projects scope:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Organizations scope:
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
* `organizations/{org_id}/locations/{location_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main(parent) {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function main(parent, inspectTemplate) {
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* + Organizations scope, location specified:
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
* `organizations/{org_id}/locations/{location_id}`
* + Organizations scope, no location specified (defaults to global):
* `organizations/`<var>ORG_ID</var>
* `organizations/{org_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main(parent, jobTrigger) {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function main(parent, config) {
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* + Organizations scope, location specified:
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
* `organizations/{org_id}/locations/{location_id}`
* + Organizations scope, no location specified (defaults to global):
* `organizations/`<var>ORG_ID</var>
* `organizations/{org_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main() {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main() {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ function main(parent) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Parent name, for example:
* `projects/project-id/locations/global`.
* Required. Resource name of the organization or project, for
* example, `organizations/433245324/locations/europe` or
* `projects/project-id/locations/asia`.
*/
// const parent = 'abc123'
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function main(parent) {
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* + Organizations scope, location specified:
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
* `organizations/{org_id}/locations/{location_id}`
* + Organizations scope, no location specified (defaults to global):
* `organizations/`<var>ORG_ID</var>
* `organizations/{org_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(parent) {
/**
* Required. Parent resource name.
* The format of this value is as follows:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main(parent) {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main() {
/**
* The parent resource name.
* The format of this value is as follows:
* locations/<var>LOCATION_ID</var>
* `locations/{location_id}`
*/
// const parent = 'abc123'
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function main(parent) {
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* + Organizations scope, location specified:
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
* `organizations/{org_id}/locations/{location_id}`
* + Organizations scope, no location specified (defaults to global):
* `organizations/`<var>ORG_ID</var>
* `organizations/{org_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main(parent) {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main(parent) {
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main() {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function main(parent) {
* processing
* location (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified:
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* `projects/{project_id}/locations/{location_id}`
* + Projects scope, no location specified (defaults to global):
* `projects/`<var>PROJECT_ID</var>
* `projects/{project_id}`
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ function main(parent) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Parent name, typically an organization, without location.
* For example: `organizations/12345678`.
* Required. Resource name of the organization or project with a wildcard
* location, for example, `organizations/433245324/locations/-` or
* `projects/project-id/locations/-`.
*/
// const parent = 'abc123'
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,7 @@
"segments": [
{
"start": 25,
"end": 59,
"end": 64,
"type": "FULL"
}
],
Expand Down Expand Up @@ -2447,14 +2447,14 @@
"regionTag": "dlp_v2_generated_DlpService_ListConnections_async",
"title": "DlpService listConnections Sample",
"origin": "API_DEFINITION",
"description": " Lists Connections in a parent.",
"description": " Lists Connections in a parent. Use SearchConnections to see all connections within an organization.",
"canonical": true,
"file": "dlp_service.list_connections.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 69,
"end": 70,
"type": "FULL"
}
],
Expand Down Expand Up @@ -2506,7 +2506,7 @@
"segments": [
{
"start": 25,
"end": 69,
"end": 70,
"type": "FULL"
}
],
Expand Down
Loading

0 comments on commit 91df9a7

Please sign in to comment.