calendaring_jmap.objects.busy_interval module#
JMAP BusyPeriod object.
Represents one interval of a Principal/getAvailability response
(draft-ietf-jmap-calendars section 2.2), or one computed client-side by the
CalendarEvent/query fallback path when a server doesn't implement that
method. Read-only: nothing here is ever sent back to the server, so there
is no to_jmap.
- class calendaring_jmap.objects.busy_interval.BusyInterval(start, end, busy_status, event=None)[source]#
Bases:
objectOne busy/free interval.
- Variables:
start (
str) – Start of the interval (UTCDateTimestring, alwaysZ-suffixed). Normalized to this one shape regardless of whether it came fromPrincipal/getAvailabilityor theCalendarEvent/queryfallback, since RFC 8984 allows a JSCalendarstartto be UTC, time-zone-qualified, or floating; a floating start has no true UTC equivalent and is treated as UTC.end (
str) – End of the interval (UTCDateTimestring), same normalization asstart.busy_status (
str) – One of"confirmed","tentative","unavailable"(seeconstants.BUSY_STATUS_*).event (
JMAPCalendarObject|None) – The underlying event, when the server populated it. This can beNoneeven when details were requested: confirmed live that this happens when the caller lacksmayReadItems, the event is marked private, or (Stalwart-specific) the caller didn't also pass a server-supportedeventPropertieslist.
- event: JMAPCalendarObject | None = None#