B ` @sGdddeZdS)cs8eZdZfddZedddZedddZZS)ActionBatchDevicescstt|dS)N)superr__init__)self) __class__s/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki/api/batch/devices.pyrszActionBatchDevices.__init__)serialc s`|tddgdd}d|}dddd d d d d dg fdd|D}|d|d}|S)a **Update the attributes of a device** https://developer.cisco.com/meraki/api-v1/#!update-device - serial (string): (required) - name (string): The name of a device - tags (array): The list of tags of a device - lat (number): The latitude of a device - lng (number): The longitude of a device - address (string): The address of a device - notes (string): The notes for the device. String. Limited to 255 characters. - moveMapMarker (boolean): Whether or not to set the latitude and longitude of a device based on the new address. Only applies when lat and lng are not specified. - switchProfileId (string): The ID of a switch profile to bind to the device (for available switch profiles, see the 'Switch Profiles' endpoint). Use null to unbind the switch device from the current profile. For a device to be bindable to a switch profile, it must (1) be a switch, and (2) belong to a network that is bound to a configuration template. - floorPlanId (string): The floor plan to associate to this device. null disassociates the device from the floorplan. devices configure updateDevice)tags operationz /devices/namer ZlatZlngaddressZnotesZ moveMapMarkerZswitchProfileIdZ floorPlanIdcs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr !sz3ActionBatchDevices.updateDevice..update)resourcer body)rlocalsitems)rrkwargsmetadatarpayloadactionr)rrr s  zActionBatchDevices.updateDevicec sV|tdddgdd}d|d}dd gfd d |D}|d |d }|S)a/ **Update the management interface settings for a device** https://developer.cisco.com/meraki/api-v1/#!update-device-management-interface - serial (string): (required) - wan1 (object): WAN 1 settings - wan2 (object): WAN 2 settings (only for MX devices) r r ZmanagementInterfaceupdateDeviceManagementInterface)r r z /devices/z/managementInterfaceZwan1Zwan2cs&i|]\}}|kr||qSr)r)rrr)rrrrAszFActionBatchDevices.updateDeviceManagementInterface..r)rr r)rrr)rrrrrrrr)rrr.s  z2ActionBatchDevices.updateDeviceManagementInterface)__name__ __module__ __qualname__rstrr r __classcell__rr)rrrs 'rN)objectrrrrr