Documentation ¶
Index ¶
- Constants
- type MailMonitor
- type MailMonitorLevel
- type MailMonitorLevels
- type MailMonitorService
- func (svc *MailMonitorService) Disable(domain string, sourceUserName string, destUserName string) error
- func (svc *MailMonitorService) List(domain string, sourceUserName string) ([]MailMonitor, error)
- func (svc *MailMonitorService) Update(domainName string, sourceUserName string, destUserName string, ...) (*MailMonitor, error)
- type Service
Constants ¶
const (
// FeedComplianceAuditScope FeedComplianceAuditScope OAuth2 Scope
FeedComplianceAuditScope = "https://apps-apis.google.com/a/feeds/compliance/audit/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailMonitor ¶
type MailMonitor struct { DomainName string SourceUserName string DestUserName string BeginDate *time.Time EndDate *time.Time MonitorLevels MailMonitorLevels Updated *time.Time }
MailMonitor MailMonitor
func NewMailMonitor ¶
func NewMailMonitor(domainName string, sourceUserName string, destUserName string, endDate time.Time, monitorLevels MailMonitorLevels, ) MailMonitor
NewMailMonitor returns new MailMonitor
type MailMonitorLevel ¶
type MailMonitorLevel string
MailMonitorLevel MailMonitorLevel
const ( // NoneLevel HEADER_ONLY NoneLevel MailMonitorLevel = "" // HeaderOnlyLevel HEADER_ONLY HeaderOnlyLevel MailMonitorLevel = "HEADER_ONLY" // FullMessageLevel FULL_MESSAGE FullMessageLevel MailMonitorLevel = "FULL_MESSAGE" )
type MailMonitorLevels ¶
type MailMonitorLevels struct { IncomingEmail MailMonitorLevel OutgoingEmail MailMonitorLevel Draft MailMonitorLevel Chat MailMonitorLevel }
MailMonitorLevels MailMonitorLevels
type MailMonitorService ¶
type MailMonitorService struct {
// contains filtered or unexported fields
}
MailMonitorService MailMonitorService
func NewMailMonitorService ¶
func NewMailMonitorService(s *Service) *MailMonitorService
NewMailMonitorService returns new MailMonitorService
func (*MailMonitorService) Disable ¶
func (svc *MailMonitorService) Disable(domain string, sourceUserName string, destUserName string) error
Disable Deleting an email monitor - https://developers.google.com/admin-sdk/email-audit/#deleting_an_email_monitor
func (*MailMonitorService) List ¶
func (svc *MailMonitorService) List(domain string, sourceUserName string) ([]MailMonitor, error)
List Retrieving all email monitors of a source user - https://developers.google.com/admin-sdk/email-audit/#retrieving_all_email_monitors_of_a_source_user
func (*MailMonitorService) Update ¶
func (svc *MailMonitorService) Update(domainName string, sourceUserName string, destUserName string, endDate time.Time, monitorLevels MailMonitorLevels) (*MailMonitor, error)
Update creates or updates EmailMonitor - https://developers.google.com/admin-sdk/email-audit/#creating_a_new_email_monitor - https://developers.google.com/admin-sdk/email-audit/#updating_an_email_monitor