Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_camera_sense.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_sense
9 short_description: Resource module for devices _camera _sense
10 description:
11 - Manage operation update of the resource devices _camera _sense.
12 - Update sense settings for the given camera.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 audioDetection:
19 description: The details of the audio detection config.
20 suboptions:
21 enabled:
22 description: Boolean indicating if audio detection is enabled(true) or disabled(false)
23 on the camera.
24 type: bool
25 type: dict
26 detectionModelId:
27 description: The ID of the object detection model.
28 type: str
29 mqttBrokerId:
30 description: The ID of the MQTT broker to be enabled on the camera. A value of
31 null will disable MQTT on the camera.
32 type: str
33 senseEnabled:
34 description: Boolean indicating if sense(license) is enabled(true) or disabled(false)
35 on the camera.
36 type: bool
37 serial:
38 description: Serial path parameter.
39 type: str
40 requirements:
41 - meraki >= 2.4.9
42 - python >= 3.5
43 seealso:
44 - name: Cisco Meraki documentation for camera updateDeviceCameraSense
45 description: Complete reference of the updateDeviceCameraSense API.
46 link: https://developer.cisco.com/meraki/api-v1/#!update-device-camera-sense
47 notes:
48 - SDK Method used are
49 camera.Camera.update_device_camera_sense,
50 - Paths used are
51 put /devices/{serial}/camera/sense,
52 """
53
54 EXAMPLES = r"""
55 - name: Update all
56 cisco.meraki.devices_camera_sense:
57 meraki_api_key: "{{ meraki_api_key }}"
58 meraki_base_url: "{{ meraki_base_url }}"
59 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
60 meraki_certificate_path: "{{ meraki_certificate_path }}"
61 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
62 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
63 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
64 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
65 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
66 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
67 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
68 meraki_output_log: "{{ meraki_output_log }}"
69 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
70 meraki_log_path: "{{ meraki_log_path }}"
71 meraki_print_console: "{{ meraki_print_console }}"
72 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
73 meraki_simulate: "{{ meraki_simulate }}"
74 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
75 meraki_caller: "{{ meraki_caller }}"
76 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
77 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
78 state: present
79 audioDetection:
80 enabled: false
81 mqttBrokerId: '1234'
82 senseEnabled: true
83 serial: string
84 """
85 RETURN = r"""
86 meraki_response:
87 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
88 returned: always
89 type: dict
90 sample: >
91 {}
92 """