code: def add_records(self, domain, records):
          
          if isinstance(records, dict):
              # Single record passed
              records = [records]
          dom_id = utils.get_id(domain)
          uri = "/domains/%s/records" % dom_id
          body = {"records": records}
          resp, resp_body = self._async_call(uri, method="POST", body=body,
                  error_class=exc.DomainRecordAdditionFailed, has_response=False)
          records = resp_body.get("response", {}).get("records", [])
          for record in records:
              record["domain_id"] = dom_id
          return [CloudDNSRecord(self, record, loaded=False)
                  for record in records if record]
docs: Adds the records to this domain. Each record should be a dict with the
          following keys:
              - type (required)
              - name (required)
              - data (required)
              - ttl (optional)
              - comment (optional)
              - priority (required for MX and SRV records; forbidden otherwise)