Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 9b1e80e

Browse files
Merge branch 'main' into fix_readme
2 parents 0ee0234 + 1578a2a commit 9b1e80e

File tree

63 files changed

+204
-18
lines changed

Some content is hidden

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

63 files changed

+204
-18
lines changed

gapic/ads-templates/setup.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = [
3434
"googleapis-common-protos >= 1.53.0",
3535
"grpcio >= 1.10.0",
3636
"proto-plus >= 1.22.3, <2.0.0",
37-
"protobuf >= 4.25.8, <7.0.0",
37+
"protobuf >= 4.25.8, < 8.0.0",
3838
{% if api.requires_package(('google', 'iam', 'v1')) %}
3939
"grpc-google-iam-v1",
4040
{% endif %}

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ class {{ service.name }}Transport(abc.ABC):
103103
your own client library.
104104
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
105105
be used for service account credentials.
106+
api_audience (Optional[str]): The intended audience for the API calls
107+
to the service that will be set when using certain 3rd party
108+
authentication flows. Audience is typically a resource identifier.
109+
If not set, the host value will be used as a default.
106110
"""
107111
{% if service.any_extended_operations_methods %}
108112
self._extended_operations_services: Dict[str, Any] = {}

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ class {{ service.name }}GrpcTransport({{ service.name }}Transport):
169169
your own client library.
170170
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
171171
be used for service account credentials.
172+
api_audience (Optional[str]): The intended audience for the API calls
173+
to the service that will be set when using certain 3rd party
174+
authentication flows. Audience is typically a resource identifier.
175+
If not set, the host value will be used as a default.
172176

173177
Raises:
174178
google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ class {{ service.grpc_asyncio_transport_name }}({{ service.name }}Transport):
218218
your own client library.
219219
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
220220
be used for service account credentials.
221+
api_audience (Optional[str]): The intended audience for the API calls
222+
to the service that will be set when using certain 3rd party
223+
authentication flows. Audience is typically a resource identifier.
224+
If not set, the host value will be used as a default.
221225

222226
Raises:
223227
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ class {{service.name}}RestTransport(_Base{{ service.name }}RestTransport):
135135
url_scheme: the protocol scheme for the API endpoint. Normally
136136
"https", but for testing or local servers,
137137
"http" can be specified.
138+
interceptor (Optional[{{ service.name }}RestInterceptor]): Interceptor used
139+
to manipulate requests, request metadata, and responses.
140+
api_audience (Optional[str]): The intended audience for the API calls
141+
to the service that will be set when using certain 3rd party
142+
authentication flows. Audience is typically a resource identifier.
143+
If not set, the host value will be used as a default.
138144
"""
139145
# Run the base constructor
140146
# TODO(yon-mg): resolve other ctor params i.e. scopes, quota, etc.

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest_asyncio.py.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ class Async{{service.name}}RestTransport(_Base{{ service.name }}RestTransport):
134134
url_scheme (str): the protocol scheme for the API endpoint. Normally
135135
"https", but for testing or local servers,
136136
"http" can be specified.
137+
interceptor (Optional[Async{{ service.name }}RestInterceptor]): Interceptor used
138+
to manipulate requests, request metadata, and responses.
137139
"""
138140
# Run the base constructor
139141
super().__init__(

gapic/templates/noxfile.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def core_deps_from_source(session, protobuf_implementation):
613613
core_dependencies_from_source = [
614614
"googleapis-common-protos @ git+https://github.com/googleapis/google-cloud-python#egg=googleapis-common-protos&subdirectory=packages/googleapis-common-protos",
615615
"google-api-core @ git+https://github.com/googleapis/google-cloud-python#egg=google-api-core&subdirectory=packages/google-api-core",
616-
"google-auth @ git+https://github.com/googleapis/google-auth-library-python.git",
616+
"google-auth @ git+https://github.com/googleapis/google-cloud-python#egg=google-auth&subdirectory=packages/google-auth",
617617
"grpc-google-iam-v1 @ git+https://github.com/googleapis/google-cloud-python#egg=grpc-google-iam-v1&subdirectory=packages/grpc-google-iam-v1",
618618
"proto-plus @ git+https://github.com/googleapis/google-cloud-python#egg=proto-plus&subdirectory=packages/proto-plus",
619619
]

gapic/templates/setup.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies = [
4242
"proto-plus >= 1.22.3, <2.0.0",
4343
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
4444
{# Explicitly exclude protobuf versions mentioned in https://cloud.google.com/support/bulletins#GCP-2022-019 #}
45-
"protobuf >= 4.25.8, <7.0.0",
45+
"protobuf >= 4.25.8, < 8.0.0",
4646
{% for package_tuple, package_info in pypi_packages.items() %}
4747
{# Quick check to make sure `package_info.package_name` is not the package being generated so we don't circularly include this package in its own constraints file. #}
4848
{% if api.naming.warehouse_package_name != package_info.package_name %}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.map
3636
# https://jinja.palletsprojects.com/en/2.11.x/changelog/#version-2-11-0
3737
"jinja2 >= 2.11",
38-
"protobuf >= 4.25.8, <7.0.0",
38+
"protobuf >= 4.25.8, < 8.0.0",
3939
"pypandoc >= 1.4",
4040
"PyYAML >= 5.1.1",
4141
"grpc-google-iam-v1 >= 0.14.0, < 1.0.0",

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ def __init__(
8383
your own client library.
8484
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8585
be used for service account credentials.
86+
api_audience (Optional[str]): The intended audience for the API calls
87+
to the service that will be set when using certain 3rd party
88+
authentication flows. Audience is typically a resource identifier.
89+
If not set, the host value will be used as a default.
8690
"""
8791

8892
# Save the scopes.

0 commit comments

Comments
 (0)