calendars
            Calendar
  
      dataclass
  
    Class representation of a Nylas Calendar object.
Attributes:
| Name | Type | Description | 
|---|---|---|
id | 
            
                  str
             | 
            
               Globally unique object identifier.  | 
          
grant_id | 
            
                  str
             | 
            
               Grant ID representing the user's account.  | 
          
name | 
            
                  str
             | 
            
               Name of the Calendar.  | 
          
timezone | 
            
                  Optional[str]
             | 
            
               IANA time zone database-formatted string (for example, "America/New_York"). This value is only supported for Google and Virtual Calendars.  | 
          
read_only | 
            
                  bool
             | 
            
               If the event participants are able to edit the Event.  | 
          
is_owned_by_user | 
            
                  bool
             | 
            
               If the Calendar is owned by the user account.  | 
          
object | 
            
                  str
             | 
            
               The type of object.  | 
          
description | 
            
                  Optional[str]
             | 
            
               Description of the Calendar.  | 
          
location | 
            
                  Optional[str]
             | 
            
               Geographic location of the Calendar as free-form text.  | 
          
hex_color | 
            
                  Optional[str]
             | 
            
               The background color of the calendar in the hexadecimal format (for example, "#0099EE"). If not defined, the default color is used.  | 
          
hex_foreground_color | 
            
                  Optional[str]
             | 
            
               The background color of the calendar in the hexadecimal format (for example, "#0099EE"). If not defined, the default color is used (Google only).  | 
          
is_primary | 
            
                  Optional[bool]
             | 
            
               If the Calendar is the account's primary calendar.  | 
          
metadata | 
            
                  Optional[Dict[str, Any]]
             | 
            
               A list of key-value pairs storing additional data.  | 
          
Source code in nylas/models/calendars.py
                10 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  |  | 
            CreateCalendarRequest
    
              Bases: TypedDict
Interface of a Nylas create calendar request
Attributes:
| Name | Type | Description | 
|---|---|---|
name | 
            
                  str
             | 
            
               Name of the Calendar.  | 
          
description | 
            
                  NotRequired[str]
             | 
            
               Description of the calendar.  | 
          
location | 
            
                  NotRequired[str]
             | 
            
               Geographic location of the calendar as free-form text.  | 
          
timezone | 
            
                  NotRequired[str]
             | 
            
               IANA time zone database formatted string (e.g. America/New_York).  | 
          
metadata | 
            
                  NotRequired[Dict[str, str]]
             | 
            
               A list of key-value pairs storing additional data.  | 
          
Source code in nylas/models/calendars.py
                65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81  |  | 
            ListCalendarsQueryParams
    
              Bases: ListQueryParams
Interface of the query parameters for listing calendars.
Attributes:
| Name | Type | Description | 
|---|---|---|
limit | 
            
                  NotRequired[int]
             | 
            
               The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.  | 
          
page_token | 
            
                  NotRequired[str]
             | 
            
               An identifier that specifies which page of data to return. This value should be taken from a ListResponse object's next_cursor parameter.  | 
          
metadata_pair | 
            
                  NotRequired[Dict[str, str]]
             | 
            
               Pass in your metadata key-value pair to search for metadata.  | 
          
Source code in nylas/models/calendars.py
                50 51 52 53 54 55 56 57 58 59 60 61 62  |  | 
            UpdateCalendarRequest
    
              Bases: CreateCalendarRequest
Interface of a Nylas update calendar request
Attributes:
| Name | Type | Description | 
|---|---|---|
hexColor | 
            
                  NotRequired[str]
             | 
            
               The background color of the calendar in the hexadecimal format (e.g. #0099EE). Empty indicates default color.  | 
          
hexForegroundColor | 
            
                  NotRequired[str]
             | 
            
               The background color of the calendar in the hexadecimal format (e.g. #0099EE). Empty indicates default color. (Google only)  | 
          
Source code in nylas/models/calendars.py
                84 85 86 87 88 89 90 91 92 93 94 95 96  |  |