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 — Added code samples for stored infoTypes. by mwdaub · Pull Request #1934 · GoogleCloudPlatform/python-docs-samples

Conversation

@mwdaub

@mwdaub mwdaub commented Dec 14, 2018

Copy link
Copy Markdown
Contributor

The DLP team is in the process of expanding code samples to include features that we have launched since the initial samples were written.

This pull request adds code samples for the recently launched stored infoTypes feature. The samples were modeled after triggers.py and adapted to stored infoTypes. Note that this does not include code samples for actually using them - those will be added later.

Sorry, something went wrong.

Uh oh!

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

All reactions
mwdaub added 4 commits June 13, 2018 11:15
@mwdaub
Add info_types parameter to deid.py
5ecc915
@mwdaub
Update deid tests to use info_types parameter
c80a2d9
@mwdaub
Merge remote-tracking branch 'upstream/master'
828fac6
@mwdaub
Added code samples for stored infoTypes.
748dcb1
The samples were modeled after triggers.py and adapted to stored infoTypes. Note that this does not include code samples for actually using them - those will be added later.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 14, 2018
@mwdaub
Lint errors.
898e7f3
@mwdaub

mwdaub commented Dec 20, 2018

Copy link
Copy Markdown
Contributor Author

Please take a look.

All reactions

Sorry, something went wrong.

Uh oh!

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

@engelke
Merge branch 'master' into master
f76faa0
gguuss
gguuss suggested changes Jul 24, 2019
View reviewed changes

@gguuss gguuss 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.

Thank you for the PR, looks like this PR is a bit stale, a few nits, consider making changes to restart the CI.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread dlp/stored_info_types.py
'field': {'name': bq_input_table_field},
}
}
create_stored_info_type(project, dictionary_config,

@gguuss gguuss Jul 24, 2019

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.

As alternative formatting, you could avoid the hanging indent:

    create_stored_info_type(
        project, dictionary_config, stored_info_type_id=stored_info_type_id,
        display_name=display_name, description=description)

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread dlp/stored_info_types_test.py
@@ -0,0 +1,99 @@
# Copyright 2017 Google Inc.

@gguuss gguuss Jul 24, 2019

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.

If this is a new file, add this as 2019 instead of 2017

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread dlp/stored_info_types_test.py
bucket.delete()


def test_create_list_and_delete_stored_info_type(bucket, capsys):

@gguuss gguuss Jul 24, 2019

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.

Probably fine as-is but consider separating the create/delete and create/list/delete tests.

Sorry, something went wrong.

Uh oh!

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

All reactions
@andrewferlitsch

andrewferlitsch commented Oct 3, 2019

Copy link
Copy Markdown
Contributor

from mcdaub: Hi Andrew, I originally submitted that PR in 2018 and then changed teams in early 2019. Because nobody responded to my PR request for over a month, I stopped working on it and no longer have the bandwidth to work on it since my new team is not associated with the code. You can either close the PR or ask my old team to open a new one with the same changes.

All reactions

Sorry, something went wrong.

Uh oh!

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

@andrewferlitsch andrewferlitsch closed this Oct 3, 2019
@parthea parthea mentioned this pull request Sep 8, 2026
migrate code from googleapis/python-bigquery #14589
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@gguuss gguuss gguuss requested 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.

5 participants

@mwdaub @andrewferlitsch @gguuss @googlebot @engelke
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.