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: [google-cloud-dlp] discovery of BigQuery snapshots #13172

Merged
merged 4 commits into from
Oct 19, 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
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@


class DlpServiceAsyncClient:
"""The Cloud Data Loss Prevention (DLP) API is a service that
allows clients to detect the presence of Personally Identifiable
Information (PII) and other privacy-sensitive data in
user-supplied, unstructured data streams, like text blocks or
images.
The service also includes methods for sensitive data redaction
and scheduling of data scans on Google Cloud Platform based data
sets.

To learn more about concepts and find how-to guides see
"""Sensitive Data Protection provides access to a powerful
sensitive data inspection, classification, and de-identification
platform that works on text, images, and Google Cloud storage
repositories. To learn more about concepts and find how-to
guides see
https://cloud.google.com/sensitive-data-protection/docs/.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,11 @@ def get_transport_class(


class DlpServiceClient(metaclass=DlpServiceClientMeta):
"""The Cloud Data Loss Prevention (DLP) API is a service that
allows clients to detect the presence of Personally Identifiable
Information (PII) and other privacy-sensitive data in
user-supplied, unstructured data streams, like text blocks or
images.
The service also includes methods for sensitive data redaction
and scheduling of data scans on Google Cloud Platform based data
sets.

To learn more about concepts and find how-to guides see
"""Sensitive Data Protection provides access to a powerful
sensitive data inspection, classification, and de-identification
platform that works on text, images, and Google Cloud storage
repositories. To learn more about concepts and find how-to
guides see
https://cloud.google.com/sensitive-data-protection/docs/.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,11 @@
class DlpServiceGrpcTransport(DlpServiceTransport):
"""gRPC backend transport for DlpService.

The Cloud Data Loss Prevention (DLP) API is a service that
allows clients to detect the presence of Personally Identifiable
Information (PII) and other privacy-sensitive data in
user-supplied, unstructured data streams, like text blocks or
images.
The service also includes methods for sensitive data redaction
and scheduling of data scans on Google Cloud Platform based data
sets.

To learn more about concepts and find how-to guides see
Sensitive Data Protection provides access to a powerful
sensitive data inspection, classification, and de-identification
platform that works on text, images, and Google Cloud storage
repositories. To learn more about concepts and find how-to
guides see
https://cloud.google.com/sensitive-data-protection/docs/.

This class defines the same methods as the primary client, so the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@
class DlpServiceGrpcAsyncIOTransport(DlpServiceTransport):
"""gRPC AsyncIO backend transport for DlpService.

The Cloud Data Loss Prevention (DLP) API is a service that
allows clients to detect the presence of Personally Identifiable
Information (PII) and other privacy-sensitive data in
user-supplied, unstructured data streams, like text blocks or
images.
The service also includes methods for sensitive data redaction
and scheduling of data scans on Google Cloud Platform based data
sets.

To learn more about concepts and find how-to guides see
Sensitive Data Protection provides access to a powerful
sensitive data inspection, classification, and de-identification
platform that works on text, images, and Google Cloud storage
repositories. To learn more about concepts and find how-to
guides see
https://cloud.google.com/sensitive-data-protection/docs/.

This class defines the same methods as the primary client, so the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,16 +1555,11 @@ class DlpServiceRestStub:
class DlpServiceRestTransport(_BaseDlpServiceRestTransport):
"""REST backend synchronous transport for DlpService.

The Cloud Data Loss Prevention (DLP) API is a service that
allows clients to detect the presence of Personally Identifiable
Information (PII) and other privacy-sensitive data in
user-supplied, unstructured data streams, like text blocks or
images.
The service also includes methods for sensitive data redaction
and scheduling of data scans on Google Cloud Platform based data
sets.

To learn more about concepts and find how-to guides see
Sensitive Data Protection provides access to a powerful
sensitive data inspection, classification, and de-identification
platform that works on text, images, and Google Cloud storage
repositories. To learn more about concepts and find how-to
guides see
https://cloud.google.com/sensitive-data-protection/docs/.

This class defines the same methods as the primary client, so the
Expand Down
26 changes: 15 additions & 11 deletions packages/google-cloud-dlp/google/cloud/dlp_v2/types/dlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ class ProfileGeneration(proto.Enum):

class BigQueryTableTypeCollection(proto.Enum):
r"""Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
and SNAPSHOT are not supported.
and non-BigLake external tables are not supported.

Values:
BIG_QUERY_COLLECTION_UNSPECIFIED (0):
Expand All @@ -453,7 +453,7 @@ class BigQueryTableTypeCollection(proto.Enum):

class BigQueryTableType(proto.Enum):
r"""Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
SNAPSHOT, and non-BigLake external tables are not supported.
and non-BigLake external tables are not supported.

Values:
BIG_QUERY_TABLE_TYPE_UNSPECIFIED (0):
Expand All @@ -463,10 +463,13 @@ class BigQueryTableType(proto.Enum):
BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE (2):
A table that references data stored in Cloud
Storage.
BIG_QUERY_TABLE_TYPE_SNAPSHOT (3):
A snapshot of a BigQuery table.
"""
BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0
BIG_QUERY_TABLE_TYPE_TABLE = 1
BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2
BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3


class DataProfileUpdateFrequency(proto.Enum):
Expand Down Expand Up @@ -11928,12 +11931,12 @@ class TableDataProfile(proto.Message):
https://cloud.google.com/bigquery/docs/locations
for supported locations.
dataset_id (str):
If the resource is BigQuery, the dataset ID.
If the resource is BigQuery, the dataset ID.
table_id (str):
If the resource is BigQuery, the BigQuery
table ID.
The table ID.
full_resource (str):
The resource name of the resource profiled.
The Cloud Asset Inventory resource that was profiled in
order to generate this TableDataProfile.
https://cloud.google.com/apis/design/resource_names#full_resource_name
profile_status (google.cloud.dlp_v2.types.ProfileStatus):
Success or error status from the most recent
Expand Down Expand Up @@ -12219,14 +12222,15 @@ class ColumnDataProfile(proto.Message):
The Google Cloud project ID that owns the
profiled resource.
dataset_location (str):
The BigQuery location where the dataset's
data is stored. See
If supported, the location where the
dataset's data is stored. See
https://cloud.google.com/bigquery/docs/locations
for supported locations.
for supported BigQuery locations.
dataset_id (str):
The BigQuery dataset ID.
The BigQuery dataset ID, if the resource
profiled is a BigQuery table.
table_id (str):
The BigQuery table ID.
The table ID.
column (str):
The name of the column.
sensitivity_score (google.cloud.dlp_v2.types.SensitivityScore):
Expand Down
Loading