Meraki - Improve type information in module documentation (#58114)

* Improve type information in module documentation
- Removed some duplicate documentation
- Ensure org_id is always string
- Add type information for items which don't have it

* Fix whitespace
pull/58196/head
Kevin Breit 6 years ago committed by Sandra McCann
parent dc8f7b38e6
commit 0f12e1c7d8

@ -80,10 +80,6 @@ options:
- When creating a new administrator, C(org_name), C(network), or C(tags) must be specified. - When creating a new administrator, C(org_name), C(network), or C(tags) must be specified.
aliases: ['organization'] aliases: ['organization']
type: str type: str
org_id:
description:
- ID of organization.
type: str
author: author:
- Kevin Breit (@kbreit) - Kevin Breit (@kbreit)
extends_documentation_fragment: meraki extends_documentation_fragment: meraki

@ -33,9 +33,11 @@ options:
org_name: org_name:
description: description:
- Name of organization containing the configuration template. - Name of organization containing the configuration template.
type: str
org_id: org_id:
description: description:
- ID of organization associated to a configuration template. - ID of organization associated to a configuration template.
type: str
config_template: config_template:
description: description:
- Name of the configuration template within an organization to manipulate. - Name of the configuration template within an organization to manipulate.
@ -43,9 +45,11 @@ options:
net_name: net_name:
description: description:
- Name of the network to bind or unbind configuration template to. - Name of the network to bind or unbind configuration template to.
type: str
net_id: net_id:
description: description:
- ID of the network to bind or unbind configuration template to. - ID of the network to bind or unbind configuration template to.
type: str
auto_bind: auto_bind:
description: description:
- Optional boolean indicating whether the network's switches should automatically bind to profiles of the same model. - Optional boolean indicating whether the network's switches should automatically bind to profiles of the same model.

@ -35,14 +35,6 @@ options:
description: description:
- ID number of a network. - ID number of a network.
type: str type: str
org_name:
description:
- Name of organization associated to a network.
type: str
org_id:
description:
- ID of organization associated to a network.
type: str
state: state:
description: description:
- States that a policy should be created or modified. - States that a policy should be created or modified.

@ -30,47 +30,49 @@ options:
- Query an organization. - Query an organization.
choices: [absent, present, query] choices: [absent, present, query]
default: query default: query
org_name: type: str
description:
- Name of organization.
- If C(clone) is specified, C(org_name) is the name of the new organization.
aliases: [ organization ]
org_id:
description:
- ID of organization.
net_name: net_name:
description: description:
- Name of a network. - Name of a network.
aliases: [network] aliases: [network]
type: str
net_id: net_id:
description: description:
- ID of a network. - ID of a network.
type: str
serial: serial:
description: description:
- Serial number of a device to query. - Serial number of a device to query.
type: str
hostname: hostname:
description: description:
- Hostname of network device to search for. - Hostname of network device to search for.
aliases: [name] aliases: [name]
type: str
model: model:
description: description:
- Model of network device to search for. - Model of network device to search for.
type: str
tags: tags:
description: description:
- Space delimited list of tags to assign to device. - Space delimited list of tags to assign to device.
type: str
lat: lat:
description: description:
- Latitude of device's geographic location. - Latitude of device's geographic location.
- Use negative number for southern hemisphere. - Use negative number for southern hemisphere.
aliases: [latitude] aliases: [latitude]
type: float
lng: lng:
description: description:
- Longitude of device's geographic location. - Longitude of device's geographic location.
- Use negative number for western hemisphere. - Use negative number for western hemisphere.
aliases: [longitude] aliases: [longitude]
type: float
address: address:
description: description:
- Postal address of device's location. - Postal address of device's location.
type: str
move_map_marker: move_map_marker:
description: description:
- Whether or not to set the latitude and longitude of a device based on the new address. - Whether or not to set the latitude and longitude of a device based on the new address.
@ -79,18 +81,22 @@ options:
serial_lldp_cdp: serial_lldp_cdp:
description: description:
- Serial number of device to query LLDP/CDP information from. - Serial number of device to query LLDP/CDP information from.
type: str
lldp_cdp_timespan: lldp_cdp_timespan:
description: description:
- Timespan, in seconds, used to query LLDP and CDP information. - Timespan, in seconds, used to query LLDP and CDP information.
- Must be less than 1 month. - Must be less than 1 month.
type: int
serial_uplink: serial_uplink:
description: description:
- Serial number of device to query uplink information from. - Serial number of device to query uplink information from.
type: str
note: note:
description: description:
- Informational notes about a device. - Informational notes about a device.
- Limited to 255 characters. - Limited to 255 characters.
version_added: '2.8' version_added: '2.8'
type: str
author: author:

@ -28,14 +28,6 @@ options:
type: str type: str
choices: [ present, query ] choices: [ present, query ]
default: present default: present
org_name:
description:
- Name of organization.
type: str
org_id:
description:
- ID of organization.
type: int
net_name: net_name:
description: description:
- Name of network containing access points. - Name of network containing access points.

@ -29,13 +29,6 @@ options:
- Create or modify an organization. - Create or modify an organization.
choices: ['present', 'query'] choices: ['present', 'query']
default: present default: present
org_name:
description:
- Name of organization.
- If C(clone) is specified, C(org_name) is the name of the new organization.
org_id:
description:
- ID of organization.
net_name: net_name:
description: description:
- Name of network which MX firewall is in. - Name of network which MX firewall is in.

@ -22,9 +22,6 @@ description:
- Allows for creation, management, and visibility into networks within Meraki. - Allows for creation, management, and visibility into networks within Meraki.
options: options:
auth_key:
description:
- Authentication key provided by the dashboard. Required if environmental variable MERAKI_KEY is not set.
state: state:
description: description:
- Create or modify an organization. - Create or modify an organization.
@ -37,12 +34,6 @@ options:
net_id: net_id:
description: description:
- ID number of a network. - ID number of a network.
org_name:
description:
- Name of organization associated to a network.
org_id:
description:
- ID of organization associated to a network.
type: type:
description: description:
- Type of network device network manages. - Type of network device network manages.

@ -38,14 +38,6 @@ options:
description: description:
- Name of SSID. - Name of SSID.
type: str type: str
org_name:
description:
- Name of organization.
type: str
org_id:
description:
- ID of organization.
type: int
net_name: net_name:
description: description:
- Name of network. - Name of network.

@ -22,11 +22,6 @@ description:
- Allows for creation, management, and visibility into static routes within Meraki. - Allows for creation, management, and visibility into static routes within Meraki.
options: options:
auth_key:
description:
- Authentication key provided by the dashboard.
- Required if environmental variable MERAKI_KEY is not set.
type: str
state: state:
description: description:
- Create or modify an organization. - Create or modify an organization.
@ -41,14 +36,6 @@ options:
description: description:
- ID number of a network. - ID number of a network.
type: str type: str
org_name:
description:
- Name of organization associated to a network.
type: str
org_id:
description:
- ID of organization associated to a network.
type: str
name: name:
description: description:
- Descriptive name of the static route. - Descriptive name of the static route.

@ -26,6 +26,7 @@ options:
- Specifies whether a switchport should be queried or modified. - Specifies whether a switchport should be queried or modified.
choices: [query, present] choices: [query, present]
default: query default: query
type: str
access_policy_number: access_policy_number:
description: description:
- Number of the access policy to apply. - Number of the access policy to apply.

@ -44,14 +44,6 @@ options:
description: description:
- ID number of a network. - ID number of a network.
type: str type: str
org_name:
description:
- Name of organization associated to a network.
type: str
org_id:
description:
- ID of organization associated to a network.
type: str
servers: servers:
description: description:
- List of syslog server settings - List of syslog server settings

@ -30,41 +30,52 @@ options:
- Specifies whether object should be queried, created/modified, or removed. - Specifies whether object should be queried, created/modified, or removed.
choices: [absent, present, query] choices: [absent, present, query]
default: query default: query
type: str
net_name: net_name:
description: description:
- Name of network which VLAN is in or should be in. - Name of network which VLAN is in or should be in.
aliases: [network] aliases: [network]
type: str
net_id: net_id:
description: description:
- ID of network which VLAN is in or should be in. - ID of network which VLAN is in or should be in.
type: str
vlan_id: vlan_id:
description: description:
- ID number of VLAN. - ID number of VLAN.
- ID should be between 1-4096. - ID should be between 1-4096.
type: int
name: name:
description: description:
- Name of VLAN. - Name of VLAN.
aliases: [vlan_name] aliases: [vlan_name]
type: str
subnet: subnet:
description: description:
- CIDR notation of network subnet. - CIDR notation of network subnet.
type: str
appliance_ip: appliance_ip:
description: description:
- IP address of appliance. - IP address of appliance.
- Address must be within subnet specified in C(subnet) parameter. - Address must be within subnet specified in C(subnet) parameter.
type: str
dns_nameservers: dns_nameservers:
description: description:
- Semi-colon delimited list of DNS IP addresses. - Semi-colon delimited list of DNS IP addresses.
- Specify one of the following options for preprogrammed DNS entries opendns, google_dns, upstream_dns - Specify one of the following options for preprogrammed DNS entries opendns, google_dns, upstream_dns
type: str
reserved_ip_range: reserved_ip_range:
description: description:
- IP address ranges which should be reserve and not distributed via DHCP. - IP address ranges which should be reserve and not distributed via DHCP.
type: list
vpn_nat_subnet: vpn_nat_subnet:
description: description:
- The translated VPN subnet if VPN and VPN subnet translation are enabled on the VLAN. - The translated VPN subnet if VPN and VPN subnet translation are enabled on the VLAN.
type: str
fixed_ip_assignments: fixed_ip_assignments:
description: description:
- Static IP address assignements to be distributed via DHCP by MAC address. - Static IP address assignements to be distributed via DHCP by MAC address.
type: list
author: author:
- Kevin Breit (@kbreit) - Kevin Breit (@kbreit)
extends_documentation_fragment: meraki extends_documentation_fragment: meraki

@ -2652,7 +2652,6 @@ lib/ansible/modules/network/junos/junos_vrf.py E337
lib/ansible/modules/network/junos/junos_vrf.py E338 lib/ansible/modules/network/junos/junos_vrf.py E338
lib/ansible/modules/network/meraki/meraki_admin.py E337 lib/ansible/modules/network/meraki/meraki_admin.py E337
lib/ansible/modules/network/meraki/meraki_config_template.py E337 lib/ansible/modules/network/meraki/meraki_config_template.py E337
lib/ansible/modules/network/meraki/meraki_device.py E337
lib/ansible/modules/network/meraki/meraki_malware.py E337 lib/ansible/modules/network/meraki/meraki_malware.py E337
lib/ansible/modules/network/meraki/meraki_mr_l3_firewall.py E325 lib/ansible/modules/network/meraki/meraki_mr_l3_firewall.py E325
lib/ansible/modules/network/meraki/meraki_mx_l3_firewall.py E337 lib/ansible/modules/network/meraki/meraki_mx_l3_firewall.py E337
@ -2662,7 +2661,6 @@ lib/ansible/modules/network/meraki/meraki_snmp.py E337
lib/ansible/modules/network/meraki/meraki_ssid.py E325 lib/ansible/modules/network/meraki/meraki_ssid.py E325
lib/ansible/modules/network/meraki/meraki_switchport.py E337 lib/ansible/modules/network/meraki/meraki_switchport.py E337
lib/ansible/modules/network/meraki/meraki_syslog.py E337 lib/ansible/modules/network/meraki/meraki_syslog.py E337
lib/ansible/modules/network/meraki/meraki_vlan.py E337
lib/ansible/modules/network/netact/netact_cm_command.py E326 lib/ansible/modules/network/netact/netact_cm_command.py E326
lib/ansible/modules/network/netact/netact_cm_command.py E337 lib/ansible/modules/network/netact/netact_cm_command.py E337
lib/ansible/modules/network/netconf/netconf_config.py E326 lib/ansible/modules/network/netconf/netconf_config.py E326

Loading…
Cancel
Save