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
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/compute/v1/compute_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Compute
|
|
24
|
+
module V1
|
|
25
|
+
module ReliabilityRisks
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the ReliabilityRisks service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: false,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the get REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetReliabilityRiskRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::ReliabilityRisk]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Compute::V1::ReliabilityRisk]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def get request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "get",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::Compute::V1::ReliabilityRisk.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the list REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListReliabilityRisksRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::ReliabilityRisksListResponse]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::Compute::V1::ReliabilityRisksListResponse]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def list request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "list",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::Compute::V1::ReliabilityRisksListResponse.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
##
|
|
157
|
+
# @private
|
|
158
|
+
#
|
|
159
|
+
# GRPC transcoding helper method for the get REST call
|
|
160
|
+
#
|
|
161
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetReliabilityRiskRequest]
|
|
162
|
+
# A request object representing the call parameters. Required.
|
|
163
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
164
|
+
# Uri, Body, Query string parameters
|
|
165
|
+
def self.transcode_get_request request_pb
|
|
166
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
167
|
+
.with_bindings(
|
|
168
|
+
uri_method: :get,
|
|
169
|
+
uri_template: "/compute/v1/projects/{project}/global/reliabilityRisks/{reliability_risk}",
|
|
170
|
+
matches: [
|
|
171
|
+
["project", %r{^[^/]+/?$}, false],
|
|
172
|
+
["reliability_risk", %r{^[^/]+/?$}, false]
|
|
173
|
+
]
|
|
174
|
+
)
|
|
175
|
+
transcoder.transcode request_pb
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
##
|
|
179
|
+
# @private
|
|
180
|
+
#
|
|
181
|
+
# GRPC transcoding helper method for the list REST call
|
|
182
|
+
#
|
|
183
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListReliabilityRisksRequest]
|
|
184
|
+
# A request object representing the call parameters. Required.
|
|
185
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
186
|
+
# Uri, Body, Query string parameters
|
|
187
|
+
def self.transcode_list_request request_pb
|
|
188
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
189
|
+
.with_bindings(
|
|
190
|
+
uri_method: :get,
|
|
191
|
+
uri_template: "/compute/v1/projects/{project}/global/reliabilityRisks",
|
|
192
|
+
matches: [
|
|
193
|
+
["project", %r{^[^/]+/?$}, false]
|
|
194
|
+
]
|
|
195
|
+
)
|
|
196
|
+
transcoder.transcode request_pb
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/compute/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/compute/v1/reliability_risks/credentials"
|
|
26
|
+
require "google/cloud/compute/v1/reliability_risks/rest/client"
|
|
27
|
+
|
|
28
|
+
module Google
|
|
29
|
+
module Cloud
|
|
30
|
+
module Compute
|
|
31
|
+
module V1
|
|
32
|
+
##
|
|
33
|
+
# The ReliabilityRisks API.
|
|
34
|
+
#
|
|
35
|
+
# This client uses ReliabilityRisks version 2026-09-01.
|
|
36
|
+
#
|
|
37
|
+
# To load this service and instantiate a REST client:
|
|
38
|
+
#
|
|
39
|
+
# require "google/cloud/compute/v1/reliability_risks/rest"
|
|
40
|
+
# client = ::Google::Cloud::Compute::V1::ReliabilityRisks::Rest::Client.new
|
|
41
|
+
#
|
|
42
|
+
module ReliabilityRisks
|
|
43
|
+
# Client for the REST transport
|
|
44
|
+
module Rest
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
53
|
+
require "google/cloud/compute/v1/reliability_risks/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/config"
|
|
20
|
+
require "gapic/config/method"
|
|
21
|
+
|
|
22
|
+
require "google/cloud/compute/v1/version"
|
|
23
|
+
|
|
24
|
+
require "google/cloud/compute/v1/reliability_risks/credentials"
|
|
25
|
+
require "google/cloud/compute/v1/reliability_risks/rest"
|
|
26
|
+
|
|
27
|
+
module Google
|
|
28
|
+
module Cloud
|
|
29
|
+
module Compute
|
|
30
|
+
module V1
|
|
31
|
+
##
|
|
32
|
+
# The ReliabilityRisks API.
|
|
33
|
+
#
|
|
34
|
+
# This client uses ReliabilityRisks version 2026-09-01.
|
|
35
|
+
#
|
|
36
|
+
# @example Load this service and instantiate a REST client
|
|
37
|
+
#
|
|
38
|
+
# require "google/cloud/compute/v1/reliability_risks/rest"
|
|
39
|
+
# client = ::Google::Cloud::Compute::V1::ReliabilityRisks::Rest::Client.new
|
|
40
|
+
#
|
|
41
|
+
module ReliabilityRisks
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
helper_path = ::File.join __dir__, "reliability_risks", "helpers.rb"
|
|
49
|
+
require "google/cloud/compute/v1/reliability_risks/helpers" if ::File.file? helper_path
|
|
@@ -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 ReservationBlocks API.
|
|
34
34
|
#
|
|
35
|
+
# This client uses ReservationBlocks 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$"
|
|
@@ -399,7 +401,7 @@ module Google
|
|
|
399
401
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
400
402
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
401
403
|
#
|
|
402
|
-
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, reservation: nil,
|
|
404
|
+
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, reservation: nil, zone: nil)
|
|
403
405
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
404
406
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
405
407
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -490,13 +492,6 @@ module Google
|
|
|
490
492
|
# @param reservation [::String]
|
|
491
493
|
# The name of the reservation.
|
|
492
494
|
# Name should conform to RFC1035 or be a resource ID.
|
|
493
|
-
# @param return_partial_success [::Boolean]
|
|
494
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
495
|
-
# of failure. The default value is false.
|
|
496
|
-
#
|
|
497
|
-
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
498
|
-
# single zone scope either returns all resources in the zone or no resources,
|
|
499
|
-
# with an error code.
|
|
500
495
|
# @param zone [::String]
|
|
501
496
|
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
502
497
|
# @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.
|
|
@@ -32,6 +32,8 @@ module Google
|
|
|
32
32
|
##
|
|
33
33
|
# The ReservationBlocks API.
|
|
34
34
|
#
|
|
35
|
+
# This client uses ReservationBlocks 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/reservation_blocks/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 ReservationBlocks API.
|
|
33
33
|
#
|
|
34
|
+
# This client uses ReservationBlocks 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/reservation_blocks/rest"
|
|
@@ -32,9 +32,11 @@ module Google
|
|
|
32
32
|
#
|
|
33
33
|
# The ReservationSlots API.
|
|
34
34
|
#
|
|
35
|
+
# This client uses ReservationSlots 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$"
|
|
@@ -76,6 +78,8 @@ module Google
|
|
|
76
78
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
77
79
|
}
|
|
78
80
|
|
|
81
|
+
default_config.rpcs.get_health.timeout = 600.0
|
|
82
|
+
|
|
79
83
|
default_config.rpcs.get_version.timeout = 600.0
|
|
80
84
|
|
|
81
85
|
default_config.rpcs.list.timeout = 600.0
|
|
@@ -289,6 +293,105 @@ module Google
|
|
|
289
293
|
raise ::Google::Cloud::Error.from_error(e)
|
|
290
294
|
end
|
|
291
295
|
|
|
296
|
+
##
|
|
297
|
+
# Get health info on a reservation slot.
|
|
298
|
+
#
|
|
299
|
+
# @overload get_health(request, options = nil)
|
|
300
|
+
# Pass arguments to `get_health` via a request object, either of type
|
|
301
|
+
# {::Google::Cloud::Compute::V1::GetHealthReservationSlotRequest} or an equivalent Hash.
|
|
302
|
+
#
|
|
303
|
+
# @param request [::Google::Cloud::Compute::V1::GetHealthReservationSlotRequest, ::Hash]
|
|
304
|
+
# A request object representing the call parameters. Required. To specify no
|
|
305
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
306
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
307
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
308
|
+
#
|
|
309
|
+
# @overload get_health(parent_name: nil, project: nil, request_id: nil, reservation_slot: nil, zone: nil)
|
|
310
|
+
# Pass arguments to `get_health` via keyword arguments. Note that at
|
|
311
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
312
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
313
|
+
#
|
|
314
|
+
# @param parent_name [::String]
|
|
315
|
+
# The name of the parent reservation, parent block and parent sub-block. In
|
|
316
|
+
# the format of
|
|
317
|
+
# reservations/\\{reservation_name}/reservationBlocks/\\{reservation_block_name}/reservationSubBlocks/\\{reservation_sub_block_name}
|
|
318
|
+
# @param project [::String]
|
|
319
|
+
# Project ID for this request.
|
|
320
|
+
# @param request_id [::String]
|
|
321
|
+
# An optional request ID to identify requests.
|
|
322
|
+
# @param reservation_slot [::String]
|
|
323
|
+
# The name of the reservation slot.
|
|
324
|
+
# Name should conform to RFC1035 or be a resource ID.
|
|
325
|
+
# @param zone [::String]
|
|
326
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
327
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
328
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
329
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
330
|
+
#
|
|
331
|
+
# @return [::Gapic::GenericLRO::Operation]
|
|
332
|
+
#
|
|
333
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
334
|
+
#
|
|
335
|
+
# @example Basic example
|
|
336
|
+
# require "google/cloud/compute/v1"
|
|
337
|
+
#
|
|
338
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
339
|
+
# client = Google::Cloud::Compute::V1::ReservationSlots::Rest::Client.new
|
|
340
|
+
#
|
|
341
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
342
|
+
# request = Google::Cloud::Compute::V1::GetHealthReservationSlotRequest.new
|
|
343
|
+
#
|
|
344
|
+
# # Call the get_health method.
|
|
345
|
+
# result = client.get_health request
|
|
346
|
+
#
|
|
347
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
348
|
+
# p result
|
|
349
|
+
#
|
|
350
|
+
def get_health request, options = nil
|
|
351
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
352
|
+
|
|
353
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetHealthReservationSlotRequest
|
|
354
|
+
|
|
355
|
+
# Converts hash and nil to an options object
|
|
356
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
357
|
+
|
|
358
|
+
# Customize the options with defaults
|
|
359
|
+
call_metadata = @config.rpcs.get_health.metadata.to_h
|
|
360
|
+
|
|
361
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
362
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
363
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
364
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
365
|
+
transports_version_send: [:rest]
|
|
366
|
+
|
|
367
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
368
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
369
|
+
|
|
370
|
+
options.apply_defaults timeout: @config.rpcs.get_health.timeout,
|
|
371
|
+
metadata: call_metadata,
|
|
372
|
+
retry_policy: @config.rpcs.get_health.retry_policy
|
|
373
|
+
|
|
374
|
+
options.apply_defaults timeout: @config.timeout,
|
|
375
|
+
metadata: @config.metadata,
|
|
376
|
+
retry_policy: @config.retry_policy
|
|
377
|
+
|
|
378
|
+
@reservation_slots_stub.get_health request, options do |result, response|
|
|
379
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
|
380
|
+
operation: result,
|
|
381
|
+
client: zone_operations,
|
|
382
|
+
request_values: {
|
|
383
|
+
"project" => request.project,
|
|
384
|
+
"zone" => request.zone
|
|
385
|
+
},
|
|
386
|
+
options: options
|
|
387
|
+
)
|
|
388
|
+
yield result, response if block_given?
|
|
389
|
+
throw :response, result
|
|
390
|
+
end
|
|
391
|
+
rescue ::Gapic::Rest::Error => e
|
|
392
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
393
|
+
end
|
|
394
|
+
|
|
292
395
|
##
|
|
293
396
|
# Allows customers to get SBOM versions of a reservation slot.
|
|
294
397
|
#
|
|
@@ -414,7 +517,7 @@ module Google
|
|
|
414
517
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
415
518
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
416
519
|
#
|
|
417
|
-
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_name: nil, project: nil,
|
|
520
|
+
# @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_name: nil, project: nil, zone: nil)
|
|
418
521
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
419
522
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
420
523
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -505,13 +608,6 @@ module Google
|
|
|
505
608
|
# reservations/\\{reservation_name}/reservationBlocks/\\{reservation_block_name}/reservationSubBlocks/\\{reservation_sub_block_name}
|
|
506
609
|
# @param project [::String]
|
|
507
610
|
# The project ID for this request.
|
|
508
|
-
# @param return_partial_success [::Boolean]
|
|
509
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
510
|
-
# of failure. The default value is false.
|
|
511
|
-
#
|
|
512
|
-
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
513
|
-
# single zone scope either returns all resources in the zone or no resources,
|
|
514
|
-
# with an error code.
|
|
515
611
|
# @param zone [::String]
|
|
516
612
|
# The name of the zone for this request, formatted as RFC1035.
|
|
517
613
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -826,6 +922,11 @@ module Google
|
|
|
826
922
|
#
|
|
827
923
|
attr_reader :get
|
|
828
924
|
##
|
|
925
|
+
# RPC-specific configuration for `get_health`
|
|
926
|
+
# @return [::Gapic::Config::Method]
|
|
927
|
+
#
|
|
928
|
+
attr_reader :get_health
|
|
929
|
+
##
|
|
829
930
|
# RPC-specific configuration for `get_version`
|
|
830
931
|
# @return [::Gapic::Config::Method]
|
|
831
932
|
#
|
|
@@ -845,6 +946,8 @@ module Google
|
|
|
845
946
|
def initialize parent_rpcs = nil
|
|
846
947
|
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
|
847
948
|
@get = ::Gapic::Config::Method.new get_config
|
|
949
|
+
get_health_config = parent_rpcs.get_health if parent_rpcs.respond_to? :get_health
|
|
950
|
+
@get_health = ::Gapic::Config::Method.new get_health_config
|
|
848
951
|
get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
|
|
849
952
|
@get_version = ::Gapic::Config::Method.new get_version_config
|
|
850
953
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
|
@@ -113,6 +113,46 @@ module Google
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the get_health REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetHealthReservationSlotRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def get_health request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_health_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "get_health",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
116
156
|
##
|
|
117
157
|
# Baseline implementation for the get_version REST call
|
|
118
158
|
#
|
|
@@ -257,6 +297,30 @@ module Google
|
|
|
257
297
|
transcoder.transcode request_pb
|
|
258
298
|
end
|
|
259
299
|
|
|
300
|
+
##
|
|
301
|
+
# @private
|
|
302
|
+
#
|
|
303
|
+
# GRPC transcoding helper method for the get_health REST call
|
|
304
|
+
#
|
|
305
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetHealthReservationSlotRequest]
|
|
306
|
+
# A request object representing the call parameters. Required.
|
|
307
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
308
|
+
# Uri, Body, Query string parameters
|
|
309
|
+
def self.transcode_get_health_request request_pb
|
|
310
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
311
|
+
.with_bindings(
|
|
312
|
+
uri_method: :post,
|
|
313
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSlots/{reservation_slot}/getHealth",
|
|
314
|
+
matches: [
|
|
315
|
+
["project", %r{^[^/]+/?$}, false],
|
|
316
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
317
|
+
["parent_name", %r{^reservations/[^/]+/reservationBlocks/[^/]+/reservationSubBlocks/[^/]+/?$}, false],
|
|
318
|
+
["reservation_slot", %r{^[^/]+/?$}, false]
|
|
319
|
+
]
|
|
320
|
+
)
|
|
321
|
+
transcoder.transcode request_pb
|
|
322
|
+
end
|
|
323
|
+
|
|
260
324
|
##
|
|
261
325
|
# @private
|
|
262
326
|
#
|