# ------------------------------------------------------------------------------# Output# ------------------------------------------------------------------------------# --- Deepest nested objects first ---
[docs]@dataclasses.dataclass(frozen=True)classCreateFolderResponseVersion(BaseResponse):"""Version schema."""@cached_propertydefcreatedAt(self)->str:"""Date and time when the version was created. ISO 8601 format."""returnself._get("createdAt")@cached_propertydefmessage(self)->str:"""Message associated with the current version."""returnself._get("message")@cached_propertydefnumber(self)->int:"""The version number."""returnself._get("number")@cached_propertydefminorEdit(self)->bool:"""Describes if this version is a minor version."""returnself._get("minorEdit")@cached_propertydefauthorId(self)->str:"""The account ID of the user who created this version."""returnself._get("authorId")
[docs]@dataclasses.dataclass(frozen=True)classCreateFolderResponseLinks(BaseResponse):"""FolderLinks schema."""@cached_propertydefwebui(self)->str:"""Web UI link of the content."""returnself._get("webui")
# --- Main response object ---
[docs]@dataclasses.dataclass(frozen=True)classCreateFolderResponse(BaseResponse):"""FolderSingle schema - response for creating a folder."""@cached_propertydefid(self)->str:"""ID of the folder."""returnself._get("id")@cached_propertydeftype(self)->str:"""The content type of the object."""returnself._get("type")@cached_propertydefstatus(self)->str:"""ContentStatus enum: current, draft, archived, historical, trashed, deleted."""returnself._get("status")@cached_propertydeftitle(self)->str:"""Title of the folder."""returnself._get("title")@cached_propertydefparentId(self)->str:"""ID of the parent content, or null if there is no parent."""returnself._get("parentId")@cached_propertydefparentType(self)->str:"""ParentContentType enum: page, whiteboard, database, embed, folder."""returnself._get("parentType")@cached_propertydefposition(self)->int:"""Position of the folder within the parent tree."""returnself._get("position")@cached_propertydefauthorId(self)->str:"""The account ID of the user who created this folder."""returnself._get("authorId")@cached_propertydefownerId(self)->str:"""The account ID of the user who owns this folder."""returnself._get("ownerId")@cached_propertydefcreatedAt(self)->str:"""Date and time when the folder was created. ISO 8601 format."""returnself._get("createdAt")@cached_propertydefspaceId(self)->str:"""ID of the space the folder is in."""returnself._get("spaceId")@cached_propertydefversion(self)->CreateFolderResponseVersion:returnself._new(CreateFolderResponseVersion,"version")@cached_propertydeflinks(self)->CreateFolderResponseLinks:returnself._new(CreateFolderResponseLinks,"_links")