Debian Codegraph @

ansible_collections/community/routeros/plugins/doc_fragments/attributes.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) Ansible Project
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5 # SPDX-License-Identifier: GPL-3.0-or-later
6
7 from __future__ import (absolute_import, division, print_function)
8 __metaclass__ = type
9
10
11 class ModuleDocFragment(object):
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 platform:
22 description: Target OS/families that can be operated against.
23 support: N/A
24 idempotent:
25 description:
26 - When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change.
27 - This assumes that the system controlled/queried by the module has not changed in a relevant way.
28 """
29
30 # Should be used together with the standard fragment
31 IDEMPOTENT_NOT_MODIFY_STATE = r"""
32 options: {}
33 attributes:
34 idempotent:
35 support: full
36 details:
37 - This action does not modify state.
38 """
39
40 # Should be used together with the standard fragment
41 INFO_MODULE = r'''
42 options: {}
43 attributes:
44 check_mode:
45 support: full
46 details:
47 - This action does not modify state.
48 diff_mode:
49 support: N/A
50 details:
51 - This action does not modify state.
52 '''
53
54 ACTIONGROUP_API = r'''
55 options: {}
56 attributes:
57 action_group:
58 description: Use C(group/community.routeros.api) in C(module_defaults) to set defaults for this module.
59 support: full
60 membership:
61 - community.routeros.api
62 '''
63
64 CONN = r"""
65 options: {}
66 attributes:
67 become:
68 description: Is usable alongside C(become) keywords.
69 connection:
70 description: Uses the target's configured connection information to execute code on it.
71 delegation:
72 description: Can be used in conjunction with C(delegate_to) and related keywords.
73 """
74
75 FACTS = r"""
76 options: {}
77 attributes:
78 facts:
79 description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
80 """
81
82 # Should be used together with the standard fragment and the FACTS fragment
83 FACTS_MODULE = r'''
84 options: {}
85 attributes:
86 check_mode:
87 support: full
88 details:
89 - This action does not modify state.
90 diff_mode:
91 support: N/A
92 details:
93 - This action does not modify state.
94 facts:
95 support: full
96 '''
97
98 FILES = r"""
99 options: {}
100 attributes:
101 safe_file_operations:
102 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
103 """
104
105 FLOW = r"""
106 options: {}
107 attributes:
108 action:
109 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
110 async:
111 description: Supports being used with the C(async) keyword.
112 """