Skip to content

Commit e08260f

Browse files
feat: Add Spanner location API (#1457)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 833474957 Source-Link: googleapis/googleapis@7418c8b Source-Link: googleapis/googleapis-gen@f969a4a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjk2OWE0YTVhZDk5N2JhZjE4OWMzOTkzMTYyOTdkNjBhODE5ODg1YiJ9 BEGIN_NESTED_COMMIT feat: Add Send and Ack mutations for Queues feat: Add QueryAdvisorResult for query plan docs: Update description for the BatchCreateSessionsRequest and Session docs: Update description for the IsolationLevel PiperOrigin-RevId: 832425466 Source-Link: googleapis/googleapis@0eeb1be Source-Link: googleapis/googleapis-gen@bae4179 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmFlNDE3OTI1MjAzZTY4YzgwNmQ5ZjZiZmUzYzIwYWIzY2JmNWQ4NiJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d37fb80 commit e08260f

File tree

13 files changed

+938
-46
lines changed

13 files changed

+938
-46
lines changed

docs/_templates/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
{% endblock %}
2121

2222
<div class="body" role="main">
23-
<div class="admonition" id="python2-eol">
24-
As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
23+
<div class="admonition" id="python2-eol">
24+
As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
2525
Library versions released prior to that date will continue to be available. For more information please
2626
visit <a href="https://cloud.google.com/python/docs/python2-sunset/">Python 2 support on Google Cloud</a>.
2727
</div>

docs/conf.py

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
66
# You may obtain a copy of the License at
77
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
99
#
1010
# Unless required by applicable law or agreed to in writing, software
1111
# distributed under the License is distributed on an "AS IS" BASIS,
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
# google-cloud-spanner documentation build configuration file
16+
#
17+
# google-cloud-spanner-admin-database documentation build configuration file
1718
#
1819
# This file is execfile()d with the current directory set to its
1920
# containing dir.
@@ -42,7 +43,7 @@
4243
# -- General configuration ------------------------------------------------
4344

4445
# If your documentation needs a minimal Sphinx version, state it here.
45-
needs_sphinx = "1.5.5"
46+
needs_sphinx = "4.5.0"
4647

4748
# Add any Sphinx extension module names here, as strings. They can be
4849
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -80,8 +81,8 @@
8081
root_doc = "index"
8182

8283
# General information about the project.
83-
project = "google-cloud-spanner"
84-
copyright = "2019, Google"
84+
project = "google-cloud-spanner-admin-database"
85+
copyright = "2025, Google, LLC"
8586
author = "Google APIs"
8687

8788
# The version info for the project you're documenting, acts as replacement for
@@ -154,9 +155,9 @@
154155
# further. For a list of options available for each theme, see the
155156
# documentation.
156157
html_theme_options = {
157-
"description": "Google Cloud Client Libraries for google-cloud-spanner",
158+
"description": "Google Cloud Client Libraries for google-cloud-spanner-admin-database",
158159
"github_user": "googleapis",
159-
"github_repo": "python-spanner",
160+
"github_repo": "google-cloud-python",
160161
"github_banner": True,
161162
"font_family": "'Roboto', Georgia, sans",
162163
"head_font_family": "'Roboto', Georgia, serif",
@@ -248,7 +249,7 @@
248249
# html_search_scorer = 'scorer.js'
249250

250251
# Output file base name for HTML help builder.
251-
htmlhelp_basename = "google-cloud-spanner-doc"
252+
htmlhelp_basename = "google-cloud-spanner-admin-database-doc"
252253

253254
# -- Options for warnings ------------------------------------------------------
254255

@@ -266,13 +267,13 @@
266267

267268
latex_elements = {
268269
# The paper size ('letterpaper' or 'a4paper').
269-
#'papersize': 'letterpaper',
270+
# 'papersize': 'letterpaper',
270271
# The font size ('10pt', '11pt' or '12pt').
271-
#'pointsize': '10pt',
272+
# 'pointsize': '10pt',
272273
# Additional stuff for the LaTeX preamble.
273-
#'preamble': '',
274+
# 'preamble': '',
274275
# Latex figure (float) alignment
275-
#'figure_align': 'htbp',
276+
# 'figure_align': 'htbp',
276277
}
277278

278279
# Grouping the document tree into LaTeX files. List of tuples
@@ -281,8 +282,8 @@
281282
latex_documents = [
282283
(
283284
root_doc,
284-
"google-cloud-spanner.tex",
285-
"google-cloud-spanner Documentation",
285+
"google-cloud-spanner-admin-database.tex",
286+
"google-cloud-spanner-admin-database Documentation",
286287
author,
287288
"manual",
288289
)
@@ -316,8 +317,8 @@
316317
man_pages = [
317318
(
318319
root_doc,
319-
"google-cloud-spanner",
320-
"google-cloud-spanner Documentation",
320+
"google-cloud-spanner-admin-database",
321+
"google-cloud-spanner-admin-database Documentation",
321322
[author],
322323
1,
323324
)
@@ -335,11 +336,11 @@
335336
texinfo_documents = [
336337
(
337338
root_doc,
338-
"google-cloud-spanner",
339-
"google-cloud-spanner Documentation",
339+
"google-cloud-spanner-admin-database",
340+
"google-cloud-spanner-admin-database Documentation",
340341
author,
341-
"google-cloud-spanner",
342-
"google-cloud-spanner Library",
342+
"google-cloud-spanner-admin-database",
343+
"google-cloud-spanner-admin-database Library",
343344
"APIs",
344345
)
345346
]

google/cloud/spanner_v1/services/spanner/async_client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
from google.cloud.spanner_v1.services.spanner import pagers
5151
from google.cloud.spanner_v1.types import commit_response
52+
from google.cloud.spanner_v1.types import location
5253
from google.cloud.spanner_v1.types import mutation
5354
from google.cloud.spanner_v1.types import result_set
5455
from google.cloud.spanner_v1.types import spanner
@@ -477,10 +478,11 @@ async def sample_batch_create_sessions():
477478
should not be set.
478479
session_count (:class:`int`):
479480
Required. The number of sessions to be created in this
480-
batch call. The API can return fewer than the requested
481-
number of sessions. If a specific number of sessions are
482-
desired, the client can make additional calls to
483-
``BatchCreateSessions`` (adjusting
481+
batch call. At least one session is created. The API can
482+
return fewer than the requested number of sessions. If a
483+
specific number of sessions are desired, the client can
484+
make additional calls to ``BatchCreateSessions``
485+
(adjusting
484486
[session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count]
485487
as necessary).
486488

google/cloud/spanner_v1/services/spanner/client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
from google.cloud.spanner_v1.services.spanner import pagers
6666
from google.cloud.spanner_v1.types import commit_response
67+
from google.cloud.spanner_v1.types import location
6768
from google.cloud.spanner_v1.types import mutation
6869
from google.cloud.spanner_v1.types import result_set
6970
from google.cloud.spanner_v1.types import spanner
@@ -922,10 +923,11 @@ def sample_batch_create_sessions():
922923
should not be set.
923924
session_count (int):
924925
Required. The number of sessions to be created in this
925-
batch call. The API can return fewer than the requested
926-
number of sessions. If a specific number of sessions are
927-
desired, the client can make additional calls to
928-
``BatchCreateSessions`` (adjusting
926+
batch call. At least one session is created. The API can
927+
return fewer than the requested number of sessions. If a
928+
specific number of sessions are desired, the client can
929+
make additional calls to ``BatchCreateSessions``
930+
(adjusting
929931
[session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count]
930932
as necessary).
931933

google/cloud/spanner_v1/types/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,21 @@
2323
KeyRange,
2424
KeySet,
2525
)
26+
from .location import (
27+
CacheUpdate,
28+
Group,
29+
KeyRecipe,
30+
Range,
31+
RecipeList,
32+
RoutingHint,
33+
Tablet,
34+
)
2635
from .mutation import (
2736
Mutation,
2837
)
2938
from .query_plan import (
3039
PlanNode,
40+
QueryAdvisorResult,
3141
QueryPlan,
3242
)
3343
from .result_set import (
@@ -80,8 +90,16 @@
8090
"CommitResponse",
8191
"KeyRange",
8292
"KeySet",
93+
"CacheUpdate",
94+
"Group",
95+
"KeyRecipe",
96+
"Range",
97+
"RecipeList",
98+
"RoutingHint",
99+
"Tablet",
83100
"Mutation",
84101
"PlanNode",
102+
"QueryAdvisorResult",
85103
"QueryPlan",
86104
"PartialResultSet",
87105
"ResultSet",

0 commit comments

Comments
 (0)