def _firewall_policy_sql_query_get(self, kwargs): ''' Create SQL query according to the provided parameters or exclude them from statement :param kwargs: id_type, id_value, policy_name :return: SQL query ''' kwargs = Validator.firewall_get_policies(**kwargs) query = "select id, types,sub_type,policy_element from firewall_policies where uuid=(select uuid from host_ids where {}='{}'){}".\ format(kwargs['id_type'], kwargs['id_value'], kwargs['policy_name']) return query