Registry / auth / google-apis-iamcredentials-v1

google-apis-iamcredentials-v1

JSON →
library0.27.0rbrubygemsunverified

Simple REST client for the IAM Service Account Credentials API V1, providing access to Google services via HTTP REST endpoints with automatic authentication, pagination, retry, timeouts, and logging.

gem install google-apis-iamcredentials_v1
INSTALL
IMPORT
SIG · GOOGLE-APIS-IAMCRE
G
google-apis-iamcredentials-v1
authrubyv0.27.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::IamcredentialsV1
require 'google/apis/iamcredentials_v1'

Initialize the IAM Credentials client and generate an access token for a service account.

require 'google/apis/iamcredentials_v1' service = Google::Apis::IamcredentialsV1::IAMCredentialsService.new service.authorization = Google::Auth::ServiceAccountCredentials.make_creds( json_key_io: File.open('service-account-key.json'), scope: 'https://www.googleapis.com/auth/cloud-platform' ) # Example: generate access token name = 'projects/-/serviceAccounts/my-sa@project.iam.gserviceaccount.com' result = service.generate_service_account_access_token(name, { scope: ['https://www.googleapis.com/auth/cloud-platform'] }) puts result.access_token
Debug
Known issues
breakingRequires Ruby 2.5 or later due to dependency on google-apis-core.
fix
Upgrade Ruby to version 2.5 or newer.
affects: < 0.27.0
Upgrade
Version history
0.27.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
google-apis-iamcredentials-v1 — gem install google-apis-iamcredentials-v1 · libregistry