Skip to content

Commit 03f7825

Browse files
Update for dashboard API release 1.27.0
1 parent a7534ae commit 03f7825

26 files changed

Lines changed: 2018 additions & 175 deletions

meraki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
USE_ITERATOR_FOR_GET_PAGES,
4545
)
4646

47-
__version__ = '1.25.0'
47+
__version__ = '1.27.0'
4848

4949

5050
class DashboardAPI(object):

meraki/aio/api/appliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def updateDeviceApplianceUplinksSettings(self, serial: str, interfaces: dict):
109109
https://developer.cisco.com/meraki/api-v1/#!update-device-appliance-uplinks-settings
110110
111111
- serial (string): (required)
112-
- interfaces (object): Interface settings
112+
- interfaces (object): Interface settings.
113113
"""
114114

115115
kwargs = locals()

meraki/aio/api/camera.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def updateDeviceCameraQualityAndRetention(self, serial: str, **kwargs):
244244
- audioRecordingEnabled (boolean): Boolean indicating if audio recording is enabled(true) or disabled(false) on the camera
245245
- restrictedBandwidthModeEnabled (boolean): Boolean indicating if restricted bandwidth is enabled(true) or disabled(false) on the camera. This setting does not apply to MV2 cameras.
246246
- quality (string): Quality of the camera. Can be one of 'Standard', 'High' or 'Enhanced'. Not all qualities are supported by every camera model.
247-
- resolution (string): Resolution of the camera. Can be one of '1280x720', '1920x1080', '1080x1080' or '2058x2058'. Not all resolutions are supported by every camera model.
247+
- resolution (string): Resolution of the camera. Can be one of '1280x720', '1920x1080', '1080x1080', '2058x2058', '2112x2112', '2880x2880', '2688x1512' or '3840x2160'.Not all resolutions are supported by every camera model.
248248
- motionDetectorVersion (integer): The version of the motion detector that will be used by the camera. Only applies to Gen 2 cameras. Defaults to v2.
249249
"""
250250

@@ -254,7 +254,7 @@ def updateDeviceCameraQualityAndRetention(self, serial: str, **kwargs):
254254
options = ['Standard', 'High', 'Enhanced']
255255
assert kwargs['quality'] in options, f'''"quality" cannot be "{kwargs['quality']}", & must be set to one of: {options}'''
256256
if 'resolution' in kwargs:
257-
options = ['1280x720', '1920x1080', '1080x1080', '2058x2058']
257+
options = ['1280x720', '1920x1080', '1080x1080', '2058x2058', '2112x2112', '2880x2880', '2688x1512', '3840x2160']
258258
assert kwargs['resolution'] in options, f'''"resolution" cannot be "{kwargs['resolution']}", & must be set to one of: {options}'''
259259
if 'motionDetectorVersion' in kwargs:
260260
options = [1, 2]

meraki/aio/api/cellularGateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ def updateNetworkCellularGatewayDhcp(self, networkId: str, **kwargs):
166166
https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-dhcp
167167
168168
- networkId (string): (required)
169-
- dhcpLeaseTime (string): DHCP Lease time for all MG of the network. It can be '30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week'.
170-
- dnsNameservers (string): DNS name servers mode for all MG of the network. It can take 4 different values: 'upstream_dns', 'google_dns', 'opendns', 'custom'.
171-
- dnsCustomNameservers (array): list of fixed IP representing the the DNS Name servers when the mode is 'custom'
169+
- dhcpLeaseTime (string): DHCP Lease time for all MG of the network. Possible values are '30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week'.
170+
- dnsNameservers (string): DNS name servers mode for all MG of the network. Possible values are: 'upstream_dns', 'google_dns', 'opendns', 'custom'.
171+
- dnsCustomNameservers (array): list of fixed IPs representing the the DNS Name servers when the mode is 'custom'
172172
"""
173173

174174
kwargs.update(locals())

meraki/aio/api/devices.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,51 @@ def blinkDeviceLeds(self, serial: str, **kwargs):
8787

8888

8989

90+
def getDeviceCellularSims(self, serial: str):
91+
"""
92+
**Return the SIM and APN configurations for a cellular device.**
93+
https://developer.cisco.com/meraki/api-v1/#!get-device-cellular-sims
94+
95+
- serial (string): (required)
96+
"""
97+
98+
metadata = {
99+
'tags': ['devices', 'configure', 'cellular', 'sims'],
100+
'operation': 'getDeviceCellularSims'
101+
}
102+
serial = urllib.parse.quote(str(serial), safe='')
103+
resource = f'/devices/{serial}/cellular/sims'
104+
105+
return self._session.get(metadata, resource)
106+
107+
108+
109+
def updateDeviceCellularSims(self, serial: str, **kwargs):
110+
"""
111+
**Updates the SIM and APN configurations for a cellular device.**
112+
https://developer.cisco.com/meraki/api-v1/#!update-device-cellular-sims
113+
114+
- serial (string): (required)
115+
- sims (array): List of SIMs. If a SIM was previously configured and not specified in this request, it will remain unchanged.
116+
- simFailover (object): SIM Failover settings.
117+
"""
118+
119+
kwargs.update(locals())
120+
121+
metadata = {
122+
'tags': ['devices', 'configure', 'cellular', 'sims'],
123+
'operation': 'updateDeviceCellularSims'
124+
}
125+
serial = urllib.parse.quote(str(serial), safe='')
126+
resource = f'/devices/{serial}/cellular/sims'
127+
128+
body_params = ['sims', 'simFailover', ]
129+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
130+
131+
return self._session.put(metadata, resource, payload)
132+
133+
134+
90135
def getDeviceClients(self, serial: str, **kwargs):
91136
"""
92137
**List the clients of a device, up to a maximum of a month ago**

0 commit comments

Comments
 (0)