Skip to content

Commit 918341d

Browse files
TKIPisalegacycipherGitHub Action
andauthored
Automatically regenerated library. (#225)
Co-authored-by: GitHub Action <support@meraki.com>
1 parent cd3d24f commit 918341d

19 files changed

Lines changed: 1592 additions & 39 deletions

meraki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
USE_ITERATOR_FOR_GET_PAGES,
4646
)
4747

48-
__version__ = '1.36.0'
48+
__version__ = '1.37.1'
4949

5050

5151
class DashboardAPI(object):

meraki/aio/api/appliance.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,32 @@ def updateNetworkApplianceTrafficShapingUplinkSelection(self, networkId: str, **
19001900

19011901

19021902

1903+
def updateNetworkApplianceTrafficShapingVpnExclusions(self, networkId: str, **kwargs):
1904+
"""
1905+
**Update VPN exclusion rules for an MX network.**
1906+
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-traffic-shaping-vpn-exclusions
1907+
1908+
- networkId (string): Network ID
1909+
- custom (array): Custom VPN exclusion rules. Pass an empty array to clear existing rules.
1910+
- majorApplications (array): Major Application based VPN exclusion rules. Pass an empty array to clear existing rules.
1911+
"""
1912+
1913+
kwargs.update(locals())
1914+
1915+
metadata = {
1916+
'tags': ['appliance', 'configure', 'trafficShaping', 'vpnExclusions'],
1917+
'operation': 'updateNetworkApplianceTrafficShapingVpnExclusions'
1918+
}
1919+
networkId = urllib.parse.quote(str(networkId), safe='')
1920+
resource = f'/networks/{networkId}/appliance/trafficShaping/vpnExclusions'
1921+
1922+
body_params = ['custom', 'majorApplications', ]
1923+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
1924+
1925+
return self._session.put(metadata, resource, payload)
1926+
1927+
1928+
19031929
def getNetworkApplianceUplinksUsageHistory(self, networkId: str, **kwargs):
19041930
"""
19051931
**Get the sent and received bytes for each uplink of a network.**
@@ -2372,6 +2398,42 @@ def updateOrganizationApplianceSecurityIntrusion(self, organizationId: str, allo
23722398

23732399

23742400

2401+
def getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork(self, organizationId: str, total_pages=1, direction='next', **kwargs):
2402+
"""
2403+
**Display VPN exclusion rules for MX networks.**
2404+
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-traffic-shaping-vpn-exclusions-by-network
2405+
2406+
- organizationId (string): Organization ID
2407+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
2408+
- direction (string): direction to paginate, either "next" (default) or "prev" page
2409+
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 50.
2410+
- 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.
2411+
- 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.
2412+
- networkIds (array): Optional parameter to filter the results by network IDs
2413+
"""
2414+
2415+
kwargs.update(locals())
2416+
2417+
metadata = {
2418+
'tags': ['appliance', 'configure', 'trafficShaping', 'vpnExclusions', 'byNetwork'],
2419+
'operation': 'getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork'
2420+
}
2421+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2422+
resource = f'/organizations/{organizationId}/appliance/trafficShaping/vpnExclusions/byNetwork'
2423+
2424+
query_params = ['perPage', 'startingAfter', 'endingBefore', 'networkIds', ]
2425+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
2426+
2427+
array_params = ['networkIds', ]
2428+
for k, v in kwargs.items():
2429+
if k.strip() in array_params:
2430+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
2431+
params.pop(k.strip())
2432+
2433+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
2434+
2435+
2436+
23752437
def getOrganizationApplianceUplinkStatuses(self, organizationId: str, total_pages=1, direction='next', **kwargs):
23762438
"""
23772439
**List the uplink status of every Meraki MX and Z series appliances in the organization**

meraki/aio/api/camera.py

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,3 +860,162 @@ def updateOrganizationCameraOnboardingStatuses(self, organizationId: str, **kwar
860860

861861
return self._session.put(metadata, resource, payload)
862862

863+
864+
865+
def getOrganizationCameraPermissions(self, organizationId: str):
866+
"""
867+
**List the permissions scopes for this organization**
868+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-permissions
869+
870+
- organizationId (string): Organization ID
871+
"""
872+
873+
metadata = {
874+
'tags': ['camera', 'configure', 'permissions'],
875+
'operation': 'getOrganizationCameraPermissions'
876+
}
877+
organizationId = urllib.parse.quote(str(organizationId), safe='')
878+
resource = f'/organizations/{organizationId}/camera/permissions'
879+
880+
return self._session.get(metadata, resource)
881+
882+
883+
884+
def getOrganizationCameraPermission(self, organizationId: str, permissionScopeId: str):
885+
"""
886+
**Retrieve a single permission scope**
887+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-permission
888+
889+
- organizationId (string): Organization ID
890+
- permissionScopeId (string): Permission scope ID
891+
"""
892+
893+
metadata = {
894+
'tags': ['camera', 'configure', 'permissions'],
895+
'operation': 'getOrganizationCameraPermission'
896+
}
897+
organizationId = urllib.parse.quote(str(organizationId), safe='')
898+
permissionScopeId = urllib.parse.quote(str(permissionScopeId), safe='')
899+
resource = f'/organizations/{organizationId}/camera/permissions/{permissionScopeId}'
900+
901+
return self._session.get(metadata, resource)
902+
903+
904+
905+
def getOrganizationCameraRoles(self, organizationId: str):
906+
"""
907+
**List all the roles in this organization**
908+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-roles
909+
910+
- organizationId (string): Organization ID
911+
"""
912+
913+
metadata = {
914+
'tags': ['camera', 'configure', 'roles'],
915+
'operation': 'getOrganizationCameraRoles'
916+
}
917+
organizationId = urllib.parse.quote(str(organizationId), safe='')
918+
resource = f'/organizations/{organizationId}/camera/roles'
919+
920+
return self._session.get(metadata, resource)
921+
922+
923+
924+
def createOrganizationCameraRole(self, organizationId: str, name: str, **kwargs):
925+
"""
926+
**Creates new role for this organization.**
927+
https://developer.cisco.com/meraki/api-v1/#!create-organization-camera-role
928+
929+
- organizationId (string): Organization ID
930+
- name (string): The name of the new role. Must be unique. This parameter is required.
931+
- appliedOnDevices (array): Device tag on which this specified permission is applied.
932+
- appliedOnNetworks (array): Network tag on which this specified permission is applied.
933+
- appliedOrgWide (array): Permissions to be applied org wide.
934+
"""
935+
936+
kwargs.update(locals())
937+
938+
metadata = {
939+
'tags': ['camera', 'configure', 'roles'],
940+
'operation': 'createOrganizationCameraRole'
941+
}
942+
organizationId = urllib.parse.quote(str(organizationId), safe='')
943+
resource = f'/organizations/{organizationId}/camera/roles'
944+
945+
body_params = ['name', 'appliedOnDevices', 'appliedOnNetworks', 'appliedOrgWide', ]
946+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
947+
948+
return self._session.post(metadata, resource, payload)
949+
950+
951+
952+
def getOrganizationCameraRole(self, organizationId: str, roleId: str):
953+
"""
954+
**Retrieve a single role.**
955+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-role
956+
957+
- organizationId (string): Organization ID
958+
- roleId (string): Role ID
959+
"""
960+
961+
metadata = {
962+
'tags': ['camera', 'configure', 'roles'],
963+
'operation': 'getOrganizationCameraRole'
964+
}
965+
organizationId = urllib.parse.quote(str(organizationId), safe='')
966+
roleId = urllib.parse.quote(str(roleId), safe='')
967+
resource = f'/organizations/{organizationId}/camera/roles/{roleId}'
968+
969+
return self._session.get(metadata, resource)
970+
971+
972+
973+
def deleteOrganizationCameraRole(self, organizationId: str, roleId: str):
974+
"""
975+
**Delete an existing role for this organization.**
976+
https://developer.cisco.com/meraki/api-v1/#!delete-organization-camera-role
977+
978+
- organizationId (string): Organization ID
979+
- roleId (string): Role ID
980+
"""
981+
982+
metadata = {
983+
'tags': ['camera', 'configure', 'roles'],
984+
'operation': 'deleteOrganizationCameraRole'
985+
}
986+
organizationId = urllib.parse.quote(str(organizationId), safe='')
987+
roleId = urllib.parse.quote(str(roleId), safe='')
988+
resource = f'/organizations/{organizationId}/camera/roles/{roleId}'
989+
990+
return self._session.delete(metadata, resource)
991+
992+
993+
994+
def updateOrganizationCameraRole(self, organizationId: str, roleId: str, **kwargs):
995+
"""
996+
**Update an existing role in this organization.**
997+
https://developer.cisco.com/meraki/api-v1/#!update-organization-camera-role
998+
999+
- organizationId (string): Organization ID
1000+
- roleId (string): Role ID
1001+
- name (string): The name of the new role. Must be unique.
1002+
- appliedOnDevices (array): Device tag on which this specified permission is applied.
1003+
- appliedOnNetworks (array): Network tag on which this specified permission is applied.
1004+
- appliedOrgWide (array): Permissions to be applied org wide.
1005+
"""
1006+
1007+
kwargs.update(locals())
1008+
1009+
metadata = {
1010+
'tags': ['camera', 'configure', 'roles'],
1011+
'operation': 'updateOrganizationCameraRole'
1012+
}
1013+
organizationId = urllib.parse.quote(str(organizationId), safe='')
1014+
roleId = urllib.parse.quote(str(roleId), safe='')
1015+
resource = f'/organizations/{organizationId}/camera/roles/{roleId}'
1016+
1017+
body_params = ['name', 'appliedOnDevices', 'appliedOnNetworks', 'appliedOrgWide', ]
1018+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
1019+
1020+
return self._session.put(metadata, resource, payload)
1021+

0 commit comments

Comments
 (0)