/// <summary> /// Gets a deleted server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The name of the region where the resource is located. /// </param> /// <param name='deletedServerName'> /// The name of the deleted server. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DeletedServer> GetAsync(this IDeletedServersOperations operations, string locationName, string deletedServerName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(locationName, deletedServerName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of all deleted servers in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DeletedServer> > ListAsync(this IDeletedServersOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a deleted server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The name of the region where the resource is located. /// </param> /// <param name='deletedServerName'> /// The name of the deleted server. /// </param> public static DeletedServer Get(this IDeletedServersOperations operations, string locationName, string deletedServerName) { return(operations.GetAsync(locationName, deletedServerName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of all deleted servers in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <DeletedServer> List(this IDeletedServersOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of deleted servers for a location. /// </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 <DeletedServer> ListByLocationNext(this IDeletedServersOperations operations, string nextPageLink) { return(operations.ListByLocationNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of deleted servers for a location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The name of the region where the resource is located. /// </param> public static IPage <DeletedServer> ListByLocation(this IDeletedServersOperations operations, string locationName) { return(operations.ListByLocationAsync(locationName).GetAwaiter().GetResult()); }