Skip to content

Commit b55e2ab

Browse files
TKIPisalegacycipherGitHub Action
and
GitHub Action
authored
Automatically regenerated library to version 1.48.0. (#264)
Co-authored-by: GitHub Action <[email protected]>
1 parent c3fa44a commit b55e2ab

19 files changed

+790
-158
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.46.0'
46+
__version__ = '1.48.0'
4747

4848

4949
class DashboardAPI(object):

meraki/aio/api/appliance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def getDeviceAppliancePerformance(self, serial: str, **kwargs):
3333
https://developer.cisco.com/meraki/api-v1/#!get-device-appliance-performance
3434
3535
- serial (string): Serial
36-
- t0 (string): The beginning of the timespan for the data.
36+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 30 days from today.
3737
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0.
3838
- 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 30 minutes and be less than or equal to 14 days. The default is 30 minutes.
3939
"""

meraki/aio/api/devices.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def updateDeviceCellularSims(self, serial: str, **kwargs):
113113
114114
- serial (string): Serial
115115
- sims (array): List of SIMs. If a SIM was previously configured and not specified in this request, it will remain unchanged.
116+
- simOrdering (array): Specifies the ordering of all SIMs for an MG: primary, secondary, and not-in-use (when applicable). It's required for devices with 3 or more SIMs and can be used in place of 'isPrimary' for dual-SIM devices. To indicate eSIM, use 'sim3'. Sim failover will occur only between primary and secondary sim slots.
116117
- simFailover (object): SIM Failover settings.
117118
"""
118119

@@ -125,7 +126,7 @@ def updateDeviceCellularSims(self, serial: str, **kwargs):
125126
serial = urllib.parse.quote(str(serial), safe='')
126127
resource = f'/devices/{serial}/cellular/sims'
127128

128-
body_params = ['sims', 'simFailover', ]
129+
body_params = ['sims', 'simOrdering', 'simFailover', ]
129130
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
130131

131132
return self._session.put(metadata, resource, payload)

meraki/aio/api/networks.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -642,16 +642,17 @@ def getNetworkDevices(self, networkId: str):
642642

643643

644644

645-
def claimNetworkDevices(self, networkId: str, serials: list):
645+
def claimNetworkDevices(self, networkId: str, serials: list, **kwargs):
646646
"""
647647
**Claim devices into a network. (Note: for recently claimed devices, it may take a few minutes for API requests against that device to succeed)**
648648
https://developer.cisco.com/meraki/api-v1/#!claim-network-devices
649649
650650
- networkId (string): Network ID
651651
- serials (array): A list of serials of devices to claim
652+
- addAtomically (boolean): Whether to claim devices atomically. If true, all devices will be claimed or none will be claimed. Default is true.
652653
"""
653654

654-
kwargs = locals()
655+
kwargs.update(locals())
655656

656657
metadata = {
657658
'tags': ['networks', 'configure', 'devices'],
@@ -730,7 +731,7 @@ def getNetworkEvents(self, networkId: str, total_pages=1, direction='prev', even
730731
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
731732
- direction (string): direction to paginate, either "next" or "prev" (default) page
732733
- event_log_end_time (string): ISO8601 Zulu/UTC time, to use in conjunction with startingAfter, to retrieve events within a time window
733-
- productType (string): The product type to fetch events for. This parameter is required for networks with multiple device types. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, and secureConnect
734+
- productType (string): The product type to fetch events for. This parameter is required for networks with multiple device types. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, wirelessController, and secureConnect
734735
- includedEventTypes (array): A list of event types. The returned events will be filtered to only include events with these types.
735736
- excludedEventTypes (array): A list of event types. The returned events will be filtered to exclude events with these types.
736737
- deviceMac (string): The MAC address of the Meraki device which the list of events will be filtered with
@@ -741,6 +742,8 @@ def getNetworkEvents(self, networkId: str, total_pages=1, direction='prev', even
741742
- clientName (string): The name, or partial name, of the client which the list of events will be filtered with
742743
- smDeviceMac (string): The MAC address of the Systems Manager device which the list of events will be filtered with
743744
- smDeviceName (string): The name of the Systems Manager device which the list of events will be filtered with
745+
- eventDetails (string): The details of the event(Catalyst device only) which the list of events will be filtered with
746+
- eventSeverity (string): The severity of the event(Catalyst device only) which the list of events will be filtered with
744747
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 10.
745748
- 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.
746749
- 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.
@@ -749,7 +752,7 @@ def getNetworkEvents(self, networkId: str, total_pages=1, direction='prev', even
749752
kwargs.update(locals())
750753

751754
if 'productType' in kwargs:
752-
options = ['appliance', 'camera', 'cellularGateway', 'secureConnect', 'switch', 'systemsManager', 'wireless']
755+
options = ['appliance', 'camera', 'cellularGateway', 'secureConnect', 'switch', 'systemsManager', 'wireless', 'wirelessController']
753756
assert kwargs['productType'] in options, f'''"productType" cannot be "{kwargs['productType']}", & must be set to one of: {options}'''
754757

755758
metadata = {
@@ -759,7 +762,7 @@ def getNetworkEvents(self, networkId: str, total_pages=1, direction='prev', even
759762
networkId = urllib.parse.quote(str(networkId), safe='')
760763
resource = f'/networks/{networkId}/events'
761764

762-
query_params = ['productType', 'includedEventTypes', 'excludedEventTypes', 'deviceMac', 'deviceSerial', 'deviceName', 'clientIp', 'clientMac', 'clientName', 'smDeviceMac', 'smDeviceName', 'perPage', 'startingAfter', 'endingBefore', ]
765+
query_params = ['productType', 'includedEventTypes', 'excludedEventTypes', 'deviceMac', 'deviceSerial', 'deviceName', 'clientIp', 'clientMac', 'clientName', 'smDeviceMac', 'smDeviceName', 'eventDetails', 'eventSeverity', 'perPage', 'startingAfter', 'endingBefore', ]
763766
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
764767

765768
array_params = ['includedEventTypes', 'excludedEventTypes', ]
@@ -852,7 +855,7 @@ def createNetworkFirmwareUpgradesRollback(self, networkId: str, reasons: list, *
852855
kwargs.update(locals())
853856

854857
if 'product' in kwargs:
855-
options = ['appliance', 'camera', 'cellularGateway', 'secureConnect', 'switch', 'switchCatalyst', 'wireless']
858+
options = ['appliance', 'camera', 'cellularGateway', 'secureConnect', 'switch', 'switchCatalyst', 'wireless', 'wirelessController']
856859
assert kwargs['product'] in options, f'''"product" cannot be "{kwargs['product']}", & must be set to one of: {options}'''
857860

858861
metadata = {

0 commit comments

Comments
 (0)