def _fix_up_method_description(method_desc, root_desc):
 path_url = method_desc['path']
 http_method = method_desc['httpMethod']
 method_id = method_desc['id']
 parameters = _fix_up_parameters(method_desc, root_desc, http_method)
 (accept, max_size, media_path_url) = _fix_up_media_upload(method_desc, root_desc, path_url, parameters)
 return (path_url, http_method, method_id, accept, max_size, media_path_url)

def _fix_up_method_description ( method_desc , root_desc ) : path_url = method_desc [ 'path' ] http_method = method_desc [ 'httpMethod' ] method_id = method_desc [ 'id' ] parameters = _fix_up_parameters ( method_desc , root_desc , http_method ) ( accept , max_size , media_path_url ) = _fix_up_media_upload ( method_desc , root_desc , path_url , parameters ) return ( path_url , http_method , method_id , accept , max_size , media_path_url )
updates a method description in a discovery document .