Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_camera_custom_analytics.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_custom_analytics
9 short_description: Resource module for devices _camera _customanalytics
10 description:
11 - Manage operation update of the resource devices _camera _customanalytics.
12 - Update custom analytics settings for a camera.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 artifactId:
19 description: The ID of the custom analytics artifact.
20 type: str
21 enabled:
22 description: Enable custom analytics.
23 type: bool
24 parameters:
25 description: Parameters for the custom analytics workload.
26 elements: dict
27 suboptions:
28 name:
29 description: Name of the parameter.
30 type: str
31 value:
32 description: Value of the parameter.
33 type: str
34 type: list
35 serial:
36 description: Serial path parameter.
37 type: str
38 requirements:
39 - meraki >= 2.4.9
40 - python >= 3.5
41 seealso:
42 - name: Cisco Meraki documentation for camera updateDeviceCameraCustomAnalytics
43 description: Complete reference of the updateDeviceCameraCustomAnalytics API.
44 link: https://developer.cisco.com/meraki/api-v1/#!update-device-camera-custom-analytics
45 notes:
46 - SDK Method used are
47 camera.Camera.update_device_camera_custom_analytics,
48 - Paths used are
49 put /devices/{serial}/camera/customAnalytics,
50 """
51
52 EXAMPLES = r"""
53 - name: Update all
54 cisco.meraki.devices_camera_custom_analytics:
55 meraki_api_key: "{{ meraki_api_key }}"
56 meraki_base_url: "{{ meraki_base_url }}"
57 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
58 meraki_certificate_path: "{{ meraki_certificate_path }}"
59 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
60 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
61 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
62 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
63 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
64 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
65 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
66 meraki_output_log: "{{ meraki_output_log }}"
67 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
68 meraki_log_path: "{{ meraki_log_path }}"
69 meraki_print_console: "{{ meraki_print_console }}"
70 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
71 meraki_simulate: "{{ meraki_simulate }}"
72 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
73 meraki_caller: "{{ meraki_caller }}"
74 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
75 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
76 state: present
77 artifactId: '1'
78 enabled: true
79 parameters:
80 - name: detection_threshold
81 value: '0.5'
82 serial: string
83 """
84 RETURN = r"""
85 meraki_response:
86 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
87 returned: always
88 type: dict
89 sample: >
90 {
91 "enabled": true,
92 "artifactId": "string",
93 "parameters": [
94 {
95 "name": "string",
96 "value": 0
97 }
98 ]
99 }
100 """