Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 77d4fcc

Browse filesBrowse files
authored
feat: regenerate google-cloud-b packages (#17090)
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 c80c5f7 commit 77d4fcc
Copy full SHA for 77d4fcc

279 files changed

+1,547-3,131Lines changed: 1547 additions & 3131 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-cloud-backupdr/docs/conf.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/docs/conf.py
+2-2Lines 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-backupdr"
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
Collapse file

‎packages/google-cloud-backupdr/google/cloud/backupdr_v1/__init__.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/google/cloud/backupdr_v1/__init__.py
+4-21Lines 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.backup_dr import BackupDRAsyncClient, BackupDRClient
3327
from .services.backup_dr_protection_summary import (
@@ -196,28 +190,17 @@
196190
# An older version of api_core is installed which does not define the
197191
# functions above. We do equivalent checks manually.
198192
try:
199-
import sys
200193
import warnings
201194

202195
_py_version_str = sys.version.split()[0]
203196
_package_label = "google.cloud.backupdr_v1"
204-
if sys.version_info < (3, 9):
197+
if sys.version_info < (3, 10):
205198
warnings.warn(
206199
"You are using a non-supported Python version "
207200
+ f"({_py_version_str}). Google will not post any further "
208201
+ f"updates to {_package_label} supporting this Python version. "
209202
+ "Please upgrade to the latest Python version, or at "
210-
+ f"least to Python 3.9, and then update {_package_label}.",
211-
FutureWarning,
212-
)
213-
if sys.version_info[:2] == (3, 9):
214-
warnings.warn(
215-
f"You are using a Python version ({_py_version_str}) "
216-
+ f"which Google will stop supporting in {_package_label} in "
217-
+ "January 2026. Please "
218-
+ "upgrade to the latest Python version, or at "
219-
+ "least to Python 3.10, before then, and "
220-
+ f"then update {_package_label}.",
203+
+ f"least to Python 3.10, and then update {_package_label}.",
221204
FutureWarning,
222205
)
223206

Collapse file

‎packages/google-cloud-backupdr/google/cloud/backupdr_v1/services/backup_dr/async_client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/google/cloud/backupdr_v1/services/backup_dr/async_client.py
+35-35Lines changed: 35 additions & 35 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.
@@ -625,11 +625,11 @@ async def sample_create_management_server():
625625
)
626626
627627
# Make the request
628-
operation = client.create_management_server(request=request)
628+
operation = await client.create_management_server(request=request)
629629
630630
print("Waiting for operation to complete...")
631631
632-
response = (await operation).result()
632+
response = await operation.result()
633633
634634
# Handle the response
635635
print(response)
@@ -774,11 +774,11 @@ async def sample_delete_management_server():
774774
)
775775
776776
# Make the request
777-
operation = client.delete_management_server(request=request)
777+
operation = await client.delete_management_server(request=request)
778778
779779
print("Waiting for operation to complete...")
780780
781-
response = (await operation).result()
781+
response = await operation.result()
782782
783783
# Handle the response
784784
print(response)
@@ -909,11 +909,11 @@ async def sample_create_backup_vault():
909909
)
910910
911911
# Make the request
912-
operation = client.create_backup_vault(request=request)
912+
operation = await client.create_backup_vault(request=request)
913913
914914
print("Waiting for operation to complete...")
915915
916-
response = (await operation).result()
916+
response = await operation.result()
917917
918918
# Handle the response
919919
print(response)
@@ -1427,11 +1427,11 @@ async def sample_update_backup_vault():
14271427
)
14281428
14291429
# Make the request
1430-
operation = client.update_backup_vault(request=request)
1430+
operation = await client.update_backup_vault(request=request)
14311431
14321432
print("Waiting for operation to complete...")
14331433
1434-
response = (await operation).result()
1434+
response = await operation.result()
14351435
14361436
# Handle the response
14371437
print(response)
@@ -1566,11 +1566,11 @@ async def sample_delete_backup_vault():
15661566
)
15671567
15681568
# Make the request
1569-
operation = client.delete_backup_vault(request=request)
1569+
operation = await client.delete_backup_vault(request=request)
15701570
15711571
print("Waiting for operation to complete...")
15721572
1573-
response = (await operation).result()
1573+
response = await operation.result()
15741574
15751575
# Handle the response
15761576
print(response)
@@ -1940,11 +1940,11 @@ async def sample_update_data_source():
19401940
)
19411941
19421942
# Make the request
1943-
operation = client.update_data_source(request=request)
1943+
operation = await client.update_data_source(request=request)
19441944
19451945
print("Waiting for operation to complete...")
19461946
1947-
response = (await operation).result()
1947+
response = await operation.result()
19481948
19491949
# Handle the response
19501950
print(response)
@@ -2459,11 +2459,11 @@ async def sample_update_backup():
24592459
)
24602460
24612461
# Make the request
2462-
operation = client.update_backup(request=request)
2462+
operation = await client.update_backup(request=request)
24632463
24642464
print("Waiting for operation to complete...")
24652465
2466-
response = (await operation).result()
2466+
response = await operation.result()
24672467
24682468
# Handle the response
24692469
print(response)
@@ -2598,11 +2598,11 @@ async def sample_delete_backup():
25982598
)
25992599
26002600
# Make the request
2601-
operation = client.delete_backup(request=request)
2601+
operation = await client.delete_backup(request=request)
26022602
26032603
print("Waiting for operation to complete...")
26042604
2605-
response = (await operation).result()
2605+
response = await operation.result()
26062606
26072607
# Handle the response
26082608
print(response)
@@ -2726,11 +2726,11 @@ async def sample_restore_backup():
27262726
)
27272727
27282728
# Make the request
2729-
operation = client.restore_backup(request=request)
2729+
operation = await client.restore_backup(request=request)
27302730
27312731
print("Waiting for operation to complete...")
27322732
2733-
response = (await operation).result()
2733+
response = await operation.result()
27342734
27352735
# Handle the response
27362736
print(response)
@@ -2867,11 +2867,11 @@ async def sample_create_backup_plan():
28672867
)
28682868
28692869
# Make the request
2870-
operation = client.create_backup_plan(request=request)
2870+
operation = await client.create_backup_plan(request=request)
28712871
28722872
print("Waiting for operation to complete...")
28732873
2874-
response = (await operation).result()
2874+
response = await operation.result()
28752875
28762876
# Handle the response
28772877
print(response)
@@ -3025,11 +3025,11 @@ async def sample_update_backup_plan():
30253025
)
30263026
30273027
# Make the request
3028-
operation = client.update_backup_plan(request=request)
3028+
operation = await client.update_backup_plan(request=request)
30293029
30303030
print("Waiting for operation to complete...")
30313031
3032-
response = (await operation).result()
3032+
response = await operation.result()
30333033
30343034
# Handle the response
30353035
print(response)
@@ -3411,11 +3411,11 @@ async def sample_delete_backup_plan():
34113411
)
34123412
34133413
# Make the request
3414-
operation = client.delete_backup_plan(request=request)
3414+
operation = await client.delete_backup_plan(request=request)
34153415
34163416
print("Waiting for operation to complete...")
34173417
3418-
response = (await operation).result()
3418+
response = await operation.result()
34193419
34203420
# Handle the response
34213421
print(response)
@@ -3805,11 +3805,11 @@ async def sample_create_backup_plan_association():
38053805
)
38063806
38073807
# Make the request
3808-
operation = client.create_backup_plan_association(request=request)
3808+
operation = await client.create_backup_plan_association(request=request)
38093809
38103810
print("Waiting for operation to complete...")
38113811
3812-
response = (await operation).result()
3812+
response = await operation.result()
38133813
38143814
# Handle the response
38153815
print(response)
@@ -3963,11 +3963,11 @@ async def sample_update_backup_plan_association():
39633963
)
39643964
39653965
# Make the request
3966-
operation = client.update_backup_plan_association(request=request)
3966+
operation = await client.update_backup_plan_association(request=request)
39673967
39683968
print("Waiting for operation to complete...")
39693969
3970-
response = (await operation).result()
3970+
response = await operation.result()
39713971
39723972
# Handle the response
39733973
print(response)
@@ -4519,11 +4519,11 @@ async def sample_delete_backup_plan_association():
45194519
)
45204520
45214521
# Make the request
4522-
operation = client.delete_backup_plan_association(request=request)
4522+
operation = await client.delete_backup_plan_association(request=request)
45234523
45244524
print("Waiting for operation to complete...")
45254525
4526-
response = (await operation).result()
4526+
response = await operation.result()
45274527
45284528
# Handle the response
45294529
print(response)
@@ -4659,11 +4659,11 @@ async def sample_trigger_backup():
46594659
)
46604660
46614661
# Make the request
4662-
operation = client.trigger_backup(request=request)
4662+
operation = await client.trigger_backup(request=request)
46634663
46644664
print("Waiting for operation to complete...")
46654665
4666-
response = (await operation).result()
4666+
response = await operation.result()
46674667
46684668
# Handle the response
46694669
print(response)
@@ -5194,11 +5194,11 @@ async def sample_initialize_service():
51945194
)
51955195
51965196
# Make the request
5197-
operation = client.initialize_service(request=request)
5197+
operation = await client.initialize_service(request=request)
51985198
51995199
print("Waiting for operation to complete...")
52005200
5201-
response = (await operation).result()
5201+
response = await operation.result()
52025202
52035203
# Handle the response
52045204
print(response)
Collapse file

‎packages/google-cloud-backupdr/noxfile.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/noxfile.py
+1-3Lines 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",
Collapse file

‎packages/google-cloud-backupdr/samples/generated_samples/backupdr_v1_generated_backup_dr_create_backup_plan_association_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/samples/generated_samples/backupdr_v1_generated_backup_dr_create_backup_plan_association_async.py
+3-3Lines 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.
@@ -51,11 +51,11 @@ async def sample_create_backup_plan_association():
5151
)
5252

5353
# Make the request
54-
operation = client.create_backup_plan_association(request=request)
54+
operation = await client.create_backup_plan_association(request=request)
5555

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

58-
response = (await operation).result()
58+
response = await operation.result()
5959

6060
# Handle the response
6161
print(response)
Collapse file

‎packages/google-cloud-backupdr/samples/generated_samples/backupdr_v1_generated_backup_dr_create_backup_plan_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/samples/generated_samples/backupdr_v1_generated_backup_dr_create_backup_plan_async.py
+3-3Lines 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.
@@ -56,11 +56,11 @@ async def sample_create_backup_plan():
5656
)
5757

5858
# Make the request
59-
operation = client.create_backup_plan(request=request)
59+
operation = await client.create_backup_plan(request=request)
6060

6161
print("Waiting for operation to complete...")
6262

63-
response = (await operation).result()
63+
response = await operation.result()
6464

6565
# Handle the response
6666
print(response)
Collapse file

‎packages/google-cloud-backupdr/samples/generated_samples/backupdr_v1_generated_backup_dr_create_backup_vault_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-backupdr/samples/generated_samples/backupdr_v1_generated_backup_dr_create_backup_vault_async.py
+3-3Lines 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.
@@ -45,11 +45,11 @@ async def sample_create_backup_vault():
4545
)
4646

4747
# Make the request
48-
operation = client.create_backup_vault(request=request)
48+
operation = await client.create_backup_vault(request=request)
4949

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

52-
response = (await operation).result()
52+
response = await operation.result()
5353

5454
# Handle the response
5555
print(response)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.