@handle(methods.set_parameters, env='tid')
async def set_parameters(self, env: data.Environment, parameters: List[Dict[(str, Any)]]) -> Apireturn:
    recompile = False
    params: List[Tuple[(str, ResourceIdStr)]] = []
    for param in parameters:
        name: str = param['id']
        source = param['source']
        value = (param['value'] if ('value' in param) else None)
        resource_id: ResourceIdStr = (param['resource_id'] if ('resource_id' in param) else None)
        metadata = (param['metadata'] if ('metadata' in param) else None)
        result = (await self._update_param(env, name, value, source, resource_id, metadata))
        if result:
            recompile = True
            params.append((name, resource_id))
    compile_metadata = {'message': 'Recompile model because one or more parameters were updated', 'type': 'param', 'params': params}
    warnings = None
    if recompile:
        warnings = (await self.server_slice._async_recompile(env, False, metadata=compile_metadata))
    return attach_warnings(200, None, warnings)
@handle(methods.set_parameters, env='tid')
async def set_parameters(self, env: data.Environment, parameters: List[Dict[(str, Any)]]) -> Apireturn:
    recompile = False
    params: List[Tuple[(str, ResourceIdStr)]] = []
    for param in parameters:
        name: str = param['id']
        source = param['source']
        value = (param['value'] if ('value' in param) else None)
        resource_id: ResourceIdStr = (param['resource_id'] if ('resource_id' in param) else None)
        metadata = (param['metadata'] if ('metadata' in param) else None)
        result = (await self._update_param(env, name, value, source, resource_id, metadata))
        if result:
            recompile = True
            params.append((name, resource_id))
    compile_metadata = {'message': 'Recompile model because one or more parameters were updated', 'type': 'param', 'params': params}
    warnings = None
    if recompile:
        warnings = (await self.server_slice._async_recompile(env, False, metadata=compile_metadata))
    return attach_warnings(200, None, warnings)