Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-google-cloud-kms for
openSUSE:Factory checked in at 2022-09-29 18:14:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-kms (Old)
and /work/SRC/openSUSE:Factory/.python-google-cloud-kms.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-kms"
Thu Sep 29 18:14:34 2022 rev:7 rq:1006933 version:2.12.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-cloud-kms/python-google-cloud-kms.changes
2022-06-09 14:10:08.200394821 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-cloud-kms.new.2275/python-google-cloud-kms.changes
2022-09-29 18:15:20.115487516 +0200
@@ -1,0 +2,14 @@
+Wed Sep 28 21:36:10 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- 2.12.1 (2022-08-11)
+ Bug Fixes
+ deps: allow protobuf < 5.0.0 (#322) (229e0f5)
+ deps: require proto-plus >= 1.22.0 (229e0f5)
+- 2.12.0 (2022-07-14)
+ Features
+ add audience parameter (06a4096)
+ Bug Fixes
+ deps: require google-api-core>=1.32.0,>=2.8.0 (#315) (82ab556)
+ require python 3.7+ (#313) (28d244f)
+
+-------------------------------------------------------------------
Old:
----
google-cloud-kms-2.11.2.tar.gz
New:
----
google-cloud-kms-2.12.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-cloud-kms.spec ++++++
--- /var/tmp/diff_new_pack.lCip9d/_old 2022-09-29 18:15:21.359489956 +0200
+++ /var/tmp/diff_new_pack.lCip9d/_new 2022-09-29 18:15:21.367489972 +0200
@@ -19,23 +19,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-google-cloud-kms
-Version: 2.11.2
+Version: 2.12.1
Release: 0
Summary: Cloud Key Management Service (KMS) API API client library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/GoogleCloudPlatform/google-cloud-python
Source:
https://files.pythonhosted.org/packages/source/g/google-cloud-kms/google-cloud-kms-%{version}.tar.gz
-BuildRequires: %{python_module google-api-core >= 1.14.0}
+BuildRequires: %{python_module google-api-core >= 1.32.0}
BuildRequires: %{python_module grpc-google-iam-v1 >= 0.12.3}
-BuildRequires: %{python_module proto-plus}
+BuildRequires: %{python_module proto-plus >= 1.22.0}
BuildRequires: %{python_module protobuf >= 3.19}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-google-api-core >= 1.14.0
+Requires: python-google-api-core >= 1.32.0
Requires: python-grpc-google-iam-v1 >= 0.12.3
Requires(post): update-alternatives
Requires(preun):update-alternatives
++++++ google-cloud-kms-2.11.2.tar.gz -> google-cloud-kms-2.12.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-kms-2.11.2/PKG-INFO
new/google-cloud-kms-2.12.1/PKG-INFO
--- old/google-cloud-kms-2.11.2/PKG-INFO 2022-06-07 14:02:13.586137000
+0200
+++ new/google-cloud-kms-2.12.1/PKG-INFO 2022-08-17 22:48:16.143810000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-cloud-kms
-Version: 2.11.2
+Version: 2.12.1
Summary: Cloud Key Management Service (KMS) API client library
Home-page: https://github.com/googleapis/python-kms
Author: Google LLC
@@ -12,36 +12,33 @@
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
-Requires-Python: >=3.6
+Requires-Python: >=3.7
Provides-Extra: libcst
License-File: LICENSE
-Python Client for Cloud Key Management Service (KMS) API
-========================================================
+Python Client for Google Cloud Key Management Service API
+=========================================================
-|GA| |pypi| |versions|
+|stable| |pypi| |versions|
-`Cloud Key Management Service (KMS) API`_: Manages keys and performs
-cryptographic operations in a central cloud service, for direct use by other
-cloud resources and applications.
+`Google Cloud Key Management Service API`_: a cloud-hosted key management
service that lets you manage cryptographic keys for your cloud services the
same way you do on-premises. You can generate, use, rotate, and destroy AES256,
RSA 2048, RSA 3072, RSA 4096, EC P256, and EC P384 cryptographic keys. Cloud
KMS is integrated with Cloud IAM and Cloud Audit Logging so that you can manage
permissions on individual keys and monitor how these are used. Use Cloud KMS to
protect secrets and other sensitive data that you need to store in Google Cloud
Platform.
- `Client Library Documentation`_
- `Product Documentation`_
-.. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg
- :target:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availabilityt
+.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg
+ :target:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-kms.svg
:target: https://pypi.org/project/google-cloud-kms/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-kms.svg
:target: https://pypi.org/project/google-cloud-kms/
-.. _Cloud Key Management Service (KMS) API: https://cloud.google.com/kms
+.. _Google Cloud Key Management Service API: https://cloud.google.com/kms
.. _Client Library Documentation:
https://cloud.google.com/python/docs/reference/cloudkms/latest
.. _Product Documentation: https://cloud.google.com/kms
@@ -52,12 +49,12 @@
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
-3. `Enable the Cloud Key Management Service (KMS) API.`_
+3. `Enable the Google Cloud Key Management Service API.`_
4. `Setup 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 Cloud Key Management Service (KMS) API.:
https://cloud.google.com/kms
+.. _Enable the Google Cloud Key Management Service API.:
https://cloud.google.com/kms
.. _Setup Authentication.:
https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
@@ -74,16 +71,30 @@
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
+Code samples and snippets
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Code samples and snippets live in the `samples/` folder.
+
+
Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
-Python >= 3.6
+Our client libraries are compatible with all current `active`_ and
`maintenance`_ versions of
+Python.
+
+Python >= 3.7
+
+.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
+.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
-Deprecated Python Versions
-^^^^^^^^^^^^^^^^^^^^^^^^^^
-Python == 2.7.
+Unsupported Python Versions
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Python <= 3.6
-The last version of this library compatible with Python 2.7 is
google-cloud-kms==1.4.0.
+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.
+.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
Mac/Linux
^^^^^^^^^
@@ -109,8 +120,12 @@
Next Steps
~~~~~~~~~~
-- Read the `Client Library Documentation`_ to see other available methods on
- the client.
-- Read the `Product Documentation`_ to learn more about the product and see
- How-to Guides.
+- Read the `Client Library Documentation`_ for Google Cloud Key Management
Service API
+ to see other available methods on the client.
+- Read the `Google Cloud Key Management Service API 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.
+.. _Google Cloud Key Management Service API Product documentation:
https://cloud.google.com/kms
+.. _README:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-kms-2.11.2/README.rst
new/google-cloud-kms-2.12.1/README.rst
--- old/google-cloud-kms-2.11.2/README.rst 2022-06-07 13:59:26.000000000
+0200
+++ new/google-cloud-kms-2.12.1/README.rst 2022-08-17 22:45:39.000000000
+0200
@@ -1,22 +1,20 @@
-Python Client for Cloud Key Management Service (KMS) API
-========================================================
+Python Client for Google Cloud Key Management Service API
+=========================================================
-|GA| |pypi| |versions|
+|stable| |pypi| |versions|
-`Cloud Key Management Service (KMS) API`_: Manages keys and performs
-cryptographic operations in a central cloud service, for direct use by other
-cloud resources and applications.
+`Google Cloud Key Management Service API`_: a cloud-hosted key management
service that lets you manage cryptographic keys for your cloud services the
same way you do on-premises. You can generate, use, rotate, and destroy AES256,
RSA 2048, RSA 3072, RSA 4096, EC P256, and EC P384 cryptographic keys. Cloud
KMS is integrated with Cloud IAM and Cloud Audit Logging so that you can manage
permissions on individual keys and monitor how these are used. Use Cloud KMS to
protect secrets and other sensitive data that you need to store in Google Cloud
Platform.
- `Client Library Documentation`_
- `Product Documentation`_
-.. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg
- :target:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availabilityt
+.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg
+ :target:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-kms.svg
:target: https://pypi.org/project/google-cloud-kms/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-kms.svg
:target: https://pypi.org/project/google-cloud-kms/
-.. _Cloud Key Management Service (KMS) API: https://cloud.google.com/kms
+.. _Google Cloud Key Management Service API: https://cloud.google.com/kms
.. _Client Library Documentation:
https://cloud.google.com/python/docs/reference/cloudkms/latest
.. _Product Documentation: https://cloud.google.com/kms
@@ -27,12 +25,12 @@
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
-3. `Enable the Cloud Key Management Service (KMS) API.`_
+3. `Enable the Google Cloud Key Management Service API.`_
4. `Setup 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 Cloud Key Management Service (KMS) API.:
https://cloud.google.com/kms
+.. _Enable the Google Cloud Key Management Service API.:
https://cloud.google.com/kms
.. _Setup Authentication.:
https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
@@ -49,16 +47,30 @@
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
+Code samples and snippets
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Code samples and snippets live in the `samples/` folder.
+
+
Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
-Python >= 3.6
+Our client libraries are compatible with all current `active`_ and
`maintenance`_ versions of
+Python.
+
+Python >= 3.7
+
+.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
+.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
-Deprecated Python Versions
-^^^^^^^^^^^^^^^^^^^^^^^^^^
-Python == 2.7.
+Unsupported Python Versions
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Python <= 3.6
-The last version of this library compatible with Python 2.7 is
google-cloud-kms==1.4.0.
+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.
+.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
Mac/Linux
^^^^^^^^^
@@ -84,8 +96,12 @@
Next Steps
~~~~~~~~~~
-- Read the `Client Library Documentation`_ to see other available methods on
- the client.
-- Read the `Product Documentation`_ to learn more about the product and see
- How-to Guides.
+- Read the `Client Library Documentation`_ for Google Cloud Key Management
Service API
+ to see other available methods on the client.
+- Read the `Google Cloud Key Management Service API 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.
+.. _Google Cloud Key Management Service API Product documentation:
https://cloud.google.com/kms
+.. _README:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/client.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/client.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/client.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/client.py
2022-08-17 22:45:40.000000000 +0200
@@ -462,6 +462,7 @@
quota_project_id=client_options.quota_project_id,
client_info=client_info,
always_use_jwt_access=True,
+ api_audience=client_options.api_audience,
)
def list_ekm_connections(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/transports/base.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/transports/base.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/transports/base.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/transports/base.py
2022-08-17 22:45:39.000000000 +0200
@@ -59,6 +59,7 @@
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
+ api_audience: Optional[str] = None,
**kwargs,
) -> None:
"""Instantiate the transport.
@@ -86,11 +87,6 @@
be used for service account credentials.
"""
- # Save the hostname. Default to port 443 (HTTPS) if none is specified.
- if ":" not in host:
- host += ":443"
- self._host = host
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
# Save the scopes.
@@ -111,6 +107,11 @@
credentials, _ = google.auth.default(
**scopes_kwargs, quota_project_id=quota_project_id
)
+ # Don't apply audience if the credentials file passed from user.
+ if hasattr(credentials, "with_gdch_audience"):
+ credentials = credentials.with_gdch_audience(
+ api_audience if api_audience else host
+ )
# If the credentials are service account credentials, then always try
to use self signed JWT.
if (
@@ -123,6 +124,11 @@
# Save the credentials.
self._credentials = credentials
+ # Save the hostname. Default to port 443 (HTTPS) if none is specified.
+ if ":" not in host:
+ host += ":443"
+ self._host = host
+
def _prep_wrapped_messages(self, client_info):
# Precompute the wrapped methods.
self._wrapped_methods = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/transports/grpc.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/transports/grpc.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/transports/grpc.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/transports/grpc.py
2022-08-17 22:45:39.000000000 +0200
@@ -65,6 +65,7 @@
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
+ api_audience: Optional[str] = None,
) -> None:
"""Instantiate the transport.
@@ -160,6 +161,7 @@
quota_project_id=quota_project_id,
client_info=client_info,
always_use_jwt_access=always_use_jwt_access,
+ api_audience=api_audience,
)
if not self._grpc_channel:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/transports/grpc_asyncio.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/transports/grpc_asyncio.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/ekm_service/transports/grpc_asyncio.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/ekm_service/transports/grpc_asyncio.py
2022-08-17 22:45:39.000000000 +0200
@@ -110,6 +110,7 @@
quota_project_id=None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
+ api_audience: Optional[str] = None,
) -> None:
"""Instantiate the transport.
@@ -205,6 +206,7 @@
quota_project_id=quota_project_id,
client_info=client_info,
always_use_jwt_access=always_use_jwt_access,
+ api_audience=api_audience,
)
if not self._grpc_channel:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/client.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/client.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/client.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/client.py
2022-08-17 22:45:40.000000000 +0200
@@ -549,6 +549,7 @@
quota_project_id=client_options.quota_project_id,
client_info=client_info,
always_use_jwt_access=True,
+ api_audience=client_options.api_audience,
)
def list_key_rings(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/transports/base.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/transports/base.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/transports/base.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/transports/base.py
2022-08-17 22:45:39.000000000 +0200
@@ -60,6 +60,7 @@
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
+ api_audience: Optional[str] = None,
**kwargs,
) -> None:
"""Instantiate the transport.
@@ -87,11 +88,6 @@
be used for service account credentials.
"""
- # Save the hostname. Default to port 443 (HTTPS) if none is specified.
- if ":" not in host:
- host += ":443"
- self._host = host
-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
# Save the scopes.
@@ -112,6 +108,11 @@
credentials, _ = google.auth.default(
**scopes_kwargs, quota_project_id=quota_project_id
)
+ # Don't apply audience if the credentials file passed from user.
+ if hasattr(credentials, "with_gdch_audience"):
+ credentials = credentials.with_gdch_audience(
+ api_audience if api_audience else host
+ )
# If the credentials are service account credentials, then always try
to use self signed JWT.
if (
@@ -124,6 +125,11 @@
# Save the credentials.
self._credentials = credentials
+ # Save the hostname. Default to port 443 (HTTPS) if none is specified.
+ if ":" not in host:
+ host += ":443"
+ self._host = host
+
def _prep_wrapped_messages(self, client_info):
# Precompute the wrapped methods.
self._wrapped_methods = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/transports/grpc.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/transports/grpc.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/transports/grpc.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/transports/grpc.py
2022-08-17 22:45:39.000000000 +0200
@@ -72,6 +72,7 @@
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
+ api_audience: Optional[str] = None,
) -> None:
"""Instantiate the transport.
@@ -167,6 +168,7 @@
quota_project_id=quota_project_id,
client_info=client_info,
always_use_jwt_access=always_use_jwt_access,
+ api_audience=api_audience,
)
if not self._grpc_channel:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/transports/grpc_asyncio.py
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/transports/grpc_asyncio.py
---
old/google-cloud-kms-2.11.2/google/cloud/kms_v1/services/key_management_service/transports/grpc_asyncio.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/google/cloud/kms_v1/services/key_management_service/transports/grpc_asyncio.py
2022-08-17 22:45:39.000000000 +0200
@@ -117,6 +117,7 @@
quota_project_id=None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
+ api_audience: Optional[str] = None,
) -> None:
"""Instantiate the transport.
@@ -212,6 +213,7 @@
quota_project_id=quota_project_id,
client_info=client_info,
always_use_jwt_access=always_use_jwt_access,
+ api_audience=api_audience,
)
if not self._grpc_channel:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google_cloud_kms.egg-info/PKG-INFO
new/google-cloud-kms-2.12.1/google_cloud_kms.egg-info/PKG-INFO
--- old/google-cloud-kms-2.11.2/google_cloud_kms.egg-info/PKG-INFO
2022-06-07 14:02:12.000000000 +0200
+++ new/google-cloud-kms-2.12.1/google_cloud_kms.egg-info/PKG-INFO
2022-08-17 22:48:16.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-cloud-kms
-Version: 2.11.2
+Version: 2.12.1
Summary: Cloud Key Management Service (KMS) API client library
Home-page: https://github.com/googleapis/python-kms
Author: Google LLC
@@ -12,36 +12,33 @@
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
-Requires-Python: >=3.6
+Requires-Python: >=3.7
Provides-Extra: libcst
License-File: LICENSE
-Python Client for Cloud Key Management Service (KMS) API
-========================================================
+Python Client for Google Cloud Key Management Service API
+=========================================================
-|GA| |pypi| |versions|
+|stable| |pypi| |versions|
-`Cloud Key Management Service (KMS) API`_: Manages keys and performs
-cryptographic operations in a central cloud service, for direct use by other
-cloud resources and applications.
+`Google Cloud Key Management Service API`_: a cloud-hosted key management
service that lets you manage cryptographic keys for your cloud services the
same way you do on-premises. You can generate, use, rotate, and destroy AES256,
RSA 2048, RSA 3072, RSA 4096, EC P256, and EC P384 cryptographic keys. Cloud
KMS is integrated with Cloud IAM and Cloud Audit Logging so that you can manage
permissions on individual keys and monitor how these are used. Use Cloud KMS to
protect secrets and other sensitive data that you need to store in Google Cloud
Platform.
- `Client Library Documentation`_
- `Product Documentation`_
-.. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg
- :target:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availabilityt
+.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg
+ :target:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-kms.svg
:target: https://pypi.org/project/google-cloud-kms/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-kms.svg
:target: https://pypi.org/project/google-cloud-kms/
-.. _Cloud Key Management Service (KMS) API: https://cloud.google.com/kms
+.. _Google Cloud Key Management Service API: https://cloud.google.com/kms
.. _Client Library Documentation:
https://cloud.google.com/python/docs/reference/cloudkms/latest
.. _Product Documentation: https://cloud.google.com/kms
@@ -52,12 +49,12 @@
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
-3. `Enable the Cloud Key Management Service (KMS) API.`_
+3. `Enable the Google Cloud Key Management Service API.`_
4. `Setup 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 Cloud Key Management Service (KMS) API.:
https://cloud.google.com/kms
+.. _Enable the Google Cloud Key Management Service API.:
https://cloud.google.com/kms
.. _Setup Authentication.:
https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
@@ -74,16 +71,30 @@
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
+Code samples and snippets
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Code samples and snippets live in the `samples/` folder.
+
+
Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
-Python >= 3.6
+Our client libraries are compatible with all current `active`_ and
`maintenance`_ versions of
+Python.
+
+Python >= 3.7
+
+.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
+.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
-Deprecated Python Versions
-^^^^^^^^^^^^^^^^^^^^^^^^^^
-Python == 2.7.
+Unsupported Python Versions
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Python <= 3.6
-The last version of this library compatible with Python 2.7 is
google-cloud-kms==1.4.0.
+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.
+.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
Mac/Linux
^^^^^^^^^
@@ -109,8 +120,12 @@
Next Steps
~~~~~~~~~~
-- Read the `Client Library Documentation`_ to see other available methods on
- the client.
-- Read the `Product Documentation`_ to learn more about the product and see
- How-to Guides.
+- Read the `Client Library Documentation`_ for Google Cloud Key Management
Service API
+ to see other available methods on the client.
+- Read the `Google Cloud Key Management Service API 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.
+.. _Google Cloud Key Management Service API Product documentation:
https://cloud.google.com/kms
+.. _README:
https://github.com/googleapis/google-cloud-python/blob/main/README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/google_cloud_kms.egg-info/requires.txt
new/google-cloud-kms-2.12.1/google_cloud_kms.egg-info/requires.txt
--- old/google-cloud-kms-2.11.2/google_cloud_kms.egg-info/requires.txt
2022-06-07 14:02:13.000000000 +0200
+++ new/google-cloud-kms-2.12.1/google_cloud_kms.egg-info/requires.txt
2022-08-17 22:48:16.000000000 +0200
@@ -1,7 +1,7 @@
-google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5
+google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,<3.0.0dev,>=1.32.0
grpc-google-iam-v1<1.0.0dev,>=0.12.4
-proto-plus<2.0.0dev,>=1.15.0
-protobuf<4.0.0dev,>=3.19.0
+proto-plus<2.0.0dev,>=1.22.0
+protobuf<5.0.0dev,>=3.19.0
[libcst]
libcst>=0.2.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-kms-2.11.2/setup.py
new/google-cloud-kms-2.12.1/setup.py
--- old/google-cloud-kms-2.11.2/setup.py 2022-06-07 13:59:26.000000000
+0200
+++ new/google-cloud-kms-2.12.1/setup.py 2022-08-17 22:45:39.000000000
+0200
@@ -21,16 +21,13 @@
name = "google-cloud-kms"
description = "Cloud Key Management Service (KMS) API client library"
-version = "2.11.2"
+version = "2.12.1"
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
- # NOTE: Maintainers, please do not require google-api-core>=2.x.x
- # Until this issue is closed
- # https://github.com/googleapis/google-cloud-python/issues/10566
- "google-api-core[grpc] >= 1.31.5,
<3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
+ "google-api-core[grpc] >= 1.32.0,
<3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*",
"grpc-google-iam-v1 >=0.12.4, <1.0.0dev",
- "proto-plus >= 1.15.0, <2.0.0dev",
- "protobuf >= 3.19.0, <4.0.0dev",
+ "proto-plus >= 1.22.0, <2.0.0dev",
+ "protobuf >= 3.19.0, <5.0.0dev",
]
extras = {"libcst": "libcst >= 0.2.5"}
@@ -69,7 +66,6 @@
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
@@ -82,7 +78,7 @@
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
- python_requires=">=3.6",
+ python_requires=">=3.7",
scripts=["scripts/fixup_kms_v1_keywords.py"],
include_package_data=True,
zip_safe=False,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/tests/unit/gapic/kms_v1/test_ekm_service.py
new/google-cloud-kms-2.12.1/tests/unit/gapic/kms_v1/test_ekm_service.py
--- old/google-cloud-kms-2.11.2/tests/unit/gapic/kms_v1/test_ekm_service.py
2022-06-07 13:59:26.000000000 +0200
+++ new/google-cloud-kms-2.12.1/tests/unit/gapic/kms_v1/test_ekm_service.py
2022-08-17 22:45:39.000000000 +0200
@@ -224,6 +224,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case api_endpoint is not provided and
GOOGLE_API_USE_MTLS_ENDPOINT is
@@ -241,6 +242,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case api_endpoint is not provided and
GOOGLE_API_USE_MTLS_ENDPOINT is
@@ -258,6 +260,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case api_endpoint is not provided and
GOOGLE_API_USE_MTLS_ENDPOINT has
@@ -287,6 +290,25 @@
quota_project_id="octopus",
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
+ )
+ # Check the case api_endpoint is provided
+ options = client_options.ClientOptions(
+ api_audience="https://language.googleapis.com"
+ )
+ with mock.patch.object(transport_class, "__init__") as patched:
+ patched.return_value = None
+ client = client_class(client_options=options, transport=transport_name)
+ patched.assert_called_once_with(
+ credentials=None,
+ credentials_file=None,
+ host=client.DEFAULT_ENDPOINT,
+ scopes=None,
+ client_cert_source_for_mtls=None,
+ quota_project_id=None,
+ client_info=transports.base.DEFAULT_CLIENT_INFO,
+ always_use_jwt_access=True,
+ api_audience="https://language.googleapis.com",
)
@@ -352,6 +374,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case ADC client cert is provided. Whether client cert is used
depends on
@@ -386,6 +409,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case client_cert_source and ADC client cert are not provided.
@@ -408,6 +432,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -518,6 +543,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -551,6 +577,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -569,6 +596,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -602,6 +630,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# test that the credentials from file are saved and used as the
credentials.
@@ -2097,6 +2126,28 @@
@pytest.mark.parametrize(
+ "transport_class",
+ [
+ transports.EkmServiceGrpcTransport,
+ transports.EkmServiceGrpcAsyncIOTransport,
+ ],
+)
+def test_ekm_service_transport_auth_gdch_credentials(transport_class):
+ host = "https://language.com"
+ api_audience_tests = [None, "https://language2.com"]
+ api_audience_expect = [host, "https://language2.com"]
+ for t, e in zip(api_audience_tests, api_audience_expect):
+ with mock.patch.object(google.auth, "default", autospec=True) as adc:
+ gdch_mock = mock.MagicMock()
+ type(gdch_mock).with_gdch_audience = mock.PropertyMock(
+ return_value=gdch_mock
+ )
+ adc.return_value = (gdch_mock, None)
+ transport_class(host=host, api_audience=t)
+ gdch_mock.with_gdch_audience.assert_called_once_with(e)
+
+
[email protected](
"transport_class,grpc_helpers",
[
(transports.EkmServiceGrpcTransport, grpc_helpers),
@@ -3093,4 +3144,5 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-kms-2.11.2/tests/unit/gapic/kms_v1/test_key_management_service.py
new/google-cloud-kms-2.12.1/tests/unit/gapic/kms_v1/test_key_management_service.py
---
old/google-cloud-kms-2.11.2/tests/unit/gapic/kms_v1/test_key_management_service.py
2022-06-07 13:59:26.000000000 +0200
+++
new/google-cloud-kms-2.12.1/tests/unit/gapic/kms_v1/test_key_management_service.py
2022-08-17 22:45:39.000000000 +0200
@@ -245,6 +245,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case api_endpoint is not provided and
GOOGLE_API_USE_MTLS_ENDPOINT is
@@ -262,6 +263,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case api_endpoint is not provided and
GOOGLE_API_USE_MTLS_ENDPOINT is
@@ -279,6 +281,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case api_endpoint is not provided and
GOOGLE_API_USE_MTLS_ENDPOINT has
@@ -308,6 +311,25 @@
quota_project_id="octopus",
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
+ )
+ # Check the case api_endpoint is provided
+ options = client_options.ClientOptions(
+ api_audience="https://language.googleapis.com"
+ )
+ with mock.patch.object(transport_class, "__init__") as patched:
+ patched.return_value = None
+ client = client_class(client_options=options, transport=transport_name)
+ patched.assert_called_once_with(
+ credentials=None,
+ credentials_file=None,
+ host=client.DEFAULT_ENDPOINT,
+ scopes=None,
+ client_cert_source_for_mtls=None,
+ quota_project_id=None,
+ client_info=transports.base.DEFAULT_CLIENT_INFO,
+ always_use_jwt_access=True,
+ api_audience="https://language.googleapis.com",
)
@@ -385,6 +407,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case ADC client cert is provided. Whether client cert is used
depends on
@@ -419,6 +442,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# Check the case client_cert_source and ADC client cert are not provided.
@@ -441,6 +465,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -559,6 +584,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -597,6 +623,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -617,6 +644,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
@@ -655,6 +683,7 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)
# test that the credentials from file are saved and used as the
credentials.
@@ -8407,6 +8436,28 @@
@pytest.mark.parametrize(
+ "transport_class",
+ [
+ transports.KeyManagementServiceGrpcTransport,
+ transports.KeyManagementServiceGrpcAsyncIOTransport,
+ ],
+)
+def
test_key_management_service_transport_auth_gdch_credentials(transport_class):
+ host = "https://language.com"
+ api_audience_tests = [None, "https://language2.com"]
+ api_audience_expect = [host, "https://language2.com"]
+ for t, e in zip(api_audience_tests, api_audience_expect):
+ with mock.patch.object(google.auth, "default", autospec=True) as adc:
+ gdch_mock = mock.MagicMock()
+ type(gdch_mock).with_gdch_audience = mock.PropertyMock(
+ return_value=gdch_mock
+ )
+ adc.return_value = (gdch_mock, None)
+ transport_class(host=host, api_audience=t)
+ gdch_mock.with_gdch_audience.assert_called_once_with(e)
+
+
[email protected](
"transport_class,grpc_helpers",
[
(transports.KeyManagementServiceGrpcTransport, grpc_helpers),
@@ -9520,4 +9571,5 @@
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
+ api_audience=None,
)