Skip to content

Commit 293ecda

Browse files
chore: Update gapic-generator-python to v1.17.1 (#1090)
* chore: Update gapic-generator-python to v1.17.0 PiperOrigin-RevId: 627075268 Source-Link: googleapis/googleapis@b0a5b9d Source-Link: googleapis/googleapis-gen@56b44dc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTZiNDRkY2EwY2VlYTNhZDJhZmU5Y2U0YTlhZWFkZjliZGYxYjQ0NSJ9 chore: Update gapic-generator-python to v1.17.0 PiperOrigin-RevId: 626992299 Source-Link: googleapis/googleapis@e495ff5 Source-Link: googleapis/googleapis-gen@2463c3c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ2M2MzYzI3MTEwYTkyZDFmYWIxNzUxMDllZjk0YmZlNTk2NzE2OCJ9 feat(spanner): adding `EXPECTED_FULFILLMENT_PERIOD` to the indicate instance creation times (with `FULFILLMENT_PERIOD_NORMAL` or `FULFILLMENT_PERIOD_EXTENDED` ENUM) with the extended instance creation time triggered by On-Demand Capacity Feature PiperOrigin-RevId: 621488048 Source-Link: googleapis/googleapis@0aa0992 Source-Link: googleapis/googleapis-gen@b8ad4c7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjhhZDRjNzNhNWMwNWZlZDhiY2ZkZGI5MzEzMjY5OTZjMzQ0MTc5MSJ9 chore: Update gapic-generator-python to v1.16.1 PiperOrigin-RevId: 618243632 Source-Link: googleapis/googleapis@078a38b Source-Link: googleapis/googleapis-gen@7af768c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2FmNzY4YzNmOGNlNTg5OTQ0ODIzNTBmNzQwMTE3MzMyOTk1MGEzMSJ9 feat: Add include_recaptcha_script for as a new action in firewall policies PiperOrigin-RevId: 612851792 Source-Link: googleapis/googleapis@49ea2c0 Source-Link: googleapis/googleapis-gen@460fdcb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDYwZmRjYmJiZTAwZjM1YjFjNTkxYjFmM2VmMGM3N2ViZDNjZTI3NyJ9 fix(deps): Exclude google-auth 2.24.0 and 2.25.0 chore: Update gapic-generator-python to v1.14.4 PiperOrigin-RevId: 611561820 Source-Link: googleapis/googleapis@87ef1fe Source-Link: googleapis/googleapis-gen@1973161 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTk3MzE2MTM3NTk0YWFmYWQ5NGRlYTMxMjI2NTI4ZmJjYzM5MzEwYyJ9 feat: Add instance partition support to spanner instance proto PiperOrigin-RevId: 611127452 Source-Link: googleapis/googleapis@618d47c Source-Link: googleapis/googleapis-gen@92d8555 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTJkODU1NTg4ODI4NDMwZThiNDI4ZWQ3ODIxOWUyM2VlNjY2ZGE3OCJ9 feat: Update TransactionOptions to include new option exclude_txn_from_change_streams PiperOrigin-RevId: 607807587 Source-Link: googleapis/googleapis@d8af2d6 Source-Link: googleapis/googleapis-gen@601de71 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjAxZGU3MTdmMWUzNDJmZWFkYTdlMDFmNWRhNTI1NDY1YTU4OTBkOSJ9 fix(deps): Require `google-api-core>=1.34.1` fix: Resolve issue with missing import for certain enums in `**/types/…` PiperOrigin-RevId: 607041732 Source-Link: googleapis/googleapis@b453267 Source-Link: googleapis/googleapis-gen@cd79641 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2Q3OTY0MTZmMGY1NGNiMjJiMmM0NGZiMmQ0ODY5NjBlNjkzYTM0NiJ9 feat(spanner): add field for multiplexed session in spanner.proto docs: update comments PiperOrigin-RevId: 607015598 Source-Link: googleapis/googleapis@8e8a37d Source-Link: googleapis/googleapis-gen@0b51730 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGI1MTczMDhkY2MzOTBkMGI4MjFmOGE1ZDk4MmNiY2E5ZTU2NDAxMCJ9 fix(diregapic): s/bazel/bazelisk/ in DIREGAPIC build GitHub action PiperOrigin-RevId: 604714585 Source-Link: googleapis/googleapis@e4dce13 Source-Link: googleapis/googleapis-gen@4036f78 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 fix: Resolve AttributeError 'Credentials' object has no attribute 'universe_domain' fix: Add google-auth as a direct dependency fix: Add staticmethod decorator to methods added in v1.14.0 chore: Update gapic-generator-python to v1.14.1 PiperOrigin-RevId: 603728206 Source-Link: googleapis/googleapis@9063da8 Source-Link: googleapis/googleapis-gen@891c67d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODkxYzY3ZDBhODU1YjA4MDg1ZWIzMDFkYWJiMTQwNjRlZjRiMmM2ZCJ9 feat: Allow users to explicitly configure universe domain chore: Update gapic-generator-python to v1.14.0 PiperOrigin-RevId: 603108274 Source-Link: googleapis/googleapis@3d83e36 Source-Link: googleapis/googleapis-gen@baf5e9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmFmNWU5YmJiMTRhNzY4YjJiNGM5ZWFlOWZlYjc4ZjE4ZjE3NTdmYSJ9 docs: update the comment regarding eligible SQL shapes for PartitionQuery PiperOrigin-RevId: 602806739 Source-Link: googleapis/googleapis@20b095b Source-Link: googleapis/googleapis-gen@fc8a8ea Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmM4YThlYTMwMjljNTkwZDI3ZmNiZjM2YWQzMWVmN2E4MjJmNDBmNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add `RESOURCE_EXHAUSTED` to the list of retryable error codes PiperOrigin-RevId: 628281023 Source-Link: googleapis/googleapis@60536a2 Source-Link: googleapis/googleapis-gen@c5cfd5b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzVjZmQ1Yjk1NmY5ZWFkZmY1NDA5NmM5ZjFjOGE1N2FiMDFkYjI5NCJ9 * chore: Update gapic-generator-python to v1.17.1 PiperOrigin-RevId: 629071173 Source-Link: googleapis/googleapis@4afa392 Source-Link: googleapis/googleapis-gen@16dbbb4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix(spanner): remove mock credentials --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Sri Harsha CH <sriharshach@google.com>
1 parent 5474707 commit 293ecda

File tree

178 files changed

+26659
-4245
lines changed

Some content is hidden

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

178 files changed

+26659
-4245
lines changed

google/cloud/spanner_admin_database_v1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.

google/cloud/spanner_admin_database_v1/services/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.

google/cloud/spanner_admin_database_v1/services/database_admin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.

google/cloud/spanner_admin_database_v1/services/database_admin/async_client.py

Lines changed: 313 additions & 330 deletions
Large diffs are not rendered by default.

google/cloud/spanner_admin_database_v1/services/database_admin/client.py

Lines changed: 426 additions & 154 deletions
Large diffs are not rendered by default.

google/cloud/spanner_admin_database_v1/services/database_admin/pagers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.

google/cloud/spanner_admin_database_v1/services/database_admin/transports/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.

google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.
@@ -67,7 +67,7 @@ def __init__(
6767
6868
Args:
6969
host (Optional[str]):
70-
The hostname to connect to.
70+
The hostname to connect to (default: 'spanner.googleapis.com').
7171
credentials (Optional[google.auth.credentials.Credentials]): The
7272
authorization credentials to attach to requests. These
7373
credentials identify the application to the service; if none
@@ -130,6 +130,10 @@ def __init__(
130130
host += ":443"
131131
self._host = host
132132

133+
@property
134+
def host(self):
135+
return self._host
136+
133137
def _prep_wrapped_messages(self, client_info):
134138
# Precompute the wrapped methods.
135139
self._wrapped_methods = {

google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc.py

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 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.
@@ -64,7 +64,7 @@ def __init__(
6464
credentials: Optional[ga_credentials.Credentials] = None,
6565
credentials_file: Optional[str] = None,
6666
scopes: Optional[Sequence[str]] = None,
67-
channel: Optional[grpc.Channel] = None,
67+
channel: Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]] = None,
6868
api_mtls_endpoint: Optional[str] = None,
6969
client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
7070
ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
@@ -78,20 +78,23 @@ def __init__(
7878
7979
Args:
8080
host (Optional[str]):
81-
The hostname to connect to.
81+
The hostname to connect to (default: 'spanner.googleapis.com').
8282
credentials (Optional[google.auth.credentials.Credentials]): The
8383
authorization credentials to attach to requests. These
8484
credentials identify the application to the service; if none
8585
are specified, the client will attempt to ascertain the
8686
credentials from the environment.
87-
This argument is ignored if ``channel`` is provided.
87+
This argument is ignored if a ``channel`` instance is provided.
8888
credentials_file (Optional[str]): A file with credentials that can
8989
be loaded with :func:`google.auth.load_credentials_from_file`.
90-
This argument is ignored if ``channel`` is provided.
90+
This argument is ignored if a ``channel`` instance is provided.
9191
scopes (Optional(Sequence[str])): A list of scopes. This argument is
92-
ignored if ``channel`` is provided.
93-
channel (Optional[grpc.Channel]): A ``Channel`` instance through
94-
which to make calls.
92+
ignored if a ``channel`` instance is provided.
93+
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
94+
A ``Channel`` instance through which to make calls, or a Callable
95+
that constructs and returns one. If set to None, ``self.create_channel``
96+
is used to create the channel. If a Callable is given, it will be called
97+
with the same arguments as used in ``self.create_channel``.
9598
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
9699
If provided, it overrides the ``host`` argument and tries to create
97100
a mutual TLS channel with client SSL credentials from
@@ -101,11 +104,11 @@ def __init__(
101104
private key bytes, both in PEM format. It is ignored if
102105
``api_mtls_endpoint`` is None.
103106
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
104-
for the grpc channel. It is ignored if ``channel`` is provided.
107+
for the grpc channel. It is ignored if a ``channel`` instance is provided.
105108
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
106109
A callback to provide client certificate bytes and private key bytes,
107110
both in PEM format. It is used to configure a mutual TLS channel. It is
108-
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
111+
ignored if a ``channel`` instance or ``ssl_channel_credentials`` is provided.
109112
quota_project_id (Optional[str]): An optional project to use for billing
110113
and quota.
111114
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
@@ -132,7 +135,7 @@ def __init__(
132135
if client_cert_source:
133136
warnings.warn("client_cert_source is deprecated", DeprecationWarning)
134137

135-
if channel:
138+
if isinstance(channel, grpc.Channel):
136139
# Ignore credentials if a channel was passed.
137140
credentials = False
138141
# If a channel was explicitly provided, set it.
@@ -173,7 +176,9 @@ def __init__(
173176
)
174177

175178
if not self._grpc_channel:
176-
self._grpc_channel = type(self).create_channel(
179+
# initialize with the provided callable or the default channel
180+
channel_init = channel or type(self).create_channel
181+
self._grpc_channel = channel_init(
177182
self._host,
178183
# use the credentials which are saved
179184
credentials=self._credentials,

0 commit comments

Comments
 (0)