@staticmethod
def _convert_query_params_to_string_for_bytes(query_params):
    """
        Required to set multiple build states i.e ?state[]=running&state[]=scheduled

        :param query_params: query parameters
        :return: bytes of query param
        """
    query_string = ''
    for key, value in query_params.items():
        if query_string != '':
            query_string += '&'
        if key == 'state':
            query_string += value
        else:
            query_string += key + '=' + str(value)
    return query_string
