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

42 lines
1.0 KiB
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
int _library_owned; // Is the library responsible for freeing this object?
} v1alpha3_device_t;
__attribute__((deprecated)) 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_ */