Files
c/kubernetes/model/v1_api_resource.h
Brendan Burns d72a1c8566 Automated openapi generation from release-1.32
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2025-02-11 19:36:46 +00:00

57 lines
1.4 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
int _library_owned; // Is the library responsible for freeing this object?
} v1_api_resource_t;
__attribute__((deprecated)) 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_ */