Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_camera_quality_and_retention.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_quality_and_retention
9 short_description: Resource module for devices _camera _qualityandretention
10 description:
11 - Manage operation update of the resource devices _camera _qualityandretention.
12 - Update quality and retention 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 audioRecordingEnabled:
19 description: Boolean indicating if audio recording is enabled(true) or disabled(false)
20 on the camera.
21 type: bool
22 motionBasedRetentionEnabled:
23 description: Boolean indicating if motion-based retention is enabled(true) or
24 disabled(false) on the camera.
25 type: bool
26 motionDetectorVersion:
27 description: The version of the motion detector that will be used by the camera.
28 Only applies to Gen 2 cameras. Defaults to v2.
29 type: int
30 profileId:
31 description: The ID of a quality and retention profile to assign to the camera.
32 The profile's settings will override all of the per-camera quality and retention
33 settings. If the value of this parameter is null, any existing profile will
34 be unassigned from the camera.
35 type: str
36 quality:
37 description: Quality of the camera. Can be one of 'Standard', 'High', 'Enhanced'
38 or 'Ultra'. Not all qualities are supported by every camera model.
39 type: str
40 resolution:
41 description: Resolution of the camera. Can be one of '1280x720', '1920x1080',
42 '1080x1080', '2112x2112', '2880x2880', '2688x1512' or '3840x2160'.Not all resolutions
43 are supported by every camera model.
44 type: str
45 restrictedBandwidthModeEnabled:
46 description: Boolean indicating if restricted bandwidth is enabled(true) or disabled(false)
47 on the camera. This setting does not apply to MV2 cameras.
48 type: bool
49 serial:
50 description: Serial path parameter.
51 type: str
52 requirements:
53 - meraki >= 2.4.9
54 - python >= 3.5
55 seealso:
56 - name: Cisco Meraki documentation for camera updateDeviceCameraQualityAndRetention
57 description: Complete reference of the updateDeviceCameraQualityAndRetention API.
58 link: https://developer.cisco.com/meraki/api-v1/#!update-device-camera-quality-and-retention
59 notes:
60 - SDK Method used are
61 camera.Camera.update_device_camera_quality_and_retention,
62 - Paths used are
63 put /devices/{serial}/camera/qualityAndRetention,
64 """
65
66 EXAMPLES = r"""
67 - name: Update all
68 cisco.meraki.devices_camera_quality_and_retention:
69 meraki_api_key: "{{ meraki_api_key }}"
70 meraki_base_url: "{{ meraki_base_url }}"
71 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
72 meraki_certificate_path: "{{ meraki_certificate_path }}"
73 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
74 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
75 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
76 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
77 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
78 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
79 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
80 meraki_output_log: "{{ meraki_output_log }}"
81 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
82 meraki_log_path: "{{ meraki_log_path }}"
83 meraki_print_console: "{{ meraki_print_console }}"
84 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
85 meraki_simulate: "{{ meraki_simulate }}"
86 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
87 meraki_caller: "{{ meraki_caller }}"
88 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
89 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
90 state: present
91 audioRecordingEnabled: false
92 motionBasedRetentionEnabled: false
93 motionDetectorVersion: 2
94 profileId: '1234'
95 quality: Standard
96 resolution: 1280x720
97 restrictedBandwidthModeEnabled: false
98 serial: string
99 """
100 RETURN = r"""
101 meraki_response:
102 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
103 returned: always
104 type: dict
105 sample: >
106 {}
107 """