2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* admissionregistration_v1_service_reference.h
|
|
|
|
|
*
|
|
|
|
|
* ServiceReference holds a reference to Service.legacy.k8s.io
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _admissionregistration_v1_service_reference_H_
|
|
|
|
|
#define _admissionregistration_v1_service_reference_H_
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
|
#include "../include/list.h"
|
|
|
|
|
#include "../include/keyValuePair.h"
|
2020-06-20 09:41:15 +08:00
|
|
|
#include "../include/binary.h"
|
|
|
|
|
|
|
|
|
|
typedef struct admissionregistration_v1_service_reference_t admissionregistration_v1_service_reference_t;
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct admissionregistration_v1_service_reference_t {
|
|
|
|
|
char *name; // string
|
2021-01-05 15:42:34 +08:00
|
|
|
char *_namespace; // string
|
2020-03-18 17:24:33 +08:00
|
|
|
char *path; // string
|
|
|
|
|
int port; //numeric
|
|
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
2020-03-18 17:24:33 +08:00
|
|
|
} admissionregistration_v1_service_reference_t;
|
|
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
__attribute__((deprecated)) admissionregistration_v1_service_reference_t *admissionregistration_v1_service_reference_create(
|
2020-03-18 17:24:33 +08:00
|
|
|
char *name,
|
2021-01-05 15:42:34 +08:00
|
|
|
char *_namespace,
|
2020-03-18 17:24:33 +08:00
|
|
|
char *path,
|
|
|
|
|
int port
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void admissionregistration_v1_service_reference_free(admissionregistration_v1_service_reference_t *admissionregistration_v1_service_reference);
|
|
|
|
|
|
|
|
|
|
admissionregistration_v1_service_reference_t *admissionregistration_v1_service_reference_parseFromJSON(cJSON *admissionregistration_v1_service_referenceJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *admissionregistration_v1_service_reference_convertToJSON(admissionregistration_v1_service_reference_t *admissionregistration_v1_service_reference);
|
|
|
|
|
|
|
|
|
|
#endif /* _admissionregistration_v1_service_reference_H_ */
|
|
|
|
|
|