Skip to content

Commit 5239b18

Browse files
author
Jon Skeet
authored
feat: regenerate google-cloud-[e-i] packages (#17079)
This Pull Request drops support for Python <=3.9 in generated packages. This is part of our ongoing effort to modernize the Cloud Python SDK libraries and remove support for End-of-Life (EOL) Python versions. - Removed Python <=3.9 from testing, configuration, and constraints files. - Resolved dependency conflicts arising from dropping Python <=3.9 support. - Cleaned up obsolete code related to Python <=3.9 support. - Updated select copyright dates - Updated some autogenerated headings - Updated some tests to resolve issues discovered during this migration.
1 parent ec54f78 commit 5239b18

454 files changed

Lines changed: 2569 additions & 4282 deletions

File tree

Some content is hidden

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

packages/google-cloud-edgecontainer/docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -83,7 +83,7 @@
8383

8484
# General information about the project.
8585
project = "google-cloud-edgecontainer"
86-
copyright = "2025, Google, LLC"
86+
copyright = "2026, Google, LLC"
8787
author = "Google APIs"
8888

8989
# The version info for the project you're documenting, acts as replacement for

packages/google-cloud-edgecontainer/google/cloud/edgecontainer_v1/__init__.py

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -21,13 +21,7 @@
2121

2222
__version__ = package_version.__version__
2323

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
30-
24+
from importlib import metadata
3125

3226
from .services.edge_container import EdgeContainerAsyncClient, EdgeContainerClient
3327
from .types.resources import (
@@ -93,28 +87,17 @@
9387
# An older version of api_core is installed which does not define the
9488
# functions above. We do equivalent checks manually.
9589
try:
96-
import sys
9790
import warnings
9891

9992
_py_version_str = sys.version.split()[0]
10093
_package_label = "google.cloud.edgecontainer_v1"
101-
if sys.version_info < (3, 9):
94+
if sys.version_info < (3, 10):
10295
warnings.warn(
10396
"You are using a non-supported Python version "
10497
+ f"({_py_version_str}). Google will not post any further "
10598
+ f"updates to {_package_label} supporting this Python version. "
10699
+ "Please upgrade to the latest Python version, or at "
107-
+ f"least to Python 3.9, and then update {_package_label}.",
108-
FutureWarning,
109-
)
110-
if sys.version_info[:2] == (3, 9):
111-
warnings.warn(
112-
f"You are using a Python version ({_py_version_str}) "
113-
+ f"which Google will stop supporting in {_package_label} in "
114-
+ "January 2026. Please "
115-
+ "upgrade to the latest Python version, or at "
116-
+ "least to Python 3.10, before then, and "
117-
+ f"then update {_package_label}.",
100+
+ f"least to Python 3.10, and then update {_package_label}.",
118101
FutureWarning,
119102
)
120103

packages/google-cloud-edgecontainer/google/cloud/edgecontainer_v1/services/edge_container/async_client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -597,11 +597,11 @@ async def sample_create_cluster():
597597
)
598598
599599
# Make the request
600-
operation = client.create_cluster(request=request)
600+
operation = await client.create_cluster(request=request)
601601
602602
print("Waiting for operation to complete...")
603603
604-
response = (await operation).result()
604+
response = await operation.result()
605605
606606
# Handle the response
607607
print(response)
@@ -738,11 +738,11 @@ async def sample_update_cluster():
738738
)
739739
740740
# Make the request
741-
operation = client.update_cluster(request=request)
741+
operation = await client.update_cluster(request=request)
742742
743743
print("Waiting for operation to complete...")
744744
745-
response = (await operation).result()
745+
response = await operation.result()
746746
747747
# Handle the response
748748
print(response)
@@ -879,11 +879,11 @@ async def sample_upgrade_cluster():
879879
)
880880
881881
# Make the request
882-
operation = client.upgrade_cluster(request=request)
882+
operation = await client.upgrade_cluster(request=request)
883883
884884
print("Waiting for operation to complete...")
885885
886-
response = (await operation).result()
886+
response = await operation.result()
887887
888888
# Handle the response
889889
print(response)
@@ -1020,11 +1020,11 @@ async def sample_delete_cluster():
10201020
)
10211021
10221022
# Make the request
1023-
operation = client.delete_cluster(request=request)
1023+
operation = await client.delete_cluster(request=request)
10241024
10251025
print("Waiting for operation to complete...")
10261026
1027-
response = (await operation).result()
1027+
response = await operation.result()
10281028
10291029
# Handle the response
10301030
print(response)
@@ -1615,11 +1615,11 @@ async def sample_create_node_pool():
16151615
)
16161616
16171617
# Make the request
1618-
operation = client.create_node_pool(request=request)
1618+
operation = await client.create_node_pool(request=request)
16191619
16201620
print("Waiting for operation to complete...")
16211621
1622-
response = (await operation).result()
1622+
response = await operation.result()
16231623
16241624
# Handle the response
16251625
print(response)
@@ -1755,11 +1755,11 @@ async def sample_update_node_pool():
17551755
)
17561756
17571757
# Make the request
1758-
operation = client.update_node_pool(request=request)
1758+
operation = await client.update_node_pool(request=request)
17591759
17601760
print("Waiting for operation to complete...")
17611761
1762-
response = (await operation).result()
1762+
response = await operation.result()
17631763
17641764
# Handle the response
17651765
print(response)
@@ -1892,11 +1892,11 @@ async def sample_delete_node_pool():
18921892
)
18931893
18941894
# Make the request
1895-
operation = client.delete_node_pool(request=request)
1895+
operation = await client.delete_node_pool(request=request)
18961896
18971897
print("Waiting for operation to complete...")
18981898
1899-
response = (await operation).result()
1899+
response = await operation.result()
19001900
19011901
# Handle the response
19021902
print(response)
@@ -2502,11 +2502,11 @@ async def sample_create_vpn_connection():
25022502
)
25032503
25042504
# Make the request
2505-
operation = client.create_vpn_connection(request=request)
2505+
operation = await client.create_vpn_connection(request=request)
25062506
25072507
print("Waiting for operation to complete...")
25082508
2509-
response = (await operation).result()
2509+
response = await operation.result()
25102510
25112511
# Handle the response
25122512
print(response)
@@ -2645,11 +2645,11 @@ async def sample_delete_vpn_connection():
26452645
)
26462646
26472647
# Make the request
2648-
operation = client.delete_vpn_connection(request=request)
2648+
operation = await client.delete_vpn_connection(request=request)
26492649
26502650
print("Waiting for operation to complete...")
26512651
2652-
response = (await operation).result()
2652+
response = await operation.result()
26532653
26542654
# Handle the response
26552655
print(response)

packages/google-cloud-edgecontainer/noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@
3131
LINT_PATHS.append("samples")
3232

3333
ALL_PYTHON = [
34-
"3.9",
3534
"3.10",
3635
"3.11",
3736
"3.12",
@@ -390,7 +389,6 @@ def docs(session):
390389
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
391390
session.run(
392391
"sphinx-build",
393-
"-W", # warnings as errors
394392
"-T", # show full traceback on exception
395393
"-N", # no colors
396394
"-b",

packages/google-cloud-edgecontainer/samples/generated_samples/edgecontainer_v1_generated_edge_container_create_cluster_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -59,11 +59,11 @@ async def sample_create_cluster():
5959
)
6060

6161
# Make the request
62-
operation = client.create_cluster(request=request)
62+
operation = await client.create_cluster(request=request)
6363

6464
print("Waiting for operation to complete...")
6565

66-
response = (await operation).result()
66+
response = await operation.result()
6767

6868
# Handle the response
6969
print(response)

packages/google-cloud-edgecontainer/samples/generated_samples/edgecontainer_v1_generated_edge_container_create_node_pool_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -50,11 +50,11 @@ async def sample_create_node_pool():
5050
)
5151

5252
# Make the request
53-
operation = client.create_node_pool(request=request)
53+
operation = await client.create_node_pool(request=request)
5454

5555
print("Waiting for operation to complete...")
5656

57-
response = (await operation).result()
57+
response = await operation.result()
5858

5959
# Handle the response
6060
print(response)

packages/google-cloud-edgecontainer/samples/generated_samples/edgecontainer_v1_generated_edge_container_create_vpn_connection_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -49,11 +49,11 @@ async def sample_create_vpn_connection():
4949
)
5050

5151
# Make the request
52-
operation = client.create_vpn_connection(request=request)
52+
operation = await client.create_vpn_connection(request=request)
5353

5454
print("Waiting for operation to complete...")
5555

56-
response = (await operation).result()
56+
response = await operation.result()
5757

5858
# Handle the response
5959
print(response)

packages/google-cloud-edgecontainer/samples/generated_samples/edgecontainer_v1_generated_edge_container_delete_cluster_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -44,11 +44,11 @@ async def sample_delete_cluster():
4444
)
4545

4646
# Make the request
47-
operation = client.delete_cluster(request=request)
47+
operation = await client.delete_cluster(request=request)
4848

4949
print("Waiting for operation to complete...")
5050

51-
response = (await operation).result()
51+
response = await operation.result()
5252

5353
# Handle the response
5454
print(response)

packages/google-cloud-edgecontainer/samples/generated_samples/edgecontainer_v1_generated_edge_container_delete_node_pool_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -44,11 +44,11 @@ async def sample_delete_node_pool():
4444
)
4545

4646
# Make the request
47-
operation = client.delete_node_pool(request=request)
47+
operation = await client.delete_node_pool(request=request)
4848

4949
print("Waiting for operation to complete...")
5050

51-
response = (await operation).result()
51+
response = await operation.result()
5252

5353
# Handle the response
5454
print(response)

packages/google-cloud-edgecontainer/samples/generated_samples/edgecontainer_v1_generated_edge_container_delete_vpn_connection_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -44,11 +44,11 @@ async def sample_delete_vpn_connection():
4444
)
4545

4646
# Make the request
47-
operation = client.delete_vpn_connection(request=request)
47+
operation = await client.delete_vpn_connection(request=request)
4848

4949
print("Waiting for operation to complete...")
5050

51-
response = (await operation).result()
51+
response = await operation.result()
5252

5353
# Handle the response
5454
print(response)

0 commit comments

Comments
 (0)