Skip to content

Commit 89fb117

Browse files
Move the admin database GAPIC to source delivery. (googleapis#4029)
1 parent dcc5e66 commit 89fb117

17 files changed

Lines changed: 2823 additions & 13 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Spanner Admin Database Client API
2+
=================================
3+
4+
.. automodule:: google.cloud.spanner_admin_database_v1
5+
:members:
6+
:inherited-members:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Spanner Admin Database Client Types
2+
===================================
3+
4+
.. automodule:: google.cloud.spanner_admin_database_v1.types
5+
:members:

docs/spanner/usage.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Spanner
2323
transaction-api
2424
streamed-api
2525

26+
gapic/v1/admin_database_api
27+
gapic/v1/admin_database_types
28+
2629
API requests are sent to the `Cloud Spanner`_ API via RPC over
2730
HTTP/2. In order to support this, we'll rely on `gRPC`_.
2831

spanner/google/cloud/spanner/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from google.api.core import page_iterator
2828
from google.gax import INITIAL_PAGE
2929
# pylint: disable=line-too-long
30-
from google.cloud.gapic.spanner_admin_database.v1.database_admin_client import ( # noqa
30+
from google.cloud.spanner_admin_database_v1.gapic.database_admin_client import ( # noqa
3131
DatabaseAdminClient)
3232
from google.cloud.gapic.spanner_admin_instance.v1.instance_admin_client import ( # noqa
3333
InstanceAdminClient)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2017, 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+
from __future__ import absolute_import
16+
17+
from google.cloud.spanner_admin_database_v1 import types
18+
from google.cloud.spanner_admin_database_v1.gapic import database_admin_client
19+
from google.cloud.spanner_admin_database_v1.gapic import enums
20+
21+
22+
class DatabaseAdminClient(database_admin_client.DatabaseAdminClient):
23+
__doc__ = database_admin_client.DatabaseAdminClient.__doc__
24+
enums = enums
25+
26+
27+
__all__ = (
28+
'enums',
29+
'types',
30+
'DatabaseAdminClient', )

spanner/google/cloud/spanner_admin_database_v1/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)