Skip to content

Commit

Permalink
KMS: Make the samples consistent with the other languages. [(#1075)](#…
Browse files Browse the repository at this point in the history
…1075)

In particular, this change:
- changes to use a consistent "_id" suffix for resource name components
- uses "data" instead of "text", since encryption is not restricted to text
- substitutes "ciphertext" for "encrypted {text, data}"
- spells "crypto key" and "key ring" each as two separate words, as in the API

Tracking bug: http://b/64758639
  • Loading branch information
Russ Amos authored and dandhlee committed Nov 14, 2022
1 parent efdac15 commit 3b738f6
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 169 deletions.
4 changes: 2 additions & 2 deletions kms/snippets/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ To run this sample:
$ python snippets.py
usage: snippets.py [-h]
{create_keyring,create_cryptokey,encrypt,decrypt,disable_cryptokey_version,destroy_cryptokey_version,add_member_to_cryptokey_policy,get_keyring_policy}
{create_key_ring,create_crypto_key,encrypt,decrypt,disable_crypto_key_version,destroy_crypto_key_version,add_member_to_crypto_key_policy,get_key_ring_policy}
...
positional arguments:
{create_keyring,create_cryptokey,encrypt,decrypt,disable_cryptokey_version,destroy_cryptokey_version,add_member_to_cryptokey_policy,get_keyring_policy}
{create_key_ring,create_crypto_key,encrypt,decrypt,disable_crypto_key_version,destroy_crypto_key_version,add_member_to_crypto_key_policy,get_key_ring_policy}
optional arguments:
-h, --help show this help message and exit
Expand Down
Loading

0 comments on commit 3b738f6

Please sign in to comment.