google-cloud-maintenance-api 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.
Files changed (60) hide show
  1. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/MANIFEST.in +1 -1
  2. {google_cloud_maintenance_api-0.3.0/google_cloud_maintenance_api.egg-info → google_cloud_maintenance_api-0.4.1}/PKG-INFO +23 -21
  3. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/README.rst +17 -12
  4. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api/__init__.py +1 -1
  5. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api/gapic_version.py +2 -2
  6. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/__init__.py +4 -20
  7. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1beta → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1}/gapic_version.py +2 -2
  8. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1beta → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1}/services/__init__.py +1 -1
  9. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/__init__.py +1 -1
  10. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/async_client.py +31 -17
  11. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/client.py +37 -28
  12. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/pagers.py +5 -5
  13. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1beta → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1}/services/maintenance/transports/__init__.py +1 -1
  14. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/transports/base.py +16 -7
  15. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/transports/grpc.py +18 -14
  16. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/transports/grpc_asyncio.py +17 -13
  17. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/transports/rest.py +18 -14
  18. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/services/maintenance/transports/rest_base.py +1 -1
  19. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1beta → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1}/types/__init__.py +1 -1
  20. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/types/maintenance_service.py +11 -8
  21. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/__init__.py +4 -20
  22. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1 → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1beta}/gapic_version.py +2 -2
  23. {google_cloud_maintenance_api-0.3.0/tests → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1beta/services}/__init__.py +1 -1
  24. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/__init__.py +1 -1
  25. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/async_client.py +31 -17
  26. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/client.py +37 -28
  27. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/pagers.py +5 -5
  28. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1 → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1beta}/services/maintenance/transports/__init__.py +1 -1
  29. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/transports/base.py +16 -7
  30. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/transports/grpc.py +18 -14
  31. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/transports/grpc_asyncio.py +17 -13
  32. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/transports/rest.py +18 -14
  33. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/services/maintenance/transports/rest_base.py +1 -1
  34. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1 → google_cloud_maintenance_api-0.4.1/google/cloud/maintenance_api_v1beta}/types/__init__.py +1 -1
  35. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/types/maintenance_service.py +12 -9
  36. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1/google_cloud_maintenance_api.egg-info}/PKG-INFO +23 -21
  37. google_cloud_maintenance_api-0.4.1/google_cloud_maintenance_api.egg-info/requires.txt +11 -0
  38. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/setup.py +6 -9
  39. {google_cloud_maintenance_api-0.3.0/tests/unit → google_cloud_maintenance_api-0.4.1/tests}/__init__.py +1 -1
  40. {google_cloud_maintenance_api-0.3.0/google/cloud/maintenance_api_v1/services → google_cloud_maintenance_api-0.4.1/tests/unit}/__init__.py +1 -1
  41. google_cloud_maintenance_api-0.4.1/tests/unit/gapic/__init__.py +15 -0
  42. google_cloud_maintenance_api-0.4.1/tests/unit/gapic/maintenance_api_v1/__init__.py +15 -0
  43. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/tests/unit/gapic/maintenance_api_v1/test_maintenance.py +250 -159
  44. google_cloud_maintenance_api-0.4.1/tests/unit/gapic/maintenance_api_v1beta/__init__.py +15 -0
  45. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/tests/unit/gapic/maintenance_api_v1beta/test_maintenance.py +250 -159
  46. google_cloud_maintenance_api-0.3.0/google_cloud_maintenance_api.egg-info/requires.txt +0 -11
  47. google_cloud_maintenance_api-0.3.0/tests/unit/gapic/__init__.py +0 -15
  48. google_cloud_maintenance_api-0.3.0/tests/unit/gapic/maintenance_api_v1/__init__.py +0 -15
  49. google_cloud_maintenance_api-0.3.0/tests/unit/gapic/maintenance_api_v1beta/__init__.py +0 -15
  50. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/LICENSE +0 -0
  51. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api/py.typed +0 -0
  52. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/gapic_metadata.json +0 -0
  53. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1/py.typed +0 -0
  54. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/gapic_metadata.json +0 -0
  55. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google/cloud/maintenance_api_v1beta/py.typed +0 -0
  56. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google_cloud_maintenance_api.egg-info/SOURCES.txt +0 -0
  57. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google_cloud_maintenance_api.egg-info/dependency_links.txt +0 -0
  58. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google_cloud_maintenance_api.egg-info/not-zip-safe +0 -0
  59. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/google_cloud_maintenance_api.egg-info/top_level.txt +0 -0
  60. {google_cloud_maintenance_api-0.3.0 → google_cloud_maintenance_api-0.4.1}/setup.cfg +0 -0
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.
@@ -1,20 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-maintenance-api
3
- Version: 0.3.0
3
+ Version: 0.4.1
4
4
  Summary: Google Cloud Maintenance Api API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-maintenance-api
6
6
  Author: Google LLC
7
7
  Author-email: googleapis-packages@google.com
8
- License: Apache 2.0
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.7
22
+ Requires-Python: >=3.10
26
23
  License-File: LICENSE
27
- Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1
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.33.2
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!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
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,16 @@ Dynamic: requires-dist
43
40
  Dynamic: requires-python
44
41
  Dynamic: summary
45
42
 
46
- Python Client for Maintenance API
47
- =================================
43
+ Python Client for Maintenance
44
+ =============================
48
45
 
49
46
  |preview| |pypi| |versions|
50
47
 
51
- `Maintenance API`_: The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. It offers users visibility into upcoming, ongoing, and completed maintenance, along with controls to manage certain maintenance activities, such as mainteance windows, rescheduling, and on-demand updates.
48
+ `Cloud Maintenance`_: The Maintenance API provides a centralized view of planned disruptive
49
+ maintenance events across supported Google Cloud products. It offers users
50
+ visibility into upcoming, ongoing, and completed maintenance, along with
51
+ controls to manage certain maintenance activities, such as maintenance
52
+ windows, rescheduling, and on-demand updates.
52
53
 
53
54
  - `Client Library Documentation`_
54
55
  - `Product Documentation`_
@@ -59,9 +60,9 @@ Python Client for Maintenance API
59
60
  :target: https://pypi.org/project/google-cloud-maintenance-api/
60
61
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-maintenance-api.svg
61
62
  :target: https://pypi.org/project/google-cloud-maintenance-api/
62
- .. _Maintenance API: https://cloud.google.com/unified-maintenance/docs/overview
63
+ .. _Cloud Maintenance: https://cloud.google.com/unified-maintenance/
63
64
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-maintenance-api/latest/summary_overview
64
- .. _Product Documentation: https://cloud.google.com/unified-maintenance/docs/overview
65
+ .. _Product Documentation: https://cloud.google.com/unified-maintenance/
65
66
 
66
67
  Quick Start
67
68
  -----------
@@ -70,12 +71,12 @@ In order to use this library, you first need to go through the following steps:
70
71
 
71
72
  1. `Select or create a Cloud Platform project.`_
72
73
  2. `Enable billing for your project.`_
73
- 3. `Enable the Maintenance API.`_
74
+ 3. `Enable the Maintenance.`_
74
75
  4. `Set up Authentication.`_
75
76
 
76
77
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
77
78
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
78
- .. _Enable the Maintenance API.: https://cloud.google.com/unified-maintenance/docs/overview
79
+ .. _Enable the Maintenance.: https://cloud.google.com/unified-maintenance/
79
80
  .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
80
81
 
81
82
  Installation
@@ -106,14 +107,15 @@ Supported Python Versions
106
107
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
107
108
  Python.
108
109
 
109
- Python >= 3.7, including 3.14
110
+ Python >= 3.10, including 3.14
110
111
 
111
112
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
112
113
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
113
114
 
114
115
  Unsupported Python Versions
115
116
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
- Python <= 3.6
117
+ Python <= 3.9
118
+
117
119
 
118
120
  If you are using an `end-of-life`_
119
121
  version of Python, we recommend that you update as soon as possible to an actively supported version.
@@ -142,14 +144,14 @@ Windows
142
144
  Next Steps
143
145
  ~~~~~~~~~~
144
146
 
145
- - Read the `Client Library Documentation`_ for Maintenance API
147
+ - Read the `Client Library Documentation`_ for Maintenance
146
148
  to see other available methods on the client.
147
- - Read the `Maintenance API Product documentation`_ to learn
149
+ - Read the `Maintenance Product documentation`_ to learn
148
150
  more about the product and see How-to Guides.
149
151
  - View this `README`_ to see the full list of Cloud
150
152
  APIs that we cover.
151
153
 
152
- .. _Maintenance API Product documentation: https://cloud.google.com/unified-maintenance/docs/overview
154
+ .. _Maintenance Product documentation: https://cloud.google.com/unified-maintenance/
153
155
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
154
156
 
155
157
  Logging
@@ -1,9 +1,13 @@
1
- Python Client for Maintenance API
2
- =================================
1
+ Python Client for Maintenance
2
+ =============================
3
3
 
4
4
  |preview| |pypi| |versions|
5
5
 
6
- `Maintenance API`_: The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. It offers users visibility into upcoming, ongoing, and completed maintenance, along with controls to manage certain maintenance activities, such as mainteance windows, rescheduling, and on-demand updates.
6
+ `Cloud Maintenance`_: The Maintenance API provides a centralized view of planned disruptive
7
+ maintenance events across supported Google Cloud products. It offers users
8
+ visibility into upcoming, ongoing, and completed maintenance, along with
9
+ controls to manage certain maintenance activities, such as maintenance
10
+ windows, rescheduling, and on-demand updates.
7
11
 
8
12
  - `Client Library Documentation`_
9
13
  - `Product Documentation`_
@@ -14,9 +18,9 @@ Python Client for Maintenance API
14
18
  :target: https://pypi.org/project/google-cloud-maintenance-api/
15
19
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-maintenance-api.svg
16
20
  :target: https://pypi.org/project/google-cloud-maintenance-api/
17
- .. _Maintenance API: https://cloud.google.com/unified-maintenance/docs/overview
21
+ .. _Cloud Maintenance: https://cloud.google.com/unified-maintenance/
18
22
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-maintenance-api/latest/summary_overview
19
- .. _Product Documentation: https://cloud.google.com/unified-maintenance/docs/overview
23
+ .. _Product Documentation: https://cloud.google.com/unified-maintenance/
20
24
 
21
25
  Quick Start
22
26
  -----------
@@ -25,12 +29,12 @@ In order to use this library, you first need to go through the following steps:
25
29
 
26
30
  1. `Select or create a Cloud Platform project.`_
27
31
  2. `Enable billing for your project.`_
28
- 3. `Enable the Maintenance API.`_
32
+ 3. `Enable the Maintenance.`_
29
33
  4. `Set up Authentication.`_
30
34
 
31
35
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
32
36
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
33
- .. _Enable the Maintenance API.: https://cloud.google.com/unified-maintenance/docs/overview
37
+ .. _Enable the Maintenance.: https://cloud.google.com/unified-maintenance/
34
38
  .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
35
39
 
36
40
  Installation
@@ -61,14 +65,15 @@ Supported Python Versions
61
65
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
62
66
  Python.
63
67
 
64
- Python >= 3.7, including 3.14
68
+ Python >= 3.10, including 3.14
65
69
 
66
70
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
67
71
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
68
72
 
69
73
  Unsupported Python Versions
70
74
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
- Python <= 3.6
75
+ Python <= 3.9
76
+
72
77
 
73
78
  If you are using an `end-of-life`_
74
79
  version of Python, we recommend that you update as soon as possible to an actively supported version.
@@ -97,14 +102,14 @@ Windows
97
102
  Next Steps
98
103
  ~~~~~~~~~~
99
104
 
100
- - Read the `Client Library Documentation`_ for Maintenance API
105
+ - Read the `Client Library Documentation`_ for Maintenance
101
106
  to see other available methods on the client.
102
- - Read the `Maintenance API Product documentation`_ to learn
107
+ - Read the `Maintenance Product documentation`_ to learn
103
108
  more about the product and see How-to Guides.
104
109
  - View this `README`_ to see the full list of Cloud
105
110
  APIs that we cover.
106
111
 
107
- .. _Maintenance API Product documentation: https://cloud.google.com/unified-maintenance/docs/overview
112
+ .. _Maintenance Product documentation: https://cloud.google.com/unified-maintenance/
108
113
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
109
114
 
110
115
  Logging
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.3.0" # {x-release-please-version}
16
+ __version__ = "0.4.1" # {x-release-please-version}
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.maintenance_api_v1 import gapic_version as package_version
21
21
 
22
22
  __version__ = package_version.__version__
23
23
 
24
- if sys.version_info >= (3, 8): # pragma: NO COVER
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.maintenance import MaintenanceAsyncClient, MaintenanceClient
32
27
  from .types.maintenance_service import (
@@ -50,28 +45,17 @@ else: # pragma: NO COVER
50
45
  # An older version of api_core is installed which does not define the
51
46
  # functions above. We do equivalent checks manually.
52
47
  try:
53
- import sys
54
48
  import warnings
55
49
 
56
50
  _py_version_str = sys.version.split()[0]
57
51
  _package_label = "google.cloud.maintenance_api_v1"
58
- if sys.version_info < (3, 9):
52
+ if sys.version_info < (3, 10):
59
53
  warnings.warn(
60
54
  "You are using a non-supported Python version "
61
55
  + f"({_py_version_str}). Google will not post any further "
62
56
  + f"updates to {_package_label} supporting this Python version. "
63
57
  + "Please upgrade to the latest Python version, or at "
64
- + f"least to Python 3.9, and then update {_package_label}.",
65
- FutureWarning,
66
- )
67
- if sys.version_info[:2] == (3, 9):
68
- warnings.warn(
69
- f"You are using a Python version ({_py_version_str}) "
70
- + f"which Google will stop supporting in {_package_label} in "
71
- + "January 2026. Please "
72
- + "upgrade to the latest Python version, or at "
73
- + "least to Python 3.10, before then, and "
74
- + f"then update {_package_label}.",
58
+ + f"least to Python 3.10, and then update {_package_label}.",
75
59
  FutureWarning,
76
60
  )
77
61
 
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.3.0" # {x-release-please-version}
16
+ __version__ = "0.4.1" # {x-release-please-version}
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
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,9 +13,9 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- from collections import OrderedDict
17
16
  import logging as std_logging
18
17
  import re
18
+ from collections import OrderedDict
19
19
  from typing import (
20
20
  Callable,
21
21
  Dict,
@@ -29,13 +29,13 @@ from typing import (
29
29
  Union,
30
30
  )
31
31
 
32
+ import google.protobuf
32
33
  from google.api_core import exceptions as core_exceptions
33
34
  from google.api_core import gapic_v1
34
35
  from google.api_core import retry_async as retries
35
36
  from google.api_core.client_options import ClientOptions
36
37
  from google.auth import credentials as ga_credentials # type: ignore
37
38
  from google.oauth2 import service_account # type: ignore
38
- import google.protobuf
39
39
 
40
40
  from google.cloud.maintenance_api_v1 import gapic_version as package_version
41
41
 
@@ -44,8 +44,8 @@ try:
44
44
  except AttributeError: # pragma: NO COVER
45
45
  OptionalRetry = Union[retries.AsyncRetry, object, None] # type: ignore
46
46
 
47
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
47
48
  from google.cloud.location import locations_pb2 # type: ignore
48
- from google.protobuf import timestamp_pb2 # type: ignore
49
49
 
50
50
  from google.cloud.maintenance_api_v1.services.maintenance import pagers
51
51
  from google.cloud.maintenance_api_v1.types import maintenance_service
@@ -116,7 +116,10 @@ class MaintenanceAsyncClient:
116
116
  Returns:
117
117
  MaintenanceAsyncClient: The constructed client.
118
118
  """
119
- return MaintenanceClient.from_service_account_info.__func__(MaintenanceAsyncClient, info, *args, **kwargs) # type: ignore
119
+ sa_info_func = (
120
+ MaintenanceClient.from_service_account_info.__func__ # type: ignore
121
+ )
122
+ return sa_info_func(MaintenanceAsyncClient, info, *args, **kwargs)
120
123
 
121
124
  @classmethod
122
125
  def from_service_account_file(cls, filename: str, *args, **kwargs):
@@ -132,7 +135,10 @@ class MaintenanceAsyncClient:
132
135
  Returns:
133
136
  MaintenanceAsyncClient: The constructed client.
134
137
  """
135
- return MaintenanceClient.from_service_account_file.__func__(MaintenanceAsyncClient, filename, *args, **kwargs) # type: ignore
138
+ sa_file_func = (
139
+ MaintenanceClient.from_service_account_file.__func__ # type: ignore
140
+ )
141
+ return sa_file_func(MaintenanceAsyncClient, filename, *args, **kwargs)
136
142
 
137
143
  from_service_account_json = from_service_account_file
138
144
 
@@ -182,7 +188,7 @@ class MaintenanceAsyncClient:
182
188
  return self._client.transport
183
189
 
184
190
  @property
185
- def api_endpoint(self):
191
+ def api_endpoint(self) -> str:
186
192
  """Return the API endpoint used by the client instance.
187
193
 
188
194
  Returns:
@@ -662,7 +668,7 @@ class MaintenanceAsyncClient:
662
668
 
663
669
  async def get_location(
664
670
  self,
665
- request: Optional[locations_pb2.GetLocationRequest] = None,
671
+ request: Optional[Union[locations_pb2.GetLocationRequest, dict]] = None,
666
672
  *,
667
673
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
668
674
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -688,8 +694,12 @@ class MaintenanceAsyncClient:
688
694
  # Create or coerce a protobuf request object.
689
695
  # The request isn't a proto-plus wrapped type,
690
696
  # so it must be constructed via keyword expansion.
691
- if isinstance(request, dict):
692
- request = locations_pb2.GetLocationRequest(**request)
697
+ if request is None:
698
+ request_pb = locations_pb2.GetLocationRequest()
699
+ elif isinstance(request, dict):
700
+ request_pb = locations_pb2.GetLocationRequest(**request)
701
+ else:
702
+ request_pb = request
693
703
 
694
704
  # Wrap the RPC method; this adds retry and timeout information,
695
705
  # and friendly error handling.
@@ -698,7 +708,7 @@ class MaintenanceAsyncClient:
698
708
  # Certain fields should be provided within the metadata header;
699
709
  # add these here.
700
710
  metadata = tuple(metadata) + (
701
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
711
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
702
712
  )
703
713
 
704
714
  # Validate the universe domain.
@@ -706,7 +716,7 @@ class MaintenanceAsyncClient:
706
716
 
707
717
  # Send the request.
708
718
  response = await rpc(
709
- request,
719
+ request_pb,
710
720
  retry=retry,
711
721
  timeout=timeout,
712
722
  metadata=metadata,
@@ -717,7 +727,7 @@ class MaintenanceAsyncClient:
717
727
 
718
728
  async def list_locations(
719
729
  self,
720
- request: Optional[locations_pb2.ListLocationsRequest] = None,
730
+ request: Optional[Union[locations_pb2.ListLocationsRequest, dict]] = None,
721
731
  *,
722
732
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
723
733
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -743,8 +753,12 @@ class MaintenanceAsyncClient:
743
753
  # Create or coerce a protobuf request object.
744
754
  # The request isn't a proto-plus wrapped type,
745
755
  # so it must be constructed via keyword expansion.
746
- if isinstance(request, dict):
747
- request = locations_pb2.ListLocationsRequest(**request)
756
+ if request is None:
757
+ request_pb = locations_pb2.ListLocationsRequest()
758
+ elif isinstance(request, dict):
759
+ request_pb = locations_pb2.ListLocationsRequest(**request)
760
+ else:
761
+ request_pb = request
748
762
 
749
763
  # Wrap the RPC method; this adds retry and timeout information,
750
764
  # and friendly error handling.
@@ -753,7 +767,7 @@ class MaintenanceAsyncClient:
753
767
  # Certain fields should be provided within the metadata header;
754
768
  # add these here.
755
769
  metadata = tuple(metadata) + (
756
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
770
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
757
771
  )
758
772
 
759
773
  # Validate the universe domain.
@@ -761,7 +775,7 @@ class MaintenanceAsyncClient:
761
775
 
762
776
  # Send the request.
763
777
  response = await rpc(
764
- request,
778
+ request_pb,
765
779
  retry=retry,
766
780
  timeout=timeout,
767
781
  metadata=metadata,