/*
 * v1_node_selector_requirement.h
 *
 * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
 */

#ifndef _v1_node_selector_requirement_H_
#define _v1_node_selector_requirement_H_

#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"

typedef struct v1_node_selector_requirement_t v1_node_selector_requirement_t;




typedef struct v1_node_selector_requirement_t {
    char *key; // string
    char *_operator; // string
    list_t *values; //primitive container

} v1_node_selector_requirement_t;

v1_node_selector_requirement_t *v1_node_selector_requirement_create(
    char *key,
    char *_operator,
    list_t *values
);

void v1_node_selector_requirement_free(v1_node_selector_requirement_t *v1_node_selector_requirement);

v1_node_selector_requirement_t *v1_node_selector_requirement_parseFromJSON(cJSON *v1_node_selector_requirementJSON);

cJSON *v1_node_selector_requirement_convertToJSON(v1_node_selector_requirement_t *v1_node_selector_requirement);

#endif /* _v1_node_selector_requirement_H_ */

