folders
CreateFolderRequest
Bases: TypedDict
Class representation of the Nylas folder creation request.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
The name of the folder. |
parent_id |
NotRequired[str]
|
The parent ID of the folder. (Microsoft only) |
background_color |
NotRequired[str]
|
The background color of the folder. (Google only) |
text_color |
NotRequired[str]
|
The text color of the folder. (Google only) |
Source code in nylas/models/folders.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
Folder
dataclass
Class representing a Nylas folder.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
A globally unique object identifier. |
grant_id |
str
|
A Grant ID of the Nylas account. |
name |
str
|
Folder name |
object |
str
|
The type of object. |
parent_id |
Optional[str]
|
ID of the parent folder. (Microsoft only) |
background_color |
Optional[str]
|
Folder background color. (Google only) |
text_color |
Optional[str]
|
Folder text color. (Google only) |
system_folder |
Optional[bool]
|
Indicates if the folder is user created or system created. (Google Only) |
child_count |
Optional[int]
|
The number of immediate child folders in the current folder. (Microsoft only) |
unread_count |
Optional[int]
|
The number of unread items inside of a folder. |
total_count |
Optional[int]
|
The number of items inside of a folder. |
attributes |
Optional[str]
|
Common attribute descriptors shared by system folders across providers.
For example, Sent email folders have the |
Source code in nylas/models/folders.py
8 9 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 |
|
UpdateFolderRequest
Bases: TypedDict
Class representation of the Nylas folder update request.
Attributes:
Name | Type | Description |
---|---|---|
name |
NotRequired[str]
|
The name of the folder. |
parent_id |
NotRequired[str]
|
The parent ID of the folder. (Microsoft only) |
background_color |
NotRequired[str]
|
The background color of the folder. (Google only) |
text_color |
NotRequired[str]
|
The text color of the folder. (Google only) |
Source code in nylas/models/folders.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|