Skip to content

Commit df588c4

Browse files
TKIPisalegacycipherGitHub Action
and
GitHub Action
authored
Automatically regenerated library to version 1.51.0. (#268)
Co-authored-by: GitHub Action <[email protected]>
1 parent 7d73e50 commit df588c4

13 files changed

+1362
-14
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.50.0'
46+
__version__ = '1.51.0'
4747

4848

4949
class DashboardAPI(object):

meraki/aio/api/licensing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def getAdministeredLicensingSubscriptionSubscriptions(self, total_pages=1, direc
5353
- endDate (string): Filter subscriptions by end date, ISO 8601 format. To filter with a range of dates, use 'endDate[<option>]=?' in the request. Accepted options include lt, gt, lte, gte.
5454
- statuses (array): List of statuses that returned subscriptions can have
5555
- productTypes (array): List of product types that returned subscriptions need to have entitlements for.
56+
- name (string): Search for subscription name
5657
"""
5758

5859
kwargs.update(locals())
@@ -63,7 +64,7 @@ def getAdministeredLicensingSubscriptionSubscriptions(self, total_pages=1, direc
6364
}
6465
resource = f'/administered/licensing/subscription/subscriptions'
6566

66-
query_params = ['perPage', 'startingAfter', 'endingBefore', 'subscriptionIds', 'organizationIds', 'startDate', 'endDate', 'statuses', 'productTypes', ]
67+
query_params = ['perPage', 'startingAfter', 'endingBefore', 'subscriptionIds', 'organizationIds', 'startDate', 'endDate', 'statuses', 'productTypes', 'name', ]
6768
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
6869

6970
array_params = ['subscriptionIds', 'organizationIds', 'statuses', 'productTypes', ]

meraki/aio/api/sensor.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def getNetworkSensorAlertsOverviewByMetric(self, networkId: str, **kwargs):
167167
https://developer.cisco.com/meraki/api-v1/#!get-network-sensor-alerts-overview-by-metric
168168
169169
- networkId (string): Network ID
170-
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today.
171-
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
172-
- 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 7 days.
173-
- interval (integer): The time interval in seconds for returned data. The valid intervals are: 86400, 604800. The default is 604800.
170+
- t0 (string): The beginning of the timespan for the data. The maximum lookback period is 731 days from today.
171+
- t1 (string): The end of the timespan for the data. t1 can be a maximum of 366 days after t0.
172+
- 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 366 days. The default is 7 days. If interval is provided, the timespan will be autocalculated.
173+
- interval (integer): The time interval in seconds for returned data. The valid intervals are: 900, 3600, 86400, 604800, 2592000. The default is 604800. Interval is calculated if time params are provided.
174174
"""
175175

176176
kwargs.update(locals())

meraki/aio/api/switch.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2275,6 +2275,7 @@ def updateNetworkSwitchStormControl(self, networkId: str, **kwargs):
22752275
- broadcastThreshold (integer): Percentage (1 to 99) of total available port bandwidth for broadcast traffic type. Default value 100 percent rate is to clear the configuration.
22762276
- multicastThreshold (integer): Percentage (1 to 99) of total available port bandwidth for multicast traffic type. Default value 100 percent rate is to clear the configuration.
22772277
- unknownUnicastThreshold (integer): Percentage (1 to 99) of total available port bandwidth for unknown unicast (dlf-destination lookup failure) traffic type. Default value 100 percent rate is to clear the configuration.
2278+
- treatTheseTrafficTypesAsOneThreshold (array): Grouped traffic types
22782279
"""
22792280

22802281
kwargs.update(locals())
@@ -2286,7 +2287,7 @@ def updateNetworkSwitchStormControl(self, networkId: str, **kwargs):
22862287
networkId = urllib.parse.quote(str(networkId), safe='')
22872288
resource = f'/networks/{networkId}/switch/stormControl'
22882289

2289-
body_params = ['broadcastThreshold', 'multicastThreshold', 'unknownUnicastThreshold', ]
2290+
body_params = ['broadcastThreshold', 'multicastThreshold', 'unknownUnicastThreshold', 'treatTheseTrafficTypesAsOneThreshold', ]
22902291
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
22912292

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

meraki/aio/api/wireless.py

+76
Original file line numberDiff line numberDiff line change
@@ -2534,6 +2534,44 @@ def getOrganizationWirelessAirMarshalSettingsByNetwork(self, organizationId: str
25342534

25352535

25362536

2537+
def getOrganizationWirelessClientsOverviewByDevice(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2538+
"""
2539+
**List access point client count at the moment in an organization**
2540+
https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-clients-overview-by-device
2541+
2542+
- organizationId (string): Organization ID
2543+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2544+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2545+
- networkIds (array): Optional parameter to filter access points client counts by network ID. This filter uses multiple exact matches.
2546+
- serials (array): Optional parameter to filter access points client counts by its serial numbers. This filter uses multiple exact matches.
2547+
- campusGatewayClusterIds (array): Optional parameter to filter access points client counts by MCG cluster IDs. This filter uses multiple exact matches.
2548+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. 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+
"""
2552+
2553+
kwargs.update(locals())
2554+
2555+
metadata = {
2556+
'tags': ['wireless', 'configure', 'clients', 'overview', 'byDevice'],
2557+
'operation': 'getOrganizationWirelessClientsOverviewByDevice'
2558+
}
2559+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2560+
resource = f'/organizations/{organizationId}/wireless/clients/overview/byDevice'
2561+
2562+
query_params = ['networkIds', 'serials', 'campusGatewayClusterIds', 'perPage', 'startingAfter', 'endingBefore', ]
2563+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2564+
2565+
array_params = ['networkIds', 'serials', 'campusGatewayClusterIds', ]
2566+
for k, v in kwargs.items():
2567+
if k.strip() in array_params:
2568+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2569+
params.pop(k.strip())
2570+
2571+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2572+
2573+
2574+
25372575
def getOrganizationWirelessDevicesChannelUtilizationByDevice(self, organizationId: str, total_pages=1, direction='next', **kwargs):
25382576
"""
25392577
**Get average channel utilization for all bands in a network, split by AP**
@@ -2860,6 +2898,44 @@ def getOrganizationWirelessDevicesPacketLossByNetwork(self, organizationId: str,
28602898

28612899

28622900

2901+
def getOrganizationWirelessDevicesWirelessControllersByDevice(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2902+
"""
2903+
**List of Catalyst access points information**
2904+
https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-devices-wireless-controllers-by-device
2905+
2906+
- organizationId (string): Organization ID
2907+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2908+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2909+
- networkIds (array): Optional parameter to filter access points by network ID. This filter uses multiple exact matches.
2910+
- serials (array): Optional parameter to filter access points by its cloud ID. This filter uses multiple exact matches.
2911+
- controllerSerials (array): Optional parameter to filter access points by its wireless LAN controller cloud ID. This filter uses multiple exact matches.
2912+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 100.
2913+
- 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.
2914+
- 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.
2915+
"""
2916+
2917+
kwargs.update(locals())
2918+
2919+
metadata = {
2920+
'tags': ['wireless', 'configure', 'devices', 'wirelessControllers', 'byDevice'],
2921+
'operation': 'getOrganizationWirelessDevicesWirelessControllersByDevice'
2922+
}
2923+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2924+
resource = f'/organizations/{organizationId}/wireless/devices/wirelessControllers/byDevice'
2925+
2926+
query_params = ['networkIds', 'serials', 'controllerSerials', 'perPage', 'startingAfter', 'endingBefore', ]
2927+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2928+
2929+
array_params = ['networkIds', 'serials', 'controllerSerials', ]
2930+
for k, v in kwargs.items():
2931+
if k.strip() in array_params:
2932+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2933+
params.pop(k.strip())
2934+
2935+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2936+
2937+
2938+
28632939
def getOrganizationWirelessRfProfilesAssignmentsByDevice(self, organizationId: str, total_pages=1, direction='next', **kwargs):
28642940
"""
28652941
**List the RF profiles of an organization by device**

0 commit comments

Comments
 (0)