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

41 lines
957 B
C

/*
* v1beta1_scheduling.h
*
* Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
*/
#ifndef _v1beta1_scheduling_H_
#define _v1beta1_scheduling_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1beta1_scheduling_t v1beta1_scheduling_t;
#include "v1_toleration.h"
typedef struct v1beta1_scheduling_t {
list_t* node_selector; //map
list_t *tolerations; //nonprimitive container
} v1beta1_scheduling_t;
v1beta1_scheduling_t *v1beta1_scheduling_create(
list_t* node_selector,
list_t *tolerations
);
void v1beta1_scheduling_free(v1beta1_scheduling_t *v1beta1_scheduling);
v1beta1_scheduling_t *v1beta1_scheduling_parseFromJSON(cJSON *v1beta1_schedulingJSON);
cJSON *v1beta1_scheduling_convertToJSON(v1beta1_scheduling_t *v1beta1_scheduling);
#endif /* _v1beta1_scheduling_H_ */