Skip to content

Commit

Permalink
feat: [google-cloud-dlp] inspect template modified cadence discovery …
Browse files Browse the repository at this point in the history
…config for Cloud SQL (#13016)

- [ ] Regenerate this pull request now.

BEGIN_COMMIT_OVERRIDE
feat: inspect template modified cadence discovery config for Cloud SQL
feat: file store data profiles can now be filtered by type and storage
location
docs: small improvements
END_COMMIT_OVERRIDE

PiperOrigin-RevId: 663887424

Source-Link:
googleapis/googleapis@07ee675

Source-Link:
googleapis/googleapis-gen@6f7f8eb
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRscC8uT3dsQm90LnlhbWwiLCJoIjoiNmY3ZjhlYmNmNmUyZDg2NWFlOTJiNTc2ZTVhZDAwYzAwMDdiN2U5ZSJ9

---------

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] authored Aug 19, 2024
1 parent 3fc401f commit 5dc35c8
Show file tree
Hide file tree
Showing 7 changed files with 302 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.21.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.21.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
from collections import OrderedDict
import functools
import re
from typing import (
Callable,
Expand Down Expand Up @@ -238,9 +237,7 @@ def universe_domain(self) -> str:
"""
return self._client._universe_domain

get_transport_class = functools.partial(
type(DlpServiceClient).get_transport_class, type(DlpServiceClient)
)
get_transport_class = DlpServiceClient.get_transport_class

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ def __init__(
transport_init: Union[
Type[DlpServiceTransport], Callable[..., DlpServiceTransport]
] = (
type(self).get_transport_class(transport)
DlpServiceClient.get_transport_class(transport)
if isinstance(transport, str) or transport is None
else cast(Callable[..., DlpServiceTransport], transport)
)
Expand Down
24 changes: 22 additions & 2 deletions packages/google-cloud-dlp/google/cloud/dlp_v2/types/dlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9114,6 +9114,11 @@ class DiscoveryCloudSqlGenerationCadence(proto.Message):
this field, profiles are refreshed at this
frequency regardless of whether the underlying
tables have changed. Defaults to never.
inspect_template_modified_cadence (google.cloud.dlp_v2.types.DiscoveryInspectTemplateModifiedCadence):
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.
"""

class SchemaModifiedCadence(proto.Message):
Expand Down Expand Up @@ -9167,6 +9172,13 @@ class CloudSqlSchemaModification(proto.Enum):
number=2,
enum="DataProfileUpdateFrequency",
)
inspect_template_modified_cadence: "DiscoveryInspectTemplateModifiedCadence" = (
proto.Field(
proto.MESSAGE,
number=3,
message="DiscoveryInspectTemplateModifiedCadence",
)
)


class SecretsDiscoveryTarget(proto.Message):
Expand Down Expand Up @@ -12163,10 +12175,14 @@ class FileClusterSummary(proto.Message):
cluster.
file_extensions_scanned (MutableSequence[google.cloud.dlp_v2.types.FileExtensionInfo]):
A sample of file types scanned in this
cluster. Empty if no files were scanned.
cluster. Empty if no files were scanned. File
extensions can be derived from the file name or
the file content.
file_extensions_seen (MutableSequence[google.cloud.dlp_v2.types.FileExtensionInfo]):
A sample of file types seen in this cluster.
Empty if no files were seen.
Empty if no files were seen. File extensions can
be derived from the file name or the file
content.
no_files_exist (bool):
True if no files exist in this cluster. If the bucket had
more files than could be listed, this will be false even if
Expand Down Expand Up @@ -12307,6 +12323,10 @@ class ListFileStoreDataProfilesRequest(proto.Message):
- ``project_id`` - The Google Cloud project ID.
- ``file_store_path`` - The path like "gs://bucket".
- ``data_source_type`` - The profile's data source type,
like "google/storage/bucket".
- ``data_storage_location`` - The location where the
file store's data is stored, like "us-central1".
- ``sensitivity_level`` - HIGH|MODERATE|LOW
- ``data_risk_level`` - HIGH|MODERATE|LOW
- ``resource_visibility``: PUBLIC|RESTRICTED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-dlp",
"version": "3.21.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Loading

0 comments on commit 5dc35c8

Please sign in to comment.