Skip to content

Commit 716c2f9

Browse files
Move to google.cloud.spanner_v1 (#4064)
1 parent cb6dbb8 commit 716c2f9

38 files changed

+331
-325
lines changed

docs/spanner/batch-api.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Batch API
22
=========
33

4-
.. automodule:: google.cloud.spanner.batch
4+
.. automodule:: google.cloud.spanner_v1.batch
55
:members:
66
:show-inheritance:
7-
8-

docs/spanner/client-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Spanner Client
22
==============
33

4-
.. automodule:: google.cloud.spanner.client
4+
.. automodule:: google.cloud.spanner_v1.client
55
:members:
66
:show-inheritance:
77

docs/spanner/database-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Database API
22
============
33

4-
.. automodule:: google.cloud.spanner.database
4+
.. automodule:: google.cloud.spanner_v1.database
55
:members:
66
:show-inheritance:
77

docs/spanner/instance-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Instance API
22
============
33

4-
.. automodule:: google.cloud.spanner.instance
4+
.. automodule:: google.cloud.spanner_v1.instance
55
:members:
66
:show-inheritance:
77

docs/spanner/keyset-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Keyset API
22
==========
33

4-
.. automodule:: google.cloud.spanner.keyset
4+
.. automodule:: google.cloud.spanner_v1.keyset
55
:members:
66
:show-inheritance:
77

docs/spanner/session-api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Session API
22
===========
33

4-
.. automodule:: google.cloud.spanner.session
4+
.. automodule:: google.cloud.spanner_v1.session
55
:members:
66
:show-inheritance:
77

88

99
Session Pools API
1010
=================
1111

12-
.. automodule:: google.cloud.spanner.pool
12+
.. automodule:: google.cloud.spanner_v1.pool
1313
:members:
1414
:show-inheritance:
1515

docs/spanner/snapshot-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Snapshot API
22
============
33

4-
.. automodule:: google.cloud.spanner.snapshot
4+
.. automodule:: google.cloud.spanner_v1.snapshot
55
:members:
66
:show-inheritance:
77

docs/spanner/streamed-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
StreamedResultSet API
22
=====================
33

4-
.. automodule:: google.cloud.spanner.streamed
4+
.. automodule:: google.cloud.spanner_v1.streamed
55
:members:
66
:show-inheritance:
77

docs/spanner/transaction-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Transaction API
22
===============
33

4-
.. automodule:: google.cloud.spanner.transaction
4+
.. automodule:: google.cloud.spanner_v1.transaction
55
:members:
66
:show-inheritance:
77

spanner/google/cloud/spanner.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright 2016 Google Inc. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Cloud Spanner API package."""
16+
17+
from __future__ import absolute_import
18+
19+
from google.cloud.spanner_v1 import __version__
20+
from google.cloud.spanner_v1 import AbstractSessionPool
21+
from google.cloud.spanner_v1 import BurstyPool
22+
from google.cloud.spanner_v1 import Client
23+
from google.cloud.spanner_v1 import enums
24+
from google.cloud.spanner_v1 import FixedSizePool
25+
from google.cloud.spanner_v1 import KeyRange
26+
from google.cloud.spanner_v1 import KeySet
27+
from google.cloud.spanner_v1 import param_types
28+
from google.cloud.spanner_v1 import types
29+
30+
31+
__all__ = (
32+
'__version__',
33+
'AbstractSessionPool',
34+
'BurstyPool',
35+
'Client',
36+
'enums',
37+
'FixedSizePool',
38+
'KeyRange',
39+
'KeySet',
40+
'param_types',
41+
'types',
42+
)

0 commit comments

Comments
 (0)