# Copyright (c) 2021, Felix Fontein # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later from __future__ import annotations from ansible_collections.community.dns.plugins.module_utils._provider import ( ProviderInformation, ) class CustomProviderInformation(ProviderInformation): def __init__(self, txt_record_handling="decoded", txt_character_encoding="decimal"): super().__init__() self._txt_record_handling = txt_record_handling self._txt_character_encoding = txt_character_encoding def get_supported_record_types(self): return ["A"] def get_zone_id_type(self): return "str" # pragma: no cover def get_record_id_type(self): return "str" # pragma: no cover def get_record_default_ttl(self): return 300 # pragma: no cover def txt_record_handling(self): return self._txt_record_handling def txt_character_encoding(self): return self._txt_character_encoding class CustomProvideOptions: def __init__(self, option_dict): self._option_dict = option_dict def get_option(self, name): return self._option_dict.get(name)