Debian Codegraph @

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

raw
1 # Copyright (c) 2016-2017, Hewlett Packard Enterprise Development LP
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 # OneView doc fragment
13 DOCUMENTATION = r"""
14 options:
15 config:
16 description:
17 - Path to a JSON configuration file containing the OneView client configuration. The configuration file is optional
18 and when used should be present in the host running the ansible commands. If the file path is not provided, the configuration
19 is loaded from environment variables. For links to example configuration files or how to use the environment variables
20 verify the notes section.
21 type: path
22 api_version:
23 description:
24 - OneView API Version.
25 type: int
26 image_streamer_hostname:
27 description:
28 - IP address or hostname for the HPE Image Streamer REST API.
29 type: str
30 hostname:
31 description:
32 - IP address or hostname for the appliance.
33 type: str
34 username:
35 description:
36 - Username for API authentication.
37 type: str
38 password:
39 description:
40 - Password for API authentication.
41 type: str
42
43 requirements:
44 - Python >= 2.7.9
45
46 notes:
47 - 'A sample configuration file for the config parameter can be found at:
48 U(https://github.com/HewlettPackard/oneview-ansible/blob/master/examples/oneview_config-rename.json).'
49 - 'Check how to use environment variables for configuration at: U(https://github.com/HewlettPackard/oneview-ansible#environment-variables).'
50 - 'Additional Playbooks for the HPE OneView Ansible modules can be found at: U(https://github.com/HewlettPackard/oneview-ansible/tree/master/examples).'
51 - 'The OneView API version used directly affects returned and expected fields in resources. Information on setting the desired
52 API version and can be found at: U(https://github.com/HewlettPackard/oneview-ansible#setting-your-oneview-version).'
53 """
54
55 VALIDATEETAG = r"""
56 options:
57 validate_etag:
58 description:
59 - When the ETag Validation is enabled, the request is conditionally processed only if the current ETag for the resource
60 matches the ETag provided in the data.
61 type: bool
62 default: true
63 """
64
65 FACTSPARAMS = r"""
66 options:
67 params:
68 description:
69 - List of parameters to delimit, filter and sort the list of resources.
70 - 'Parameter keys allowed are:'
71 - 'V(start): The first item to return, using 0-based indexing.'
72 - 'V(count): The number of resources to return.'
73 - 'V(filter): A general filter/query string to narrow the list of items returned.'
74 - 'V(sort): The sort order of the returned data set.'
75 type: dict
76 """