Skip to content

Commit 515d306

Browse files
michaelawyursamborski
michaelawyu
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](#1254)
1 parent 38da194 commit 515d306

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

kms/snippets/README.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Cloud KMS API Python Samples
44
===============================================================================
55

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+
610
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.
711

812

@@ -54,6 +58,10 @@ Samples
5458
Quickstart
5559
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660

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+
5765

5866

5967
To run this sample:
@@ -66,6 +74,10 @@ To run this sample:
6674
Snippets
6775
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6876

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+
6981

7082

7183
To run this sample:
@@ -75,16 +87,17 @@ To run this sample:
7587
$ python snippets.py
7688
7789
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}
7991
...
80-
92+
8193
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+
8496
optional arguments:
8597
-h, --help show this help message and exit
8698
8799
88100
89101
102+
90103
.. _Google Cloud SDK: https://cloud.google.com/sdk/

kms/snippets/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ samples:
1818
- name: Snippets
1919
file: snippets.py
2020
show_help: True
21+
22+
folder: kms/api-client

0 commit comments

Comments
 (0)