Skip to content

Commit 76e529c

Browse files
feat: [google-cloud-dlp] discovery of BigQuery snapshots (#13172)
- [ ] Regenerate this pull request now. docs: documentation revisions for data profiles PiperOrigin-RevId: 686533927 Source-Link: googleapis/googleapis@4c44b30 Source-Link: googleapis/googleapis-gen@51494a6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRscC8uT3dsQm90LnlhbWwiLCJoIjoiNTE0OTRhNjA0ZTY2NTY0MDYxMThhMjkxMWJkNDg0YWExNDM4MmRmNyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
1 parent d395233 commit 76e529c

6 files changed

Lines changed: 40 additions & 61 deletions

File tree

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/async_client.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,11 @@
5555

5656

5757
class DlpServiceAsyncClient:
58-
"""The Cloud Data Loss Prevention (DLP) API is a service that
59-
allows clients to detect the presence of Personally Identifiable
60-
Information (PII) and other privacy-sensitive data in
61-
user-supplied, unstructured data streams, like text blocks or
62-
images.
63-
The service also includes methods for sensitive data redaction
64-
and scheduling of data scans on Google Cloud Platform based data
65-
sets.
66-
67-
To learn more about concepts and find how-to guides see
58+
"""Sensitive Data Protection provides access to a powerful
59+
sensitive data inspection, classification, and de-identification
60+
platform that works on text, images, and Google Cloud storage
61+
repositories. To learn more about concepts and find how-to
62+
guides see
6863
https://cloud.google.com/sensitive-data-protection/docs/.
6964
"""
7065

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/client.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,11 @@ def get_transport_class(
9797

9898

9999
class DlpServiceClient(metaclass=DlpServiceClientMeta):
100-
"""The Cloud Data Loss Prevention (DLP) API is a service that
101-
allows clients to detect the presence of Personally Identifiable
102-
Information (PII) and other privacy-sensitive data in
103-
user-supplied, unstructured data streams, like text blocks or
104-
images.
105-
The service also includes methods for sensitive data redaction
106-
and scheduling of data scans on Google Cloud Platform based data
107-
sets.
108-
109-
To learn more about concepts and find how-to guides see
100+
"""Sensitive Data Protection provides access to a powerful
101+
sensitive data inspection, classification, and de-identification
102+
platform that works on text, images, and Google Cloud storage
103+
repositories. To learn more about concepts and find how-to
104+
guides see
110105
https://cloud.google.com/sensitive-data-protection/docs/.
111106
"""
112107

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/transports/grpc.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,11 @@
3232
class DlpServiceGrpcTransport(DlpServiceTransport):
3333
"""gRPC backend transport for DlpService.
3434
35-
The Cloud Data Loss Prevention (DLP) API is a service that
36-
allows clients to detect the presence of Personally Identifiable
37-
Information (PII) and other privacy-sensitive data in
38-
user-supplied, unstructured data streams, like text blocks or
39-
images.
40-
The service also includes methods for sensitive data redaction
41-
and scheduling of data scans on Google Cloud Platform based data
42-
sets.
43-
44-
To learn more about concepts and find how-to guides see
35+
Sensitive Data Protection provides access to a powerful
36+
sensitive data inspection, classification, and de-identification
37+
platform that works on text, images, and Google Cloud storage
38+
repositories. To learn more about concepts and find how-to
39+
guides see
4540
https://cloud.google.com/sensitive-data-protection/docs/.
4641
4742
This class defines the same methods as the primary client, so the

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,11 @@
3636
class DlpServiceGrpcAsyncIOTransport(DlpServiceTransport):
3737
"""gRPC AsyncIO backend transport for DlpService.
3838
39-
The Cloud Data Loss Prevention (DLP) API is a service that
40-
allows clients to detect the presence of Personally Identifiable
41-
Information (PII) and other privacy-sensitive data in
42-
user-supplied, unstructured data streams, like text blocks or
43-
images.
44-
The service also includes methods for sensitive data redaction
45-
and scheduling of data scans on Google Cloud Platform based data
46-
sets.
47-
48-
To learn more about concepts and find how-to guides see
39+
Sensitive Data Protection provides access to a powerful
40+
sensitive data inspection, classification, and de-identification
41+
platform that works on text, images, and Google Cloud storage
42+
repositories. To learn more about concepts and find how-to
43+
guides see
4944
https://cloud.google.com/sensitive-data-protection/docs/.
5045
5146
This class defines the same methods as the primary client, so the

packages/google-cloud-dlp/google/cloud/dlp_v2/services/dlp_service/transports/rest.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,16 +1555,11 @@ class DlpServiceRestStub:
15551555
class DlpServiceRestTransport(_BaseDlpServiceRestTransport):
15561556
"""REST backend synchronous transport for DlpService.
15571557
1558-
The Cloud Data Loss Prevention (DLP) API is a service that
1559-
allows clients to detect the presence of Personally Identifiable
1560-
Information (PII) and other privacy-sensitive data in
1561-
user-supplied, unstructured data streams, like text blocks or
1562-
images.
1563-
The service also includes methods for sensitive data redaction
1564-
and scheduling of data scans on Google Cloud Platform based data
1565-
sets.
1566-
1567-
To learn more about concepts and find how-to guides see
1558+
Sensitive Data Protection provides access to a powerful
1559+
sensitive data inspection, classification, and de-identification
1560+
platform that works on text, images, and Google Cloud storage
1561+
repositories. To learn more about concepts and find how-to
1562+
guides see
15681563
https://cloud.google.com/sensitive-data-protection/docs/.
15691564
15701565
This class defines the same methods as the primary client, so the

packages/google-cloud-dlp/google/cloud/dlp_v2/types/dlp.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ class ProfileGeneration(proto.Enum):
426426

427427
class BigQueryTableTypeCollection(proto.Enum):
428428
r"""Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
429-
and SNAPSHOT are not supported.
429+
and non-BigLake external tables are not supported.
430430
431431
Values:
432432
BIG_QUERY_COLLECTION_UNSPECIFIED (0):
@@ -453,7 +453,7 @@ class BigQueryTableTypeCollection(proto.Enum):
453453

454454
class BigQueryTableType(proto.Enum):
455455
r"""Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
456-
SNAPSHOT, and non-BigLake external tables are not supported.
456+
and non-BigLake external tables are not supported.
457457
458458
Values:
459459
BIG_QUERY_TABLE_TYPE_UNSPECIFIED (0):
@@ -463,10 +463,13 @@ class BigQueryTableType(proto.Enum):
463463
BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE (2):
464464
A table that references data stored in Cloud
465465
Storage.
466+
BIG_QUERY_TABLE_TYPE_SNAPSHOT (3):
467+
A snapshot of a BigQuery table.
466468
"""
467469
BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0
468470
BIG_QUERY_TABLE_TYPE_TABLE = 1
469471
BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2
472+
BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3
470473

471474

472475
class DataProfileUpdateFrequency(proto.Enum):
@@ -11928,12 +11931,12 @@ class TableDataProfile(proto.Message):
1192811931
https://cloud.google.com/bigquery/docs/locations
1192911932
for supported locations.
1193011933
dataset_id (str):
11931-
If the resource is BigQuery, the dataset ID.
11934+
If the resource is BigQuery, the dataset ID.
1193211935
table_id (str):
11933-
If the resource is BigQuery, the BigQuery
11934-
table ID.
11936+
The table ID.
1193511937
full_resource (str):
11936-
The resource name of the resource profiled.
11938+
The Cloud Asset Inventory resource that was profiled in
11939+
order to generate this TableDataProfile.
1193711940
https://cloud.google.com/apis/design/resource_names#full_resource_name
1193811941
profile_status (google.cloud.dlp_v2.types.ProfileStatus):
1193911942
Success or error status from the most recent
@@ -12219,14 +12222,15 @@ class ColumnDataProfile(proto.Message):
1221912222
The Google Cloud project ID that owns the
1222012223
profiled resource.
1222112224
dataset_location (str):
12222-
The BigQuery location where the dataset's
12223-
data is stored. See
12225+
If supported, the location where the
12226+
dataset's data is stored. See
1222412227
https://cloud.google.com/bigquery/docs/locations
12225-
for supported locations.
12228+
for supported BigQuery locations.
1222612229
dataset_id (str):
12227-
The BigQuery dataset ID.
12230+
The BigQuery dataset ID, if the resource
12231+
profiled is a BigQuery table.
1222812232
table_id (str):
12229-
The BigQuery table ID.
12233+
The table ID.
1223012234
column (str):
1223112235
The name of the column.
1223212236
sensitivity_score (google.cloud.dlp_v2.types.SensitivityScore):

0 commit comments

Comments
 (0)