/*
 * v1_config_map.h
 *
 * ConfigMap holds configuration data for pods to consume.
 */

#ifndef _v1_config_map_H_
#define _v1_config_map_H_

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

typedef struct v1_config_map_t v1_config_map_t;

#include "v1_object_meta.h"



typedef struct v1_config_map_t {
    char *api_version; // string
    list_t* binary_data; //map
    list_t* data; //map
    int immutable; //boolean
    char *kind; // string
    struct v1_object_meta_t *metadata; //model

} v1_config_map_t;

v1_config_map_t *v1_config_map_create(
    char *api_version,
    list_t* binary_data,
    list_t* data,
    int immutable,
    char *kind,
    v1_object_meta_t *metadata
);

void v1_config_map_free(v1_config_map_t *v1_config_map);

v1_config_map_t *v1_config_map_parseFromJSON(cJSON *v1_config_mapJSON);

cJSON *v1_config_map_convertToJSON(v1_config_map_t *v1_config_map);

#endif /* _v1_config_map_H_ */

