def __init__(self, email, token, ttl): super(_LuaDNSLexiconClient, self).__init__() self.provider = luadns.Provider({ 'auth_username': email, 'auth_token': token, 'ttl': ttl, })
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)
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)