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 (truncated) — migrate code from googleapis/python-dlp by Sita04 · Pull Request #9091 · GoogleCloudPlatform/python-docs-samples

Conversation

@Sita04

@Sita04 Sita04 commented Feb 7, 2023

Copy link
Copy Markdown
Collaborator
  • chore: move samples from python-docs-sample (Add test for some samples. #33)
  • feat!: migrate to use microgen (Fixing coverage, fixing pep8 issues #34)
  • chore(deps): update dependency google-cloud-dlp to v2 (Add 3LO Auth examples for python clients #43)
  • chore(deps): update dependency google-cloud-bigquery to v1.27.2 (Fixed broken travis build. #36)
  • chore(deps): update dependency google-cloud-datastore to v1.15.0 (Export data to CSV sample #42)
  • chore(deps): update dependency google-cloud-storage to v1.31.2 (Added doc strings to functions with ambiguous args #44)
  • chore(deps): update dependency google-cloud-bigquery to v2 (Confirm that coverage is working post-gae split #62)
  • fix(sample-test): add backoff around the cleanup code (Updating readme with better testing instructions #65)
  • chore(deps): update dependency google-cloud-datastore to v1.15.3 (Add quick start sample. #59)
  • chore(deps): update dependency google-cloud-storage to v1.32.0 (Fill in copyright information. #67)
  • chore(deps): update dependency google-cloud-bigquery to v2.2.0 (Make authn sample more uniform with the java one. #66)
  • docs(samples): fix README to accurately reflect the new repo after the move (Move annotation for greater brevity. #72)
  • chore(deps): update dependency google-cloud-storage to v1.33.0 (Run tests under both python 2 and 3 #71)
  • chore(deps): update dependency google-cloud-bigquery to v2.4.0 (Add reference to where to find apis. #68)
  • test(samples): retry flaky test 5 times (Cleaning up #77)
  • chore(samples): add samples for custom infotype rules (Organizing all app engine samples under appengine #76)
  • fix!: rename fields that collide with builtins; retrieve job config for risk analysis jobs (Can discoverydoccaching be deprecated? #75)
  • chore(deps): update dependency google-cloud-dlp to v3 (Update README To Reflect Current GAE Download Instructions #82)
  • chore(deps): update dependency google-cloud-bigquery to v2.5.0 (Switching app engine tests to webtest and consolidating testing utils… #83)
  • chore(deps): update dependency google-cloud-bigquery to v2.6.0 (Tests use magic numbers #85)
  • chore(deps): update dependency google-cloud-bigquery to v2.6.1 (There has got to be a better way to do bigquery/load_data_by_post #86)
  • chore(deps): update dependency google-cloud-storage to v1.35.0 (Moved Testing section to CONTRIBUTING. #88)
  • fix: remove gRPC send/recv limits; add enums to types/__init__.py (Rewriting bigquery samples to use proper argparse and main execution #89)
  • chore: update templates (Should we move Testing part in README to CONTRIBUTING? #87)
  • chore(deps): update dependency google-cloud-pubsub to v2 (Added Samples For Cloud Resource Manager #54)
  • chore(deps): update dependency google-cloud-datastore to v2 (Compute Autoscaler demo #69)
  • chore(deps): update dependency google-cloud-datastore to v2.1.0 (Add a tag, for a 'paging' sample #93)
  • chore(deps): update dependency google-cloud-bigquery to v2.6.2 (Renaming 'samples' -> 'api'. #97)
  • chore(deps): update dependency google-cloud-bigquery to v2.7.0 (Update samples to be run from command line without modification #100)
  • chore(deps): update dependency google-cloud-dlp to v3.0.1 (Moving compute engine getting started example to this repository. #102)
  • chore(deps): update dependency google-cloud-bigquery to v2.8.0 (Add tests for appengine/datastore_namespaces app #107)
  • chore(deps): update dependency google-cloud-pubsub to v2.3.0 (Move sample from appengine-guestbook-namespaces-python #106)
  • chore(deps): update dependency google-cloud-storage to v1.36.0 (Move sample from bigquery-appengine-datastore-import-sample #105)
  • chore(deps): update dependency google-cloud-bigquery to v2.9.0 (Bring appengine/storage up to standards #109)
  • chore(deps): update dependency google-cloud-storage to v1.36.1 (Bring appengine/cloudsql up to standards #111)
  • chore(deps): update dependency google-cloud-pubsub to v2.4.0 (Moving sample #110)
  • chore(deps): update dependency google-cloud-bigquery to v2.10.0 (Consolidate namespace example into this repo #112)
  • chore(deps): update dependency google-cloud-bigquery to v2.11.0 (Bring appengine/multitenancy up to standards #113)
  • chore(deps): update dependency google-cloud-storage to v1.36.2 (Remove datastore namespaces #114)
  • chore(deps): update dependency google-cloud-bigquery to v2.12.0 (Annotating slower tests and excluding them from travis. #116)
  • chore(deps): update dependency google-cloud-bigquery to v2.13.0 (Bringing App Engine storage sample up to standards #117)
  • chore(deps): update dependency google-cloud-bigquery to v2.13.1 (Bringing cloud sql sample up to standards, and fixing a few other sta… #118)
  • chore(deps): update dependency google-cloud-storage to v1.37.0 (Bringing namespace samples up to standards #120)
  • chore(deps): update dependency google-cloud-pubsub to v2.4.1 (Bring appengine/i18n up to standards #121)
  • feat: crypto_deterministic_config (Migrating sample. #108) (Move sample from appengine-i18n-sample-python #119)
  • fix: use correct retry deadlines (Cleaning up base test case #96)
  • chore(deps): update dependency google-cloud-storage to v1.37.1 ("Empty or missing scope not allowed" in load_data_by_post #126)
  • chore: add constraints file check for python samples (Update python docstring. #128)
  • chore(deps): update dependency google-cloud-storage to v1.38.0 (Moving blobstore sample #136)
  • chore(deps): update dependency google-cloud-bigquery to v2.14.0 (insertId is within the row, not the request. #135)
  • chore(deps): update dependency mock to v4.0.3 (Adding mailgun sample #132)
  • chore(deps): update dependency pytest to v6.2.3 (Make create_instance_test fail on bad output. #133)
  • chore(deps): update dependency google-cloud-pubsub to v2.4.2 (Typo #148)
  • chore(deps): update dependency pytest to v6.2.4 (fix storage/api/compose_objects main call #145)
  • chore(deps): update dependency google-cloud-bigquery to v2.16.1 (Adding app identity blob signing example. #139)
  • chore(deps): update dependency google-cloud-datastore to v2.1.2 (Restoring missing requirements.txt files #144)
  • chore: new owl bot post processor docker image (Add Django GKE Polls Sample #155)
  • chore(deps): update dependency google-cloud-datastore to v2.1.3 (Add Django/Postgres/Redis Container Engine example #157)
  • chore(deps): update dependency google-cloud-bigquery to v2.17.0 (Update requirements #153)
  • chore(deps): update dependency google-cloud-pubsub to v2.5.0 (Add Managed VMs Django Example #152)
  • chore(deps): update dependency google-cloud-bigquery to v2.18.0 (Using only the first 2 octets of IP addresses. #160)
  • chore(deps): update dependency google-cloud-dlp to v3.1.0 (CloudSQL / Datastore samples should record only first two octtets of IP #159)
  • chore(deps): update dependency google-cloud-bigquery to v2.20.0 (Basic Kinto Example #161)
  • chore(deps): update dependency google-cloud-dlp to v3.1.1 (Updating dependencies #165)
  • chore(deps): update dependency google-cloud-storage to v1.39.0 (Update sendgrid #173)
  • chore(deps): update dependency google-cloud-pubsub to v2.6.0 (Provides eventual_consistent_query region tag with comment saying rea… #170)
  • chore(deps): update dependency google-cloud-storage to v1.40.0 (gigantic re-organization of tests. #178)
  • chore(deps): update dependency google-cloud-datastore to v2.1.4 (managed_vms/mailgun needs tests #181)
  • chore(deps): update dependency google-cloud-pubsub to v2.6.1 (managed_vms/sengrid needs tests #182)
  • chore(deps): update dependency backoff to v1.11.0 (managed_vms/twilio needs tests #183)
  • chore(deps): update dependency google-cloud-dlp to v3.2.0 (BQ: Empty array when no results #184)
  • chore(deps): update dependency google-cloud-bigquery to v2.21.0 (Adding bigquery installed app auth sample. #203)
  • chore(deps): update dependency backoff to v1.11.1 (Changing all references to apiclient -> googleapiclient. #205)
  • chore(deps): update dependency google-cloud-storage to v1.41.0 (Add Custom Metric Examples #204)
  • chore(deps): update dependency google-cloud-bigquery to v2.22.0 (Deprecate X-Google-Metadata-Request in favor new Metadata-Flavor header #208)
  • chore(deps): update dependency google-cloud-storage to v1.41.1 (Managed VMs flask samples should have an error handler #212)
  • feat: add Samples section to CONTRIBUTING.rst (Remove database settings #210)
  • chore(deps): update dependency google-cloud-datastore to v2.1.5 (Moving cloudsql sample to Cloud SQL proxy #213)
  • chore(deps): update dependency google-cloud-dlp to v3.2.1 (Fix up Django URLs #214)
  • chore(deps): update dependency google-cloud-bigquery to v2.22.1 (Updating requirements. #216)
  • chore(deps): update dependency google-cloud-bigquery to v2.23.0 (Refactor storage sample for better code-inclusion #221)
  • chore(deps): update dependency google-cloud-datastore to v2.1.6 (Get rid of Django URL warnings #220)
  • chore(deps): update dependency google-cloud-dlp to v3.2.2 (Add Monitoring v3 Samples #223)
  • chore(deps): update dependency google-cloud-pubsub to v2.7.0 (Update requirements #225)
  • chore(deps): update dependency google-cloud-bigquery to v2.23.1 (Remove hardcoded sub-project from monitoring tests #224)
  • chore(deps): update dependency google-cloud-bigquery to v2.23.2 (Fix metric.name #226)
  • chore(deps): update dependency google-cloud-bigquery to v2.23.3 (Monitoring Doc Fixups #228)
  • chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (Monitoring tests are flaky #229)
  • chore(deps): update dependency google-cloud-bigquery to v2.24.0 (Write tests for speech sample #232)
  • chore(deps): update dependency google-cloud-storage to v1.42.0 (Cloud Speech API samples #231)
  • chore: drop mention of Python 2.7 from templates (Add test for speech sample. #233)
  • chore(deps): update dependency google-cloud-pubsub to v2.7.1 (Use Main Project (now whitelisted) #235)
  • chore(deps): update dependency google-cloud-bigquery to v2.25.1 (Noxify #234)
  • chore(deps): update dependency pytest to v6.2.5 (Fix Travis on PRs #242)
  • chore(deps): update dependency google-cloud-bigquery to v2.25.2 (Fix minor typo in custom_metric.py #243)
  • chore(deps): update dependency google-cloud-bigquery to v2.26.0 (Speech api streaming sample doesn't support python 3 #246)
  • chore(deps): update dependency google-cloud-pubsub to v2.8.0 (App Engine Task Queue Sample. #248)
  • chore(deps): update dependency google-cloud-storage to v1.42.1 (Comment out speech api test #250)
  • chore: blacken samples noxfile template (Adding dns samples #251)
  • chore(deps): update dependency google-cloud-storage to v1.42.2 (App Engine Task Queue example using pull queues. #252)
  • chore(deps): update all dependencies (Missed some ndb snippets #260)
  • chore: fail samples nox session if python version is missing (Add Sendgrid Region Tags #263)
  • chore(deps): update dependency google-cloud-bigquery to v2.28.0 (Minor Sendgrid fixup #264)
  • chore(deps): update dependency google-cloud-storage to v1.42.3 (Moving app engine users example #265)
  • samples: increase timeout, catch concurrent.futures.TimeoutError (Add Modules Example #266)
  • chore(deps): update dependency google-cloud-dlp to v3.2.4 (create_custom_metric() shouldn't send "name" #269)
  • chore(python): Add kokoro configs for python 3.10 samples testing (Adding endpoints sample #273)
  • chore(deps): update all dependencies (Fix test scribble and restructure region tags #271)
  • chore(deps): update all dependencies (gcp-python-repo-tools installation fails. #283)
  • chore(deps): update all dependencies (Typo in Speech API README.md #284)
  • chore(deps): update dependency google-cloud-dlp to v3.3.1 (Add Async Sample Code #287)
  • chore(deps): update dependency google-cloud-datastore to v2.4.0 (Move ndb property subclasses snippets from cloudsite #288)
  • chore(deps): update dependency google-cloud-pubsub to v2.9.0 (Fixing nox travis session. #290)
  • chore(python): run blacken session for all directories with a noxfile (Added blobstore image example #291)
  • chore(deps): update dependency google-cloud-storage to v1.43.0 (Add Memcache Best Practices Samples #294)
  • chore(deps): update dependency google-cloud-bigquery to v2.31.0 (Add memcache snippets #295)
  • chore(samples): Add check for tests in directory (Fix doc tags. #308)
  • chore(deps): update dependency google-cloud-dlp to v3.4.0 (Adding search snippets #298)
  • chore(deps): update all dependencies ( Complete Python Sample Code for Logging API #312)
  • chore(deps): update dependency google-cloud-dlp to v3.5.0 (Add Dataproc Sample #314)
  • chore(python): Noxfile recognizes that tests can live in a folder (Add more region tags #315)
  • chore(deps): update dependency google-cloud-storage to v2.1.0 (README is still confusing #317)
  • chore(deps): update dependency google-cloud-dlp to v3.6.0 (json -> data arg #323)
  • chore: use gapic-generator-python 0.63.2 (managed_vms -> flexible rename #329)
  • docs(dlp-samples): modified region tags and fixed comment (create dockerfile to run echo service #330)
  • chore(deps): update all dependencies (Don’t send name in create custom metric #328)
  • chore: use gapic-generator-python 0.63.4 (Updating datastore samples to use eventually consistent helper #331)
  • chore: update copyright year to 2022 (Update compute metadata hanging get example to use "wait_for_change". #332)
  • chore(deps): update all dependencies (Update main.py #334)
  • chore(deps): update all dependencies (Updating DNS samples to use newer gcloud features. #340)
  • chore: Adding support for pytest-xdist and pytest-parallel (Fix speech streaming sample & test #343)
  • chore(deps): update dependency google-cloud-pubsub to v2.10.0 (Move in face detection sample + test #346)
  • chore(deps): update all dependencies (Modules App Engine sample needs better docs #347)
  • chore(deps): update dependency google-cloud-storage to v2.2.0 (Adding tests for managed_vms/analytics. Fixes #180 #350)
  • chore(deps): update all dependencies (Update reqs #351)
  • chore(python): use black==22.3.0 (Transfer service: http to gs bucket #359)
  • chore(deps): update dependency google-cloud-bigquery to v3 (update managed_vm naming to flexible everywhere #360)
  • chore(deps): update dependency google-cloud-pubsub to v2.12.0 (Adding error handlers to managed vms hello world samples. #369)
  • chore(deps): update dependency google-cloud-storage to v2.3.0 (Add Logging API Samples #373)
  • chore: use gapic-generator-python 0.65.1 (speech_streaming.py got an error on a Raspberry Pi #374)
  • chore(python): use ubuntu 22.04 in docs image (Close HappyBase connection in bigtable/hello sample. #377)
  • chore(deps): update dependency pytest to v7.1.2 (Use Explicit Imports #378)
  • chore(deps): update dependency backoff to v2 (Segmentation Fault inside (probably) make_channel #379)
  • chore(deps): update dependency backoff to v2.0.1 (Added script that manages a set of rolling backups. #381)
  • chore(deps): update dependency google-cloud-bigquery to v3.1.0 (Add session for gRPC samples. #385)
  • chore(deps): update dependency google-cloud-pubsub to v2.12.1 (Update Reqs #386)
  • chore(deps): update all dependencies (New code samples for Endpoints v1.1 for Python (Alpha) #388)
  • chore(deps): update dependency google-cloud-datastore to v2.6.1 (Fixing job id parameter, fixes #393 #394)
  • fix: require python 3.7+ (Speech beta #411)
  • chore(deps): update all dependencies (Adding firebase auth to endpoints sample, fixes #396 #400)
  • chore(deps): update all dependencies (Fix misspelled quickly (was quicly) #416)
  • chore(deps): update all dependencies (Renaming storage gcloud samples folder #418)
  • chore(deps): update all dependencies (Add gcloud-based storage usage samples. #419)
  • chore(deps): update dependency google-cloud-pubsub to v2.13.5 (Refactor cloud client storage samples. #421)
  • chore(deps): update dependency google-cloud-pubsub to v2.13.6 (Speech API not working for some files #424)
  • chore(deps): update all dependencies (Nl #426)
  • chore(deps): update dependency google-cloud-bigquery to v3.3.2 (Secured Read Failed - FD Shutdown error on Async GRPC request #427)
  • chore: Bump gapic-generator-python version to 1.3.0 (Remove stray comment #440)
  • chore(deps): update all dependencies (Re-organize speech api samples #437)
  • chore: detect samples tests in nested directories (Add Endpoints 1.1 sample #443)
  • chore(deps): update all dependencies (Add veneer samples for BigQuery. #444)
  • chore(deps): update all dependencies (Testing hooks #449)
  • chore(deps): update dependency backoff to v2.2.1 (Update sample app with latest configuration #450)
  • chore(deps): update all dependencies (Fix audiences type #453)
  • chore(deps): update dependency google-cloud-datastore to v2.9.0 (Remove output only fields #454)
  • chore(deps): update dependency pytest to v7.2.0 (Changes property name #455)
  • chore(deps): update all dependencies (Fixup GAE urlfetch tests #457)
  • chore(python): drop flake8-import-order in samples noxfile [autoapprove] (Add notes and troubleshooting for system deps #461)
  • chore: Update gapic-generator-python to v1.6.1 (Auto-update dependencies. #456)
  • chore(deps): update all dependencies (New code samples for Python quickstart for Endpoints Frameworks v2 #463)
  • chore(deps): update dependency google-cloud-bigquery to v3.4.1 (edits to flexible django_cloud sql README #466)
  • chore(main): release 3.10.0 (Fixup nox #462)
  • chore(deps): update dependency google-cloud-dlp to v3.10.0 (Bigquery cloud client samples #467)
  • docs(samples): Adding a missing line as suggested by feedback (Add workaround for travis commit being wrong. #469)
  • chore(main): release 3.10.1 (Auto-update dependencies. #470)
  • chore(deps): update all dependencies (Make nox lint each sample individually #468)
  • chore(deps): update dependency google-cloud-dlp to v3.10.1 (Address post-review comments for BigQuery samples #471)
  • chore(python): add support for python 3.11 (Add Setup section #472)
  • chore(deps): update dependency mock to v5.0.1 (Auto-update dependencies. #473)
  • feat: Add support for python 3.11 (Add Scipy example #474)
  • chore(main): release 3.11.0 (How to specify quotaUser upon Speech Streaming request #475)
  • chore(deps): update all dependencies (Auto-update dependencies. #476)
  • chore(deps): update dependency pytest to v7.2.1 (Add pubsub publisher and subscriber samples #477)
  • chore(deps): update dependency google-cloud-datastore to v2.13.0 (Temporarily remove some sample features #478)
  • chore(deps): update dependency google-cloud-bigquery to v3.4.2 (Ignore bad file in endpoints lib #479)
  • docs: Add documentation for enums (Add style guide information to CONTRIBUTING.md. #481)
  • chore(main): release 3.11.1 (Add needed exclude tags for docs. #482)
  • chore: Update gapic-generator-python to v1.8.2 (add needed exclusion tags for docs. #483)
  • chore(deps): update all dependencies (Add pubsub iam samples #480)
  • chore(deps): update dependency google-cloud-bigquery to v3.5.0 (Auto-update dependencies. #485)

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followed Sample Guidelines from AUTHORING_GUIDE.MD
  • README is updated to include all relevant information
  • Tests pass: nox -s py-3.9 (see Test Environment Setup)
  • Lint pass: nox -s lint (see Test Environment Setup)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • Please merge this PR for me once it is approved.
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample

Sorry, something went wrong.

Uh oh!

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

All reactions
arithmetic1728 and others added 30 commits August 13, 2020 15:00
@arithmetic1728 @andrewsg
@dpebot chenyumic @frankyn @micheldavid @michaelawyu @mwdaub @realjordanna @ackul @djmailhot @engelke @maximus12793 @averikitsch @gguuss @leahecole @kurtisvg @renovate-bot Takashi Matsuo @gcf-merge-on-green @busunkim96 @sethmoo @jlmwise @lxhfirenking
chore: move samples from python-docs-sample (#33)
500d18e
* Add samples for DLP API v2beta1 [(#1369)](#1369)

* Auto-update dependencies. [(#1377)](#1377)

* Auto-update dependencies.

* Update requirements.txt

* Update DLP samples for release [(#1415)](#1415)

* fix DLP region tags, and add @flaky to pub/sub sample tests [(#1418)](#1418)

* Auto-update dependencies.

* Regenerate the README files and fix the Open in Cloud Shell link for some samples [(#1441)](#1441)

* Update README for DLP GA [(#1426)](#1426)

* Update READMEs to fix numbering and add git clone [(#1464)](#1464)

* DLP: Add auto_populate_timespan option for create job trigger. [(#1543)](#1543)

* Add DLP code samples for custom info types [(#1524)](#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 b4ffea6, 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 47fc04f. This makes
the code samples more readable.

* Switch from indexes to using enumerate.

* Updated help message for custom dictionaries.

* Fix enumerate syntax error.

* upgrade DLP version and fix tests [(#1784)](#1784)

* upgrade DLP version and fix tests

* bump dlp version again

* Auto-update dependencies. [(#1846)](#1846)

ACK, merging.

* Per internal documentation complaint, fix the naming. [(#1933)](#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.

* Add inspect table code sample for DLP and some nit fixes [(#1921)](#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

* Update DLP redact image code sample region to include mimetype import [(#1928)](#1928)

In response to feedback where a user was confused that the mimetype
import was missing from the code sample in the documentation.

* Update to use new subscribe() syntax [(#1989)](#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

* Auto-update dependencies. [(#1980)](#1980)

* Auto-update dependencies.

* Update requirements.txt

* Update requirements.txt

* Convert append -> nargs, so arguments are not additive [(#2191)](#2191)

* increase test timeout [(#2351)](#2351)

* Adds updates including compute [(#2436)](#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

* Update DLP samples to use dlp_v2 client. [(#2580)](#2580)

* fix: correct dataset name, use env var for project [(#2621)](#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]>

* Remove param to reduce latency (per docs) [(#2853)](#2853)

* chore(deps): update dependency google-cloud-storage to v1.26.0 [(#3046)](#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]>

* Fix dlp tests [(#3058)](#3058)

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

* Simplify noxfile setup. [(#2806)](#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]>

* [dlp] fix: fix periodic builds timeout [(#3420)](#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

* chore(deps): update dependency google-cloud-dlp to v0.14.0 [(#3431)](#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).

* Update dependency google-cloud-datastore to v1.12.0 [(#3296)](#3296)

Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>

* Update dependency google-cloud-pubsub to v1.4.2 [(#3340)](#3340)

Co-authored-by: Leah E. Cole <[email protected]>

* chore(deps): update dependency google-cloud-storage to v1.28.0 [(#3260)](#3260)

Co-authored-by: Takashi Matsuo <[email protected]>

* [dlp] fix: increase the number of retries for some tests [(#3685)](#3685)

fixes #3673

* chore: some lint fixes [(#3744)](#3744)

* chore(deps): update dependency google-cloud-pubsub to v1.4.3 [(#3725)](#3725)

Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: Takashi Matsuo <[email protected]>

* chore(deps): update dependency google-cloud-dlp to v0.15.0 [(#3780)](#3780)

* chore(deps): update dependency google-cloud-storage to v1.28.1 [(#3785)](#3785)

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

* [asset] testing: use uuid instead of time

Co-authored-by: Takashi Matsuo <[email protected]>

* chore(deps): update dependency google-cloud-pubsub to v1.5.0 [(#3781)](#3781)

Co-authored-by: Bu Sun Kim <[email protected]>

* [dlp] fix: mitigate flakiness [(#3919)](#3919)

* [dlp] fix: mitigate flakiness

* make the Pub/Sub fixture function level
* shorten the timeout for the tests from 300 secs to 30 secs
* retring all the tests in risk_test.py 3 times

fixes #3897
fixes #3896
fixes #3895
fixes #3894
fixes #3893
fixes #3892
fixes #3890
fixes #3889

* more retries, comment

* 30 seconds operation wait and 20 minutes retry delay

* lint fix etc

* limit the max retry wait time

* [dlp] testing: fix Pub/Sub notifications [(#3925)](#3925)

* re-generated README.rst with some more setup info
* use parent with the global location attached
* re-enabled some tests with Pub/Sub notification
* stop waiting between test retries

* Add text redaction sample using DLP [(#3964)](#3964)

* Add text redaction sample using DLP

* Update dlp/deid.py

Co-authored-by: Bu Sun Kim <[email protected]>

* Rename string parameter to item

Co-authored-by: Bu Sun Kim <[email protected]>

* testing: start using btlr [(#3959)](#3959)

* testing: start using btlr

The binary is at gs://cloud-devrel-kokoro-resources/btlr/v0.0.1/btlr

* add period after DIFF_FROM

* use array for btlr args

* fix websocket tests

* add debug message

* wait longer for the server to spin up

* dlp: bump the wait timeout to 10 minutes

* [run] copy noxfile.py to child directory to avoid gcloud issue

* [iam] fix: only display description when the key exists

* use uuid4 instead of uuid1

* [iot] testing: use the same format for registry id

* Stop asserting Out of memory not in the output

* fix missing imports

* [dns] testing: more retries with delay

* [dlp] testing: longer timeout

* use the max-concurrency flag

* use 30 workers

* [monitoring] use multiple projects

* [dlp] testing: longer timeout

* Add code sample for string replacement based deidentification. [(#3956)](#3956)

Adds a code sample corresponding to the replacement based deidentification in the Cloud DLP API. The detected sensitive value is replaced with a specified surrogate.

* Add custom infoType snippets to DLP samples [(#3991)](#3991)

* Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](#4022)

* Rename DLP code samples from 'redact' to 'replace' [(#4020)](#4020)

In the DLP API, redaction and replacement are two separate, named concepts. Code samples recently added by #3964 were named 'redact' but are actually examples of replacement. This change renames those samples for clarity.

* Add DLP sample for redacting all image text [(#4018)](#4018)

The sample shows how to remove all text found in an image with DLP.
The sample is integrated into the existing redact.py CLI application.

* Add DLP sample code for inspecting with custom regex detector [(#4031)](#4031)

* code sample and test for medical record number custom regex detector

* fix linter error

* Using f-strings instead of string.format

Co-authored-by: Bu Sun Kim <[email protected]>

Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>

* Update dependency google-cloud-dlp to v1 [(#4047)](#4047)

* Update dependency google-cloud-bigquery to v1.25.0 [(#4024)](#4024)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | minor | `==1.24.0` -> `==1.25.0` |

---

### Release Notes

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

### [`v1.25.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;1250-httpswwwgithubcomgoogleapispython-bigquerycomparev1240v1250-2020-06-06)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v1.24.0...v1.25.0)

##### Features

-   add BigQuery storage client support to DB API ([#&#8203;36](https://www.github.com/googleapis/python-bigquery/issues/36)) ([ba9b2f8](https://www.github.com/googleapis/python-bigquery/commit/ba9b2f87e36320d80f6f6460b77e6daddb0fa214))
-   **bigquery:** add create job method ([#&#8203;32](https://www.github.com/googleapis/python-bigquery/issues/32)) ([2abdef8](https://www.github.com/googleapis/python-bigquery/commit/2abdef82bed31601d1ca1aa92a10fea1e09f5297))
-   **bigquery:** add support of model for extract job ([#&#8203;71](https://www.github.com/googleapis/python-bigquery/issues/71)) ([4a7a514](https://www.github.com/googleapis/python-bigquery/commit/4a7a514659a9f6f9bbd8af46bab3f8782d6b4b98))
-   add HOUR support for time partitioning interval ([#&#8203;91](https://www.github.com/googleapis/python-bigquery/issues/91)) ([0dd90b9](https://www.github.com/googleapis/python-bigquery/commit/0dd90b90e3714c1d18f8a404917a9454870e338a))
-   add support for policy tags ([#&#8203;77](https://www.github.com/googleapis/python-bigquery/issues/77)) ([38a5c01](https://www.github.com/googleapis/python-bigquery/commit/38a5c01ca830daf165592357c45f2fb4016aad23))
-   make AccessEntry objects hashable ([#&#8203;93](https://www.github.com/googleapis/python-bigquery/issues/93)) ([23a173b](https://www.github.com/googleapis/python-bigquery/commit/23a173bc5a25c0c8200adc5af62eb05624c9099e))
-   **bigquery:** expose start index parameter for query result ([#&#8203;121](https://www.github.com/googleapis/python-bigquery/issues/121)) ([be86de3](https://www.github.com/googleapis/python-bigquery/commit/be86de330a3c3801653a0ccef90e3d9bdb3eee7a))
-   **bigquery:** unit and system test for dataframe with int column with Nan values  ([#&#8203;39](https://www.github.com/googleapis/python-bigquery/issues/39)) ([5fd840e](https://www.github.com/googleapis/python-bigquery/commit/5fd840e9d4c592c4f736f2fd4792c9670ba6795e))

##### Bug Fixes

-   allow partial streaming_buffer statistics ([#&#8203;37](https://www.github.com/googleapis/python-bigquery/issues/37)) ([645f0fd](https://www.github.com/googleapis/python-bigquery/commit/645f0fdb35ee0e81ee70f7459e796a42a1f03210))
-   distinguish server timeouts from transport timeouts ([#&#8203;43](https://www.github.com/googleapis/python-bigquery/issues/43)) ([a17be5f](https://www.github.com/googleapis/python-bigquery/commit/a17be5f01043f32d9fbfb2ddf456031ea9205c8f))
-   improve cell magic error message on missing query ([#&#8203;58](https://www.github.com/googleapis/python-bigquery/issues/58)) ([6182cf4](https://www.github.com/googleapis/python-bigquery/commit/6182cf48aef8f463bb96891cfc44a96768121dbc))
-   **bigquery:** fix repr of model reference ([#&#8203;66](https://www.github.com/googleapis/python-bigquery/issues/66)) ([26c6204](https://www.github.com/googleapis/python-bigquery/commit/26c62046f4ec8880cf6561cc90a8b821dcc84ec5))
-   **bigquery:** fix start index with page size for list rows ([#&#8203;27](https://www.github.com/googleapis/python-bigquery/issues/27)) ([400673b](https://www.github.com/googleapis/python-bigquery/commit/400673b5d0f2a6a3d828fdaad9d222ca967ffeff))

</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.

---

 - [ ] <!-- 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).

* Add code sample and tests for redaction [(#4037)](#4037)

Add A DLP code sample for redacting text.

Code will be linked to this documentation: https://cloud.google.com/dlp/docs/deidentify-sensitive-data

* dlp: add inspect string sample, person_name w/ custom hotword certainty boosting [(#4081)](#4081)

* Add a simplified inspect string example to DLP code samples [(#4069)](#4069)

* Add a simplified inspect string example

* Remove unnecessary try-catch block - all findings in this examnple should have quotes.

* dlp: Add sample for reid w/ fpe using surrogate type and unwrapped security key [(#4051)](#4051)

* add code sample and test for reid w/ fpe using surrogate type and unwrapped security key

* refactor reidentify_config

* add code sample and test for medical number custom detector with hotwords [(#4071)](#4071)

Co-authored-by: Kurtis Van Gent <[email protected]>

* Add DLP code sample and test for de-id free text with surrogate [(#4085)](#4085)

## Description
Add DLP code sample and test for de-id free text with surrogate, meant for https://cloud.google.com/dlp/docs/pseudonymization#de-identification_in_free_text_code_example

## Checklist
- [x] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md)
- [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file)
- [x] **Tests** pass:   `nox -s py-3.6` (see [Test Enviroment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
- [x] **Lint** pass:   `nox -s lint` (see [Test Enviroment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones)
- [x] Please **merge** this PR for me once it is approved.

* chore(deps): update dependency google-cloud-storage to v1.29.0 [(#4040)](#4040)

* Update dependency google-cloud-pubsub to v1.6.0 [(#4039)](#4039)

This PR contains the following updates:

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

---

### Release Notes

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

### [`v1.6.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#&#8203;160-httpswwwgithubcomgoogleapispython-pubsubcomparev150v160-2020-06-09)

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

##### Features

-   Add flow control for message publishing ([#&#8203;96](https://www.github.com/googleapis/python-pubsub/issues/96)) ([06085c4](https://www.github.com/googleapis/python-pubsub/commit/06085c4083b9dccdd50383257799904510bbf3a0))

##### Bug Fixes

-   Fix PubSub incompatibility with api-core 1.17.0+ ([#&#8203;103](https://www.github.com/googleapis/python-pubsub/issues/103)) ([c02060f](https://www.github.com/googleapis/python-pubsub/commit/c02060fbbe6e2ca4664bee08d2de10665d41dc0b))

##### Documentation

-   Clarify that Schedulers shouldn't be used with multiple SubscriberClients ([#&#8203;100](https://togithub.com/googleapis/python-pubsub/pull/100)) ([cf9e87c](https://togithub.com/googleapis/python-pubsub/commit/cf9e87c80c0771f3fa6ef784a8d76cb760ad37ef))
-   Fix update subscription/snapshot/topic samples ([#&#8203;113](https://togithub.com/googleapis/python-pubsub/pull/113)) ([e62c38b](https://togithub.com/googleapis/python-pubsub/commit/e62c38bb33de2434e32f866979de769382dea34a))

##### Internal / Testing Changes

-   Re-generated service implementaton using synth: removed experimental notes from the RetryPolicy and filtering features in anticipation of GA, added DetachSubscription (experimental) ([#&#8203;114](https://togithub.com/googleapis/python-pubsub/pull/114)) ([0132a46](https://togithub.com/googleapis/python-pubsub/commit/0132a4680e0727ce45d5e27d98ffc9f3541a0962))
-   Incorporate will_accept() checks into publish() ([#&#8203;108](https://togithub.com/googleapis/python-pubsub/pull/108)) ([6c7677e](https://togithub.com/googleapis/python-pubsub/commit/6c7677ecb259672bbb9b6f7646919e602c698570))

</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.

---

 - [ ] <!-- 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).

* [dlp] fix: add retry count to mitigate the flake [(#4152)](#4152)

fixes #4100

* chore(deps): update dependency google-cloud-pubsub to v1.6.1 [(#4242)](#4242)

Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>

* chore(deps): update dependency google-cloud-datastore to v1.13.0 [(#4273)](#4273)

* chore(deps): update dependency pytest to v5.4.3 [(#4279)](#4279)

* chore(deps): update dependency pytest to v5.4.3

* specify pytest for python 2 in appengine

Co-authored-by: Leah Cole <[email protected]>

* chore(deps): update dependency mock to v4 [(#4287)](#4287)

* chore(deps): update dependency mock to v4

* specify mock version for appengine python 2

Co-authored-by: Leah Cole <[email protected]>

* chore(deps): update dependency google-cloud-pubsub to v1.7.0 [(#4290)](#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).

* Update dependency flaky to v3.7.0 [(#4300)](#4300)

* Update dependency google-cloud-datastore to v1.13.1 [(#4295)](#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).

* chore(deps): update dependency google-cloud-datastore to v1.13.2 [(#4326)](#4326)

* Update dependency google-cloud-storage to v1.30.0

* Update dependency pytest to v6 [(#4390)](#4390)

* chore: update templates

* chore: update synth.py

* chore: update project env name

Co-authored-by: Andrew Gorcester <[email protected]>
Co-authored-by: DPE bot <[email protected]>
Co-authored-by: chenyumic <[email protected]>
Co-authored-by: Frank Natividad <[email protected]>
Co-authored-by: Mike DaCosta <[email protected]>
Co-authored-by: michaelawyu <[email protected]>
Co-authored-by: mwdaub <[email protected]>
Co-authored-by: realjordanna <[email protected]>
Co-authored-by: Ace <[email protected]>
Co-authored-by: djmailhot <[email protected]>
Co-authored-by: Charles Engelke <[email protected]>
Co-authored-by: Maximus <[email protected]>
Co-authored-by: Averi Kitsch <[email protected]>
Co-authored-by: Gus Class <[email protected]>
Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Kurtis Van Gent <[email protected]>
Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: Leah Cole <[email protected]>
Co-authored-by: Takashi Matsuo <[email protected]>
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: Seth Moore <[email protected]>
Co-authored-by: Ace <[email protected]>
Co-authored-by: Seth Moore <[email protected]>
Co-authored-by: jlmwise <[email protected]>
Co-authored-by: Xiaohua (Victor) Liang <[email protected]>
Co-authored-by: Xiaohua (Victor) Liang <[email protected]>
Co-authored-by: Charles Engelke <[email protected]>
@arithmetic1728 @busunkim96
feat!: migrate to use microgen (#34)
88bb66c
* feat!: migrate to use microgen

* Update UPGRADING.md

Co-authored-by: Bu Sun Kim <[email protected]>

Co-authored-by: Bu Sun Kim <[email protected]>
@renovate-bot
chore(deps): update dependency google-cloud-dlp to v2 (#43)
845b3e2
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v1.27.2 (#36)
110d777
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | minor | `==1.25.0` -> `==1.27.2` |

---

### Release Notes

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

### [`v1.27.2`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;1272-httpswwwgithubcomgoogleapispython-bigquerycomparev1271v1272-2020-08-18)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v1.26.1...v1.27.2)

### [`v1.26.1`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;1261-httpswwwgithubcomgoogleapispython-bigquerycomparev1260v1261-2020-07-25)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v1.26.0...v1.26.1)

### [`v1.26.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;1260-httpswwwgithubcomgoogleapispython-bigquerycomparev1250v1260-2020-07-20)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v1.25.0...v1.26.0)

##### Features

-   use BigQuery Storage client by default (if dependencies available) ([#&#8203;55](https://www.github.com/googleapis/python-bigquery/issues/55)) ([e75ff82](https://www.github.com/googleapis/python-bigquery/commit/e75ff8297c65981545b097f75a17cf9e78ac6772)), closes [#&#8203;91](https://www.github.com/googleapis/python-bigquery/issues/91)
-   **bigquery:** add **eq** method for class PartitionRange and RangePartitioning ([#&#8203;162](https://www.github.com/googleapis/python-bigquery/issues/162)) ([0d2a88d](https://www.github.com/googleapis/python-bigquery/commit/0d2a88d8072154cfc9152afd6d26a60ddcdfbc73))
-   **bigquery:** expose date_as_object parameter to users ([#&#8203;150](https://www.github.com/googleapis/python-bigquery/issues/150)) ([a2d5ce9](https://www.github.com/googleapis/python-bigquery/commit/a2d5ce9e97992318d7dc85c51c053cab74e25a11))
-   **bigquery:** expose date_as_object parameter to users ([#&#8203;150](https://www.github.com/googleapis/python-bigquery/issues/150)) ([cbd831e](https://www.github.com/googleapis/python-bigquery/commit/cbd831e08024a67148723afd49e1db085e0a862c))

##### Bug Fixes

-   dry run queries with DB API cursor ([#&#8203;128](https://www.github.com/googleapis/python-bigquery/issues/128)) ([bc33a67](https://www.github.com/googleapis/python-bigquery/commit/bc33a678a765f0232615aa2038b8cc67c88468a0))
-   omit `NaN` values when uploading from `insert_rows_from_dataframe` ([#&#8203;170](https://www.github.com/googleapis/python-bigquery/issues/170)) ([f9f2f45](https://www.github.com/googleapis/python-bigquery/commit/f9f2f45bc009c03cd257441bd4b6beb1754e2177))

##### Documentation

-   **bigquery:** add client thread-safety documentation ([#&#8203;132](https://www.github.com/googleapis/python-bigquery/issues/132)) ([fce76b3](https://www.github.com/googleapis/python-bigquery/commit/fce76b3776472b1da798df862a3405e659e35bab))
-   **bigquery:** add docstring for conflict exception ([#&#8203;171](https://www.github.com/googleapis/python-bigquery/issues/171)) ([9c3409b](https://www.github.com/googleapis/python-bigquery/commit/9c3409bb06218bf499620544f8e92802df0cce47))
-   **bigquery:** consistent use of optional keyword ([#&#8203;153](https://www.github.com/googleapis/python-bigquery/issues/153)) ([79d8c61](https://www.github.com/googleapis/python-bigquery/commit/79d8c61064cca18b596a24b6f738c7611721dd5c))
-   **bigquery:** fix the broken docs ([#&#8203;139](https://www.github.com/googleapis/python-bigquery/issues/139)) ([3235255](https://www.github.com/googleapis/python-bigquery/commit/3235255cc5f483949f34d2e8ef13b372e8713782))

</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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

: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#github/googleapis/python-dlp).
@renovate-bot
chore(deps): update dependency google-cloud-datastore to v1.15.0 (#42)
620882a
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-datastore](https://togithub.com/googleapis/python-datastore) | minor | `==1.13.2` -> `==1.15.0` |

---

### Release Notes

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

### [`v1.15.0`](https://togithub.com/googleapis/python-datastore/blob/master/CHANGELOG.md#&#8203;1150-httpswwwgithubcomgoogleapispython-datastorecomparev1140v1150-2020-08-14)

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

##### Features

-   add retry and timeout args to API methods ([#&#8203;67](https://www.github.com/googleapis/python-datastore/issues/67)) ([f3283e1](https://www.github.com/googleapis/python-datastore/commit/f3283e14c34c36c8386e4cb6b43c109d469f118c)), closes [#&#8203;3](https://www.github.com/googleapis/python-datastore/issues/3)
-   supply anonymous credentials under emulator ([#&#8203;71](https://www.github.com/googleapis/python-datastore/issues/71)) ([4db3c40](https://www.github.com/googleapis/python-datastore/commit/4db3c4048e53c220eee0aea2063c05292bbc5334)), closes [#&#8203;70](https://www.github.com/googleapis/python-datastore/issues/70)

##### Bug Fixes

-   smooth over system test bumps ([#&#8203;66](https://www.github.com/googleapis/python-datastore/issues/66)) ([8bb17ea](https://www.github.com/googleapis/python-datastore/commit/8bb17ea30ed94c0a298a54cc75c031b67d0a576a))

##### Documentation

-   add docs for admin client ([#&#8203;63](https://www.github.com/googleapis/python-datastore/issues/63)) ([43ff64a](https://www.github.com/googleapis/python-datastore/commit/43ff64a5889aeac321fbead967ec527ede414fa2)), closes [#&#8203;49](https://www.github.com/googleapis/python-datastore/issues/49)

### [`v1.14.0`](https://togithub.com/googleapis/python-datastore/blob/master/CHANGELOG.md#&#8203;1140-httpswwwgithubcomgoogleapispython-datastorecomparev1132v1140-2020-08-05)

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

##### Features

-   pass 'client_options' to base class ctor ([#&#8203;60](https://www.github.com/googleapis/python-datastore/issues/60)) ([2575697](https://www.github.com/googleapis/python-datastore/commit/2575697380a2e57b210a37033f2558de582ec10e)), closes [#&#8203;50](https://www.github.com/googleapis/python-datastore/issues/50)

##### Documentation

-   correct semantics of 'complete_key' arg to 'Client.reserve_ids' ([#&#8203;36](https://www.github.com/googleapis/python-datastore/issues/36)) ([50ed945](https://www.github.com/googleapis/python-datastore/commit/50ed94503da244434df0be58098a0ccf2da54b16))
-   update docs build (via synth) ([#&#8203;58](https://www.github.com/googleapis/python-datastore/issues/58)) ([5bdacd4](https://www.github.com/googleapis/python-datastore/commit/5bdacd4785f3d433e6e7302fc6839a3c5a3314b4)), closes [#&#8203;700](https://www.github.com/googleapis/python-datastore/issues/700)

##### [1.13.2](https://www.github.com/googleapis/python-datastore/compare/v1.13.1...v1.13.2) (2020-07-17)

##### Bug Fixes

-   modify admin pkg name in gapic ([#&#8203;47](https://www.github.com/googleapis/python-datastore/issues/47)) ([5b5011d](https://www.github.com/googleapis/python-datastore/commit/5b5011daf74133ecdd579bf19bbcf356e6f40dad))

##### [1.13.1](https://www.github.com/googleapis/python-datastore/compare/v1.13.0...v1.13.1) (2020-07-13)

##### Bug Fixes

-   add missing datastore admin client files ([#&#8203;43](https://www.github.com/googleapis/python-datastore/issues/43)) ([0d40f87](https://www.github.com/googleapis/python-datastore/commit/0d40f87eeacd2a256d4b45ccb742599b5df93096))

</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#github/googleapis/python-dlp).
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.31.2 (#44)
c31f34d
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2 (#62)
62f7b7c
Takashi Matsuo
fix(sample-test): add backoff around the cleanup code (#65)
dcc8994
@renovate-bot
chore(deps): update dependency google-cloud-datastore to v1.15.3 (#59)
c50cda4
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.32.0 (#67)
14084e9
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.2.0 (#66)
cf7b26f
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | minor | `==2.1.0` -> `==2.2.0` |

---

### Release Notes

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

### [`v2.2.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;220-httpswwwgithubcomgoogleapispython-bigquerycomparev210v220-2020-10-19)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v2.1.0...v2.2.0)

##### Features

-   add method api_repr for table list item ([#&#8203;299](https://www.github.com/googleapis/python-bigquery/issues/299)) ([07c70f0](https://www.github.com/googleapis/python-bigquery/commit/07c70f0292f9212f0c968cd5c9206e8b0409c0da))
-   add support for listing arima, automl, boosted tree, DNN, and matrix factorization models ([#&#8203;328](https://www.github.com/googleapis/python-bigquery/issues/328)) ([502a092](https://www.github.com/googleapis/python-bigquery/commit/502a0926018abf058cb84bd18043c25eba15a2cc))
-   add timeout paramter to load_table_from_file and it dependent methods ([#&#8203;327](https://www.github.com/googleapis/python-bigquery/issues/327)) ([b0dd892](https://www.github.com/googleapis/python-bigquery/commit/b0dd892176e31ac25fddd15554b5bfa054299d4d))
-   add to_api_repr method to Model ([#&#8203;326](https://www.github.com/googleapis/python-bigquery/issues/326)) ([fb401bd](https://www.github.com/googleapis/python-bigquery/commit/fb401bd94477323bba68cf252dd88166495daf54))
-   allow client options to be set in magics context ([#&#8203;322](https://www.github.com/googleapis/python-bigquery/issues/322)) ([5178b55](https://www.github.com/googleapis/python-bigquery/commit/5178b55682f5e264bfc082cde26acb1fdc953a18))

##### Bug Fixes

-   make TimePartitioning repr evaluable ([#&#8203;110](https://www.github.com/googleapis/python-bigquery/issues/110)) ([20f473b](https://www.github.com/googleapis/python-bigquery/commit/20f473bfff5ae98377f5d9cdf18bfe5554d86ff4)), closes [#&#8203;109](https://www.github.com/googleapis/python-bigquery/issues/109)
-   use version.py instead of pkg_resources.get_distribution ([#&#8203;307](https://www.github.com/googleapis/python-bigquery/issues/307)) ([b8f502b](https://www.github.com/googleapis/python-bigquery/commit/b8f502b14f21d1815697e4d57cf1225dfb4a7c5e))

##### Performance Improvements

-   add size parameter for load table from dataframe and json methods ([#&#8203;280](https://www.github.com/googleapis/python-bigquery/issues/280)) ([3be78b7](https://www.github.com/googleapis/python-bigquery/commit/3be78b737add7111e24e912cd02fc6df75a07de6))

##### Documentation

-   update clustering field docstrings ([#&#8203;286](https://www.github.com/googleapis/python-bigquery/issues/286)) ([5ea1ece](https://www.github.com/googleapis/python-bigquery/commit/5ea1ece2d911cdd1f3d9549ee01559ce8ed8269a)), closes [#&#8203;285](https://www.github.com/googleapis/python-bigquery/issues/285)
-   update snippets samples to support version 2.0 ([#&#8203;309](https://www.github.com/googleapis/python-bigquery/issues/309)) ([61634be](https://www.github.com/googleapis/python-bigquery/commit/61634be9bf9e3df7589fc1bfdbda87288859bb13))

##### Dependencies

-   add protobuf dependency ([#&#8203;306](https://www.github.com/googleapis/python-bigquery/issues/306)) ([cebb5e0](https://www.github.com/googleapis/python-bigquery/commit/cebb5e0e911e8c9059bc8c9e7fce4440e518bff3)), closes [#&#8203;305](https://www.github.com/googleapis/python-bigquery/issues/305)
-   require pyarrow for pandas support ([#&#8203;314](https://www.github.com/googleapis/python-bigquery/issues/314)) ([801e4c0](https://www.github.com/googleapis/python-bigquery/commit/801e4c0574b7e421aa3a28cafec6fd6bcce940dd)), closes [#&#8203;265](https://www.github.com/googleapis/python-bigquery/issues/265)

</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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

: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#github/googleapis/python-dlp).
@sushicw
docs(samples): fix README to accurately reflect the new repo after th…
31233a1
…e move (#72)

Fix README to accurately reflect the new repo after the move. 

- [X] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-dlp/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] *N/A* ~Ensure the tests and linter pass~ 
- [ ] *N/A* ~Code coverage does not decrease (if any source code was changed)~
- [X] Appropriate docs were updated (if necessary)

Fixes google internal bug b/173536792
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.33.0 (#71)
cb133f8
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-storage](https://togithub.com/googleapis/python-storage) | minor | `==1.32.0` -> `==1.33.0` |

---

### Release Notes

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

### [`v1.33.0`](https://togithub.com/googleapis/python-storage/blob/master/CHANGELOG.md#&#8203;1330-httpswwwgithubcomgoogleapispython-storagecomparev1320v1330-2020-11-16)

[Compare Source](https://togithub.com/googleapis/python-storage/compare/v1.32.0...v1.33.0)

##### Features

-   add classifiers for python3.9 and remove for python3.5 ([#&#8203;295](https://www.github.com/googleapis/python-storage/issues/295)) ([f072825](https://www.github.com/googleapis/python-storage/commit/f072825ce03d774fd95d9fe3db95a8c7130b0e8a))
-   add testing support for Python 3.9, drop Python 3.5 ([#&#8203;313](https://www.github.com/googleapis/python-storage/issues/313)) ([fa14009](https://www.github.com/googleapis/python-storage/commit/fa140092877a277abbb23785657590a274a86d61))

##### Bug Fixes

-   use passed-in `client` within `Blob.from_string` and helpers ([#&#8203;290](https://www.github.com/googleapis/python-storage/issues/290)) ([d457ce3](https://www.github.com/googleapis/python-storage/commit/d457ce3e161555c9117ae288ec0c9cd5f8d5fe3a)), closes [#&#8203;286](https://www.github.com/googleapis/python-storage/issues/286)
-   preserve `metadata` value when uploading new file content ([#&#8203;298](https://www.github.com/googleapis/python-storage/issues/298)) ([5ab6b0d](https://www.github.com/googleapis/python-storage/commit/5ab6b0d9a2b27ae830740a7a0226fc1e241e9ec4)), closes [#&#8203;293](https://www.github.com/googleapis/python-storage/issues/293)

</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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

: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#github/googleapis/python-dlp).
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.4.0 (#68)
e0e51a8
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | minor | `==2.2.0` -> `==2.4.0` |

---

### Release Notes

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

### [`v2.4.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;240-httpswwwgithubcomgoogleapispython-bigquerycomparev231v240-2020-11-16)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v2.3.1...v2.4.0)

##### Features

-   add progress bar to `QueryJob.to_dataframe` and `to_arrow` ([#&#8203;352](https://www.github.com/googleapis/python-bigquery/issues/352)) ([dc78edd](https://www.github.com/googleapis/python-bigquery/commit/dc78eddde7a6a312c8fed7bace7d64036837ab1a))
-   allow routine references ([#&#8203;378](https://www.github.com/googleapis/python-bigquery/issues/378)) ([f9480dc](https://www.github.com/googleapis/python-bigquery/commit/f9480dc2a1bc58367083176bd74725aa8b903301))

##### Bug Fixes

-   **dbapi:** allow rows to be fetched from scripts ([#&#8203;387](https://www.github.com/googleapis/python-bigquery/issues/387)) ([b899ad1](https://www.github.com/googleapis/python-bigquery/commit/b899ad12e17cb87c58d3ae46b4388d917c5743f2)), closes [#&#8203;377](https://www.github.com/googleapis/python-bigquery/issues/377)

##### Performance Improvements

-   avoid extra API calls from `to_dataframe` if all rows are cached ([#&#8203;384](https://www.github.com/googleapis/python-bigquery/issues/384)) ([c52b317](https://www.github.com/googleapis/python-bigquery/commit/c52b31789998fc0dfde07c3296650c85104d719d))
-   cache first page of `jobs.getQueryResults` rows ([#&#8203;374](https://www.github.com/googleapis/python-bigquery/issues/374)) ([86f6a51](https://www.github.com/googleapis/python-bigquery/commit/86f6a516d1c7c5dc204ab085ea2578793e6561ff))
-   use `getQueryResults` from DB-API ([#&#8203;375](https://www.github.com/googleapis/python-bigquery/issues/375)) ([30de15f](https://www.github.com/googleapis/python-bigquery/commit/30de15f7255de5ea221df4e8db7991d279e0ea28))

##### Dependencies

-   expand pyarrow dependencies to include version 2 ([#&#8203;368](https://www.github.com/googleapis/python-bigquery/issues/368)) ([cd9febd](https://www.github.com/googleapis/python-bigquery/commit/cd9febd20c34983781386c3bf603e5fca7135695))

### [`v2.3.1`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;231)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v2.2.0...v2.3.1)

11-05-2020 09:27 PST

##### Internal / Testing Changes

-   update `google.cloud.bigquery.__version__`

</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#github/googleapis/python-dlp).
@busunkim96
test(samples): retry flaky test 5 times (#77)
df18123
@sushicw
chore(samples): add samples for custom infotype rules (#76)
f35e866
Add missing python samples for https://cloud.google.com/dlp/docs/creating-custom-infotypes-rules#dlp_inspect_string_without_overlap-java

- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-dlp/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
  - Some tests in other files are already broken, but `pytest custom_infotype_test.py` succeeds. 
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)



Fixes internal bugs:
b/156968601
b/156970772
b/156970547
b/156969966
b/156970576
b/156974339
b/156969968
@yoshi-automation
fix!: rename fields that collide with builtins; retrieve job config f…
74257e7
…or risk analysis jobs (#75)

fix: retrieve job config for risk analysis jobs
fix!: rename fields that collide with builtins.
  * `ByteContentItem.type` -> `ByteContentItem.type_`
  * `MetadataLocation.type` -> `MetadataLocation.type_`
  * `Container.type` -> `Container.type_`
  * `Bucket.min` -> `Bucket.min_`
  * `Bucket.max `-> `Bucket.max_`
  * `DlpJob.type` -> `DlpJob.type_`
  * `GetDlpJobRequest.type` -> `GetDlpJobRequest.type_`
@renovate-bot
chore(deps): update dependency google-cloud-dlp to v3 (#82)
6756d3e
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-dlp](https://togithub.com/googleapis/python-dlp) | major | `==2.0.0` -> `==3.0.0` |

---

### Release Notes

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

### [`v3.0.0`](https://togithub.com/googleapis/python-dlp/blob/master/CHANGELOG.md#&#8203;300-httpswwwgithubcomgoogleapispython-dlpcomparev200v300-2020-12-02)

[Compare Source](https://togithub.com/googleapis/python-dlp/compare/v2.0.0...v3.0.0)

##### ⚠ BREAKING CHANGES

-   rename fields that collide with builtins ([#&#8203;75](https://togithub.com/googleapis/python-dlp/issues/75))
    -   `ByteContentItem.type` -> `ByteContentItem.type_`
    -   `MetadataLocation.type` -> `MetadataLocation.type_`
    -   `Container.type` -> `Container.type_`
    -   `Bucket.min` -> `Bucket.min_`
    -   `Bucket.max`-> `Bucket.max_`
    -   `DlpJob.type` -> `DlpJob.type_`
    -   `GetDlpJobRequest.type` -> `GetDlpJobRequest.type_`

##### Bug Fixes

-   rename fields that collide with builtins; retrieve job config for risk analysis jobs ([#&#8203;75](https://www.github.com/googleapis/python-dlp/issues/75)) ([4f3148e](https://www.github.com/googleapis/python-dlp/commit/4f3148e93ec3dfc9395aa38a3afc62498500a055))

##### Documentation

-   **samples:** fix README to accurately reflect the new repo after the move ([#&#8203;72](https://www.github.com/googleapis/python-dlp/issues/72)) ([dc56806](https://www.github.com/googleapis/python-dlp/commit/dc56806b47f92227e396969d8a583b881aa41fd1))

</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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

: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#github/googleapis/python-dlp).
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.5.0 (#83)
ad9bf98
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.6.0 (#85)
cbfe39b
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#86)
b0cb865
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | patch | `==2.6.0` -> `==2.6.1` |

---

### Release Notes

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

### [`v2.6.1`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;261-httpswwwgithubcomgoogleapispython-bigquerycomparev260v261-2020-12-09)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v2.6.0...v2.6.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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

: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#github/googleapis/python-dlp).
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.35.0 (#88)
c77435d
@yoshi-automation
fix: remove gRPC send/recv limits; add enums to types/__init__.py (#89
5ce09b5
)
@yoshi-automation
chore: update templates (#87)
b22a9d3
@renovate-bot @leahecole
chore(deps): update dependency google-cloud-pubsub to v2 (#54)
cf9c823
* chore(deps): update dependency google-cloud-pubsub to v2

* pubsub v2 fix

* run blacken

Co-authored-by: Leah Cole <[email protected]>
@renovate-bot
chore(deps): update dependency google-cloud-datastore to v2 (#69)
7d7e90c
@renovate-bot
chore(deps): update dependency google-cloud-datastore to v2.1.0 (#93)
ee3497e
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.6.2 (#97)
fe84637
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.7.0 (#100)
8b4b430
@renovate-bot
chore(deps): update dependency google-cloud-dlp to v3.0.1 (#102)
6cb62c3
@snippet-bot

snippet-bot Bot commented Feb 22, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 47 region tags.
  • dlp/snippets/custom_infotype.py:21, tag dlp_inspect_string_with_exclusion_dict
  • dlp/snippets/custom_infotype.py:97, tag dlp_inspect_string_with_exclusion_regex
  • dlp/snippets/custom_infotype.py:173, tag dlp_inspect_string_with_exclusion_dict_substring
  • dlp/snippets/custom_infotype.py:249, tag dlp_inspect_string_custom_excluding_substring
  • dlp/snippets/custom_infotype.py:328, tag dlp_inspect_string_custom_omit_overlap
  • dlp/snippets/custom_infotype.py:409, tag dlp_omit_name_if_also_email
  • dlp/snippets/custom_infotype.py:486, tag dlp_inspect_string_without_overlap
  • dlp/snippets/custom_infotype.py:571, tag dlp_inspect_with_person_name_w_custom_hotword
  • dlp/snippets/custom_infotype.py:644, tag dlp_inspect_string_multiple_rules
  • dlp/snippets/custom_infotype.py:733, tag dlp_inspect_with_medical_record_number_custom_regex_detector
  • dlp/snippets/custom_infotype.py:796, tag dlp_inspect_with_medical_record_number_w_custom_hotwords
  • dlp/snippets/deid.py:22, tag dlp_deidentify_masking
  • dlp/snippets/deid.py:86, tag dlp_deidentify_redact
  • dlp/snippets/deid.py:138, tag dlp_deidentify_replace
  • dlp/snippets/deid.py:201, tag dlp_deidentify_fpe
  • dlp/snippets/deid.py:296, tag dlp_deidentify_deterministic
  • dlp/snippets/deid.py:386, tag dlp_reidentify_fpe
  • dlp/snippets/deid.py:477, tag dlp_reidentify_deterministic
  • dlp/snippets/deid.py:563, tag dlp_deidentify_free_text_with_fpe_using_surrogate
  • dlp/snippets/deid.py:647, tag dlp_reidentify_free_text_with_fpe_using_surrogate
  • dlp/snippets/deid.py:726, tag dlp_deidentify_date_shift
  • dlp/snippets/deid.py:889, tag dlp_deidentify_replace_infotype
  • dlp/snippets/inspect_content.py:25, tag dlp_inspect_string_basic
  • dlp/snippets/inspect_content.py:81, tag dlp_inspect_string
  • dlp/snippets/inspect_content.py:177, tag dlp_inspect_table
  • dlp/snippets/inspect_content.py:311, tag dlp_inspect_file
  • dlp/snippets/inspect_content.py:433, tag dlp_inspect_gcs
  • dlp/snippets/inspect_content.py:593, tag dlp_inspect_datastore
  • dlp/snippets/inspect_content.py:763, tag dlp_inspect_bigquery
  • dlp/snippets/jobs.py:22, tag dlp_list_jobs
  • dlp/snippets/jobs.py:89, tag dlp_delete_job
  • dlp/snippets/metadata.py:24, tag dlp_list_info_types
  • dlp/snippets/quickstart.py:27, tag dlp_quickstart
  • dlp/snippets/redact.py:22, tag dlp_redact_image
  • dlp/snippets/redact.py:28, tag dlp_redact_image
  • dlp/snippets/redact.py:125, tag dlp_redact_image_all_text
  • dlp/snippets/risk.py:22, tag dlp_numerical_stats
  • dlp/snippets/risk.py:133, tag dlp_categorical_stats
  • dlp/snippets/risk.py:256, tag dlp_k_anonymity
  • dlp/snippets/risk.py:388, tag dlp_l_diversity
  • dlp/snippets/risk.py:532, tag dlp_k_map
  • dlp/snippets/templates.py:23, tag dlp_create_inspect_template
  • dlp/snippets/templates.py:93, tag dlp_list_templates
  • dlp/snippets/templates.py:137, tag dlp_delete_inspect_template
  • dlp/snippets/triggers.py:23, tag dlp_create_trigger
  • dlp/snippets/triggers.py:120, tag dlp_list_triggers
  • dlp/snippets/triggers.py:156, tag dlp_delete_trigger

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

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

@Sita04

Sita04 commented Feb 22, 2023

Copy link
Copy Markdown
Collaborator Author

Skipped test failure is tracked at: #9164

All reactions

Sorry, something went wrong.

Uh oh!

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

rsamborski
rsamborski requested changes Feb 23, 2023
View reviewed changes
Comment thread dlp/snippets/resources/accounts.txt Resolved

Uh oh!

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

Comment thread dlp/snippets/triggers.py Resolved

Uh oh!

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

Comment thread dlp/snippets/custom_infotype.py Resolved

Uh oh!

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

Comment thread dlp/snippets/custom_infotype.py Resolved

Uh oh!

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

Comment thread dlp/snippets/README.rst.in Resolved

Uh oh!

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

Comment thread dlp/snippets/noxfile_config.py Resolved

Uh oh!

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

Comment thread dlp/snippets/noxfile.py Resolved

Uh oh!

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

Comment thread dlp/snippets/requirements.txt Resolved

Uh oh!

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

Comment thread dlp/snippets/requirements.txt Resolved

Uh oh!

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

Sita04 added 2 commits February 23, 2023 15:16
@Sita04
updated acc to review comments
fe89c95
@Sita04
Merge remote-tracking branch 'origin/python-dlp-migration' into pytho…
b00f129
…n-dlp-migration
@Sita04

Sita04 commented Feb 23, 2023

Copy link
Copy Markdown
Collaborator Author

@rsamborski Thanks for your review. Updated it all. PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

@Sita04
Sita04 requested a review from rsamborski February 23, 2023 20:18
@Sita04
Merge branch 'main' into python-dlp-migration
67e6daa
@Sita04

Sita04 commented Feb 23, 2023

Copy link
Copy Markdown
Collaborator Author

Tests failing because API is not enabled. Kindly enable the DLP API for Py39, Py310 and Py311.

All reactions

Sorry, something went wrong.

Uh oh!

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

rsamborski
rsamborski approved these changes Feb 24, 2023
View reviewed changes
rsamborski
rsamborski reviewed Feb 24, 2023
View reviewed changes
Comment thread dlp/snippets/noxfile_config.py Resolved

Uh oh!

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

@rsamborski

rsamborski commented Feb 24, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

@Sita04 Maciek turned on APIs for Py3.9-3.11. I am updating the branch to kick off the tests and see if they pass.

Sita04 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@rsamborski
Merge branch 'main' into python-dlp-migration
68636f6
m-strzelczyk
m-strzelczyk requested changes Feb 24, 2023
View reviewed changes
Comment thread dlp/snippets/deid_test.py Outdated
"rotx7Chxz/4z7SIpXFOBY61z0/U="
)
KEY_NAME = (
"projects/python-docs-samples-tests/locations/global/keyRings/"

@m-strzelczyk m-strzelczyk Feb 24, 2023 •
edited
Loading

Uh oh!

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

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.

Since you're running tests in version-specific projects, please create this key in every project and use it that way. We don't want inter-project dependencies. They make management much harder.

Once you make the change let me know and I'll sort out the permissions if there are still problems.

Sorry, something went wrong.

Uh oh!

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

All reactions

@Sita04 Sita04 Feb 24, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator Author

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.

@m-strzelczyk Sure, makes sense.
I created the keyring and key in Python3.7
Didn't have the permission to create in other projects.

Sorry, something went wrong.

Uh oh!

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

All reactions

@m-strzelczyk m-strzelczyk Feb 28, 2023

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.

I created the keyrings and keys in every test project.

Sorry, something went wrong.

Uh oh!

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

All reactions

@m-strzelczyk m-strzelczyk Feb 28, 2023

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.

Please remember to change the project part of the key name to use the project-specific keys :)

Sorry, something went wrong.

Uh oh!

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

All reactions

@Sita04 Sita04 Feb 28, 2023

Copy link
Copy Markdown
Collaborator Author

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.

Thanks Maciej for creating the keys.
I already modified the project part of the key. The errors are not due it. I'm looking into it now.

Sorry, something went wrong.

Uh oh!

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

All reactions
Sita04 and others added 6 commits February 24, 2023 11:16
@Sita04
add Py27 to ignored versions
9e515d6
@Sita04
Merge remote-tracking branch 'origin/python-dlp-migration' into pytho…
3660990
…n-dlp-migration
@Sita04
Updating test project
09f4eb6
@Sita04
Merge branch 'main' into python-dlp-migration
1e7d521
@m-strzelczyk
Merge branch 'main' into python-dlp-migration
83e3ab6
@Sita04
updated to use a single project
95c8de0
@Sita04

Sita04 commented Feb 28, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator Author

@m-strzelczyk @rsamborski I have reverted the noxconfig file to use only one project instead of multiple.
Issue: The keyrings and keys in the test files are hardcoded. Maciej created the keys in all the projects, but that alone seems to be insufficient. We need to create secrets for each project and then wrap the secret with the created key. All of this means a lot more hardcoding of properties. I suggest to skip this issue for now, as its not in scope of migration.
I'll create an issue to re-factor the test files so that keys can be created and wrapped during the lifecycle of the tests.

rsamborski reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@Sita04 Sita04 mentioned this pull request Feb 28, 2023
DLP sample tests need to be refactored #9186
Closed
Sita04 added 2 commits February 28, 2023 22:20
@Sita04
Merge branch 'main' into python-dlp-migration
7c7df29
@Sita04
Merge branch 'main' into python-dlp-migration
27a77a0
m-strzelczyk
m-strzelczyk approved these changes Feb 28, 2023
View reviewed changes
@Sita04
Merge branch 'main' into python-dlp-migration
2be71c4
@nicain
nicain merged commit 86b0054 into main Mar 1, 2023
@nicain
nicain deleted the python-dlp-migration branch March 1, 2023 18:26
@Sita04 Sita04 mentioned this pull request Mar 1, 2023
chore: delete migrated samples googleapis/python-dlp#495
Merged
telpirion pushed a commit that referenced this pull request Mar 13, 2023
@Sita04 @arithmetic1728
@andrewsg @dpebot chenyumic @frankyn @micheldavid @michaelawyu @mwdaub @realjordanna @ackul @djmailhot @engelke @maximus12793 @averikitsch @gguuss @leahecole @kurtisvg @renovate-bot Takashi Matsuo @gcf-merge-on-green @busunkim96 @sethmoo @jlmwise @lxhfirenking @sushicw @yoshi-automation @hilliao @gcf-owl-bot @parthea @release-please @m-strzelczyk @rsamborski @telpirion
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.