Debian Codegraph @

ansible_collections/cisco/ucs/plugins/doc_fragments/ucs.py

raw
1 # -*- coding: utf-8 -*-
2
3 # This code is part of Ansible, but is an independent component.
4 # This particular file snippet, and this file snippet only, is BSD licensed.
5 # Modules you write using this snippet, which is embedded dynamically by Ansible
6 # still belong to the author of the module, and may assign their own license
7 # to the complete work.
8 #
9 # (c) 2016 Red Hat Inc.
10 # (c) 2017 Cisco Systems Inc.
11 #
12 # Redistribution and use in source and binary forms, with or without modification,
13 # are permitted provided that the following conditions are met:
14 #
15 # * Redistributions of source code must retain the above copyright
16 # notice, this list of conditions and the following disclaimer.
17 # * Redistributions in binary form must reproduce the above copyright notice,
18 # this list of conditions and the following disclaimer in the documentation
19 # and/or other materials provided with the distribution.
20 #
21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
29 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
31
32
33 class ModuleDocFragment(object):
34 # Cisco UCS doc fragment
35 DOCUMENTATION = '''
36 options:
37 hostname:
38 description:
39 - IP address or hostname of Cisco UCS Manager.
40 - Modules can be used with the UCS Platform Emulator U(https://cs.co/ucspe)
41 type: str
42 required: yes
43 username:
44 description:
45 - Username for Cisco UCS Manager authentication.
46 type: str
47 default: admin
48 password:
49 description:
50 - Password for Cisco UCS Manager authentication.
51 type: str
52 required: yes
53 port:
54 description:
55 - Port number to be used during connection (by default uses 443 for https and 80 for http connection).
56 type: int
57 use_ssl:
58 description:
59 - If C(no), an HTTP connection will be used instead of the default HTTPS connection.
60 type: bool
61 default: yes
62 use_proxy:
63 description:
64 - If C(no), will not use the proxy as defined by system environment variable.
65 type: bool
66 default: yes
67 proxy:
68 description:
69 - If use_proxy is no, specfies proxy to be used for connection.
70 e.g. 'http://proxy.xy.z:8080'
71 type: str
72 '''