':param id: Redirect id.
:type id: ``str``
:param name: The FQDN for the record.
:type name: ``str``
:param data: The data field. (redirect_to)
:type data: ``str``
:param type: The type of redirects 301, 302 or 0 for iframes.
:type type: ``str``
:param driver: DNSDriver instance.
:type driver: :class:`DNSDriver`
:param zone: Zone where redirect belongs.
:type  zone: :class:`Zone`
:param iframe: Title of iframe (optional).
:type iframe: ``str``
:param query: boolean Information about including query string when
redirecting. (optional).
:type query: ``bool``'

def __init__(self, id, name, data, type, driver, zone, iframe=None, query=False):

    self.id = (str(id) if id else None)
    self.name = name
    self.data = data
    self.type = (str(type) if type else None)
    self.driver = driver
    self.zone = zone
    self.iframe = iframe
    self.query = query
