google-cloud-compute-v1 3.9.0 → 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d39140030c4872b1a315660af24e344e7bd8f01e64ebcd8248d5adc3ed62cba9
|
|
4
|
+
data.tar.gz: cb82f6b5eda90865a7829a1233f787b9a4ba055aef420207fcbb0e7d2d4ca9f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c41b4fffa8ce15fdc0decb8b6d0aaf9e256951095042512d39cc462df3cdf3224dfc43309eab198625efca26ba6a3b82662e6ee8db4148dd51a454548c6be16
|
|
7
|
+
data.tar.gz: 6fcb0cb1c5cc6a1d81c752bc7da55ea92f3ad619d480a0f4e06a684ab734ffb7e0bc1ee1ec02c5c49dae482a9269b7263138cc8a195affd292f969ca09f7fd98
|
data/.yardopts
CHANGED
data/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
# Ruby Client for the
|
|
1
|
+
# Ruby Client for the Compute Engine V1 API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Compute Engine is an infrastructure as a service (IaaS) product that offers self-managed virtual machine (VM) instances and bare metal instances.
|
|
4
4
|
|
|
5
|
-
google-cloud-compute-v1 is the official client library for the Google Cloud Compute V1 API.
|
|
6
5
|
|
|
7
6
|
https://github.com/googleapis/google-cloud-ruby
|
|
8
7
|
|
|
8
|
+
This gem is a _versioned_ client. It provides basic client classes for a
|
|
9
|
+
specific version of the Compute Engine V1 API. Most users should consider using
|
|
10
|
+
the main client gem,
|
|
11
|
+
[google-cloud-compute](https://rubygems.org/gems/google-cloud-compute).
|
|
12
|
+
See the section below titled *Which client should I use?* for more information.
|
|
13
|
+
|
|
9
14
|
## Installation
|
|
10
15
|
|
|
11
16
|
```
|
|
@@ -88,3 +93,61 @@ in security maintenance, and not end of life. Older versions of Ruby _may_
|
|
|
88
93
|
still work, but are unsupported and not recommended. See
|
|
89
94
|
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
90
95
|
support schedule.
|
|
96
|
+
|
|
97
|
+
## Which client should I use?
|
|
98
|
+
|
|
99
|
+
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
|
100
|
+
client library with a name such as `google-cloud-compute`,
|
|
101
|
+
and lower-level _versioned_ client libraries with names such as
|
|
102
|
+
`google-cloud-compute-v1`.
|
|
103
|
+
_In most cases, you should install the main client._
|
|
104
|
+
|
|
105
|
+
### What's the difference between the main client and a versioned client?
|
|
106
|
+
|
|
107
|
+
A _versioned client_ provides a basic set of data types and client classes for
|
|
108
|
+
a _single version_ of a specific service. (That is, for a service with multiple
|
|
109
|
+
versions, there might be a separate versioned client for each service version.)
|
|
110
|
+
Most versioned clients are written and maintained by a code generator.
|
|
111
|
+
|
|
112
|
+
The _main client_ is designed to provide you with the _recommended_ client
|
|
113
|
+
interfaces for the service. There will be only one main client for any given
|
|
114
|
+
service, even a service with multiple versions. The main client includes
|
|
115
|
+
factory methods for constructing the client objects we recommend for most
|
|
116
|
+
users. In some cases, those will be classes provided by an underlying versioned
|
|
117
|
+
client; in other cases, they will be handwritten higher-level client objects
|
|
118
|
+
with additional capabilities, convenience methods, or best practices built in.
|
|
119
|
+
Generally, the main client will default to a recommended service version,
|
|
120
|
+
although in some cases you can override this if you need to talk to a specific
|
|
121
|
+
service version.
|
|
122
|
+
|
|
123
|
+
### Why would I want to use the main client?
|
|
124
|
+
|
|
125
|
+
We recommend that most users install the main client gem for a service. You can
|
|
126
|
+
identify this gem as the one _without_ a version in its name, e.g.
|
|
127
|
+
`google-cloud-compute`.
|
|
128
|
+
The main client is recommended because it will embody the best practices for
|
|
129
|
+
accessing the service, and may also provide more convenient interfaces or
|
|
130
|
+
tighter integration into frameworks and third-party libraries. In addition, the
|
|
131
|
+
documentation and samples published by Google will generally demonstrate use of
|
|
132
|
+
the main client.
|
|
133
|
+
|
|
134
|
+
### Why would I want to use a versioned client?
|
|
135
|
+
|
|
136
|
+
You can use a versioned client if you are content with a possibly lower-level
|
|
137
|
+
class interface, you explicitly want to avoid features provided by the main
|
|
138
|
+
client, or you want to access a specific service version not be covered by the
|
|
139
|
+
main client. You can identify versioned client gems because the service version
|
|
140
|
+
is part of the name, e.g. `google-cloud-compute-v1`.
|
|
141
|
+
|
|
142
|
+
### What about the google-apis-<name> clients?
|
|
143
|
+
|
|
144
|
+
Client library gems with names that begin with `google-apis-` are based on an
|
|
145
|
+
older code generation technology. They talk to a REST/JSON backend (whereas
|
|
146
|
+
most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
|
|
147
|
+
not offer the same performance, features, and ease of use provided by more
|
|
148
|
+
modern clients.
|
|
149
|
+
|
|
150
|
+
The `google-apis-` clients have wide coverage across Google services, so you
|
|
151
|
+
might need to use one if there is no modern client available for the service.
|
|
152
|
+
However, if a modern client is available, we generally recommend it over the
|
|
153
|
+
older `google-apis-` clients.
|
|
@@ -72,6 +72,10 @@ module Google
|
|
|
72
72
|
|
|
73
73
|
default_config.rpcs.calendar_mode.timeout = 600.0
|
|
74
74
|
|
|
75
|
+
default_config.rpcs.capacity.timeout = 600.0
|
|
76
|
+
|
|
77
|
+
default_config.rpcs.capacity_history.timeout = 600.0
|
|
78
|
+
|
|
75
79
|
default_config
|
|
76
80
|
end
|
|
77
81
|
yield @configure if block_given?
|
|
@@ -261,6 +265,172 @@ module Google
|
|
|
261
265
|
raise ::Google::Cloud::Error.from_error(e)
|
|
262
266
|
end
|
|
263
267
|
|
|
268
|
+
##
|
|
269
|
+
# Advice on making real-time decisions (such as choosing zone or
|
|
270
|
+
# machine types) during deployment to maximize your chances of obtaining
|
|
271
|
+
# capacity.
|
|
272
|
+
#
|
|
273
|
+
# @overload capacity(request, options = nil)
|
|
274
|
+
# Pass arguments to `capacity` via a request object, either of type
|
|
275
|
+
# {::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest} or an equivalent Hash.
|
|
276
|
+
#
|
|
277
|
+
# @param request [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest, ::Hash]
|
|
278
|
+
# A request object representing the call parameters. Required. To specify no
|
|
279
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
280
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
281
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
282
|
+
#
|
|
283
|
+
# @overload capacity(capacity_advice_request_resource: nil, project: nil, region: nil)
|
|
284
|
+
# Pass arguments to `capacity` via keyword arguments. Note that at
|
|
285
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
286
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
287
|
+
#
|
|
288
|
+
# @param capacity_advice_request_resource [::Google::Cloud::Compute::V1::CapacityAdviceRequest, ::Hash]
|
|
289
|
+
# The body resource for this request
|
|
290
|
+
# @param project [::String]
|
|
291
|
+
# Project ID for this request.
|
|
292
|
+
# @param region [::String]
|
|
293
|
+
# Name of the region for this request.
|
|
294
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
295
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
|
|
296
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
297
|
+
#
|
|
298
|
+
# @return [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
|
|
299
|
+
#
|
|
300
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
301
|
+
#
|
|
302
|
+
# @example Basic example
|
|
303
|
+
# require "google/cloud/compute/v1"
|
|
304
|
+
#
|
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
306
|
+
# client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
|
|
307
|
+
#
|
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
309
|
+
# request = Google::Cloud::Compute::V1::CapacityAdviceRpcRequest.new
|
|
310
|
+
#
|
|
311
|
+
# # Call the capacity method.
|
|
312
|
+
# result = client.capacity request
|
|
313
|
+
#
|
|
314
|
+
# # The returned object is of type Google::Cloud::Compute::V1::CapacityAdviceResponse.
|
|
315
|
+
# p result
|
|
316
|
+
#
|
|
317
|
+
def capacity request, options = nil
|
|
318
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
319
|
+
|
|
320
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest
|
|
321
|
+
|
|
322
|
+
# Converts hash and nil to an options object
|
|
323
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
324
|
+
|
|
325
|
+
# Customize the options with defaults
|
|
326
|
+
call_metadata = @config.rpcs.capacity.metadata.to_h
|
|
327
|
+
|
|
328
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
329
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
330
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
331
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
332
|
+
transports_version_send: [:rest]
|
|
333
|
+
|
|
334
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
335
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
336
|
+
|
|
337
|
+
options.apply_defaults timeout: @config.rpcs.capacity.timeout,
|
|
338
|
+
metadata: call_metadata,
|
|
339
|
+
retry_policy: @config.rpcs.capacity.retry_policy
|
|
340
|
+
|
|
341
|
+
options.apply_defaults timeout: @config.timeout,
|
|
342
|
+
metadata: @config.metadata,
|
|
343
|
+
retry_policy: @config.retry_policy
|
|
344
|
+
|
|
345
|
+
@advice_stub.capacity request, options do |result, operation|
|
|
346
|
+
yield result, operation if block_given?
|
|
347
|
+
end
|
|
348
|
+
rescue ::Gapic::Rest::Error => e
|
|
349
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
##
|
|
353
|
+
# Gets the capacity history.
|
|
354
|
+
#
|
|
355
|
+
# @overload capacity_history(request, options = nil)
|
|
356
|
+
# Pass arguments to `capacity_history` via a request object, either of type
|
|
357
|
+
# {::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest} or an equivalent Hash.
|
|
358
|
+
#
|
|
359
|
+
# @param request [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest, ::Hash]
|
|
360
|
+
# A request object representing the call parameters. Required. To specify no
|
|
361
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
362
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
363
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
364
|
+
#
|
|
365
|
+
# @overload capacity_history(capacity_history_request_resource: nil, project: nil, region: nil)
|
|
366
|
+
# Pass arguments to `capacity_history` via keyword arguments. Note that at
|
|
367
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
368
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
369
|
+
#
|
|
370
|
+
# @param capacity_history_request_resource [::Google::Cloud::Compute::V1::CapacityHistoryRequest, ::Hash]
|
|
371
|
+
# The body resource for this request
|
|
372
|
+
# @param project [::String]
|
|
373
|
+
# Project ID for this request.
|
|
374
|
+
# @param region [::String]
|
|
375
|
+
# Name of the region for this request.
|
|
376
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
377
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
|
|
378
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
379
|
+
#
|
|
380
|
+
# @return [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
|
|
381
|
+
#
|
|
382
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
383
|
+
#
|
|
384
|
+
# @example Basic example
|
|
385
|
+
# require "google/cloud/compute/v1"
|
|
386
|
+
#
|
|
387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
388
|
+
# client = Google::Cloud::Compute::V1::Advice::Rest::Client.new
|
|
389
|
+
#
|
|
390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
391
|
+
# request = Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest.new
|
|
392
|
+
#
|
|
393
|
+
# # Call the capacity_history method.
|
|
394
|
+
# result = client.capacity_history request
|
|
395
|
+
#
|
|
396
|
+
# # The returned object is of type Google::Cloud::Compute::V1::CapacityHistoryResponse.
|
|
397
|
+
# p result
|
|
398
|
+
#
|
|
399
|
+
def capacity_history request, options = nil
|
|
400
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
401
|
+
|
|
402
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest
|
|
403
|
+
|
|
404
|
+
# Converts hash and nil to an options object
|
|
405
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
406
|
+
|
|
407
|
+
# Customize the options with defaults
|
|
408
|
+
call_metadata = @config.rpcs.capacity_history.metadata.to_h
|
|
409
|
+
|
|
410
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
411
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
412
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
413
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
414
|
+
transports_version_send: [:rest]
|
|
415
|
+
|
|
416
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
417
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
418
|
+
|
|
419
|
+
options.apply_defaults timeout: @config.rpcs.capacity_history.timeout,
|
|
420
|
+
metadata: call_metadata,
|
|
421
|
+
retry_policy: @config.rpcs.capacity_history.retry_policy
|
|
422
|
+
|
|
423
|
+
options.apply_defaults timeout: @config.timeout,
|
|
424
|
+
metadata: @config.metadata,
|
|
425
|
+
retry_policy: @config.retry_policy
|
|
426
|
+
|
|
427
|
+
@advice_stub.capacity_history request, options do |result, operation|
|
|
428
|
+
yield result, operation if block_given?
|
|
429
|
+
end
|
|
430
|
+
rescue ::Gapic::Rest::Error => e
|
|
431
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
432
|
+
end
|
|
433
|
+
|
|
264
434
|
##
|
|
265
435
|
# Configuration class for the Advice REST API.
|
|
266
436
|
#
|
|
@@ -414,11 +584,25 @@ module Google
|
|
|
414
584
|
# @return [::Gapic::Config::Method]
|
|
415
585
|
#
|
|
416
586
|
attr_reader :calendar_mode
|
|
587
|
+
##
|
|
588
|
+
# RPC-specific configuration for `capacity`
|
|
589
|
+
# @return [::Gapic::Config::Method]
|
|
590
|
+
#
|
|
591
|
+
attr_reader :capacity
|
|
592
|
+
##
|
|
593
|
+
# RPC-specific configuration for `capacity_history`
|
|
594
|
+
# @return [::Gapic::Config::Method]
|
|
595
|
+
#
|
|
596
|
+
attr_reader :capacity_history
|
|
417
597
|
|
|
418
598
|
# @private
|
|
419
599
|
def initialize parent_rpcs = nil
|
|
420
600
|
calendar_mode_config = parent_rpcs.calendar_mode if parent_rpcs.respond_to? :calendar_mode
|
|
421
601
|
@calendar_mode = ::Gapic::Config::Method.new calendar_mode_config
|
|
602
|
+
capacity_config = parent_rpcs.capacity if parent_rpcs.respond_to? :capacity
|
|
603
|
+
@capacity = ::Gapic::Config::Method.new capacity_config
|
|
604
|
+
capacity_history_config = parent_rpcs.capacity_history if parent_rpcs.respond_to? :capacity_history
|
|
605
|
+
@capacity_history = ::Gapic::Config::Method.new capacity_history_config
|
|
422
606
|
|
|
423
607
|
yield self if block_given?
|
|
424
608
|
end
|
|
@@ -113,6 +113,86 @@ module Google
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the capacity REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest]
|
|
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::CapacityAdviceResponse]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::Compute::V1::CapacityAdviceResponse]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def capacity 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_capacity_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: "capacity",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::Compute::V1::CapacityAdviceResponse.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
|
+
# Baseline implementation for the capacity_history REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Cloud::Compute::V1::CapacityHistoryResponse]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def capacity_history request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_capacity_history_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "capacity_history",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Cloud::Compute::V1::CapacityHistoryResponse.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
116
196
|
##
|
|
117
197
|
# @private
|
|
118
198
|
#
|
|
@@ -135,6 +215,52 @@ module Google
|
|
|
135
215
|
)
|
|
136
216
|
transcoder.transcode request_pb
|
|
137
217
|
end
|
|
218
|
+
|
|
219
|
+
##
|
|
220
|
+
# @private
|
|
221
|
+
#
|
|
222
|
+
# GRPC transcoding helper method for the capacity REST call
|
|
223
|
+
#
|
|
224
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CapacityAdviceRpcRequest]
|
|
225
|
+
# A request object representing the call parameters. Required.
|
|
226
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
227
|
+
# Uri, Body, Query string parameters
|
|
228
|
+
def self.transcode_capacity_request request_pb
|
|
229
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
230
|
+
.with_bindings(
|
|
231
|
+
uri_method: :post,
|
|
232
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/advice/capacity",
|
|
233
|
+
body: "capacity_advice_request_resource",
|
|
234
|
+
matches: [
|
|
235
|
+
["project", %r{^[^/]+/?$}, false],
|
|
236
|
+
["region", %r{^[^/]+/?$}, false]
|
|
237
|
+
]
|
|
238
|
+
)
|
|
239
|
+
transcoder.transcode request_pb
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
##
|
|
243
|
+
# @private
|
|
244
|
+
#
|
|
245
|
+
# GRPC transcoding helper method for the capacity_history REST call
|
|
246
|
+
#
|
|
247
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CapacityHistoryAdviceRequest]
|
|
248
|
+
# A request object representing the call parameters. Required.
|
|
249
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
250
|
+
# Uri, Body, Query string parameters
|
|
251
|
+
def self.transcode_capacity_history_request request_pb
|
|
252
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
253
|
+
.with_bindings(
|
|
254
|
+
uri_method: :post,
|
|
255
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/advice/capacityHistory",
|
|
256
|
+
body: "capacity_history_request_resource",
|
|
257
|
+
matches: [
|
|
258
|
+
["project", %r{^[^/]+/?$}, false],
|
|
259
|
+
["region", %r{^[^/]+/?$}, false]
|
|
260
|
+
]
|
|
261
|
+
)
|
|
262
|
+
transcoder.transcode request_pb
|
|
263
|
+
end
|
|
138
264
|
end
|
|
139
265
|
end
|
|
140
266
|
end
|