1212
1313
1414# External
15- import marshmallow
16- from marshmallow import fields
17- from typing import List , Optional , Union , TYPE_CHECKING
18-
19- # From Current API
20- from . import schemas as t_schemas
15+ from typing import List , TYPE_CHECKING
2116
2217# From Current Package
2318from ...core .model_base import ModelBase
@@ -41,22 +36,18 @@ def __init__(self, *args, **kwargs):
4136 self .primary_admin_ids : List [int ] = kwargs .get ("primary_admin_ids" , [])
4237 self .secondary_admin_ids : List [int ] = kwargs .get ("secondary_admin_ids" , [])
4338
44-
4539 # Properties
4640 @property
4741 def api_client (self ) -> 'TeamsAPI' :
4842 return self ._api_client
49-
5043
5144 @property
5245 def primary_admin_ids (self ) -> List [int ]:
5346 return self ._primary_admin_ids
54-
5547
5648 @property
5749 def secondary_admin_ids (self ) -> List [int ]:
5850 return self ._secondary_admin_ids
59-
6051
6152 @primary_admin_ids .setter
6253 def primary_admin_ids (self , primary_admin_ids : List [int ]):
@@ -71,7 +62,6 @@ def api_client(self, api_client: 'TeamsAPI'):
7162 self ._api_client = api_client
7263
7364
74-
7565class Team (ModelBase ):
7666 """
7767 This model represents a Team on Intercom.
@@ -91,37 +81,30 @@ def __init__(self, *args, **kwargs):
9181 self .admin_ids : List [int ] = kwargs .get ("admin_ids" , [])
9282 self .admin_priority_level : AdminPriorityLevel = kwargs .get ("admin_priority_level" , None )
9383
94-
9584 # Properties
9685 @property
9786 def api_client (self ) -> 'TeamsAPI' :
9887 return self ._api_client
99-
10088
10189 @property
10290 def id (self ) -> int :
10391 return self ._id
104-
10592
10693 @property
10794 def type (self ) -> str :
10895 return self ._type
109-
11096
11197 @property
11298 def name (self ) -> str :
11399 return self ._name
114-
115100
116101 @property
117102 def admin_ids (self ) -> List [int ]:
118103 return self ._admin_ids
119-
120104
121105 @property
122106 def admin_priority_level (self ) -> AdminPriorityLevel :
123107 return self ._admin_priority_level
124-
125108
126109 @id .setter
127110 def id (self , id : int ):
@@ -146,7 +129,6 @@ def admin_priority_level(self, admin_priority_level: AdminPriorityLevel):
146129 @api_client .setter
147130 def api_client (self , api_client : 'TeamsAPI' ):
148131 self ._api_client = api_client
149-
150132
151133
152134class TeamList (ModelBase ):
@@ -160,17 +142,14 @@ def __init__(self, *args, **kwargs):
160142 super ().__init__ (* args , ** kwargs )
161143 self .teams : List [Team ] = kwargs .get ("teams" , [])
162144
163-
164145 # Properties
165146 @property
166147 def api_client (self ) -> 'TeamsAPI' :
167148 return self ._api_client
168-
169149
170150 @property
171151 def teams (self ) -> List [Team ]:
172152 return self ._teams
173-
174153
175154 @teams .setter
176155 def teams (self , teams : List [Team ]):
@@ -179,12 +158,3 @@ def teams(self, teams: List[Team]):
179158 @api_client .setter
180159 def api_client (self , api_client : 'TeamsAPI' ):
181160 self ._api_client = api_client
182-
183-
184-
185-
186-
187-
188-
189-
190-
0 commit comments