zabbix: Clean up parameter types (#52516)

This PR includes:
- Parameter types added
- Copyright format fixes
- Short license statement
This commit is contained in:
Dag Wieers 2019-02-19 21:56:58 +01:00 committed by Sandra McCann
parent e435c71c16
commit 04a2a22c0f

View file

@ -1,56 +1,51 @@
# Copyright (c) 2017 Ansible, Inc # -*- coding: utf-8 -*-
#
# This file is part of Ansible # Copyright: (c) 2017, Ansible, Inc
# # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
class ModuleDocFragment(object): class ModuleDocFragment(object):
# Standard documentation fragment # Standard documentation fragment
DOCUMENTATION = ''' DOCUMENTATION = r'''
options: options:
server_url: server_url:
description: description:
- URL of Zabbix server, with protocol (http or https). - URL of Zabbix server, with protocol (http or https).
C(url) is an alias for C(server_url). C(url) is an alias for C(server_url).
required: true required: true
aliases: [ "url" ] type: str
aliases: [ url ]
login_user: login_user:
description: description:
- Zabbix user name. - Zabbix user name.
type: str
required: true required: true
login_password: login_password:
description: description:
- Zabbix user password. - Zabbix user password.
type: str
required: true required: true
http_login_user: http_login_user:
description: description:
- Basic Auth login - Basic Auth login
type: str
required: true
version_added: "2.1" version_added: "2.1"
http_login_password: http_login_password:
description: description:
- Basic Auth password - Basic Auth password
type: str
version_added: "2.1" version_added: "2.1"
timeout: timeout:
description: description:
- The timeout of API request (seconds). - The timeout of API request (seconds).
type: int
default: 10 default: 10
validate_certs: validate_certs:
description: description:
- If set to False, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. - If set to False, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.
type: bool type: bool
default: 'yes' default: yes
version_added: "2.5" version_added: "2.5"
''' '''