Documentation ¶
Overview ¶
Package calendar provides access to the Calendar API.
See https://developers.google.com/google-apps/calendar/firstapp
Usage example:
import "code.google.com/p/google-api-go-client/calendar/v3" ... calendarService, err := calendar.New(oauthHttpClient)
Index ¶
- Constants
- type Acl
- type AclDeleteCall
- type AclGetCall
- type AclInsertCall
- type AclListCall
- type AclPatchCall
- type AclRule
- type AclRuleScope
- type AclService
- func (r *AclService) Delete(calendarId string, ruleId string) *AclDeleteCall
- func (r *AclService) Get(calendarId string, ruleId string) *AclGetCall
- func (r *AclService) Insert(calendarId string, aclrule *AclRule) *AclInsertCall
- func (r *AclService) List(calendarId string) *AclListCall
- func (r *AclService) Patch(calendarId string, ruleId string, aclrule *AclRule) *AclPatchCall
- func (r *AclService) Update(calendarId string, ruleId string, aclrule *AclRule) *AclUpdateCall
- func (r *AclService) Watch(calendarId string, channel *Channel) *AclWatchCall
- type AclUpdateCall
- type AclWatchCall
- func (c *AclWatchCall) Do() (*Channel, error)
- func (c *AclWatchCall) MaxResults(maxResults int64) *AclWatchCall
- func (c *AclWatchCall) PageToken(pageToken string) *AclWatchCall
- func (c *AclWatchCall) ShowDeleted(showDeleted bool) *AclWatchCall
- func (c *AclWatchCall) SyncToken(syncToken string) *AclWatchCall
- type Calendar
- type CalendarList
- type CalendarListDeleteCall
- type CalendarListEntry
- type CalendarListEntryNotificationSettings
- type CalendarListGetCall
- type CalendarListInsertCall
- type CalendarListListCall
- func (c *CalendarListListCall) Do() (*CalendarList, error)
- func (c *CalendarListListCall) MaxResults(maxResults int64) *CalendarListListCall
- func (c *CalendarListListCall) MinAccessRole(minAccessRole string) *CalendarListListCall
- func (c *CalendarListListCall) PageToken(pageToken string) *CalendarListListCall
- func (c *CalendarListListCall) ShowDeleted(showDeleted bool) *CalendarListListCall
- func (c *CalendarListListCall) ShowHidden(showHidden bool) *CalendarListListCall
- func (c *CalendarListListCall) SyncToken(syncToken string) *CalendarListListCall
- type CalendarListPatchCall
- type CalendarListService
- func (r *CalendarListService) Delete(calendarId string) *CalendarListDeleteCall
- func (r *CalendarListService) Get(calendarId string) *CalendarListGetCall
- func (r *CalendarListService) Insert(calendarlistentry *CalendarListEntry) *CalendarListInsertCall
- func (r *CalendarListService) List() *CalendarListListCall
- func (r *CalendarListService) Patch(calendarId string, calendarlistentry *CalendarListEntry) *CalendarListPatchCall
- func (r *CalendarListService) Update(calendarId string, calendarlistentry *CalendarListEntry) *CalendarListUpdateCall
- func (r *CalendarListService) Watch(channel *Channel) *CalendarListWatchCall
- type CalendarListUpdateCall
- type CalendarListWatchCall
- func (c *CalendarListWatchCall) Do() (*Channel, error)
- func (c *CalendarListWatchCall) MaxResults(maxResults int64) *CalendarListWatchCall
- func (c *CalendarListWatchCall) MinAccessRole(minAccessRole string) *CalendarListWatchCall
- func (c *CalendarListWatchCall) PageToken(pageToken string) *CalendarListWatchCall
- func (c *CalendarListWatchCall) ShowDeleted(showDeleted bool) *CalendarListWatchCall
- func (c *CalendarListWatchCall) ShowHidden(showHidden bool) *CalendarListWatchCall
- func (c *CalendarListWatchCall) SyncToken(syncToken string) *CalendarListWatchCall
- type CalendarNotification
- type CalendarsClearCall
- type CalendarsDeleteCall
- type CalendarsGetCall
- type CalendarsInsertCall
- type CalendarsPatchCall
- type CalendarsService
- func (r *CalendarsService) Clear(calendarId string) *CalendarsClearCall
- func (r *CalendarsService) Delete(calendarId string) *CalendarsDeleteCall
- func (r *CalendarsService) Get(calendarId string) *CalendarsGetCall
- func (r *CalendarsService) Insert(calendar *Calendar) *CalendarsInsertCall
- func (r *CalendarsService) Patch(calendarId string, calendar *Calendar) *CalendarsPatchCall
- func (r *CalendarsService) Update(calendarId string, calendar *Calendar) *CalendarsUpdateCall
- type CalendarsUpdateCall
- type Channel
- type ChannelsService
- type ChannelsStopCall
- type ColorDefinition
- type Colors
- type ColorsGetCall
- type ColorsService
- type Error
- type Event
- type EventAttendee
- type EventCreator
- type EventDateTime
- type EventExtendedProperties
- type EventGadget
- type EventOrganizer
- type EventReminder
- type EventReminders
- type EventSource
- type Events
- type EventsDeleteCall
- type EventsGetCall
- type EventsImportCall
- type EventsInsertCall
- type EventsInstancesCall
- func (c *EventsInstancesCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsInstancesCall
- func (c *EventsInstancesCall) Do() (*Events, error)
- func (c *EventsInstancesCall) MaxAttendees(maxAttendees int64) *EventsInstancesCall
- func (c *EventsInstancesCall) MaxResults(maxResults int64) *EventsInstancesCall
- func (c *EventsInstancesCall) OriginalStart(originalStart string) *EventsInstancesCall
- func (c *EventsInstancesCall) PageToken(pageToken string) *EventsInstancesCall
- func (c *EventsInstancesCall) ShowDeleted(showDeleted bool) *EventsInstancesCall
- func (c *EventsInstancesCall) TimeMax(timeMax string) *EventsInstancesCall
- func (c *EventsInstancesCall) TimeMin(timeMin string) *EventsInstancesCall
- func (c *EventsInstancesCall) TimeZone(timeZone string) *EventsInstancesCall
- type EventsListCall
- func (c *EventsListCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsListCall
- func (c *EventsListCall) Do() (*Events, error)
- func (c *EventsListCall) ICalUID(iCalUID string) *EventsListCall
- func (c *EventsListCall) MaxAttendees(maxAttendees int64) *EventsListCall
- func (c *EventsListCall) MaxResults(maxResults int64) *EventsListCall
- func (c *EventsListCall) OrderBy(orderBy string) *EventsListCall
- func (c *EventsListCall) PageToken(pageToken string) *EventsListCall
- func (c *EventsListCall) PrivateExtendedProperty(privateExtendedProperty string) *EventsListCall
- func (c *EventsListCall) Q(q string) *EventsListCall
- func (c *EventsListCall) SharedExtendedProperty(sharedExtendedProperty string) *EventsListCall
- func (c *EventsListCall) ShowDeleted(showDeleted bool) *EventsListCall
- func (c *EventsListCall) ShowHiddenInvitations(showHiddenInvitations bool) *EventsListCall
- func (c *EventsListCall) SingleEvents(singleEvents bool) *EventsListCall
- func (c *EventsListCall) SyncToken(syncToken string) *EventsListCall
- func (c *EventsListCall) TimeMax(timeMax string) *EventsListCall
- func (c *EventsListCall) TimeMin(timeMin string) *EventsListCall
- func (c *EventsListCall) TimeZone(timeZone string) *EventsListCall
- func (c *EventsListCall) UpdatedMin(updatedMin string) *EventsListCall
- type EventsMoveCall
- type EventsPatchCall
- type EventsQuickAddCall
- type EventsService
- func (r *EventsService) Delete(calendarId string, eventId string) *EventsDeleteCall
- func (r *EventsService) Get(calendarId string, eventId string) *EventsGetCall
- func (r *EventsService) Import(calendarId string, event *Event) *EventsImportCall
- func (r *EventsService) Insert(calendarId string, event *Event) *EventsInsertCall
- func (r *EventsService) Instances(calendarId string, eventId string) *EventsInstancesCall
- func (r *EventsService) List(calendarId string) *EventsListCall
- func (r *EventsService) Move(calendarId string, eventId string, destinationid string) *EventsMoveCall
- func (r *EventsService) Patch(calendarId string, eventId string, event *Event) *EventsPatchCall
- func (r *EventsService) QuickAdd(calendarId string, text string) *EventsQuickAddCall
- func (r *EventsService) Update(calendarId string, eventId string, event *Event) *EventsUpdateCall
- func (r *EventsService) Watch(calendarId string, channel *Channel) *EventsWatchCall
- type EventsUpdateCall
- func (c *EventsUpdateCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsUpdateCall
- func (c *EventsUpdateCall) Do() (*Event, error)
- func (c *EventsUpdateCall) MaxAttendees(maxAttendees int64) *EventsUpdateCall
- func (c *EventsUpdateCall) SendNotifications(sendNotifications bool) *EventsUpdateCall
- type EventsWatchCall
- func (c *EventsWatchCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsWatchCall
- func (c *EventsWatchCall) Do() (*Channel, error)
- func (c *EventsWatchCall) ICalUID(iCalUID string) *EventsWatchCall
- func (c *EventsWatchCall) MaxAttendees(maxAttendees int64) *EventsWatchCall
- func (c *EventsWatchCall) MaxResults(maxResults int64) *EventsWatchCall
- func (c *EventsWatchCall) OrderBy(orderBy string) *EventsWatchCall
- func (c *EventsWatchCall) PageToken(pageToken string) *EventsWatchCall
- func (c *EventsWatchCall) PrivateExtendedProperty(privateExtendedProperty string) *EventsWatchCall
- func (c *EventsWatchCall) Q(q string) *EventsWatchCall
- func (c *EventsWatchCall) SharedExtendedProperty(sharedExtendedProperty string) *EventsWatchCall
- func (c *EventsWatchCall) ShowDeleted(showDeleted bool) *EventsWatchCall
- func (c *EventsWatchCall) ShowHiddenInvitations(showHiddenInvitations bool) *EventsWatchCall
- func (c *EventsWatchCall) SingleEvents(singleEvents bool) *EventsWatchCall
- func (c *EventsWatchCall) SyncToken(syncToken string) *EventsWatchCall
- func (c *EventsWatchCall) TimeMax(timeMax string) *EventsWatchCall
- func (c *EventsWatchCall) TimeMin(timeMin string) *EventsWatchCall
- func (c *EventsWatchCall) TimeZone(timeZone string) *EventsWatchCall
- func (c *EventsWatchCall) UpdatedMin(updatedMin string) *EventsWatchCall
- type FreeBusyCalendar
- type FreeBusyGroup
- type FreeBusyRequest
- type FreeBusyRequestItem
- type FreeBusyResponse
- type FreebusyQueryCall
- type FreebusyService
- type Service
- type Setting
- type Settings
- type SettingsGetCall
- type SettingsListCall
- type SettingsService
- type SettingsWatchCall
- type TimePeriod
Constants ¶
const ( // Manage your calendars CalendarScope = "https://www.googleapis.com/auth/calendar" // View your calendars CalendarReadonlyScope = "https://www.googleapis.com/auth/calendar.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acl ¶
type Acl struct { // Etag: ETag of the collection. Etag string `json:"etag,omitempty"` // Items: List of rules on the access control list. Items []*AclRule `json:"items,omitempty"` // Kind: Type of the collection ("calendar#acl"). Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access the next page of this result. // Omitted if no further results are available, in which case // nextSyncToken is provided. NextPageToken string `json:"nextPageToken,omitempty"` // NextSyncToken: Token used at a later point in time to retrieve only // the entries that have changed since this result was returned. Omitted // if further results are available, in which case nextPageToken is // provided. NextSyncToken string `json:"nextSyncToken,omitempty"` }
type AclDeleteCall ¶
type AclDeleteCall struct {
// contains filtered or unexported fields
}
func (*AclDeleteCall) Do ¶
func (c *AclDeleteCall) Do() error
type AclGetCall ¶
type AclGetCall struct {
// contains filtered or unexported fields
}
func (*AclGetCall) Do ¶
func (c *AclGetCall) Do() (*AclRule, error)
type AclInsertCall ¶
type AclInsertCall struct {
// contains filtered or unexported fields
}
func (*AclInsertCall) Do ¶
func (c *AclInsertCall) Do() (*AclRule, error)
type AclListCall ¶
type AclListCall struct {
// contains filtered or unexported fields
}
func (*AclListCall) Do ¶
func (c *AclListCall) Do() (*Acl, error)
func (*AclListCall) MaxResults ¶
func (c *AclListCall) MaxResults(maxResults int64) *AclListCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries.
func (*AclListCall) PageToken ¶
func (c *AclListCall) PageToken(pageToken string) *AclListCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*AclListCall) ShowDeleted ¶
func (c *AclListCall) ShowDeleted(showDeleted bool) *AclListCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none". Deleted ACLs will always be included if syncToken is provided. The default is False.
func (*AclListCall) SyncToken ¶
func (c *AclListCall) SyncToken(syncToken string) *AclListCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All entries deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The default is to return all entries.
type AclPatchCall ¶
type AclPatchCall struct {
// contains filtered or unexported fields
}
func (*AclPatchCall) Do ¶
func (c *AclPatchCall) Do() (*AclRule, error)
type AclRule ¶
type AclRule struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Id: Identifier of the ACL rule. Id string `json:"id,omitempty"` // Kind: Type of the resource ("calendar#aclRule"). Kind string `json:"kind,omitempty"` // Role: The role assigned to the scope. Possible values are: // - "none" // - Provides no access. // - "freeBusyReader" - Provides read access to // free/busy information. // - "reader" - Provides read access to the // calendar. Private events will appear to users with reader access, but // event details will be hidden. // - "writer" - Provides read and write // access to the calendar. Private events will appear to users with // writer access, and event details will be visible. // - "owner" - // Provides ownership of the calendar. This role has all of the // permissions of the writer role with the additional ability to see and // manipulate ACLs. Role string `json:"role,omitempty"` // Scope: The scope of the rule. Scope *AclRuleScope `json:"scope,omitempty"` }
type AclRuleScope ¶
type AclRuleScope struct { // Type: The type of the scope. Possible values are: // - "default" - The // public scope. This is the default value. // - "user" - Limits the scope // to a single user. // - "group" - Limits the scope to a group. // - // "domain" - Limits the scope to a domain. Note: The permissions // granted to the "default", or public, scope apply to any user, // authenticated or not. Type string `json:"type,omitempty"` // Value: The email address of a user or group, or the name of a domain, // depending on the scope type. Omitted for type "default". Value string `json:"value,omitempty"` }
type AclService ¶
type AclService struct {
// contains filtered or unexported fields
}
func NewAclService ¶
func NewAclService(s *Service) *AclService
func (*AclService) Delete ¶
func (r *AclService) Delete(calendarId string, ruleId string) *AclDeleteCall
Delete: Deletes an access control rule.
func (*AclService) Get ¶
func (r *AclService) Get(calendarId string, ruleId string) *AclGetCall
Get: Returns an access control rule.
func (*AclService) Insert ¶
func (r *AclService) Insert(calendarId string, aclrule *AclRule) *AclInsertCall
Insert: Creates an access control rule.
func (*AclService) List ¶
func (r *AclService) List(calendarId string) *AclListCall
List: Returns the rules in the access control list for the calendar.
func (*AclService) Patch ¶
func (r *AclService) Patch(calendarId string, ruleId string, aclrule *AclRule) *AclPatchCall
Patch: Updates an access control rule. This method supports patch semantics.
func (*AclService) Update ¶
func (r *AclService) Update(calendarId string, ruleId string, aclrule *AclRule) *AclUpdateCall
Update: Updates an access control rule.
func (*AclService) Watch ¶
func (r *AclService) Watch(calendarId string, channel *Channel) *AclWatchCall
Watch: Watch for changes to ACL resources.
type AclUpdateCall ¶
type AclUpdateCall struct {
// contains filtered or unexported fields
}
func (*AclUpdateCall) Do ¶
func (c *AclUpdateCall) Do() (*AclRule, error)
type AclWatchCall ¶
type AclWatchCall struct {
// contains filtered or unexported fields
}
func (*AclWatchCall) Do ¶
func (c *AclWatchCall) Do() (*Channel, error)
func (*AclWatchCall) MaxResults ¶
func (c *AclWatchCall) MaxResults(maxResults int64) *AclWatchCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries.
func (*AclWatchCall) PageToken ¶
func (c *AclWatchCall) PageToken(pageToken string) *AclWatchCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*AclWatchCall) ShowDeleted ¶
func (c *AclWatchCall) ShowDeleted(showDeleted bool) *AclWatchCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none". Deleted ACLs will always be included if syncToken is provided. The default is False.
func (*AclWatchCall) SyncToken ¶
func (c *AclWatchCall) SyncToken(syncToken string) *AclWatchCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All entries deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The default is to return all entries.
type Calendar ¶
type Calendar struct { // Description: Description of the calendar. Optional. Description string `json:"description,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Id: Identifier of the calendar. Id string `json:"id,omitempty"` // Kind: Type of the resource ("calendar#calendar"). Kind string `json:"kind,omitempty"` // Location: Geographic location of the calendar as free-form text. // Optional. Location string `json:"location,omitempty"` // Summary: Title of the calendar. Summary string `json:"summary,omitempty"` // TimeZone: The time zone of the calendar. Optional. TimeZone string `json:"timeZone,omitempty"` }
type CalendarList ¶
type CalendarList struct { // Etag: ETag of the collection. Etag string `json:"etag,omitempty"` // Items: Calendars that are present on the user's calendar list. Items []*CalendarListEntry `json:"items,omitempty"` // Kind: Type of the collection ("calendar#calendarList"). Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access the next page of this result. // Omitted if no further results are available, in which case // nextSyncToken is provided. NextPageToken string `json:"nextPageToken,omitempty"` // NextSyncToken: Token used at a later point in time to retrieve only // the entries that have changed since this result was returned. Omitted // if further results are available, in which case nextPageToken is // provided. NextSyncToken string `json:"nextSyncToken,omitempty"` }
type CalendarListDeleteCall ¶
type CalendarListDeleteCall struct {
// contains filtered or unexported fields
}
func (*CalendarListDeleteCall) Do ¶
func (c *CalendarListDeleteCall) Do() error
type CalendarListEntry ¶
type CalendarListEntry struct { // AccessRole: The effective access role that the authenticated user has // on the calendar. Read-only. Possible values are: // - "freeBusyReader" // - Provides read access to free/busy information. // - "reader" - // Provides read access to the calendar. Private events will appear to // users with reader access, but event details will be hidden. // - // "writer" - Provides read and write access to the calendar. Private // events will appear to users with writer access, and event details // will be visible. // - "owner" - Provides ownership of the calendar. // This role has all of the permissions of the writer role with the // additional ability to see and manipulate ACLs. AccessRole string `json:"accessRole,omitempty"` // BackgroundColor: The main color of the calendar in the hexadecimal // format "#0088aa". This property supersedes the index-based colorId // property. Optional. BackgroundColor string `json:"backgroundColor,omitempty"` // ColorId: The color of the calendar. This is an ID referring to an // entry in the calendar section of the colors definition (see the // colors endpoint). Optional. ColorId string `json:"colorId,omitempty"` // DefaultReminders: The default reminders that the authenticated user // has for this calendar. DefaultReminders []*EventReminder `json:"defaultReminders,omitempty"` // Deleted: Whether this calendar list entry has been deleted from the // calendar list. Read-only. Optional. The default is False. Deleted bool `json:"deleted,omitempty"` // Description: Description of the calendar. Optional. Read-only. Description string `json:"description,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // ForegroundColor: The foreground color of the calendar in the // hexadecimal format "#ffffff". This property supersedes the // index-based colorId property. Optional. ForegroundColor string `json:"foregroundColor,omitempty"` // Hidden: Whether the calendar has been hidden from the list. Optional. // The default is False. Hidden bool `json:"hidden,omitempty"` // Id: Identifier of the calendar. Id string `json:"id,omitempty"` // Kind: Type of the resource ("calendar#calendarListEntry"). Kind string `json:"kind,omitempty"` // Location: Geographic location of the calendar as free-form text. // Optional. Read-only. Location string `json:"location,omitempty"` // NotificationSettings: The notifications that the authenticated user // is receiving for this calendar. NotificationSettings *CalendarListEntryNotificationSettings `json:"notificationSettings,omitempty"` // Primary: Whether the calendar is the primary calendar of the // authenticated user. Read-only. Optional. The default is False. Primary bool `json:"primary,omitempty"` // Selected: Whether the calendar content shows up in the calendar UI. // Optional. The default is False. Selected bool `json:"selected,omitempty"` // Summary: Title of the calendar. Read-only. Summary string `json:"summary,omitempty"` // SummaryOverride: The summary that the authenticated user has set for // this calendar. Optional. SummaryOverride string `json:"summaryOverride,omitempty"` // TimeZone: The time zone of the calendar. Optional. Read-only. TimeZone string `json:"timeZone,omitempty"` }
type CalendarListEntryNotificationSettings ¶
type CalendarListEntryNotificationSettings struct { // Notifications: The list of notifications set for this calendar. Notifications []*CalendarNotification `json:"notifications,omitempty"` }
type CalendarListGetCall ¶
type CalendarListGetCall struct {
// contains filtered or unexported fields
}
func (*CalendarListGetCall) Do ¶
func (c *CalendarListGetCall) Do() (*CalendarListEntry, error)
type CalendarListInsertCall ¶
type CalendarListInsertCall struct {
// contains filtered or unexported fields
}
func (*CalendarListInsertCall) ColorRgbFormat ¶
func (c *CalendarListInsertCall) ColorRgbFormat(colorRgbFormat bool) *CalendarListInsertCall
ColorRgbFormat sets the optional parameter "colorRgbFormat": Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. The default is False.
func (*CalendarListInsertCall) Do ¶
func (c *CalendarListInsertCall) Do() (*CalendarListEntry, error)
type CalendarListListCall ¶
type CalendarListListCall struct {
// contains filtered or unexported fields
}
func (*CalendarListListCall) Do ¶
func (c *CalendarListListCall) Do() (*CalendarList, error)
func (*CalendarListListCall) MaxResults ¶
func (c *CalendarListListCall) MaxResults(maxResults int64) *CalendarListListCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries.
func (*CalendarListListCall) MinAccessRole ¶
func (c *CalendarListListCall) MinAccessRole(minAccessRole string) *CalendarListListCall
MinAccessRole sets the optional parameter "minAccessRole": The minimum access role for the user in the returned entires. The default is no restriction.
func (*CalendarListListCall) PageToken ¶
func (c *CalendarListListCall) PageToken(pageToken string) *CalendarListListCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*CalendarListListCall) ShowDeleted ¶
func (c *CalendarListListCall) ShowDeleted(showDeleted bool) *CalendarListListCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted calendar list entries in the result. The default is False.
func (*CalendarListListCall) ShowHidden ¶
func (c *CalendarListListCall) ShowHidden(showHidden bool) *CalendarListListCall
ShowHidden sets the optional parameter "showHidden": Whether to show hidden entries. The default is False.
func (*CalendarListListCall) SyncToken ¶
func (c *CalendarListListCall) SyncToken(syncToken string) *CalendarListListCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If only read-only fields such as calendar properties or ACLs have changed, the entry won't be returned. All entries deleted and hidden since the previous list request will always be in the result set and it is not allowed to set showDeleted neither showHidden to False. To ensure client state consistency minAccessRole query parameter cannot be specified together with nextSyncToken. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The
default is to return all entries.
type CalendarListPatchCall ¶
type CalendarListPatchCall struct {
// contains filtered or unexported fields
}
func (*CalendarListPatchCall) ColorRgbFormat ¶
func (c *CalendarListPatchCall) ColorRgbFormat(colorRgbFormat bool) *CalendarListPatchCall
ColorRgbFormat sets the optional parameter "colorRgbFormat": Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. The default is False.
func (*CalendarListPatchCall) Do ¶
func (c *CalendarListPatchCall) Do() (*CalendarListEntry, error)
type CalendarListService ¶
type CalendarListService struct {
// contains filtered or unexported fields
}
func NewCalendarListService ¶
func NewCalendarListService(s *Service) *CalendarListService
func (*CalendarListService) Delete ¶
func (r *CalendarListService) Delete(calendarId string) *CalendarListDeleteCall
Delete: Deletes an entry on the user's calendar list.
func (*CalendarListService) Get ¶
func (r *CalendarListService) Get(calendarId string) *CalendarListGetCall
Get: Returns an entry on the user's calendar list.
func (*CalendarListService) Insert ¶
func (r *CalendarListService) Insert(calendarlistentry *CalendarListEntry) *CalendarListInsertCall
Insert: Adds an entry to the user's calendar list.
func (*CalendarListService) List ¶
func (r *CalendarListService) List() *CalendarListListCall
List: Returns entries on the user's calendar list.
func (*CalendarListService) Patch ¶
func (r *CalendarListService) Patch(calendarId string, calendarlistentry *CalendarListEntry) *CalendarListPatchCall
Patch: Updates an entry on the user's calendar list. This method supports patch semantics.
func (*CalendarListService) Update ¶
func (r *CalendarListService) Update(calendarId string, calendarlistentry *CalendarListEntry) *CalendarListUpdateCall
Update: Updates an entry on the user's calendar list.
func (*CalendarListService) Watch ¶
func (r *CalendarListService) Watch(channel *Channel) *CalendarListWatchCall
Watch: Watch for changes to CalendarList resources.
type CalendarListUpdateCall ¶
type CalendarListUpdateCall struct {
// contains filtered or unexported fields
}
func (*CalendarListUpdateCall) ColorRgbFormat ¶
func (c *CalendarListUpdateCall) ColorRgbFormat(colorRgbFormat bool) *CalendarListUpdateCall
ColorRgbFormat sets the optional parameter "colorRgbFormat": Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. The default is False.
func (*CalendarListUpdateCall) Do ¶
func (c *CalendarListUpdateCall) Do() (*CalendarListEntry, error)
type CalendarListWatchCall ¶
type CalendarListWatchCall struct {
// contains filtered or unexported fields
}
func (*CalendarListWatchCall) Do ¶
func (c *CalendarListWatchCall) Do() (*Channel, error)
func (*CalendarListWatchCall) MaxResults ¶
func (c *CalendarListWatchCall) MaxResults(maxResults int64) *CalendarListWatchCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries.
func (*CalendarListWatchCall) MinAccessRole ¶
func (c *CalendarListWatchCall) MinAccessRole(minAccessRole string) *CalendarListWatchCall
MinAccessRole sets the optional parameter "minAccessRole": The minimum access role for the user in the returned entires. The default is no restriction.
func (*CalendarListWatchCall) PageToken ¶
func (c *CalendarListWatchCall) PageToken(pageToken string) *CalendarListWatchCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*CalendarListWatchCall) ShowDeleted ¶
func (c *CalendarListWatchCall) ShowDeleted(showDeleted bool) *CalendarListWatchCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted calendar list entries in the result. The default is False.
func (*CalendarListWatchCall) ShowHidden ¶
func (c *CalendarListWatchCall) ShowHidden(showHidden bool) *CalendarListWatchCall
ShowHidden sets the optional parameter "showHidden": Whether to show hidden entries. The default is False.
func (*CalendarListWatchCall) SyncToken ¶
func (c *CalendarListWatchCall) SyncToken(syncToken string) *CalendarListWatchCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If only read-only fields such as calendar properties or ACLs have changed, the entry won't be returned. All entries deleted and hidden since the previous list request will always be in the result set and it is not allowed to set showDeleted neither showHidden to False. To ensure client state consistency minAccessRole query parameter cannot be specified together with nextSyncToken. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The
default is to return all entries.
type CalendarNotification ¶
type CalendarNotification struct { // Method: The method used to deliver the notification. Possible values // are: // - "email" - Reminders are sent via email. // - "sms" - Reminders // are sent via SMS. This value is read-only and is ignored on inserts // and updates. Method string `json:"method,omitempty"` // Type: The type of notification. Possible values are: // - // "eventCreation" - Notification sent when a new event is put on the // calendar. // - "eventChange" - Notification sent when an event is // changed. // - "eventCancellation" - Notification sent when an event is // cancelled. // - "eventResponse" - Notification sent when an event is // changed. // - "agenda" - An agenda with the events of the day (sent out // in the morning). Type string `json:"type,omitempty"` }
type CalendarsClearCall ¶
type CalendarsClearCall struct {
// contains filtered or unexported fields
}
func (*CalendarsClearCall) Do ¶
func (c *CalendarsClearCall) Do() error
type CalendarsDeleteCall ¶
type CalendarsDeleteCall struct {
// contains filtered or unexported fields
}
func (*CalendarsDeleteCall) Do ¶
func (c *CalendarsDeleteCall) Do() error
type CalendarsGetCall ¶
type CalendarsGetCall struct {
// contains filtered or unexported fields
}
func (*CalendarsGetCall) Do ¶
func (c *CalendarsGetCall) Do() (*Calendar, error)
type CalendarsInsertCall ¶
type CalendarsInsertCall struct {
// contains filtered or unexported fields
}
func (*CalendarsInsertCall) Do ¶
func (c *CalendarsInsertCall) Do() (*Calendar, error)
type CalendarsPatchCall ¶
type CalendarsPatchCall struct {
// contains filtered or unexported fields
}
func (*CalendarsPatchCall) Do ¶
func (c *CalendarsPatchCall) Do() (*Calendar, error)
type CalendarsService ¶
type CalendarsService struct {
// contains filtered or unexported fields
}
func NewCalendarsService ¶
func NewCalendarsService(s *Service) *CalendarsService
func (*CalendarsService) Clear ¶
func (r *CalendarsService) Clear(calendarId string) *CalendarsClearCall
Clear: Clears a primary calendar. This operation deletes all data associated with the primary calendar of an account and cannot be undone.
func (*CalendarsService) Delete ¶
func (r *CalendarsService) Delete(calendarId string) *CalendarsDeleteCall
Delete: Deletes a secondary calendar.
func (*CalendarsService) Get ¶
func (r *CalendarsService) Get(calendarId string) *CalendarsGetCall
Get: Returns metadata for a calendar.
func (*CalendarsService) Insert ¶
func (r *CalendarsService) Insert(calendar *Calendar) *CalendarsInsertCall
Insert: Creates a secondary calendar.
func (*CalendarsService) Patch ¶
func (r *CalendarsService) Patch(calendarId string, calendar *Calendar) *CalendarsPatchCall
Patch: Updates metadata for a calendar. This method supports patch semantics.
func (*CalendarsService) Update ¶
func (r *CalendarsService) Update(calendarId string, calendar *Calendar) *CalendarsUpdateCall
Update: Updates metadata for a calendar.
type CalendarsUpdateCall ¶
type CalendarsUpdateCall struct {
// contains filtered or unexported fields
}
func (*CalendarsUpdateCall) Do ¶
func (c *CalendarsUpdateCall) Do() (*Calendar, error)
type Channel ¶
type Channel struct { // Address: The address where notifications are delivered for this // channel. Address string `json:"address,omitempty"` // Expiration: Date and time of notification channel expiration, // expressed as a Unix timestamp, in milliseconds. Optional. Expiration int64 `json:"expiration,omitempty,string"` // Id: A UUID or similar unique string that identifies this channel. Id string `json:"id,omitempty"` // Kind: Identifies this as a notification channel used to watch for // changes to a resource. Value: the fixed string "api#channel". Kind string `json:"kind,omitempty"` // Params: Additional parameters controlling delivery channel behavior. // Optional. Params map[string]string `json:"params,omitempty"` // Payload: A Boolean value to indicate whether payload is wanted. // Optional. Payload bool `json:"payload,omitempty"` // ResourceId: An opaque ID that identifies the resource being watched // on this channel. Stable across different API versions. ResourceId string `json:"resourceId,omitempty"` // ResourceUri: A version-specific identifier for the watched resource. ResourceUri string `json:"resourceUri,omitempty"` // Token: An arbitrary string delivered to the target address with each // notification delivered over this channel. Optional. Token string `json:"token,omitempty"` // Type: The type of delivery mechanism used for this channel. Type string `json:"type,omitempty"` }
type ChannelsService ¶
type ChannelsService struct {
// contains filtered or unexported fields
}
func NewChannelsService ¶
func NewChannelsService(s *Service) *ChannelsService
func (*ChannelsService) Stop ¶
func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall
Stop: Stop watching resources through this channel
type ChannelsStopCall ¶
type ChannelsStopCall struct {
// contains filtered or unexported fields
}
func (*ChannelsStopCall) Do ¶
func (c *ChannelsStopCall) Do() error
type ColorDefinition ¶
type ColorDefinition struct { // Background: The background color associated with this color // definition. Background string `json:"background,omitempty"` // Foreground: The foreground color that can be used to write on top of // a background with 'background' color. Foreground string `json:"foreground,omitempty"` }
type Colors ¶
type Colors struct { // Calendar: Palette of calendar colors, mapping from the color ID to // its definition. A calendarListEntry resource refers to one of these // color IDs in its color field. Read-only. Calendar map[string]ColorDefinition `json:"calendar,omitempty"` // Event: Palette of event colors, mapping from the color ID to its // definition. An event resource may refer to one of these color IDs in // its color field. Read-only. Event map[string]ColorDefinition `json:"event,omitempty"` // Kind: Type of the resource ("calendar#colors"). Kind string `json:"kind,omitempty"` // Updated: Last modification time of the color palette (as a RFC 3339 // timestamp). Read-only. Updated string `json:"updated,omitempty"` }
type ColorsGetCall ¶
type ColorsGetCall struct {
// contains filtered or unexported fields
}
func (*ColorsGetCall) Do ¶
func (c *ColorsGetCall) Do() (*Colors, error)
type ColorsService ¶
type ColorsService struct {
// contains filtered or unexported fields
}
func NewColorsService ¶
func NewColorsService(s *Service) *ColorsService
func (*ColorsService) Get ¶
func (r *ColorsService) Get() *ColorsGetCall
Get: Returns the color definitions for calendars and events.
type Error ¶
type Error struct { // Domain: Domain, or broad category, of the error. Domain string `json:"domain,omitempty"` // Reason: Specific reason for the error. Some of the possible values // are: // - "groupTooBig" - The group of users requested is too large // for a single query. // - "tooManyCalendarsRequested" - The number of // calendars requested is too large for a single query. // - "notFound" - // The requested resource was not found. // - "internalError" - The API // service has encountered an internal error. Additional error types // may be added in the future, so clients should gracefully handle // additional error statuses not included in this list. Reason string `json:"reason,omitempty"` }
type Event ¶
type Event struct { // AnyoneCanAddSelf: Whether anyone can invite themselves to the event. // Optional. The default is False. AnyoneCanAddSelf bool `json:"anyoneCanAddSelf,omitempty"` // Attendees: The attendees of the event. Attendees []*EventAttendee `json:"attendees,omitempty"` // AttendeesOmitted: Whether attendees may have been omitted from the // event's representation. When retrieving an event, this may be due to // a restriction specified by the maxAttendee query parameter. When // updating an event, this can be used to only update the participant's // response. Optional. The default is False. AttendeesOmitted bool `json:"attendeesOmitted,omitempty"` // ColorId: The color of the event. This is an ID referring to an entry // in the event section of the colors definition (see the colors // endpoint). Optional. ColorId string `json:"colorId,omitempty"` // Created: Creation time of the event (as a RFC 3339 timestamp). // Read-only. Created string `json:"created,omitempty"` // Creator: The creator of the event. Read-only. Creator *EventCreator `json:"creator,omitempty"` // Description: Description of the event. Optional. Description string `json:"description,omitempty"` // End: The (exclusive) end time of the event. For a recurring event, // this is the end time of the first instance. End *EventDateTime `json:"end,omitempty"` // EndTimeUnspecified: Whether the end time is actually unspecified. An // end time is still provided for compatibility reasons, even if this // attribute is set to True. The default is False. EndTimeUnspecified bool `json:"endTimeUnspecified,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // ExtendedProperties: Extended properties of the event. ExtendedProperties *EventExtendedProperties `json:"extendedProperties,omitempty"` // Gadget: A gadget that extends this event. Gadget *EventGadget `json:"gadget,omitempty"` // GuestsCanInviteOthers: Whether attendees other than the organizer can // invite others to the event. Optional. The default is True. GuestsCanInviteOthers bool `json:"guestsCanInviteOthers,omitempty"` // GuestsCanModify: Whether attendees other than the organizer can // modify the event. Optional. The default is False. GuestsCanModify bool `json:"guestsCanModify,omitempty"` // GuestsCanSeeOtherGuests: Whether attendees other than the organizer // can see who the event's attendees are. Optional. The default is True. GuestsCanSeeOtherGuests bool `json:"guestsCanSeeOtherGuests,omitempty"` // HangoutLink: An absolute link to the Google+ hangout associated with // this event. Read-only. HangoutLink string `json:"hangoutLink,omitempty"` // HtmlLink: An absolute link to this event in the Google Calendar Web // UI. Read-only. HtmlLink string `json:"htmlLink,omitempty"` // ICalUID: Event ID in the iCalendar format. ICalUID string `json:"iCalUID,omitempty"` // Id: Identifier of the event. When creating new single or recurring // events, you can specify their IDs. Provided IDs must follow these // rules: // - characters allowed in the ID are those used in base32hex // encoding, i.e. lowercase letters a-v and digits 0-9, see section // 3.1.2 in RFC2938 // - the length of the ID must be between 5 and 1024 // characters // - the ID must be unique per calendar Due to the globally // distributed nature of the system, we cannot guarantee that ID // collisions will be detected at event creation time. To minimize the // risk of collisions we recommend using an established UUID algorithm // such as one described in RFC4122. Id string `json:"id,omitempty"` // Kind: Type of the resource ("calendar#event"). Kind string `json:"kind,omitempty"` // Location: Geographic location of the event as free-form text. // Optional. Location string `json:"location,omitempty"` // Locked: Whether this is a locked event copy where no changes can be // made to the main event fields "summary", "description", "location", // "start", "end" or "recurrence". The default is False. Read-Only. Locked bool `json:"locked,omitempty"` // Organizer: The organizer of the event. If the organizer is also an // attendee, this is indicated with a separate entry in attendees with // the organizer field set to True. To change the organizer, use the // move operation. Read-only, except when importing an event. Organizer *EventOrganizer `json:"organizer,omitempty"` // OriginalStartTime: For an instance of a recurring event, this is the // time at which this event would start according to the recurrence data // in the recurring event identified by recurringEventId. Immutable. OriginalStartTime *EventDateTime `json:"originalStartTime,omitempty"` // PrivateCopy: Whether this is a private event copy where changes are // not shared with other copies on other calendars. Optional. Immutable. // The default is False. PrivateCopy bool `json:"privateCopy,omitempty"` // Recurrence: List of RRULE, EXRULE, RDATE and EXDATE lines for a // recurring event. This field is omitted for single events or instances // of recurring events. Recurrence []string `json:"recurrence,omitempty"` // RecurringEventId: For an instance of a recurring event, this is the // event ID of the recurring event itself. Immutable. RecurringEventId string `json:"recurringEventId,omitempty"` // Reminders: Information about the event's reminders for the // authenticated user. Reminders *EventReminders `json:"reminders,omitempty"` // Sequence: Sequence number as per iCalendar. Sequence int64 `json:"sequence,omitempty"` // Source: Source of an event from which it was created; for example a // web page, an email message or any document identifiable by an URL // using HTTP/HTTPS protocol. Accessible only by the creator of the // event. Source *EventSource `json:"source,omitempty"` // Start: The (inclusive) start time of the event. For a recurring // event, this is the start time of the first instance. Start *EventDateTime `json:"start,omitempty"` // Status: Status of the event. Optional. Possible values are: // - // "confirmed" - The event is confirmed. This is the default status. // - // "tentative" - The event is tentatively confirmed. // - "cancelled" - // The event is cancelled. Status string `json:"status,omitempty"` // Summary: Title of the event. Summary string `json:"summary,omitempty"` // Transparency: Whether the event blocks time on the calendar. // Optional. Possible values are: // - "opaque" - The event blocks time // on the calendar. This is the default value. // - "transparent" - The // event does not block time on the calendar. Transparency string `json:"transparency,omitempty"` // Updated: Last modification time of the event (as a RFC 3339 // timestamp). Read-only. Updated string `json:"updated,omitempty"` // Visibility: Visibility of the event. Optional. Possible values are: // // - "default" - Uses the default visibility for events on the // calendar. This is the default value. // - "public" - The event is // public and event details are visible to all readers of the calendar. // // - "private" - The event is private and only event attendees may view // event details. // - "confidential" - The event is private. This value // is provided for compatibility reasons. Visibility string `json:"visibility,omitempty"` }
type EventAttendee ¶
type EventAttendee struct { // AdditionalGuests: Number of additional guests. Optional. The default // is 0. AdditionalGuests int64 `json:"additionalGuests,omitempty"` // Comment: The attendee's response comment. Optional. Comment string `json:"comment,omitempty"` // DisplayName: The attendee's name, if available. Optional. DisplayName string `json:"displayName,omitempty"` // Email: The attendee's email address, if available. This field must be // present when adding an attendee. Email string `json:"email,omitempty"` // Id: The attendee's Profile ID, if available. Id string `json:"id,omitempty"` // Optional: Whether this is an optional attendee. Optional. The default // is False. Optional bool `json:"optional,omitempty"` // Organizer: Whether the attendee is the organizer of the event. // Read-only. The default is False. Organizer bool `json:"organizer,omitempty"` // Resource: Whether the attendee is a resource. Read-only. The default // is False. Resource bool `json:"resource,omitempty"` // ResponseStatus: The attendee's response status. Possible values are: // // - "needsAction" - The attendee has not responded to the invitation. // // - "declined" - The attendee has declined the invitation. // - // "tentative" - The attendee has tentatively accepted the invitation. // // - "accepted" - The attendee has accepted the invitation. ResponseStatus string `json:"responseStatus,omitempty"` // Self: Whether this entry represents the calendar on which this copy // of the event appears. Read-only. The default is False. Self bool `json:"self,omitempty"` }
type EventCreator ¶
type EventCreator struct { // DisplayName: The creator's name, if available. DisplayName string `json:"displayName,omitempty"` // Email: The creator's email address, if available. Email string `json:"email,omitempty"` // Id: The creator's Profile ID, if available. Id string `json:"id,omitempty"` // Self: Whether the creator corresponds to the calendar on which this // copy of the event appears. Read-only. The default is False. Self bool `json:"self,omitempty"` }
type EventDateTime ¶
type EventDateTime struct { // Date: The date, in the format "yyyy-mm-dd", if this is an all-day // event. Date string `json:"date,omitempty"` // DateTime: The time, as a combined date-time value (formatted // according to RFC 3339). A time zone offset is required unless a time // zone is explicitly specified in timeZone. DateTime string `json:"dateTime,omitempty"` // TimeZone: The name of the time zone in which the time is specified // (e.g. "Europe/Zurich"). Optional. The default is the time zone of the // calendar. TimeZone string `json:"timeZone,omitempty"` }
type EventExtendedProperties ¶
type EventGadget ¶
type EventGadget struct { // Display: The gadget's display mode. Optional. Possible values are: // // - "icon" - The gadget displays next to the event's title in the // calendar view. // - "chip" - The gadget displays when the event is // clicked. Display string `json:"display,omitempty"` // Height: The gadget's height in pixels. Optional. Height int64 `json:"height,omitempty"` // IconLink: The gadget's icon URL. IconLink string `json:"iconLink,omitempty"` // Link: The gadget's URL. Link string `json:"link,omitempty"` // Preferences: Preferences. Preferences map[string]string `json:"preferences,omitempty"` // Title: The gadget's title. Title string `json:"title,omitempty"` // Type: The gadget's type. Type string `json:"type,omitempty"` // Width: The gadget's width in pixels. Optional. Width int64 `json:"width,omitempty"` }
type EventOrganizer ¶
type EventOrganizer struct { // DisplayName: The organizer's name, if available. DisplayName string `json:"displayName,omitempty"` // Email: The organizer's email address, if available. Email string `json:"email,omitempty"` // Id: The organizer's Profile ID, if available. Id string `json:"id,omitempty"` // Self: Whether the organizer corresponds to the calendar on which this // copy of the event appears. Read-only. The default is False. Self bool `json:"self,omitempty"` }
type EventReminder ¶
type EventReminder struct { // Method: The method used by this reminder. Possible values are: // - // "email" - Reminders are sent via email. // - "sms" - Reminders are sent // via SMS. // - "popup" - Reminders are sent via a UI popup. Method string `json:"method,omitempty"` // Minutes: Number of minutes before the start of the event when the // reminder should trigger. Minutes int64 `json:"minutes,omitempty"` }
type EventReminders ¶
type EventReminders struct { // Overrides: If the event doesn't use the default reminders, this lists // the reminders specific to the event, or, if not set, indicates that // no reminders are set for this event. Overrides []*EventReminder `json:"overrides,omitempty"` // UseDefault: Whether the default reminders of the calendar apply to // the event. UseDefault bool `json:"useDefault,omitempty"` }
type EventSource ¶
type Events ¶
type Events struct { // AccessRole: The user's access role for this calendar. Read-only. // Possible values are: // - "none" - The user has no access. // - // "freeBusyReader" - The user has read access to free/busy information. // // - "reader" - The user has read access to the calendar. Private // events will appear to users with reader access, but event details // will be hidden. // - "writer" - The user has read and write access to // the calendar. Private events will appear to users with writer access, // and event details will be visible. // - "owner" - The user has // ownership of the calendar. This role has all of the permissions of // the writer role with the additional ability to see and manipulate // ACLs. AccessRole string `json:"accessRole,omitempty"` // DefaultReminders: The default reminders on the calendar for the // authenticated user. These reminders apply to all events on this // calendar that do not explicitly override them (i.e. do not have // reminders.useDefault set to True). DefaultReminders []*EventReminder `json:"defaultReminders,omitempty"` // Description: Description of the calendar. Read-only. Description string `json:"description,omitempty"` // Etag: ETag of the collection. Etag string `json:"etag,omitempty"` // Items: List of events on the calendar. Items []*Event `json:"items,omitempty"` // Kind: Type of the collection ("calendar#events"). Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access the next page of this result. // Omitted if no further results are available, in which case // nextSyncToken is provided. NextPageToken string `json:"nextPageToken,omitempty"` // NextSyncToken: Token used at a later point in time to retrieve only // the entries that have changed since this result was returned. Omitted // if further results are available, in which case nextPageToken is // provided. NextSyncToken string `json:"nextSyncToken,omitempty"` // Summary: Title of the calendar. Read-only. Summary string `json:"summary,omitempty"` // TimeZone: The time zone of the calendar. Read-only. TimeZone string `json:"timeZone,omitempty"` // Updated: Last modification time of the calendar (as a RFC 3339 // timestamp). Read-only. Updated string `json:"updated,omitempty"` }
type EventsDeleteCall ¶
type EventsDeleteCall struct {
// contains filtered or unexported fields
}
func (*EventsDeleteCall) Do ¶
func (c *EventsDeleteCall) Do() error
func (*EventsDeleteCall) SendNotifications ¶
func (c *EventsDeleteCall) SendNotifications(sendNotifications bool) *EventsDeleteCall
SendNotifications sets the optional parameter "sendNotifications": Whether to send notifications about the deletion of the event. The default is False.
type EventsGetCall ¶
type EventsGetCall struct {
// contains filtered or unexported fields
}
func (*EventsGetCall) AlwaysIncludeEmail ¶
func (c *EventsGetCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsGetCall
AlwaysIncludeEmail sets the optional parameter "alwaysIncludeEmail": Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. The default is False.
func (*EventsGetCall) Do ¶
func (c *EventsGetCall) Do() (*Event, error)
func (*EventsGetCall) MaxAttendees ¶
func (c *EventsGetCall) MaxAttendees(maxAttendees int64) *EventsGetCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsGetCall) TimeZone ¶
func (c *EventsGetCall) TimeZone(timeZone string) *EventsGetCall
TimeZone sets the optional parameter "timeZone": Time zone used in the response. The default is the time zone of the calendar.
type EventsImportCall ¶
type EventsImportCall struct {
// contains filtered or unexported fields
}
func (*EventsImportCall) Do ¶
func (c *EventsImportCall) Do() (*Event, error)
type EventsInsertCall ¶
type EventsInsertCall struct {
// contains filtered or unexported fields
}
func (*EventsInsertCall) Do ¶
func (c *EventsInsertCall) Do() (*Event, error)
func (*EventsInsertCall) MaxAttendees ¶
func (c *EventsInsertCall) MaxAttendees(maxAttendees int64) *EventsInsertCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsInsertCall) SendNotifications ¶
func (c *EventsInsertCall) SendNotifications(sendNotifications bool) *EventsInsertCall
SendNotifications sets the optional parameter "sendNotifications": Whether to send notifications about the creation of the new event. The default is False.
type EventsInstancesCall ¶
type EventsInstancesCall struct {
// contains filtered or unexported fields
}
func (*EventsInstancesCall) AlwaysIncludeEmail ¶
func (c *EventsInstancesCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsInstancesCall
AlwaysIncludeEmail sets the optional parameter "alwaysIncludeEmail": Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. The default is False.
func (*EventsInstancesCall) Do ¶
func (c *EventsInstancesCall) Do() (*Events, error)
func (*EventsInstancesCall) MaxAttendees ¶
func (c *EventsInstancesCall) MaxAttendees(maxAttendees int64) *EventsInstancesCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsInstancesCall) MaxResults ¶
func (c *EventsInstancesCall) MaxResults(maxResults int64) *EventsInstancesCall
MaxResults sets the optional parameter "maxResults": Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events.
func (*EventsInstancesCall) OriginalStart ¶
func (c *EventsInstancesCall) OriginalStart(originalStart string) *EventsInstancesCall
OriginalStart sets the optional parameter "originalStart": The original start time of the instance in the result.
func (*EventsInstancesCall) PageToken ¶
func (c *EventsInstancesCall) PageToken(pageToken string) *EventsInstancesCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*EventsInstancesCall) ShowDeleted ¶
func (c *EventsInstancesCall) ShowDeleted(showDeleted bool) *EventsInstancesCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events will still be included if singleEvents is False. The default is False.
func (*EventsInstancesCall) TimeMax ¶
func (c *EventsInstancesCall) TimeMax(timeMax string) *EventsInstancesCall
TimeMax sets the optional parameter "timeMax": Upper bound (exclusive) for an event's start time to filter by. The default is not to filter by start time.
func (*EventsInstancesCall) TimeMin ¶
func (c *EventsInstancesCall) TimeMin(timeMin string) *EventsInstancesCall
TimeMin sets the optional parameter "timeMin": Lower bound (inclusive) for an event's end time to filter by. The default is not to filter by end time.
func (*EventsInstancesCall) TimeZone ¶
func (c *EventsInstancesCall) TimeZone(timeZone string) *EventsInstancesCall
TimeZone sets the optional parameter "timeZone": Time zone used in the response. The default is the time zone of the calendar.
type EventsListCall ¶
type EventsListCall struct {
// contains filtered or unexported fields
}
func (*EventsListCall) AlwaysIncludeEmail ¶
func (c *EventsListCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsListCall
AlwaysIncludeEmail sets the optional parameter "alwaysIncludeEmail": Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. The default is False.
func (*EventsListCall) Do ¶
func (c *EventsListCall) Do() (*Events, error)
func (*EventsListCall) ICalUID ¶
func (c *EventsListCall) ICalUID(iCalUID string) *EventsListCall
ICalUID sets the optional parameter "iCalUID": Specifies event ID in the iCalendar format to be included in the response.
func (*EventsListCall) MaxAttendees ¶
func (c *EventsListCall) MaxAttendees(maxAttendees int64) *EventsListCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsListCall) MaxResults ¶
func (c *EventsListCall) MaxResults(maxResults int64) *EventsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events.
func (*EventsListCall) OrderBy ¶
func (c *EventsListCall) OrderBy(orderBy string) *EventsListCall
OrderBy sets the optional parameter "orderBy": The order of the events returned in the result. The default is an unspecified, stable order.
func (*EventsListCall) PageToken ¶
func (c *EventsListCall) PageToken(pageToken string) *EventsListCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*EventsListCall) PrivateExtendedProperty ¶
func (c *EventsListCall) PrivateExtendedProperty(privateExtendedProperty string) *EventsListCall
PrivateExtendedProperty sets the optional parameter "privateExtendedProperty": Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints.
func (*EventsListCall) Q ¶
func (c *EventsListCall) Q(q string) *EventsListCall
Q sets the optional parameter "q": Free text search terms to find events that match these terms in any field, except for extended properties.
func (*EventsListCall) SharedExtendedProperty ¶
func (c *EventsListCall) SharedExtendedProperty(sharedExtendedProperty string) *EventsListCall
SharedExtendedProperty sets the optional parameter "sharedExtendedProperty": Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.
func (*EventsListCall) ShowDeleted ¶
func (c *EventsListCall) ShowDeleted(showDeleted bool) *EventsListCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. The default is False.
func (*EventsListCall) ShowHiddenInvitations ¶
func (c *EventsListCall) ShowHiddenInvitations(showHiddenInvitations bool) *EventsListCall
ShowHiddenInvitations sets the optional parameter "showHiddenInvitations": Whether to include hidden invitations in the result. The default is False.
func (*EventsListCall) SingleEvents ¶
func (c *EventsListCall) SingleEvents(singleEvents bool) *EventsListCall
SingleEvents sets the optional parameter "singleEvents": Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. The default is False.
func (*EventsListCall) SyncToken ¶
func (c *EventsListCall) SyncToken(syncToken string) *EventsListCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All events deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. There are several query parameters that cannot be specified together with nextSyncToken to ensure consistency of the client state.
These are:
- iCalUID - orderBy - privateExtendedProperty - q - sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The default is to return all entries.
func (*EventsListCall) TimeMax ¶
func (c *EventsListCall) TimeMax(timeMax string) *EventsListCall
TimeMax sets the optional parameter "timeMax": Upper bound (exclusive) for an event's start time to filter by. The default is not to filter by start time.
func (*EventsListCall) TimeMin ¶
func (c *EventsListCall) TimeMin(timeMin string) *EventsListCall
TimeMin sets the optional parameter "timeMin": Lower bound (inclusive) for an event's end time to filter by. The default is not to filter by end time.
func (*EventsListCall) TimeZone ¶
func (c *EventsListCall) TimeZone(timeZone string) *EventsListCall
TimeZone sets the optional parameter "timeZone": Time zone used in the response. The default is the time zone of the calendar.
func (*EventsListCall) UpdatedMin ¶
func (c *EventsListCall) UpdatedMin(updatedMin string) *EventsListCall
UpdatedMin sets the optional parameter "updatedMin": Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. The default is not to filter by last modification time.
type EventsMoveCall ¶
type EventsMoveCall struct {
// contains filtered or unexported fields
}
func (*EventsMoveCall) Do ¶
func (c *EventsMoveCall) Do() (*Event, error)
func (*EventsMoveCall) SendNotifications ¶
func (c *EventsMoveCall) SendNotifications(sendNotifications bool) *EventsMoveCall
SendNotifications sets the optional parameter "sendNotifications": Whether to send notifications about the change of the event's organizer. The default is False.
type EventsPatchCall ¶
type EventsPatchCall struct {
// contains filtered or unexported fields
}
func (*EventsPatchCall) AlwaysIncludeEmail ¶
func (c *EventsPatchCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsPatchCall
AlwaysIncludeEmail sets the optional parameter "alwaysIncludeEmail": Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. The default is False.
func (*EventsPatchCall) Do ¶
func (c *EventsPatchCall) Do() (*Event, error)
func (*EventsPatchCall) MaxAttendees ¶
func (c *EventsPatchCall) MaxAttendees(maxAttendees int64) *EventsPatchCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsPatchCall) SendNotifications ¶
func (c *EventsPatchCall) SendNotifications(sendNotifications bool) *EventsPatchCall
SendNotifications sets the optional parameter "sendNotifications": Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). The default is False.
type EventsQuickAddCall ¶
type EventsQuickAddCall struct {
// contains filtered or unexported fields
}
func (*EventsQuickAddCall) Do ¶
func (c *EventsQuickAddCall) Do() (*Event, error)
func (*EventsQuickAddCall) SendNotifications ¶
func (c *EventsQuickAddCall) SendNotifications(sendNotifications bool) *EventsQuickAddCall
SendNotifications sets the optional parameter "sendNotifications": Whether to send notifications about the creation of the event. The default is False.
type EventsService ¶
type EventsService struct {
// contains filtered or unexported fields
}
func NewEventsService ¶
func NewEventsService(s *Service) *EventsService
func (*EventsService) Delete ¶
func (r *EventsService) Delete(calendarId string, eventId string) *EventsDeleteCall
Delete: Deletes an event.
func (*EventsService) Get ¶
func (r *EventsService) Get(calendarId string, eventId string) *EventsGetCall
Get: Returns an event.
func (*EventsService) Import ¶
func (r *EventsService) Import(calendarId string, event *Event) *EventsImportCall
Import: Imports an event. This operation is used to add a private copy of an existing event to a calendar.
func (*EventsService) Insert ¶
func (r *EventsService) Insert(calendarId string, event *Event) *EventsInsertCall
Insert: Creates an event.
func (*EventsService) Instances ¶
func (r *EventsService) Instances(calendarId string, eventId string) *EventsInstancesCall
Instances: Returns instances of the specified recurring event.
func (*EventsService) List ¶
func (r *EventsService) List(calendarId string) *EventsListCall
List: Returns events on the specified calendar.
func (*EventsService) Move ¶
func (r *EventsService) Move(calendarId string, eventId string, destinationid string) *EventsMoveCall
Move: Moves an event to another calendar, i.e. changes an event's organizer.
func (*EventsService) Patch ¶
func (r *EventsService) Patch(calendarId string, eventId string, event *Event) *EventsPatchCall
Patch: Updates an event. This method supports patch semantics.
func (*EventsService) QuickAdd ¶
func (r *EventsService) QuickAdd(calendarId string, text string) *EventsQuickAddCall
QuickAdd: Creates an event based on a simple text string.
func (*EventsService) Update ¶
func (r *EventsService) Update(calendarId string, eventId string, event *Event) *EventsUpdateCall
Update: Updates an event.
func (*EventsService) Watch ¶
func (r *EventsService) Watch(calendarId string, channel *Channel) *EventsWatchCall
Watch: Watch for changes to Events resources.
type EventsUpdateCall ¶
type EventsUpdateCall struct {
// contains filtered or unexported fields
}
func (*EventsUpdateCall) AlwaysIncludeEmail ¶
func (c *EventsUpdateCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsUpdateCall
AlwaysIncludeEmail sets the optional parameter "alwaysIncludeEmail": Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. The default is False.
func (*EventsUpdateCall) Do ¶
func (c *EventsUpdateCall) Do() (*Event, error)
func (*EventsUpdateCall) MaxAttendees ¶
func (c *EventsUpdateCall) MaxAttendees(maxAttendees int64) *EventsUpdateCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsUpdateCall) SendNotifications ¶
func (c *EventsUpdateCall) SendNotifications(sendNotifications bool) *EventsUpdateCall
SendNotifications sets the optional parameter "sendNotifications": Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). The default is False.
type EventsWatchCall ¶
type EventsWatchCall struct {
// contains filtered or unexported fields
}
func (*EventsWatchCall) AlwaysIncludeEmail ¶
func (c *EventsWatchCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsWatchCall
AlwaysIncludeEmail sets the optional parameter "alwaysIncludeEmail": Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. The default is False.
func (*EventsWatchCall) Do ¶
func (c *EventsWatchCall) Do() (*Channel, error)
func (*EventsWatchCall) ICalUID ¶
func (c *EventsWatchCall) ICalUID(iCalUID string) *EventsWatchCall
ICalUID sets the optional parameter "iCalUID": Specifies event ID in the iCalendar format to be included in the response.
func (*EventsWatchCall) MaxAttendees ¶
func (c *EventsWatchCall) MaxAttendees(maxAttendees int64) *EventsWatchCall
MaxAttendees sets the optional parameter "maxAttendees": The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned.
func (*EventsWatchCall) MaxResults ¶
func (c *EventsWatchCall) MaxResults(maxResults int64) *EventsWatchCall
MaxResults sets the optional parameter "maxResults": Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events.
func (*EventsWatchCall) OrderBy ¶
func (c *EventsWatchCall) OrderBy(orderBy string) *EventsWatchCall
OrderBy sets the optional parameter "orderBy": The order of the events returned in the result. The default is an unspecified, stable order.
func (*EventsWatchCall) PageToken ¶
func (c *EventsWatchCall) PageToken(pageToken string) *EventsWatchCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*EventsWatchCall) PrivateExtendedProperty ¶
func (c *EventsWatchCall) PrivateExtendedProperty(privateExtendedProperty string) *EventsWatchCall
PrivateExtendedProperty sets the optional parameter "privateExtendedProperty": Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints.
func (*EventsWatchCall) Q ¶
func (c *EventsWatchCall) Q(q string) *EventsWatchCall
Q sets the optional parameter "q": Free text search terms to find events that match these terms in any field, except for extended properties.
func (*EventsWatchCall) SharedExtendedProperty ¶
func (c *EventsWatchCall) SharedExtendedProperty(sharedExtendedProperty string) *EventsWatchCall
SharedExtendedProperty sets the optional parameter "sharedExtendedProperty": Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.
func (*EventsWatchCall) ShowDeleted ¶
func (c *EventsWatchCall) ShowDeleted(showDeleted bool) *EventsWatchCall
ShowDeleted sets the optional parameter "showDeleted": Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. The default is False.
func (*EventsWatchCall) ShowHiddenInvitations ¶
func (c *EventsWatchCall) ShowHiddenInvitations(showHiddenInvitations bool) *EventsWatchCall
ShowHiddenInvitations sets the optional parameter "showHiddenInvitations": Whether to include hidden invitations in the result. The default is False.
func (*EventsWatchCall) SingleEvents ¶
func (c *EventsWatchCall) SingleEvents(singleEvents bool) *EventsWatchCall
SingleEvents sets the optional parameter "singleEvents": Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. The default is False.
func (*EventsWatchCall) SyncToken ¶
func (c *EventsWatchCall) SyncToken(syncToken string) *EventsWatchCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All events deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. There are several query parameters that cannot be specified together with nextSyncToken to ensure consistency of the client state.
These are:
- iCalUID - orderBy - privateExtendedProperty - q - sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The default is to return all entries.
func (*EventsWatchCall) TimeMax ¶
func (c *EventsWatchCall) TimeMax(timeMax string) *EventsWatchCall
TimeMax sets the optional parameter "timeMax": Upper bound (exclusive) for an event's start time to filter by. The default is not to filter by start time.
func (*EventsWatchCall) TimeMin ¶
func (c *EventsWatchCall) TimeMin(timeMin string) *EventsWatchCall
TimeMin sets the optional parameter "timeMin": Lower bound (inclusive) for an event's end time to filter by. The default is not to filter by end time.
func (*EventsWatchCall) TimeZone ¶
func (c *EventsWatchCall) TimeZone(timeZone string) *EventsWatchCall
TimeZone sets the optional parameter "timeZone": Time zone used in the response. The default is the time zone of the calendar.
func (*EventsWatchCall) UpdatedMin ¶
func (c *EventsWatchCall) UpdatedMin(updatedMin string) *EventsWatchCall
UpdatedMin sets the optional parameter "updatedMin": Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. The default is not to filter by last modification time.
type FreeBusyCalendar ¶
type FreeBusyCalendar struct { // Busy: List of time ranges during which this calendar should be // regarded as busy. Busy []*TimePeriod `json:"busy,omitempty"` // Errors: Optional error(s) (if computation for the calendar failed). Errors []*Error `json:"errors,omitempty"` }
type FreeBusyGroup ¶
type FreeBusyRequest ¶
type FreeBusyRequest struct { // CalendarExpansionMax: Maximal number of calendars for which FreeBusy // information is to be provided. Optional. CalendarExpansionMax int64 `json:"calendarExpansionMax,omitempty"` // GroupExpansionMax: Maximal number of calendar identifiers to be // provided for a single group. Optional. An error will be returned for // a group with more members than this value. GroupExpansionMax int64 `json:"groupExpansionMax,omitempty"` // Items: List of calendars and/or groups to query. Items []*FreeBusyRequestItem `json:"items,omitempty"` // TimeMax: The end of the interval for the query. TimeMax string `json:"timeMax,omitempty"` // TimeMin: The start of the interval for the query. TimeMin string `json:"timeMin,omitempty"` // TimeZone: Time zone used in the response. Optional. The default is // UTC. TimeZone string `json:"timeZone,omitempty"` }
type FreeBusyRequestItem ¶
type FreeBusyRequestItem struct { // Id: The identifier of a calendar or a group. Id string `json:"id,omitempty"` }
type FreeBusyResponse ¶
type FreeBusyResponse struct { // Calendars: List of free/busy information for calendars. Calendars map[string]FreeBusyCalendar `json:"calendars,omitempty"` // Groups: Expansion of groups. Groups map[string]FreeBusyGroup `json:"groups,omitempty"` // Kind: Type of the resource ("calendar#freeBusy"). Kind string `json:"kind,omitempty"` // TimeMax: The end of the interval. TimeMax string `json:"timeMax,omitempty"` // TimeMin: The start of the interval. TimeMin string `json:"timeMin,omitempty"` }
type FreebusyQueryCall ¶
type FreebusyQueryCall struct {
// contains filtered or unexported fields
}
func (*FreebusyQueryCall) Do ¶
func (c *FreebusyQueryCall) Do() (*FreeBusyResponse, error)
type FreebusyService ¶
type FreebusyService struct {
// contains filtered or unexported fields
}
func NewFreebusyService ¶
func NewFreebusyService(s *Service) *FreebusyService
func (*FreebusyService) Query ¶
func (r *FreebusyService) Query(freebusyrequest *FreeBusyRequest) *FreebusyQueryCall
Query: Returns free/busy information for a set of calendars.
type Service ¶
type Service struct { BasePath string // API endpoint base URL Acl *AclService CalendarList *CalendarListService Calendars *CalendarsService Channels *ChannelsService Colors *ColorsService Events *EventsService Freebusy *FreebusyService Settings *SettingsService // contains filtered or unexported fields }
type Setting ¶
type Setting struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Id: The id of the user setting. Id string `json:"id,omitempty"` // Kind: Type of the resource ("calendar#setting"). Kind string `json:"kind,omitempty"` // Value: Value of the user setting. The format of the value depends on // the ID of the setting. It must always be a UTF-8 string of length up // to 1024 characters. Value string `json:"value,omitempty"` }
type Settings ¶
type Settings struct { // Etag: Etag of the collection. Etag string `json:"etag,omitempty"` // Items: List of user settings. Items []*Setting `json:"items,omitempty"` // Kind: Type of the collection ("calendar#settings"). Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access the next page of this result. // Omitted if no further results are available, in which case // nextSyncToken is provided. NextPageToken string `json:"nextPageToken,omitempty"` // NextSyncToken: Token used at a later point in time to retrieve only // the entries that have changed since this result was returned. Omitted // if further results are available, in which case nextPageToken is // provided. NextSyncToken string `json:"nextSyncToken,omitempty"` }
type SettingsGetCall ¶
type SettingsGetCall struct {
// contains filtered or unexported fields
}
func (*SettingsGetCall) Do ¶
func (c *SettingsGetCall) Do() (*Setting, error)
type SettingsListCall ¶
type SettingsListCall struct {
// contains filtered or unexported fields
}
func (*SettingsListCall) Do ¶
func (c *SettingsListCall) Do() (*Settings, error)
func (*SettingsListCall) MaxResults ¶
func (c *SettingsListCall) MaxResults(maxResults int64) *SettingsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries.
func (*SettingsListCall) PageToken ¶
func (c *SettingsListCall) PageToken(pageToken string) *SettingsListCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*SettingsListCall) SyncToken ¶
func (c *SettingsListCall) SyncToken(syncToken string) *SettingsListCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The default is to return all entries.
type SettingsService ¶
type SettingsService struct {
// contains filtered or unexported fields
}
func NewSettingsService ¶
func NewSettingsService(s *Service) *SettingsService
func (*SettingsService) Get ¶
func (r *SettingsService) Get(setting string) *SettingsGetCall
Get: Returns a single user setting.
func (*SettingsService) List ¶
func (r *SettingsService) List() *SettingsListCall
List: Returns all user settings for the authenticated user.
func (*SettingsService) Watch ¶
func (r *SettingsService) Watch(channel *Channel) *SettingsWatchCall
Watch: Watch for changes to Settings resources.
type SettingsWatchCall ¶
type SettingsWatchCall struct {
// contains filtered or unexported fields
}
func (*SettingsWatchCall) Do ¶
func (c *SettingsWatchCall) Do() (*Channel, error)
func (*SettingsWatchCall) MaxResults ¶
func (c *SettingsWatchCall) MaxResults(maxResults int64) *SettingsWatchCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries.
func (*SettingsWatchCall) PageToken ¶
func (c *SettingsWatchCall) PageToken(pageToken string) *SettingsWatchCall
PageToken sets the optional parameter "pageToken": Token specifying which result page to return.
func (*SettingsWatchCall) SyncToken ¶
func (c *SettingsWatchCall) SyncToken(syncToken string) *SettingsWatchCall
SyncToken sets the optional parameter "syncToken": Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization.
The default is to return all entries.