Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-google-cloud-vpc-access for
openSUSE:Factory checked in at 2026-08-09 21:33:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-vpc-access (Old)
and /work/SRC/openSUSE:Factory/.python-google-cloud-vpc-access.new.16738
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-vpc-access"
Sun Aug 9 21:33:53 2026 rev:11 rq:1370068 version:1.17.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-cloud-vpc-access/python-google-cloud-vpc-access.changes
2026-03-28 20:15:47.327459440 +0100
+++
/work/SRC/openSUSE:Factory/.python-google-cloud-vpc-access.new.16738/python-google-cloud-vpc-access.changes
2026-08-09 21:35:40.202857709 +0200
@@ -1,0 +2,7 @@
+Thu Aug 6 07:30:45 UTC 2026 - John Paul Adrian Glaubitz
<[email protected]>
+
+- Update to 1.17.0
+ * regenerate google-cloud-[t-w] packages (#17076)
+- Update BuildRequires and Requires from setup.py
+
+-------------------------------------------------------------------
Old:
----
google_cloud_vpc_access-1.16.0.tar.gz
New:
----
google_cloud_vpc_access-1.17.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-cloud-vpc-access.spec ++++++
--- /var/tmp/diff_new_pack.u9H191/_old 2026-08-09 21:35:40.666873466 +0200
+++ /var/tmp/diff_new_pack.u9H191/_new 2026-08-09 21:35:40.670873602 +0200
@@ -18,20 +18,20 @@
%{?sle15_python_module_pythons}
Name: python-google-cloud-vpc-access
-Version: 1.16.0
+Version: 1.17.0
Release: 0
Summary: Google Cloud Vpc Access API client library
License: Apache-2.0
URL:
https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vpc-access
Source:
https://files.pythonhosted.org/packages/source/g/google_cloud_vpc_access/google_cloud_vpc_access-%{version}.tar.gz
-BuildRequires: %{python_module grpcio >= 1.33.2 if %python-base < 3.14}
+BuildRequires: %{python_module grpcio >= 1.59.0 if %python-base < 3.14}
BuildRequires: %{python_module grpcio >= 1.75.1 if %python-base >= 3.14}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
-BuildRequires: %{python_module google-api-core >= 2.11.0}
+BuildRequires: %{python_module google-api-core >= 2.17.1}
BuildRequires: %{python_module proto-plus >= 1.22.3}
BuildRequires: %{python_module protobuf >= 4.25.8}
BuildRequires: %{python_module pytest-asyncio}
@@ -39,11 +39,11 @@
# /SECTION
BuildRequires: fdupes
%if %python_version_nodots < 314
-Requires: python-grpcio >= 1.33.2
+Requires: python-grpcio >= 1.59.0
%else
Requires: python-grpcio >= 1.75.1
%endif
-Requires: python-google-api-core >= 2.11.0
+Requires: python-google-api-core >= 2.17.1
Requires: python-google-auth
Requires: python-proto-plus >= 1.22.3
Requires: python-protobuf >= 4.25.8
++++++ google_cloud_vpc_access-1.16.0.tar.gz ->
google_cloud_vpc_access-1.17.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google_cloud_vpc_access-1.16.0/MANIFEST.in
new/google_cloud_vpc_access-1.17.0/MANIFEST.in
--- old/google_cloud_vpc_access-1.16.0/MANIFEST.in 2026-03-26
22:38:05.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/MANIFEST.in 2026-06-23
00:44:36.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google_cloud_vpc_access-1.16.0/PKG-INFO
new/google_cloud_vpc_access-1.17.0/PKG-INFO
--- old/google_cloud_vpc_access-1.16.0/PKG-INFO 2026-03-26 22:48:28.858740800
+0100
+++ new/google_cloud_vpc_access-1.17.0/PKG-INFO 2026-06-23 00:53:42.585329500
+0200
@@ -1,18 +1,17 @@
Metadata-Version: 2.4
Name: google-cloud-vpc-access
-Version: 1.16.0
+Version: 1.17.0
Summary: Google Cloud Vpc Access API client library
Home-page:
https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vpc-access
Author: Google LLC
Author-email: [email protected]
-License: Apache 2.0
+License: Apache-2.0
Platform: Posix; MacOS X; Windows
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
@@ -20,11 +19,11 @@
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
-Requires-Python: >=3.9
+Requires-Python: >=3.10
License-File: LICENSE
-Requires-Dist: google-api-core[grpc]<3.0.0,>=2.11.0
+Requires-Dist: google-api-core[grpc]<3.0.0,>=2.17.1
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
-Requires-Dist: grpcio<2.0.0,>=1.33.2
+Requires-Dist: grpcio<2.0.0,>=1.59.0
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
Requires-Dist: proto-plus<2.0.0,>=1.22.3
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
@@ -41,12 +40,12 @@
Dynamic: requires-python
Dynamic: summary
-Python Client for Virtual Private Cloud
+Python Client for Serverless VPC Access
=======================================
|stable| |pypi| |versions|
-`Virtual Private Cloud`_: provides networking functionality to Compute Engine
virtual machine (VM) instances, Google Kubernetes Engine (GKE) containers, and
the App Engine flexible environment. VPC provides networking for your
cloud-based services that is global, scalable, and flexible.
+`Serverless VPC Access`_: API for managing VPC access connectors.
- `Client Library Documentation`_
- `Product Documentation`_
@@ -57,7 +56,7 @@
:target: https://pypi.org/project/google-cloud-vpc-access/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-vpc-access.svg
:target: https://pypi.org/project/google-cloud-vpc-access/
-.. _Virtual Private Cloud: https://cloud.google.com/vpc/
+.. _Serverless VPC Access: https://cloud.google.com/vpc/
.. _Client Library Documentation:
https://cloud.google.com/python/docs/reference/vpcaccess/latest/summary_overview
.. _Product Documentation: https://cloud.google.com/vpc/
@@ -68,12 +67,12 @@
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
-3. `Enable the Virtual Private Cloud.`_
+3. `Enable the Serverless VPC Access.`_
4. `Set up Authentication.`_
.. _Select or create a Cloud Platform project.:
https://console.cloud.google.com/project
.. _Enable billing for your project.:
https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
-.. _Enable the Virtual Private Cloud.: https://cloud.google.com/vpc/
+.. _Enable the Serverless VPC Access.: https://cloud.google.com/vpc/
.. _Set up Authentication.:
https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
@@ -104,14 +103,15 @@
Our client libraries are compatible with all current `active`_ and
`maintenance`_ versions of
Python.
-Python >= 3.9, including 3.14
+Python >= 3.10, including 3.14
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
Unsupported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Python <= 3.8
+Python <= 3.9
+
If you are using an `end-of-life`_
version of Python, we recommend that you update as soon as possible to an
actively supported version.
@@ -140,14 +140,14 @@
Next Steps
~~~~~~~~~~
-- Read the `Client Library Documentation`_ for Virtual Private Cloud
+- Read the `Client Library Documentation`_ for Serverless VPC Access
to see other available methods on the client.
-- Read the `Virtual Private Cloud Product documentation`_ to learn
+- Read the `Serverless VPC Access Product documentation`_ to learn
more about the product and see How-to Guides.
- View this `README`_ to see the full list of Cloud
APIs that we cover.
-.. _Virtual Private Cloud Product documentation: https://cloud.google.com/vpc/
+.. _Serverless VPC Access Product documentation: https://cloud.google.com/vpc/
.. _README:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst
Logging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google_cloud_vpc_access-1.16.0/README.rst
new/google_cloud_vpc_access-1.17.0/README.rst
--- old/google_cloud_vpc_access-1.16.0/README.rst 2026-03-26
22:38:06.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/README.rst 2026-06-23
00:44:35.000000000 +0200
@@ -1,9 +1,9 @@
-Python Client for Virtual Private Cloud
+Python Client for Serverless VPC Access
=======================================
|stable| |pypi| |versions|
-`Virtual Private Cloud`_: provides networking functionality to Compute Engine
virtual machine (VM) instances, Google Kubernetes Engine (GKE) containers, and
the App Engine flexible environment. VPC provides networking for your
cloud-based services that is global, scalable, and flexible.
+`Serverless VPC Access`_: API for managing VPC access connectors.
- `Client Library Documentation`_
- `Product Documentation`_
@@ -14,7 +14,7 @@
:target: https://pypi.org/project/google-cloud-vpc-access/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-vpc-access.svg
:target: https://pypi.org/project/google-cloud-vpc-access/
-.. _Virtual Private Cloud: https://cloud.google.com/vpc/
+.. _Serverless VPC Access: https://cloud.google.com/vpc/
.. _Client Library Documentation:
https://cloud.google.com/python/docs/reference/vpcaccess/latest/summary_overview
.. _Product Documentation: https://cloud.google.com/vpc/
@@ -25,12 +25,12 @@
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
-3. `Enable the Virtual Private Cloud.`_
+3. `Enable the Serverless VPC Access.`_
4. `Set up Authentication.`_
.. _Select or create a Cloud Platform project.:
https://console.cloud.google.com/project
.. _Enable billing for your project.:
https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
-.. _Enable the Virtual Private Cloud.: https://cloud.google.com/vpc/
+.. _Enable the Serverless VPC Access.: https://cloud.google.com/vpc/
.. _Set up Authentication.:
https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
@@ -61,14 +61,15 @@
Our client libraries are compatible with all current `active`_ and
`maintenance`_ versions of
Python.
-Python >= 3.9, including 3.14
+Python >= 3.10, including 3.14
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
Unsupported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Python <= 3.8
+Python <= 3.9
+
If you are using an `end-of-life`_
version of Python, we recommend that you update as soon as possible to an
actively supported version.
@@ -97,14 +98,14 @@
Next Steps
~~~~~~~~~~
-- Read the `Client Library Documentation`_ for Virtual Private Cloud
+- Read the `Client Library Documentation`_ for Serverless VPC Access
to see other available methods on the client.
-- Read the `Virtual Private Cloud Product documentation`_ to learn
+- Read the `Serverless VPC Access Product documentation`_ to learn
more about the product and see How-to Guides.
- View this `README`_ to see the full list of Cloud
APIs that we cover.
-.. _Virtual Private Cloud Product documentation: https://cloud.google.com/vpc/
+.. _Serverless VPC Access Product documentation: https://cloud.google.com/vpc/
.. _README:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst
Logging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess/__init__.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess/__init__.py
--- old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess/__init__.py
2026-03-26 22:38:04.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess/__init__.py
2026-06-23 00:44:35.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess/gapic_version.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess/gapic_version.py
--- old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess/gapic_version.py
2026-03-26 22:38:03.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess/gapic_version.py
2026-06-23 00:44:32.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-__version__ = "1.16.0" # {x-release-please-version}
+__version__ = "1.17.0" # {x-release-please-version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/__init__.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/__init__.py
--- old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/__init__.py
2026-03-26 22:38:08.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/__init__.py
2026-06-23 00:44:36.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,13 +21,7 @@
__version__ = package_version.__version__
-if sys.version_info >= (3, 8): # pragma: NO COVER
- from importlib import metadata
-else: # pragma: NO COVER
- # TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
- # this code path once we drop support for Python 3.7
- import importlib_metadata as metadata
-
+from importlib import metadata
from .services.vpc_access_service import (
VpcAccessServiceAsyncClient,
@@ -52,28 +46,17 @@
# An older version of api_core is installed which does not define the
# functions above. We do equivalent checks manually.
try:
- import sys
import warnings
_py_version_str = sys.version.split()[0]
_package_label = "google.cloud.vpcaccess_v1"
- if sys.version_info < (3, 9):
+ if sys.version_info < (3, 10):
warnings.warn(
"You are using a non-supported Python version "
+ f"({_py_version_str}). Google will not post any further "
+ f"updates to {_package_label} supporting this Python
version. "
+ "Please upgrade to the latest Python version, or at "
- + f"least to Python 3.9, and then update {_package_label}.",
- FutureWarning,
- )
- if sys.version_info[:2] == (3, 9):
- warnings.warn(
- f"You are using a Python version ({_py_version_str}) "
- + f"which Google will stop supporting in {_package_label} in "
- + "January 2026. Please "
- + "upgrade to the latest Python version, or at "
- + "least to Python 3.10, before then, and "
- + f"then update {_package_label}.",
+ + f"least to Python 3.10, and then update {_package_label}.",
FutureWarning,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/gapic_version.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/gapic_version.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/gapic_version.py
2026-03-26 22:38:03.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/gapic_version.py
2026-06-23 00:44:32.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-__version__ = "1.16.0" # {x-release-please-version}
+__version__ = "1.17.0" # {x-release-please-version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/__init__.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/__init__.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/__init__.py
2026-03-26 22:38:03.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/__init__.py
2026-06-23 00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/__init__.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/__init__.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/__init__.py
2026-03-26 22:38:03.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/__init__.py
2026-06-23 00:44:36.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/async_client.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/async_client.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/async_client.py
2026-03-26 22:38:03.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/async_client.py
2026-06-23 00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -340,11 +340,11 @@
)
# Make the request
- operation = client.create_connector(request=request)
+ operation = await client.create_connector(request=request)
print("Waiting for operation to complete...")
- response = (await operation).result()
+ response = await operation.result()
# Handle the response
print(response)
@@ -722,11 +722,11 @@
)
# Make the request
- operation = client.delete_connector(request=request)
+ operation = await client.delete_connector(request=request)
print("Waiting for operation to complete...")
- response = (await operation).result()
+ response = await operation.result()
# Handle the response
print(response)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/client.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/client.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/client.py
2026-03-26 22:38:05.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/client.py
2026-06-23 00:44:38.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/pagers.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/pagers.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/pagers.py
2026-03-26 22:38:03.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/pagers.py
2026-06-23 00:44:38.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/__init__.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/__init__.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/__init__.py
2026-03-26 22:38:05.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/__init__.py
2026-06-23 00:44:33.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/base.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/base.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/base.py
2026-03-26 22:38:05.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/base.py
2026-06-23 00:44:36.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc.py
2026-03-26 22:38:07.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc.py
2026-06-23 00:44:34.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc_asyncio.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc_asyncio.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc_asyncio.py
2026-03-26 22:38:08.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/grpc_asyncio.py
2026-06-23 00:44:35.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest.py
2026-03-26 22:38:08.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest.py
2026-06-23 00:44:33.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest_base.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest_base.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest_base.py
2026-03-26 22:38:06.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/services/vpc_access_service/transports/rest_base.py
2026-06-23 00:44:36.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/types/__init__.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/types/__init__.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/types/__init__.py
2026-03-26 22:38:06.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/types/__init__.py
2026-06-23 00:44:38.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/types/vpc_access.py
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/types/vpc_access.py
---
old/google_cloud_vpc_access-1.16.0/google/cloud/vpcaccess_v1/types/vpc_access.py
2026-03-26 22:38:07.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google/cloud/vpcaccess_v1/types/vpc_access.py
2026-06-23 00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google_cloud_vpc_access.egg-info/PKG-INFO
new/google_cloud_vpc_access-1.17.0/google_cloud_vpc_access.egg-info/PKG-INFO
---
old/google_cloud_vpc_access-1.16.0/google_cloud_vpc_access.egg-info/PKG-INFO
2026-03-26 22:48:28.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google_cloud_vpc_access.egg-info/PKG-INFO
2026-06-23 00:53:42.000000000 +0200
@@ -1,18 +1,17 @@
Metadata-Version: 2.4
Name: google-cloud-vpc-access
-Version: 1.16.0
+Version: 1.17.0
Summary: Google Cloud Vpc Access API client library
Home-page:
https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vpc-access
Author: Google LLC
Author-email: [email protected]
-License: Apache 2.0
+License: Apache-2.0
Platform: Posix; MacOS X; Windows
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
@@ -20,11 +19,11 @@
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
-Requires-Python: >=3.9
+Requires-Python: >=3.10
License-File: LICENSE
-Requires-Dist: google-api-core[grpc]<3.0.0,>=2.11.0
+Requires-Dist: google-api-core[grpc]<3.0.0,>=2.17.1
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
-Requires-Dist: grpcio<2.0.0,>=1.33.2
+Requires-Dist: grpcio<2.0.0,>=1.59.0
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
Requires-Dist: proto-plus<2.0.0,>=1.22.3
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
@@ -41,12 +40,12 @@
Dynamic: requires-python
Dynamic: summary
-Python Client for Virtual Private Cloud
+Python Client for Serverless VPC Access
=======================================
|stable| |pypi| |versions|
-`Virtual Private Cloud`_: provides networking functionality to Compute Engine
virtual machine (VM) instances, Google Kubernetes Engine (GKE) containers, and
the App Engine flexible environment. VPC provides networking for your
cloud-based services that is global, scalable, and flexible.
+`Serverless VPC Access`_: API for managing VPC access connectors.
- `Client Library Documentation`_
- `Product Documentation`_
@@ -57,7 +56,7 @@
:target: https://pypi.org/project/google-cloud-vpc-access/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-vpc-access.svg
:target: https://pypi.org/project/google-cloud-vpc-access/
-.. _Virtual Private Cloud: https://cloud.google.com/vpc/
+.. _Serverless VPC Access: https://cloud.google.com/vpc/
.. _Client Library Documentation:
https://cloud.google.com/python/docs/reference/vpcaccess/latest/summary_overview
.. _Product Documentation: https://cloud.google.com/vpc/
@@ -68,12 +67,12 @@
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
-3. `Enable the Virtual Private Cloud.`_
+3. `Enable the Serverless VPC Access.`_
4. `Set up Authentication.`_
.. _Select or create a Cloud Platform project.:
https://console.cloud.google.com/project
.. _Enable billing for your project.:
https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
-.. _Enable the Virtual Private Cloud.: https://cloud.google.com/vpc/
+.. _Enable the Serverless VPC Access.: https://cloud.google.com/vpc/
.. _Set up Authentication.:
https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
@@ -104,14 +103,15 @@
Our client libraries are compatible with all current `active`_ and
`maintenance`_ versions of
Python.
-Python >= 3.9, including 3.14
+Python >= 3.10, including 3.14
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
Unsupported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Python <= 3.8
+Python <= 3.9
+
If you are using an `end-of-life`_
version of Python, we recommend that you update as soon as possible to an
actively supported version.
@@ -140,14 +140,14 @@
Next Steps
~~~~~~~~~~
-- Read the `Client Library Documentation`_ for Virtual Private Cloud
+- Read the `Client Library Documentation`_ for Serverless VPC Access
to see other available methods on the client.
-- Read the `Virtual Private Cloud Product documentation`_ to learn
+- Read the `Serverless VPC Access Product documentation`_ to learn
more about the product and see How-to Guides.
- View this `README`_ to see the full list of Cloud
APIs that we cover.
-.. _Virtual Private Cloud Product documentation: https://cloud.google.com/vpc/
+.. _Serverless VPC Access Product documentation: https://cloud.google.com/vpc/
.. _README:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst
Logging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/google_cloud_vpc_access.egg-info/requires.txt
new/google_cloud_vpc_access-1.17.0/google_cloud_vpc_access.egg-info/requires.txt
---
old/google_cloud_vpc_access-1.16.0/google_cloud_vpc_access.egg-info/requires.txt
2026-03-26 22:48:28.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/google_cloud_vpc_access.egg-info/requires.txt
2026-06-23 00:53:42.000000000 +0200
@@ -1,6 +1,6 @@
-google-api-core[grpc]<3.0.0,>=2.11.0
+google-api-core[grpc]<3.0.0,>=2.17.1
google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
-grpcio<2.0.0,>=1.33.2
+grpcio<2.0.0,>=1.59.0
proto-plus<2.0.0,>=1.22.3
protobuf<8.0.0,>=4.25.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google_cloud_vpc_access-1.16.0/setup.py
new/google_cloud_vpc_access-1.17.0/setup.py
--- old/google_cloud_vpc_access-1.16.0/setup.py 2026-03-26 22:38:05.000000000
+0100
+++ new/google_cloud_vpc_access-1.17.0/setup.py 2026-06-23 00:44:38.000000000
+0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -39,11 +39,11 @@
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
- "google-api-core[grpc] >= 2.11.0, <3.0.0",
+ "google-api-core[grpc] >= 2.17.1, <3.0.0",
# Exclude incompatible versions of `google-auth`
# See https://github.com/googleapis/google-cloud-python/issues/12364
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
- "grpcio >= 1.33.2, < 2.0.0",
+ "grpcio >= 1.59.0, < 2.0.0",
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
"proto-plus >= 1.22.3, <2.0.0",
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
@@ -71,7 +71,7 @@
long_description=readme,
author="Google LLC",
author_email="[email protected]",
- license="Apache 2.0",
+ license="Apache-2.0",
url=url,
classifiers=[
release_status,
@@ -79,7 +79,6 @@
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
@@ -90,7 +89,7 @@
],
platforms="Posix; MacOS X; Windows",
packages=packages,
- python_requires=">=3.9",
+ python_requires=">=3.10",
install_requires=dependencies,
extras_require=extras,
include_package_data=True,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google_cloud_vpc_access-1.16.0/tests/__init__.py
new/google_cloud_vpc_access-1.17.0/tests/__init__.py
--- old/google_cloud_vpc_access-1.16.0/tests/__init__.py 2026-03-26
22:38:03.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/tests/__init__.py 2026-06-23
00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/tests/unit/__init__.py
new/google_cloud_vpc_access-1.17.0/tests/unit/__init__.py
--- old/google_cloud_vpc_access-1.16.0/tests/unit/__init__.py 2026-03-26
22:38:03.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/tests/unit/__init__.py 2026-06-23
00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/tests/unit/gapic/__init__.py
new/google_cloud_vpc_access-1.17.0/tests/unit/gapic/__init__.py
--- old/google_cloud_vpc_access-1.16.0/tests/unit/gapic/__init__.py
2026-03-26 22:38:03.000000000 +0100
+++ new/google_cloud_vpc_access-1.17.0/tests/unit/gapic/__init__.py
2026-06-23 00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/tests/unit/gapic/vpcaccess_v1/__init__.py
new/google_cloud_vpc_access-1.17.0/tests/unit/gapic/vpcaccess_v1/__init__.py
---
old/google_cloud_vpc_access-1.16.0/tests/unit/gapic/vpcaccess_v1/__init__.py
2026-03-26 22:38:03.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/tests/unit/gapic/vpcaccess_v1/__init__.py
2026-06-23 00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google_cloud_vpc_access-1.16.0/tests/unit/gapic/vpcaccess_v1/test_vpc_access_service.py
new/google_cloud_vpc_access-1.17.0/tests/unit/gapic/vpcaccess_v1/test_vpc_access_service.py
---
old/google_cloud_vpc_access-1.16.0/tests/unit/gapic/vpcaccess_v1/test_vpc_access_service.py
2026-03-26 22:38:05.000000000 +0100
+++
new/google_cloud_vpc_access-1.17.0/tests/unit/gapic/vpcaccess_v1/test_vpc_access_service.py
2026-06-23 00:44:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2025 Google LLC
+# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,18 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-import os
-
-# try/except added for compatibility with python < 3.8
-try:
- from unittest import mock
- from unittest.mock import AsyncMock # pragma: NO COVER
-except ImportError: # pragma: NO COVER
- import mock
-
+import asyncio
import json
import math
+import os
from collections.abc import AsyncIterable, Iterable, Mapping, Sequence
+from unittest import mock
+from unittest.mock import AsyncMock
import grpc
import pytest
@@ -120,6 +115,21 @@
)
[email protected](autouse=True)
+def set_event_loop():
+ try:
+ asyncio.get_running_loop()
+ yield
+ except RuntimeError:
+ loop = asyncio.new_event_loop()
+ asyncio.set_event_loop(loop)
+ try:
+ yield
+ finally:
+ loop.close()
+ asyncio.set_event_loop(None)
+
+
def test__get_default_mtls_endpoint():
api_endpoint = "example.googleapis.com"
api_mtls_endpoint = "example.mtls.googleapis.com"
@@ -1353,8 +1363,8 @@
@pytest.mark.parametrize(
"request_type",
[
- vpc_access.CreateConnectorRequest,
- dict,
+ vpc_access.CreateConnectorRequest(),
+ {},
],
)
def test_create_connector(request_type, transport: str = "grpc"):
@@ -1365,7 +1375,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_connector),
"__call__") as call:
@@ -1407,10 +1417,11 @@
client.create_connector(request=request)
call.assert_called()
_, args, _ = call.mock_calls[0]
- assert args[0] == vpc_access.CreateConnectorRequest(
+ request_msg = vpc_access.CreateConnectorRequest(
parent="parent_value",
connector_id="connector_id_value",
)
+ assert args[0] == request_msg
def test_create_connector_use_cached_wrapped_rpc():
@@ -1503,9 +1514,14 @@
@pytest.mark.asyncio
-async def test_create_connector_async(
- transport: str = "grpc_asyncio",
request_type=vpc_access.CreateConnectorRequest
-):
[email protected](
+ "request_type",
+ [
+ vpc_access.CreateConnectorRequest(),
+ {},
+ ],
+)
+async def test_create_connector_async(request_type, transport: str =
"grpc_asyncio"):
client = VpcAccessServiceAsyncClient(
credentials=async_anonymous_credentials(),
transport=transport,
@@ -1513,7 +1529,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_connector),
"__call__") as call:
@@ -1533,11 +1549,6 @@
assert isinstance(response, future.Future)
[email protected]
-async def test_create_connector_async_from_dict():
- await test_create_connector_async(request_type=dict)
-
-
def test_create_connector_field_headers():
client = VpcAccessServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
@@ -1704,8 +1715,8 @@
@pytest.mark.parametrize(
"request_type",
[
- vpc_access.GetConnectorRequest,
- dict,
+ vpc_access.GetConnectorRequest(),
+ {},
],
)
def test_get_connector(request_type, transport: str = "grpc"):
@@ -1716,7 +1727,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_connector), "__call__")
as call:
@@ -1778,9 +1789,10 @@
client.get_connector(request=request)
call.assert_called()
_, args, _ = call.mock_calls[0]
- assert args[0] == vpc_access.GetConnectorRequest(
+ request_msg = vpc_access.GetConnectorRequest(
name="name_value",
)
+ assert args[0] == request_msg
def test_get_connector_use_cached_wrapped_rpc():
@@ -1861,9 +1873,14 @@
@pytest.mark.asyncio
-async def test_get_connector_async(
- transport: str = "grpc_asyncio",
request_type=vpc_access.GetConnectorRequest
-):
[email protected](
+ "request_type",
+ [
+ vpc_access.GetConnectorRequest(),
+ {},
+ ],
+)
+async def test_get_connector_async(request_type, transport: str =
"grpc_asyncio"):
client = VpcAccessServiceAsyncClient(
credentials=async_anonymous_credentials(),
transport=transport,
@@ -1871,7 +1888,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_connector), "__call__")
as call:
@@ -1912,11 +1929,6 @@
assert response.max_instances == 1389
[email protected]
-async def test_get_connector_async_from_dict():
- await test_get_connector_async(request_type=dict)
-
-
def test_get_connector_field_headers():
client = VpcAccessServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
@@ -2063,8 +2075,8 @@
@pytest.mark.parametrize(
"request_type",
[
- vpc_access.ListConnectorsRequest,
- dict,
+ vpc_access.ListConnectorsRequest(),
+ {},
],
)
def test_list_connectors(request_type, transport: str = "grpc"):
@@ -2075,7 +2087,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_connectors), "__call__")
as call:
@@ -2120,10 +2132,11 @@
client.list_connectors(request=request)
call.assert_called()
_, args, _ = call.mock_calls[0]
- assert args[0] == vpc_access.ListConnectorsRequest(
+ request_msg = vpc_access.ListConnectorsRequest(
parent="parent_value",
page_token="page_token_value",
)
+ assert args[0] == request_msg
def test_list_connectors_use_cached_wrapped_rpc():
@@ -2204,9 +2217,14 @@
@pytest.mark.asyncio
-async def test_list_connectors_async(
- transport: str = "grpc_asyncio",
request_type=vpc_access.ListConnectorsRequest
-):
[email protected](
+ "request_type",
+ [
+ vpc_access.ListConnectorsRequest(),
+ {},
+ ],
+)
+async def test_list_connectors_async(request_type, transport: str =
"grpc_asyncio"):
client = VpcAccessServiceAsyncClient(
credentials=async_anonymous_credentials(),
transport=transport,
@@ -2214,7 +2232,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_connectors), "__call__")
as call:
@@ -2237,11 +2255,6 @@
assert response.next_page_token == "next_page_token_value"
[email protected]
-async def test_list_connectors_async_from_dict():
- await test_list_connectors_async(request_type=dict)
-
-
def test_list_connectors_field_headers():
client = VpcAccessServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
@@ -2569,11 +2582,7 @@
RuntimeError,
)
pages = []
- # Workaround issue in python 3.9 related to code coverage by adding `#
pragma: no branch`
- # See
https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
- async for page_ in ( # pragma: no branch
- await client.list_connectors(request={})
- ).pages:
+ async for page_ in (await client.list_connectors(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@@ -2582,8 +2591,8 @@
@pytest.mark.parametrize(
"request_type",
[
- vpc_access.DeleteConnectorRequest,
- dict,
+ vpc_access.DeleteConnectorRequest(),
+ {},
],
)
def test_delete_connector(request_type, transport: str = "grpc"):
@@ -2594,7 +2603,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_connector),
"__call__") as call:
@@ -2635,9 +2644,10 @@
client.delete_connector(request=request)
call.assert_called()
_, args, _ = call.mock_calls[0]
- assert args[0] == vpc_access.DeleteConnectorRequest(
+ request_msg = vpc_access.DeleteConnectorRequest(
name="name_value",
)
+ assert args[0] == request_msg
def test_delete_connector_use_cached_wrapped_rpc():
@@ -2730,9 +2740,14 @@
@pytest.mark.asyncio
-async def test_delete_connector_async(
- transport: str = "grpc_asyncio",
request_type=vpc_access.DeleteConnectorRequest
-):
[email protected](
+ "request_type",
+ [
+ vpc_access.DeleteConnectorRequest(),
+ {},
+ ],
+)
+async def test_delete_connector_async(request_type, transport: str =
"grpc_asyncio"):
client = VpcAccessServiceAsyncClient(
credentials=async_anonymous_credentials(),
transport=transport,
@@ -2740,7 +2755,7 @@
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
- request = request_type()
+ request = request_type
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_connector),
"__call__") as call:
@@ -2760,11 +2775,6 @@
assert isinstance(response, future.Future)
[email protected]
-async def test_delete_connector_async_from_dict():
- await test_delete_connector_async(request_type=dict)
-
-
def test_delete_connector_field_headers():
client = VpcAccessServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
@@ -3035,7 +3045,7 @@
("$alt", "json;enum-encoding=int"),
]
actual_params = req.call_args.kwargs["params"]
- assert expected_params == actual_params
+ assert sorted(expected_params) == sorted(actual_params)
def test_create_connector_rest_unset_required_fields():
@@ -3223,7 +3233,7 @@
expected_params = [("$alt", "json;enum-encoding=int")]
actual_params = req.call_args.kwargs["params"]
- assert expected_params == actual_params
+ assert sorted(expected_params) == sorted(actual_params)
def test_get_connector_rest_unset_required_fields():
@@ -3409,7 +3419,7 @@
expected_params = [("$alt", "json;enum-encoding=int")]
actual_params = req.call_args.kwargs["params"]
- assert expected_params == actual_params
+ assert sorted(expected_params) == sorted(actual_params)
def test_list_connectors_rest_unset_required_fields():
@@ -3658,7 +3668,7 @@
expected_params = [("$alt", "json;enum-encoding=int")]
actual_params = req.call_args.kwargs["params"]
- assert expected_params == actual_params
+ assert sorted(expected_params) == sorted(actual_params)
def test_delete_connector_rest_unset_required_fields():
@@ -3850,7 +3860,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.CreateConnectorRequest()
-
assert args[0] == request_msg
@@ -3871,7 +3880,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.GetConnectorRequest()
-
assert args[0] == request_msg
@@ -3892,7 +3900,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.ListConnectorsRequest()
-
assert args[0] == request_msg
@@ -3913,7 +3920,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.DeleteConnectorRequest()
-
assert args[0] == request_msg
@@ -3952,7 +3958,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.CreateConnectorRequest()
-
assert args[0] == request_msg
@@ -3988,7 +3993,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.GetConnectorRequest()
-
assert args[0] == request_msg
@@ -4015,7 +4019,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.ListConnectorsRequest()
-
assert args[0] == request_msg
@@ -4040,7 +4043,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.DeleteConnectorRequest()
-
assert args[0] == request_msg
@@ -4874,7 +4876,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.CreateConnectorRequest()
-
assert args[0] == request_msg
@@ -4894,7 +4895,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.GetConnectorRequest()
-
assert args[0] == request_msg
@@ -4914,7 +4914,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.ListConnectorsRequest()
-
assert args[0] == request_msg
@@ -4934,7 +4933,6 @@
call.assert_called()
_, args, _ = call.mock_calls[0]
request_msg = vpc_access.DeleteConnectorRequest()
-
assert args[0] == request_msg