Skip to content

Commit 8a350b2

Browse files
TKIPisalegacycipherGitHub Action
andauthored
Automatically regenerated library. (#230)
Co-authored-by: GitHub Action <support@meraki.com>
1 parent 7e587ea commit 8a350b2

11 files changed

Lines changed: 373 additions & 15 deletions

File tree

meraki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
)
4444
from meraki.rest_session import *
4545

46-
__version__ = '1.38.0'
46+
__version__ = '1.39.0'
4747

4848

4949
class DashboardAPI(object):

meraki/aio/api/devices.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def createDeviceLiveToolsPing(self, serial: str, target: str, **kwargs):
166166
- serial (string): Serial
167167
- target (string): FQDN, IPv4 or IPv6 address
168168
- count (integer): Count parameter to pass to ping. [1..5], default 5
169+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
169170
"""
170171

171172
kwargs.update(locals())
@@ -177,7 +178,7 @@ def createDeviceLiveToolsPing(self, serial: str, target: str, **kwargs):
177178
serial = urllib.parse.quote(str(serial), safe='')
178179
resource = f'/devices/{serial}/liveTools/ping'
179180

180-
body_params = ['target', 'count', ]
181+
body_params = ['target', 'count', 'callback', ]
181182
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
182183

183184
return self._session.post(metadata, resource, payload)
@@ -212,6 +213,7 @@ def createDeviceLiveToolsPingDevice(self, serial: str, **kwargs):
212213
213214
- serial (string): Serial
214215
- count (integer): Count parameter to pass to ping. [1..5], default 5
216+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
215217
"""
216218

217219
kwargs.update(locals())
@@ -223,7 +225,7 @@ def createDeviceLiveToolsPingDevice(self, serial: str, **kwargs):
223225
serial = urllib.parse.quote(str(serial), safe='')
224226
resource = f'/devices/{serial}/liveTools/pingDevice'
225227

226-
body_params = ['count', ]
228+
body_params = ['count', 'callback', ]
227229
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
228230

229231
return self._session.post(metadata, resource, payload)

meraki/aio/api/organizations.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def createOrganizationActionBatch(self, organizationId: str, actions: list, **kw
123123
- actions (array): A set of changes to make as part of this action (<a href='https://developer.cisco.com/meraki/api/#/rest/guides/action-batches/'>more details</a>)
124124
- confirmed (boolean): Set to true for immediate execution. Set to false if the action should be previewed before executing. This property cannot be unset once it is true. Defaults to false.
125125
- synchronous (boolean): Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch. Defaults to false.
126+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
126127
"""
127128

128129
kwargs.update(locals())
@@ -134,7 +135,7 @@ def createOrganizationActionBatch(self, organizationId: str, actions: list, **kw
134135
organizationId = urllib.parse.quote(str(organizationId), safe='')
135136
resource = f'/organizations/{organizationId}/actionBatches'
136137

137-
body_params = ['confirmed', 'synchronous', 'actions', ]
138+
body_params = ['confirmed', 'synchronous', 'actions', 'callback', ]
138139
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
139140

140141
return self._session.post(metadata, resource, payload)
@@ -2268,6 +2269,7 @@ def getOrganizationInventoryOnboardingCloudMonitoringNetworks(self, organization
22682269
- deviceType (string): Device Type switch or wireless controller
22692270
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
22702271
- direction (string): direction to paginate, either "next" (default) or "prev" page
2272+
- search (string): Optional parameter to search on network name
22712273
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100000. Default is 1000.
22722274
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
22732275
- endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
@@ -2286,7 +2288,7 @@ def getOrganizationInventoryOnboardingCloudMonitoringNetworks(self, organization
22862288
organizationId = urllib.parse.quote(str(organizationId), safe='')
22872289
resource = f'/organizations/{organizationId}/inventory/onboarding/cloudMonitoring/networks'
22882290

2289-
query_params = ['deviceType', 'perPage', 'startingAfter', 'endingBefore', ]
2291+
query_params = ['deviceType', 'search', 'perPage', 'startingAfter', 'endingBefore', ]
22902292
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
22912293

22922294
return self._session.get_pages(metadata, resource, params, total_pages, direction)
@@ -3597,6 +3599,27 @@ def getOrganizationWebhooksAlertTypes(self, organizationId: str, **kwargs):
35973599

35983600

35993601

3602+
def getOrganizationWebhooksCallbacksStatus(self, organizationId: str, callbackId: str):
3603+
"""
3604+
**Return the status of an API callback**
3605+
https://developer.cisco.com/meraki/api-v1/#!get-organization-webhooks-callbacks-status
3606+
3607+
- organizationId (string): Organization ID
3608+
- callbackId (string): Callback ID
3609+
"""
3610+
3611+
metadata = {
3612+
'tags': ['organizations', 'configure', 'webhooks', 'callbacks', 'statuses'],
3613+
'operation': 'getOrganizationWebhooksCallbacksStatus'
3614+
}
3615+
organizationId = urllib.parse.quote(str(organizationId), safe='')
3616+
callbackId = urllib.parse.quote(str(callbackId), safe='')
3617+
resource = f'/organizations/{organizationId}/webhooks/callbacks/statuses/{callbackId}'
3618+
3619+
return self._session.get(metadata, resource)
3620+
3621+
3622+
36003623
def getOrganizationWebhooksLogs(self, organizationId: str, total_pages=1, direction='next', **kwargs):
36013624
"""
36023625
**Return the log of webhook POSTs sent**

meraki/aio/api/sm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def getNetworkSmDevices(self, networkId: str, total_pages=1, direction='next', *
7272
- wifiMacs (array): Filter devices by wifi mac(s).
7373
- serials (array): Filter devices by serial(s).
7474
- ids (array): Filter devices by id(s).
75+
- uuids (array): Filter devices by uuid(s).
7576
- scope (array): Specify a scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) and a set of tags.
7677
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.
7778
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
@@ -87,10 +88,10 @@ def getNetworkSmDevices(self, networkId: str, total_pages=1, direction='next', *
8788
networkId = urllib.parse.quote(str(networkId), safe='')
8889
resource = f'/networks/{networkId}/sm/devices'
8990

90-
query_params = ['fields', 'wifiMacs', 'serials', 'ids', 'scope', 'perPage', 'startingAfter', 'endingBefore', ]
91+
query_params = ['fields', 'wifiMacs', 'serials', 'ids', 'uuids', 'scope', 'perPage', 'startingAfter', 'endingBefore', ]
9192
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
9293

93-
array_params = ['fields', 'wifiMacs', 'serials', 'ids', 'scope', ]
94+
array_params = ['fields', 'wifiMacs', 'serials', 'ids', 'uuids', 'scope', ]
9495
for k, v in kwargs.items():
9596
if k.strip() in array_params:
9697
params[f'{k.strip()}[]'] = kwargs[f'{k}']
@@ -663,7 +664,7 @@ def getNetworkSmDeviceWlanLists(self, networkId: str, deviceId: str):
663664

664665
def getNetworkSmProfiles(self, networkId: str):
665666
"""
666-
**List all the profiles in the network**
667+
**List all profiles in a network**
667668
https://developer.cisco.com/meraki/api-v1/#!get-network-sm-profiles
668669
669670
- networkId (string): Network ID

meraki/aio/api/switch.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,6 +2472,33 @@ def updateOrganizationConfigTemplateSwitchProfilePort(self, organizationId: str,
24722472

24732473

24742474

2475+
def getOrganizationSummarySwitchPowerHistory(self, organizationId: str, **kwargs):
2476+
"""
2477+
**Returns the total PoE power draw for all switch ports in the organization over the requested timespan (by default the last 24 hours)**
2478+
https://developer.cisco.com/meraki/api-v1/#!get-organization-summary-switch-power-history
2479+
2480+
- organizationId (string): Organization ID
2481+
- t0 (string): The beginning of the timespan for the data.
2482+
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
2483+
- timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
2484+
"""
2485+
2486+
kwargs.update(locals())
2487+
2488+
metadata = {
2489+
'tags': ['switch', 'monitor', 'summary', 'power', 'history'],
2490+
'operation': 'getOrganizationSummarySwitchPowerHistory'
2491+
}
2492+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2493+
resource = f'/organizations/{organizationId}/summary/switch/power/history'
2494+
2495+
query_params = ['t0', 't1', 'timespan', ]
2496+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2497+
2498+
return self._session.get(metadata, resource, params)
2499+
2500+
2501+
24752502
def cloneOrganizationSwitchDevices(self, organizationId: str, sourceSerial: str, targetSerials: list):
24762503
"""
24772504
**Clone port-level and some switch-level configuration settings from a source switch to one or more target switches**

meraki/aio/api/wireless.py

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,3 +2429,129 @@ def getOrganizationWirelessDevicesEthernetStatuses(self, organizationId: str, to
24292429

24302430
return self._session.get_pages(metadata, resource, params, total_pages, direction)
24312431

2432+
2433+
2434+
def getOrganizationWirelessDevicesPacketLossByClient(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2435+
"""
2436+
**Get average packet loss for the given timespan for all clients in the organization.**
2437+
https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-devices-packet-loss-by-client
2438+
2439+
- organizationId (string): Organization ID
2440+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2441+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2442+
- networkIds (array): Filter results by network.
2443+
- ssids (array): Filter results by SSID number.
2444+
- bands (array): Filter results by band. Valid bands are: 2.4, 5, and 6.
2445+
- macs (array): Filter results by client mac address(es).
2446+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.
2447+
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
2448+
- endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
2449+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
2450+
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 90 days after t0.
2451+
- timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be greater than or equal to 5 minutes and be less than or equal to 90 days. The default is 7 days.
2452+
"""
2453+
2454+
kwargs.update(locals())
2455+
2456+
metadata = {
2457+
'tags': ['wireless', 'monitor', 'devices', 'packetLoss', 'byClient'],
2458+
'operation': 'getOrganizationWirelessDevicesPacketLossByClient'
2459+
}
2460+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2461+
resource = f'/organizations/{organizationId}/wireless/devices/packetLoss/byClient'
2462+
2463+
query_params = ['networkIds', 'ssids', 'bands', 'macs', 'perPage', 'startingAfter', 'endingBefore', 't0', 't1', 'timespan', ]
2464+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2465+
2466+
array_params = ['networkIds', 'ssids', 'bands', 'macs', ]
2467+
for k, v in kwargs.items():
2468+
if k.strip() in array_params:
2469+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2470+
params.pop(k.strip())
2471+
2472+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2473+
2474+
2475+
2476+
def getOrganizationWirelessDevicesPacketLossByDevice(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2477+
"""
2478+
**Get average packet loss for the given timespan for all devices in the organization**
2479+
https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-devices-packet-loss-by-device
2480+
2481+
- organizationId (string): Organization ID
2482+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2483+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2484+
- networkIds (array): Filter results by network.
2485+
- serials (array): Filter results by device.
2486+
- ssids (array): Filter results by SSID number.
2487+
- bands (array): Filter results by band. Valid bands are: 2.4, 5, and 6.
2488+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.
2489+
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
2490+
- endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
2491+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
2492+
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 90 days after t0.
2493+
- timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be greater than or equal to 5 minutes and be less than or equal to 90 days. The default is 7 days.
2494+
"""
2495+
2496+
kwargs.update(locals())
2497+
2498+
metadata = {
2499+
'tags': ['wireless', 'monitor', 'devices', 'packetLoss', 'byDevice'],
2500+
'operation': 'getOrganizationWirelessDevicesPacketLossByDevice'
2501+
}
2502+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2503+
resource = f'/organizations/{organizationId}/wireless/devices/packetLoss/byDevice'
2504+
2505+
query_params = ['networkIds', 'serials', 'ssids', 'bands', 'perPage', 'startingAfter', 'endingBefore', 't0', 't1', 'timespan', ]
2506+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2507+
2508+
array_params = ['networkIds', 'serials', 'ssids', 'bands', ]
2509+
for k, v in kwargs.items():
2510+
if k.strip() in array_params:
2511+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2512+
params.pop(k.strip())
2513+
2514+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2515+
2516+
2517+
2518+
def getOrganizationWirelessDevicesPacketLossByNetwork(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2519+
"""
2520+
**Get average packet loss for the given timespan for all networks in the organization.**
2521+
https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-devices-packet-loss-by-network
2522+
2523+
- organizationId (string): Organization ID
2524+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2525+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2526+
- networkIds (array): Filter results by network.
2527+
- serials (array): Filter results by device.
2528+
- ssids (array): Filter results by SSID number.
2529+
- bands (array): Filter results by band. Valid bands are: 2.4, 5, and 6.
2530+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.
2531+
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
2532+
- endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
2533+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
2534+
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 90 days after t0.
2535+
- timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be greater than or equal to 5 minutes and be less than or equal to 90 days. The default is 7 days.
2536+
"""
2537+
2538+
kwargs.update(locals())
2539+
2540+
metadata = {
2541+
'tags': ['wireless', 'monitor', 'devices', 'packetLoss', 'byNetwork'],
2542+
'operation': 'getOrganizationWirelessDevicesPacketLossByNetwork'
2543+
}
2544+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2545+
resource = f'/organizations/{organizationId}/wireless/devices/packetLoss/byNetwork'
2546+
2547+
query_params = ['networkIds', 'serials', 'ssids', 'bands', 'perPage', 'startingAfter', 'endingBefore', 't0', 't1', 'timespan', ]
2548+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2549+
2550+
array_params = ['networkIds', 'serials', 'ssids', 'bands', ]
2551+
for k, v in kwargs.items():
2552+
if k.strip() in array_params:
2553+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2554+
params.pop(k.strip())
2555+
2556+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2557+

0 commit comments

Comments
 (0)