3
3
Google Cloud KMS API Python Samples
4
4
===============================================================================
5
5
6
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
7
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/README.rst
8
+
9
+
6
10
This directory contains samples for Google Cloud KMS API. The `Google Cloud KMS API `_ is a service that allows you to keep encryption keys centrally in the cloud, for direct use by cloud services.
7
11
8
12
@@ -54,6 +58,10 @@ Samples
54
58
Quickstart
55
59
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
56
60
61
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
62
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/quickstart.py;kms/api-client/README.rst
63
+
64
+
57
65
58
66
59
67
To run this sample:
@@ -66,6 +74,10 @@ To run this sample:
66
74
Snippets
67
75
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
68
76
77
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
78
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/snippets.py;kms/api-client/README.rst
79
+
80
+
69
81
70
82
71
83
To run this sample:
@@ -75,16 +87,17 @@ To run this sample:
75
87
$ python snippets.py
76
88
77
89
usage: snippets.py [-h]
78
- {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}
90
+ {create_key_ring,create_crypto_key,encrypt,decrypt,disable_crypto_key_version,enable_crypto_key_version, destroy_crypto_key_version,restore_crypto_key_version ,add_member_to_crypto_key_policy,get_key_ring_policy}
79
91
...
80
-
92
+
81
93
positional arguments:
82
- {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}
83
-
94
+ {create_key_ring,create_crypto_key,encrypt,decrypt,disable_crypto_key_version,enable_crypto_key_version, destroy_crypto_key_version,restore_crypto_key_version ,add_member_to_crypto_key_policy,get_key_ring_policy}
95
+
84
96
optional arguments:
85
97
-h, --help show this help message and exit
86
98
87
99
88
100
89
101
102
+
90
103
.. _Google Cloud SDK : https://cloud.google.com/sdk/
0 commit comments