GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: move samples from python-docs-sample by arithmetic1728 · Pull Request #33 · googleapis/python-dlp

This repository was archived by the owner on Dec 10, 2023. It is now read-only.

Conversation

@arithmetic1728

@arithmetic1728 arithmetic1728 commented Aug 12, 2020

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
andrewsg and others added 30 commits March 1, 2018 10:30
@andrewsg
Add samples for DLP API v2beta1 [(#1369)](GoogleCloudPlatform/python-…
f865d07
…docs-samples#1369)
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(#1377)](GoogleCloudPlatform/python-docs-s…
289f38d
…amples#1377)

* Auto-update dependencies.

* Update requirements.txt
@andrewsg
Update DLP samples for release [(#1415)](GoogleCloudPlatform/python-d…
403f54a
…ocs-samples#1415)
@andrewsg
fix DLP region tags, and add @flaky to pub/sub sample tests [(#1418)](G…
8ee5d4e
…oogleCloudPlatform/python-docs-samples#1418)
@dpebot
Auto-update dependencies.
6c21763
chenyumic
Regenerate the README files and fix the Open in Cloud Shell link for …
d06095c
…some samples [(#1441)](GoogleCloudPlatform/python-docs-samples#1441)
@andrewsg
Update README for DLP GA [(#1426)](GoogleCloudPlatform/python-docs-sa…
3dd2ff0
…mples#1426)
@frankyn Jon Wayne Parrott
Update READMEs to fix numbering and add git clone [(#1464)](GoogleClo…
c0c864c
…udPlatform/python-docs-samples#1464)
@micheldavid @andrewsg
DLP: Add auto_populate_timespan option for create job trigger. [(#154…
382fd84
…3)](GoogleCloudPlatform/python-docs-samples#1543)
@michaelawyu
Resolved conflicts.
9ddf0da
@michaelawyu
Merge branch 'dpebot-repositorygardener' despite flaky dataproc tests
29f10f4
@mwdaub @andrewsg
Add DLP code samples for custom info types [(#1524)](GoogleCloudPlatf…
68b5872
…orm/python-docs-samples#1524)

* Add custom info type samples to inspect_content.py

Use flags to indicate dictionary word lists and regex patterns, then parse them into custom info types.

* Make code compatible with python 2.7

* Add missing commas

* Remove bad import

* Add tests for custom info types

* Add info_types parameter to deid.py

* Update deid tests to use info_types parameter

* Fix indentation

* Add blank lines

* Share logic for building custom info types

* Fix line too long

* Fix typo.

* Revert "Fix typo."

This reverts commit b4ffea6eef1fc2ccd2a4f17adb6e9492e54f1b76, so that
the sharing of the custom info type logic can be reverted as well to
make the code samples more readable.

* Revert "Share logic for building custom info types"

This reverts commit 47fc04f74c77db3bd5397459cf9242dc11521c37. This makes
the code samples more readable.

* Switch from indexes to using enumerate.

* Updated help message for custom dictionaries.

* Fix enumerate syntax error.
@andrewsg chenyumic
upgrade DLP version and fix tests [(#1784)](GoogleCloudPlatform/pytho…
0d2381f
…n-docs-samples#1784)

* upgrade DLP version and fix tests

* bump dlp version again
@dpebot @gguuss
Auto-update dependencies. [(#1846)](GoogleCloudPlatform/python-docs-s…
e36f644
…amples#1846)

ACK, merging.
@realjordanna @theacodes
Per internal documentation complaint, fix the naming. [(#1933)](Googl…
ccb070f
…eCloudPlatform/python-docs-samples#1933)

The documentation for DLP uses 'dlp' as the instance name.  As this is also the name of the python package, it could be confusing for people new to the API object model so switch to dlp_client.
@ackul @engelke
Add inspect table code sample for DLP and some nit fixes [(#1921)](Go…
33d3152
…ogleCloudPlatform/python-docs-samples#1921)

* Remove claim that redact.py operates on strings

Reflect in the comments that this particular code sample does not support text redaction.

* Add code sample for inspecting table, fix requirements for running tests, quickstart example refactor

* Remove newline, if -> elif

* formatting

* More formatting
@djmailhot @engelke
Update DLP redact image code sample region to include mimetype import…
f113c2e
… [(#1928)](GoogleCloudPlatform/python-docs-samples#1928)

In response to feedback where a user was confused that the mimetype
import was missing from the code sample in the documentation.
@engelke
Update to use new subscribe() syntax [(#1989)](GoogleCloudPlatform/py…
ac8d34e
…thon-docs-samples#1989)

* Update to use new subscribe() syntax

* Missed two subscribe() call changes before

* Cancel subscription when processed

* Update risk.py

* Fix waiting for message

* Unneeded try/except removed
@dpebot @engelke
Auto-update dependencies. [(#1980)](GoogleCloudPlatform/python-docs-s…
301d4e1
…amples#1980)

* Auto-update dependencies.

* Update requirements.txt

* Update requirements.txt
@maximus12793 @andrewsg
Convert append -> nargs, so arguments are not additive [(#2191)](Goog…
ec2abd1
…leCloudPlatform/python-docs-samples#2191)
@averikitsch
increase test timeout [(#2351)](GoogleCloudPlatform/python-docs-sampl…
5182a8d
…es#2351)
@gguuss @crwilcox
Adds updates including compute [(#2436)](GoogleCloudPlatform/python-d…
09dccf7
…ocs-samples#2436)

* Adds updates including compute

* Python 2 compat pytest

* Fixing weird \r\n issue from GH merge

* Put asset tests back in

* Re-add pod operator test

* Hack parameter for k8s pod operator
@maximus12793 @kurtisvg
Update DLP samples to use dlp_v2 client. [(#2580)](GoogleCloudPlatfor…
c38f4e4
…m/python-docs-samples#2580)
@leahecole @kurtisvg
fix: correct dataset name, use env var for project [(#2621)](GoogleCl…
27aff06
…oudPlatform/python-docs-samples#2621)

* fix: correct dataset name, use env var for project

* Add uuids to tests

* add uuids and fixtures for bq

* Add logic to delete job

* ran black

* Run black with line length

* Add utf encoding for python 2 tests

* Add skips for now

* Ran black

* Remove skips, adjust job tests

* fix lint and skips

* Cleanup commented things

Co-authored-by: Kurtis Van Gent <[email protected]>
@leahecole
Remove param to reduce latency (per docs) [(#2853)](GoogleCloudPlatfo…
5faa642
…rm/python-docs-samples#2853)
@renovate-bot @leahecole
chore(deps): update dependency google-cloud-storage to v1.26.0 [(#304…
3b9f158
…6)](GoogleCloudPlatform/python-docs-samples#3046)

* chore(deps): update dependency google-cloud-storage to v1.26.0

* chore(deps): specify dependencies by python version

* chore: up other deps to try to remove errors

Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Leah Cole <[email protected]>
@leahecole
Fix dlp tests [(#3058)](GoogleCloudPlatform/python-docs-samples#3058)
c65552b
Since the tests are flaky and timing out, I'm proposing we do the ML API approach of creating an operation then canceling it. 

It would 
fix #2809
fix #2810  
fix #2811 
fix #2812
@kurtisvg @renovate-bot
Simplify noxfile setup. [(#2806)](GoogleCloudPlatform/python-docs-sam…
0f3b4da
…ples#2806)

* chore(deps): update dependency requests to v2.23.0

* Simplify noxfile and add version control.

* Configure appengine/standard to only test Python 2.7.

* Update Kokokro configs to match noxfile.

* Add requirements-test to each folder.

* Remove Py2 versions from everything execept appengine/standard.

* Remove conftest.py.

* Remove appengine/standard/conftest.py

* Remove 'no-sucess-flaky-report' from pytest.ini.

* Add GAE SDK back to appengine/standard tests.

* Fix typo.

* Roll pytest to python 2 version.

* Add a bunch of testing requirements.

* Remove typo.

* Add appengine lib directory back in.

* Add some additional requirements.

* Fix issue with flake8 args.

* Even more requirements.

* Readd appengine conftest.py.

* Add a few more requirements.

* Even more Appengine requirements.

* Add webtest for appengine/standard/mailgun.

* Add some additional requirements.

* Add workaround for issue with mailjet-rest.

* Add responses for appengine/standard/mailjet.

Co-authored-by: Renovate Bot <[email protected]>
Takashi Matsuo
[dlp] fix: fix periodic builds timeout [(#3420)](GoogleCloudPlatform/…
74547ae
…python-docs-samples#3420)

* [dlp] fix: remove gcp-devrel-py-tools

fixes #3375
fixes #3416
fixes #3417

* remove wrong usage of `eventually_consistent.call`
* only test if the operation has been started
* shorter timeout for polling
* correct use of `pytest.mark.flaky`
* use try-finally
* use uuid for job_id
* add a filter to allow state = DONE
@renovate-bot
chore(deps): update dependency google-cloud-dlp to v0.14.0 [(#3431)](G…
8c01feb
…oogleCloudPlatform/python-docs-samples#3431)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-dlp](https://togithub.com/googleapis/python-dlp) | minor | `==0.13.0` -> `==0.14.0` |

---

### Release Notes

<details>
<summary>googleapis/python-dlp</summary>

### [`v0.14.0`](https://togithub.com/googleapis/python-dlp/blob/master/CHANGELOG.md#&#8203;0140-httpswwwgithubcomgoogleapispython-dlpcomparev0130v0140-2020-02-21)

[Compare Source](https://togithub.com/googleapis/python-dlp/compare/v0.13.0...v0.14.0)

##### Features

-   **dlp:** undeprecate resource name helper methods, add 2.7 deprecation warning (via synth)  ([#&#8203;10040](https://www.github.com/googleapis/python-dlp/issues/10040)) ([b30d7c1](https://www.github.com/googleapis/python-dlp/commit/b30d7c1cd48fba47fdddb7b9232e421261108a52))

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [x] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
renovate-bot and others added 9 commits July 14, 2020 17:20
@renovate-bot
chore(deps): update dependency google-cloud-pubsub to v1.7.0 [(#4290)](…
27079ea
…GoogleCloudPlatform/python-docs-samples#4290)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | minor | `==1.6.1` -> `==1.7.0` |

---

### Release Notes

<details>
<summary>googleapis/python-pubsub</summary>

### [`v1.7.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#&#8203;170-httpswwwgithubcomgoogleapispython-pubsubcomparev161v170-2020-07-13)

[Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v1.6.1...v1.7.0)

##### New Features

-   Add support for server-side flow control. ([#&#8203;143](https://togithub.com/googleapis/python-pubsub/pull/143)) ([04e261c](https://www.github.com/googleapis/python-pubsub/commit/04e261c602a2919cc75b3efa3dab099fb2cf704c))

##### Dependencies

-   Update samples dependency `google-cloud-pubsub` to `v1.6.1`. ([#&#8203;144](https://togithub.com/googleapis/python-pubsub/pull/144)) ([1cb6746](https://togithub.com/googleapis/python-pubsub/commit/1cb6746b00ebb23dbf1663bae301b32c3fc65a88))

##### Documentation

-   Add pubsub/cloud-client samples from the common samples repo (with commit history). ([#&#8203;151](https://togithub.com/googleapis/python-pubsub/pull/151)) 
-   Add flow control section to publish overview. ([#&#8203;129](https://togithub.com/googleapis/python-pubsub/pull/129)) ([acc19eb](https://www.github.com/googleapis/python-pubsub/commit/acc19eb048eef067d9818ef3e310b165d9c6307e))
-   Add a link to Pub/Sub filtering language public documentation to `pubsub.proto`. ([#&#8203;121](https://togithub.com/googleapis/python-pubsub/pull/121)) ([8802d81](https://www.github.com/googleapis/python-pubsub/commit/8802d8126247f22e26057e68a42f5b5a82dcbf0d))

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
@renovate-bot
Update dependency flaky to v3.7.0 [(#4300)](GoogleCloudPlatform/pytho…
f2f62a8
…n-docs-samples#4300)
@renovate-bot
Update dependency google-cloud-datastore to v1.13.1 [(#4295)](GoogleC…
20909c5
…loudPlatform/python-docs-samples#4295)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-datastore](https://togithub.com/googleapis/python-datastore) | patch | `==1.13.0` -> `==1.13.1` |

---

### Release Notes

<details>
<summary>googleapis/python-datastore</summary>

### [`v1.13.1`](https://togithub.com/googleapis/python-datastore/blob/master/CHANGELOG.md#&#8203;1131-httpswwwgithubcomgoogleapispython-datastorecomparev1130v1131-2020-07-13)

[Compare Source](https://togithub.com/googleapis/python-datastore/compare/v1.13.0...v1.13.1)

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
@renovate-bot
chore(deps): update dependency google-cloud-datastore to v1.13.2 [(#4…
47aaede
…326)](GoogleCloudPlatform/python-docs-samples#4326)
@renovate-bot
Update dependency google-cloud-storage to v1.30.0
ddbf836
@renovate-bot
Update dependency pytest to v6 [(#4390)](GoogleCloudPlatform/python-d…
19c3d15
…ocs-samples#4390)
@engelke
Resolved merge conflicts in requirements.txt files
fcf9b5c
@arithmetic1728
Merge branch 'snippets-samples' into add-snippets-samples
9c6feba
@arithmetic1728
chore: update templates
973bcc3
@google-cla

google-cla Bot commented Aug 12, 2020

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-cla google-cla Bot added the cla: no This human has *not* signed the Contributor License Agreement. label Aug 12, 2020
@arithmetic1728
chore: update synth.py
db0ddb0
@google-cla

google-cla Bot commented Aug 12, 2020

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@arithmetic1728 arithmetic1728 added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Aug 12, 2020
@arithmetic1728

arithmetic1728 commented Aug 12, 2020

Copy link
Copy Markdown
Contributor Author

The samples are being moved from https://github.com/GoogleCloudPlatform/python-docs-samples

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@arithmetic1728
arithmetic1728 marked this pull request as ready for review August 12, 2020 22:50
@arithmetic1728
arithmetic1728 requested a review from busunkim96 August 12, 2020 22:50
@arithmetic1728

arithmetic1728 commented Aug 13, 2020

Copy link
Copy Markdown
Contributor Author

@busunkim96 Please take a look, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

busunkim96
busunkim96 approved these changes Aug 13, 2020
View reviewed changes

@busunkim96 busunkim96 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, could you add the samples Kokoro checks to verify that everything is working as expected?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@arithmetic1728 arithmetic1728 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2020
@arithmetic1728
chore: update project env name
de0b830
@google-cla

google-cla Bot commented Aug 13, 2020

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-cla google-cla Bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Aug 13, 2020
@arithmetic1728 arithmetic1728 added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Aug 13, 2020
@arithmetic1728
arithmetic1728 merged commit a95ccf9 into master Aug 13, 2020
@arithmetic1728
arithmetic1728 deleted the add-snippets-samples branch August 13, 2020 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@arithmetic1728 @busunkim96 @yoshi-kokoro @andrewsg @dpebot @frankyn @micheldavid @michaelawyu @mwdaub @realjordanna @ackul @djmailhot @engelke @maximus12793 @averikitsch @gguuss @leahecole @renovate-bot @kurtisvg @sethmoo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.