9867964b7d251206469d6de70b292b4e51b0d8a6,storage/cloud-client/encryption.py,,rotate_encryption_key,#Any#Any#Any#Any#,96
Before Change
base64_new_encryption_key):
Performs a key rotation by re-writing an encrypted blob with a new
encryption key.
raise NotImplementedError(
"This is currently not available using the Cloud Client Library.")
if __name__ == "__main__":
parser = argparse.ArgumentParser(
After Change
destination_blob = Blob(
blob_name, bucket, encryption_key=new_encryption_key)
token = None
while True:
token, bytes_rewritten, total_bytes = destination_blob.rewrite(
source_blob, token=token)
if token is None:
break
print("Key rotation complete for Blob {}".format(blob_name))
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 9867964b7d251206469d6de70b292b4e51b0d8a6
Time: 2016-11-22
Author: ryanmats@google.com
File Name: storage/cloud-client/encryption.py
Class Name:
Method Name: rotate_encryption_key
Project Name: thenetcircle/dino
Commit Name: 325ba2c0857d2fff5d1915260bd58af571941609
Time: 2016-10-18
Author: oscar.eriks@gmail.com
File Name: dino/db/postgres/postgres.py
Class Name: DatabasePostgres
Method Name: room_owners_contain
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d7dc5780cd975ed5927e68bd5dd5a4a69ce5efb5
Time: 2016-10-27
Author: jonwayne@google.com
File Name: bigquery/cloud-client/snippets.py
Class Name:
Method Name: list_projects