Gmail REST Data Model
Tables
Tables describes the available tables. Tables are statically defined to model Labels and Messages.
Labels are also exposed as stand-alone tables, so you can retrieve all messages listed in that label. For example: INBOX, SENT, DRAFT and more.
Views
Views describes the available views. Views are statically defined to model Attachments, Filters, History, and more.
Stored Procedures
Stored Procedures are function-like interfaces to Gmail. Stored procedures allow you to execute operations to Gmail, such as retrieving the OAuth Access Token.