summaryrefslogtreecommitdiffstats
path: root/ansible_collections/hetzner/hcloud/plugins/doc_fragments
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/hetzner/hcloud/plugins/doc_fragments
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/hetzner/hcloud/plugins/doc_fragments')
-rw-r--r--ansible_collections/hetzner/hcloud/plugins/doc_fragments/hcloud.py46
1 files changed, 25 insertions, 21 deletions
diff --git a/ansible_collections/hetzner/hcloud/plugins/doc_fragments/hcloud.py b/ansible_collections/hetzner/hcloud/plugins/doc_fragments/hcloud.py
index d19e64616..eee4a9c83 100644
--- a/ansible_collections/hetzner/hcloud/plugins/doc_fragments/hcloud.py
+++ b/ansible_collections/hetzner/hcloud/plugins/doc_fragments/hcloud.py
@@ -1,29 +1,33 @@
-# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Hetzner Cloud GmbH <info@hetzner-cloud.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
-from __future__ import absolute_import, division, print_function
-__metaclass__ = type
+from __future__ import annotations
-class ModuleDocFragment(object):
- DOCUMENTATION = '''
+
+class ModuleDocFragment:
+ DOCUMENTATION = """
options:
- api_token:
- description:
- - This is the API Token for the Hetzner Cloud.
- - You can also set this option by using the environment variable HCLOUD_TOKEN
- required: True
- type: str
- endpoint:
- description:
- - This is the API Endpoint for the Hetzner Cloud.
- default: https://api.hetzner.cloud/v1
- type: str
+ api_token:
+ description:
+ - The API Token for the Hetzner Cloud.
+ - You can also set this option by using the C(HCLOUD_TOKEN) environment variable.
+ required: True
+ type: str
+ api_endpoint:
+ description:
+ - The API Endpoint for the Hetzner Cloud.
+ - You can also set this option by using the C(HCLOUD_ENDPOINT) environment variable.
+ default: https://api.hetzner.cloud/v1
+ type: str
+ aliases: [endpoint]
+
requirements:
- - hcloud-python >= 1.0.0
+ - python-dateutil >= 2.7.5
+ - requests >=2.20
+
seealso:
-- name: Documentation for Hetzner Cloud API
- description: Complete reference for the Hetzner Cloud API.
- link: https://docs.hetzner.cloud/
-'''
+ - name: Documentation for Hetzner Cloud API
+ description: Complete reference for the Hetzner Cloud API.
+ link: https://docs.hetzner.cloud
+"""