def __init__(self, customer_id, api_key, api_password):
     super(_NetcupLexiconClient, self).__init__()
     config = dns_common_lexicon.build_lexicon_config('netcup', {}, {
         'auth_customer_id':   customer_id,
         'auth_api_key':       api_key,
         'auth_api_password':  api_password,
     })
     self.provider = netcup.Provider(config)
Exemple #2
0
    def __init__(self, api_key):
        super(_LinodeLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('linode', {}, {
            'auth_token': api_key,
        })

        self.provider = linode.Provider(config)
    def __init__(self, api_key):
        super(_LinodeLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('linode', {}, {
            'auth_token': api_key,
        })

        self.provider = linode.Provider(config)
Exemple #4
0
    def __init__(self, api_key):
        super(_DreamhostLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'dreamhost', {}, {
                'auth_token': api_key,
            })

        self.provider = dreamhost.Provider(config)
    def __init__(self, token, ttl):
        super(_DNSimpleLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('dnssimple', {
            'ttl': ttl,
        }, {
            'auth_token': token,
        })

        self.provider = dnsimple.Provider(config)
Exemple #6
0
    def __init__(self, token, ttl):
        super(_CheckDomainLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('checkdomain', {
            'ttl': ttl,
        }, {
            'auth_token': token,
        })

        self.provider = Provider(config)
Exemple #7
0
    def __init__(self, token, ttl):
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('dnssimple', {
            'ttl': ttl,
        }, {
            'auth_token': token,
        })

        self.provider = dnsimple.Provider(config)
Exemple #8
0
    def __init__(self, api_key, ttl):
        super(_NS1LexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('nsone', {
            'ttl': ttl,
        }, {
            'auth_token': api_key,
        })

        self.provider = nsone.Provider(config)
Exemple #9
0
    def __init__(self, token, ttl):
        super(_UkrainecomuaLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('ukrainecomua', {
            'ttl': ttl,
        }, {
            'auth_token': token,
        })

        self.provider = ukrainecomua.Provider(config)
Exemple #10
0
    def __init__(self, api_key: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('nsone', {
            'ttl': ttl,
        }, {
            'auth_token': api_key,
        })

        self.provider = nsone.Provider(config)
    def __init__(self, email, token, ttl):
        super(_LuaDNSLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('luadns', {
            'ttl': ttl,
        }, {
            'auth_username': email,
            'auth_token': token,
        })

        self.provider = luadns.Provider(config)
Exemple #12
0
    def __init__(self, api_key, secret_key, ttl):
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('cloudxns', {
            'ttl': ttl,
        }, {
            'auth_username': api_key,
            'auth_token': secret_key,
        })

        self.provider = cloudxns.Provider(config)
Exemple #13
0
    def __init__(self, api_key, api_version):
        super(_LinodeLexiconClient, self).__init__()

        self.api_version = api_version

        if api_version == 3:
            config = dns_common_lexicon.build_lexicon_config('linode', {}, {
                'auth_token': api_key,
            })

            self.provider = linode.Provider(config)
        elif api_version == 4:
            config = dns_common_lexicon.build_lexicon_config('linode4', {}, {
                'auth_token': api_key,
            })

            self.provider = linode4.Provider(config)
        else:
            raise errors.PluginError('Invalid api version specified: {0}. (Supported: 3, 4)'
                                     .format(api_version))
    def __init__(self, api_token, ttl):
        super(_NjallaLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'njalla', {
                'ttl': ttl,
            }, {
                'auth_token': api_token,
            })

        self.provider = njalla.Provider(config)
Exemple #15
0
    def __init__(self, api_token, api_secret, ttl):
        super(_GehirnLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('gehirn', {
            'ttl': ttl,
        }, {
            'auth_token': api_token,
            'auth_secret': api_secret,
        })

        self.provider = gehirn.Provider(config)
Exemple #16
0
    def __init__(self, api_key: str, api_version: int) -> None:
        super().__init__()

        self.api_version = api_version

        if api_version == 3:
            config = dns_common_lexicon.build_lexicon_config('linode', {}, {
                'auth_token': api_key,
            })

            self.provider = linode.Provider(config)
        elif api_version == 4:
            config = dns_common_lexicon.build_lexicon_config('linode4', {}, {
                'auth_token': api_key,
            })

            self.provider = linode4.Provider(config)
        else:
            raise errors.PluginError('Invalid api version specified: {0}. (Supported: 3, 4)'
                                     .format(api_version))
    def __init__(self, api_key, secret_key, ttl):
        super(_DNSMadeEasyLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('dnsmadeeasy', {
            'ttl': ttl,
        }, {
            'auth_username': api_key,
            'auth_token': secret_key,
        })

        self.provider = dnsmadeeasy.Provider(config)
    def __init__(self, token, ttl):
        super(_NamesiloLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'namesilo', {
                'ttl': ttl,
            }, {
                'auth_token': token,
            })

        self.provider = namesilo.Provider(config)
Exemple #19
0
    def __init__(self, api_key: str, secret_key: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('dnsmadeeasy', {
            'ttl': ttl,
        }, {
            'auth_username': api_key,
            'auth_token': secret_key,
        })

        self.provider = dnsmadeeasy.Provider(config)
Exemple #20
0
    def __init__(self, token, ttl):
        super(_FreeDNSLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'dnssimple', {
                'ttl': ttl,
            }, {
                'auth_token': token,
            })

        self.provider = freedns.Provider(config)
    def __init__(self, api_url, api_key, ttl):
        super(_PowerDNSLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('powerdns', {
            'ttl': ttl,
        }, {
            'auth_token': api_key,
            'pdns_server': api_url,
        })

        self.provider = powerdns.Provider(config)
Exemple #22
0
    def __init__(self, api_token, api_secret, ttl):
        super(_GehirnLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('gehirn', {
            'ttl': ttl,
        }, {
            'auth_token': api_token,
            'auth_secret': api_secret,
        })

        self.provider = gehirn.Provider(config)
Exemple #23
0
    def __init__(self, api_token, api_secret, ttl):
        super(_SakuraCloudLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('sakuracloud', {
            'ttl': ttl,
        }, {
            'auth_token': api_token,
            'auth_secret': api_secret,
        })

        self.provider = sakuracloud.Provider(config)
Exemple #24
0
    def __init__(self, api_key, secret_key, ttl):
        super(_DNSMadeEasyLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('dnsmadeeasy', {
            'ttl': ttl,
        }, {
            'auth_username': api_key,
            'auth_token': secret_key,
        })

        self.provider = dnsmadeeasy.Provider(config)
Exemple #25
0
    def __init__(self, email: str, token: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('luadns', {
            'ttl': ttl,
        }, {
            'auth_username': email,
            'auth_token': token,
        })

        self.provider = luadns.Provider(config)
Exemple #26
0
    def __init__(self, api_token: str, api_secret: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'gehirn', {
                'ttl': ttl,
            }, {
                'auth_token': api_token,
                'auth_secret': api_secret,
            })

        self.provider = gehirn.Provider(config)
Exemple #27
0
    def __init__(self, email, token, ttl):
        super(_LuaDNSLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'luadns', {
                'ttl': ttl,
            }, {
                'auth_username': email,
                'auth_token': token,
            })

        self.provider = luadns.Provider(config)
Exemple #28
0
    def __init__(self, endpoint, application_key, application_secret, consumer_key, ttl):
        super(_OVHLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('ovh', {
            'ttl': ttl,
        }, {
            'auth_entrypoint': endpoint,
            'auth_application_key': application_key,
            'auth_application_secret': application_secret,
            'auth_consumer_key': consumer_key,
        })

        self.provider = ovh.Provider(config)
Exemple #29
0
    def __init__(self, endpoint, application_key, application_secret, consumer_key, ttl):
        super(_OVHLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('ovh', {
            'ttl': ttl,
        }, {
            'auth_entrypoint': endpoint,
            'auth_application_key': application_key,
            'auth_application_secret': application_secret,
            'auth_consumer_key': consumer_key,
        })

        self.provider = ovh.Provider(config)
Exemple #30
0
    def __init__(self, login, password, ttl):
        super(_CoreNetworksLexiconClient, self).__init__()
        #        l = open('corenetworks.log', 'a')
        #        l.write("_CoreNetworksLexiconClient instantiated with login {0} and password {1}".format(login, password))
        #        l.close()
        config = dns_common_lexicon.build_lexicon_config(
            'corenetworks', {
                'ttl': ttl,
            }, {
                'auth_username': login,
                'auth_password': password
            })

        self.provider = corenetworks.Provider(config)
Exemple #31
0
    def __init__(self, endpoint: str, application_key: str, application_secret: str,
                 consumer_key: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('ovh', {
            'ttl': ttl,
        }, {
            'auth_entrypoint': endpoint,
            'auth_application_key': application_key,
            'auth_application_secret': application_secret,
            'auth_consumer_key': consumer_key,
        })

        self.provider = ovh.Provider(config)
    def __init__(self, auth_token, ttl):
        super(_SafeDNSLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('safedns', {'ttl': ttl}, {'auth_token': auth_token})

        self.provider = safedns.Provider(config)
Exemple #33
0
 def __init__(self, api_key):
     super(_Rcode0LexiconClient, self).__init__()
     config = dns_common_lexicon.build_lexicon_config(
         'rcode0', {}, {'auth_token': api_key})
     self.provider = rcodezero.Provider(config)