@@ -330,22 +330,46 @@ def get_ransomware_activities(self):
330
330
self .context .add_query (qry )
331
331
return return_type
332
332
333
- def get_sp_list_item_count (self , listName ):
333
+ def get_sp_list_item_count (self , list_name ):
334
334
# type: (str) -> ClientResult[int]
335
335
""" """
336
336
return_type = ClientResult (self .context )
337
- payload = {"listName" : listName }
337
+ payload = {"listName" : list_name }
338
338
qry = ServiceOperationQuery (
339
339
self , "GetSPListItemCount" , None , payload , None , return_type
340
340
)
341
341
self .context .add_query (qry )
342
342
return return_type
343
343
344
+ def get_sp_list_root_folder_properties (self , list_name ):
345
+ # type: (str) -> ClientResult[dict]
346
+ """ """
347
+ return_type = ClientResult (self .context )
348
+ payload = {"listName" : list_name }
349
+ qry = ServiceOperationQuery (
350
+ self , "GetSPListRootFolderProperties" , None , payload , None , return_type
351
+ )
352
+ self .context .add_query (qry )
353
+ return return_type
354
+
355
+ def get_spo_all_web_templates (self , culture_name = None , compatibility_level = None ):
356
+ # type: (str, int) -> SPOTenantWebTemplateCollection
357
+ """ """
358
+ return_type = SPOTenantWebTemplateCollection (self .context )
359
+ payload = {
360
+ "cultureName" : culture_name ,
361
+ "compatibilityLevel" : compatibility_level ,
362
+ }
363
+ qry = ServiceOperationQuery (
364
+ self , "GetSPOAllWebTemplates" , None , payload , None , return_type
365
+ )
366
+ self .context .add_query (qry )
367
+ return return_type
368
+
344
369
def check_tenant_intune_license (self ):
345
- """
346
- Checks whether a tenant has the Intune license.
347
- """
348
- return_type = ClientResult (self .context ) # type: ClientResult[bool]
370
+ # type: () -> ClientResult[bool]
371
+ """Checks whether a tenant has the Intune license."""
372
+ return_type = ClientResult (self .context )
349
373
qry = ServiceOperationQuery (
350
374
self , "CheckTenantIntuneLicense" , None , None , None , return_type
351
375
)
0 commit comments