@@ -89,7 +89,9 @@ def get_email_activity_user_detail(self, period):
8989 The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
9090 Dn where n represents the number of days over which the report is aggregated. Required.
9191 """
92- qry = create_report_query (self , "getEmailActivityUserDetail" , period , return_stream = True )
92+ qry = create_report_query (
93+ self , "getEmailActivityUserDetail" , period , return_stream = True
94+ )
9395 self .context .add_query (qry )
9496 return qry .return_type
9597
@@ -105,18 +107,48 @@ def get_email_app_usage_apps_user_counts(self, period):
105107 self .context .add_query (qry )
106108 return qry .return_type
107109
110+ def get_email_app_usage_user_counts (self , period ):
111+ """
112+ Get the count of unique users that connected to Exchange Online using any email app.
113+
114+ :param str period: Specifies the length of time over which the report is aggregated.
115+ The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
116+ Dn where n represents the number of days over which the report is aggregated. Required.
117+ """
118+ qry = create_report_query (self , "getEmailAppUsageUserCounts" , period , True )
119+ self .context .add_query (qry )
120+ return qry .return_type
121+
122+ def get_mailbox_usage_storage (self , period ):
123+ """
124+ Get the amount of storage used in your organization.
125+
126+ :param str period: Specifies the length of time over which the report is aggregated.
127+ The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
128+ Dn where n represents the number of days over which the report is aggregated. Required.
129+ """
130+ qry = create_report_query (self , "getMailboxUsageStorage" , period , True )
131+ self .context .add_query (qry )
132+ return qry .return_type
133+
108134 def get_m365_app_user_counts (self , period = None ):
109135 """
110136 Get a report that provides the trend in the number of active users for each app (Outlook, Word, Excel,
111137 PowerPoint, OneNote, and Teams) in your organization.
112138 """
113- return_type = ClientResult (self .context , str ())
139+ return_type = ClientResult (self .context , bytes ())
114140 qry = FunctionQuery (
115141 self , "getM365AppUserCounts" , {"period" : period }, return_type
116142 )
117143 self .context .add_query (qry )
118144 return return_type
119145
146+ def get_office365_activation_counts (self ):
147+ """Get the count of Microsoft 365 activations on desktops and devices."""
148+ qry = create_report_query (self , "getOffice365ActivationCounts" )
149+ self .context .add_query (qry )
150+ return qry .return_type
151+
120152 def get_office365_activations_user_counts (self ):
121153 """Get the count of Microsoft 365 activations on desktops and devices."""
122154 qry = create_report_query (self , "getOffice365ActivationsUserCounts" )
@@ -283,6 +315,20 @@ def get_sharepoint_site_usage_site_counts(self, period):
283315 self .context .add_query (qry )
284316 return qry .return_type
285317
318+ def get_teams_team_counts (self , period ):
319+ """
320+ Get the number of teams of a particular type in an instance of Microsoft Teams.
321+
322+ :param str period: Specifies the length of time over which the report is aggregated.
323+ The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
324+ Dn where n represents the number of days over which the report is aggregated. Required.
325+ """
326+ qry = create_report_query (
327+ self , "getTeamsTeamCounts" , period , return_stream = True
328+ )
329+ self .context .add_query (qry )
330+ return qry .return_type
331+
286332 @property
287333 def authentication_methods (self ):
288334 """Container for navigation properties for Azure AD authentication methods resources."""
0 commit comments