B ` @sGdddeZdS)csXeZdZfddZedddZedddZeedd d Zeedd d ZZ S) LinkAggregationscstt|||_dS)N)superr__init___session)selfsession) __class__z/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/link_aggregations.pyrszLinkAggregations.__init__) networkIdcCs&dgdd}d|d}|j||S)z **List link aggregation groups** https://developer.cisco.com/meraki/api/#!get-network-switch-link-aggregations - networkId (string) zLink aggregations getNetworkSwitchLinkAggregations)tags operationz /networks/z/switch/linkAggregations)rget)rr metadataresourcerrr r s  z1LinkAggregations.getNetworkSwitchLinkAggregationsc sR|tdgdd}d|d}ddgfdd |D}|j|||S) a **Create a link aggregation group** https://developer.cisco.com/meraki/api/#!create-network-switch-link-aggregation - networkId (string) - switchPorts (array): Array of switch or stack ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported. - switchProfilePorts (array): Array of switch profile ports for creating aggregation group. Minimum 2 and maximum 8 ports are supported. zLink aggregations"createNetworkSwitchLinkAggregation)r r z /networks/z/switch/linkAggregations switchPortsswitchProfilePortscs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr )szGLinkAggregations.createNetworkSwitchLinkAggregation..)updatelocalsitemsrpost)rr kwargsrrpayloadr)rr rs  z3LinkAggregations.createNetworkSwitchLinkAggregation)r linkAggregationIdc sV|tdgdd}d|d|}ddgfdd |D}|j|||S) a **Update a link aggregation group** https://developer.cisco.com/meraki/api/#!update-network-switch-link-aggregation - networkId (string) - linkAggregationId (string) - switchPorts (array): Array of switch or stack ports for updating aggregation group. Minimum 2 and maximum 8 ports are supported. - switchProfilePorts (array): Array of switch profile ports for updating aggregation group. Minimum 2 and maximum 8 ports are supported. zLink aggregations"updateNetworkSwitchLinkAggregation)r r z /networks/z/switch/linkAggregations/rrcs&i|]\}}|kr||qSr)r)rrr)rrr rAszGLinkAggregations.updateNetworkSwitchLinkAggregation..)rrrrput)rr r rrrrr)rr r!-s z3LinkAggregations.updateNetworkSwitchLinkAggregationcCs*dgdd}d|d|}|j||S)z **Split a link aggregation group into separate ports** https://developer.cisco.com/meraki/api/#!delete-network-switch-link-aggregation - networkId (string) - linkAggregationId (string) zLink aggregations"deleteNetworkSwitchLinkAggregation)r r z /networks/z/switch/linkAggregations/)rdelete)rr r rrrrr r#Es z3LinkAggregations.deleteNetworkSwitchLinkAggregation) __name__ __module__ __qualname__rstrr rr!r# __classcell__rr)rr rs  rN)objectrrrrr