/// <summary> /// Lists the long term retention backups for a given location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// The location 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> public static IPage <LongTermRetentionBackup> ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool?onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return(operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult()); }