def list_by_database(location_name, long_term_retention_server_name, long_term_retention_database_name, only_latest_per_database:nil, database_state:nil, custom_headers:nil)
      first_page = list_by_database_as_lazy(location_name, long_term_retention_server_name, long_term_retention_database_name, only_latest_per_database:only_latest_per_database, database_state:database_state, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_database(location_name, long_term_retention_server_name, long_term_retention_database_name, only_latest_per_database:nil, database_state:nil, custom_headers:nil)
      first_page = list_by_database_as_lazy(location_name, long_term_retention_server_name, long_term_retention_database_name, only_latest_per_database:only_latest_per_database, database_state:database_state, custom_headers:custom_headers)
      first_page.get_all_items
    end
Lists all long term retention backups for a database.

 @param location_name [String] The location of the database
 @param long_term_retention_server_name [String] The name of the server
 @param long_term_retention_database_name [String] The name of the database
 @param only_latest_per_database [Boolean] Whether or not to only get the
 latest backup for each database.
 @param database_state [LongTermRetentionDatabaseState] Whether to query
 against just live databases, just deleted databases, or all databases.
 Possible values include: 'All', 'Live', 'Deleted'
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Array<LongTermRetentionBackup>] operation results.