def create(self):
input_params = {<EOL>"<STR_LIT:type>": self.type,<EOL>"<STR_LIT:data>": self.data,<EOL>"<STR_LIT:name>": self.name,<EOL>"<STR_LIT>": self.priority,<EOL>"<STR_LIT:port>": self.port,<EOL>"<STR_LIT>": self.ttl,<EOL>"<STR_LIT>": self.weight,<EOL>"<STR_LIT>": self.flags,<EOL>"<STR_LIT>": self.tags<EOL>}<EOL>data = self.get_data(<EOL>"<STR_LIT>" % (self.domain),<EOL>type=POST,<EOL>params=input_params,<EOL>)<EOL>if data:<EOL><INDENT>self.id = data['<STR_LIT>']['<STR_LIT:id>']<EOL><DEDENT>
Creates a new record for a domain.

Args:
    type (str): The type of the DNS record (e.g. A, CNAME, TXT).
    name (str): The host name, alias, or service being defined by the
        record.
    data (int): Variable data depending on record type.
    priority (int): The priority for SRV and MX records.
    port (int): The port for SRV records.
    ttl (int): The time to live for the record, in seconds.
    weight (int): The weight for SRV records.
    flags (int): An unsigned integer between 0-255 used for CAA records.
    tags (string): The parameter tag for CAA records. Valid values are
        "issue", "wildissue", or "iodef"