1818from office365 .sharepoint .likes .liked_by_information import LikedByInformation
1919from office365 .sharepoint .listitems .compliance_info import ListItemComplianceInfo
2020from office365 .sharepoint .listitems .form_update_value import ListItemFormUpdateValue
21+ from office365 .sharepoint .listitems .update_parameters import ListItemUpdateParameters
2122from office365 .sharepoint .listitems .versions .collection import ListItemVersionCollection
2223from office365 .sharepoint .permissions .securable_object import SecurableObject
2324from office365 .sharepoint .policy .dlp_policy_tip import DlpPolicyTip
@@ -311,6 +312,21 @@ def update(self):
311312 super (ListItem , self ).update ()
312313 return self
313314
315+ def update_ex (self , bypass_quota_check = None , bypass_shared_lock = None ):
316+ """
317+
318+ :param bool bypass_quota_check:
319+ :param bool bypass_shared_lock:
320+ """
321+ payload = {
322+ "parameters" : ListItemUpdateParameters (
323+ bypass_quota_check , bypass_shared_lock
324+ )
325+ }
326+ qry = ServiceOperationQuery (self , "UpdateEx" , None , payload )
327+ self .context .add_query (qry )
328+ return self
329+
314330 def system_update (self ):
315331 """Update the list item."""
316332
@@ -349,7 +365,6 @@ def _list_loaded():
349365 self .context .add_query (next_qry )
350366
351367 self .parent_list .ensure_properties (["BaseTemplate" ], _list_loaded )
352- # self.ensure_properties(sys_metadata, _system_update)
353368 return self
354369
355370 def update_overwrite_version (self ):
@@ -368,6 +383,17 @@ def set_comments_disabled(self, value):
368383 self .context .add_query (qry )
369384 return self
370385
386+ def set_compliance_tag_with_hold (self , compliance_tag ):
387+ """
388+ Sets a compliance tag with a hold
389+
390+ :param str compliance_tag: The applying label (tag) to the list item
391+ """
392+ payload = {"complianceTag" : compliance_tag }
393+ qry = ServiceOperationQuery (self , "SetComplianceTagWithHold" , None , payload )
394+ self .context .add_query (qry )
395+ return self
396+
371397 def get_comments (self ):
372398 """Retrieve ListItem comments"""
373399 return_type = CommentCollection (self .context )
0 commit comments