Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [dlp] add the TagResources API #5588

Merged
merged 8 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading