<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def editTileService(self, serviceDefinition=None, minScale=None, maxScale=None, sourceItemId=None, exportTilesAllowed=False, maxExportTileCount=100000):
 """ This post operation updates a Tile Service's properties Inputs: serviceDefinition - updates a service definition minScale - sets the services minimum scale for caching maxScale - sets the service's maximum scale for caching sourceItemId - The Source Item ID is the GeoWarehouse Item ID of the map service exportTilesAllowed - sets the value to let users export tiles maxExportTileCount - sets the maximum amount of tiles to be exported from a single call. """

        params = {
            "f" : "json",
        }
        if not serviceDefinition is None:
            params["serviceDefinition"] = serviceDefinition
        if not minScale is None:
            params['minScale'] = float(minScale)
        if not maxScale is None:
            params['maxScale'] = float(maxScale)
        if not sourceItemId is None:
            params["sourceItemId"] = sourceItemId
        if not exportTilesAllowed is None:
            params["exportTilesAllowed"] = exportTilesAllowed
        if not maxExportTileCount is None:
            params["maxExportTileCount"] = int(maxExportTileCount)
        url = self._url + "/edit"
        return self._post(url=url,
                             param_dict=params,
                             securityHandler=self._securityHandler,
                             proxy_url=self._securityHandler.proxy_url,
                             proxy_port=self._securityHandler.proxy_port)