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

48 lines
1.5 KiB
C

/*
* v1_flow_schema_spec.h
*
* FlowSchemaSpec describes how the FlowSchema&#39;s specification looks like.
*/
#ifndef _v1_flow_schema_spec_H_
#define _v1_flow_schema_spec_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_flow_schema_spec_t v1_flow_schema_spec_t;
#include "v1_flow_distinguisher_method.h"
#include "v1_policy_rules_with_subjects.h"
#include "v1_priority_level_configuration_reference.h"
typedef struct v1_flow_schema_spec_t {
struct v1_flow_distinguisher_method_t *distinguisher_method; //model
int matching_precedence; //numeric
struct v1_priority_level_configuration_reference_t *priority_level_configuration; //model
list_t *rules; //nonprimitive container
int _library_owned; // Is the library responsible for freeing this object?
} v1_flow_schema_spec_t;
__attribute__((deprecated)) v1_flow_schema_spec_t *v1_flow_schema_spec_create(
v1_flow_distinguisher_method_t *distinguisher_method,
int matching_precedence,
v1_priority_level_configuration_reference_t *priority_level_configuration,
list_t *rules
);
void v1_flow_schema_spec_free(v1_flow_schema_spec_t *v1_flow_schema_spec);
v1_flow_schema_spec_t *v1_flow_schema_spec_parseFromJSON(cJSON *v1_flow_schema_specJSON);
cJSON *v1_flow_schema_spec_convertToJSON(v1_flow_schema_spec_t *v1_flow_schema_spec);
#endif /* _v1_flow_schema_spec_H_ */