Debian Codegraph @

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

raw
1 # Copyright (c) 2017-2020 Felix Fontein
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
13 # Standard files documentation fragment
14 DOCUMENTATION = r"""
15 requirements:
16 - lxml
17
18 options:
19 hosttech_username:
20 description:
21 - The username for the Hosttech API user.
22 - If provided, O(hosttech_password) must also be provided.
23 - Mutually exclusive with O(hosttech_token).
24 type: str
25 hosttech_password:
26 description:
27 - The password for the Hosttech API user.
28 - If provided, O(hosttech_username) must also be provided.
29 - Mutually exclusive with O(hosttech_token).
30 type: str
31 hosttech_token:
32 description:
33 - The password for the Hosttech API user.
34 - Mutually exclusive with O(hosttech_username) and O(hosttech_password).
35 - Since community.dns 1.2.0, the alias O(ignore:api_token) can be used.
36 aliases:
37 - api_token
38 type: str
39 version_added: 0.2.0
40 """
41
42 # NOTE: This document fragment augments the above standard DOCUMENTATION document fragment
43 # by providing alternative ways to provide configuration for plugins. (The above
44 # documentation fragment is tailored for modules.)
45 PLUGIN = r"""
46 options:
47 hosttech_username:
48 env:
49 - name: ANSIBLE_HOSTTECH_API_USERNAME
50 version_added: 2.5.0
51 hosttech_password:
52 env:
53 - name: ANSIBLE_HOSTTECH_API_PASSWORD
54 version_added: 2.5.0
55 hosttech_token:
56 env:
57 - name: ANSIBLE_HOSTTECH_DNS_TOKEN
58 version_added: 2.5.0
59 """
60
61 # NOTE: This document fragment adds additional information on records.
62 RECORD_NOTES = r"""
63 options: {}
64 """
65
66 RECORD_TYPE_SEEALSO = r"""
67 options: {}
68 seealso:
69 - ref: ansible_collections.community.dns.docsite.hosttech_guide.records
70 description: More information on supported DNS record types.
71 """
72
73 # WARNING: This section is automatically generated by update-docs-fragments.py.
74 # It is used to augment the docs fragments module_record, module_record_set.
75 # DO NOT EDIT MANUALLY!
76 RECORD_DEFAULT_TTL = r"""
77 options:
78 ttl:
79 default: 3600
80 """
81
82 # WARNING: This section is automatically generated by update-docs-fragments.py.
83 # It is used to augment the docs fragments module_record, module_record_info,
84 # module_record_set, module_record_set_info.
85 # DO NOT EDIT MANUALLY!
86 RECORD_TYPE_CHOICES = r"""
87 options:
88 type:
89 choices:
90 - A
91 - AAAA
92 - CAA
93 - CNAME
94 - MX
95 - NS
96 - PTR
97 - SPF
98 - SRV
99 - TXT
100 """
101
102 # WARNING: This section is automatically generated by update-docs-fragments.py.
103 # It is used to augment the docs fragment module_record_sets.
104 # DO NOT EDIT MANUALLY!
105 RECORD_TYPE_CHOICES_RECORD_SETS_MODULE = r"""
106 options:
107 record_sets:
108 suboptions:
109 record:
110 description:
111 - The full DNS record to create or delete.
112 - Exactly one of O(record_sets[].record) and O(record_sets[].prefix) must
113 be specified.
114 type: str
115 prefix:
116 description:
117 - The prefix of the DNS record.
118 - This is the part of O(record_sets[].record) before O(zone_name). For example,
119 if the record to be modified is C(www.example.com) for the zone C(example.com),
120 the prefix is V(www). If the record in this example would be C(example.com),
121 the prefix would be V('') (empty string).
122 - Exactly one of O(record_sets[].record) and O(record_sets[].prefix) must
123 be specified.
124 type: str
125 ttl:
126 description:
127 - The TTL to give the new record, in seconds.
128 type: int
129 default: 3600
130 type:
131 description:
132 - The type of DNS record to create or delete.
133 required: true
134 type: str
135 choices:
136 - A
137 - AAAA
138 - CAA
139 - CNAME
140 - MX
141 - NS
142 - PTR
143 - SPF
144 - SRV
145 - TXT
146 value:
147 description:
148 - The new value when creating a DNS record.
149 - YAML lists or multiple comma-spaced values are allowed.
150 - When deleting a record all values for the record must be specified or
151 it will not be deleted.
152 - Must be specified if O(record_sets[].ignore=false).
153 type: list
154 elements: str
155 ignore:
156 description:
157 - If set to V(true), O(record_sets[].value) will be ignored.
158 - This is useful when O(prune=true), but you do not want certain entries
159 to be removed without having to know their current value.
160 type: bool
161 default: false
162 """
163
164 # WARNING: This section is automatically generated by update-docs-fragments.py.
165 # It is used to augment the docs fragment inventory_records.
166 # DO NOT EDIT MANUALLY!
167 RECORD_TYPE_CHOICES_RECORDS_INVENTORY = r"""
168 options:
169 simple_filters:
170 suboptions:
171 type:
172 description:
173 - Record types whose values to use.
174 type: list
175 elements: string
176 default:
177 - A
178 - AAAA
179 - CNAME
180 choices:
181 - A
182 - AAAA
183 - CAA
184 - CNAME
185 - MX
186 - NS
187 - PTR
188 - SPF
189 - SRV
190 - TXT
191 """
192
193 # WARNING: This section is automatically generated by update-docs-fragments.py.
194 # It is used to augment the docs fragments inventory_records, module_record,
195 # module_record_info, module_record_set, module_record_set_info,
196 # module_record_sets, module_zone_info.
197 # DO NOT EDIT MANUALLY!
198 ZONE_ID_TYPE = r"""
199 options:
200 zone_id:
201 type: int
202 """