Skip to content

Commit 2913199

Browse files
feat: [google-cloud-dlp] discovery of Vertex AI datasets (#13540)
- [ ] Regenerate this pull request now. docs: documentation revisions for data profiles PiperOrigin-RevId: 728394045 Source-Link: googleapis/googleapis@40bad3e Source-Link: googleapis/googleapis-gen@ff329ff Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRscC8uT3dsQm90LnlhbWwiLCJoIjoiZmYzMjlmZjA5M2FjYWY0MjJmYTNmY2FmMGZhYTJiNmY4NGJkMTM3OSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8366123 commit 2913199

File tree

15 files changed

+631
-83
lines changed

15 files changed

+631
-83
lines changed

packages/google-cloud-dlp/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ In order to use this library, you first need to go through the following steps:
2626
1. `Select or create a Cloud Platform project.`_
2727
2. `Enable billing for your project.`_
2828
3. `Enable the Cloud Data Loss Prevention.`_
29-
4. `Setup Authentication.`_
29+
4. `Set up Authentication.`_
3030

3131
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
3232
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
3333
.. _Enable the Cloud Data Loss Prevention.: https://cloud.google.com/dlp/docs/
34-
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
34+
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
3535

3636
Installation
3737
~~~~~~~~~~~~

packages/google-cloud-dlp/google/cloud/dlp/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@
123123
DiscoveryStartingLocation,
124124
DiscoveryTableModifiedCadence,
125125
DiscoveryTarget,
126+
DiscoveryVertexDatasetConditions,
127+
DiscoveryVertexDatasetFilter,
128+
DiscoveryVertexDatasetGenerationCadence,
126129
DlpJob,
127130
DlpJobType,
128131
DocumentLocation,
@@ -221,6 +224,7 @@
221224
OutputStorageConfig,
222225
PrimitiveTransformation,
223226
PrivacyMetric,
227+
ProcessingLocation,
224228
ProfileGeneration,
225229
ProfileStatus,
226230
ProjectDataProfile,
@@ -237,6 +241,7 @@
237241
RedactImageResponse,
238242
ReidentifyContentRequest,
239243
ReidentifyContentResponse,
244+
RelatedResource,
240245
RelationalOperator,
241246
ReplaceDictionaryConfig,
242247
ReplaceValueConfig,
@@ -283,6 +288,11 @@
283288
Value,
284289
ValueFrequency,
285290
VersionDescription,
291+
VertexDatasetCollection,
292+
VertexDatasetDiscoveryTarget,
293+
VertexDatasetRegex,
294+
VertexDatasetRegexes,
295+
VertexDatasetResourceReference,
286296
)
287297
from google.cloud.dlp_v2.types.storage import (
288298
BigQueryField,
@@ -411,6 +421,9 @@
411421
"DiscoveryStartingLocation",
412422
"DiscoveryTableModifiedCadence",
413423
"DiscoveryTarget",
424+
"DiscoveryVertexDatasetConditions",
425+
"DiscoveryVertexDatasetFilter",
426+
"DiscoveryVertexDatasetGenerationCadence",
414427
"DlpJob",
415428
"DocumentLocation",
416429
"Error",
@@ -503,6 +516,7 @@
503516
"OutputStorageConfig",
504517
"PrimitiveTransformation",
505518
"PrivacyMetric",
519+
"ProcessingLocation",
506520
"ProfileStatus",
507521
"ProjectDataProfile",
508522
"QuasiId",
@@ -518,6 +532,7 @@
518532
"RedactImageResponse",
519533
"ReidentifyContentRequest",
520534
"ReidentifyContentResponse",
535+
"RelatedResource",
521536
"ReplaceDictionaryConfig",
522537
"ReplaceValueConfig",
523538
"ReplaceWithInfoTypeConfig",
@@ -557,6 +572,11 @@
557572
"Value",
558573
"ValueFrequency",
559574
"VersionDescription",
575+
"VertexDatasetCollection",
576+
"VertexDatasetDiscoveryTarget",
577+
"VertexDatasetRegex",
578+
"VertexDatasetRegexes",
579+
"VertexDatasetResourceReference",
560580
"BigQuerySchemaModification",
561581
"BigQueryTableModification",
562582
"BigQueryTableType",

packages/google-cloud-dlp/google/cloud/dlp/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.27.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
DiscoveryStartingLocation,
123123
DiscoveryTableModifiedCadence,
124124
DiscoveryTarget,
125+
DiscoveryVertexDatasetConditions,
126+
DiscoveryVertexDatasetFilter,
127+
DiscoveryVertexDatasetGenerationCadence,
125128
DlpJob,
126129
DlpJobType,
127130
DocumentLocation,
@@ -220,6 +223,7 @@
220223
OutputStorageConfig,
221224
PrimitiveTransformation,
222225
PrivacyMetric,
226+
ProcessingLocation,
223227
ProfileGeneration,
224228
ProfileStatus,
225229
ProjectDataProfile,
@@ -236,6 +240,7 @@
236240
RedactImageResponse,
237241
ReidentifyContentRequest,
238242
ReidentifyContentResponse,
243+
RelatedResource,
239244
RelationalOperator,
240245
ReplaceDictionaryConfig,
241246
ReplaceValueConfig,
@@ -282,6 +287,11 @@
282287
Value,
283288
ValueFrequency,
284289
VersionDescription,
290+
VertexDatasetCollection,
291+
VertexDatasetDiscoveryTarget,
292+
VertexDatasetRegex,
293+
VertexDatasetRegexes,
294+
VertexDatasetResourceReference,
285295
)
286296
from .types.storage import (
287297
BigQueryField,
@@ -427,6 +437,9 @@
427437
"DiscoveryStartingLocation",
428438
"DiscoveryTableModifiedCadence",
429439
"DiscoveryTarget",
440+
"DiscoveryVertexDatasetConditions",
441+
"DiscoveryVertexDatasetFilter",
442+
"DiscoveryVertexDatasetGenerationCadence",
430443
"DlpJob",
431444
"DlpJobType",
432445
"DlpServiceClient",
@@ -535,6 +548,7 @@
535548
"PartitionId",
536549
"PrimitiveTransformation",
537550
"PrivacyMetric",
551+
"ProcessingLocation",
538552
"ProfileGeneration",
539553
"ProfileStatus",
540554
"ProjectDataProfile",
@@ -552,6 +566,7 @@
552566
"RedactImageResponse",
553567
"ReidentifyContentRequest",
554568
"ReidentifyContentResponse",
569+
"RelatedResource",
555570
"RelationalOperator",
556571
"ReplaceDictionaryConfig",
557572
"ReplaceValueConfig",
@@ -603,4 +618,9 @@
603618
"Value",
604619
"ValueFrequency",
605620
"VersionDescription",
621+
"VertexDatasetCollection",
622+
"VertexDatasetDiscoveryTarget",
623+
"VertexDatasetRegex",
624+
"VertexDatasetRegexes",
625+
"VertexDatasetResourceReference",
606626
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.27.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ async def list_info_types(
708708
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
709709
) -> dlp.ListInfoTypesResponse:
710710
r"""Returns a list of the sensitive information types
711-
that DLP API supports. See
711+
that the DLP API supports. See
712712
https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
713713
to learn more.
714714
@@ -3904,7 +3904,8 @@ async def sample_get_dlp_job():
39043904
39053905
Args:
39063906
request (Optional[Union[google.cloud.dlp_v2.types.GetDlpJobRequest, dict]]):
3907-
The request object. The request message for [DlpJobs.GetDlpJob][].
3907+
The request object. The request message for
3908+
[GetDlpJob][google.privacy.dlp.v2.DlpService.GetDlpJob].
39083909
name (:class:`str`):
39093910
Required. The name of the DlpJob
39103911
resource.
@@ -6187,9 +6188,9 @@ async def sample_create_connection():
61876188
61886189
Returns:
61896190
google.cloud.dlp_v2.types.Connection:
6190-
A data connection to allow DLP to
6191-
profile data in locations that require
6192-
additional configuration.
6191+
A data connection to allow the DLP
6192+
API to profile data in locations that
6193+
require additional configuration.
61936194
61946195
"""
61956196
# Create or coerce a protobuf request object.
@@ -6297,9 +6298,9 @@ async def sample_get_connection():
62976298
62986299
Returns:
62996300
google.cloud.dlp_v2.types.Connection:
6300-
A data connection to allow DLP to
6301-
profile data in locations that require
6302-
additional configuration.
6301+
A data connection to allow the DLP
6302+
API to profile data in locations that
6303+
require additional configuration.
63036304
63046305
"""
63056306
# Create or coerce a protobuf request object.
@@ -6759,9 +6760,9 @@ async def sample_update_connection():
67596760
67606761
Returns:
67616762
google.cloud.dlp_v2.types.Connection:
6762-
A data connection to allow DLP to
6763-
profile data in locations that require
6764-
additional configuration.
6763+
A data connection to allow the DLP
6764+
API to profile data in locations that
6765+
require additional configuration.
67656766
67666767
"""
67676768
# Create or coerce a protobuf request object.

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ def list_info_types(
13291329
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
13301330
) -> dlp.ListInfoTypesResponse:
13311331
r"""Returns a list of the sensitive information types
1332-
that DLP API supports. See
1332+
that the DLP API supports. See
13331333
https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
13341334
to learn more.
13351335
@@ -4461,7 +4461,8 @@ def sample_get_dlp_job():
44614461
44624462
Args:
44634463
request (Union[google.cloud.dlp_v2.types.GetDlpJobRequest, dict]):
4464-
The request object. The request message for [DlpJobs.GetDlpJob][].
4464+
The request object. The request message for
4465+
[GetDlpJob][google.privacy.dlp.v2.DlpService.GetDlpJob].
44654466
name (str):
44664467
Required. The name of the DlpJob
44674468
resource.
@@ -6698,9 +6699,9 @@ def sample_create_connection():
66986699
66996700
Returns:
67006701
google.cloud.dlp_v2.types.Connection:
6701-
A data connection to allow DLP to
6702-
profile data in locations that require
6703-
additional configuration.
6702+
A data connection to allow the DLP
6703+
API to profile data in locations that
6704+
require additional configuration.
67046705
67056706
"""
67066707
# Create or coerce a protobuf request object.
@@ -6805,9 +6806,9 @@ def sample_get_connection():
68056806
68066807
Returns:
68076808
google.cloud.dlp_v2.types.Connection:
6808-
A data connection to allow DLP to
6809-
profile data in locations that require
6810-
additional configuration.
6809+
A data connection to allow the DLP
6810+
API to profile data in locations that
6811+
require additional configuration.
68116812
68126813
"""
68136814
# Create or coerce a protobuf request object.
@@ -7255,9 +7256,9 @@ def sample_update_connection():
72557256
72567257
Returns:
72577258
google.cloud.dlp_v2.types.Connection:
7258-
A data connection to allow DLP to
7259-
profile data in locations that require
7260-
additional configuration.
7259+
A data connection to allow the DLP
7260+
API to profile data in locations that
7261+
require additional configuration.
72617262
72627263
"""
72637264
# Create or coerce a protobuf request object.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def list_info_types(
470470
r"""Return a callable for the list info types method over gRPC.
471471
472472
Returns a list of the sensitive information types
473-
that DLP API supports. See
473+
that the DLP API supports. See
474474
https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
475475
to learn more.
476476

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def list_info_types(
481481
r"""Return a callable for the list info types method over gRPC.
482482
483483
Returns a list of the sensitive information types
484-
that DLP API supports. See
484+
that the DLP API supports. See
485485
https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
486486
to learn more.
487487

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3090,9 +3090,9 @@ def __call__(
30903090
30913091
Returns:
30923092
~.dlp.Connection:
3093-
A data connection to allow DLP to
3094-
profile data in locations that require
3095-
additional configuration.
3093+
A data connection to allow the DLP
3094+
API to profile data in locations that
3095+
require additional configuration.
30963096
30973097
"""
30983098

@@ -5603,9 +5603,9 @@ def __call__(
56035603
56045604
Returns:
56055605
~.dlp.Connection:
5606-
A data connection to allow DLP to
5607-
profile data in locations that require
5608-
additional configuration.
5606+
A data connection to allow the DLP
5607+
API to profile data in locations that
5608+
require additional configuration.
56095609
56105610
"""
56115611

@@ -6047,7 +6047,8 @@ def __call__(
60476047
60486048
Args:
60496049
request (~.dlp.GetDlpJobRequest):
6050-
The request object. The request message for [DlpJobs.GetDlpJob][].
6050+
The request object. The request message for
6051+
[GetDlpJob][google.privacy.dlp.v2.DlpService.GetDlpJob].
60516052
retry (google.api_core.retry.Retry): Designation of what errors, if any,
60526053
should be retried.
60536054
timeout (float): The timeout for this request.
@@ -9845,9 +9846,9 @@ def __call__(
98459846
98469847
Returns:
98479848
~.dlp.Connection:
9848-
A data connection to allow DLP to
9849-
profile data in locations that require
9850-
additional configuration.
9849+
A data connection to allow the DLP
9850+
API to profile data in locations that
9851+
require additional configuration.
98519852
98529853
"""
98539854

0 commit comments

Comments
 (0)