* If the data type of query parameter is "int" or "bool" in OpenAPI Spec, the request url will not be generated correctly. ( PR #6692 )
42 lines
1.2 KiB
C
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_ */
|
|
|