google-cloud-compute-v1 3.9.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/README.md +66 -3
- data/lib/google/cloud/compute/v1/accelerator_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/accelerator_types.rb +3 -1
- data/lib/google/cloud/compute/v1/addresses/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/addresses.rb +3 -1
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +187 -1
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +126 -0
- data/lib/google/cloud/compute/v1/advice/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/advice.rb +2 -0
- data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/autoscalers.rb +3 -1
- data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/backend_buckets.rb +3 -1
- data/lib/google/cloud/compute/v1/backend_services/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/backend_services.rb +3 -1
- data/lib/google/cloud/compute/v1/compute_pb.rb +87 -1
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/cross_site_networks.rb +2 -0
- data/lib/google/cloud/compute/v1/disk_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/disk_types.rb +3 -1
- data/lib/google/cloud/compute/v1/disks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/disks.rb +3 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +3 -1
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/firewall_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/firewalls/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/firewalls.rb +3 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +3 -1
- data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/future_reservations/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/future_reservations.rb +2 -0
- data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/global_addresses.rb +3 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +3 -1
- data/lib/google/cloud/compute/v1/global_frontend_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest/client.rb +524 -0
- data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/compute/v1/global_frontend_settings_service/rest.rb +53 -0
- data/lib/google/cloud/compute/v1/global_frontend_settings_service.rb +49 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/global_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/global_operations.rb +3 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +3 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +3 -1
- data/lib/google/cloud/compute/v1/global_vm_extension_policies/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/global_vm_extension_policies/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/global_vm_extension_policies.rb +2 -0
- data/lib/google/cloud/compute/v1/health_checks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/health_checks.rb +3 -1
- data/lib/google/cloud/compute/v1/hosts/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/hosts/rest/client.rb +750 -0
- data/lib/google/cloud/compute/v1/hosts/rest/service_stub.rb +273 -0
- data/lib/google/cloud/compute/v1/hosts/rest.rb +53 -0
- data/lib/google/cloud/compute/v1/hosts.rb +49 -0
- data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/image_family_views.rb +3 -1
- data/lib/google/cloud/compute/v1/image_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/image_views/rest/client.rb +612 -0
- data/lib/google/cloud/compute/v1/image_views/rest/service_stub.rb +206 -0
- data/lib/google/cloud/compute/v1/image_views/rest.rb +53 -0
- data/lib/google/cloud/compute/v1/image_views.rb +49 -0
- data/lib/google/cloud/compute/v1/images/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/images.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +9 -42
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_settings_service.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instance_templates.rb +3 -1
- data/lib/google/cloud/compute/v1/instances/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +13 -28
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instances.rb +3 -1
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +2 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/instant_snapshots.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnects/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +119 -10
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +64 -1
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/interconnects.rb +3 -1
- data/lib/google/cloud/compute/v1/license_codes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/license_codes.rb +3 -1
- data/lib/google/cloud/compute/v1/licenses/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/licenses.rb +3 -1
- data/lib/google/cloud/compute/v1/machine_images/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/machine_images.rb +3 -1
- data/lib/google/cloud/compute/v1/machine_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/machine_types.rb +3 -1
- data/lib/google/cloud/compute/v1/managed_rulesets/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/managed_rulesets/rest/client.rb +606 -0
- data/lib/google/cloud/compute/v1/managed_rulesets/rest/service_stub.rb +204 -0
- data/lib/google/cloud/compute/v1/managed_rulesets/rest.rb +53 -0
- data/lib/google/cloud/compute/v1/managed_rulesets.rb +49 -0
- data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/network_attachments.rb +3 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +3 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/network_profiles/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/network_profiles/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/network_profiles.rb +3 -1
- data/lib/google/cloud/compute/v1/networks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/networks.rb +3 -1
- data/lib/google/cloud/compute/v1/node_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/node_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/node_templates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/node_templates.rb +3 -1
- data/lib/google/cloud/compute/v1/node_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/node_types.rb +3 -1
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/organization_security_policies.rb +2 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +3 -1
- data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/preview_features/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/preview_features.rb +2 -0
- data/lib/google/cloud/compute/v1/project_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/project_views/rest/client.rb +440 -0
- data/lib/google/cloud/compute/v1/project_views/rest/service_stub.rb +143 -0
- data/lib/google/cloud/compute/v1/project_views/rest.rb +53 -0
- data/lib/google/cloud/compute/v1/project_views.rb +49 -0
- data/lib/google/cloud/compute/v1/projects/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/projects.rb +3 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +3 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +3 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +3 -1
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_backend_buckets.rb +2 -0
- data/lib/google/cloud/compute/v1/region_backend_services/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_backend_services.rb +3 -1
- data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_commitments.rb +3 -1
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +2 -0
- data/lib/google/cloud/compute/v1/region_disk_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_disk_types.rb +3 -1
- data/lib/google/cloud/compute/v1/region_disks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_disks.rb +3 -1
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +3 -1
- data/lib/google/cloud/compute/v1/region_health_checks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_health_checks.rb +3 -1
- data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +5 -17
- data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_sources.rb +2 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +2 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +8 -34
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instance_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instance_templates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instance_templates.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instances.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +2 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +3 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +3 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +127 -11
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +65 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +3 -1
- data/lib/google/cloud/compute/v1/region_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_operations.rb +3 -1
- data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_security_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +3 -1
- data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +2 -0
- data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/region_snapshots.rb +2 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +3 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/region_url_maps/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_url_maps.rb +3 -1
- data/lib/google/cloud/compute/v1/region_zones/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/region_zones.rb +3 -1
- data/lib/google/cloud/compute/v1/regions/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/regions.rb +3 -1
- data/lib/google/cloud/compute/v1/reliability_risks/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/reliability_risks/rest/client.rb +606 -0
- data/lib/google/cloud/compute/v1/reliability_risks/rest/service_stub.rb +204 -0
- data/lib/google/cloud/compute/v1/reliability_risks/rest.rb +53 -0
- data/lib/google/cloud/compute/v1/reliability_risks.rb +49 -0
- data/lib/google/cloud/compute/v1/reservation_blocks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/reservation_blocks.rb +3 -1
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +112 -9
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/reservation_slots.rb +2 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/reservation_sub_blocks.rb +3 -1
- data/lib/google/cloud/compute/v1/reservations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/reservations.rb +3 -1
- data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/resource_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/rest.rb +7 -1
- data/lib/google/cloud/compute/v1/rollout_plans/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/rollout_plans/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/rollout_plans.rb +2 -0
- data/lib/google/cloud/compute/v1/rollouts/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/rollouts/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/rollouts.rb +2 -0
- data/lib/google/cloud/compute/v1/routers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +10 -50
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/routers/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/routers.rb +3 -1
- data/lib/google/cloud/compute/v1/routes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/routes.rb +3 -1
- data/lib/google/cloud/compute/v1/security_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/security_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/service_attachments.rb +3 -1
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +3 -1
- data/lib/google/cloud/compute/v1/snapshots/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/snapshots.rb +3 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +3 -1
- data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/ssl_policies.rb +3 -1
- data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/storage_pool_types.rb +3 -1
- data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/storage_pools.rb +3 -1
- data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +7 -26
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/subnetworks.rb +3 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/target_https_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/target_instances/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_instances.rb +3 -1
- data/lib/google/cloud/compute/v1/target_pools/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_pools.rb +3 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +3 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +3 -1
- data/lib/google/cloud/compute/v1/url_maps/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/url_maps.rb +3 -1
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +3 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +6 -18
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +3 -1
- data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/wire_groups/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/wire_groups.rb +2 -0
- data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/zone_operations.rb +3 -1
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +4 -9
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +2 -0
- data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +2 -0
- data/lib/google/cloud/compute/v1/zones/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +5 -10
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest.rb +3 -1
- data/lib/google/cloud/compute/v1/zones.rb +3 -1
- data/lib/google/cloud/compute/v1.rb +7 -1
- data/lib/google-cloud-compute-v1.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/compute/v1/compute.rb +3003 -2262
- data/proto_docs/google/cloud/extended_operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- metadata +38 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66e474858f42e2de53b184cf57d855411f714693f4928ab67b5c30ff32e601b0
|
|
4
|
+
data.tar.gz: d405ef1d25a118d5cc77fa48580380ae49286a8199ad27ad0ab7774b6669377b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf1793f26779a774b95dde5fcdfef216944c919d94bfe170189ff478154daaa184259697cbf116e9c1d87881970011ba3c480fe2f3bcfd5773e0c1b5a6c47c64
|
|
7
|
+
data.tar.gz: 1aea3ce51bbcaf4d19cb055d62cf447c5d6bb12b144ae8cc4c8458dec832c725a89e9774f4b1038eb296fb285b0af810795286cc67f68d0fa91cc6247985acb7
|
data/.yardopts
CHANGED
data/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
# Ruby Client for the
|
|
1
|
+
# Ruby Client for the Compute Engine V1 API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Compute Engine is an infrastructure as a service (IaaS) product that offers self-managed virtual machine (VM) instances and bare metal instances.
|
|
4
4
|
|
|
5
|
-
google-cloud-compute-v1 is the official client library for the Google Cloud Compute V1 API.
|
|
6
5
|
|
|
7
6
|
https://github.com/googleapis/google-cloud-ruby
|
|
8
7
|
|
|
8
|
+
This gem is a _versioned_ client. It provides basic client classes for a
|
|
9
|
+
specific version of the Compute Engine V1 API. Most users should consider using
|
|
10
|
+
the main client gem,
|
|
11
|
+
[google-cloud-compute](https://rubygems.org/gems/google-cloud-compute).
|
|
12
|
+
See the section below titled *Which client should I use?* for more information.
|
|
13
|
+
|
|
9
14
|
## Installation
|
|
10
15
|
|
|
11
16
|
```
|
|
@@ -88,3 +93,61 @@ in security maintenance, and not end of life. Older versions of Ruby _may_
|
|
|
88
93
|
still work, but are unsupported and not recommended. See
|
|
89
94
|
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
90
95
|
support schedule.
|
|
96
|
+
|
|
97
|
+
## Which client should I use?
|
|
98
|
+
|
|
99
|
+
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
|
100
|
+
client library with a name such as `google-cloud-compute`,
|
|
101
|
+
and lower-level _versioned_ client libraries with names such as
|
|
102
|
+
`google-cloud-compute-v1`.
|
|
103
|
+
_In most cases, you should install the main client._
|
|
104
|
+
|
|
105
|
+
### What's the difference between the main client and a versioned client?
|
|
106
|
+
|
|
107
|
+
A _versioned client_ provides a basic set of data types and client classes for
|
|
108
|
+
a _single version_ of a specific service. (That is, for a service with multiple
|
|
109
|
+
versions, there might be a separate versioned client for each service version.)
|
|
110
|
+
Most versioned clients are written and maintained by a code generator.
|
|
111
|
+
|
|
112
|
+
The _main client_ is designed to provide you with the _recommended_ client
|
|
113
|
+
interfaces for the service. There will be only one main client for any given
|
|
114
|
+
service, even a service with multiple versions. The main client includes
|
|
115
|
+
factory methods for constructing the client objects we recommend for most
|
|
116
|
+
users. In some cases, those will be classes provided by an underlying versioned
|
|
117
|
+
client; in other cases, they will be handwritten higher-level client objects
|
|
118
|
+
with additional capabilities, convenience methods, or best practices built in.
|
|
119
|
+
Generally, the main client will default to a recommended service version,
|
|
120
|
+
although in some cases you can override this if you need to talk to a specific
|
|
121
|
+
service version.
|
|
122
|
+
|
|
123
|
+
### Why would I want to use the main client?
|
|
124
|
+
|
|
125
|
+
We recommend that most users install the main client gem for a service. You can
|
|
126
|
+
identify this gem as the one _without_ a version in its name, e.g.
|
|
127
|
+
`google-cloud-compute`.
|
|
128
|
+
The main client is recommended because it will embody the best practices for
|
|
129
|
+
accessing the service, and may also provide more convenient interfaces or
|
|
130
|
+
tighter integration into frameworks and third-party libraries. In addition, the
|
|
131
|
+
documentation and samples published by Google will generally demonstrate use of
|
|
132
|
+
the main client.
|
|
133
|
+
|
|
134
|
+
### Why would I want to use a versioned client?
|
|
135
|
+
|
|
136
|
+
You can use a versioned client if you are content with a possibly lower-level
|
|
137
|
+
class interface, you explicitly want to avoid features provided by the main
|
|
138
|
+
client, or you want to access a specific service version not be covered by the
|
|
139
|
+
main client. You can identify versioned client gems because the service version
|
|
140
|
+
is part of the name, e.g. `google-cloud-compute-v1`.
|
|
141
|
+
|
|
142
|
+
### What about the google-apis-<name> clients?
|
|
143
|
+
|
|
144
|
+
Client library gems with names that begin with `google-apis-` are based on an
|
|
145
|
+
older code generation technology. They talk to a REST/JSON backend (whereas
|
|
146
|
+
most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
|
|
147
|
+
not offer the same performance, features, and ease of use provided by more
|
|
148
|
+
modern clients.
|
|
149
|
+
|
|
150
|
+
The `google-apis-` clients have wide coverage across Google services, so you
|
|
151
|
+
might need to use one if there is no modern client available for the service.
|
|
152
|
+
However, if a modern client is available, we generally recommend it over the
|
|
153
|
+
older `google-apis-` clients.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -33,9 +33,11 @@ module Google
|
|
|
33
33
|
#
|
|
34
34
|
# The AcceleratorTypes API.
|
|
35
35
|
#
|
|
36
|
+
# This client uses AcceleratorTypes version 2026-09-01.
|
|
37
|
+
#
|
|
36
38
|
class Client
|
|
37
39
|
# @private
|
|
38
|
-
API_VERSION = ""
|
|
40
|
+
API_VERSION = "2026-09-01"
|
|
39
41
|
|
|
40
42
|
# @private
|
|
41
43
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
|
@@ -207,7 +209,7 @@ module Google
|
|
|
207
209
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
208
210
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
209
211
|
#
|
|
210
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil,
|
|
212
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, service_project_number: nil)
|
|
211
213
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
|
212
214
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
213
215
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -303,13 +305,6 @@ module Google
|
|
|
303
305
|
# the next page of results.
|
|
304
306
|
# @param project [::String]
|
|
305
307
|
# Project ID for this request.
|
|
306
|
-
# @param return_partial_success [::Boolean]
|
|
307
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
308
|
-
# of failure. The default value is false.
|
|
309
|
-
#
|
|
310
|
-
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
311
|
-
# single zone scope either returns all resources in the zone or no resources,
|
|
312
|
-
# with an error code.
|
|
313
308
|
# @param service_project_number [::Integer]
|
|
314
309
|
# The Shared VPC service project id or service project number for which
|
|
315
310
|
# aggregated list request is invoked for subnetworks list-usable api.
|
|
@@ -469,7 +464,7 @@ module Google
|
|
|
469
464
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
470
465
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
471
466
|
#
|
|
472
|
-
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil,
|
|
467
|
+
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, zone: nil)
|
|
473
468
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
474
469
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
475
470
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -557,13 +552,6 @@ module Google
|
|
|
557
552
|
# the next page of results.
|
|
558
553
|
# @param project [::String]
|
|
559
554
|
# Project ID for this request.
|
|
560
|
-
# @param return_partial_success [::Boolean]
|
|
561
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
562
|
-
# of failure. The default value is false.
|
|
563
|
-
#
|
|
564
|
-
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
565
|
-
# single zone scope either returns all resources in the zone or no resources,
|
|
566
|
-
# with an error code.
|
|
567
555
|
# @param zone [::String]
|
|
568
556
|
# The name of the zone for this request.
|
|
569
557
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -34,6 +34,8 @@ module Google
|
|
|
34
34
|
#
|
|
35
35
|
# The AcceleratorTypes API.
|
|
36
36
|
#
|
|
37
|
+
# This client uses AcceleratorTypes version 2026-09-01.
|
|
38
|
+
#
|
|
37
39
|
# To load this service and instantiate a REST client:
|
|
38
40
|
#
|
|
39
41
|
# require "google/cloud/compute/v1/accelerator_types/rest"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -33,6 +33,8 @@ module Google
|
|
|
33
33
|
#
|
|
34
34
|
# The AcceleratorTypes API.
|
|
35
35
|
#
|
|
36
|
+
# This client uses AcceleratorTypes version 2026-09-01.
|
|
37
|
+
#
|
|
36
38
|
# @example Load this service and instantiate a REST client
|
|
37
39
|
#
|
|
38
40
|
# require "google/cloud/compute/v1/accelerator_types/rest"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -32,9 +32,11 @@ module Google
|
|
|
32
32
|
#
|
|
33
33
|
# The Addresses API.
|
|
34
34
|
#
|
|
35
|
+
# This client uses Addresses version 2026-09-01.
|
|
36
|
+
#
|
|
35
37
|
class Client
|
|
36
38
|
# @private
|
|
37
|
-
API_VERSION = ""
|
|
39
|
+
API_VERSION = "2026-09-01"
|
|
38
40
|
|
|
39
41
|
# @private
|
|
40
42
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
|
@@ -230,7 +232,7 @@ module Google
|
|
|
230
232
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
231
233
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
232
234
|
#
|
|
233
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil,
|
|
235
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, service_project_number: nil)
|
|
234
236
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
|
235
237
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
236
238
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -326,13 +328,6 @@ module Google
|
|
|
326
328
|
# the next page of results.
|
|
327
329
|
# @param project [::String]
|
|
328
330
|
# Project ID for this request.
|
|
329
|
-
# @param return_partial_success [::Boolean]
|
|
330
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
331
|
-
# of failure. The default value is false.
|
|
332
|
-
#
|
|
333
|
-
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
334
|
-
# single zone scope either returns all resources in the zone or no resources,
|
|
335
|
-
# with an error code.
|
|
336
331
|
# @param service_project_number [::Integer]
|
|
337
332
|
# The Shared VPC service project id or service project number for which
|
|
338
333
|
# aggregated list request is invoked for subnetworks list-usable api.
|
|
@@ -705,7 +700,7 @@ module Google
|
|
|
705
700
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
706
701
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
707
702
|
#
|
|
708
|
-
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil
|
|
703
|
+
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil)
|
|
709
704
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
710
705
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
711
706
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -795,13 +790,6 @@ module Google
|
|
|
795
790
|
# Project ID for this request.
|
|
796
791
|
# @param region [::String]
|
|
797
792
|
# Name of the region for this request.
|
|
798
|
-
# @param return_partial_success [::Boolean]
|
|
799
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
800
|
-
# of failure. The default value is false.
|
|
801
|
-
#
|
|
802
|
-
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
803
|
-
# single zone scope either returns all resources in the zone or no resources,
|
|
804
|
-
# with an error code.
|
|
805
793
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
806
794
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Address>]
|
|
807
795
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -32,6 +32,8 @@ module Google
|
|
|
32
32
|
##
|
|
33
33
|
# The Addresses API.
|
|
34
34
|
#
|
|
35
|
+
# This client uses Addresses version 2026-09-01.
|
|
36
|
+
#
|
|
35
37
|
# To load this service and instantiate a REST client:
|
|
36
38
|
#
|
|
37
39
|
# require "google/cloud/compute/v1/addresses/rest"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -31,6 +31,8 @@ module Google
|
|
|
31
31
|
##
|
|
32
32
|
# The Addresses API.
|
|
33
33
|
#
|
|
34
|
+
# This client uses Addresses version 2026-09-01.
|
|
35
|
+
#
|
|
34
36
|
# @example Load this service and instantiate a REST client
|
|
35
37
|
#
|
|
36
38
|
# require "google/cloud/compute/v1/addresses/rest"
|
|
@@ -31,9 +31,11 @@ module Google
|
|
|
31
31
|
#
|
|
32
32
|
# The Advice API.
|
|
33
33
|
#
|
|
34
|
+
# This client uses Advice version 2026-09-01.
|
|
35
|
+
#
|
|
34
36
|
class Client
|
|
35
37
|
# @private
|
|
36
|
-
API_VERSION = ""
|
|
38
|
+
API_VERSION = "2026-09-01"
|
|
37
39
|
|
|
38
40
|
# @private
|
|
39
41
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
|
@@ -72,6 +74,10 @@ module Google
|
|
|
72
74
|
|
|
73
75
|
default_config.rpcs.calendar_mode.timeout = 600.0
|
|
74
76
|
|
|
77
|
+
default_config.rpcs.capacity.timeout = 600.0
|
|
78
|
+
|
|
79
|
+
default_config.rpcs.capacity_history.timeout = 600.0
|
|
80
|
+
|
|
75
81
|
default_config
|
|
76
82
|
end
|
|
77
83
|
yield @configure if block_given?
|
|
@@ -261,6 +267,172 @@ module Google
|
|
|
261
267
|
raise ::Google::Cloud::Error.from_error(e)
|
|
262
268
|
end
|
|
263
269
|
|
|
270
|
+
##
|
|
271
|
+
# Advice on making real-time decisions (such as choosing zone or
|
|
272
|
+
# machine types) during deployment to maximize your chances of obtaining
|
|
273
|
+
# capacity.
|
|
274
|
+
#
|
|
275
|
+
# @overload capacity(request, options = nil)
|
|
276
|
+
# Pass arguments to `capacity` via a request object, either of type
|
|
277
|
+
# {::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest} or an equivalent Hash.
|
|
278
|
+
#
|
|
279
|
+
# @param request [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest, ::Hash]
|
|
280
|
+
# A request object representing the call parameters. Required. To specify no
|
|
281
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
282
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
283
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
284
|
+
#
|
|
285
|
+
# @overload capacity(capacity_advice_request_resource: nil, project: nil, region: nil)
|
|
286
|
+
# Pass arguments to `capacity` via keyword arguments. Note that at
|
|
287
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
288
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
289
|
+
#
|
|
290
|
+
# @param capacity_advice_request_resource [::Google::Cloud::Compute::V1::CapacityAdviceRequest, ::Hash]
|
|
291
|
+
# The body resource for this request
|
|
292
|
+
# @param project [::String]
|
|
293
|
+
# Project ID for this request.
|
|
294
|
+
# @param region [::String]
|
|
295
|
+
# Name of the region for this request.
|
|
296
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
297
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
|
|
298
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
299
|
+
#
|
|
300
|
+
# @return [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
|
|
301
|
+
#
|
|
302
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
303
|
+
#
|
|
304
|
+
# @example Basic example
|
|
305
|
+
# require "google/cloud/compute/v1"
|
|
306
|
+
#
|
|
307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
308
|
+
# client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
|
|
309
|
+
#
|
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
311
|
+
# request = Google::Cloud::Compute::V1::CapacityAdviceRpcRequest.new
|
|
312
|
+
#
|
|
313
|
+
# # Call the capacity method.
|
|
314
|
+
# result = client.capacity request
|
|
315
|
+
#
|
|
316
|
+
# # The returned object is of type Google::Cloud::Compute::V1::CapacityAdviceResponse.
|
|
317
|
+
# p result
|
|
318
|
+
#
|
|
319
|
+
def capacity request, options = nil
|
|
320
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
321
|
+
|
|
322
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest
|
|
323
|
+
|
|
324
|
+
# Converts hash and nil to an options object
|
|
325
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
326
|
+
|
|
327
|
+
# Customize the options with defaults
|
|
328
|
+
call_metadata = @config.rpcs.capacity.metadata.to_h
|
|
329
|
+
|
|
330
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
331
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
332
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
333
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
334
|
+
transports_version_send: [:rest]
|
|
335
|
+
|
|
336
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
337
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
338
|
+
|
|
339
|
+
options.apply_defaults timeout: @config.rpcs.capacity.timeout,
|
|
340
|
+
metadata: call_metadata,
|
|
341
|
+
retry_policy: @config.rpcs.capacity.retry_policy
|
|
342
|
+
|
|
343
|
+
options.apply_defaults timeout: @config.timeout,
|
|
344
|
+
metadata: @config.metadata,
|
|
345
|
+
retry_policy: @config.retry_policy
|
|
346
|
+
|
|
347
|
+
@advice_stub.capacity request, options do |result, operation|
|
|
348
|
+
yield result, operation if block_given?
|
|
349
|
+
end
|
|
350
|
+
rescue ::Gapic::Rest::Error => e
|
|
351
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
##
|
|
355
|
+
# Gets the capacity history.
|
|
356
|
+
#
|
|
357
|
+
# @overload capacity_history(request, options = nil)
|
|
358
|
+
# Pass arguments to `capacity_history` via a request object, either of type
|
|
359
|
+
# {::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest} or an equivalent Hash.
|
|
360
|
+
#
|
|
361
|
+
# @param request [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest, ::Hash]
|
|
362
|
+
# A request object representing the call parameters. Required. To specify no
|
|
363
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
364
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
365
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
366
|
+
#
|
|
367
|
+
# @overload capacity_history(capacity_history_request_resource: nil, project: nil, region: nil)
|
|
368
|
+
# Pass arguments to `capacity_history` via keyword arguments. Note that at
|
|
369
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
370
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
371
|
+
#
|
|
372
|
+
# @param capacity_history_request_resource [::Google::Cloud::Compute::V1::CapacityHistoryRequest, ::Hash]
|
|
373
|
+
# The body resource for this request
|
|
374
|
+
# @param project [::String]
|
|
375
|
+
# Project ID for this request.
|
|
376
|
+
# @param region [::String]
|
|
377
|
+
# Name of the region for this request.
|
|
378
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
379
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
|
|
380
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
381
|
+
#
|
|
382
|
+
# @return [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
|
|
383
|
+
#
|
|
384
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
385
|
+
#
|
|
386
|
+
# @example Basic example
|
|
387
|
+
# require "google/cloud/compute/v1"
|
|
388
|
+
#
|
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
390
|
+
# client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
|
|
391
|
+
#
|
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
393
|
+
# request = Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest.new
|
|
394
|
+
#
|
|
395
|
+
# # Call the capacity_history method.
|
|
396
|
+
# result = client.capacity_history request
|
|
397
|
+
#
|
|
398
|
+
# # The returned object is of type Google::Cloud::Compute::V1::CapacityHistoryResponse.
|
|
399
|
+
# p result
|
|
400
|
+
#
|
|
401
|
+
def capacity_history request, options = nil
|
|
402
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
403
|
+
|
|
404
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest
|
|
405
|
+
|
|
406
|
+
# Converts hash and nil to an options object
|
|
407
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
408
|
+
|
|
409
|
+
# Customize the options with defaults
|
|
410
|
+
call_metadata = @config.rpcs.capacity_history.metadata.to_h
|
|
411
|
+
|
|
412
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
413
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
414
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
415
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
416
|
+
transports_version_send: [:rest]
|
|
417
|
+
|
|
418
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
419
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
420
|
+
|
|
421
|
+
options.apply_defaults timeout: @config.rpcs.capacity_history.timeout,
|
|
422
|
+
metadata: call_metadata,
|
|
423
|
+
retry_policy: @config.rpcs.capacity_history.retry_policy
|
|
424
|
+
|
|
425
|
+
options.apply_defaults timeout: @config.timeout,
|
|
426
|
+
metadata: @config.metadata,
|
|
427
|
+
retry_policy: @config.retry_policy
|
|
428
|
+
|
|
429
|
+
@advice_stub.capacity_history request, options do |result, operation|
|
|
430
|
+
yield result, operation if block_given?
|
|
431
|
+
end
|
|
432
|
+
rescue ::Gapic::Rest::Error => e
|
|
433
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
434
|
+
end
|
|
435
|
+
|
|
264
436
|
##
|
|
265
437
|
# Configuration class for the Advice REST API.
|
|
266
438
|
#
|
|
@@ -414,11 +586,25 @@ module Google
|
|
|
414
586
|
# @return [::Gapic::Config::Method]
|
|
415
587
|
#
|
|
416
588
|
attr_reader :calendar_mode
|
|
589
|
+
##
|
|
590
|
+
# RPC-specific configuration for `capacity`
|
|
591
|
+
# @return [::Gapic::Config::Method]
|
|
592
|
+
#
|
|
593
|
+
attr_reader :capacity
|
|
594
|
+
##
|
|
595
|
+
# RPC-specific configuration for `capacity_history`
|
|
596
|
+
# @return [::Gapic::Config::Method]
|
|
597
|
+
#
|
|
598
|
+
attr_reader :capacity_history
|
|
417
599
|
|
|
418
600
|
# @private
|
|
419
601
|
def initialize parent_rpcs = nil
|
|
420
602
|
calendar_mode_config = parent_rpcs.calendar_mode if parent_rpcs.respond_to? :calendar_mode
|
|
421
603
|
@calendar_mode = ::Gapic::Config::Method.new calendar_mode_config
|
|
604
|
+
capacity_config = parent_rpcs.capacity if parent_rpcs.respond_to? :capacity
|
|
605
|
+
@capacity = ::Gapic::Config::Method.new capacity_config
|
|
606
|
+
capacity_history_config = parent_rpcs.capacity_history if parent_rpcs.respond_to? :capacity_history
|
|
607
|
+
@capacity_history = ::Gapic::Config::Method.new capacity_history_config
|
|
422
608
|
|
|
423
609
|
yield self if block_given?
|
|
424
610
|
end
|