Files
c/kubernetes/model/v1alpha3_device_constraint.h
Kubernetes Prow Robot f914036e5a Automated openapi generation from release-1.31
Signed-off-by: Hui Yu <ityuhui@gmail.com>
2024-10-12 12:08:56 +08:00

40 lines
1.0 KiB
C

/*
* v1alpha3_device_constraint.h
*
* DeviceConstraint must have exactly one field set besides Requests.
*/
#ifndef _v1alpha3_device_constraint_H_
#define _v1alpha3_device_constraint_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1alpha3_device_constraint_t v1alpha3_device_constraint_t;
typedef struct v1alpha3_device_constraint_t {
char *match_attribute; // string
list_t *requests; //primitive container
} v1alpha3_device_constraint_t;
v1alpha3_device_constraint_t *v1alpha3_device_constraint_create(
char *match_attribute,
list_t *requests
);
void v1alpha3_device_constraint_free(v1alpha3_device_constraint_t *v1alpha3_device_constraint);
v1alpha3_device_constraint_t *v1alpha3_device_constraint_parseFromJSON(cJSON *v1alpha3_device_constraintJSON);
cJSON *v1alpha3_device_constraint_convertToJSON(v1alpha3_device_constraint_t *v1alpha3_device_constraint);
#endif /* _v1alpha3_device_constraint_H_ */