Simple components
We start out with the components that are relatively straight forward. There is no recurring option here.
VFreeBusy
Bases: Component
This class represents the VFREEBUSY component specified in RFC 5545 in '3.6.4. Free/Busy Component'.
A "VFREEBUSY" calendar component is a grouping of component properties that represents either a request for free or busy time information, a reply to a request for free or busy time information, or a published set of busy time information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
The actual name of this component instance. E.g. VEVENT, RRULE, VCUSTOMCOMPONENT. |
required | |
dtstamp |
Optional[DTStamp]
|
The DTStamp property. Required and must occur exactly once. |
None
|
uid |
Optional[UID]
|
The UID property. Required and must occur exactly once. |
None
|
contact |
Optional[Contact]
|
The Contact property. Optional, but may occur at most once. |
None
|
dtstart |
Optional[DTStart]
|
The DTStart property. Optional, but may occur at most once. |
None
|
dtend |
Optional[DTEnd]
|
The DTEnd property. Optional, but may occur at most once. |
None
|
organizer |
Optional[Organizer]
|
The Organizer property. Optional, but may occur at most once. |
None
|
url |
Optional[URL]
|
The URL property. Optional, but may occur at most once. |
None
|
attendee |
Optional[List[Attendee]]
|
The Attendee property. Optional, but may occur multiple times. |
None
|
comment |
Optional[List[Comment]]
|
The Comment property. Optional, but may occur multiple times. |
None
|
freebusy |
Optional[List[FreeBusyProperty]]
|
The FreeBusyProperty property. Optional, but may occur multiple times. |
None
|
rstatus |
Optional[List[RequestStatus]]
|
The RequestStatus property. Optional, but may occur multiple times. |
None
|
parent |
Optional[Component]
|
The Component this item is encapsulated by in the iCalendar data file. |
None
|
Source code in ical_library/ical_components/v_free_busy.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
dtstamp: DTStamp
property
writable
A getter to ensure the required property is set.
uid: UID
property
writable
A getter to ensure the required property is set.
VAlarm
Bases: Component
This class represents the VAlarm component specified in RFC 5545 in '3.6.6. Alarm Component'.
A "VALARM" calendar component is a grouping of component properties that is a reminder or alarm for an event or a to-do. For example, it may be used to define a reminder for a pending event or an overdue to-do. The "VALARM" calendar component MUST only appear within either a "VEVENT" or "VTODO" calendar component
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action |
Optional[Action]
|
The Action property. Required and must occur exactly once. |
None
|
trigger |
Optional[Trigger]
|
The Trigger property. Required and must occur exactly once. |
None
|
duration |
Optional[ICALDuration]
|
The ICALDuration property. Optional, but may occur at most once. If this item is present, repeat may not be present. |
None
|
repeat |
Optional[Repeat]
|
The Repeat property. Optional, but may occur at most once. If this item is present, duration may not be present. |
None
|
attach |
Optional[Attach]
|
The Attach property. Optional, but may occur at most once. |
None
|
parent |
Optional[Component]
|
The Component this item is encapsulated by in the iCalendar data file. |
None
|
Source code in ical_library/ical_components/v_alarm.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
action: Action
property
writable
A getter to ensure the required property is set.
trigger: Trigger
property
writable
Getter that ensures the required property is set.