Files
c/kubernetes/model/v1_toleration.h
Brendan Burns d72a1c8566 Automated openapi generation from release-1.32
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2025-02-11 19:36:46 +00:00

47 lines
1.1 KiB
C

/*
* v1_toleration.h
*
* The pod this Toleration is attached to tolerates any taint that matches the triple &lt;key,value,effect&gt; using the matching operator &lt;operator&gt;.
*/
#ifndef _v1_toleration_H_
#define _v1_toleration_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_toleration_t v1_toleration_t;
typedef struct v1_toleration_t {
char *effect; // string
char *key; // string
char *_operator; // string
long toleration_seconds; //numeric
char *value; // string
int _library_owned; // Is the library responsible for freeing this object?
} v1_toleration_t;
__attribute__((deprecated)) v1_toleration_t *v1_toleration_create(
char *effect,
char *key,
char *_operator,
long toleration_seconds,
char *value
);
void v1_toleration_free(v1_toleration_t *v1_toleration);
v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON);
cJSON *v1_toleration_convertToJSON(v1_toleration_t *v1_toleration);
#endif /* _v1_toleration_H_ */