Skip to content

Commit 658e38f

Browse files
author
Shiyue Cheng
committed
updated w/ release 1.0.0b13
1 parent 0ad00ac commit 658e38f

21 files changed

Lines changed: 1013 additions & 57 deletions

meraki_v1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
SUPPRESS_LOGGING, SIMULATE_API_CALLS, BE_GEO_ID, MERAKI_PYTHON_SDK_CALLER
2121
)
2222

23-
__version__ = '1.0.0b12'
23+
__version__ = '1.0.0b13'
2424

2525
class DashboardAPI(object):
2626
"""

meraki_v1/aio/api/appliance.py

Lines changed: 76 additions & 4 deletions
Large diffs are not rendered by default.

meraki_v1/aio/api/camera.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def getDeviceCameraAnalyticsLive(self, serial: str):
77
"""
88
**Returns live state from camera of analytics zones**
99
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-analytics-live
10+
1011
- serial (string): (required)
1112
"""
1213

@@ -22,6 +23,7 @@ def getDeviceCameraAnalyticsOverview(self, serial: str, **kwargs):
2223
"""
2324
**Returns an overview of aggregate analytics data for a timespan**
2425
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-analytics-overview
26+
2527
- serial (string): (required)
2628
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
2729
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0.
@@ -50,6 +52,7 @@ def getDeviceCameraAnalyticsRecent(self, serial: str, **kwargs):
5052
"""
5153
**Returns most recent record for analytics zones**
5254
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-analytics-recent
55+
5356
- serial (string): (required)
5457
- objectType (string): [optional] The object type for which analytics will be retrieved. The default object type is person. The available types are [person, vehicle].
5558
"""
@@ -75,6 +78,7 @@ def getDeviceCameraAnalyticsZones(self, serial: str):
7578
"""
7679
**Returns all configured analytic zones for this camera**
7780
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-analytics-zones
81+
7882
- serial (string): (required)
7983
"""
8084

@@ -90,6 +94,7 @@ def getDeviceCameraAnalyticsZoneHistory(self, serial: str, zoneId: str, **kwargs
9094
"""
9195
**Return historical records for analytic zones**
9296
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-analytics-zone-history
97+
9398
- serial (string): (required)
9499
- zoneId (string): (required)
95100
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
@@ -120,6 +125,7 @@ def generateDeviceCameraSnapshot(self, serial: str, **kwargs):
120125
"""
121126
**Generate a snapshot of what the camera sees at the specified time and return a link to that image.**
122127
https://developer.cisco.com/meraki/api-v1/#!generate-device-camera-snapshot
128+
123129
- serial (string): (required)
124130
- timestamp (string): [optional] The snapshot will be taken from this time on the camera. The timestamp is expected to be in ISO 8601 format. If no timestamp is specified, we will assume current time.
125131
- fullframe (boolean): [optional] If set to "true" the snapshot will be taken at full sensor resolution. This will error if used with timestamp.
@@ -142,6 +148,7 @@ def getDeviceCameraQualityAndRetention(self, serial: str):
142148
"""
143149
**Returns quality and retention settings for the given camera**
144150
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-quality-and-retention
151+
145152
- serial (string): (required)
146153
"""
147154

@@ -157,6 +164,7 @@ def updateDeviceCameraQualityAndRetention(self, serial: str, **kwargs):
157164
"""
158165
**Update quality and retention settings for the given camera**
159166
https://developer.cisco.com/meraki/api-v1/#!update-device-camera-quality-and-retention
167+
160168
- serial (string): (required)
161169
- 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.
162170
- motionBasedRetentionEnabled (boolean): Boolean indicating if motion-based retention is enabled(true) or disabled(false) on the camera
@@ -194,6 +202,7 @@ def getDeviceCameraSense(self, serial: str):
194202
"""
195203
**Returns sense settings for a given camera**
196204
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-sense
205+
197206
- serial (string): (required)
198207
"""
199208

@@ -209,6 +218,7 @@ def updateDeviceCameraSense(self, serial: str, **kwargs):
209218
"""
210219
**Update sense settings for the given camera**
211220
https://developer.cisco.com/meraki/api-v1/#!update-device-camera-sense
221+
212222
- serial (string): (required)
213223
- senseEnabled (boolean): Boolean indicating if sense(license) is enabled(true) or disabled(false) on the camera
214224
- mqttBrokerId (string): The ID of the MQTT broker to be enabled on the camera. A value of null will disable MQTT on the camera
@@ -232,6 +242,7 @@ def getDeviceCameraSenseObjectDetectionModels(self, serial: str):
232242
"""
233243
**Returns the MV Sense object detection model list for the given camera**
234244
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-sense-object-detection-models
245+
235246
- serial (string): (required)
236247
"""
237248

@@ -247,6 +258,7 @@ def getDeviceCameraVideoSettings(self, serial: str):
247258
"""
248259
**Returns video settings for the given camera**
249260
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-video-settings
261+
250262
- serial (string): (required)
251263
"""
252264

@@ -262,6 +274,7 @@ def updateDeviceCameraVideoSettings(self, serial: str, **kwargs):
262274
"""
263275
**Update video settings for the given camera**
264276
https://developer.cisco.com/meraki/api-v1/#!update-device-camera-video-settings
277+
265278
- serial (string): (required)
266279
- externalRtspEnabled (boolean): Boolean indicating if external rtsp stream is exposed
267280
"""
@@ -283,6 +296,7 @@ def getDeviceCameraVideoLink(self, serial: str, **kwargs):
283296
"""
284297
**Returns video link to the specified camera. If a timestamp is supplied, it links to that timestamp.**
285298
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-video-link
299+
286300
- serial (string): (required)
287301
- timestamp (string): [optional] The video link will start at this time. The timestamp should be a string in ISO8601 format. If no timestamp is specified, we will assume current time.
288302
"""
@@ -304,6 +318,7 @@ def getNetworkCameraQualityRetentionProfiles(self, networkId: str):
304318
"""
305319
**List the quality retention profiles for this network**
306320
https://developer.cisco.com/meraki/api-v1/#!get-network-camera-quality-retention-profiles
321+
307322
- networkId (string): (required)
308323
"""
309324

@@ -319,6 +334,7 @@ def createNetworkCameraQualityRetentionProfile(self, networkId: str, name: str,
319334
"""
320335
**Creates new quality retention profile for this network.**
321336
https://developer.cisco.com/meraki/api-v1/#!create-network-camera-quality-retention-profile
337+
322338
- networkId (string): (required)
323339
- name (string): The name of the new profile. Must be unique. This parameter is required.
324340
- motionBasedRetentionEnabled (boolean): Deletes footage older than 3 days in which no motion was detected. Can be either true or false. Defaults to false.
@@ -348,6 +364,7 @@ def getNetworkCameraQualityRetentionProfile(self, networkId: str, qualityRetenti
348364
"""
349365
**Retrieve a single quality retention profile**
350366
https://developer.cisco.com/meraki/api-v1/#!get-network-camera-quality-retention-profile
367+
351368
- networkId (string): (required)
352369
- qualityRetentionProfileId (string): (required)
353370
"""
@@ -364,6 +381,7 @@ def updateNetworkCameraQualityRetentionProfile(self, networkId: str, qualityRete
364381
"""
365382
**Update an existing quality retention profile for this network.**
366383
https://developer.cisco.com/meraki/api-v1/#!update-network-camera-quality-retention-profile
384+
367385
- networkId (string): (required)
368386
- qualityRetentionProfileId (string): (required)
369387
- name (string): The name of the new profile. Must be unique.
@@ -394,6 +412,7 @@ def deleteNetworkCameraQualityRetentionProfile(self, networkId: str, qualityRete
394412
"""
395413
**Delete an existing quality retention profile for this network.**
396414
https://developer.cisco.com/meraki/api-v1/#!delete-network-camera-quality-retention-profile
415+
397416
- networkId (string): (required)
398417
- qualityRetentionProfileId (string): (required)
399418
"""
@@ -410,6 +429,7 @@ def getNetworkCameraSchedules(self, networkId: str):
410429
"""
411430
**Returns a list of all camera recording schedules.**
412431
https://developer.cisco.com/meraki/api-v1/#!get-network-camera-schedules
432+
413433
- networkId (string): (required)
414434
"""
415435

meraki_v1/aio/api/cellularGateway.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def getDeviceCellularGatewayLan(self, serial: str):
77
"""
88
**Show the LAN Settings of a MG**
99
https://developer.cisco.com/meraki/api-v1/#!get-device-cellular-gateway-lan
10+
1011
- serial (string): (required)
1112
"""
1213

@@ -22,6 +23,7 @@ def updateDeviceCellularGatewayLan(self, serial: str, **kwargs):
2223
"""
2324
**Update the LAN Settings for a single MG.**
2425
https://developer.cisco.com/meraki/api-v1/#!update-device-cellular-gateway-lan
26+
2527
- serial (string): (required)
2628
- reservedIpRanges (array): list of all reserved IP ranges for a single MG
2729
- fixedIpAssignments (array): list of all fixed IP assignments for a single MG
@@ -44,6 +46,7 @@ def getDeviceCellularGatewayPortForwardingRules(self, serial: str):
4446
"""
4547
**Returns the port forwarding rules for a single MG.**
4648
https://developer.cisco.com/meraki/api-v1/#!get-device-cellular-gateway-port-forwarding-rules
49+
4750
- serial (string): (required)
4851
"""
4952

@@ -59,6 +62,7 @@ def updateDeviceCellularGatewayPortForwardingRules(self, serial: str, **kwargs):
5962
"""
6063
**Updates the port forwarding rules for a single MG.**
6164
https://developer.cisco.com/meraki/api-v1/#!update-device-cellular-gateway-port-forwarding-rules
65+
6266
- serial (string): (required)
6367
- rules (array): An array of port forwarding params
6468
"""
@@ -80,6 +84,7 @@ def getNetworkCellularGatewayConnectivityMonitoringDestinations(self, networkId:
8084
"""
8185
**Return the connectivity testing destinations for an MG network**
8286
https://developer.cisco.com/meraki/api-v1/#!get-network-cellular-gateway-connectivity-monitoring-destinations
87+
8388
- networkId (string): (required)
8489
"""
8590

@@ -95,6 +100,7 @@ def updateNetworkCellularGatewayConnectivityMonitoringDestinations(self, network
95100
"""
96101
**Update the connectivity testing destinations for an MG network**
97102
https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-connectivity-monitoring-destinations
103+
98104
- networkId (string): (required)
99105
- destinations (array): The list of connectivity monitoring destinations
100106
"""
@@ -116,6 +122,7 @@ def getNetworkCellularGatewayDhcp(self, networkId: str):
116122
"""
117123
**List common DHCP settings of MGs**
118124
https://developer.cisco.com/meraki/api-v1/#!get-network-cellular-gateway-dhcp
125+
119126
- networkId (string): (required)
120127
"""
121128

@@ -131,6 +138,7 @@ def updateNetworkCellularGatewayDhcp(self, networkId: str, **kwargs):
131138
"""
132139
**Update common DHCP settings of MGs**
133140
https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-dhcp
141+
134142
- networkId (string): (required)
135143
- 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'.
136144
- dnsNameservers (string): DNS name servers mode for all MG of the network. It can take 4 different values: 'upstream_dns', 'google_dns', 'opendns', 'custom'.
@@ -154,6 +162,7 @@ def getNetworkCellularGatewaySubnetPool(self, networkId: str):
154162
"""
155163
**Return the subnet pool and mask configured for MGs in the network.**
156164
https://developer.cisco.com/meraki/api-v1/#!get-network-cellular-gateway-subnet-pool
165+
157166
- networkId (string): (required)
158167
"""
159168

@@ -169,6 +178,7 @@ def updateNetworkCellularGatewaySubnetPool(self, networkId: str, **kwargs):
169178
"""
170179
**Update the subnet pool and mask configuration for MGs in the network.**
171180
https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-subnet-pool
181+
172182
- networkId (string): (required)
173183
- mask (integer): Mask used for the subnet of all MGs in this network.
174184
- cidr (string): CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool.
@@ -191,6 +201,7 @@ def getNetworkCellularGatewayUplink(self, networkId: str):
191201
"""
192202
**Returns the uplink settings for your MG network.**
193203
https://developer.cisco.com/meraki/api-v1/#!get-network-cellular-gateway-uplink
204+
194205
- networkId (string): (required)
195206
"""
196207

@@ -206,6 +217,7 @@ def updateNetworkCellularGatewayUplink(self, networkId: str, **kwargs):
206217
"""
207218
**Updates the uplink settings for your MG network.**
208219
https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-uplink
220+
209221
- networkId (string): (required)
210222
- bandwidthLimits (object): The bandwidth settings for the 'cellular' uplink
211223
"""

meraki_v1/aio/api/devices.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def getDevice(self, serial: str):
77
"""
88
**Return a single device**
99
https://developer.cisco.com/meraki/api-v1/#!get-device
10+
1011
- serial (string): (required)
1112
"""
1213

@@ -22,6 +23,7 @@ def updateDevice(self, serial: str, **kwargs):
2223
"""
2324
**Update the attributes of a device**
2425
https://developer.cisco.com/meraki/api-v1/#!update-device
26+
2527
- serial (string): (required)
2628
- name (string): The name of a device
2729
- tags (array): The list of tags of a device
@@ -51,6 +53,7 @@ def blinkDeviceLeds(self, serial: str, **kwargs):
5153
"""
5254
**Blink the LEDs on a device**
5355
https://developer.cisco.com/meraki/api-v1/#!blink-device-leds
56+
5457
- serial (string): (required)
5558
- duration (integer): The duration in seconds. Must be between 5 and 120. Default is 20 seconds
5659
- period (integer): The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds
@@ -74,6 +77,7 @@ def getDeviceClients(self, serial: str, **kwargs):
7477
"""
7578
**List the clients of a device, up to a maximum of a month ago. The usage of each client is returned in kilobytes. If the device is a switch, the switchport is returned; otherwise the switchport field is null.**
7679
https://developer.cisco.com/meraki/api-v1/#!get-device-clients
80+
7781
- serial (string): (required)
7882
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 31 days from today.
7983
- timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameter t0. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
@@ -96,6 +100,7 @@ def getDeviceLldpCdp(self, serial: str):
96100
"""
97101
**List LLDP and CDP information for a device**
98102
https://developer.cisco.com/meraki/api-v1/#!get-device-lldp-cdp
103+
99104
- serial (string): (required)
100105
"""
101106

@@ -111,6 +116,7 @@ def getDeviceLossAndLatencyHistory(self, serial: str, ip: str, **kwargs):
111116
"""
112117
**Get the uplink loss percentage and latency in milliseconds for a wired network device.**
113118
https://developer.cisco.com/meraki/api-v1/#!get-device-loss-and-latency-history
119+
114120
- serial (string): (required)
115121
- ip (string): The destination IP used to obtain the requested stats. This is required.
116122
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
@@ -141,6 +147,7 @@ def getDeviceManagementInterface(self, serial: str):
141147
"""
142148
**Return the management interface settings for a device**
143149
https://developer.cisco.com/meraki/api-v1/#!get-device-management-interface
150+
144151
- serial (string): (required)
145152
"""
146153

@@ -156,6 +163,7 @@ def updateDeviceManagementInterface(self, serial: str, **kwargs):
156163
"""
157164
**Update the management interface settings for a device**
158165
https://developer.cisco.com/meraki/api-v1/#!update-device-management-interface
166+
159167
- serial (string): (required)
160168
- wan1 (object): WAN 1 settings
161169
- wan2 (object): WAN 2 settings (only for MX devices)
@@ -178,6 +186,7 @@ def rebootDevice(self, serial: str):
178186
"""
179187
**Reboot a device**
180188
https://developer.cisco.com/meraki/api-v1/#!reboot-device
189+
181190
- serial (string): (required)
182191
"""
183192

@@ -193,6 +202,7 @@ def getDeviceUplink(self, serial: str):
193202
"""
194203
**Return the uplink information for a device.**
195204
https://developer.cisco.com/meraki/api-v1/#!get-device-uplink
205+
196206
- serial (string): (required)
197207
"""
198208

meraki_v1/aio/api/insight.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def getOrganizationInsightMonitoredMediaServers(self, organizationId: str):
77
"""
88
**List the monitored media servers for this organization. Only valid for organizations with Meraki Insight.**
99
https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-monitored-media-servers
10+
1011
- organizationId (string): (required)
1112
"""
1213

@@ -22,6 +23,7 @@ def createOrganizationInsightMonitoredMediaServer(self, organizationId: str, nam
2223
"""
2324
**Add a media server to be monitored for this organization. Only valid for organizations with Meraki Insight.**
2425
https://developer.cisco.com/meraki/api-v1/#!create-organization-insight-monitored-media-server
26+
2527
- organizationId (string): (required)
2628
- name (string): The name of the VoIP provider
2729
- address (string): The IP address (IPv4 only) or hostname of the media server to monitor
@@ -44,6 +46,7 @@ def getOrganizationInsightMonitoredMediaServer(self, organizationId: str, monito
4446
"""
4547
**Return a monitored media server for this organization. Only valid for organizations with Meraki Insight.**
4648
https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-monitored-media-server
49+
4750
- organizationId (string): (required)
4851
- monitoredMediaServerId (string): (required)
4952
"""
@@ -60,6 +63,7 @@ def updateOrganizationInsightMonitoredMediaServer(self, organizationId: str, mon
6063
"""
6164
**Update a monitored media server for this organization. Only valid for organizations with Meraki Insight.**
6265
https://developer.cisco.com/meraki/api-v1/#!update-organization-insight-monitored-media-server
66+
6367
- organizationId (string): (required)
6468
- monitoredMediaServerId (string): (required)
6569
- name (string): The name of the VoIP provider
@@ -83,6 +87,7 @@ def deleteOrganizationInsightMonitoredMediaServer(self, organizationId: str, mon
8387
"""
8488
**Delete a monitored media server from this organization. Only valid for organizations with Meraki Insight.**
8589
https://developer.cisco.com/meraki/api-v1/#!delete-organization-insight-monitored-media-server
90+
8691
- organizationId (string): (required)
8792
- monitoredMediaServerId (string): (required)
8893
"""

0 commit comments

Comments
 (0)