/// <summary> /// Lists the records for a zone. /// </summary> /// <param name="accountId">The account ID</param> /// <param name="zoneId">The zone name</param> /// <param name="options">Options passed to the list (sorting, /// filtering, pagination)</param> /// <returns>A <c>ZoneRecordsResponse</c> containing a list of zone /// records for the zone.</returns> /// <see cref="ZoneRecordsListOptions"/> /// <see>https://developer.dnsimple.com/v2/zones/records/#listZoneRecords</see> public PaginatedResponse <ZoneRecord> ListZoneRecords(long accountId, string zoneId, ZoneRecordsListOptions options = null) { var builder = BuildRequestForPath(ZoneRecordsPath(accountId, zoneId)); AddListOptionsToRequest(options, ref builder); return(new PaginatedResponse <ZoneRecord>(Execute(builder.Request))); }