Skip to content

Commit 3c92c83

Browse files
authored
regenerate dlp v2 library (googleapis#5666)
* regenerate dlp v2 library
1 parent 271e3eb commit 3c92c83

18 files changed

Lines changed: 2503 additions & 1011 deletions

dlp/LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Apache License
22
Version 2.0, January 2004
3-
http://www.apache.org/licenses/
3+
https://www.apache.org/licenses/
44

55
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
66

@@ -192,7 +192,7 @@
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
https://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

dlp/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include README.rst LICENSE
22
recursive-include google *.json *.proto
3+
recursive-include tests *
34
global-exclude *.py[co]
45
global-exclude __pycache__

dlp/README.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Python Client for DLP API (`Alpha`_)
2-
====================================
1+
Python Client for Cloud Data Loss Prevention (DLP) API (`Alpha`_)
2+
=================================================================
33

4-
`DLP API`_: The Google Data Loss Prevention API provides methods for detection of
4+
`Cloud Data Loss Prevention (DLP) API`_: Provides methods for detection, risk analysis, and de-identification of
55
privacy-sensitive fragments in text, images, and Google Cloud Platform
66
storage repositories.
77

88
- `Client Library Documentation`_
99
- `Product Documentation`_
1010

1111
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
12-
.. _DLP API: https://cloud.google.com/dlp
13-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/dlp-usage
12+
.. _Cloud Data Loss Prevention (DLP) API: https://cloud.google.com/dlp
13+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/dlp/usage.html
1414
.. _Product Documentation: https://cloud.google.com/dlp
1515

1616
Quick Start
@@ -19,12 +19,14 @@ Quick Start
1919
In order to use this library, you first need to go through the following steps:
2020

2121
1. `Select or create a Cloud Platform project.`_
22-
2. `Enable the DLP API.`_
23-
3. `Setup Authentication.`_
22+
2. `Enable billing for your project.`_
23+
3. `Enable the Cloud Data Loss Prevention (DLP) API.`_
24+
4. `Setup Authentication.`_
2425

2526
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
26-
.. _Enable the DLP API.: https://cloud.google.com/dlp
27-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/google-cloud-auth
27+
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
28+
.. _Enable the Cloud Data Loss Prevention (DLP) API.: https://cloud.google.com/dlp
29+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html
2830

2931
Installation
3032
~~~~~~~~~~~~
@@ -87,12 +89,12 @@ DlpServiceClient
8789
Next Steps
8890
~~~~~~~~~~
8991

90-
- Read the `Client Library Documentation`_ for DLP API
92+
- Read the `Client Library Documentation`_ for Cloud Data Loss Prevention (DLP) API
9193
API to see other available methods on the client.
92-
- Read the `DLP API Product documentation`_ to learn
94+
- Read the `Cloud Data Loss Prevention (DLP) API Product documentation`_ to learn
9395
more about the product and see How-to Guides.
9496
- View this `repository’s main README`_ to see the full list of Cloud
9597
APIs that we cover.
9698

97-
.. _DLP API Product documentation: https://cloud.google.com/dlp
99+
.. _Cloud Data Loss Prevention (DLP) API Product documentation: https://cloud.google.com/dlp
98100
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst

dlp/docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Python Client for Cloud Data Loss Prevention (DLP) API (`Alpha`_)
22
=================================================================
33

4-
`Cloud Data Loss Prevention (DLP) API`_: Provides methods for detection of privacy-sensitive fragments in text,
5-
images, and Google Cloud Platform storage repositories.
4+
`Cloud Data Loss Prevention (DLP) API`_: Provides methods for detection, risk analysis, and de-identification of
5+
privacy-sensitive fragments in text, images, and Google Cloud Platform
6+
storage repositories.
67

78
- `Client Library Documentation`_
89
- `Product Documentation`_
@@ -83,4 +84,3 @@ Api Reference
8384
gapic/v2/api
8485
gapic/v2/types
8586
changelog
86-

dlp/google/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
try:
216
import pkg_resources
317
pkg_resources.declare_namespace(__name__)

dlp/google/cloud/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
try:
216
import pkg_resources
317
pkg_resources.declare_namespace(__name__)

dlp/google/cloud/dlp.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright 2017, Google LLC All rights reserved.
1+
# Copyright 2018 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# https://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -21,4 +21,5 @@
2121
__all__ = (
2222
'enums',
2323
'types',
24-
'DlpServiceClient', )
24+
'DlpServiceClient',
25+
)

0 commit comments

Comments
 (0)