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 — Python KMS Apiary P1 samples by ryanmats · Pull Request #779 · GoogleCloudPlatform/python-docs-samples

Conversation

@ryanmats

@ryanmats ryanmats commented Feb 2, 2017 •
edited by dpebot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Drafts of KMS Apiary Python P1 Samples

Had a few linting issues with really long lines - not sure how to fix those. Other than those, I addressed all the linting issues.

Sorry, something went wrong.

Uh oh!

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

All reactions
ryanmats added 6 commits January 31, 2017 00:52
@ryanmats
Draft of first half of KMS samples
9f67a99
@ryanmats
reversed wrong change
6d82309
@ryanmats
KMS Apiary Python samples - P1
5529d40
@ryanmats
Merge branch 'master' of https://github.com/GoogleCloudPlatform/pytho…
13c7c74
…n-docs-samples into python-kms-samples
@ryanmats
Few minor style issues
491b6d9
@ryanmats
Adding back in space i accidentally deleted
21f812c
@ryanmats
ryanmats requested a review from theacodes February 2, 2017 04:52
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 2, 2017
theacodes
theacodes suggested changes Feb 2, 2017
View reviewed changes

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

These should go in the api-client folder. (I know this isn't yet consistent in this repo)

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated


# [START kms_create_keyring]
def create_keyring(project_id, location, keyring):

@theacodes theacodes Feb 2, 2017

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.

docstrings throughout, please.

e.g.:

"""Creates a keyring in the given location."""

I might be useful to list the locations that are available.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated
import argparse
import base64

# Imports the Google APIs client library

@theacodes theacodes Feb 2, 2017

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.

This comment isn't necessary.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated
# Creates an API client for the KMS API.
kms_client = discovery.build('cloudkms', 'v1beta1')

# The resource name of the location associated with the KeyRing.

@theacodes theacodes Feb 2, 2017

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.

nit: Does KeyRing need to be cased as such?

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

The cloud.google.com documentation refers to them as "CryptoKey" "KeyRing" etc. (https://cloud-dot-devsite.googleplex.com/kms/docs/creating-keys) and so does the Python API library documentation (https://developers.google.com/resources/api-libraries/documentation/cloudkms/v1beta1/python/latest/cloudkms_v1beta1.projects.locations.keyRings.cryptoKeys.html#getIamPolicy).

The canonical sample also uses this casing in comments.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated

# Create KeyRing
request = kms_client.projects().locations().keyRings().create(
parent=parent, body={}, keyRingId=keyring)

@theacodes theacodes Feb 2, 2017

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.

Why is body empty here?

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

We need body for the request, where one can include optional specification fields (https://developers.google.com/resources/api-libraries/documentation/cloudkms/v1beta1/python/latest/cloudkms_v1beta1.projects.locations.keyRings.cryptoKeys.html#create). The canonical sample doesn't include any of the optional fields.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated
parent=parent, body={}, keyRingId=keyring)
response = request.execute()

print 'Created KeyRing {}.'.format(response["name"])

@theacodes theacodes Feb 2, 2017

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.

You need to use print-as-a-function for this to work on Python 3.

(In general, you should be developing with Python 3.6, let me know if you need help setting that up)

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated
response = request.execute()

# Write the encrypted text to a file.
o = open(outfile, 'w')

@theacodes theacodes Feb 2, 2017

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.

use a context manager here as well.

Also, is the ciphertext base64 encoded? If not, you should open the file as binary rb.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated


# [START kms_decrypt]
def decrypt(project_id, location, keyring, cryptokey, infile, outfile):

@theacodes theacodes Feb 2, 2017

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.

Apply my same comments from encrypt to this function.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions.py Outdated
project_id, location, keyring, cryptokey)

# Get the current IAM policy and add the new member to it.
policy_request = kms_client.projects().locations().keyRings().cryptoKeys().getIamPolicy(resource=parent)

@theacodes theacodes Feb 2, 2017

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.

Holy cow. How is this done in other languages?

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

talked with Brent and it looks like the API handles duplicates and everything, so I changed this so now I just append the new role / member pair to the end of the bindings.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions_test.py Outdated


# Your Google Cloud Platform project ID
PROJECT_ID = 'YOUR_PROJECT_ID'

@theacodes theacodes Feb 2, 2017

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.

This is available from the cloud_config fixture.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api/functions_test.py Outdated
# Your Google Cloud Platform CryptoKey name
CRYPTOKEY = 'sample-key-4'

# An infile for text to be encrypted

@theacodes theacodes Feb 2, 2017

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.

Use pytest's tmpfile fixture for files, please.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 3, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
ryanmats added 3 commits February 3, 2017 15:53
@ryanmats
Addressed all code review comments
2a92880
@ryanmats
Merge branch 'master' of https://github.com/GoogleCloudPlatform/pytho…
17c735c
…n-docs-samples into python-kms-samples
@ryanmats
Renamed api directory to api-client
9cf08a4
theacodes
theacodes suggested changes Feb 4, 2017
View reviewed changes
Comment thread kms/api-client/functions.py Outdated

# [START kms_create_keyring]
def create_keyring(project_id, location, keyring):
"""Creates a KeyRing in the given location. Potential locations include:

@theacodes theacodes Feb 4, 2017

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.

Summary should be one sentence.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions.py Outdated
# [START kms_create_keyring]
def create_keyring(project_id, location, keyring):
"""Creates a KeyRing in the given location. Potential locations include:
global, asia-east1, europe-west1, us-central1, and us-east1."""

@theacodes theacodes Feb 4, 2017

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 these can change, better to just link to the documentation.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

can't seem to find any documentation that lists out all locations. gonna just say "(e.g. global)."

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions.py Outdated

# Create a CryptoKey for the given KeyRing.
request = kms_client.projects().locations().keyRings().cryptoKeys().create(
parent=parent, body={"purpose": 'ENCRYPT_DECRYPT'},

@theacodes theacodes Feb 4, 2017

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.

single quotes everywhere (except for docstrings), please.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions.py Outdated
# Read text from the input file.
with io.open(plaintext_file_name, 'rb') as plaintext_file:
plaintext = plaintext_file.read()
encoded_text = base64.b64encode(plaintext)

@theacodes theacodes Feb 4, 2017

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.

You can de-dent everything after the call to read(). You no longer need the file open after getting its contents.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions.py Outdated
kms_client = discovery.build('cloudkms', 'v1beta1')

# Construct the resource name of the CryptoKeyVersion.
name = 'projects/{}/locations/{}/'.format(project_id, location)

@theacodes theacodes Feb 4, 2017

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.

do this to break the string up over multiple lines:

name = (
    'projects/..........'
    '/....'
    '.....')

Python will automatically concatenate them.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions.py
@@ -0,0 +1,292 @@
#!/usr/bin/env python

@theacodes theacodes Feb 4, 2017

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.

name this file snippets.py.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions_test.py Outdated
import functions


# Your Google Cloud Platform Key Location

@theacodes theacodes Feb 4, 2017

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.

The audience for these comments is us, the maintainers. So maybe it makes sense to either remove or revise them?

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

Revised them. Kept a few comments for my own reference in the future.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions_test.py Outdated
functions.create_cryptokey(
cloud_config.project, LOCATION, KEYRING, CRYPTOKEY)
out, _ = capsys.readouterr()
expected = 'Created CryptoKey projects/{}/'.format(cloud_config.project)

@theacodes theacodes Feb 4, 2017

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.

see my previous comment about breaking up long strings.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions_test.py Outdated
encrypted_file_name, decrypted_file_name)

# Make sure the decrypted text matches the original text.
decrypted_text = open(decrypted_file_name).read()

@theacodes theacodes Feb 4, 2017

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 you hadn't already cast to a str, you could do decrypted_file.read().

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

changed (now setting up variables like 'plaintext_file', and then calling encrypt / decrypt with str(plaintext_file) )

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread kms/api-client/functions_test.py Outdated
assert 'Saved decrypted text to {}.'.format(decrypted_file_name) in out


def test_encrypt_decrypt_cli(capsys, cloud_config, tmpdir):

@theacodes theacodes Feb 4, 2017

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.

This test isn't necessary - we don't typically test the argparse section.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 6, 2017

Copy link
Copy Markdown
Contributor 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.

removed

Sorry, something went wrong.

Uh oh!

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

All reactions
ryanmats added 2 commits February 6, 2017 14:33
@ryanmats
Merge branch 'master' of https://github.com/GoogleCloudPlatform/pytho…
d8d15db
…n-docs-samples into python-kms-samples
@ryanmats
Addressed more code review comments
816877a
theacodes
theacodes reviewed Feb 7, 2017
View reviewed changes
Comment thread kms/api-client/snippets.py
resource=parent, body={'policy': policy_response})
request.execute()

print_msg = (

@theacodes theacodes Feb 7, 2017

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.

Don't do this, you can put this all within the print statement.

Sorry, something went wrong.

Uh oh!

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

All reactions

@ryanmats ryanmats Feb 7, 2017

Copy link
Copy Markdown
Contributor 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.

done

Sorry, something went wrong.

Uh oh!

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

All reactions
@ryanmats
Formatting change
51ef300
@bshaffer

bshaffer commented Feb 7, 2017

Copy link
Copy Markdown
Contributor

The README should be updated to include snippets.py I believe

All reactions

Sorry, something went wrong.

Uh oh!

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

Jon Wayne Parrott added 4 commits February 6, 2017 16:19
Jon Wayne Parrott
Fix quickstart test
1be099c
Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399
Jon Wayne Parrott
Merge branch 'python-kms-samples' of github.com:GoogleCloudPlatform/p…
eb07c44
…ython-docs-samples into python-kms-samples
Jon Wayne Parrott
Update readme
8e9f3d0
Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1
Jon Wayne Parrott
Add readme
14fb5c0
Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1
@theacodes

theacodes commented Feb 7, 2017

Copy link
Copy Markdown
Contributor

The README should be updated to include snippets.py I believe

Done.

All reactions

Sorry, something went wrong.

Uh oh!

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

@theacodes

theacodes commented Feb 7, 2017

Copy link
Copy Markdown
Contributor

@ryanmats You still need to add the remaining commands for the rest of the samples in snippets. Currently there's just encrypt, decrypt, and other.

All reactions

Sorry, something went wrong.

Uh oh!

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

ryanmats added 3 commits February 6, 2017 18:35
@ryanmats
Added parsers
b44fdfd
@ryanmats
Merge branch 'python-kms-samples' of https://github.com/GoogleCloudPl…
6ee4bd9
…atform/python-docs-samples into python-kms-samples
@ryanmats
Final minor changes to parsers
ce75417
@theacodes

theacodes commented Feb 7, 2017

Copy link
Copy Markdown
Contributor

@ryanmats can you run the nox readmegen session for this sample? After that, feel free to merge.

All reactions

Sorry, something went wrong.

Uh oh!

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

theacodes
theacodes approved these changes Feb 7, 2017
View reviewed changes
@ryanmats
Added autogenerated README
842af60
@ryanmats
Merge branch 'master' of https://github.com/GoogleCloudPlatform/pytho…
599341f
…n-docs-samples into python-kms-samples
@theacodes

theacodes commented Feb 7, 2017

Copy link
Copy Markdown
Contributor

@dpebot will you merge when travis passes?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dpebot

dpebot commented Feb 7, 2017

Copy link
Copy Markdown
Collaborator

Okay! I'll merge when all statuses are green and all reviewers approve.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dpebot dpebot added the automerge Merge the pull request once unit tests and other checks pass. label Feb 7, 2017
@dpebot dpebot self-assigned this Feb 7, 2017
@ryanmats
Changed snippets_test keyring name and cryptokey name
1c53533
@dpebot
dpebot merged commit f7179af into master Feb 7, 2017
@dpebot
dpebot deleted the python-kms-samples branch February 7, 2017 21:15
busunkim96 pushed a commit to googleapis/python-kms that referenced this pull request Jun 4, 2020
@ryanmats @busunkim96
Python KMS Apiary P1 samples [(#779)](GoogleCloudPlatform/python-docs…
c02fb40
…-samples#779)

* Draft of first half of KMS samples

* reversed wrong change

* KMS Apiary Python samples - P1

* Few minor style issues

* Adding back in space i accidentally deleted

* Addressed all code review comments

* Renamed api directory to api-client

* Addressed more code review comments

* Formatting change

* Fix quickstart test

Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399

* Update readme

Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1

* Add readme

Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1

* Added parsers

* Final minor changes to parsers

* Added autogenerated README

* Changed snippets_test keyring name and cryptokey name
@rsamborski rsamborski mentioned this pull request Nov 8, 2022
migrate code from googleapis/python-kms #8470
Merged
6 of 8 tasks
rsamborski pushed a commit that referenced this pull request Nov 8, 2022
@ryanmats @rsamborski
Python KMS Apiary P1 samples [(#779)](#779)
476f4cd
* Draft of first half of KMS samples

* reversed wrong change

* KMS Apiary Python samples - P1

* Few minor style issues

* Adding back in space i accidentally deleted

* Addressed all code review comments

* Renamed api directory to api-client

* Addressed more code review comments

* Formatting change

* Fix quickstart test

Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399

* Update readme

Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1

* Add readme

Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1

* Added parsers

* Final minor changes to parsers

* Added autogenerated README

* Changed snippets_test keyring name and cryptokey name
rsamborski pushed a commit that referenced this pull request Nov 11, 2022
@ryanmats @rsamborski
Python KMS Apiary P1 samples [(#779)](#779)
f8f48fd
* Draft of first half of KMS samples

* reversed wrong change

* KMS Apiary Python samples - P1

* Few minor style issues

* Adding back in space i accidentally deleted

* Addressed all code review comments

* Renamed api directory to api-client

* Addressed more code review comments

* Formatting change

* Fix quickstart test

Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399

* Update readme

Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1

* Add readme

Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1

* Added parsers

* Final minor changes to parsers

* Added autogenerated README

* Changed snippets_test keyring name and cryptokey name
rsamborski pushed a commit that referenced this pull request Nov 14, 2022
@ryanmats @rsamborski
Python KMS Apiary P1 samples [(#779)](#779)
c3dae48
* Draft of first half of KMS samples

* reversed wrong change

* KMS Apiary Python samples - P1

* Few minor style issues

* Adding back in space i accidentally deleted

* Addressed all code review comments

* Renamed api directory to api-client

* Addressed more code review comments

* Formatting change

* Fix quickstart test

Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399

* Update readme

Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1

* Add readme

Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1

* Added parsers

* Final minor changes to parsers

* Added autogenerated README

* Changed snippets_test keyring name and cryptokey name
dandhlee pushed a commit that referenced this pull request Nov 14, 2022
@ryanmats @dandhlee
Python KMS Apiary P1 samples [(#779)](#779)
0b11364
* Draft of first half of KMS samples

* reversed wrong change

* KMS Apiary Python samples - P1

* Few minor style issues

* Adding back in space i accidentally deleted

* Addressed all code review comments

* Renamed api directory to api-client

* Addressed more code review comments

* Formatting change

* Fix quickstart test

Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399

* Update readme

Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1

* Add readme

Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1

* Added parsers

* Final minor changes to parsers

* Added autogenerated README

* Changed snippets_test keyring name and cryptokey name
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
@ryanmats @busunkim96
Python KMS Apiary P1 samples [(#779)](GoogleCloudPlatform/python-docs…
aa7ee31
…-samples#779)

* Draft of first half of KMS samples

* reversed wrong change

* KMS Apiary Python samples - P1

* Few minor style issues

* Adding back in space i accidentally deleted

* Addressed all code review comments

* Renamed api directory to api-client

* Addressed more code review comments

* Formatting change

* Fix quickstart test

Change-Id: Ib79dc1345c9c40547f3fd4e9c3c9a48963a3b399

* Update readme

Change-Id: Icf4a66083f56d6f51be76ba1cf3b5dc8daf2c4c1

* Add readme

Change-Id: I2fbaa55092ef8787f1423d499aa310cab258c0c1

* Added parsers

* Final minor changes to parsers

* Added autogenerated README

* Changed snippets_test keyring name and cryptokey name
@Linchin Linchin mentioned this pull request Aug 18, 2025
chore: migrate handwritten samples from googleapis/python-bigquery-storage #13543
Merged
9 tasks
Linchin added a commit that referenced this pull request Aug 18, 2025
@gcf-owl-bot @parthea @Linchin
feat: Add BigQuery Metastore Partition Service API version v1alpha (#779
d774939
)

* feat: Add BigQuery Metastore Partition Service API version v1alpha

PiperOrigin-RevId: 662212485

Source-Link: googleapis/googleapis@456a812

Source-Link: https://github.com/googleapis/googleapis-gen/commit/2ec266e6da03208a76b0fd6001ba7df93dae44e6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmVjMjY2ZTZkYTAzMjA4YTc2YjBmZDYwMDFiYTdkZjkzZGFlNDRlNiJ9

chore: Update gapic-generator-python to v1.18.5

PiperOrigin-RevId: 661268868

Source-Link: googleapis/googleapis@f7d214c

Source-Link: https://github.com/googleapis/googleapis-gen/commit/79a8411bbdb25a983fa3aae8c0e14327df129f94
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzlhODQxMWJiZGIyNWE5ODNmYTNhYWU4YzBlMTQzMjdkZjEyOWY5NCJ9

chore: Update gapic-generator-python to v1.18.4

PiperOrigin-RevId: 657207628

Source-Link: googleapis/googleapis@33fe71e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e02739d122ed15bd5ef5771c57f12a83d47a1dda
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTAyNzM5ZDEyMmVkMTViZDVlZjU3NzFjNTdmMTJhODNkNDdhMWRkYSJ9

chore: Update gapic-generator-python to v1.18.3

PiperOrigin-RevId: 656040068

Source-Link: googleapis/googleapis@3f4e29a

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b8feb2109dde7b0938c22c993d002251ac6714dc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjhmZWIyMTA5ZGRlN2IwOTM4YzIyYzk5M2QwMDIyNTFhYzY3MTRkYyJ9

chore: Update gapic-generator-python to v1.18.3

PiperOrigin-RevId: 655567917

Source-Link: googleapis/googleapis@43aa65e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/0e38378753074c0f66ff63348d6864929e104d5c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGUzODM3ODc1MzA3NGMwZjY2ZmY2MzM0OGQ2ODY0OTI5ZTEwNGQ1YyJ9

feat(spanner): Add support for Cloud Spanner Scheduled Backups

PiperOrigin-RevId: 649277844

Source-Link: googleapis/googleapis@fd7efa2

Source-Link: https://github.com/googleapis/googleapis-gen/commit/50be251329d8db5b555626ebd4886721f547d3cc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTBiZTI1MTMyOWQ4ZGI1YjU1NTYyNmViZDQ4ODY3MjFmNTQ3ZDNjYyJ9

chore: Update gapic-generator-python to v1.18.2

PiperOrigin-RevId: 649219344

Source-Link: googleapis/googleapis@7fe35b0

Source-Link: https://github.com/googleapis/googleapis-gen/commit/7a6ae6441d1cb0610cf8e9832b9383a4fd52423f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2E2YWU2NDQxZDFjYjA2MTBjZjhlOTgzMmI5MzgzYTRmZDUyNDIzZiJ9

chore: Update gapic-generator-python to v1.18.0

PiperOrigin-RevId: 638650618

Source-Link: googleapis/googleapis@6330f03

Source-Link: https://github.com/googleapis/googleapis-gen/commit/44fa4f1979dc45c1778fd7caf13f8e61c6d1cae8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDRmYTRmMTk3OWRjNDVjMTc3OGZkN2NhZjEzZjhlNjFjNmQxY2FlOCJ9

chore: Update gapic-generator-python to v1.17.1

PiperOrigin-RevId: 629071173

Source-Link: googleapis/googleapis@4afa392

Source-Link: https://github.com/googleapis/googleapis-gen/commit/16dbbb4d0457db5e61ac9f99b0d52a46154455ac
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9

* update replacements in owlbot.py

* remove v1alpha

* update owlbot config

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix failing unit test by mocking the correct class's method

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Lingqing Gan <[email protected]>
chalmerlowe pushed a commit that referenced this pull request Apr 7, 2026
@renovate-bot
chore(deps): update dependency backoff to v2.0.1 (#779)
04ccbc4
@chalmerlowe chalmerlowe mentioned this pull request Apr 7, 2026
migrate code from googleapis/python-storage #13989
Merged
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

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

Uh oh!

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

Assignees

@dpebot dpebot

Labels

automerge Merge the pull request once unit tests and other checks pass. 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

@ryanmats @bshaffer @theacodes @dpebot @googlebot
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.