/// <summary> /// Lists all long term retention backups for a database. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The location of the database /// </param> /// <param name='longTermRetentionServerName'> /// The name of the server /// </param> /// <param name='longTermRetentionDatabaseName'> /// The name of the database /// </param> /// <param name='onlyLatestPerDatabase'> /// Whether or not to only get the latest backup for each database. /// </param> /// <param name='databaseState'> /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <LongTermRetentionBackup> > ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool?onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }