Debian Codegraph @

ansible_collections/community/dns/plugins/doc_fragments/_attributes.py

raw
1 # Copyright (c) Ansible Project
2 # GNU General Public License v3.0+ (see COPYING 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
13 # Standard documentation fragment
14 DOCUMENTATION = r"""
15 options: {}
16 attributes:
17 check_mode:
18 description: Can run in C(check_mode) and return changed status prediction without modifying target.
19 diff_mode:
20 description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
21 idempotent:
22 description:
23 - When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change.
24 - This assumes that the system controlled/queried by the module has not changed in a relevant way.
25 """
26
27 # Should be used together with the standard fragment
28 IDEMPOTENT_NOT_MODIFY_STATE = r"""
29 options: {}
30 attributes:
31 idempotent:
32 support: full
33 details:
34 - This action does not modify state.
35 """
36
37 # Should be used together with the standard fragment
38 INFO_MODULE = r"""
39 options: {}
40 attributes:
41 check_mode:
42 support: full
43 details:
44 - This action does not modify state.
45 diff_mode:
46 support: N/A
47 details:
48 - This action does not modify state.
49 """
50
51 ACTIONGROUP_HETZNER = r"""
52 options: {}
53 attributes:
54 action_group:
55 description: Use C(group/community.dns.hetzner) in C(module_defaults) to set defaults for this module.
56 support: full
57 membership:
58 - community.dns.hetzner
59 """
60
61 ACTIONGROUP_HOSTTECH = r"""
62 options: {}
63 attributes:
64 action_group:
65 description: Use C(group/community.dns.hosttech) in C(module_defaults) to set defaults for this module.
66 support: full
67 membership:
68 - community.dns.hosttech
69 """
70
71 CONN = r"""
72 options: {}
73 attributes:
74 become:
75 description: Is usable alongside C(become) keywords.
76 connection:
77 description: Uses the target's configured connection information to execute code on it.
78 delegation:
79 description: Can be used in conjunction with C(delegate_to) and related keywords.
80 """
81
82 FACTS = r"""
83 options: {}
84 attributes:
85 facts:
86 description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
87 """
88
89 # Should be used together with the standard fragment and the FACTS fragment
90 FACTS_MODULE = r"""
91 options: {}
92 attributes:
93 check_mode:
94 support: full
95 details:
96 - This action does not modify state.
97 diff_mode:
98 support: N/A
99 details:
100 - This action does not modify state.
101 facts:
102 support: full
103 """
104
105 FILES = r"""
106 options: {}
107 attributes:
108 safe_file_operations:
109 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
110 """
111
112 FLOW = r"""
113 options: {}
114 attributes:
115 action:
116 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
117 async:
118 description: Supports being used with the C(async) keyword.
119 """