feat: Update Compute Engine API to revision 20221224 (#760) by gcf-owl-bot[bot] · Pull Request #381 · googleapis/python-compute · GitHub
Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions google/cloud/compute/__init__.py
4 changes: 4 additions & 0 deletions google/cloud/compute_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@
AggregatedListVpnGatewaysRequest,
AggregatedListVpnTunnelsRequest,
AliasIpRange,
AllocationResourceStatus,
AllocationResourceStatusSpecificSKUAllocation,
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk,
AllocationSpecificSKUAllocationReservedInstanceProperties,
AllocationSpecificSKUReservation,
Expand Down Expand Up @@ -1501,6 +1503,8 @@
"AggregatedListVpnGatewaysRequest",
"AggregatedListVpnTunnelsRequest",
"AliasIpRange",
"AllocationResourceStatus",
"AllocationResourceStatusSpecificSKUAllocation",
"AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk",
"AllocationSpecificSKUAllocationReservedInstanceProperties",
"AllocationSpecificSKUReservation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def list(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "AcceleratorTypesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/addresses/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "AddressesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/autoscalers/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "AutoscalersClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/backend_buckets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "BackendBucketsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2885,7 +2885,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "BackendServicesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/disk_types/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def list(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "DiskTypesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/disks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "DisksClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "ExternalVpnGatewaysClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3040,7 +3040,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "FirewallPoliciesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/firewalls/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "FirewallsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "ForwardingRulesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "GlobalAddressesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "GlobalForwardingRulesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ def list_network_endpoints(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "GlobalNetworkEndpointGroupsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def wait(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "GlobalOperationsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def list(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "GlobalOrganizationOperationsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "GlobalPublicDelegatedPrefixesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/health_checks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "HealthChecksClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def get(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "ImageFamilyViewsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/images/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "ImagesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5067,7 +5067,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InstanceGroupManagersClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/instance_groups/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InstanceGroupsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InstanceTemplatesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/instances/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9918,7 +9918,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InstancesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InterconnectAttachmentsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def list(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InterconnectLocationsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/interconnects/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "InterconnectsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/license_codes/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "LicenseCodesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/licenses/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "LicensesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/machine_images/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "MachineImagesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/machine_types/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def list(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "MachineTypesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NetworkAttachmentsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NetworkEdgeSecurityServicesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NetworkEndpointGroupsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3120,7 +3120,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NetworkFirewallPoliciesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/networks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,7 @@ def error_code(self):
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NetworksClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/node_groups/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2717,7 +2717,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NodeGroupsClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/node_templates/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ def test_iam_permissions(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NodeTemplatesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/compute_v1/services/node_types/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def list(
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "NodeTypesClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Loading