Debian Codegraph @

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

raw
1 # Copyright (c) 2018, Yanis Guenane <[email protected]>
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 - Scaleway OAuth token.
18 - This is required if O(profile) is not specified.
19 type: str
20 aliases: [oauth_token]
21 api_url:
22 description:
23 - Scaleway API URL.
24 type: str
25 default: https://api.scaleway.com
26 aliases: [base_url]
27 api_timeout:
28 description:
29 - HTTP timeout to Scaleway API in seconds.
30 type: int
31 default: 30
32 aliases: [timeout]
33 profile:
34 description:
35 - The config profile in config file to load the Scaleway OAuth token from, use instead of O(api_token).
36 - It is also possible to set E(SCW_PROFILE) to use a SCW CLI config profile.
37 type: str
38 aliases: [scw_profile]
39 version_added: 12.2.0
40 query_parameters:
41 description:
42 - List of parameters passed to the query string.
43 type: dict
44 default: {}
45 validate_certs:
46 description:
47 - Validate SSL certs of the Scaleway API.
48 type: bool
49 default: true
50 requirements:
51 - PyYAML (when O(profile) is used)
52 notes:
53 - Also see the API documentation on U(https://developer.scaleway.com/).
54 - If O(api_token) is not set within the module, the following environment variables can be used in decreasing order of precedence
55 E(SCW_TOKEN), E(SCW_API_KEY), E(SCW_OAUTH_TOKEN) or E(SCW_API_TOKEN).
56 - If one wants to use a different O(api_url) one can also set the E(SCW_API_URL) environment variable.
57 """
58
59 ACTIONGROUP_SCALEWAY = r"""
60 options: {}
61 attributes:
62 action_group:
63 description: Use C(group/community.general.scaleway) in C(module_defaults) to set defaults for this module.
64 support: full
65 membership:
66 - community.general.scaleway
67 """