Skip to main content

Module access

Module access 

Source
Expand description

Which Google account an agent uses for a service, and at what level, or a sentence saying why it can’t and who can change that (D4).

The accounts are those the agent holds a grant on for the service (it may hold several, and names one by email when it does); the level is that grant, off unless a person or an agent set it.

Structs§

Access
What an agent may use.

Functions§

access_for
The account and level def may use service with. account is the email the agent named, if it named one; without one, the single account it holds the service on.
bound_account
The Google account bound to def, if any.
email_of
The account’s email, else its name.
granted_accounts
Every Google account def holds a grant on for service, by email. Several are allowed (the spec’s D7): a grant is all an agent needs, so it can read more than one mailbox.
granted_scopes_of
The scopes account’s token was granted, as Google named them.