Exemple #1
0
 /// <summary>
 /// Marks alerts as read and returns the remaining number of unread
 /// notifications.
 /// </summary>
 /// <remarks>
 /// Required permissions: Alerts.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='markAsReadParameters'>
 /// Collection containing the unique identifiers of the notifications that will
 /// be marked as read
 /// </param>
 public static ODataResponseInt64 MarkAsRead(this IAlerts operations, MarkAsReadParameters markAsReadParameters)
 {
     return(operations.MarkAsReadAsync(markAsReadParameters).GetAwaiter().GetResult());
 }
Exemple #2
0
 /// <summary>
 /// Marks alerts as read and returns the remaining number of unread
 /// notifications.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Monitoring or
 /// Monitoring.Write.
 ///
 /// Required permissions: Alerts.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Collection containing the unique identifiers of the notifications that will
 /// be marked as read
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 public static ODataValueOfInt64 MarkAsRead(this IAlerts operations, AlertsMarkAsReadParameters body = default(AlertsMarkAsReadParameters), string expand = default(string), string select = default(string))
 {
     return(operations.MarkAsReadAsync(body, expand, select).GetAwaiter().GetResult());
 }