google-cloud-privilegedaccessmanager 0.3.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/MANIFEST.in +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0/google_cloud_privilegedaccessmanager.egg-info → google_cloud_privilegedaccessmanager-0.4.1}/PKG-INFO +31 -21
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/README.rst +25 -12
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager/__init__.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager/gapic_version.py +2 -2
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/__init__.py +4 -20
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/gapic_version.py +2 -2
- {google_cloud_privilegedaccessmanager-0.3.0/tests/unit → google_cloud_privilegedaccessmanager-0.4.1/google/cloud/privilegedaccessmanager_v1/services}/__init__.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/__init__.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/async_client.py +75 -46
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/client.py +69 -51
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/pagers.py +9 -9
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/transports/__init__.py +2 -4
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/transports/base.py +20 -8
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/transports/grpc.py +12 -8
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/transports/grpc_asyncio.py +11 -7
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/transports/rest.py +33 -65
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/services/privileged_access_manager/transports/rest_base.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/types/__init__.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/types/privilegedaccessmanager.py +15 -11
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1/google_cloud_privilegedaccessmanager.egg-info}/PKG-INFO +31 -21
- google_cloud_privilegedaccessmanager-0.4.1/google_cloud_privilegedaccessmanager.egg-info/requires.txt +11 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/setup.py +6 -9
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/tests/__init__.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0/tests/unit/gapic → google_cloud_privilegedaccessmanager-0.4.1/tests/unit}/__init__.py +1 -1
- {google_cloud_privilegedaccessmanager-0.3.0/google/cloud/privilegedaccessmanager_v1/services → google_cloud_privilegedaccessmanager-0.4.1/tests/unit/gapic}/__init__.py +1 -1
- google_cloud_privilegedaccessmanager-0.4.1/tests/unit/gapic/privilegedaccessmanager_v1/__init__.py +15 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/tests/unit/gapic/privilegedaccessmanager_v1/test_privileged_access_manager.py +744 -569
- google_cloud_privilegedaccessmanager-0.3.0/google_cloud_privilegedaccessmanager.egg-info/requires.txt +0 -11
- google_cloud_privilegedaccessmanager-0.3.0/tests/unit/gapic/privilegedaccessmanager_v1/__init__.py +0 -15
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/LICENSE +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager/py.typed +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/gapic_metadata.json +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google/cloud/privilegedaccessmanager_v1/py.typed +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google_cloud_privilegedaccessmanager.egg-info/SOURCES.txt +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google_cloud_privilegedaccessmanager.egg-info/dependency_links.txt +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google_cloud_privilegedaccessmanager.egg-info/not-zip-safe +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/google_cloud_privilegedaccessmanager.egg-info/top_level.txt +0 -0
- {google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/setup.cfg +0 -0
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-privilegedaccessmanager
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Google Cloud Privilegedaccessmanager API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-privilegedaccessmanager
|
|
6
6
|
Author: Google LLC
|
|
7
7
|
Author-email: googleapis-packages@google.com
|
|
8
|
-
License: Apache
|
|
8
|
+
License: Apache-2.0
|
|
9
9
|
Platform: Posix; MacOS X; Windows
|
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
18
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -22,15 +19,15 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
22
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
23
20
|
Classifier: Operating System :: OS Independent
|
|
24
21
|
Classifier: Topic :: Internet
|
|
25
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.10
|
|
26
23
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: google-api-core[grpc]
|
|
24
|
+
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.17.1
|
|
28
25
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
29
|
-
Requires-Dist: grpcio<2.0.0,>=1.
|
|
26
|
+
Requires-Dist: grpcio<2.0.0,>=1.59.0
|
|
30
27
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
31
28
|
Requires-Dist: proto-plus<2.0.0,>=1.22.3
|
|
32
29
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
33
|
-
Requires-Dist: protobuf
|
|
30
|
+
Requires-Dist: protobuf<8.0.0,>=4.25.8
|
|
34
31
|
Dynamic: author
|
|
35
32
|
Dynamic: author-email
|
|
36
33
|
Dynamic: classifier
|
|
@@ -43,12 +40,24 @@ Dynamic: requires-dist
|
|
|
43
40
|
Dynamic: requires-python
|
|
44
41
|
Dynamic: summary
|
|
45
42
|
|
|
46
|
-
Python Client for Privileged Access Manager
|
|
47
|
-
|
|
43
|
+
Python Client for Privileged Access Manager
|
|
44
|
+
===========================================
|
|
48
45
|
|
|
49
46
|
|preview| |pypi| |versions|
|
|
50
47
|
|
|
51
|
-
`Privileged Access Manager
|
|
48
|
+
`Privileged Access Manager`_: Privileged Access Manager (PAM) helps you on your journey towards least
|
|
49
|
+
privilege and helps mitigate risks tied to privileged access misuse or
|
|
50
|
+
abuse. PAM allows you to shift from always-on standing privileges towards
|
|
51
|
+
on-demand access with just-in-time, time-bound, and approval-based access
|
|
52
|
+
elevations. PAM allows IAM administrators to create entitlements that can
|
|
53
|
+
grant just-in-time, temporary access to any resource scope. Requesters can
|
|
54
|
+
explore eligible entitlements and request the access needed for their
|
|
55
|
+
task. Approvers are notified when approvals await their
|
|
56
|
+
decision. Streamlined workflows facilitated by using PAM can support
|
|
57
|
+
various use cases, including emergency access for incident responders,
|
|
58
|
+
time-boxed access for developers for critical deployment or maintenance,
|
|
59
|
+
temporary access for operators for data ingestion and audits, JIT access
|
|
60
|
+
to service accounts for automated tasks, and more.
|
|
52
61
|
|
|
53
62
|
- `Client Library Documentation`_
|
|
54
63
|
- `Product Documentation`_
|
|
@@ -59,9 +68,9 @@ Python Client for Privileged Access Manager API
|
|
|
59
68
|
:target: https://pypi.org/project/google-cloud-privilegedaccessmanager/
|
|
60
69
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-privilegedaccessmanager.svg
|
|
61
70
|
:target: https://pypi.org/project/google-cloud-privilegedaccessmanager/
|
|
62
|
-
.. _Privileged Access Manager
|
|
71
|
+
.. _Privileged Access Manager: https://cloud.google.com/iam/
|
|
63
72
|
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-privilegedaccessmanager/latest/summary_overview
|
|
64
|
-
.. _Product Documentation: https://cloud.google.com/iam/
|
|
73
|
+
.. _Product Documentation: https://cloud.google.com/iam/
|
|
65
74
|
|
|
66
75
|
Quick Start
|
|
67
76
|
-----------
|
|
@@ -70,12 +79,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
70
79
|
|
|
71
80
|
1. `Select or create a Cloud Platform project.`_
|
|
72
81
|
2. `Enable billing for your project.`_
|
|
73
|
-
3. `Enable the Privileged Access Manager
|
|
82
|
+
3. `Enable the Privileged Access Manager.`_
|
|
74
83
|
4. `Set up Authentication.`_
|
|
75
84
|
|
|
76
85
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
77
86
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
78
|
-
.. _Enable the Privileged Access Manager
|
|
87
|
+
.. _Enable the Privileged Access Manager.: https://cloud.google.com/iam/
|
|
79
88
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
80
89
|
|
|
81
90
|
Installation
|
|
@@ -106,14 +115,15 @@ Supported Python Versions
|
|
|
106
115
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
107
116
|
Python.
|
|
108
117
|
|
|
109
|
-
Python >= 3.
|
|
118
|
+
Python >= 3.10, including 3.14
|
|
110
119
|
|
|
111
120
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
112
121
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
113
122
|
|
|
114
123
|
Unsupported Python Versions
|
|
115
124
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
116
|
-
Python <= 3.
|
|
125
|
+
Python <= 3.9
|
|
126
|
+
|
|
117
127
|
|
|
118
128
|
If you are using an `end-of-life`_
|
|
119
129
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -142,14 +152,14 @@ Windows
|
|
|
142
152
|
Next Steps
|
|
143
153
|
~~~~~~~~~~
|
|
144
154
|
|
|
145
|
-
- Read the `Client Library Documentation`_ for Privileged Access Manager
|
|
155
|
+
- Read the `Client Library Documentation`_ for Privileged Access Manager
|
|
146
156
|
to see other available methods on the client.
|
|
147
|
-
- Read the `Privileged Access Manager
|
|
157
|
+
- Read the `Privileged Access Manager Product documentation`_ to learn
|
|
148
158
|
more about the product and see How-to Guides.
|
|
149
159
|
- View this `README`_ to see the full list of Cloud
|
|
150
160
|
APIs that we cover.
|
|
151
161
|
|
|
152
|
-
.. _Privileged Access Manager
|
|
162
|
+
.. _Privileged Access Manager Product documentation: https://cloud.google.com/iam/
|
|
153
163
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
154
164
|
|
|
155
165
|
Logging
|
{google_cloud_privilegedaccessmanager-0.3.0 → google_cloud_privilegedaccessmanager-0.4.1}/README.rst
RENAMED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
Python Client for Privileged Access Manager
|
|
2
|
-
|
|
1
|
+
Python Client for Privileged Access Manager
|
|
2
|
+
===========================================
|
|
3
3
|
|
|
4
4
|
|preview| |pypi| |versions|
|
|
5
5
|
|
|
6
|
-
`Privileged Access Manager
|
|
6
|
+
`Privileged Access Manager`_: Privileged Access Manager (PAM) helps you on your journey towards least
|
|
7
|
+
privilege and helps mitigate risks tied to privileged access misuse or
|
|
8
|
+
abuse. PAM allows you to shift from always-on standing privileges towards
|
|
9
|
+
on-demand access with just-in-time, time-bound, and approval-based access
|
|
10
|
+
elevations. PAM allows IAM administrators to create entitlements that can
|
|
11
|
+
grant just-in-time, temporary access to any resource scope. Requesters can
|
|
12
|
+
explore eligible entitlements and request the access needed for their
|
|
13
|
+
task. Approvers are notified when approvals await their
|
|
14
|
+
decision. Streamlined workflows facilitated by using PAM can support
|
|
15
|
+
various use cases, including emergency access for incident responders,
|
|
16
|
+
time-boxed access for developers for critical deployment or maintenance,
|
|
17
|
+
temporary access for operators for data ingestion and audits, JIT access
|
|
18
|
+
to service accounts for automated tasks, and more.
|
|
7
19
|
|
|
8
20
|
- `Client Library Documentation`_
|
|
9
21
|
- `Product Documentation`_
|
|
@@ -14,9 +26,9 @@ Python Client for Privileged Access Manager API
|
|
|
14
26
|
:target: https://pypi.org/project/google-cloud-privilegedaccessmanager/
|
|
15
27
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-privilegedaccessmanager.svg
|
|
16
28
|
:target: https://pypi.org/project/google-cloud-privilegedaccessmanager/
|
|
17
|
-
.. _Privileged Access Manager
|
|
29
|
+
.. _Privileged Access Manager: https://cloud.google.com/iam/
|
|
18
30
|
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-privilegedaccessmanager/latest/summary_overview
|
|
19
|
-
.. _Product Documentation: https://cloud.google.com/iam/
|
|
31
|
+
.. _Product Documentation: https://cloud.google.com/iam/
|
|
20
32
|
|
|
21
33
|
Quick Start
|
|
22
34
|
-----------
|
|
@@ -25,12 +37,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
25
37
|
|
|
26
38
|
1. `Select or create a Cloud Platform project.`_
|
|
27
39
|
2. `Enable billing for your project.`_
|
|
28
|
-
3. `Enable the Privileged Access Manager
|
|
40
|
+
3. `Enable the Privileged Access Manager.`_
|
|
29
41
|
4. `Set up Authentication.`_
|
|
30
42
|
|
|
31
43
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
32
44
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
33
|
-
.. _Enable the Privileged Access Manager
|
|
45
|
+
.. _Enable the Privileged Access Manager.: https://cloud.google.com/iam/
|
|
34
46
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
35
47
|
|
|
36
48
|
Installation
|
|
@@ -61,14 +73,15 @@ Supported Python Versions
|
|
|
61
73
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
74
|
Python.
|
|
63
75
|
|
|
64
|
-
Python >= 3.
|
|
76
|
+
Python >= 3.10, including 3.14
|
|
65
77
|
|
|
66
78
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
79
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
80
|
|
|
69
81
|
Unsupported Python Versions
|
|
70
82
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
-
Python <= 3.
|
|
83
|
+
Python <= 3.9
|
|
84
|
+
|
|
72
85
|
|
|
73
86
|
If you are using an `end-of-life`_
|
|
74
87
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -97,14 +110,14 @@ Windows
|
|
|
97
110
|
Next Steps
|
|
98
111
|
~~~~~~~~~~
|
|
99
112
|
|
|
100
|
-
- Read the `Client Library Documentation`_ for Privileged Access Manager
|
|
113
|
+
- Read the `Client Library Documentation`_ for Privileged Access Manager
|
|
101
114
|
to see other available methods on the client.
|
|
102
|
-
- Read the `Privileged Access Manager
|
|
115
|
+
- Read the `Privileged Access Manager Product documentation`_ to learn
|
|
103
116
|
more about the product and see How-to Guides.
|
|
104
117
|
- View this `README`_ to see the full list of Cloud
|
|
105
118
|
APIs that we cover.
|
|
106
119
|
|
|
107
|
-
.. _Privileged Access Manager
|
|
120
|
+
.. _Privileged Access Manager Product documentation: https://cloud.google.com/iam/
|
|
108
121
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
109
122
|
|
|
110
123
|
Logging
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "0.
|
|
16
|
+
__version__ = "0.4.1" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -21,12 +21,7 @@ from google.cloud.privilegedaccessmanager_v1 import gapic_version as package_ver
|
|
|
21
21
|
|
|
22
22
|
__version__ = package_version.__version__
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
from importlib import metadata
|
|
26
|
-
else: # pragma: NO COVER
|
|
27
|
-
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
|
|
28
|
-
# this code path once we drop support for Python 3.7
|
|
29
|
-
import importlib_metadata as metadata
|
|
24
|
+
from importlib import metadata
|
|
30
25
|
|
|
31
26
|
from .services.privileged_access_manager import (
|
|
32
27
|
PrivilegedAccessManagerAsyncClient,
|
|
@@ -71,28 +66,17 @@ else: # pragma: NO COVER
|
|
|
71
66
|
# An older version of api_core is installed which does not define the
|
|
72
67
|
# functions above. We do equivalent checks manually.
|
|
73
68
|
try:
|
|
74
|
-
import sys
|
|
75
69
|
import warnings
|
|
76
70
|
|
|
77
71
|
_py_version_str = sys.version.split()[0]
|
|
78
72
|
_package_label = "google.cloud.privilegedaccessmanager_v1"
|
|
79
|
-
if sys.version_info < (3,
|
|
73
|
+
if sys.version_info < (3, 10):
|
|
80
74
|
warnings.warn(
|
|
81
75
|
"You are using a non-supported Python version "
|
|
82
76
|
+ f"({_py_version_str}). Google will not post any further "
|
|
83
77
|
+ f"updates to {_package_label} supporting this Python version. "
|
|
84
78
|
+ "Please upgrade to the latest Python version, or at "
|
|
85
|
-
+ f"least to Python 3.
|
|
86
|
-
FutureWarning,
|
|
87
|
-
)
|
|
88
|
-
if sys.version_info[:2] == (3, 9):
|
|
89
|
-
warnings.warn(
|
|
90
|
-
f"You are using a Python version ({_py_version_str}) "
|
|
91
|
-
+ f"which Google will stop supporting in {_package_label} in "
|
|
92
|
-
+ "January 2026. Please "
|
|
93
|
-
+ "upgrade to the latest Python version, or at "
|
|
94
|
-
+ "least to Python 3.10, before then, and "
|
|
95
|
-
+ f"then update {_package_label}.",
|
|
79
|
+
+ f"least to Python 3.10, and then update {_package_label}.",
|
|
96
80
|
FutureWarning,
|
|
97
81
|
)
|
|
98
82
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "0.
|
|
16
|
+
__version__ = "0.4.1" # {x-release-please-version}
|