Commit 60bbf26
authored
KMS: Makes samples consistent across languages. (GoogleCloudPlatform#461)
This change, in particular:
* Consistently names variables with the API (locationId, keyRingId,
cryptoKeyId).
* Displays the function name in the region tag.
* Correctly writes decoded base64 to disk and encodes file contents
before calling KMS.
* Correctly loads decoded base64 from disk.
* Labels parameters as plaintextFileName and ciphertextFileName, rather
than inFile and outFile where applicable.
* Makes test failure messages more readable.1 parent 1df42ed commit 60bbf26
3 files changed
Lines changed: 210 additions & 208 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments