Files
c/kubernetes/model/v1alpha1_audit_annotation.h
Kubernetes Prow Robot f0ac80fb61 Automated openapi generation from release-1.27
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2023-06-05 02:09:22 +00:00

40 lines
1.0 KiB
C

/*
* v1alpha1_audit_annotation.h
*
* AuditAnnotation describes how to produce an audit annotation for an API request.
*/
#ifndef _v1alpha1_audit_annotation_H_
#define _v1alpha1_audit_annotation_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1alpha1_audit_annotation_t v1alpha1_audit_annotation_t;
typedef struct v1alpha1_audit_annotation_t {
char *key; // string
char *value_expression; // string
} v1alpha1_audit_annotation_t;
v1alpha1_audit_annotation_t *v1alpha1_audit_annotation_create(
char *key,
char *value_expression
);
void v1alpha1_audit_annotation_free(v1alpha1_audit_annotation_t *v1alpha1_audit_annotation);
v1alpha1_audit_annotation_t *v1alpha1_audit_annotation_parseFromJSON(cJSON *v1alpha1_audit_annotationJSON);
cJSON *v1alpha1_audit_annotation_convertToJSON(v1alpha1_audit_annotation_t *v1alpha1_audit_annotation);
#endif /* _v1alpha1_audit_annotation_H_ */