Skip to content

Commit 48a5321

Browse files
committed
add documentation for the encryption_config argument
1 parent bb9f6b4 commit 48a5321

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

google/cloud/spanner_v1/database.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ class Database(object):
9292
:param pool: (Optional) session pool to be used by database. If not
9393
passed, the database will construct an instance of
9494
:class:`~google.cloud.spanner_v1.pool.BurstyPool`.
95+
96+
:type encryption_config:
97+
:class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig`
98+
or :class:`dict`
99+
:param encryption_config:
100+
(Optional) Encryption information about the database.
101+
If a dict is provided, it must be of the same form as the protobuf
102+
message :class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig`
95103
"""
96104

97105
_spanner_api = None

google/cloud/spanner_v1/instance.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,14 @@ def database(
364364
:class:`~google.cloud.spanner_v1.pool.AbstractSessionPool`.
365365
:param pool: (Optional) session pool to be used by database.
366366
367+
:type encryption_config:
368+
:class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig`
369+
or :class:`dict`
370+
:param encryption_config:
371+
(Optional) Encryption information about the database.
372+
If a dict is provided, it must be of the same form as the protobuf
373+
message :class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig
374+
367375
:rtype: :class:`~google.cloud.spanner_v1.database.Database`
368376
:returns: a database owned by this instance.
369377
"""

0 commit comments

Comments
 (0)