Skip to content

Commit 08b4576

Browse files
TKIPisalegacycipherGitHub Action
andauthored
Automatically regenerated library to version 2.0.2 for API version 1.57.0. (#294)
Co-authored-by: GitHub Action <support@meraki.com>
1 parent 0704a2a commit 08b4576

File tree

9 files changed

+927
-4
lines changed

9 files changed

+927
-4
lines changed

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__ = '2.0.1'
46+
__version__ = '2.0.2'
4747
__api_version__ = '1.57.0'
4848

4949

meraki/aio/api/appliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3086,7 +3086,7 @@ def getOrganizationApplianceUplinksUsageByNetwork(self, organizationId: str, **k
30863086
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-uplinks-usage-by-network
30873087
30883088
- organizationId (string): Organization ID
3089-
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
3089+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 30 days from today.
30903090
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0.
30913091
- 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 14 days. The default is 1 day.
30923092
"""

meraki/aio/api/devices.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,52 @@ def getDeviceLiveToolsLedsBlink(self, serial: str, ledsBlinkId: str):
299299

300300

301301

302+
def createDeviceLiveToolsMacTable(self, serial: str, **kwargs):
303+
"""
304+
**Enqueue a job to request the MAC table from the device**
305+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-mac-table
306+
307+
- serial (string): Serial
308+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
309+
"""
310+
311+
kwargs.update(locals())
312+
313+
metadata = {
314+
'tags': ['devices', 'liveTools', 'macTable'],
315+
'operation': 'createDeviceLiveToolsMacTable'
316+
}
317+
serial = urllib.parse.quote(str(serial), safe='')
318+
resource = f'/devices/{serial}/liveTools/macTable'
319+
320+
body_params = ['callback', ]
321+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
322+
323+
return self._session.post(metadata, resource, payload)
324+
325+
326+
327+
def getDeviceLiveToolsMacTable(self, serial: str, macTableId: str):
328+
"""
329+
**Return a MAC table live tool job.**
330+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-mac-table
331+
332+
- serial (string): Serial
333+
- macTableId (string): Mac table ID
334+
"""
335+
336+
metadata = {
337+
'tags': ['devices', 'liveTools', 'macTable'],
338+
'operation': 'getDeviceLiveToolsMacTable'
339+
}
340+
serial = urllib.parse.quote(str(serial), safe='')
341+
macTableId = urllib.parse.quote(str(macTableId), safe='')
342+
resource = f'/devices/{serial}/liveTools/macTable/{macTableId}'
343+
344+
return self._session.get(metadata, resource)
345+
346+
347+
302348
def createDeviceLiveToolsPing(self, serial: str, target: str, **kwargs):
303349
"""
304350
**Enqueue a job to ping a target host from the device**

meraki/aio/api/organizations.py

Lines changed: 321 additions & 0 deletions
Large diffs are not rendered by default.

meraki/api/appliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3086,7 +3086,7 @@ def getOrganizationApplianceUplinksUsageByNetwork(self, organizationId: str, **k
30863086
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-uplinks-usage-by-network
30873087
30883088
- organizationId (string): Organization ID
3089-
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
3089+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 30 days from today.
30903090
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0.
30913091
- 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 14 days. The default is 1 day.
30923092
"""

meraki/api/batch/organizations.py

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,195 @@ def bulkUpdateOrganizationDevicesDetails(self, organizationId: str, serials: lis
716716

717717

718718

719+
def bulkOrganizationDevicesPacketCaptureCapturesDelete(self, organizationId: str, captureIds: list):
720+
"""
721+
**BulkDelete packet captures from cloud**
722+
https://developer.cisco.com/meraki/api-v1/#!bulk-organization-devices-packet-capture-captures-delete
723+
724+
- organizationId (string): Organization ID
725+
- captureIds (array): Delete the packet captures of the specified capture ids
726+
"""
727+
728+
kwargs = locals()
729+
730+
metadata = {
731+
'tags': ['organizations', 'configure', 'devices', 'packetCapture', 'captures'],
732+
'operation': 'bulkOrganizationDevicesPacketCaptureCapturesDelete'
733+
}
734+
resource = f'/organizations/{organizationId}/devices/packetCapture/captures/bulkDelete'
735+
736+
body_params = ['captureIds', ]
737+
action = {
738+
"resource": resource,
739+
"operation": "destroy",
740+
}
741+
return action
742+
743+
744+
745+
746+
747+
748+
def deleteOrganizationDevicesPacketCaptureCapture(self, organizationId: str, captureId: str):
749+
"""
750+
**Delete a single packet capture from cloud using captureId**
751+
https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-packet-capture-capture
752+
753+
- organizationId (string): Organization ID
754+
- captureId (string): Capture ID
755+
"""
756+
757+
metadata = {
758+
'tags': ['organizations', 'configure', 'devices', 'packetCapture', 'captures'],
759+
'operation': 'deleteOrganizationDevicesPacketCaptureCapture'
760+
}
761+
resource = f'/organizations/{organizationId}/devices/packetCapture/captures/{captureId}'
762+
763+
action = {
764+
"resource": resource,
765+
"operation": "destroy",
766+
}
767+
return action
768+
769+
770+
771+
772+
773+
774+
def createOrganizationDevicesPacketCaptureSchedule(self, organizationId: str, devices: list, **kwargs):
775+
"""
776+
**Create a schedule for packet capture**
777+
https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-packet-capture-schedule
778+
779+
- organizationId (string): Organization ID
780+
- devices (array): device details
781+
- name (string): Name of the packet capture file
782+
- notes (string): Reason for capture
783+
- duration (integer): Duration of the capture in seconds
784+
- filterExpression (string): Filter expression for the capture
785+
- enabled (boolean): Enable or disable the schedule
786+
- schedule (object): Schedule details
787+
"""
788+
789+
kwargs.update(locals())
790+
791+
metadata = {
792+
'tags': ['organizations', 'configure', 'devices', 'packetCapture', 'schedules'],
793+
'operation': 'createOrganizationDevicesPacketCaptureSchedule'
794+
}
795+
resource = f'/organizations/{organizationId}/devices/packetCapture/schedules'
796+
797+
body_params = ['devices', 'name', 'notes', 'duration', 'filterExpression', 'enabled', 'schedule', ]
798+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
799+
action = {
800+
"resource": resource,
801+
"operation": "create",
802+
"body": payload
803+
}
804+
return action
805+
806+
807+
808+
809+
810+
811+
def reorderOrganizationDevicesPacketCaptureSchedules(self, organizationId: str, order: list):
812+
"""
813+
**Bulk update priorities of pcap schedules**
814+
https://developer.cisco.com/meraki/api-v1/#!reorder-organization-devices-packet-capture-schedules
815+
816+
- organizationId (string): Organization ID
817+
- order (array): Array of schedule IDs and their priorities to reorder.
818+
"""
819+
820+
kwargs = locals()
821+
822+
metadata = {
823+
'tags': ['organizations', 'configure', 'devices', 'packetCapture', 'schedules'],
824+
'operation': 'reorderOrganizationDevicesPacketCaptureSchedules'
825+
}
826+
resource = f'/organizations/{organizationId}/devices/packetCapture/schedules/reorder'
827+
828+
body_params = ['order', ]
829+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
830+
action = {
831+
"resource": resource,
832+
"operation": "reorder",
833+
"body": payload
834+
}
835+
return action
836+
837+
838+
839+
840+
841+
842+
def updateOrganizationDevicesPacketCaptureSchedule(self, organizationId: str, scheduleId: str, devices: list, **kwargs):
843+
"""
844+
**Update a schedule for packet capture**
845+
https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-packet-capture-schedule
846+
847+
- organizationId (string): Organization ID
848+
- scheduleId (string): Schedule ID
849+
- devices (array): device details
850+
- name (string): Name of the packet capture file
851+
- notes (string): Reason for capture
852+
- duration (integer): Duration of the capture in seconds
853+
- filterExpression (string): Filter expression for the capture
854+
- enabled (boolean): Enable or disable the schedule
855+
- schedule (object): Schedule details
856+
"""
857+
858+
kwargs.update(locals())
859+
860+
metadata = {
861+
'tags': ['organizations', 'configure', 'devices', 'packetCapture', 'schedules'],
862+
'operation': 'updateOrganizationDevicesPacketCaptureSchedule'
863+
}
864+
resource = f'/organizations/{organizationId}/devices/packetCapture/schedules/{scheduleId}'
865+
866+
body_params = ['devices', 'name', 'notes', 'duration', 'filterExpression', 'enabled', 'schedule', ]
867+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
868+
action = {
869+
"resource": resource,
870+
"operation": "update",
871+
"body": payload
872+
}
873+
return action
874+
875+
876+
877+
878+
879+
880+
def deleteOrganizationDevicesPacketCaptureSchedule(self, organizationId: str, scheduleId: str):
881+
"""
882+
**Delete schedule from cloud**
883+
https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-packet-capture-schedule
884+
885+
- organizationId (string): Organization ID
886+
- scheduleId (string): Delete the capture schedules of the specified capture schedule id
887+
"""
888+
889+
kwargs = locals()
890+
891+
metadata = {
892+
'tags': ['organizations', 'configure', 'devices', 'packetCapture', 'schedules'],
893+
'operation': 'deleteOrganizationDevicesPacketCaptureSchedule'
894+
}
895+
resource = f'/organizations/{organizationId}/devices/packetCapture/schedules/{scheduleId}'
896+
897+
action = {
898+
"resource": resource,
899+
"operation": "destroy",
900+
}
901+
return action
902+
903+
904+
905+
906+
907+
719908
def updateOrganizationEarlyAccessFeaturesOptIn(self, organizationId: str, optInId: str, **kwargs):
720909
"""
721910
**Update an early access feature opt-in for an organization**

meraki/api/devices.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,52 @@ def getDeviceLiveToolsLedsBlink(self, serial: str, ledsBlinkId: str):
299299

300300

301301

302+
def createDeviceLiveToolsMacTable(self, serial: str, **kwargs):
303+
"""
304+
**Enqueue a job to request the MAC table from the device**
305+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-mac-table
306+
307+
- serial (string): Serial
308+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
309+
"""
310+
311+
kwargs.update(locals())
312+
313+
metadata = {
314+
'tags': ['devices', 'liveTools', 'macTable'],
315+
'operation': 'createDeviceLiveToolsMacTable'
316+
}
317+
serial = urllib.parse.quote(str(serial), safe='')
318+
resource = f'/devices/{serial}/liveTools/macTable'
319+
320+
body_params = ['callback', ]
321+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
322+
323+
return self._session.post(metadata, resource, payload)
324+
325+
326+
327+
def getDeviceLiveToolsMacTable(self, serial: str, macTableId: str):
328+
"""
329+
**Return a MAC table live tool job.**
330+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-mac-table
331+
332+
- serial (string): Serial
333+
- macTableId (string): Mac table ID
334+
"""
335+
336+
metadata = {
337+
'tags': ['devices', 'liveTools', 'macTable'],
338+
'operation': 'getDeviceLiveToolsMacTable'
339+
}
340+
serial = urllib.parse.quote(str(serial), safe='')
341+
macTableId = urllib.parse.quote(str(macTableId), safe='')
342+
resource = f'/devices/{serial}/liveTools/macTable/{macTableId}'
343+
344+
return self._session.get(metadata, resource)
345+
346+
347+
302348
def createDeviceLiveToolsPing(self, serial: str, target: str, **kwargs):
303349
"""
304350
**Enqueue a job to ping a target host from the device**

0 commit comments

Comments
 (0)