Files
c/kubernetes/model/v1alpha1_flow_schema_spec.h
Hui Yu ab432efa49 [API] Re-run code generator to merge the changes of OpenAPITools/openapi-generator to fix the bug:
* If the data type of query parameter is "int" or "bool" in OpenAPI Spec, the request url will not be generated correctly. ( PR #6692 )
2020-06-20 09:41:15 +08:00

47 lines
1.5 KiB
C

/*
* v1alpha1_flow_schema_spec.h
*
* FlowSchemaSpec describes how the FlowSchema's specification looks like.
*/
#ifndef _v1alpha1_flow_schema_spec_H_
#define _v1alpha1_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 v1alpha1_flow_schema_spec_t v1alpha1_flow_schema_spec_t;
#include "v1alpha1_flow_distinguisher_method.h"
#include "v1alpha1_policy_rules_with_subjects.h"
#include "v1alpha1_priority_level_configuration_reference.h"
typedef struct v1alpha1_flow_schema_spec_t {
struct v1alpha1_flow_distinguisher_method_t *distinguisher_method; //model
int matching_precedence; //numeric
struct v1alpha1_priority_level_configuration_reference_t *priority_level_configuration; //model
list_t *rules; //nonprimitive container
} v1alpha1_flow_schema_spec_t;
v1alpha1_flow_schema_spec_t *v1alpha1_flow_schema_spec_create(
v1alpha1_flow_distinguisher_method_t *distinguisher_method,
int matching_precedence,
v1alpha1_priority_level_configuration_reference_t *priority_level_configuration,
list_t *rules
);
void v1alpha1_flow_schema_spec_free(v1alpha1_flow_schema_spec_t *v1alpha1_flow_schema_spec);
v1alpha1_flow_schema_spec_t *v1alpha1_flow_schema_spec_parseFromJSON(cJSON *v1alpha1_flow_schema_specJSON);
cJSON *v1alpha1_flow_schema_spec_convertToJSON(v1alpha1_flow_schema_spec_t *v1alpha1_flow_schema_spec);
#endif /* _v1alpha1_flow_schema_spec_H_ */