Files
c/kubernetes/model/v1alpha3_device.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

41 lines
963 B
C

/*
* v1alpha3_device.h
*
* Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
*/
#ifndef _v1alpha3_device_H_
#define _v1alpha3_device_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1alpha3_device_t v1alpha3_device_t;
#include "v1alpha3_basic_device.h"
typedef struct v1alpha3_device_t {
struct v1alpha3_basic_device_t *basic; //model
char *name; // string
} v1alpha3_device_t;
v1alpha3_device_t *v1alpha3_device_create(
v1alpha3_basic_device_t *basic,
char *name
);
void v1alpha3_device_free(v1alpha3_device_t *v1alpha3_device);
v1alpha3_device_t *v1alpha3_device_parseFromJSON(cJSON *v1alpha3_deviceJSON);
cJSON *v1alpha3_device_convertToJSON(v1alpha3_device_t *v1alpha3_device);
#endif /* _v1alpha3_device_H_ */