Debian Codegraph @

test/integration/targets/ansible-doc/library/test_docs_suboptions.py

raw
1 #!/usr/bin/python
2 from __future__ import annotations
3
4
5 DOCUMENTATION = """
6 ---
7 module: test_docs_suboptions
8 short_description: Test module
9 description:
10 - Test module
11 author:
12 - Ansible Core Team
13 options:
14 with_suboptions:
15 description:
16 - An option with suboptions.
17 - Use with care.
18 type: dict
19 suboptions:
20 z_last:
21 description: The last suboption.
22 type: str
23 m_middle:
24 description:
25 - The suboption in the middle.
26 - Has its own suboptions.
27 suboptions:
28 a_suboption:
29 description: A sub-suboption.
30 type: str
31 a_first:
32 description: The first suboption.
33 type: str
34 """
35
36 EXAMPLES = """
37 """
38
39 RETURN = """
40 """
41
42
43 from ansible.module_utils.basic import AnsibleModule
44
45
46 def main():
47 module = AnsibleModule(
48 argument_spec=dict(
49 test_docs_suboptions=dict(
50 type='dict',
51 options=dict(
52 a_first=dict(type='str'),
53 m_middle=dict(
54 type='dict',
55 options=dict(
56 a_suboption=dict(type='str')
57 ),
58 ),
59 z_last=dict(type='str'),
60 ),
61 ),
62 ),
63 )
64
65 module.exit_json()
66
67
68 if __name__ == '__main__':
69 main()