Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_camera_wireless_profiles.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2021, Cisco Systems
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r"""
8 module: devices_camera_wireless_profiles
9 short_description: Resource module for devices _camera _wirelessprofiles
10 description:
11 - Manage operation update of the resource devices _camera _wirelessprofiles.
12 - >
13 Assign wireless profiles to the given camera. Incremental updates are not supported,
14 all profile assignment need to be supplied at once.
15 version_added: '1.0.0'
16 extends_documentation_fragment:
17 - cisco.meraki.module
18 author: Francisco Munoz (@fmunoz)
19 options:
20 ids:
21 description: The ids of the wireless profile to assign to the given camera.
22 suboptions:
23 backup:
24 description: The id of the backup wireless profile.
25 type: str
26 primary:
27 description: The id of the primary wireless profile.
28 type: str
29 secondary:
30 description: The id of the secondary wireless profile.
31 type: str
32 type: dict
33 serial:
34 description: Serial path parameter.
35 type: str
36 requirements:
37 - meraki >= 2.4.9
38 - python >= 3.5
39 seealso:
40 - name: Cisco Meraki documentation for camera updateDeviceCameraWirelessProfiles
41 description: Complete reference of the updateDeviceCameraWirelessProfiles API.
42 link: https://developer.cisco.com/meraki/api-v1/#!update-device-camera-wireless-profiles
43 notes:
44 - SDK Method used are
45 camera.Camera.update_device_camera_wireless_profiles,
46 - Paths used are
47 put /devices/{serial}/camera/wirelessProfiles,
48 """
49
50 EXAMPLES = r"""
51 - name: Update all
52 cisco.meraki.devices_camera_wireless_profiles:
53 meraki_api_key: "{{ meraki_api_key }}"
54 meraki_base_url: "{{ meraki_base_url }}"
55 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
56 meraki_certificate_path: "{{ meraki_certificate_path }}"
57 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
58 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
59 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
60 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
61 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
62 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
63 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
64 meraki_output_log: "{{ meraki_output_log }}"
65 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
66 meraki_log_path: "{{ meraki_log_path }}"
67 meraki_print_console: "{{ meraki_print_console }}"
68 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
69 meraki_simulate: "{{ meraki_simulate }}"
70 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
71 meraki_caller: "{{ meraki_caller }}"
72 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
73 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
74 state: present
75 ids:
76 backup: '1'
77 primary: '3'
78 secondary: '2'
79 serial: string
80 """
81 RETURN = r"""
82 meraki_response:
83 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
84 returned: always
85 type: dict
86 sample: >
87 {}
88 """