def __init__(self, api_token, api_secret, ttl): super(_GehirnLexiconClient, self).__init__() self.provider = gehirn.Provider({ 'auth_token': api_token, 'auth_secret': api_secret, 'ttl': ttl, })
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)
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)