-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9779bd9
commit 29f0364
Showing
7 changed files
with
74 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "engineHash": "7874ac3", "specHash": "1fdcbef", "version": "1.10.0" } | ||
{ "engineHash": "7874ac3", "specHash": "764e12c", "version": "1.10.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters