Files
c/kubernetes/model/apiregistration_v1_service_reference.h
Hui Yu 732348e69e Re-generate the C client to merge recent changes from openapi-generator:
1. [C][Client] Add C++ reserved keywords to C-libcurl client generator,then the C client can be compiled by C++ compiler (#8205)

2. [C][Client] Disable escaping the parameter name in URL path string (#8243)

3. [C][Client] Fix coredump when releasing the memory of an incompleted model (#8190)
2021-01-05 15:42:34 +08:00

42 lines
1.2 KiB
C

/*
* apiregistration_v1_service_reference.h
*
* ServiceReference holds a reference to Service.legacy.k8s.io
*/
#ifndef _apiregistration_v1_service_reference_H_
#define _apiregistration_v1_service_reference_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct apiregistration_v1_service_reference_t apiregistration_v1_service_reference_t;
typedef struct apiregistration_v1_service_reference_t {
char *name; // string
char *_namespace; // string
int port; //numeric
} apiregistration_v1_service_reference_t;
apiregistration_v1_service_reference_t *apiregistration_v1_service_reference_create(
char *name,
char *_namespace,
int port
);
void apiregistration_v1_service_reference_free(apiregistration_v1_service_reference_t *apiregistration_v1_service_reference);
apiregistration_v1_service_reference_t *apiregistration_v1_service_reference_parseFromJSON(cJSON *apiregistration_v1_service_referenceJSON);
cJSON *apiregistration_v1_service_reference_convertToJSON(apiregistration_v1_service_reference_t *apiregistration_v1_service_reference);
#endif /* _apiregistration_v1_service_reference_H_ */