8
8
9
9
from box_sdk_gen .schemas .integration_mapping_base import IntegrationMappingBase
10
10
11
- from box_sdk_gen .schemas .folder_mini import FolderMini
12
-
13
11
from box_sdk_gen .schemas .integration_mapping_slack_options import (
14
12
IntegrationMappingSlackOptions ,
15
13
)
20
18
IntegrationMappingPartnerItemSlack ,
21
19
)
22
20
21
+ from box_sdk_gen .schemas .folder_mini import FolderMini
22
+
23
23
from box_sdk_gen .box .errors import BoxSDKError
24
24
25
25
from box_sdk_gen .internal .utils import DateTime
@@ -32,34 +32,30 @@ class IntegrationMappingIntegrationTypeField(str, Enum):
32
32
class IntegrationMapping (IntegrationMappingBase ):
33
33
def __init__ (
34
34
self ,
35
- box_item : FolderMini ,
36
35
partner_item : Union [IntegrationMappingPartnerItemSlack ],
36
+ box_item : FolderMini ,
37
37
id : str ,
38
38
* ,
39
- created_at : Optional [DateTime ] = None ,
40
- modified_at : Optional [DateTime ] = None ,
41
39
integration_type : Optional [IntegrationMappingIntegrationTypeField ] = None ,
42
40
is_manually_created : Optional [bool ] = None ,
43
41
options : Optional [IntegrationMappingSlackOptions ] = None ,
44
42
created_by : Optional [UserIntegrationMappings ] = None ,
45
43
modified_by : Optional [UserIntegrationMappings ] = None ,
44
+ created_at : Optional [DateTime ] = None ,
45
+ modified_at : Optional [DateTime ] = None ,
46
46
type : IntegrationMappingBaseTypeField = IntegrationMappingBaseTypeField .INTEGRATION_MAPPING ,
47
47
** kwargs
48
48
):
49
49
"""
50
+ :param partner_item: Mapped item object for Slack
51
+ :type partner_item: Union[IntegrationMappingPartnerItemSlack]
50
52
:param box_item: The Box folder, to which the object from the
51
53
partner app domain (referenced in `partner_item_id`) is mapped
52
54
:type box_item: FolderMini
53
- :param partner_item: Mapped item object for Slack
54
- :type partner_item: Union[IntegrationMappingPartnerItemSlack]
55
55
:param id: A unique identifier of a folder mapping
56
56
(part of a composite key together
57
57
with `integration_type`)
58
58
:type id: str
59
- :param created_at: When the integration mapping object was created, defaults to None
60
- :type created_at: Optional[DateTime], optional
61
- :param modified_at: When the integration mapping object was last modified, defaults to None
62
- :type modified_at: Optional[DateTime], optional
63
59
:param integration_type: Identifies the Box partner app,
64
60
with which the mapping is associated.
65
61
Currently only supports Slack.
@@ -75,16 +71,20 @@ def __init__(
75
71
:param modified_by: The user who
76
72
last modified the integration mapping, defaults to None
77
73
:type modified_by: Optional[UserIntegrationMappings], optional
74
+ :param created_at: When the integration mapping object was created, defaults to None
75
+ :type created_at: Optional[DateTime], optional
76
+ :param modified_at: When the integration mapping object was last modified, defaults to None
77
+ :type modified_at: Optional[DateTime], optional
78
78
:param type: Mapping type, defaults to IntegrationMappingBaseTypeField.INTEGRATION_MAPPING
79
79
:type type: IntegrationMappingBaseTypeField, optional
80
80
"""
81
81
super ().__init__ (id = id , type = type , ** kwargs )
82
- self .box_item = box_item
83
82
self .partner_item = partner_item
84
- self .created_at = created_at
85
- self .modified_at = modified_at
83
+ self .box_item = box_item
86
84
self .integration_type = integration_type
87
85
self .is_manually_created = is_manually_created
88
86
self .options = options
89
87
self .created_by = created_by
90
88
self .modified_by = modified_by
89
+ self .created_at = created_at
90
+ self .modified_at = modified_at
0 commit comments