Esempio n. 1
0
 /// <summary>
 /// Retrieve the Query-Store query texts for the queryId.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='queryId'>
 /// The Query-Store query identifier.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <QueryText> GetAsync(this IQueryTextsOperations operations, string resourceGroupName, string serverName, string queryId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, queryId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Retrieve the Query-Store query texts for specified queryIds.
 /// </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 <QueryText> > ListByServerNextAsync(this IQueryTextsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Retrieve the Query-Store query texts for specified queryIds.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='queryIds'>
 /// The query identifiers
 /// </param>
 public static IPage <QueryText> ListByServer(this IQueryTextsOperations operations, string resourceGroupName, string serverName, IList <string> queryIds)
 {
     return(operations.ListByServerAsync(resourceGroupName, serverName, queryIds).GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// Retrieve the Query-Store query texts for the queryId.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='queryId'>
 /// The Query-Store query identifier.
 /// </param>
 public static QueryText Get(this IQueryTextsOperations operations, string resourceGroupName, string serverName, string queryId)
 {
     return(operations.GetAsync(resourceGroupName, serverName, queryId).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Retrieve the Query-Store query texts for specified queryIds.
 /// </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 <QueryText> ListByServerNext(this IQueryTextsOperations operations, string nextPageLink)
 {
     return(operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult());
 }