-
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.
feat: add missing marker pagination fields and introduce new event ty…
…pe `AppItemEventSource` `(box/box-openapi#431)` (#189)
- Loading branch information
1 parent
5e59f69
commit 8d22ce2
Showing
9 changed files
with
127 additions
and
20 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": "3ed6b56", "specHash": "c3c012c", "version": "1.0.0" } | ||
{ "engineHash": "3ed6b56", "specHash": "5e023b9", "version": "1.0.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from enum import Enum | ||
|
||
from typing import Optional | ||
|
||
from box_sdk_gen.internal.base_object import BaseObject | ||
|
||
from box_sdk_gen.schemas.user_mini import UserMini | ||
|
||
from box_sdk_gen.schemas.group_mini import GroupMini | ||
|
||
|
||
class AppItemEventSourceTypeField(str, Enum): | ||
APP_ITEM = 'app_item' | ||
|
||
|
||
class AppItemEventSource(BaseObject): | ||
_discriminator = 'type', {'app_item'} | ||
|
||
def __init__( | ||
self, | ||
id: str, | ||
app_item_type: str, | ||
*, | ||
type: AppItemEventSourceTypeField = AppItemEventSourceTypeField.APP_ITEM.value, | ||
user: Optional[UserMini] = None, | ||
group: Optional[GroupMini] = None, | ||
**kwargs | ||
): | ||
""" | ||
:param id: The id of the `AppItem` | ||
:type id: str | ||
:param app_item_type: The type of the `AppItem` | ||
:type app_item_type: str | ||
:param type: The type of the source that this event represents. Can be only `app_item`. | ||
, defaults to AppItemEventSourceTypeField.APP_ITEM.value | ||
:type type: AppItemEventSourceTypeField, optional | ||
""" | ||
super().__init__(**kwargs) | ||
self.id = id | ||
self.app_item_type = app_item_type | ||
self.type = type | ||
self.user = user | ||
self.group = group |
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
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