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

40 lines
828 B
C

/*
* v1_capabilities.h
*
* Adds and removes POSIX capabilities from running containers.
*/
#ifndef _v1_capabilities_H_
#define _v1_capabilities_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_capabilities_t v1_capabilities_t;
typedef struct v1_capabilities_t {
list_t *add; //primitive container
list_t *drop; //primitive container
} v1_capabilities_t;
v1_capabilities_t *v1_capabilities_create(
list_t *add,
list_t *drop
);
void v1_capabilities_free(v1_capabilities_t *v1_capabilities);
v1_capabilities_t *v1_capabilities_parseFromJSON(cJSON *v1_capabilitiesJSON);
cJSON *v1_capabilities_convertToJSON(v1_capabilities_t *v1_capabilities);
#endif /* _v1_capabilities_H_ */