Debian Codegraph @

ansible_collections/hetzner/hcloud/plugins/doc_fragments/hcloud.py

raw
1 # Copyright: (c) 2019, Hetzner Cloud GmbH <[email protected]>
2 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
3
4
5 from __future__ import annotations
6
7
8 class ModuleDocFragment:
9 DOCUMENTATION = """
10 options:
11 api_token:
12 description:
13 - The token for the Hetzner Cloud API.
14 - You can also set this option by using the C(HCLOUD_TOKEN) environment variable.
15 required: True
16 type: str
17 api_endpoint:
18 description:
19 - The endpoint for the Hetzner Cloud API.
20 - You can also set this option by using the C(HCLOUD_ENDPOINT) environment variable.
21 default: https://api.hetzner.cloud/v1
22 type: str
23 aliases: [endpoint]
24 api_endpoint_hetzner:
25 description:
26 - The endpoint for the Hetzner API.
27 - You can also set this option by using the C(HETZNER_ENDPOINT) environment variable.
28 default: https://api.hetzner.com/v1
29 type: str
30
31 requirements:
32 - python-dateutil >= 2.7.5
33 - requests >=2.20
34
35 seealso:
36 - name: Documentation for Hetzner APIs
37 description: Complete reference for the Hetzner APIs.
38 link: https://docs.hetzner.cloud
39 """