google-cloud-compute-v1 3.9.1 → 3.12.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 +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses.rb +1 -1
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +184 -0
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +126 -0
- data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services.rb +1 -1
- data/lib/google/cloud/compute/v1/compute_pb.rb +69 -1
- data/lib/google/cloud/compute/v1/disk_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/disks.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/global_operations.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks.rb +1 -1
- data/lib/google/cloud/compute/v1/hosts/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/hosts/rest/client.rb +755 -0
- data/lib/google/cloud/compute/v1/hosts/rest/service_stub.rb +273 -0
- data/lib/google/cloud/compute/v1/hosts/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/hosts.rb +47 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/image_family_views.rb +1 -1
- data/lib/google/cloud/compute/v1/images/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/images.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/instance_settings_service.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -3
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/instances.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_groups.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/networks.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings.rb +1 -1
- data/lib/google/cloud/compute/v1/project_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/project_views/rest/client.rb +438 -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 +51 -0
- data/lib/google/cloud/compute/v1/project_views.rb +47 -0
- data/lib/google/cloud/compute/v1/projects/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/projects.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_instance_groups.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_instance_templates.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +1 -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 +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_operations.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/regions.rb +1 -1
- data/lib/google/cloud/compute/v1/reliability_risks/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/reliability_risks/rest/client.rb +611 -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 +51 -0
- data/lib/google/cloud/compute/v1/reliability_risks.rb +47 -0
- data/lib/google/cloud/compute/v1/reservation_blocks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +108 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +64 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/reservation_sub_blocks.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/resource_policies.rb +1 -1
- data/lib/google/cloud/compute/v1/rest.rb +4 -1
- data/lib/google/cloud/compute/v1/routers/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/routers/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/routers.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/routes.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/storage_pool_types.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_https_proxies.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +1 -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 +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps.rb +1 -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 +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- 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 +1 -1
- data/lib/google/cloud/compute/v1/zone_operations.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/credentials.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest.rb +1 -1
- data/lib/google/cloud/compute/v1/zones.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +4 -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 +2269 -480
- 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 +23 -4
|
@@ -0,0 +1,438 @@
|
|
|
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/errors"
|
|
20
|
+
require "google/cloud/compute/v1/compute_pb"
|
|
21
|
+
require "google/cloud/compute/v1/project_views/rest/service_stub"
|
|
22
|
+
|
|
23
|
+
module Google
|
|
24
|
+
module Cloud
|
|
25
|
+
module Compute
|
|
26
|
+
module V1
|
|
27
|
+
module ProjectViews
|
|
28
|
+
module Rest
|
|
29
|
+
##
|
|
30
|
+
# REST client for the ProjectViews service.
|
|
31
|
+
#
|
|
32
|
+
# The ProjectViews API.
|
|
33
|
+
#
|
|
34
|
+
class Client
|
|
35
|
+
# @private
|
|
36
|
+
API_VERSION = ""
|
|
37
|
+
|
|
38
|
+
# @private
|
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
|
40
|
+
|
|
41
|
+
# @private
|
|
42
|
+
attr_reader :project_views_stub
|
|
43
|
+
|
|
44
|
+
##
|
|
45
|
+
# Configure the ProjectViews Client class.
|
|
46
|
+
#
|
|
47
|
+
# See {::Google::Cloud::Compute::V1::ProjectViews::Rest::Client::Configuration}
|
|
48
|
+
# for a description of the configuration fields.
|
|
49
|
+
#
|
|
50
|
+
# @example
|
|
51
|
+
#
|
|
52
|
+
# # Modify the configuration for all ProjectViews clients
|
|
53
|
+
# ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.configure do |config|
|
|
54
|
+
# config.timeout = 10.0
|
|
55
|
+
# end
|
|
56
|
+
#
|
|
57
|
+
# @yield [config] Configure the Client client.
|
|
58
|
+
# @yieldparam config [Client::Configuration]
|
|
59
|
+
#
|
|
60
|
+
# @return [Client::Configuration]
|
|
61
|
+
#
|
|
62
|
+
def self.configure
|
|
63
|
+
@configure ||= begin
|
|
64
|
+
namespace = ["Google", "Cloud", "Compute", "V1"]
|
|
65
|
+
parent_config = while namespace.any?
|
|
66
|
+
parent_name = namespace.join "::"
|
|
67
|
+
parent_const = const_get parent_name
|
|
68
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
69
|
+
namespace.pop
|
|
70
|
+
end
|
|
71
|
+
default_config = Client::Configuration.new parent_config
|
|
72
|
+
|
|
73
|
+
default_config.rpcs.get.timeout = 600.0
|
|
74
|
+
default_config.rpcs.get.retry_policy = {
|
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
default_config
|
|
79
|
+
end
|
|
80
|
+
yield @configure if block_given?
|
|
81
|
+
@configure
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Configure the ProjectViews Client instance.
|
|
86
|
+
#
|
|
87
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
88
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
89
|
+
# should be made on {Client.configure}.
|
|
90
|
+
#
|
|
91
|
+
# See {::Google::Cloud::Compute::V1::ProjectViews::Rest::Client::Configuration}
|
|
92
|
+
# for a description of the configuration fields.
|
|
93
|
+
#
|
|
94
|
+
# @yield [config] Configure the Client client.
|
|
95
|
+
# @yieldparam config [Client::Configuration]
|
|
96
|
+
#
|
|
97
|
+
# @return [Client::Configuration]
|
|
98
|
+
#
|
|
99
|
+
def configure
|
|
100
|
+
yield @config if block_given?
|
|
101
|
+
@config
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
##
|
|
105
|
+
# The effective universe domain
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
#
|
|
109
|
+
def universe_domain
|
|
110
|
+
@project_views_stub.universe_domain
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
##
|
|
114
|
+
# Create a new ProjectViews REST client object.
|
|
115
|
+
#
|
|
116
|
+
# @example
|
|
117
|
+
#
|
|
118
|
+
# # Create a client using the default configuration
|
|
119
|
+
# client = ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.new
|
|
120
|
+
#
|
|
121
|
+
# # Create a client using a custom configuration
|
|
122
|
+
# client = ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.new do |config|
|
|
123
|
+
# config.timeout = 10.0
|
|
124
|
+
# end
|
|
125
|
+
#
|
|
126
|
+
# @yield [config] Configure the ProjectViews client.
|
|
127
|
+
# @yieldparam config [Client::Configuration]
|
|
128
|
+
#
|
|
129
|
+
def initialize
|
|
130
|
+
# Create the configuration object
|
|
131
|
+
@config = Configuration.new Client.configure
|
|
132
|
+
|
|
133
|
+
# Yield the configuration if needed
|
|
134
|
+
yield @config if block_given?
|
|
135
|
+
|
|
136
|
+
# Create credentials
|
|
137
|
+
credentials = @config.credentials
|
|
138
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
139
|
+
# but only if the default endpoint does not have a region prefix.
|
|
140
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
141
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
142
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
143
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
144
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
145
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
146
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
@quota_project_id = @config.quota_project
|
|
150
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
151
|
+
|
|
152
|
+
@project_views_stub = ::Google::Cloud::Compute::V1::ProjectViews::Rest::ServiceStub.new(
|
|
153
|
+
endpoint: @config.endpoint,
|
|
154
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
155
|
+
universe_domain: @config.universe_domain,
|
|
156
|
+
credentials: credentials,
|
|
157
|
+
logger: @config.logger
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
@project_views_stub.logger(stub: true)&.info do |entry|
|
|
161
|
+
entry.set_system_name
|
|
162
|
+
entry.set_service
|
|
163
|
+
entry.message = "Created client for #{entry.service}"
|
|
164
|
+
entry.set_credentials_fields credentials
|
|
165
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
166
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
167
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
##
|
|
172
|
+
# The logger used for request/response debug logging.
|
|
173
|
+
#
|
|
174
|
+
# @return [Logger]
|
|
175
|
+
#
|
|
176
|
+
def logger
|
|
177
|
+
@project_views_stub.logger
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Service calls
|
|
181
|
+
|
|
182
|
+
##
|
|
183
|
+
# Returns the specified global ProjectViews resource, with a regional
|
|
184
|
+
# context.
|
|
185
|
+
# This regional API endpoint reads resource metadata from regional
|
|
186
|
+
# read-only replicas. Because changes are copied to these regional replicas
|
|
187
|
+
# asynchronously, for real-time resource reads or any write operations
|
|
188
|
+
# (creating, updating, or deleting resources), use the global
|
|
189
|
+
# [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get)
|
|
190
|
+
# endpoint.
|
|
191
|
+
#
|
|
192
|
+
# @overload get(request, options = nil)
|
|
193
|
+
# Pass arguments to `get` via a request object, either of type
|
|
194
|
+
# {::Google::Cloud::Compute::V1::GetProjectViewRequest} or an equivalent Hash.
|
|
195
|
+
#
|
|
196
|
+
# @param request [::Google::Cloud::Compute::V1::GetProjectViewRequest, ::Hash]
|
|
197
|
+
# A request object representing the call parameters. Required. To specify no
|
|
198
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
199
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
200
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
201
|
+
#
|
|
202
|
+
# @overload get(project: nil, region: nil)
|
|
203
|
+
# Pass arguments to `get` via keyword arguments. Note that at
|
|
204
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
205
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
206
|
+
#
|
|
207
|
+
# @param project [::String]
|
|
208
|
+
# Required. Project ID for this request. This is part of the URL path.
|
|
209
|
+
# @param region [::String]
|
|
210
|
+
# Required. Name of the region for this request. This is part of the URL path.
|
|
211
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
212
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::ProjectView]
|
|
213
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
214
|
+
#
|
|
215
|
+
# @return [::Google::Cloud::Compute::V1::ProjectView]
|
|
216
|
+
#
|
|
217
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
218
|
+
#
|
|
219
|
+
# @example Basic example
|
|
220
|
+
# require "google/cloud/compute/v1"
|
|
221
|
+
#
|
|
222
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
223
|
+
# client = Google::Cloud::Compute::V1::ProjectViews::Rest::Client.new
|
|
224
|
+
#
|
|
225
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
226
|
+
# request = Google::Cloud::Compute::V1::GetProjectViewRequest.new
|
|
227
|
+
#
|
|
228
|
+
# # Call the get method.
|
|
229
|
+
# result = client.get request
|
|
230
|
+
#
|
|
231
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ProjectView.
|
|
232
|
+
# p result
|
|
233
|
+
#
|
|
234
|
+
def get request, options = nil
|
|
235
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
236
|
+
|
|
237
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetProjectViewRequest
|
|
238
|
+
|
|
239
|
+
# Converts hash and nil to an options object
|
|
240
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
241
|
+
|
|
242
|
+
# Customize the options with defaults
|
|
243
|
+
call_metadata = @config.rpcs.get.metadata.to_h
|
|
244
|
+
|
|
245
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
246
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
247
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
248
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
249
|
+
transports_version_send: [:rest]
|
|
250
|
+
|
|
251
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
252
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
253
|
+
|
|
254
|
+
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
|
255
|
+
metadata: call_metadata,
|
|
256
|
+
retry_policy: @config.rpcs.get.retry_policy
|
|
257
|
+
|
|
258
|
+
options.apply_defaults timeout: @config.timeout,
|
|
259
|
+
metadata: @config.metadata,
|
|
260
|
+
retry_policy: @config.retry_policy
|
|
261
|
+
|
|
262
|
+
@project_views_stub.get request, options do |result, operation|
|
|
263
|
+
yield result, operation if block_given?
|
|
264
|
+
end
|
|
265
|
+
rescue ::Gapic::Rest::Error => e
|
|
266
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
##
|
|
270
|
+
# Configuration class for the ProjectViews REST API.
|
|
271
|
+
#
|
|
272
|
+
# This class represents the configuration for ProjectViews REST,
|
|
273
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
274
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
275
|
+
# applied individually to specific RPCs. See
|
|
276
|
+
# {::Google::Cloud::Compute::V1::ProjectViews::Rest::Client::Configuration::Rpcs}
|
|
277
|
+
# for a list of RPCs that can be configured independently.
|
|
278
|
+
#
|
|
279
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
280
|
+
# on construction.
|
|
281
|
+
#
|
|
282
|
+
# @example
|
|
283
|
+
#
|
|
284
|
+
# # Modify the global config, setting the timeout for
|
|
285
|
+
# # get to 20 seconds,
|
|
286
|
+
# # and all remaining timeouts to 10 seconds.
|
|
287
|
+
# ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.configure do |config|
|
|
288
|
+
# config.timeout = 10.0
|
|
289
|
+
# config.rpcs.get.timeout = 20.0
|
|
290
|
+
# end
|
|
291
|
+
#
|
|
292
|
+
# # Apply the above configuration only to a new client.
|
|
293
|
+
# client = ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.new do |config|
|
|
294
|
+
# config.timeout = 10.0
|
|
295
|
+
# config.rpcs.get.timeout = 20.0
|
|
296
|
+
# end
|
|
297
|
+
#
|
|
298
|
+
# @!attribute [rw] endpoint
|
|
299
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
300
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
301
|
+
# @return [::String,nil]
|
|
302
|
+
# @!attribute [rw] credentials
|
|
303
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
304
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
305
|
+
# * (`Hash`) A service account key as a Hash
|
|
306
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
307
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
308
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
309
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
310
|
+
# * (`nil`) indicating no credentials
|
|
311
|
+
#
|
|
312
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
313
|
+
# external source for authentication to Google Cloud, you must validate it before
|
|
314
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
|
315
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
|
316
|
+
# For more information, refer to [Validate credential configurations from external
|
|
317
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
318
|
+
# @return [::Object]
|
|
319
|
+
# @!attribute [rw] scope
|
|
320
|
+
# The OAuth scopes
|
|
321
|
+
# @return [::Array<::String>]
|
|
322
|
+
# @!attribute [rw] lib_name
|
|
323
|
+
# The library name as recorded in instrumentation and logging
|
|
324
|
+
# @return [::String]
|
|
325
|
+
# @!attribute [rw] lib_version
|
|
326
|
+
# The library version as recorded in instrumentation and logging
|
|
327
|
+
# @return [::String]
|
|
328
|
+
# @!attribute [rw] timeout
|
|
329
|
+
# The call timeout in seconds.
|
|
330
|
+
# @return [::Numeric]
|
|
331
|
+
# @!attribute [rw] metadata
|
|
332
|
+
# Additional headers to be sent with the call.
|
|
333
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
334
|
+
# @!attribute [rw] retry_policy
|
|
335
|
+
# The retry policy. The value is a hash with the following keys:
|
|
336
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
337
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
338
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
339
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
340
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
341
|
+
# trigger a retry.
|
|
342
|
+
# @return [::Hash]
|
|
343
|
+
# @!attribute [rw] quota_project
|
|
344
|
+
# A separate project against which to charge quota.
|
|
345
|
+
# @return [::String]
|
|
346
|
+
# @!attribute [rw] universe_domain
|
|
347
|
+
# The universe domain within which to make requests. This determines the
|
|
348
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
349
|
+
# universe (usually the default "googleapis.com" universe).
|
|
350
|
+
# @return [::String,nil]
|
|
351
|
+
# @!attribute [rw] logger
|
|
352
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
353
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
354
|
+
# explicitly disable logging.
|
|
355
|
+
# @return [::Logger,:default,nil]
|
|
356
|
+
#
|
|
357
|
+
class Configuration
|
|
358
|
+
extend ::Gapic::Config
|
|
359
|
+
|
|
360
|
+
# @private
|
|
361
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
362
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
363
|
+
|
|
364
|
+
config_attr :endpoint, nil, ::String, nil
|
|
365
|
+
config_attr :credentials, nil do |value|
|
|
366
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
|
367
|
+
allowed.any? { |klass| klass === value }
|
|
368
|
+
end
|
|
369
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
370
|
+
config_attr :lib_name, nil, ::String, nil
|
|
371
|
+
config_attr :lib_version, nil, ::String, nil
|
|
372
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
373
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
374
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
375
|
+
config_attr :quota_project, nil, ::String, nil
|
|
376
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
377
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
378
|
+
|
|
379
|
+
# @private
|
|
380
|
+
def initialize parent_config = nil
|
|
381
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
382
|
+
|
|
383
|
+
yield self if block_given?
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
##
|
|
387
|
+
# Configurations for individual RPCs
|
|
388
|
+
# @return [Rpcs]
|
|
389
|
+
#
|
|
390
|
+
def rpcs
|
|
391
|
+
@rpcs ||= begin
|
|
392
|
+
parent_rpcs = nil
|
|
393
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
394
|
+
Rpcs.new parent_rpcs
|
|
395
|
+
end
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
##
|
|
399
|
+
# Configuration RPC class for the ProjectViews API.
|
|
400
|
+
#
|
|
401
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
402
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
403
|
+
# the following configuration fields:
|
|
404
|
+
#
|
|
405
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
406
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
407
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
408
|
+
# include the following keys:
|
|
409
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
410
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
411
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
412
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
413
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
414
|
+
# trigger a retry.
|
|
415
|
+
#
|
|
416
|
+
class Rpcs
|
|
417
|
+
##
|
|
418
|
+
# RPC-specific configuration for `get`
|
|
419
|
+
# @return [::Gapic::Config::Method]
|
|
420
|
+
#
|
|
421
|
+
attr_reader :get
|
|
422
|
+
|
|
423
|
+
# @private
|
|
424
|
+
def initialize parent_rpcs = nil
|
|
425
|
+
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
|
426
|
+
@get = ::Gapic::Config::Method.new get_config
|
|
427
|
+
|
|
428
|
+
yield self if block_given?
|
|
429
|
+
end
|
|
430
|
+
end
|
|
431
|
+
end
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
end
|
|
438
|
+
end
|
|
@@ -0,0 +1,143 @@
|
|
|
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 ProjectViews
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the ProjectViews 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::GetProjectViewRequest]
|
|
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::ProjectView]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Compute::V1::ProjectView]
|
|
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::ProjectView.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
|
+
# @private
|
|
118
|
+
#
|
|
119
|
+
# GRPC transcoding helper method for the get REST call
|
|
120
|
+
#
|
|
121
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetProjectViewRequest]
|
|
122
|
+
# A request object representing the call parameters. Required.
|
|
123
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
124
|
+
# Uri, Body, Query string parameters
|
|
125
|
+
def self.transcode_get_request request_pb
|
|
126
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
127
|
+
.with_bindings(
|
|
128
|
+
uri_method: :get,
|
|
129
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/projectViews",
|
|
130
|
+
matches: [
|
|
131
|
+
["project", %r{^[^/]+/?$}, false],
|
|
132
|
+
["region", %r{^[^/]+/?$}, false]
|
|
133
|
+
]
|
|
134
|
+
)
|
|
135
|
+
transcoder.transcode request_pb
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
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/project_views/credentials"
|
|
26
|
+
require "google/cloud/compute/v1/project_views/rest/client"
|
|
27
|
+
|
|
28
|
+
module Google
|
|
29
|
+
module Cloud
|
|
30
|
+
module Compute
|
|
31
|
+
module V1
|
|
32
|
+
##
|
|
33
|
+
# The ProjectViews API.
|
|
34
|
+
#
|
|
35
|
+
# To load this service and instantiate a REST client:
|
|
36
|
+
#
|
|
37
|
+
# require "google/cloud/compute/v1/project_views/rest"
|
|
38
|
+
# client = ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.new
|
|
39
|
+
#
|
|
40
|
+
module ProjectViews
|
|
41
|
+
# Client for the REST transport
|
|
42
|
+
module Rest
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
51
|
+
require "google/cloud/compute/v1/project_views/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,47 @@
|
|
|
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/project_views/credentials"
|
|
25
|
+
require "google/cloud/compute/v1/project_views/rest"
|
|
26
|
+
|
|
27
|
+
module Google
|
|
28
|
+
module Cloud
|
|
29
|
+
module Compute
|
|
30
|
+
module V1
|
|
31
|
+
##
|
|
32
|
+
# The ProjectViews API.
|
|
33
|
+
#
|
|
34
|
+
# @example Load this service and instantiate a REST client
|
|
35
|
+
#
|
|
36
|
+
# require "google/cloud/compute/v1/project_views/rest"
|
|
37
|
+
# client = ::Google::Cloud::Compute::V1::ProjectViews::Rest::Client.new
|
|
38
|
+
#
|
|
39
|
+
module ProjectViews
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
helper_path = ::File.join __dir__, "project_views", "helpers.rb"
|
|
47
|
+
require "google/cloud/compute/v1/project_views/helpers" if ::File.file? helper_path
|