Skip to content

Commit 41b3cbc

Browse files
TKIPisalegacycipherGitHub Action
and
GitHub Action
authored
Automatically regenerated library to version 1.52.0. (#271)
Co-authored-by: GitHub Action <[email protected]>
1 parent 96eec2c commit 41b3cbc

14 files changed

+852
-6
lines changed

meraki/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
)
4444
from meraki.rest_session import *
4545

46-
__version__ = '1.51.0'
46+
__version__ = '1.52.0'
4747

4848

4949
class DashboardAPI(object):

meraki/aio/api/devices.py

+47
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,53 @@ def getDeviceLiveToolsCableTest(self, serial: str, id: str):
252252

253253

254254

255+
def createDeviceLiveToolsLedsBlink(self, serial: str, duration: int, **kwargs):
256+
"""
257+
**Enqueue a job to blink LEDs on a device**
258+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-leds-blink
259+
260+
- serial (string): Serial
261+
- duration (integer): The duration in seconds to blink LEDs.
262+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
263+
"""
264+
265+
kwargs.update(locals())
266+
267+
metadata = {
268+
'tags': ['devices', 'liveTools', 'leds', 'blink'],
269+
'operation': 'createDeviceLiveToolsLedsBlink'
270+
}
271+
serial = urllib.parse.quote(str(serial), safe='')
272+
resource = f'/devices/{serial}/liveTools/leds/blink'
273+
274+
body_params = ['duration', 'callback', ]
275+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
276+
277+
return self._session.post(metadata, resource, payload)
278+
279+
280+
281+
def getDeviceLiveToolsLedsBlink(self, serial: str, ledsBlinkId: str):
282+
"""
283+
**Return a blink LEDs job**
284+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-leds-blink
285+
286+
- serial (string): Serial
287+
- ledsBlinkId (string): Leds blink ID
288+
"""
289+
290+
metadata = {
291+
'tags': ['devices', 'liveTools', 'leds', 'blink'],
292+
'operation': 'getDeviceLiveToolsLedsBlink'
293+
}
294+
serial = urllib.parse.quote(str(serial), safe='')
295+
ledsBlinkId = urllib.parse.quote(str(ledsBlinkId), safe='')
296+
resource = f'/devices/{serial}/liveTools/leds/blink/{ledsBlinkId}'
297+
298+
return self._session.get(metadata, resource)
299+
300+
301+
255302
def createDeviceLiveToolsPing(self, serial: str, target: str, **kwargs):
256303
"""
257304
**Enqueue a job to ping a target host from the device**

meraki/aio/api/networks.py

+125
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,131 @@ def createNetworkFloorPlan(self, networkId: str, name: str, imageContents: str,
12011201

12021202

12031203

1204+
def batchNetworkFloorPlansAutoLocateJobs(self, networkId: str, jobs: list):
1205+
"""
1206+
**Schedule auto locate jobs for one or more floor plans in a network**
1207+
https://developer.cisco.com/meraki/api-v1/#!batch-network-floor-plans-auto-locate-jobs
1208+
1209+
- networkId (string): Network ID
1210+
- jobs (array): The list of auto locate jobs to be scheduled. Up to 100 jobs can be provided in a request.
1211+
"""
1212+
1213+
kwargs = locals()
1214+
1215+
metadata = {
1216+
'tags': ['networks', 'configure', 'floorPlans', 'autoLocate', 'jobs'],
1217+
'operation': 'batchNetworkFloorPlansAutoLocateJobs'
1218+
}
1219+
networkId = urllib.parse.quote(str(networkId), safe='')
1220+
resource = f'/networks/{networkId}/floorPlans/autoLocate/jobs/batch'
1221+
1222+
body_params = ['jobs', ]
1223+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
1224+
1225+
return self._session.post(metadata, resource, payload)
1226+
1227+
1228+
1229+
def cancelNetworkFloorPlansAutoLocateJob(self, networkId: str, jobId: str):
1230+
"""
1231+
**Cancel a scheduled or running auto locate job**
1232+
https://developer.cisco.com/meraki/api-v1/#!cancel-network-floor-plans-auto-locate-job
1233+
1234+
- networkId (string): Network ID
1235+
- jobId (string): Job ID
1236+
"""
1237+
1238+
metadata = {
1239+
'tags': ['networks', 'configure', 'floorPlans', 'autoLocate', 'jobs'],
1240+
'operation': 'cancelNetworkFloorPlansAutoLocateJob'
1241+
}
1242+
networkId = urllib.parse.quote(str(networkId), safe='')
1243+
jobId = urllib.parse.quote(str(jobId), safe='')
1244+
resource = f'/networks/{networkId}/floorPlans/autoLocate/jobs/{jobId}/cancel'
1245+
1246+
return self._session.post(metadata, resource)
1247+
1248+
1249+
1250+
def publishNetworkFloorPlansAutoLocateJob(self, networkId: str, jobId: str, **kwargs):
1251+
"""
1252+
**Update the status of a finished auto locate job to be published, and update device locations**
1253+
https://developer.cisco.com/meraki/api-v1/#!publish-network-floor-plans-auto-locate-job
1254+
1255+
- networkId (string): Network ID
1256+
- jobId (string): Job ID
1257+
- devices (array): The list of devices to publish positions for
1258+
"""
1259+
1260+
kwargs.update(locals())
1261+
1262+
metadata = {
1263+
'tags': ['networks', 'configure', 'floorPlans', 'autoLocate', 'jobs'],
1264+
'operation': 'publishNetworkFloorPlansAutoLocateJob'
1265+
}
1266+
networkId = urllib.parse.quote(str(networkId), safe='')
1267+
jobId = urllib.parse.quote(str(jobId), safe='')
1268+
resource = f'/networks/{networkId}/floorPlans/autoLocate/jobs/{jobId}/publish'
1269+
1270+
body_params = ['devices', ]
1271+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
1272+
1273+
return self._session.post(metadata, resource, payload)
1274+
1275+
1276+
1277+
def recalculateNetworkFloorPlansAutoLocateJob(self, networkId: str, jobId: str, **kwargs):
1278+
"""
1279+
**Trigger auto locate recalculation for a job, and optionally set anchors**
1280+
https://developer.cisco.com/meraki/api-v1/#!recalculate-network-floor-plans-auto-locate-job
1281+
1282+
- networkId (string): Network ID
1283+
- jobId (string): Job ID
1284+
- devices (array): The list of devices to update anchor positions for
1285+
"""
1286+
1287+
kwargs.update(locals())
1288+
1289+
metadata = {
1290+
'tags': ['networks', 'configure', 'floorPlans', 'autoLocate', 'jobs'],
1291+
'operation': 'recalculateNetworkFloorPlansAutoLocateJob'
1292+
}
1293+
networkId = urllib.parse.quote(str(networkId), safe='')
1294+
jobId = urllib.parse.quote(str(jobId), safe='')
1295+
resource = f'/networks/{networkId}/floorPlans/autoLocate/jobs/{jobId}/recalculate'
1296+
1297+
body_params = ['devices', ]
1298+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
1299+
1300+
return self._session.post(metadata, resource, payload)
1301+
1302+
1303+
1304+
def batchNetworkFloorPlansDevicesUpdate(self, networkId: str, assignments: list):
1305+
"""
1306+
**Update floorplan assignments for a batch of devices**
1307+
https://developer.cisco.com/meraki/api-v1/#!batch-network-floor-plans-devices-update
1308+
1309+
- networkId (string): Network ID
1310+
- assignments (array): List of floorplan assignments to update. Up to 100 floor plan assignments can be provided in a request.
1311+
"""
1312+
1313+
kwargs = locals()
1314+
1315+
metadata = {
1316+
'tags': ['networks', 'configure', 'floorPlans', 'devices'],
1317+
'operation': 'batchNetworkFloorPlansDevicesUpdate'
1318+
}
1319+
networkId = urllib.parse.quote(str(networkId), safe='')
1320+
resource = f'/networks/{networkId}/floorPlans/devices/batchUpdate'
1321+
1322+
body_params = ['assignments', ]
1323+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
1324+
1325+
return self._session.post(metadata, resource, payload)
1326+
1327+
1328+
12041329
def getNetworkFloorPlan(self, networkId: str, floorPlanId: str):
12051330
"""
12061331
**Find a floor plan by ID**

meraki/aio/api/organizations.py

+75-1
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ def getOrganizationDevicesAvailabilities(self, organizationId: str, total_pages=
19081908
- 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.
19091909
- 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.
19101910
- networkIds (array): Optional parameter to filter device availabilities by network ID. This filter uses multiple exact matches.
1911-
- productTypes (array): Optional parameter to filter device availabilities by device product types. This filter uses multiple exact matches. Valid types are wireless, appliance, switch, camera, cellularGateway, sensor, and wirelessController
1911+
- productTypes (array): Optional parameter to filter device availabilities by device product types. This filter uses multiple exact matches. Valid types are wireless, appliance, switch, camera, cellularGateway, sensor, wirelessController, and campusGateway
19121912
- serials (array): Optional parameter to filter device availabilities by device serial numbers. This filter uses multiple exact matches.
19131913
- tags (array): An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). This filter uses multiple exact matches.
19141914
- tagsFilterType (string): An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.
@@ -2500,6 +2500,80 @@ def getOrganizationFirmwareUpgradesByDevice(self, organizationId: str, total_pag
25002500

25012501

25022502

2503+
def getOrganizationFloorPlansAutoLocateDevices(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2504+
"""
2505+
**List auto locate details for each device in your organization**
2506+
https://developer.cisco.com/meraki/api-v1/#!get-organization-floor-plans-auto-locate-devices
2507+
2508+
- organizationId (string): Organization ID
2509+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2510+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2511+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 1000.
2512+
- 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.
2513+
- 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.
2514+
- networkIds (array): Optional parameter to filter devices by one or more network IDs
2515+
- floorPlanIds (array): Optional parameter to filter devices by one or more floorplan IDs
2516+
"""
2517+
2518+
kwargs.update(locals())
2519+
2520+
metadata = {
2521+
'tags': ['organizations', 'configure', 'floorPlans', 'autoLocate', 'devices'],
2522+
'operation': 'getOrganizationFloorPlansAutoLocateDevices'
2523+
}
2524+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2525+
resource = f'/organizations/{organizationId}/floorPlans/autoLocate/devices'
2526+
2527+
query_params = ['perPage', 'startingAfter', 'endingBefore', 'networkIds', 'floorPlanIds', ]
2528+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2529+
2530+
array_params = ['networkIds', 'floorPlanIds', ]
2531+
for k, v in kwargs.items():
2532+
if k.strip() in array_params:
2533+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2534+
params.pop(k.strip())
2535+
2536+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2537+
2538+
2539+
2540+
def getOrganizationFloorPlansAutoLocateStatuses(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2541+
"""
2542+
**List the status of auto locate for each floorplan in your organization**
2543+
https://developer.cisco.com/meraki/api-v1/#!get-organization-floor-plans-auto-locate-statuses
2544+
2545+
- organizationId (string): Organization ID
2546+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2547+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2548+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 1000.
2549+
- 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.
2550+
- 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.
2551+
- networkIds (array): Optional parameter to filter floorplans by one or more network IDs
2552+
- floorPlanIds (array): Optional parameter to filter floorplans by one or more floorplan IDs
2553+
"""
2554+
2555+
kwargs.update(locals())
2556+
2557+
metadata = {
2558+
'tags': ['organizations', 'configure', 'floorPlans', 'autoLocate', 'statuses'],
2559+
'operation': 'getOrganizationFloorPlansAutoLocateStatuses'
2560+
}
2561+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2562+
resource = f'/organizations/{organizationId}/floorPlans/autoLocate/statuses'
2563+
2564+
query_params = ['perPage', 'startingAfter', 'endingBefore', 'networkIds', 'floorPlanIds', ]
2565+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2566+
2567+
array_params = ['networkIds', 'floorPlanIds', ]
2568+
for k, v in kwargs.items():
2569+
if k.strip() in array_params:
2570+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2571+
params.pop(k.strip())
2572+
2573+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2574+
2575+
2576+
25032577
def claimIntoOrganizationInventory(self, organizationId: str, **kwargs):
25042578
"""
25052579
**Claim a list of devices, licenses, and/or orders into an organization inventory**

meraki/aio/api/switch.py

+43
Original file line numberDiff line numberDiff line change
@@ -2596,3 +2596,46 @@ def getOrganizationSwitchPortsOverview(self, organizationId: str, **kwargs):
25962596

25972597
return self._session.get(metadata, resource, params)
25982598

2599+
2600+
2601+
def getOrganizationSwitchPortsStatusesBySwitch(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2602+
"""
2603+
**List the switchports in an organization**
2604+
https://developer.cisco.com/meraki/api-v1/#!get-organization-switch-ports-statuses-by-switch
2605+
2606+
- organizationId (string): Organization ID
2607+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2608+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2609+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 20. Default is 10.
2610+
- 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.
2611+
- 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.
2612+
- configurationUpdatedAfter (string): Optional parameter to filter items to switches where the configuration has been updated after the given timestamp.
2613+
- mac (string): Optional parameter to filter items to switches with MAC addresses that contain the search term or are an exact match.
2614+
- macs (array): Optional parameter to filter items to switches that have one of the provided MAC addresses.
2615+
- name (string): Optional parameter to filter items to switches with names that contain the search term or are an exact match.
2616+
- networkIds (array): Optional parameter to filter items to switches in one of the provided networks.
2617+
- portProfileIds (array): Optional parameter to filter items to switches that contain switchports belonging to one of the specified port profiles.
2618+
- serial (string): Optional parameter to filter items to switches with serial number that contains the search term or are an exact match.
2619+
- serials (array): Optional parameter to filter items to switches that have one of the provided serials.
2620+
"""
2621+
2622+
kwargs.update(locals())
2623+
2624+
metadata = {
2625+
'tags': ['switch', 'monitor', 'ports', 'statuses', 'bySwitch'],
2626+
'operation': 'getOrganizationSwitchPortsStatusesBySwitch'
2627+
}
2628+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2629+
resource = f'/organizations/{organizationId}/switch/ports/statuses/bySwitch'
2630+
2631+
query_params = ['perPage', 'startingAfter', 'endingBefore', 'configurationUpdatedAfter', 'mac', 'macs', 'name', 'networkIds', 'portProfileIds', 'serial', 'serials', ]
2632+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2633+
2634+
array_params = ['macs', 'networkIds', 'portProfileIds', 'serials', ]
2635+
for k, v in kwargs.items():
2636+
if k.strip() in array_params:
2637+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2638+
params.pop(k.strip())
2639+
2640+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2641+

0 commit comments

Comments
 (0)