Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 3491868

Browse files
feat: Update Compute Engine API to revision 20221224 (#760) (#381)
* docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: googleapis/googleapis@a391fd1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Update Compute Engine API to revision 20221224 (#760) Source-Link: googleapis/googleapis@17d5613 Source-Link: https://github.com/googleapis/googleapis-gen/commit/42cd552fa5be95be5ce5136ba93e83388b7591d8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDJjZDU1MmZhNWJlOTViZTVjZTUxMzZiYTkzZTgzMzg4Yjc1OTFkOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * work around docs issue Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent c4d1212 commit 3491868

File tree

99 files changed

+5029
-167
lines changed

Some content is hidden

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

99 files changed

+5029
-167
lines changed

google/cloud/compute/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@
286286
AggregatedListVpnGatewaysRequest,
287287
AggregatedListVpnTunnelsRequest,
288288
AliasIpRange,
289+
AllocationResourceStatus,
290+
AllocationResourceStatusSpecificSKUAllocation,
289291
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk,
290292
AllocationSpecificSKUAllocationReservedInstanceProperties,
291293
AllocationSpecificSKUReservation,
@@ -1689,6 +1691,8 @@
16891691
"AggregatedListVpnGatewaysRequest",
16901692
"AggregatedListVpnTunnelsRequest",
16911693
"AliasIpRange",
1694+
"AllocationResourceStatus",
1695+
"AllocationResourceStatusSpecificSKUAllocation",
16921696
"AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk",
16931697
"AllocationSpecificSKUAllocationReservedInstanceProperties",
16941698
"AllocationSpecificSKUReservation",

google/cloud/compute_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
AggregatedListVpnGatewaysRequest,
185185
AggregatedListVpnTunnelsRequest,
186186
AliasIpRange,
187+
AllocationResourceStatus,
188+
AllocationResourceStatusSpecificSKUAllocation,
187189
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk,
188190
AllocationSpecificSKUAllocationReservedInstanceProperties,
189191
AllocationSpecificSKUReservation,
@@ -1501,6 +1503,8 @@
15011503
"AggregatedListVpnGatewaysRequest",
15021504
"AggregatedListVpnTunnelsRequest",
15031505
"AliasIpRange",
1506+
"AllocationResourceStatus",
1507+
"AllocationResourceStatusSpecificSKUAllocation",
15041508
"AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk",
15051509
"AllocationSpecificSKUAllocationReservedInstanceProperties",
15061510
"AllocationSpecificSKUReservation",

google/cloud/compute_v1/services/accelerator_types/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def list(
718718
# Done; return the response.
719719
return response
720720

721-
def __enter__(self):
721+
def __enter__(self) -> "AcceleratorTypesClient":
722722
return self
723723

724724
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/addresses/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ def error_code(self):
14031403
# Done; return the response.
14041404
return response
14051405

1406-
def __enter__(self):
1406+
def __enter__(self) -> "AddressesClient":
14071407
return self
14081408

14091409
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/autoscalers/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ def error_code(self):
15941594
# Done; return the response.
15951595
return response
15961596

1597-
def __enter__(self):
1597+
def __enter__(self) -> "AutoscalersClient":
15981598
return self
15991599

16001600
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/backend_buckets/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ def error_code(self):
21542154
# Done; return the response.
21552155
return response
21562156

2157-
def __enter__(self):
2157+
def __enter__(self) -> "BackendBucketsClient":
21582158
return self
21592159

21602160
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/backend_services/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2885,7 +2885,7 @@ def error_code(self):
28852885
# Done; return the response.
28862886
return response
28872887

2888-
def __enter__(self):
2888+
def __enter__(self) -> "BackendServicesClient":
28892889
return self
28902890

28912891
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/disk_types/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def list(
712712
# Done; return the response.
713713
return response
714714

715-
def __enter__(self):
715+
def __enter__(self) -> "DiskTypesClient":
716716
return self
717717

718718
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/disks/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2839,7 +2839,7 @@ def test_iam_permissions(
28392839
# Done; return the response.
28402840
return response
28412841

2842-
def __enter__(self):
2842+
def __enter__(self) -> "DisksClient":
28432843
return self
28442844

28452845
def __exit__(self, type, value, traceback):

google/cloud/compute_v1/services/external_vpn_gateways/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ def test_iam_permissions(
13561356
# Done; return the response.
13571357
return response
13581358

1359-
def __enter__(self):
1359+
def __enter__(self) -> "ExternalVpnGatewaysClient":
13601360
return self
13611361

13621362
def __exit__(self, type, value, traceback):

0 commit comments

Comments
 (0)