Skip to content

Commit 9ef7a05

Browse files
author
Shiyue Cheng
committed
updated w/ release 1.0.0b17
1 parent 95c5039 commit 9ef7a05

7 files changed

Lines changed: 43 additions & 7 deletions

File tree

meraki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
SUPPRESS_LOGGING, SIMULATE_API_CALLS, BE_GEO_ID, MERAKI_PYTHON_SDK_CALLER
2121
)
2222

23-
__version__ = '1.0.0'
23+
__version__ = '1.0.0b17'
2424

2525
class DashboardAPI(object):
2626
"""

meraki/aio/api/appliance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ def deleteNetworkApplianceTrafficShapingCustomPerformanceClass(self, networkId:
944944

945945
def updateNetworkApplianceTrafficShapingRules(self, networkId: str, **kwargs):
946946
"""
947-
**Update the traffic shaping settings for an MX network**
947+
**Update the traffic shaping settings rules for an MX network**
948948
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-traffic-shaping-rules
949949
950950
- networkId (string): (required)
@@ -974,7 +974,7 @@ def updateNetworkApplianceTrafficShapingRules(self, networkId: str, **kwargs):
974974

975975
def getNetworkApplianceTrafficShapingRules(self, networkId: str):
976976
"""
977-
**Display the traffic shaping settings for an MX network**
977+
**Display the traffic shaping settings rules for an MX network**
978978
https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-traffic-shaping-rules
979979
980980
- networkId (string): (required)

meraki/aio/api/organizations.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,23 @@ def getOrganizationInventoryDevices(self, organizationId: str, total_pages=1, di
792792

793793
return self._session.get_pages(metadata, resource, params, total_pages, direction)
794794

795+
def getOrganizationInventoryDevice(self, organizationId: str, serial: str):
796+
"""
797+
**Return a single device from the inventory of an organization**
798+
https://developer.cisco.com/meraki/api-v1/#!get-organization-inventory-device
799+
800+
- organizationId (string): (required)
801+
- serial (string): (required)
802+
"""
803+
804+
metadata = {
805+
'tags': ['organizations', 'configure', 'inventoryDevices'],
806+
'operation': 'getOrganizationInventoryDevice'
807+
}
808+
resource = f'/organizations/{organizationId}/inventoryDevices/{serial}'
809+
810+
return self._session.get(metadata, resource)
811+
795812
def getOrganizationLicenses(self, organizationId: str, total_pages=1, direction='next', **kwargs):
796813
"""
797814
**List the licenses for an organization**

meraki/aio/api/wireless.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ def updateNetworkWirelessSsid(self, networkId: str, number: str, **kwargs):
11021102
- visible (boolean): Boolean indicating whether APs should advertise or hide this SSID. APs will only broadcast this SSID if set to true
11031103
- availableOnAllAps (boolean): Boolean indicating whether all APs should broadcast the SSID or if it should be restricted to APs matching any availability tags. Can only be false if the SSID has availability tags.
11041104
- availabilityTags (array): Accepts a list of tags for this SSID. If availableOnAllAps is false, then the SSID will only be broadcast by APs with tags matching any of the tags in this list.
1105+
- mandatoryDhcpEnabled (boolean): If true, Mandatory DHCP will enforce that clients connecting to this SSID must use the IP address assigned by the DHCP server. Clients who use a static IP address won’t be able to associate.
11051106
"""
11061107

11071108
kwargs.update(locals())
@@ -1137,7 +1138,7 @@ def updateNetworkWirelessSsid(self, networkId: str, number: str, **kwargs):
11371138
}
11381139
resource = f'/networks/{networkId}/wireless/ssids/{number}'
11391140

1140-
body_params = ['name', 'enabled', 'authMode', 'enterpriseAdminAccess', 'encryptionMode', 'psk', 'wpaEncryptionMode', 'splashPage', 'radiusServers', 'radiusProxyEnabled', 'radiusCoaEnabled', 'radiusFailoverPolicy', 'radiusLoadBalancingPolicy', 'radiusAccountingEnabled', 'radiusAccountingServers', 'radiusAttributeForGroupPolicies', 'ipAssignmentMode', 'useVlanTagging', 'concentratorNetworkId', 'vlanId', 'defaultVlanId', 'apTagsAndVlanIds', 'walledGardenEnabled', 'walledGardenRanges', 'radiusOverride', 'radiusGuestVlanEnabled', 'radiusGuestVlanId', 'minBitrate', 'bandSelection', 'perClientBandwidthLimitUp', 'perClientBandwidthLimitDown', 'perSsidBandwidthLimitUp', 'perSsidBandwidthLimitDown', 'lanIsolationEnabled', 'visible', 'availableOnAllAps', 'availabilityTags', ]
1141+
body_params = ['name', 'enabled', 'authMode', 'enterpriseAdminAccess', 'encryptionMode', 'psk', 'wpaEncryptionMode', 'splashPage', 'radiusServers', 'radiusProxyEnabled', 'radiusCoaEnabled', 'radiusFailoverPolicy', 'radiusLoadBalancingPolicy', 'radiusAccountingEnabled', 'radiusAccountingServers', 'radiusAttributeForGroupPolicies', 'ipAssignmentMode', 'useVlanTagging', 'concentratorNetworkId', 'vlanId', 'defaultVlanId', 'apTagsAndVlanIds', 'walledGardenEnabled', 'walledGardenRanges', 'radiusOverride', 'radiusGuestVlanEnabled', 'radiusGuestVlanId', 'minBitrate', 'bandSelection', 'perClientBandwidthLimitUp', 'perClientBandwidthLimitDown', 'perSsidBandwidthLimitUp', 'perSsidBandwidthLimitDown', 'lanIsolationEnabled', 'visible', 'availableOnAllAps', 'availabilityTags', 'mandatoryDhcpEnabled', ]
11411142
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
11421143

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

meraki/api/appliance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ def deleteNetworkApplianceTrafficShapingCustomPerformanceClass(self, networkId:
944944

945945
def updateNetworkApplianceTrafficShapingRules(self, networkId: str, **kwargs):
946946
"""
947-
**Update the traffic shaping settings for an MX network**
947+
**Update the traffic shaping settings rules for an MX network**
948948
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-traffic-shaping-rules
949949
950950
- networkId (string): (required)
@@ -974,7 +974,7 @@ def updateNetworkApplianceTrafficShapingRules(self, networkId: str, **kwargs):
974974

975975
def getNetworkApplianceTrafficShapingRules(self, networkId: str):
976976
"""
977-
**Display the traffic shaping settings for an MX network**
977+
**Display the traffic shaping settings rules for an MX network**
978978
https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-traffic-shaping-rules
979979
980980
- networkId (string): (required)

meraki/api/organizations.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,23 @@ def getOrganizationInventoryDevices(self, organizationId: str, total_pages=1, di
792792

793793
return self._session.get_pages(metadata, resource, params, total_pages, direction)
794794

795+
def getOrganizationInventoryDevice(self, organizationId: str, serial: str):
796+
"""
797+
**Return a single device from the inventory of an organization**
798+
https://developer.cisco.com/meraki/api-v1/#!get-organization-inventory-device
799+
800+
- organizationId (string): (required)
801+
- serial (string): (required)
802+
"""
803+
804+
metadata = {
805+
'tags': ['organizations', 'configure', 'inventoryDevices'],
806+
'operation': 'getOrganizationInventoryDevice'
807+
}
808+
resource = f'/organizations/{organizationId}/inventoryDevices/{serial}'
809+
810+
return self._session.get(metadata, resource)
811+
795812
def getOrganizationLicenses(self, organizationId: str, total_pages=1, direction='next', **kwargs):
796813
"""
797814
**List the licenses for an organization**

meraki/api/wireless.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ def updateNetworkWirelessSsid(self, networkId: str, number: str, **kwargs):
11021102
- visible (boolean): Boolean indicating whether APs should advertise or hide this SSID. APs will only broadcast this SSID if set to true
11031103
- availableOnAllAps (boolean): Boolean indicating whether all APs should broadcast the SSID or if it should be restricted to APs matching any availability tags. Can only be false if the SSID has availability tags.
11041104
- availabilityTags (array): Accepts a list of tags for this SSID. If availableOnAllAps is false, then the SSID will only be broadcast by APs with tags matching any of the tags in this list.
1105+
- mandatoryDhcpEnabled (boolean): If true, Mandatory DHCP will enforce that clients connecting to this SSID must use the IP address assigned by the DHCP server. Clients who use a static IP address won’t be able to associate.
11051106
"""
11061107

11071108
kwargs.update(locals())
@@ -1137,7 +1138,7 @@ def updateNetworkWirelessSsid(self, networkId: str, number: str, **kwargs):
11371138
}
11381139
resource = f'/networks/{networkId}/wireless/ssids/{number}'
11391140

1140-
body_params = ['name', 'enabled', 'authMode', 'enterpriseAdminAccess', 'encryptionMode', 'psk', 'wpaEncryptionMode', 'splashPage', 'radiusServers', 'radiusProxyEnabled', 'radiusCoaEnabled', 'radiusFailoverPolicy', 'radiusLoadBalancingPolicy', 'radiusAccountingEnabled', 'radiusAccountingServers', 'radiusAttributeForGroupPolicies', 'ipAssignmentMode', 'useVlanTagging', 'concentratorNetworkId', 'vlanId', 'defaultVlanId', 'apTagsAndVlanIds', 'walledGardenEnabled', 'walledGardenRanges', 'radiusOverride', 'radiusGuestVlanEnabled', 'radiusGuestVlanId', 'minBitrate', 'bandSelection', 'perClientBandwidthLimitUp', 'perClientBandwidthLimitDown', 'perSsidBandwidthLimitUp', 'perSsidBandwidthLimitDown', 'lanIsolationEnabled', 'visible', 'availableOnAllAps', 'availabilityTags', ]
1141+
body_params = ['name', 'enabled', 'authMode', 'enterpriseAdminAccess', 'encryptionMode', 'psk', 'wpaEncryptionMode', 'splashPage', 'radiusServers', 'radiusProxyEnabled', 'radiusCoaEnabled', 'radiusFailoverPolicy', 'radiusLoadBalancingPolicy', 'radiusAccountingEnabled', 'radiusAccountingServers', 'radiusAttributeForGroupPolicies', 'ipAssignmentMode', 'useVlanTagging', 'concentratorNetworkId', 'vlanId', 'defaultVlanId', 'apTagsAndVlanIds', 'walledGardenEnabled', 'walledGardenRanges', 'radiusOverride', 'radiusGuestVlanEnabled', 'radiusGuestVlanId', 'minBitrate', 'bandSelection', 'perClientBandwidthLimitUp', 'perClientBandwidthLimitDown', 'perSsidBandwidthLimitUp', 'perSsidBandwidthLimitDown', 'lanIsolationEnabled', 'visible', 'availableOnAllAps', 'availabilityTags', 'mandatoryDhcpEnabled', ]
11411142
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
11421143

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

0 commit comments

Comments
 (0)