Skip to content

Commit

Permalink
add documentation for the encryption_config argument
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Jun 30, 2020
1 parent bb9f6b4 commit 48a5321
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google/cloud/spanner_v1/database.py
Expand Up @@ -92,6 +92,14 @@ class Database(object):
:param pool: (Optional) session pool to be used by database. If not
passed, the database will construct an instance of
:class:`~google.cloud.spanner_v1.pool.BurstyPool`.
:type encryption_config:
:class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig`
or :class:`dict`
:param encryption_config:
(Optional) Encryption information about the database.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig`
"""

_spanner_api = None
Expand Down
8 changes: 8 additions & 0 deletions google/cloud/spanner_v1/instance.py
Expand Up @@ -364,6 +364,14 @@ def database(
:class:`~google.cloud.spanner_v1.pool.AbstractSessionPool`.
:param pool: (Optional) session pool to be used by database.
:type encryption_config:
:class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig`
or :class:`dict`
:param encryption_config:
(Optional) Encryption information about the database.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.spanner_admin_database_v1.types.EncryptionConfig
:rtype: :class:`~google.cloud.spanner_v1.database.Database`
:returns: a database owned by this instance.
"""
Expand Down

0 comments on commit 48a5321

Please sign in to comment.