Ruby Client for the Google Cloud Compute V1 API
API Client library for the Google Cloud Compute V1 API
google-cloud-compute-v1 is the official client library for the Google Cloud Compute V1 API.
https://github.com/googleapis/google-cloud-ruby
Installation
$ gem install google-cloud-compute-v1Before You Begin
In order to use this library, you first need to go through the following steps:
- Select or create a Cloud Platform project.
- Enable billing for your project.
- Enable the API.
- Set up authentication.
Quick Start
require"google/cloud/compute/v1"client=::Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.newrequest=::Google::Cloud::Compute::V1::AggregatedListAcceleratorTypesRequest.new# (request fields as keyword arguments...)response=client.aggregated_listrequest
View theClient Library Documentationfor class and method documentation.
See also theProduct Documentationfor general usage information.
Supported Ruby Versions
This library is supported on Ruby 2.5+.
Google provides official support for Ruby versions that are actively supportedby Ruby Core—that is, Ruby versions that are either in normal maintenance orin security maintenance, and not end of life. Currently, this means Ruby 2.5and later. Older versions of Rubymay still work, but are unsupported and notrecommended. Seehttps://www.ruby-lang.org/en/downloads/branches/ for detailsabout the Ruby support schedule.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.