parameters: (self, access_token, client_id, client_secret, refresh_token,
                 token_expiry, token_uri, user_agent, id_token=None)
docstring: Create an instance of OAuth2Credentials.
  
      This constructor is not usually called by the user, instead
      OAuth2Credentials objects are instantiated by the OAuth2WebServerFlow.
  
      Args:
        access_token: string, access token.
        client_id: string, client identifier.
        client_secret: string, client secret.
        refresh_token: string, refresh token.
        token_expiry: datetime, when the access_token expires.
        token_uri: string, URI of token endpoint.
        user_agent: string, The HTTP User-Agent to provide for this application.
        id_token: object, The identity of the resource owner.
  
      Notes:
        store: callable, A callable that when passed a Credential
          will store the credential back to where it came from.
          This is needed to store the latest access_token if it
          has expired and been refreshed.
docstring_summary: Create an instance of OAuth2Credentials.
docstring_tokens: Create an instance of OAuth2Credentials .
function: def __init__(self, access_token, client_id, client_secret, refresh_token,
                 token_expiry, token_uri, user_agent, id_token=None):
      """Create an instance of OAuth2Credentials.
  
      This constructor is not usually called by the user, instead
      OAuth2Credentials objects are instantiated by the OAuth2WebServerFlow.
  
      Args:
        access_token: string, access token.
        client_id: string, client identifier.
        client_secret: string, client secret.
        refresh_token: string, refresh token.
        token_expiry: datetime, when the access_token expires.
        token_uri: string, URI of token endpoint.
        user_agent: string, The HTTP User-Agent to provide for this application.
        id_token: object, The identity of the resource owner.
  
      Notes:
        store: callable, A callable that when passed a Credential
          will store the credential back to where it came from.
          This is needed to store the latest access_token if it
          has expired and been refreshed.
      """
      self.access_token = access_token
      self.client_id = client_id
      self.client_secret = client_secret
      self.refresh_token = refresh_token
      self.store = None
      self.token_expiry = token_expiry
      self.token_uri = token_uri
      self.user_agent = user_agent
      self.id_token = id_token
  
      # True if the credentials have been revoked or expired and can't be
      # refreshed.
      self.invalid = False
function_tokens: def __init__ ( self , access_token , client_id , client_secret , refresh_token , token_expiry , token_uri , user_agent , id_token = None ) : self . access_token = access_token self . client_id = client_id self . client_secret = client_secret self . refresh_token = refresh_token self . store = None self . token_expiry = token_expiry self . token_uri = token_uri self . user_agent = user_agent self . id_token = id_token # True if the credentials have been revoked or expired and can't be # refreshed. self . invalid = False