Debian Codegraph @

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

raw
1 # Copyright (c) 2019, Evgeniy Krysanov <[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 client_id:
16 description:
17 - The OAuth consumer key.
18 - If not set the environment variable E(BITBUCKET_CLIENT_ID) is used.
19 type: str
20 client_secret:
21 description:
22 - The OAuth consumer secret.
23 - If not set the environment variable E(BITBUCKET_CLIENT_SECRET) is used.
24 type: str
25 user:
26 description:
27 - The username.
28 - If not set the environment variable E(BITBUCKET_USERNAME) is used.
29 - O(ignore:username) is an alias of O(user) since community.general 6.0.0. It was an alias of O(workspace) before.
30 type: str
31 version_added: 4.0.0
32 aliases: [username]
33 password:
34 description:
35 - The App password.
36 - If not set the environment variable E(BITBUCKET_PASSWORD) is used.
37 type: str
38 version_added: 4.0.0
39 notes:
40 - Bitbucket OAuth consumer key and secret can be obtained from Bitbucket profile -> Settings -> Access Management -> OAuth.
41 - Bitbucket App password can be created from Bitbucket profile -> Personal Settings -> App passwords.
42 - If both OAuth and Basic Auth credentials are passed, OAuth credentials take precedence.
43 """