opened
yujiterada
username_0
### Issue description

The function cameras_controller.generate_network_camera_snapshot() will always return HTTP error 400 when timestamp is not specified for object GenerateNetworkCameraSnapshotModel().

### Steps to reproduce the issue

Call generate_network_camera_snapshot() with timestamp not specified for GenerateNetworkCameraSnapshotModel().

<pre><code>x_cisco_meraki_api_key = os.environ.get('MERAKI_API_KEY')
client = MerakiSdkClient(x_cisco_meraki_api_key)
cameras_controller = client.cameras
parameters = {}
parameters['network_id'] = network_id
parameters['serial'] = serial
parameters['generate_network_camera_snapshot'] = GenerateNetworkCameraSnapshotModel()
</pre></code>

### Workaround

Do not configure content-type in the header of the request.

<pre><code># cameras_controller.py line 66
_headers = {
    'accept': 'application/json',
    'content-type': 'charset=utf-8'
}</pre></code>

OR

Always send an empty dictionary if timestamp is not configured.

<pre><code># cameras_controller.py line 72
# Check timstamp in generate_network_camera_snapshot
if options.get('generate_network_camera_snapshot').timestamp:
    _request = self.http_client.post(_query_url, headers=_headers, parameters=APIHelper.json_serialize(options.get('generate_network_camera_snapshot')))
else:
    # Need to send empty dictionary even if timestamp is not defined
    _request = self.http_client.post(_query_url, headers=_headers, parameters='{}')</pre></code>
HTTP ERROR 400 cameras_controller.generate_network_camera_snapshot()
issue