Module Import alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListComp TupleLoad Str NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad BinOpAdd ListLoad TupleLoad Str Num TupleLoad Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str Str For NameStore NameLoad body If CompareIn SubscriptLoad NameLoad Index Str Set Str Str Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr SubscriptLoad NameLoad Index Str BoolOpAnd CompareIn SubscriptLoad NameLoad Index Str NameLoad CompareEq SubscriptLoad NameLoad Index Str Str AttributeLoad NameLoad attr Return Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str IfExp BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr Num body Return Dict Str ListLoad Call NameLoad Str orelse If CompareNotEq AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad ListLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Dict Str ListLoad Call NameLoad Str Assign NameStore Dict Str Str Str Str Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str IfExp BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr Num body Return Dict Str ListLoad Call NameLoad Str orelse If CompareNotEq AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Return Dict Str ListLoad Call NameLoad Str orelse If CompareNotEq AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A logging urllib.parse urlencode urljoin N/A requests django.conf settings django.utils.translation ugettext_lazy _ ralph.dns.forms RecordType ralph.helpers cache N/A logger N/A N/A logging getLogger __name__ DNSaaS N/A N/A __init__ N/A N/A self headers N/A None N/A N/A N/A self session N/A N/A requests Session N/A _headers N/A Authorization N/A N/A Token {} format N/A settings DNSAAS_TOKEN N/A N/A headers None N/A N/A N/A N/A _headers update headers N/A N/A N/A N/A N/A self session headers update _headers N/A get_api_result N/A N/A self url N/A N/A N/A 
        Returns 'results' from DNSAAS API.

        Args:
            url: Url to API

        Returns:
            list of records
         N/A request N/A N/A N/A self session get url N/A json_data N/A N/A request json N/A api_results N/A N/A json_data get results N/A N/A N/A N/A json_data get next None N/A N/A _api_results N/A N/A self get_api_result N/A json_data N/A next N/A N/A N/A api_results extend _api_results N/A api_results N/A get_dns_records N/A N/A self ipaddresses N/A N/A N/A Gets DNS Records for `ipaddresses` by API call N/A dns_records N/A N/A ipaddresses N/A N/A ip i N/A i ipaddresses N/A url N/A urljoin N/A settings DNSAAS_URL N/A N/A api/records/?{} format N/A urlencode N/A N/A N/A limit 100 N/A offset 0 ipaddresses N/A api_results N/A N/A self get_api_result url N/A ptrs N/A set N/A N/A i N/A content N/A i api_results N/A N/A i N/A type PTR N/A item api_results N/A N/A N/A N/A item N/A type N/A A CNAME TXT N/A N/A N/A N/A dns_records append N/A pk name type content ptr owner N/A item N/A id N/A item N/A name N/A N/A N/A RecordType from_name N/A N/A N/A item N/A type lower id N/A item N/A content N/A N/A N/A item N/A name ptrs N/A N/A item N/A type A N/A settings DNSAAS_OWNER N/A N/A sorted dns_records key N/A N/A N/A x N/A N/A x N/A type N/A update_dns_record N/A N/A self record N/A N/A N/A 
        Update DNS Record in DNSAAS

        Args:
            record: record cleaned data

        Returns:
            Validation error from API or None if update correct
         N/A url N/A urljoin N/A settings DNSAAS_URL N/A N/A api/records/{}/ format N/A record N/A pk N/A data N/A name type content auto_ptr owner N/A record N/A name N/A N/A RecordType raw_from_id N/A int N/A record N/A type N/A record N/A content N/A N/A N/A record N/A ptr N/A N/A record N/A type N/A str N/A N/A RecordType a id N/A settings DNSAAS_AUTO_PTR_ALWAYS N/A settings DNSAAS_AUTO_PTR_NEVER N/A settings DNSAAS_OWNER N/A request N/A N/A N/A self session patch url data data N/A N/A N/A request status_code 500 N/A N/A N/A non_field_errors N/A N/A _ Internal Server Error from DNSAAS N/A N/A N/A N/A request status_code 200 N/A N/A N/A N/A request json N/A get_domain N/A N/A self domain_name N/A N/A N/A 
        Return domain URL base on record name.

        Args:
            domain_name: Domain name

        Return:
            Domain URL from API or False if not exists
         N/A url N/A urljoin N/A settings DNSAAS_URL N/A N/A api/domains/? format N/A urlencode N/A N/A name domain_name N/A result N/A N/A self get_api_result url N/A result N/A N/A N/A N/A result N/A 0 N/A url N/A N/A cache skip_first True create_dns_record N/A N/A self record N/A N/A N/A 
        Create new DNS record.

        Args:
            records: Record cleaned data

        Returns:
            Validation error from API or None if create correct
         N/A url N/A urljoin N/A settings DNSAAS_URL api/records/ N/A domain_name N/A N/A N/A record N/A name split . 1 N/A domain N/A N/A self get_domain N/A domain_name N/A -1 N/A N/A domain N/A N/A N/A N/A logger error N/A N/A Domain not found for record {} format record N/A N/A name N/A N/A _ Domain not found. N/A data N/A name type content auto_ptr domain owner N/A record N/A name N/A N/A RecordType raw_from_id N/A int N/A record N/A type N/A record N/A content N/A N/A N/A record N/A ptr N/A N/A record N/A type N/A N/A RecordType a id N/A settings DNSAAS_AUTO_PTR_ALWAYS N/A settings DNSAAS_AUTO_PTR_NEVER domain N/A settings DNSAAS_OWNER N/A request N/A N/A N/A self session post url data data N/A N/A N/A request status_code 500 N/A N/A N/A non_field_errors N/A N/A _ Internal Server Error from DNSAAS N/A N/A N/A N/A request status_code 201 N/A N/A N/A N/A request json N/A delete_dns_record N/A N/A self record_id N/A N/A N/A 
        Delete record in DNSAAS

        Args:
            record_ids: ID's to delete

        Returns:
            Validation error from API or None if delete correct
         N/A url N/A urljoin N/A settings DNSAAS_URL N/A N/A api/records/{}/ format record_id N/A request N/A N/A N/A self session delete url N/A N/A N/A request status_code 500 N/A N/A N/A non_field_errors N/A N/A _ Internal Server Error from DNSAAS N/A N/A N/A N/A request status_code 204 N/A N/A N/A N/A request json N/A N/A