def list_by_database_as_lazy(location_name, long_term_retention_server_name, long_term_retention_database_name, only_latest_per_database:nil, database_state:nil, custom_headers:nil)
      response = list_by_database_async(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).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_database_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_database_as_lazy(location_name, long_term_retention_server_name, long_term_retention_database_name, only_latest_per_database:nil, database_state:nil, custom_headers:nil)
      response = list_by_database_async(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).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_database_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    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 [LongTermRetentionBackupListResult] which provide lazy access to
 pages of the response.