B `@sGdddeZdS)csVeZdZfddZedddZedddZeddd Zeed d d Z Z S) ActionBatchCameracstt|dS)N)superr__init__)self) __class__r/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki/api/batch/camera.pyrszActionBatchCamera.__init__)serialc s|td|krBdddg}|d|ksBtd|dd|d|krzdd d d g}|d|ksztd |dd|d |krddg}|d |kstd|d d|dddgdd}d|d}ddddddd gfdd|D}|d|d}|S) a **Update quality and retention settings for the given camera** https://developer.cisco.com/meraki/api-v1/#!update-device-camera-quality-and-retention - serial (string): (required) - profileId (string): The ID of a quality and retention profile to assign to the camera. The profile's settings will override all of the per-camera quality and retention settings. If the value of this parameter is null, any existing profile will be unassigned from the camera. - motionBasedRetentionEnabled (boolean): Boolean indicating if motion-based retention is enabled(true) or disabled(false) on the camera. - audioRecordingEnabled (boolean): Boolean indicating if audio recording is enabled(true) or disabled(false) on the camera - restrictedBandwidthModeEnabled (boolean): Boolean indicating if restricted bandwidth is enabled(true) or disabled(false) on the camera - quality (string): Quality of the camera. Can be one of 'Standard', 'High' or 'Enhanced'. Not all qualities are supported by every camera model. - resolution (string): Resolution of the camera. Can be one of '1280x720', '1920x1080', '1080x1080' or '2058x2058'. Not all resolutions are supported by every camera model. - motionDetectorVersion (integer): The version of the motion detector that will be used by the camera. Only applies to Gen 2 cameras. Defaults to v2. ZqualityZStandardZHighZEnhancedz"quality" cannot be "z", & must be set to one of: resolutionZ1280x720Z 1920x1080Z 1080x1080Z 2058x2058z"resolution" cannot be "ZmotionDetectorVersionz#"motionDetectorVersion" cannot be "camera configureZqualityAndRetention%updateDeviceCameraQualityAndRetention)tags operationz /devices/z/camera/qualityAndRetentionZ profileIdZmotionBasedRetentionEnabledZaudioRecordingEnabledZrestrictedBandwidthModeEnabledcs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr )szKActionBatchCamera.updateDeviceCameraQualityAndRetention..update)resourcerbody)rlocalsAssertionErroritems)rrkwargsoptionsmetadatarpayloadactionr)rrrs&  $ $$ z7ActionBatchCamera.updateDeviceCameraQualityAndRetentionc sZ|tdddgdd}d|d}dd d d gfd d |D}|d|d}|S)aO **Update sense settings for the given camera** https://developer.cisco.com/meraki/api-v1/#!update-device-camera-sense - serial (string): (required) - senseEnabled (boolean): Boolean indicating if sense(license) is enabled(true) or disabled(false) on the camera - mqttBrokerId (string): The ID of the MQTT broker to be enabled on the camera. A value of null will disable MQTT on the camera - audioDetection (object): The details of the audio detection config. - detectionModelId (string): The ID of the object detection model r r ZsenseupdateDeviceCameraSense)rrz /devices/z /camera/senseZ senseEnabledZ mqttBrokerIdZaudioDetectionZdetectionModelIdcs&i|]\}}|kr||qSr)r)rrr)rrrrKsz=ActionBatchCamera.updateDeviceCameraSense..r)rrr)rrr)rrrrrr r!r)rrr"6s   z)ActionBatchCamera.updateDeviceCameraSensec sV|tddddgdd}d|d}d gfd d |D}|d |d }|S)a **Update video settings for the given camera** https://developer.cisco.com/meraki/api-v1/#!update-device-camera-video-settings - serial (string): (required) - externalRtspEnabled (boolean): Boolean indicating if external rtsp stream is exposed r r videosettingsupdateDeviceCameraVideoSettings)rrz /devices/z/camera/video/settingsZexternalRtspEnabledcs&i|]\}}|kr||qSr)r)rrr)rrrrjszEActionBatchCamera.updateDeviceCameraVideoSettings..r)rrr)rrr)rrrrrr r!r)rrr%Xs   z1ActionBatchCamera.updateDeviceCameraVideoSettings)ridscsNt}dddgdd}d|d}dgfd d |D}|d |d }|S) a **Assign wireless profiles to the given camera** https://developer.cisco.com/meraki/api-v1/#!update-device-camera-wireless-profiles - serial (string): (required) - ids (object): The ids of the wireless profile to assign to the given camera r r ZwirelessProfiles"updateDeviceCameraWirelessProfiles)rrz /devices/z/camera/wirelessProfilesr&cs&i|]\}}|kr||qSr)r)rrr)rrrrszHActionBatchCamera.updateDeviceCameraWirelessProfiles..r)rrr)rr)rrr&rrrr r!r)rrr'ws  z4ActionBatchCamera.updateDeviceCameraWirelessProfiles) __name__ __module__ __qualname__rstrrr"r%dictr' __classcell__rr)rrrs  /"rN)objectrrrrr