B `?@sGdddeZdS)csteZdZfddZeedddZeedddZedd d Zedd d Zedd dZ edddZ Z S)TrafficShapingcstt|||_dS)N)superr__init___session)selfsession) __class__x/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/traffic_shaping.pyrszTrafficShaping.__init__) networkIdnumberc sZ|tdgdd}d|d|d}ddd gfd d |D}|j|||S) aM **Update the traffic shaping settings for an SSID on an MR network** https://developer.cisco.com/meraki/api/#!update-network-ssid-traffic-shaping - networkId (string) - number (string) - trafficShapingEnabled (boolean): Whether traffic shaping rules are applied to clients on your SSID. - defaultRulesEnabled (boolean): Whether default traffic shaping rules are enabled (true) or disabled (false). There are 4 default rules, which can be seen on your network's traffic shaping page. Note that default rules count against the rule limit of 8. - rules (array): An array of traffic shaping rules. Rules are applied in the order that they are specified in. An empty list (or null) means no rules. Note that you are allowed a maximum of 8 rules. zTraffic shapingupdateNetworkSsidTrafficShaping)tags operationz /networks/z/ssids/z/trafficShapingZtrafficShapingEnableddefaultRulesEnabledrulescs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr "szBTrafficShaping.updateNetworkSsidTrafficShaping..)updatelocalsitemsrput)rr r kwargsmetadataresourcepayloadr)rr r s  z.TrafficShaping.updateNetworkSsidTrafficShapingcCs,dgdd}d|d|d}|j||S)z **Display the traffic shaping settings for a SSID on an MR network** https://developer.cisco.com/meraki/api/#!get-network-ssid-traffic-shaping - networkId (string) - number (string) zTraffic shapinggetNetworkSsidTrafficShaping)r rz /networks/z/ssids/z/trafficShaping)rget)rr r rrrrr r&s z+TrafficShaping.getNetworkSsidTrafficShaping)r c sR|tdgdd}d|d}ddgfdd |D}|j|||S) a **Update the traffic shaping settings for an MX network** https://developer.cisco.com/meraki/api/#!update-network-traffic-shaping - networkId (string) - defaultRulesEnabled (boolean): Whether default traffic shaping rules are enabled (true) or disabled (false). There are 4 default rules, which can be seen on your network's traffic shaping page. Note that default rules count against the rule limit of 8. - rules (array): An array of traffic shaping rules. Rules are applied in the order that they are specified in. An empty list (or null) means no rules. Note that you are allowed a maximum of 8 rules. zTraffic shapingupdateNetworkTrafficShaping)r rz /networks/z/trafficShapingrrcs&i|]\}}|kr||qSr)r)rrr)rrr rQsz>TrafficShaping.updateNetworkTrafficShaping..)rrrrr)rr rrrrr)rr r!7s  z*TrafficShaping.updateNetworkTrafficShapingcCs&dgdd}d|d}|j||S)z **Display the traffic shaping settings for an MX network** https://developer.cisco.com/meraki/api/#!get-network-traffic-shaping - networkId (string) zTraffic shapinggetNetworkTrafficShaping)r rz /networks/z/trafficShaping)rr )rr rrrrr r"Us  z'TrafficShaping.getNetworkTrafficShapingcCs&dgdd}d|d}|j||S)z **Returns the application categories for traffic shaping rules.** https://developer.cisco.com/meraki/api/#!get-network-traffic-shaping-application-categories - networkId (string) zTraffic shaping-getNetworkTrafficShapingApplicationCategories)r rz /networks/z%/trafficShaping/applicationCategories)rr )rr rrrrr r#es  z