Skip to content

Commit d806b08

Browse files
authored
Merge branch 'main' into add-unary-stream-logging
2 parents b9f185e + dc6d4f7 commit d806b08

File tree

599 files changed

+4314
-3948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

599 files changed

+4314
-3948
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:04c35dc5f49f0f503a306397d6d043685f8d2bb822ab515818c4208d7fb2db3a
17-
# created: 2025-01-16T15:24:11.364245182Z
16+
digest: sha256:5581906b957284864632cde4e9c51d1cc66b0094990b27e689132fe5cd036046
17+
# created: 2025-03-05

.kokoro/build.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515

1616
set -eo pipefail
1717

18+
CURRENT_DIR=$(dirname "${BASH_SOURCE[0]}")
19+
1820
if [[ -z "${PROJECT_ROOT:-}" ]]; then
19-
PROJECT_ROOT="github/gapic-generator-python"
21+
PROJECT_ROOT=$(realpath "${CURRENT_DIR}/..")
2022
fi
2123

22-
cd "${PROJECT_ROOT}"
24+
pushd "${PROJECT_ROOT}"
2325

2426
# Disable buffering, so that the logs stream through.
2527
export PYTHONUNBUFFERED=1
@@ -28,10 +30,16 @@ export PYTHONUNBUFFERED=1
2830
env | grep KOKORO
2931

3032
# Setup service account credentials.
31-
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
33+
if [[ -f "${KOKORO_GFILE_DIR}/service-account.json" ]]
34+
then
35+
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
36+
fi
3237

3338
# Setup project id.
34-
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
39+
if [[ -f "${KOKORO_GFILE_DIR}/project-id.json" ]]
40+
then
41+
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
42+
fi
3543

3644
# If this is a continuous build, send the test log to the FlakyBot.
3745
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
@@ -46,7 +54,7 @@ fi
4654
# If NOX_SESSION is set, it only runs the specified session,
4755
# otherwise run all the sessions.
4856
if [[ -n "${NOX_SESSION:-}" ]]; then
49-
python3 -m nox -s ${NOX_SESSION:-}
57+
python3 -m nox -s ${NOX_SESSION:-}
5058
else
51-
python3 -m nox
59+
python3 -m nox
5260
fi

.kokoro/docker/docs/Dockerfile

Lines changed: 0 additions & 89 deletions
This file was deleted.

.kokoro/docker/docs/requirements.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

.kokoro/docker/docs/requirements.txt

Lines changed: 0 additions & 297 deletions
This file was deleted.

.kokoro/docs/common.cfg

Lines changed: 0 additions & 67 deletions
This file was deleted.

.kokoro/docs/docs-presubmit.cfg

Lines changed: 0 additions & 28 deletions
This file was deleted.

.kokoro/docs/docs.cfg

Lines changed: 0 additions & 1 deletion
This file was deleted.

.kokoro/publish-docs.sh

Lines changed: 0 additions & 45 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,41 @@
11
# Changelog
22

33

4+
## [1.23.6](https://github.com/googleapis/gapic-generator-python/compare/v1.23.5...v1.23.6) (2025-03-17)
5+
6+
7+
### Documentation
8+
9+
* Update copyright year ([#2363](https://github.com/googleapis/gapic-generator-python/issues/2363)) ([745ce7a](https://github.com/googleapis/gapic-generator-python/commit/745ce7af2978eff293e9abbad9a622fdfe7c782a))
10+
11+
## [1.23.5](https://github.com/googleapis/gapic-generator-python/compare/v1.23.4...v1.23.5) (2025-03-06)
12+
13+
14+
### Bug Fixes
15+
16+
* Allow Protobuf 6.x ([#2352](https://github.com/googleapis/gapic-generator-python/issues/2352)) ([bb2d557](https://github.com/googleapis/gapic-generator-python/commit/bb2d557bf266599669c15efd81d8e900d48e7c3e))
17+
18+
## [1.23.4](https://github.com/googleapis/gapic-generator-python/compare/v1.23.3...v1.23.4) (2025-03-04)
19+
20+
21+
### Bug Fixes
22+
23+
* Allow proto files to be included in the output of py_gapic_assembly_pkg ([#2349](https://github.com/googleapis/gapic-generator-python/issues/2349)) ([b301bef](https://github.com/googleapis/gapic-generator-python/commit/b301befcda29ae1f9c204e0836656c03c2d74a2a))
24+
25+
## [1.23.3](https://github.com/googleapis/gapic-generator-python/compare/v1.23.2...v1.23.3) (2025-03-03)
26+
27+
28+
### Bug Fixes
29+
30+
* Resolve issue where pre-release versions of dependencies are installed ([#2347](https://github.com/googleapis/gapic-generator-python/issues/2347)) ([aea00b2](https://github.com/googleapis/gapic-generator-python/commit/aea00b2137ac926bdc527eb9c4666eb8b1ca70e1))
31+
32+
## [1.23.2](https://github.com/googleapis/gapic-generator-python/compare/v1.23.1...v1.23.2) (2025-02-28)
33+
34+
35+
### Bug Fixes
36+
37+
* Resolve rare issue where ValueError is not raised when both request and flattened param are set ([#2258](https://github.com/googleapis/gapic-generator-python/issues/2258)) ([4ecfbeb](https://github.com/googleapis/gapic-generator-python/commit/4ecfbeb7028dc1856692f5cda95a8767e4cb69e4))
38+
439
## [1.23.1](https://github.com/googleapis/gapic-generator-python/compare/v1.23.0...v1.23.1) (2025-02-14)
540

641

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Documentation
9797

9898
See the `documentation`_.
9999

100-
.. _documentation: https://googleapis.dev/python/gapic-generator-python/latest
100+
.. _documentation: https://googleapis.dev/python/gapic-generator/latest/
101101

102102
.. |release level| image:: https://img.shields.io/badge/support-stable-gold.svg
103103
:target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability

gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
345345
{% if method.operation_service %}{# Extended Operations LRO #}
346346
def {{ method.name|snake_case }}_unary(self,
347347
{% else %}
348-
def {{ method.safe_name|snake_case }}(self,
348+
def {{ method.client_method_name|snake_case }}(self,
349349
{% endif %}{# Extended Operations LRO #}
350350
{% if not method.client_streaming %}
351351
request: Optional[Union[{{ method.input.ident }}, dict]] = None,
@@ -410,7 +410,8 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
410410
{% if method.flattened_fields %}
411411
# Quick check: If we got a request object, we should *not* have
412412
# gotten any keyword arguments that map to the request.
413-
has_flattened_params = any([{{ method.flattened_fields.values()|join(", ", attribute="name") }}])
413+
flattened_params = [{{ method.flattened_fields.values()|join(", ", attribute="name") }}]
414+
has_flattened_params = len([param for param in flattened_params if param is not None]) > 0
414415
if request is not None and has_flattened_params:
415416
raise ValueError('If the `request` argument is set, then none of '
416417
'the individual field arguments should be set.')

gapic/ads-templates/_license.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

gapic/ads-templates/setup.py.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ else:
2929
release_status = "Development Status :: 5 - Production/Stable"
3030

3131
dependencies = [
32-
"google-api-core[grpc] >= 2.10.0, < 3.0.0dev",
33-
"google-auth >= 2.14.1, <3.0.0dev",
32+
"google-api-core[grpc] >= 2.10.0, < 3.0.0",
33+
"google-auth >= 2.14.1, <3.0.0",
3434
"googleapis-common-protos >= 1.53.0",
3535
"grpcio >= 1.10.0",
36-
"proto-plus >= 1.22.3, <2.0.0dev",
36+
"proto-plus >= 1.22.3, <2.0.0",
3737
{% if api.requires_package(('google', 'iam', 'v1')) %}
3838
"grpc-google-iam-v1",
3939
{% endif %}

0 commit comments

Comments
 (0)