f dZddlZddlZGddejj ZejejhZ GddejjZ de defd Zd ede fd Zd edefd Zej$Zej&Zej(Zej*Zej,Zej.Zej0ZejZejZy)zDNS Rdata Classes.NcteZdZdZdZdZeZdZeZdZ e Z dZ dZ e dZe d Ze d Ze d Zy ) RdataClasszDNS Rdata Classrcy)Niclss W/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/dns/rdataclass.py_maximumzRdataClass._maximum%scy)Nclassr r s r _short_namezRdataClass._short_name)rcy)NCLASSr r s r_prefixzRdataClass._prefix-rrctS)N)UnknownRdataclassr s r_unknown_exception_classz#RdataClass._unknown_exception_class1s  rN)__name__ __module__ __qualname____doc__ RESERVED0ININTERNETCHCHAOSHSHESIODNONEANY classmethodrrrrr rrrrsI BH B E B F D C!!rrceZdZdZy)rzA DNS class is unknown.N)rrrrr rrrr9s!rrtextreturnc,tj|S)aConvert text into a DNS rdata class value. The input text can be a defined DNS RR class mnemonic or instance of the DNS generic class syntax. For example, "IN" and "CLASS1" will both result in a value of 1. Raises ``dns.rdatatype.UnknownRdataclass`` if the class is unknown. Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535. Returns a ``dns.rdataclass.RdataClass``. )r from_text)r*s rr-r-=s    %%rvaluec,tj|S)aConvert a DNS rdata class value to text. If the value has a known mnemonic, it will be used, otherwise the DNS generic class syntax will be used. Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535. Returns a ``str``. )rto_text)r.s rr0r0Os   e $$rrdclassc|tvryy)zTrue if the specified class is a metaclass. The currently defined metaclasses are ANY and NONE. *rdclass* is a ``dns.rdataclass.RdataClass``. TF) _metaclasses)r1s r is_metaclassr4]s, r)rdns.enumdns dns.exceptionenumIntEnumrr&r'r3 exception DNSExceptionrstrr-r0boolr4rr r!r"r#r$r%r rrr>s$!!!!<0 " 22"&C&J&$ %: %# % *    ]]   ]]]]   nnr