-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathai_item_ask.py
More file actions
37 lines (29 loc) · 935 Bytes
/
ai_item_ask.py
File metadata and controls
37 lines (29 loc) · 935 Bytes
1
2
3
4
5
6
7
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
from enum import Enum
from typing import Optional
from box_sdk_gen.internal.base_object import BaseObject
from box_sdk_gen.box.errors import BoxSDKError
class AiItemAskTypeField(str, Enum):
FILE = 'file'
HUBS = 'hubs'
class AiItemAsk(BaseObject):
_discriminator = 'type', {'file', 'hubs'}
def __init__(
self,
id: str,
type: AiItemAskTypeField,
*,
content: Optional[str] = None,
**kwargs
):
"""
:param id: The ID of the file.
:type id: str
:param type: The type of the item. A `hubs` item must be used as a single item.
:type type: AiItemAskTypeField
:param content: The content of the item, often the text representation., defaults to None
:type content: Optional[str], optional
"""
super().__init__(**kwargs)
self.id = id
self.type = type
self.content = content