Registry / cloud / google-apis-compute-v1

google-apis-compute-v1

JSON →
library0.146.0rbrubygemsunverified

Simple REST client for Compute Engine API V1, providing access to Google Compute Engine services via HTTP REST endpoints.

gem install google-apis-compute_v1
INSTALL
IMPORT
SIG · GOOGLE-APIS-COMPUT
G
google-apis-compute-v1
cloudrubyv0.146.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Google::Apis::ComputeV1
require 'google/apis/compute_v1'

List Compute Engine instances

require 'google/apis/compute_v1' compute = Google::Apis::ComputeV1::ComputeService.new compute.authorization = Google::Auth::ServiceAccountCredentials.make_creds(json_key_io: File.open('key.json')) instances = compute.list_instances('my-project', 'us-central1-a') puts instances.items.map(&:name)
Debug
Known issues
gotchaRequires authentication setup with a service account or OAuth
fix
Set up Google Cloud authentication via environment variable GOOGLE_APPLICATION_CREDENTIALS or provide credentials explicitly
affects: >= 0.1.0
Upgrade
Version history
0.146.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
google-apis-compute-v1 — gem install google-apis-compute-v1 · libregistry