Skip to contents

This class uses the metadata service available on GCE VMs to fetch access tokens. Not intended for direct use. See credentials_gce() instead.

Super classes

httr::Token -> httr::Token2.0 -> GceToken

Methods

Inherited methods


GceToken$new()

Get an access for a GCE service account.

Usage

GceToken$new(params)

Arguments

params

A list of parameters for fetch_gce_access_token().

Returns

A GceToken.


GceToken$init_credentials()

Request an access token.

Usage

GceToken$init_credentials()


GceToken$refresh()

Refreshes the token. In this case, that just means "ask again for an access token".

Usage

GceToken$refresh()


GceToken$can_refresh()

Placeholder implementation of required method. Returns TRUE.

Usage

GceToken$can_refresh()


GceToken$format()

Format a GceToken().

Usage

GceToken$format(...)

Arguments

...

Not used.


GceToken$print()

Print a GceToken().

Usage

GceToken$print(...)

Arguments

...

Not used.


GceToken$cache()

Placeholder implementation of required method.

Usage

GceToken$cache()


GceToken$load_from_cache()

Placeholder implementation of required method.

Usage

GceToken$load_from_cache()


GceToken$revoke()

Placeholder implementation of required method.

Usage

GceToken$revoke()


GceToken$validate()

Placeholder implementation of required method

Usage

GceToken$validate()


GceToken$clone()

The objects of this class are cloneable with this method.

Usage

GceToken$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.