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
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 Jon Wayne Parrott committed Aug 17, 2017
1 parent ad3aceb commit a8763bf
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 169 deletions.
4 changes: 2 additions & 2 deletions kms/api-client/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 a8763bf

Please sign in to comment.