1414
1515from box_sdk_gen .schemas .client_error import ClientError
1616
17+ from box_sdk_gen .schemas .collaborations_offset_paginated import (
18+ CollaborationsOffsetPaginated ,
19+ )
20+
1721from box_sdk_gen .networking .auth import Authentication
1822
1923from box_sdk_gen .networking .network import NetworkSession
@@ -132,6 +136,8 @@ def get_folder_collaborations(
132136 folder_id : str ,
133137 * ,
134138 fields : Optional [List [str ]] = None ,
139+ limit : Optional [int ] = None ,
140+ marker : Optional [str ] = None ,
135141 extra_headers : Optional [Dict [str , Optional [str ]]] = None
136142 ) -> Collaborations :
137143 """
@@ -161,12 +167,25 @@ def get_folder_collaborations(
161167 fields for the mini representation are returned, additional
162168 to the fields requested., defaults to None
163169 :type fields: Optional[List[str]], optional
170+ :param limit: The maximum number of items to return per page., defaults to None
171+ :type limit: Optional[int], optional
172+ :param marker: Defines the position marker at which to begin returning results. This is
173+ used when paginating using marker-based pagination.
174+
175+ This requires `usemarker` to be set to `true`., defaults to None
176+ :type marker: Optional[str], optional
164177 :param extra_headers: Extra headers that will be included in the HTTP request., defaults to None
165178 :type extra_headers: Optional[Dict[str, Optional[str]]], optional
166179 """
167180 if extra_headers is None :
168181 extra_headers = {}
169- query_params_map : Dict [str , str ] = prepare_params ({'fields' : to_string (fields )})
182+ query_params_map : Dict [str , str ] = prepare_params (
183+ {
184+ 'fields' : to_string (fields ),
185+ 'limit' : to_string (limit ),
186+ 'marker' : to_string (marker ),
187+ }
188+ )
170189 headers_map : Dict [str , str ] = prepare_params ({** extra_headers })
171190 response : FetchResponse = fetch (
172191 FetchOptions (
@@ -196,7 +215,7 @@ def get_collaborations(
196215 offset : Optional [int ] = None ,
197216 limit : Optional [int ] = None ,
198217 extra_headers : Optional [Dict [str , Optional [str ]]] = None
199- ) -> Collaborations :
218+ ) -> CollaborationsOffsetPaginated :
200219 """
201220 Retrieves all pending collaboration invites for this user.
202221 :param status: The status of the collaborations to retrieve
@@ -246,7 +265,7 @@ def get_collaborations(
246265 network_session = self .network_session ,
247266 )
248267 )
249- return deserialize (response .data , Collaborations )
268+ return deserialize (response .data , CollaborationsOffsetPaginated )
250269
251270 def get_group_collaborations (
252271 self ,
@@ -255,7 +274,7 @@ def get_group_collaborations(
255274 limit : Optional [int ] = None ,
256275 offset : Optional [int ] = None ,
257276 extra_headers : Optional [Dict [str , Optional [str ]]] = None
258- ) -> Collaborations :
277+ ) -> CollaborationsOffsetPaginated :
259278 """
260279 Retrieves all the collaborations for a group. The user
261280
@@ -305,4 +324,4 @@ def get_group_collaborations(
305324 network_session = self .network_session ,
306325 )
307326 )
308- return deserialize (response .data , Collaborations )
327+ return deserialize (response .data , CollaborationsOffsetPaginated )
0 commit comments