Skip to content

Commit 6831836

Browse files
TKIPisalegacycipherGitHub Action
and
GitHub Action
authored
Automatically regenerated library to version 1.50.0. (#266)
Co-authored-by: GitHub Action <[email protected]>
1 parent ae8f2fc commit 6831836

10 files changed

+820
-17
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.49.0'
46+
__version__ = '1.50.0'
4747

4848

4949
class DashboardAPI(object):

meraki/aio/api/camera.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def createNetworkCameraQualityRetentionProfile(self, networkId: str, name: str,
484484
- audioRecordingEnabled (boolean): Whether or not to record audio. Can be either true or false. Defaults to false.
485485
- cloudArchiveEnabled (boolean): Create redundant video backup using Cloud Archive. Can be either true or false. Defaults to false.
486486
- motionDetectorVersion (integer): The version of the motion detector that will be used by the camera. Only applies to Gen 2 cameras. Defaults to v2.
487+
- smartRetention (object): Smart Retention records footage in two qualities and intelligently retains higher quality when motion, people or vehicles are detected.
487488
- scheduleId (string): Schedule for which this camera will record video, or 'null' to always record.
488489
- maxRetentionDays (integer): The maximum number of days for which the data will be stored, or 'null' to keep data until storage space runs out. If the former, it can be one of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 14, 30, 60, 90] days.
489490
- videoSettings (object): Video quality and resolution settings for all the camera models.
@@ -498,7 +499,7 @@ def createNetworkCameraQualityRetentionProfile(self, networkId: str, name: str,
498499
networkId = urllib.parse.quote(str(networkId), safe='')
499500
resource = f'/networks/{networkId}/camera/qualityRetentionProfiles'
500501

501-
body_params = ['name', 'motionBasedRetentionEnabled', 'restrictedBandwidthModeEnabled', 'audioRecordingEnabled', 'cloudArchiveEnabled', 'motionDetectorVersion', 'scheduleId', 'maxRetentionDays', 'videoSettings', ]
502+
body_params = ['name', 'motionBasedRetentionEnabled', 'restrictedBandwidthModeEnabled', 'audioRecordingEnabled', 'cloudArchiveEnabled', 'motionDetectorVersion', 'smartRetention', 'scheduleId', 'maxRetentionDays', 'videoSettings', ]
502503
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
503504

504505
return self._session.post(metadata, resource, payload)
@@ -539,6 +540,7 @@ def updateNetworkCameraQualityRetentionProfile(self, networkId: str, qualityRete
539540
- audioRecordingEnabled (boolean): Whether or not to record audio. Can be either true or false. Defaults to false.
540541
- cloudArchiveEnabled (boolean): Create redundant video backup using Cloud Archive. Can be either true or false. Defaults to false.
541542
- motionDetectorVersion (integer): The version of the motion detector that will be used by the camera. Only applies to Gen 2 cameras. Defaults to v2.
543+
- smartRetention (object): Smart Retention records footage in two qualities and intelligently retains higher quality when motion, people or vehicles are detected.
542544
- scheduleId (string): Schedule for which this camera will record video, or 'null' to always record.
543545
- maxRetentionDays (integer): The maximum number of days for which the data will be stored, or 'null' to keep data until storage space runs out. If the former, it can be one of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 14, 30, 60, 90] days.
544546
- videoSettings (object): Video quality and resolution settings for all the camera models.
@@ -554,7 +556,7 @@ def updateNetworkCameraQualityRetentionProfile(self, networkId: str, qualityRete
554556
qualityRetentionProfileId = urllib.parse.quote(str(qualityRetentionProfileId), safe='')
555557
resource = f'/networks/{networkId}/camera/qualityRetentionProfiles/{qualityRetentionProfileId}'
556558

557-
body_params = ['name', 'motionBasedRetentionEnabled', 'restrictedBandwidthModeEnabled', 'audioRecordingEnabled', 'cloudArchiveEnabled', 'motionDetectorVersion', 'scheduleId', 'maxRetentionDays', 'videoSettings', ]
559+
body_params = ['name', 'motionBasedRetentionEnabled', 'restrictedBandwidthModeEnabled', 'audioRecordingEnabled', 'cloudArchiveEnabled', 'motionDetectorVersion', 'smartRetention', 'scheduleId', 'maxRetentionDays', 'videoSettings', ]
558560
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
559561

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

meraki/aio/api/cellularGateway.py

+294
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,300 @@ def updateNetworkCellularGatewayUplink(self, networkId: str, **kwargs):
276276

277277

278278

279+
def getOrganizationCellularGatewayEsimsInventory(self, organizationId: str, **kwargs):
280+
"""
281+
**The eSIM inventory of a given organization.**
282+
https://developer.cisco.com/meraki/api-v1/#!get-organization-cellular-gateway-esims-inventory
283+
284+
- organizationId (string): Organization ID
285+
- eids (array): Optional parameter to filter the results by EID.
286+
"""
287+
288+
kwargs.update(locals())
289+
290+
metadata = {
291+
'tags': ['cellularGateway', 'configure', 'esims', 'inventory'],
292+
'operation': 'getOrganizationCellularGatewayEsimsInventory'
293+
}
294+
organizationId = urllib.parse.quote(str(organizationId), safe='')
295+
resource = f'/organizations/{organizationId}/cellularGateway/esims/inventory'
296+
297+
query_params = ['eids', ]
298+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
299+
300+
array_params = ['eids', ]
301+
for k, v in kwargs.items():
302+
if k.strip() in array_params:
303+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
304+
params.pop(k.strip())
305+
306+
return self._session.get(metadata, resource, params)
307+
308+
309+
310+
def updateOrganizationCellularGatewayEsimsInventory(self, organizationId: str, id: str, **kwargs):
311+
"""
312+
**Toggle the status of an eSIM**
313+
https://developer.cisco.com/meraki/api-v1/#!update-organization-cellular-gateway-esims-inventory
314+
315+
- organizationId (string): Organization ID
316+
- id (string): ID
317+
- status (string): Status the eSIM will be updated to
318+
"""
319+
320+
kwargs.update(locals())
321+
322+
metadata = {
323+
'tags': ['cellularGateway', 'configure', 'esims', 'inventory'],
324+
'operation': 'updateOrganizationCellularGatewayEsimsInventory'
325+
}
326+
organizationId = urllib.parse.quote(str(organizationId), safe='')
327+
id = urllib.parse.quote(str(id), safe='')
328+
resource = f'/organizations/{organizationId}/cellularGateway/esims/inventory/{id}'
329+
330+
body_params = ['status', ]
331+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
332+
333+
return self._session.put(metadata, resource, payload)
334+
335+
336+
337+
def getOrganizationCellularGatewayEsimsServiceProviders(self, organizationId: str):
338+
"""
339+
**Service providers customers can add accounts for.**
340+
https://developer.cisco.com/meraki/api-v1/#!get-organization-cellular-gateway-esims-service-providers
341+
342+
- organizationId (string): Organization ID
343+
"""
344+
345+
metadata = {
346+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders'],
347+
'operation': 'getOrganizationCellularGatewayEsimsServiceProviders'
348+
}
349+
organizationId = urllib.parse.quote(str(organizationId), safe='')
350+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders'
351+
352+
return self._session.get(metadata, resource)
353+
354+
355+
356+
def getOrganizationCellularGatewayEsimsServiceProvidersAccounts(self, organizationId: str, **kwargs):
357+
"""
358+
**Inventory of service provider accounts tied to the organization.**
359+
https://developer.cisco.com/meraki/api-v1/#!get-organization-cellular-gateway-esims-service-providers-accounts
360+
361+
- organizationId (string): Organization ID
362+
- accountIds (array): Optional parameter to filter the results by service provider account IDs.
363+
"""
364+
365+
kwargs.update(locals())
366+
367+
metadata = {
368+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders', 'accounts'],
369+
'operation': 'getOrganizationCellularGatewayEsimsServiceProvidersAccounts'
370+
}
371+
organizationId = urllib.parse.quote(str(organizationId), safe='')
372+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders/accounts'
373+
374+
query_params = ['accountIds', ]
375+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
376+
377+
array_params = ['accountIds', ]
378+
for k, v in kwargs.items():
379+
if k.strip() in array_params:
380+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
381+
params.pop(k.strip())
382+
383+
return self._session.get(metadata, resource, params)
384+
385+
386+
387+
def createOrganizationCellularGatewayEsimsServiceProvidersAccount(self, organizationId: str, accountId: str, apiKey: str, serviceProvider: dict, title: str, username: str):
388+
"""
389+
**Add a service provider account.**
390+
https://developer.cisco.com/meraki/api-v1/#!create-organization-cellular-gateway-esims-service-providers-account
391+
392+
- organizationId (string): Organization ID
393+
- accountId (string): Service provider account ID
394+
- apiKey (string): Service provider account API key
395+
- serviceProvider (object): Service Provider information
396+
- title (string): Service provider account name
397+
- username (string): Service provider account username
398+
"""
399+
400+
kwargs = locals()
401+
402+
metadata = {
403+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders', 'accounts'],
404+
'operation': 'createOrganizationCellularGatewayEsimsServiceProvidersAccount'
405+
}
406+
organizationId = urllib.parse.quote(str(organizationId), safe='')
407+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders/accounts'
408+
409+
body_params = ['accountId', 'apiKey', 'serviceProvider', 'title', 'username', ]
410+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
411+
412+
return self._session.post(metadata, resource, payload)
413+
414+
415+
416+
def getOrganizationCellularGatewayEsimsServiceProvidersAccountsCommunicationPlans(self, organizationId: str, accountIds: list):
417+
"""
418+
**The communication plans available for a given provider.**
419+
https://developer.cisco.com/meraki/api-v1/#!get-organization-cellular-gateway-esims-service-providers-accounts-communication-plans
420+
421+
- organizationId (string): Organization ID
422+
- accountIds (array): Account IDs that communication plans will be fetched for
423+
"""
424+
425+
kwargs = locals()
426+
427+
metadata = {
428+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders', 'accounts', 'communicationPlans'],
429+
'operation': 'getOrganizationCellularGatewayEsimsServiceProvidersAccountsCommunicationPlans'
430+
}
431+
organizationId = urllib.parse.quote(str(organizationId), safe='')
432+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders/accounts/communicationPlans'
433+
434+
query_params = ['accountIds', ]
435+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
436+
437+
array_params = ['accountIds', ]
438+
for k, v in kwargs.items():
439+
if k.strip() in array_params:
440+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
441+
params.pop(k.strip())
442+
443+
return self._session.get(metadata, resource, params)
444+
445+
446+
447+
def getOrganizationCellularGatewayEsimsServiceProvidersAccountsRatePlans(self, organizationId: str, accountIds: list):
448+
"""
449+
**The rate plans available for a given provider.**
450+
https://developer.cisco.com/meraki/api-v1/#!get-organization-cellular-gateway-esims-service-providers-accounts-rate-plans
451+
452+
- organizationId (string): Organization ID
453+
- accountIds (array): Account IDs that rate plans will be fetched for
454+
"""
455+
456+
kwargs = locals()
457+
458+
metadata = {
459+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders', 'accounts', 'ratePlans'],
460+
'operation': 'getOrganizationCellularGatewayEsimsServiceProvidersAccountsRatePlans'
461+
}
462+
organizationId = urllib.parse.quote(str(organizationId), safe='')
463+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders/accounts/ratePlans'
464+
465+
query_params = ['accountIds', ]
466+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
467+
468+
array_params = ['accountIds', ]
469+
for k, v in kwargs.items():
470+
if k.strip() in array_params:
471+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
472+
params.pop(k.strip())
473+
474+
return self._session.get(metadata, resource, params)
475+
476+
477+
478+
def updateOrganizationCellularGatewayEsimsServiceProvidersAccount(self, organizationId: str, accountId: str, **kwargs):
479+
"""
480+
**Edit service provider account info stored in Meraki's database.**
481+
https://developer.cisco.com/meraki/api-v1/#!update-organization-cellular-gateway-esims-service-providers-account
482+
483+
- organizationId (string): Organization ID
484+
- accountId (string): Account ID
485+
- title (string): Service provider account name used on the Meraki UI
486+
- apiKey (string): Service provider account API key
487+
"""
488+
489+
kwargs.update(locals())
490+
491+
metadata = {
492+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders', 'accounts'],
493+
'operation': 'updateOrganizationCellularGatewayEsimsServiceProvidersAccount'
494+
}
495+
organizationId = urllib.parse.quote(str(organizationId), safe='')
496+
accountId = urllib.parse.quote(str(accountId), safe='')
497+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders/accounts/{accountId}'
498+
499+
body_params = ['title', 'apiKey', ]
500+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
501+
502+
return self._session.put(metadata, resource, payload)
503+
504+
505+
506+
def deleteOrganizationCellularGatewayEsimsServiceProvidersAccount(self, organizationId: str, accountId: str):
507+
"""
508+
**Remove a service provider account's integration with the Dashboard.**
509+
https://developer.cisco.com/meraki/api-v1/#!delete-organization-cellular-gateway-esims-service-providers-account
510+
511+
- organizationId (string): Organization ID
512+
- accountId (string): Account ID
513+
"""
514+
515+
metadata = {
516+
'tags': ['cellularGateway', 'configure', 'esims', 'serviceProviders', 'accounts'],
517+
'operation': 'deleteOrganizationCellularGatewayEsimsServiceProvidersAccount'
518+
}
519+
organizationId = urllib.parse.quote(str(organizationId), safe='')
520+
accountId = urllib.parse.quote(str(accountId), safe='')
521+
resource = f'/organizations/{organizationId}/cellularGateway/esims/serviceProviders/accounts/{accountId}'
522+
523+
return self._session.delete(metadata, resource)
524+
525+
526+
527+
def createOrganizationCellularGatewayEsimsSwap(self, organizationId: str, swaps: list):
528+
"""
529+
**Swap which profile an eSIM uses.**
530+
https://developer.cisco.com/meraki/api-v1/#!create-organization-cellular-gateway-esims-swap
531+
532+
- organizationId (string): Organization ID
533+
- swaps (array): Each object represents a swap for one eSIM
534+
"""
535+
536+
kwargs = locals()
537+
538+
metadata = {
539+
'tags': ['cellularGateway', 'configure', 'esims', 'swap'],
540+
'operation': 'createOrganizationCellularGatewayEsimsSwap'
541+
}
542+
organizationId = urllib.parse.quote(str(organizationId), safe='')
543+
resource = f'/organizations/{organizationId}/cellularGateway/esims/swap'
544+
545+
body_params = ['swaps', ]
546+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
547+
548+
return self._session.post(metadata, resource, payload)
549+
550+
551+
552+
def updateOrganizationCellularGatewayEsimsSwap(self, id: str, organizationId: str):
553+
"""
554+
**Get the status of a profile swap.**
555+
https://developer.cisco.com/meraki/api-v1/#!update-organization-cellular-gateway-esims-swap
556+
557+
- id (string): eSIM EID
558+
- organizationId (string): Organization ID
559+
"""
560+
561+
metadata = {
562+
'tags': ['cellularGateway', 'configure', 'esims', 'swap'],
563+
'operation': 'updateOrganizationCellularGatewayEsimsSwap'
564+
}
565+
id = urllib.parse.quote(str(id), safe='')
566+
organizationId = urllib.parse.quote(str(organizationId), safe='')
567+
resource = f'/organizations/{organizationId}/cellularGateway/esims/swap/{id}'
568+
569+
return self._session.put(metadata, resource)
570+
571+
572+
279573
def getOrganizationCellularGatewayUplinkStatuses(self, organizationId: str, total_pages=1, direction='next', **kwargs):
280574
"""
281575
**List the uplink status of every Meraki MG cellular gateway in the organization**

meraki/aio/api/networks.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ def getNetworkEvents(self, networkId: str, total_pages=1, direction='prev', even
744744
- smDeviceName (string): The name of the Systems Manager device which the list of events will be filtered with
745745
- eventDetails (string): The details of the event(Catalyst device only) which the list of events will be filtered with
746746
- eventSeverity (string): The severity of the event(Catalyst device only) which the list of events will be filtered with
747+
- isCatalyst (boolean): Boolean indicating that whether it is a Catalyst device. For Catalyst device, eventDetails and eventSeverity can be used to filter events.
747748
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 10.
748749
- 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.
749750
- 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.
@@ -762,7 +763,7 @@ def getNetworkEvents(self, networkId: str, total_pages=1, direction='prev', even
762763
networkId = urllib.parse.quote(str(networkId), safe='')
763764
resource = f'/networks/{networkId}/events'
764765

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

768769
array_params = ['includedEventTypes', 'excludedEventTypes', ]
@@ -1440,7 +1441,7 @@ def getNetworkHealthAlerts(self, networkId: str):
14401441

14411442
def getNetworkMerakiAuthUsers(self, networkId: str):
14421443
"""
1443-
**List the users configured under Meraki Authentication for a network (splash guest or RADIUS users for a wireless network, or client VPN users for a MX network)**
1444+
**List the authorized users configured under Meraki Authentication for a network (splash guest or RADIUS users for a wireless network, or client VPN users for a MX network)**
14441445
https://developer.cisco.com/meraki/api-v1/#!get-network-meraki-auth-users
14451446
14461447
- networkId (string): Network ID

0 commit comments

Comments
 (0)