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

39 lines
1.2 KiB
C

/*
* v1_topology_selector_term.h
*
* A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.
*/
#ifndef _v1_topology_selector_term_H_
#define _v1_topology_selector_term_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_topology_selector_term_t v1_topology_selector_term_t;
#include "v1_topology_selector_label_requirement.h"
typedef struct v1_topology_selector_term_t {
list_t *match_label_expressions; //nonprimitive container
} v1_topology_selector_term_t;
v1_topology_selector_term_t *v1_topology_selector_term_create(
list_t *match_label_expressions
);
void v1_topology_selector_term_free(v1_topology_selector_term_t *v1_topology_selector_term);
v1_topology_selector_term_t *v1_topology_selector_term_parseFromJSON(cJSON *v1_topology_selector_termJSON);
cJSON *v1_topology_selector_term_convertToJSON(v1_topology_selector_term_t *v1_topology_selector_term);
#endif /* _v1_topology_selector_term_H_ */