Debian Codegraph @

ansible_collections/community/general/plugins/doc_fragments/_online.py

raw
1 # Copyright (c) Ansible project
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 # Standard documentation fragment
13 DOCUMENTATION = r"""
14 options:
15 api_token:
16 description:
17 - Online OAuth token.
18 type: str
19 required: true
20 aliases: [oauth_token]
21 api_url:
22 description:
23 - Online API URL.
24 type: str
25 default: 'https://api.online.net'
26 aliases: [base_url]
27 api_timeout:
28 description:
29 - HTTP timeout to Online API in seconds.
30 type: int
31 default: 30
32 aliases: [timeout]
33 validate_certs:
34 description:
35 - Validate SSL certs of the Online API.
36 type: bool
37 default: true
38 notes:
39 - Also see the API documentation on U(https://console.online.net/en/api/).
40 - If O(api_token) is not set within the module, the following environment variables can be used in decreasing order of precedence
41 E(ONLINE_TOKEN), E(ONLINE_API_KEY), E(ONLINE_OAUTH_TOKEN), E(ONLINE_API_TOKEN).
42 - If one wants to use a different O(api_url) one can also set the E(ONLINE_API_URL) environment variable.
43 """