B `g@sGdddeZdS)cspeZdZfddZedddZedddZedd d Zedd d Zedd dZ edddZ Z S)ActionBatchCellularGatewaycstt|dS)N)superr__init__)self) __class__{/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki/api/batch/cellularGateway.pyrsz#ActionBatchCellularGateway.__init__)serialc sV|tdddgdd}d|d}dd gfd d |D}|d |d }|S)af **Update the LAN Settings for a single MG.** https://developer.cisco.com/meraki/api-v1/#!update-device-cellular-gateway-lan - serial (string): (required) - reservedIpRanges (array): list of all reserved IP ranges for a single MG - fixedIpAssignments (array): list of all fixed IP assignments for a single MG cellularGateway configureZlanupdateDeviceCellularGatewayLan)tags operationz /devices/z/cellularGateway/lanZreservedIpRangesZfixedIpAssignmentscs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr szMActionBatchCellularGateway.updateDeviceCellularGatewayLan..update)resourcer body)rlocalsitems)rrkwargsmetadatarpayloadactionr)rrr s  z9ActionBatchCellularGateway.updateDeviceCellularGatewayLanc sT|tdddgdd}d|d}dgfd d |D}|d |d }|S) a **Updates the port forwarding rules for a single MG.** https://developer.cisco.com/meraki/api-v1/#!update-device-cellular-gateway-port-forwarding-rules - serial (string): (required) - rules (array): An array of port forwarding params r r ZportForwardingRules.updateDeviceCellularGatewayPortForwardingRules)r r z /devices/z$/cellularGateway/portForwardingRulesrulescs&i|]\}}|kr||qSr)r)rrr)rrrr9sz]ActionBatchCellularGateway.updateDeviceCellularGatewayPortForwardingRules..r)rr r)rrr)rrrrrrrr)rrr's  zIActionBatchCellularGateway.updateDeviceCellularGatewayPortForwardingRules) networkIdc sT|tdddgdd}d|d}dgfd d |D}|d |d }|S) aH **Update the connectivity testing destinations for an MG network** https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-connectivity-monitoring-destinations - networkId (string): (required) - destinations (array): The list of connectivity monitoring destinations r r Z"connectivityMonitoringDestinations>updateNetworkCellularGatewayConnectivityMonitoringDestinations)r r z /networks/z3/cellularGateway/connectivityMonitoringDestinations destinationscs&i|]\}}|kr||qSr)r)rrr)rrrrXszmActionBatchCellularGateway.updateNetworkCellularGatewayConnectivityMonitoringDestinations..r)rr r)rrr)rrrrrrrr)rrr Fs  zYActionBatchCellularGateway.updateNetworkCellularGatewayConnectivityMonitoringDestinationsc sX|tdddgdd}d|d}dd d gfd d |D}|d |d}|S)av **Update common DHCP settings of MGs** https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-dhcp - networkId (string): (required) - dhcpLeaseTime (string): DHCP Lease time for all MG of the network. It can be '30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week'. - dnsNameservers (string): DNS name servers mode for all MG of the network. It can take 4 different values: 'upstream_dns', 'google_dns', 'opendns', 'custom'. - dnsCustomNameservers (array): list of fixed IP representing the the DNS Name servers when the mode is 'custom' r r Zdhcp updateNetworkCellularGatewayDhcp)r r z /networks/z/cellularGateway/dhcpZ dhcpLeaseTimeZdnsNameserversZdnsCustomNameserverscs&i|]\}}|kr||qSr)r)rrr)rrrryszOActionBatchCellularGateway.updateNetworkCellularGatewayDhcp..r)rr r)rrr)rrrrrrrr)rrr"es   z;ActionBatchCellularGateway.updateNetworkCellularGatewayDhcpc sV|tdddgdd}d|d}dd gfd d |D}|d |d }|S)a **Update the subnet pool and mask configuration for MGs in the network.** https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-subnet-pool - networkId (string): (required) - mask (integer): Mask used for the subnet of all MGs in this network. - cidr (string): CIDR of the pool of subnets. Each MG in this network will automatically pick a subnet from this pool. r r Z subnetPool&updateNetworkCellularGatewaySubnetPool)r r z /networks/z/cellularGateway/subnetPoolmaskZcidrcs&i|]\}}|kr||qSr)r)rrr)rrrrszUActionBatchCellularGateway.updateNetworkCellularGatewaySubnetPool..r)rr r)rrr)rrrrrrrr)rrr#s  zAActionBatchCellularGateway.updateNetworkCellularGatewaySubnetPoolc sT|tdddgdd}d|d}dgfd d |D}|d |d }|S) a  **Updates the uplink settings for your MG network.** https://developer.cisco.com/meraki/api-v1/#!update-network-cellular-gateway-uplink - networkId (string): (required) - bandwidthLimits (object): The bandwidth settings for the 'cellular' uplink r r Zuplink"updateNetworkCellularGatewayUplink)r r z /networks/z/cellularGateway/uplinkZbandwidthLimitscs&i|]\}}|kr||qSr)r)rrr)rrrrszQActionBatchCellularGateway.updateNetworkCellularGatewayUplink..r)rr r)rrr)rrrrrrrr)rrr%s  z=ActionBatchCellularGateway.updateNetworkCellularGatewayUplink) __name__ __module__ __qualname__rstrr rr r"r#r% __classcell__rr)rrrs  ! rN)objectrrrrr