Skip to content

Commit 096676a

Browse files
author
Shiyue Cheng
committed
updated w/ release 1.1.0b2
1 parent 59d50cd commit 096676a

21 files changed

Lines changed: 119 additions & 139 deletions

meraki/__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.1.0b1'
23+
__version__ = '1.1.0b2'
2424

2525
class DashboardAPI(object):
2626
"""

meraki/aio/api/appliance.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def getDeviceApplianceDhcpSubnets(self, serial: str):
2121

2222
def getDeviceAppliancePerformance(self, serial: str):
2323
"""
24-
**Return the performance score for a single device. Only primary MX devices supported. If no data is available, a 204 error code is returned.**
24+
**Return the performance score for a single MX**
2525
https://developer.cisco.com/meraki/api-v1/#!get-device-appliance-performance
2626
2727
- serial (string): (required)
@@ -37,7 +37,7 @@ def getDeviceAppliancePerformance(self, serial: str):
3737

3838
def getNetworkApplianceClientSecurityEvents(self, networkId: str, clientId: str, total_pages=1, direction='next', **kwargs):
3939
"""
40-
**List the security events for a client. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
40+
**List the security events for a client**
4141
https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-client-security-events
4242
4343
- networkId (string): (required)
@@ -986,11 +986,7 @@ def updateNetworkApplianceTrafficShapingRules(self, networkId: str, **kwargs):
986986
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-traffic-shaping-rules
987987
988988
- networkId (string): (required)
989-
- defaultRulesEnabled (boolean): Whether default traffic shaping rules are enabled (true) or disabled (false).
990-
There are 4 default rules, which can
991-
be seen on your network's traffic shaping page. Note that default rules
992-
count against the rule limit of 8.
993-
989+
- defaultRulesEnabled (boolean): Whether default traffic shaping rules are enabled (true) or disabled (false). There are 4 default rules, which can be seen on your network's traffic shaping page. Note that default rules count against the rule limit of 8.
994990
- rules (array): An array of traffic shaping rules. Rules are applied in the order that
995991
they are specified in. An empty list (or null) means no rules. Note that
996992
you are allowed a maximum of 8 rules.
@@ -1270,7 +1266,7 @@ def deleteNetworkApplianceVlan(self, networkId: str, vlanId: str):
12701266

12711267
def getNetworkApplianceVpnSiteToSiteVpn(self, networkId: str):
12721268
"""
1273-
**Return the site-to-site VPN settings of a network. Only valid for MX networks.**
1269+
**Return the site-to-site VPN settings of a network**
12741270
https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-vpn-site-to-site-vpn
12751271
12761272
- networkId (string): (required)
@@ -1286,7 +1282,7 @@ def getNetworkApplianceVpnSiteToSiteVpn(self, networkId: str):
12861282

12871283
def updateNetworkApplianceVpnSiteToSiteVpn(self, networkId: str, mode: str, **kwargs):
12881284
"""
1289-
**Update the site-to-site VPN settings of a network. Only valid for MX networks in NAT mode.**
1285+
**Update the site-to-site VPN settings of a network**
12901286
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-vpn-site-to-site-vpn
12911287
12921288
- networkId (string): (required)

meraki/aio/api/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def updateDeviceCameraVideoSettings(self, serial: str, **kwargs):
294294

295295
def getDeviceCameraVideoLink(self, serial: str, **kwargs):
296296
"""
297-
**Returns video link to the specified camera. If a timestamp is supplied, it links to that timestamp.**
297+
**Returns video link to the specified camera**
298298
https://developer.cisco.com/meraki/api-v1/#!get-device-camera-video-link
299299
300300
- serial (string): (required)

meraki/aio/api/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def blinkDeviceLeds(self, serial: str, **kwargs):
7575

7676
def getDeviceClients(self, serial: str, **kwargs):
7777
"""
78-
**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.**
78+
**List the clients of a device, up to a maximum of a month ago**
7979
https://developer.cisco.com/meraki/api-v1/#!get-device-clients
8080
8181
- serial (string): (required)

meraki/aio/api/insight.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def __init__(self, session):
55

66
def getOrganizationInsightMonitoredMediaServers(self, organizationId: str):
77
"""
8-
**List the monitored media servers for this organization. Only valid for organizations with Meraki Insight.**
8+
**List the monitored media servers for this organization**
99
https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-monitored-media-servers
1010
1111
- organizationId (string): (required)
@@ -19,32 +19,33 @@ def getOrganizationInsightMonitoredMediaServers(self, organizationId: str):
1919

2020
return self._session.get(metadata, resource)
2121

22-
def createOrganizationInsightMonitoredMediaServer(self, organizationId: str, name: str, address: str):
22+
def createOrganizationInsightMonitoredMediaServer(self, organizationId: str, name: str, address: str, **kwargs):
2323
"""
24-
**Add a media server to be monitored for this organization. Only valid for organizations with Meraki Insight.**
24+
**Add a media server to be monitored for this organization**
2525
https://developer.cisco.com/meraki/api-v1/#!create-organization-insight-monitored-media-server
2626
2727
- organizationId (string): (required)
2828
- name (string): The name of the VoIP provider
2929
- address (string): The IP address (IPv4 only) or hostname of the media server to monitor
30+
- bestEffortMonitoringEnabled (boolean): Indicates that if the media server doesn't respond to ICMP pings, the nearest hop will be used in its stead.
3031
"""
3132

32-
kwargs = locals()
33+
kwargs.update(locals())
3334

3435
metadata = {
3536
'tags': ['insight', 'configure', 'monitoredMediaServers'],
3637
'operation': 'createOrganizationInsightMonitoredMediaServer'
3738
}
3839
resource = f'/organizations/{organizationId}/insight/monitoredMediaServers'
3940

40-
body_params = ['name', 'address', ]
41+
body_params = ['name', 'address', 'bestEffortMonitoringEnabled', ]
4142
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
4243

4344
return self._session.post(metadata, resource, payload)
4445

4546
def getOrganizationInsightMonitoredMediaServer(self, organizationId: str, monitoredMediaServerId: str):
4647
"""
47-
**Return a monitored media server for this organization. Only valid for organizations with Meraki Insight.**
48+
**Return a monitored media server for this organization**
4849
https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-monitored-media-server
4950
5051
- organizationId (string): (required)
@@ -61,13 +62,14 @@ def getOrganizationInsightMonitoredMediaServer(self, organizationId: str, monito
6162

6263
def updateOrganizationInsightMonitoredMediaServer(self, organizationId: str, monitoredMediaServerId: str, **kwargs):
6364
"""
64-
**Update a monitored media server for this organization. Only valid for organizations with Meraki Insight.**
65+
**Update a monitored media server for this organization**
6566
https://developer.cisco.com/meraki/api-v1/#!update-organization-insight-monitored-media-server
6667
6768
- organizationId (string): (required)
6869
- monitoredMediaServerId (string): (required)
6970
- name (string): The name of the VoIP provider
7071
- address (string): The IP address (IPv4 only) or hostname of the media server to monitor
72+
- bestEffortMonitoringEnabled (boolean): Indicates that if the media server doesn't respond to ICMP pings, the nearest hop will be used in its stead.
7173
"""
7274

7375
kwargs.update(locals())
@@ -78,14 +80,14 @@ def updateOrganizationInsightMonitoredMediaServer(self, organizationId: str, mon
7880
}
7981
resource = f'/organizations/{organizationId}/insight/monitoredMediaServers/{monitoredMediaServerId}'
8082

81-
body_params = ['name', 'address', ]
83+
body_params = ['name', 'address', 'bestEffortMonitoringEnabled', ]
8284
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
8385

8486
return self._session.put(metadata, resource, payload)
8587

8688
def deleteOrganizationInsightMonitoredMediaServer(self, organizationId: str, monitoredMediaServerId: str):
8789
"""
88-
**Delete a monitored media server from this organization. Only valid for organizations with Meraki Insight.**
90+
**Delete a monitored media server from this organization**
8991
https://developer.cisco.com/meraki/api-v1/#!delete-organization-insight-monitored-media-server
9092
9193
- organizationId (string): (required)

meraki/aio/api/networks.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def getNetworkBluetoothClients(self, networkId: str, total_pages=1, direction='n
153153

154154
def getNetworkBluetoothClient(self, networkId: str, bluetoothClientId: str, **kwargs):
155155
"""
156-
**Return a Bluetooth client. Bluetooth clients can be identified by their ID or their MAC.**
156+
**Return a Bluetooth client**
157157
https://developer.cisco.com/meraki/api-v1/#!get-network-bluetooth-client
158158
159159
- networkId (string): (required)
@@ -205,7 +205,7 @@ def getNetworkClients(self, networkId: str, total_pages=1, direction='next', **k
205205

206206
def provisionNetworkClients(self, networkId: str, clients: list, devicePolicy: str, **kwargs):
207207
"""
208-
**Provisions a client with a name and policy. Clients can be provisioned before they associate to the network.**
208+
**Provisions a client with a name and policy**
209209
https://developer.cisco.com/meraki/api-v1/#!provision-network-clients
210210
211211
- networkId (string): (required)
@@ -235,7 +235,7 @@ def provisionNetworkClients(self, networkId: str, clients: list, devicePolicy: s
235235

236236
def getNetworkClient(self, networkId: str, clientId: str):
237237
"""
238-
**Return the client associated with the given identifier. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
238+
**Return the client associated with the given identifier**
239239
https://developer.cisco.com/meraki/api-v1/#!get-network-client
240240
241241
- networkId (string): (required)
@@ -252,7 +252,7 @@ def getNetworkClient(self, networkId: str, clientId: str):
252252

253253
def getNetworkClientPolicy(self, networkId: str, clientId: str):
254254
"""
255-
**Return the policy assigned to a client on the network. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
255+
**Return the policy assigned to a client on the network**
256256
https://developer.cisco.com/meraki/api-v1/#!get-network-client-policy
257257
258258
- networkId (string): (required)
@@ -269,7 +269,7 @@ def getNetworkClientPolicy(self, networkId: str, clientId: str):
269269

270270
def updateNetworkClientPolicy(self, networkId: str, clientId: str, devicePolicy: str, **kwargs):
271271
"""
272-
**Update the policy assigned to a client on the network. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
272+
**Update the policy assigned to a client on the network**
273273
https://developer.cisco.com/meraki/api-v1/#!update-network-client-policy
274274
275275
- networkId (string): (required)
@@ -293,7 +293,7 @@ def updateNetworkClientPolicy(self, networkId: str, clientId: str, devicePolicy:
293293

294294
def getNetworkClientSplashAuthorizationStatus(self, networkId: str, clientId: str):
295295
"""
296-
**Return the splash authorization for a client, for each SSID they've associated with through splash. Only enabled SSIDs with Click-through splash enabled will be included. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
296+
**Return the splash authorization for a client, for each SSID they've associated with through splash**
297297
https://developer.cisco.com/meraki/api-v1/#!get-network-client-splash-authorization-status
298298
299299
- networkId (string): (required)
@@ -310,7 +310,7 @@ def getNetworkClientSplashAuthorizationStatus(self, networkId: str, clientId: st
310310

311311
def updateNetworkClientSplashAuthorizationStatus(self, networkId: str, clientId: str, ssids: dict):
312312
"""
313-
**Update a client's splash authorization. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
313+
**Update a client's splash authorization**
314314
https://developer.cisco.com/meraki/api-v1/#!update-network-client-splash-authorization-status
315315
316316
- networkId (string): (required)
@@ -333,7 +333,7 @@ def updateNetworkClientSplashAuthorizationStatus(self, networkId: str, clientId:
333333

334334
def getNetworkClientTrafficHistory(self, networkId: str, clientId: str, total_pages=1, direction='next', **kwargs):
335335
"""
336-
**Return the client's network traffic data over time. Usage data is in kilobytes. This endpoint requires detailed traffic analysis to be enabled on the Network-wide > General page. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
336+
**Return the client's network traffic data over time**
337337
https://developer.cisco.com/meraki/api-v1/#!get-network-client-traffic-history
338338
339339
- networkId (string): (required)
@@ -360,7 +360,7 @@ def getNetworkClientTrafficHistory(self, networkId: str, clientId: str, total_pa
360360

361361
def getNetworkClientUsageHistory(self, networkId: str, clientId: str):
362362
"""
363-
**Return the client's daily usage history. Usage data is in kilobytes. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.**
363+
**Return the client's daily usage history**
364364
https://developer.cisco.com/meraki/api-v1/#!get-network-client-usage-history
365365
366366
- networkId (string): (required)
@@ -1040,7 +1040,7 @@ def getNetworkNetworkHealthChannelUtilization(self, networkId: str, total_pages=
10401040

10411041
def getNetworkPiiPiiKeys(self, networkId: str, **kwargs):
10421042
"""
1043-
**List the keys required to access Personally Identifiable Information (PII) for a given identifier. Exactly one identifier will be accepted. If the organization contains org-wide Systems Manager users matching the key provided then there will be an entry with the key "0" containing the applicable keys.**
1043+
**List the keys required to access Personally Identifiable Information (PII) for a given identifier**
10441044
https://developer.cisco.com/meraki/api-v1/#!get-network-pii-pii-keys
10451045
10461046
- networkId (string): (required)
@@ -1149,7 +1149,7 @@ def deleteNetworkPiiRequest(self, networkId: str, requestId: str):
11491149

11501150
def getNetworkPiiSmDevicesForKey(self, networkId: str, **kwargs):
11511151
"""
1152-
**Given a piece of Personally Identifiable Information (PII), return the Systems Manager device ID(s) associated with that identifier. These device IDs can be used with the Systems Manager API endpoints to retrieve device details. Exactly one identifier will be accepted.**
1152+
**Given a piece of Personally Identifiable Information (PII), return the Systems Manager device ID(s) associated with that identifier**
11531153
https://developer.cisco.com/meraki/api-v1/#!get-network-pii-sm-devices-for-key
11541154
11551155
- networkId (string): (required)
@@ -1176,7 +1176,7 @@ def getNetworkPiiSmDevicesForKey(self, networkId: str, **kwargs):
11761176

11771177
def getNetworkPiiSmOwnersForKey(self, networkId: str, **kwargs):
11781178
"""
1179-
**Given a piece of Personally Identifiable Information (PII), return the Systems Manager owner ID(s) associated with that identifier. These owner IDs can be used with the Systems Manager API endpoints to retrieve owner details. Exactly one identifier will be accepted.**
1179+
**Given a piece of Personally Identifiable Information (PII), return the Systems Manager owner ID(s) associated with that identifier**
11801180
https://developer.cisco.com/meraki/api-v1/#!get-network-pii-sm-owners-for-key
11811181
11821182
- networkId (string): (required)
@@ -1368,17 +1368,13 @@ def updateNetworkSyslogServers(self, networkId: str, servers: list):
13681368

13691369
def getNetworkTraffic(self, networkId: str, **kwargs):
13701370
"""
1371-
** The traffic analysis data for this network.
1372-
<a href="https://documentation.meraki.com/MR/Monitoring_and_Reporting/Hostname_Visibility">Traffic Analysis with Hostname Visibility</a> must be enabled on the network.
1373-
**
1371+
**Return the traffic analysis data for this network**
13741372
https://developer.cisco.com/meraki/api-v1/#!get-network-traffic
13751373
13761374
- networkId (string): (required)
13771375
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 30 days from today.
13781376
- 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 30 days.
1379-
- deviceType (string): Filter the data by device type: 'combined', 'wireless', 'switch' or 'appliance'. Defaults to 'combined'.
1380-
When using 'combined', for each rule the data will come from the device type with the most usage.
1381-
1377+
- deviceType (string): Filter the data by device type: 'combined', 'wireless', 'switch' or 'appliance'. Defaults to 'combined'. When using 'combined', for each rule the data will come from the device type with the most usage.
13821378
"""
13831379

13841380
kwargs.update(locals())

0 commit comments

Comments
 (0)