Reference documentation and code samples for the googleauth class Google::Auth::GCECredentials.
Extends Signet::OAuth2::Client so that the auth token is obtained from the GCE metadata server.
Inherits
Methods
.on_gce?
def
self
.
on_gce?
(
_options
=
{},
_reload
=
false
)
-
>
Boolean
Detect if this appear to be a GCE instance, by checking if metadata is available. The parameters are deprecated and unused.
- (Boolean)
.reset_cache
def
self
.
reset_cache
()
.unmemoize_all
def
self
.
unmemoize_all
()
#fetch_access_token
def
fetch_access_token
(
_options
=
{})
Overrides the super class method to change how access tokens are fetched.
#initialize
def
initialize
(
options
=
{})
-
>
GCECredentials
Construct a GCECredentials
- ( GCECredentials ) — a new instance of GCECredentials