Debian Codegraph @

ansible_collections/community/crypto/plugins/doc_fragments/_name_encoding.py

raw
1 # Copyright (c) 2022, Felix Fontein <[email protected]>
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class ModuleDocFragment:
12 DOCUMENTATION = r"""
13 options:
14 name_encoding:
15 description:
16 - How to encode names (DNS names, URIs, email addresses) in return values.
17 - V(ignore) will use the encoding returned by the backend.
18 - V(idna) will convert all labels of domain names to IDNA encoding. IDNA2008 will be preferred, and IDNA2003 will be
19 used if IDNA2008 encoding fails.
20 - V(unicode) will convert all labels of domain names to Unicode. IDNA2008 will be preferred, and IDNA2003 will be used
21 if IDNA2008 decoding fails.
22 - B(Note) that V(idna) and V(unicode) require the L(idna Python library,https://pypi.org/project/idna/) to be installed.
23 type: str
24 default: ignore
25 choices:
26 - ignore
27 - idna
28 - unicode
29 requirements:
30 - If O(name_encoding) is set to another value than V(ignore), the L(idna Python library,https://pypi.org/project/idna/)
31 needs to be installed.
32 """