Debian Codegraph @

ansible_collections/community/hrobot/plugins/doc_fragments/api.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2025 Felix Fontein <[email protected]>
4 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt 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 files documentation fragment
14 DOCUMENTATION = r"""
15 options:
16 hetzner_token:
17 description:
18 - The API token for the Robot web-service user.
19 type: str
20 required: true
21 rate_limit_retry_timeout:
22 description:
23 - Timeout (in seconds) for waiting when rate limit exceeded errors are returned.
24 - Set to V(0) to not retry.
25 - Set to a negative value like V(-1) to retry forever.
26 type: int
27 default: -1
28 """
29
30 # Only for transition period
31 _ROBOT_COMPAT_SHIM = r"""
32 options:
33 hetzner_token:
34 description:
35 - The API token for the Robot web-service user.
36 - One of O(hetzner_token) and O(hetzner_user) must be specified.
37 required: false
38 hetzner_user:
39 description:
40 - The username for the Robot web-service user.
41 - One of O(hetzner_token) and O(hetzner_user) must be specified.
42 - If O(hetzner_user) is specified, O(hetzner_password) must also be specified, and O(hetzner_token) must not be specified.
43 required: false
44 hetzner_password:
45 description:
46 - The password for the Robot web-service user.
47 - If O(hetzner_password) is specified, O(hetzner_user) must also be specified, and O(hetzner_token) must not be specified.
48 required: false
49 """
50
51 # Only for transition period
52 _ROBOT_COMPAT_SHIM_DEPRECATION = r"""
53 options:
54 hetzner_token:
55 description:
56 - The API token for the Robot web-service user.
57 - One of O(hetzner_token) and O(hetzner_user) must be specified.
58 - This option will be required from community.hrobot 3.0.0 on.
59 required: false
60 hetzner_user:
61 description:
62 - The username for the Robot web-service user.
63 - One of O(hetzner_token) and O(hetzner_user) must be specified.
64 - If O(hetzner_user) is specified, O(hetzner_password) must also be specified, and O(hetzner_token) must not be specified.
65 - This option is deprecated for this module, and support will be removed in community.hrobot 3.0.0.
66 required: false
67 hetzner_password:
68 description:
69 - The password for the Robot web-service user.
70 - If O(hetzner_password) is specified, O(hetzner_user) must also be specified, and O(hetzner_token) must not be specified.
71 - This option is deprecated for this module, and support will be removed in community.hrobot 3.0.0.
72 required: false
73 """