Skip to content

Commit 545663e

Browse files
committed
librarian generate with generator changes
1 parent 6d12077 commit 545663e

21 files changed

Lines changed: 221 additions & 152 deletions

File tree

.librarian/state.yaml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,58 @@ libraries:
13401340
remove_regex:
13411341
- packages/google-cloud-dataproc-metastore/
13421342
tag_format: '{id}-v{version}'
1343+
- id: google-cloud-datastore
1344+
version: 2.23.0
1345+
last_generated_commit: ce8678a96c8e1fc0d870d80fcf062e5be2b12877
1346+
apis:
1347+
- path: google/datastore/admin/v1
1348+
service_config: datastore_v1.yaml
1349+
- path: google/datastore/v1
1350+
service_config: datastore_v1.yaml
1351+
source_roots:
1352+
- packages/google-cloud-datastore
1353+
preserve_regex:
1354+
- packages/google-cloud-datastore/CHANGELOG.md
1355+
- docs/CHANGELOG.md
1356+
remove_regex:
1357+
- ^packages/google-cloud-datastore/.coveragerc
1358+
- ^packages/google-cloud-datastore/.flake8
1359+
- ^packages/google-cloud-datastore/.repo-metadata.json
1360+
- ^packages/google-cloud-datastore/LICENSE
1361+
- ^packages/google-cloud-datastore/MANIFEST.in
1362+
- ^packages/google-cloud-datastore/README.rst
1363+
- ^packages/google-cloud-datastore/mypy.ini
1364+
- ^packages/google-cloud-datastore/noxfile.py
1365+
- ^packages/google-cloud-datastore/setup.py
1366+
- ^packages/google-cloud-datastore/docs/conf.py
1367+
- ^packages/google-cloud-datastore/docs/index.rst
1368+
- ^packages/google-cloud-datastore/docs/summary_overview.md
1369+
- ^packages/google-cloud-datastore/docs/README.rst
1370+
- ^packages/google-cloud-datastore/docs/_static/custom.css
1371+
- ^packages/google-cloud-datastore/docs/_templates
1372+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/__init__.py
1373+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/gapic_metadata.json
1374+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/gapic_version.py
1375+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/py.typed
1376+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/services
1377+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/types
1378+
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/__init__.py
1379+
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/gapic_metadata.json
1380+
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/gapic_version.py
1381+
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/py.typed
1382+
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/services
1383+
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/types
1384+
- ^packages/google-cloud-datastore/google/cloud/datastore/__init__.py
1385+
- ^packages/google-cloud-datastore/google/cloud/datastore/gapic_version.py
1386+
- ^packages/google-cloud-datastore/google/cloud/datastore/py.typed
1387+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin/__init__.py
1388+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin/gapic_version.py
1389+
- ^packages/google-cloud-datastore/google/cloud/datastore_admin/py.typed
1390+
- ^packages/google-cloud-datastore/testing
1391+
- ^packages/google-cloud-datastore/tests/__init__.py
1392+
- ^packages/google-cloud-datastore/tests/unit/__init__.py
1393+
- ^packages/google-cloud-datastore/tests/unit/gapic
1394+
tag_format: '{id}-v{version}'
13431395
- id: google-cloud-datastream
13441396
version: 1.17.0
13451397
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
@@ -3758,55 +3810,3 @@ libraries:
37583810
preserve_regex: []
37593811
remove_regex: []
37603812
tag_format: '{id}-v{version}'
3761-
- id: google-cloud-datastore
3762-
version: 2.23.0
3763-
last_generated_commit: a17b84add8318f780fcc8a027815d5fee644b9f7
3764-
apis:
3765-
- path: google/datastore/admin/v1
3766-
service_config: datastore_v1.yaml
3767-
- path: google/datastore/v1
3768-
service_config: datastore_v1.yaml
3769-
source_roots:
3770-
- packages/google-cloud-datastore
3771-
preserve_regex:
3772-
- packages/google-cloud-datastore/CHANGELOG.md
3773-
- docs/CHANGELOG.md
3774-
remove_regex:
3775-
- ^packages/google-cloud-datastore/.coveragerc
3776-
- ^packages/google-cloud-datastore/.flake8
3777-
- ^packages/google-cloud-datastore/.repo-metadata.json
3778-
- ^packages/google-cloud-datastore/LICENSE
3779-
- ^packages/google-cloud-datastore/MANIFEST.in
3780-
- ^packages/google-cloud-datastore/README.rst
3781-
- ^packages/google-cloud-datastore/mypy.ini
3782-
- ^packages/google-cloud-datastore/noxfile.py
3783-
- ^packages/google-cloud-datastore/setup.py
3784-
- ^packages/google-cloud-datastore/docs/conf.py
3785-
- ^packages/google-cloud-datastore/docs/index.rst
3786-
- ^packages/google-cloud-datastore/docs/summary_overview.md
3787-
- ^packages/google-cloud-datastore/docs/README.rst
3788-
- ^packages/google-cloud-datastore/docs/_static/custom.css
3789-
- ^packages/google-cloud-datastore/docs/_templates
3790-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/__init__.py
3791-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/gapic_metadata.json
3792-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/gapic_version.py
3793-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/py.typed
3794-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/services
3795-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin_v1/types
3796-
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/__init__.py
3797-
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/gapic_metadata.json
3798-
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/gapic_version.py
3799-
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/py.typed
3800-
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/services
3801-
- ^packages/google-cloud-datastore/google/cloud/datastore_v1/types
3802-
- ^packages/google-cloud-datastore/google/cloud/datastore/__init__.py
3803-
- ^packages/google-cloud-datastore/google/cloud/datastore/gapic_version.py
3804-
- ^packages/google-cloud-datastore/google/cloud/datastore/py.typed
3805-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin/__init__.py
3806-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin/gapic_version.py
3807-
- ^packages/google-cloud-datastore/google/cloud/datastore_admin/py.typed
3808-
- ^packages/google-cloud-datastore/testing
3809-
- ^packages/google-cloud-datastore/tests/__init__.py
3810-
- ^packages/google-cloud-datastore/tests/unit/__init__.py
3811-
- ^packages/google-cloud-datastore/tests/unit/gapic
3812-
tag_format: '{id}-v{version}'

packages/google-cloud-datastore/.coveragerc

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
1-
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2020 Google LLC
4-
#
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
16-
171
[run]
182
branch = True
3+
194
[report]
20-
fail_under = 100
215
show_missing = True
226
omit =
23-
google/__init__.py
24-
google/cloud/__init__.py
25-
google/cloud/datastore_v1/__init__.py
26-
google/cloud/datastore_admin_v1/__init__.py
27-
*/site-packages/*.py
7+
google/cloud/datastore/__init__.py
8+
google/cloud/datastore/gapic_version.py
289
exclude_lines =
2910
# Re-enable the standard pragma
3011
pragma: NO COVER

packages/google-cloud-datastore/.flake8

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
1919
ignore = E203, E231, E266, E501, W503
2020
exclude =
21-
# Exclude generated code.
22-
**/proto/**
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
2323
**/gapic/**
2424
**/services/**
2525
**/types/**
26+
# Exclude Protobuf gencode
2627
*_pb2.py
2728

2829
# Standard linting exemptions.
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
include README.rst LICENSE
19-
recursive-include google *.json *.proto py.typed
17+
recursive-include google *.py *.pyi *.json *.proto py.typed
2018
recursive-include tests *
2119
global-exclude *.py[co]
2220
global-exclude __pycache__
23-
24-
# Exclude scripts for samples readmegen
25-
prune scripts/readme-gen

packages/google-cloud-datastore/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>

packages/google-cloud-datastore/docs/conf.py

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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.
15-
#
15+
##
1616
# google-cloud-datastore documentation build configuration file
1717
#
1818
# This file is execfile()d with the current directory set to its
@@ -24,9 +24,11 @@
2424
# All configuration values have a default; values that are commented out
2525
# serve to show the default.
2626

27+
import logging
2728
import os
2829
import shlex
2930
import sys
31+
from typing import Any
3032

3133
# If extensions (or modules to document with autodoc) are in another directory,
3234
# add these directories to sys.path here. If the directory is relative to the
@@ -42,7 +44,7 @@
4244
# -- General configuration ------------------------------------------------
4345

4446
# If your documentation needs a minimal Sphinx version, state it here.
45-
needs_sphinx = "1.5.5"
47+
needs_sphinx = "4.5.0"
4648

4749
# Add any Sphinx extension module names here, as strings. They can be
4850
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -81,7 +83,7 @@
8183

8284
# General information about the project.
8385
project = "google-cloud-datastore"
84-
copyright = "2019, Google"
86+
copyright = "2025, Google, LLC"
8587
author = "Google APIs"
8688

8789
# The version info for the project you're documenting, acts as replacement for
@@ -266,13 +268,13 @@
266268

267269
latex_elements = {
268270
# The paper size ('letterpaper' or 'a4paper').
269-
#'papersize': 'letterpaper',
271+
# 'papersize': 'letterpaper',
270272
# The font size ('10pt', '11pt' or '12pt').
271-
#'pointsize': '10pt',
273+
# 'pointsize': '10pt',
272274
# Additional stuff for the LaTeX preamble.
273-
#'preamble': '',
275+
# 'preamble': '',
274276
# Latex figure (float) alignment
275-
#'figure_align': 'htbp',
277+
# 'figure_align': 'htbp',
276278
}
277279

278280
# Grouping the document tree into LaTeX files. List of tuples
@@ -382,3 +384,34 @@
382384
napoleon_use_ivar = False
383385
napoleon_use_param = True
384386
napoleon_use_rtype = True
387+
388+
389+
# Setup for sphinx behaviors such as warning filters.
390+
class UnexpectedUnindentFilter(logging.Filter):
391+
"""Filter out warnings about unexpected unindentation following bullet lists."""
392+
393+
def filter(self, record: logging.LogRecord) -> bool:
394+
"""Filter the log record.
395+
396+
Args:
397+
record (logging.LogRecord): The log record.
398+
399+
Returns:
400+
bool: False to suppress the warning, True to allow it.
401+
"""
402+
msg = record.getMessage()
403+
if "Bullet list ends without a blank line" in msg:
404+
return False
405+
return True
406+
407+
408+
def setup(app: Any) -> None:
409+
"""Setup the Sphinx application.
410+
411+
Args:
412+
app (Any): The Sphinx application.
413+
"""
414+
# Sphinx's logger is hierarchical. Adding a filter to the
415+
# root 'sphinx' logger will catch warnings from all sub-loggers.
416+
logger = logging.getLogger("sphinx")
417+
logger.addFilter(UnexpectedUnindentFilter())

packages/google-cloud-datastore/google/cloud/datastore/gapic_version.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Copyright 2020 Google LLC
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.
@@ -11,5 +12,5 @@
1112
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213
# See the License for the specific language governing permissions and
1314
# limitations under the License.
14-
15+
#
1516
__version__ = "2.23.0" # {x-release-please-version}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Marker file for PEP 561.
2-
# The google-cloud-datastore package uses inline types.
1+
# Marker file for PEP 561.
2+
# The google-cloud-datastore package uses inline types.

packages/google-cloud-datastore/google/cloud/datastore_admin_v1/services/datastore_admin/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,9 @@ def __init__(
655655

656656
universe_domain_opt = getattr(self._client_options, "universe_domain", None)
657657

658-
(
659-
self._use_client_cert,
660-
self._use_mtls_endpoint,
661-
self._universe_domain_env,
662-
) = DatastoreAdminClient._read_environment_variables()
658+
self._use_client_cert, self._use_mtls_endpoint, self._universe_domain_env = (
659+
DatastoreAdminClient._read_environment_variables()
660+
)
663661
self._client_cert_source = DatastoreAdminClient._get_client_cert_source(
664662
self._client_options.client_cert_source, self._use_client_cert
665663
)

packages/google-cloud-datastore/google/cloud/datastore_v1/services/datastore/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,11 +611,9 @@ def __init__(
611611

612612
universe_domain_opt = getattr(self._client_options, "universe_domain", None)
613613

614-
(
615-
self._use_client_cert,
616-
self._use_mtls_endpoint,
617-
self._universe_domain_env,
618-
) = DatastoreClient._read_environment_variables()
614+
self._use_client_cert, self._use_mtls_endpoint, self._universe_domain_env = (
615+
DatastoreClient._read_environment_variables()
616+
)
619617
self._client_cert_source = DatastoreClient._get_client_cert_source(
620618
self._client_options.client_cert_source, self._use_client_cert
621619
)

0 commit comments

Comments
 (0)