Example #1
0
 /// <summary>
 /// Gets a list of security events.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the managed database for which the security events are
 /// retrieved.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skiptoken'>
 /// An opaque token that identifies a starting point in the collection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SecurityEvent> > ListByDatabaseAsync(this IManagedDatabaseSecurityEventsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ODataQuery <SecurityEventsFilterParameters> odataQuery = default(ODataQuery <SecurityEventsFilterParameters>), string skiptoken = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, odataQuery, skiptoken, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Gets a list of security events.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SecurityEvent> > ListByDatabaseNextAsync(this IManagedDatabaseSecurityEventsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #3
0
 /// <summary>
 /// Gets a list of security events.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <SecurityEvent> ListByDatabaseNext(this IManagedDatabaseSecurityEventsOperations operations, string nextPageLink)
 {
     return(operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Example #4
0
 /// <summary>
 /// Gets a list of security events.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the managed database for which the security events are
 /// retrieved.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skiptoken'>
 /// An opaque token that identifies a starting point in the collection.
 /// </param>
 public static IPage <SecurityEvent> ListByDatabase(this IManagedDatabaseSecurityEventsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ODataQuery <SecurityEventsFilterParameters> odataQuery = default(ODataQuery <SecurityEventsFilterParameters>), string skiptoken = default(string))
 {
     return(operations.ListByDatabaseAsync(resourceGroupName, managedInstanceName, databaseName, odataQuery, skiptoken).GetAwaiter().GetResult());
 }