Debian Codegraph @

ansible_collections/community/mongodb/plugins/doc_fragments/atlas_options.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # Copyright (c) 2021 T-Systems MMS
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5 #
6 # This module is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This software is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this software. If not, see <http://www.gnu.org/licenses/>.
18
19 from __future__ import absolute_import, division, print_function
20
21 __metaclass__ = type
22
23
24 class ModuleDocFragment(object):
25 # Documentation for global options that are always the same
26 DOCUMENTATION = r'''
27 options:
28 api_username:
29 description:
30 - The username for use in authentication with the Atlas API.
31 - Can use API users and tokens (public key is username)
32 type: str
33 required: True
34 aliases: [apiUsername]
35 api_password:
36 description:
37 - The password for use in authentication with the Atlas API.
38 - Can use API users and tokens (private key is password)
39 type: str
40 required: True
41 aliases: [apiPassword]
42 group_id:
43 description:
44 - Unique identifier for the Atlas project.
45 type: str
46 required: True
47 aliases: [groupId]
48 state:
49 description:
50 - State of the ressource.
51 choices: [ "present", "absent" ]
52 default: present
53 type: str
54 '''