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

56 lines
1.3 KiB
C

/*
* v1_api_resource.h
*
* APIResource specifies the name of a resource and whether it is namespaced.
*/
#ifndef _v1_api_resource_H_
#define _v1_api_resource_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_api_resource_t v1_api_resource_t;
typedef struct v1_api_resource_t {
list_t *categories; //primitive container
char *group; // string
char *kind; // string
char *name; // string
int namespaced; //boolean
list_t *short_names; //primitive container
char *singular_name; // string
char *storage_version_hash; // string
list_t *verbs; //primitive container
char *version; // string
} v1_api_resource_t;
v1_api_resource_t *v1_api_resource_create(
list_t *categories,
char *group,
char *kind,
char *name,
int namespaced,
list_t *short_names,
char *singular_name,
char *storage_version_hash,
list_t *verbs,
char *version
);
void v1_api_resource_free(v1_api_resource_t *v1_api_resource);
v1_api_resource_t *v1_api_resource_parseFromJSON(cJSON *v1_api_resourceJSON);
cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource);
#endif /* _v1_api_resource_H_ */