Debian Codegraph @

ansible_collections/community/proxmox/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
6 class ModuleDocFragment:
7 # Standard documentation fragment
8 DOCUMENTATION = r"""
9 options: {}
10 attributes:
11 check_mode:
12 description: Can run in C(check_mode) and return changed status prediction without modifying target.
13 diff_mode:
14 description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
15 """
16
17 PLATFORM = r"""
18 options: {}
19 attributes:
20 platform:
21 description: Target OS/families that can be operated against.
22 support: N/A
23 """
24
25 # Should be used together with the standard fragment
26 INFO_MODULE = r"""
27 options: {}
28 attributes:
29 check_mode:
30 support: full
31 details:
32 - This action does not modify state.
33 diff_mode:
34 support: N/A
35 details:
36 - This action does not modify state.
37 """
38
39 CONN = r"""
40 options: {}
41 attributes:
42 become:
43 description: Is usable alongside C(become) keywords.
44 connection:
45 description: Uses the target's configured connection information to execute code on it.
46 delegation:
47 description: Can be used in conjunction with C(delegate_to) and related keywords.
48 """
49
50 FACTS = r"""
51 options: {}
52 attributes:
53 facts:
54 description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
55 """
56
57 # Should be used together with the standard fragment and the FACTS fragment
58 FACTS_MODULE = r"""
59 options: {}
60 attributes:
61 check_mode:
62 support: full
63 details:
64 - This action does not modify state.
65 diff_mode:
66 support: N/A
67 details:
68 - This action does not modify state.
69 facts:
70 support: full
71 """
72
73 FILES = r"""
74 options: {}
75 attributes:
76 safe_file_operations:
77 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
78 """
79
80 FLOW = r"""
81 options: {}
82 attributes:
83 action:
84 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
85 async:
86 description: Supports being used with the C(async) keyword.
87 """