diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py index f66c8a775ee4..0e7172248bd9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py @@ -23,6 +23,138 @@ from importlib import metadata +# PEP 0810: Global Lazy Imports Control +# This variable provides a migration path for library maintainers. +# Python 3.15+ natively intercepts and defers these imports. +# Older Python versions safely ignore this variable. +__lazy_modules__ = { + f"{__name__}.services.accelerator_types", + f"{__name__}.services.addresses", + f"{__name__}.services.advice", + f"{__name__}.services.autoscalers", + f"{__name__}.services.backend_buckets", + f"{__name__}.services.backend_services", + f"{__name__}.services.cross_site_networks", + f"{__name__}.services.disk_types", + f"{__name__}.services.disks", + f"{__name__}.services.external_vpn_gateways", + f"{__name__}.services.firewall_policies", + f"{__name__}.services.firewalls", + f"{__name__}.services.forwarding_rules", + f"{__name__}.services.future_reservations", + f"{__name__}.services.global_addresses", + f"{__name__}.services.global_forwarding_rules", + f"{__name__}.services.global_network_endpoint_groups", + f"{__name__}.services.global_operations", + f"{__name__}.services.global_organization_operations", + f"{__name__}.services.global_public_delegated_prefixes", + f"{__name__}.services.global_vm_extension_policies", + f"{__name__}.services.health_checks", + f"{__name__}.services.image_family_views", + f"{__name__}.services.images", + f"{__name__}.services.instance_group_manager_resize_requests", + f"{__name__}.services.instance_group_managers", + f"{__name__}.services.instance_groups", + f"{__name__}.services.instance_settings_service", + f"{__name__}.services.instance_templates", + f"{__name__}.services.instances", + f"{__name__}.services.instant_snapshot_groups", + f"{__name__}.services.instant_snapshots", + f"{__name__}.services.interconnect_attachment_groups", + f"{__name__}.services.interconnect_attachments", + f"{__name__}.services.interconnect_groups", + f"{__name__}.services.interconnect_locations", + f"{__name__}.services.interconnect_remote_locations", + f"{__name__}.services.interconnects", + f"{__name__}.services.license_codes", + f"{__name__}.services.licenses", + f"{__name__}.services.machine_images", + f"{__name__}.services.machine_types", + f"{__name__}.services.network_attachments", + f"{__name__}.services.network_edge_security_services", + f"{__name__}.services.network_endpoint_groups", + f"{__name__}.services.network_firewall_policies", + f"{__name__}.services.network_profiles", + f"{__name__}.services.networks", + f"{__name__}.services.node_groups", + f"{__name__}.services.node_templates", + f"{__name__}.services.node_types", + f"{__name__}.services.organization_security_policies", + f"{__name__}.services.packet_mirrorings", + f"{__name__}.services.preview_features", + f"{__name__}.services.projects", + f"{__name__}.services.public_advertised_prefixes", + f"{__name__}.services.public_delegated_prefixes", + f"{__name__}.services.region_autoscalers", + f"{__name__}.services.region_backend_buckets", + f"{__name__}.services.region_backend_services", + f"{__name__}.services.region_commitments", + f"{__name__}.services.region_composite_health_checks", + f"{__name__}.services.region_disk_types", + f"{__name__}.services.region_disks", + f"{__name__}.services.region_health_aggregation_policies", + f"{__name__}.services.region_health_check_services", + f"{__name__}.services.region_health_checks", + f"{__name__}.services.region_health_sources", + f"{__name__}.services.region_instance_group_manager_resize_requests", + f"{__name__}.services.region_instance_group_managers", + f"{__name__}.services.region_instance_groups", + f"{__name__}.services.region_instance_templates", + f"{__name__}.services.region_instances", + f"{__name__}.services.region_instant_snapshot_groups", + f"{__name__}.services.region_instant_snapshots", + f"{__name__}.services.region_network_endpoint_groups", + f"{__name__}.services.region_network_firewall_policies", + f"{__name__}.services.region_notification_endpoints", + f"{__name__}.services.region_operations", + f"{__name__}.services.region_security_policies", + f"{__name__}.services.region_snapshot_settings", + f"{__name__}.services.region_snapshots", + f"{__name__}.services.region_ssl_certificates", + f"{__name__}.services.region_ssl_policies", + f"{__name__}.services.region_target_http_proxies", + f"{__name__}.services.region_target_https_proxies", + f"{__name__}.services.region_target_tcp_proxies", + f"{__name__}.services.region_url_maps", + f"{__name__}.services.region_zones", + f"{__name__}.services.regions", + f"{__name__}.services.reservation_blocks", + f"{__name__}.services.reservation_slots", + f"{__name__}.services.reservation_sub_blocks", + f"{__name__}.services.reservations", + f"{__name__}.services.resource_policies", + f"{__name__}.services.rollout_plans", + f"{__name__}.services.rollouts", + f"{__name__}.services.routers", + f"{__name__}.services.routes", + f"{__name__}.services.security_policies", + f"{__name__}.services.service_attachments", + f"{__name__}.services.snapshot_settings_service", + f"{__name__}.services.snapshots", + f"{__name__}.services.ssl_certificates", + f"{__name__}.services.ssl_policies", + f"{__name__}.services.storage_pool_types", + f"{__name__}.services.storage_pools", + f"{__name__}.services.subnetworks", + f"{__name__}.services.target_grpc_proxies", + f"{__name__}.services.target_http_proxies", + f"{__name__}.services.target_https_proxies", + f"{__name__}.services.target_instances", + f"{__name__}.services.target_pools", + f"{__name__}.services.target_ssl_proxies", + f"{__name__}.services.target_tcp_proxies", + f"{__name__}.services.target_vpn_gateways", + f"{__name__}.services.url_maps", + f"{__name__}.services.vpn_gateways", + f"{__name__}.services.vpn_tunnels", + f"{__name__}.services.wire_groups", + f"{__name__}.services.zone_operations", + f"{__name__}.services.zone_vm_extension_policies", + f"{__name__}.services.zones", + f"{__name__}.types.compute", +} + + from .services.accelerator_types import AcceleratorTypesClient from .services.addresses import AddressesClient from .services.advice import AdviceClient