2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* v1_custom_resource_subresource_scale.h
|
|
|
|
|
*
|
|
|
|
|
* CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_custom_resource_subresource_scale_H_
|
|
|
|
|
#define _v1_custom_resource_subresource_scale_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 v1_custom_resource_subresource_scale_t v1_custom_resource_subresource_scale_t;
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_custom_resource_subresource_scale_t {
|
|
|
|
|
char *label_selector_path; // string
|
|
|
|
|
char *spec_replicas_path; // string
|
|
|
|
|
char *status_replicas_path; // string
|
|
|
|
|
|
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
|
|
|
} v1_custom_resource_subresource_scale_t;
|
|
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
__attribute__((deprecated)) v1_custom_resource_subresource_scale_t *v1_custom_resource_subresource_scale_create(
|
2020-03-18 17:24:33 +08:00
|
|
|
char *label_selector_path,
|
|
|
|
|
char *spec_replicas_path,
|
|
|
|
|
char *status_replicas_path
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_custom_resource_subresource_scale_free(v1_custom_resource_subresource_scale_t *v1_custom_resource_subresource_scale);
|
|
|
|
|
|
|
|
|
|
v1_custom_resource_subresource_scale_t *v1_custom_resource_subresource_scale_parseFromJSON(cJSON *v1_custom_resource_subresource_scaleJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_custom_resource_subresource_scale_convertToJSON(v1_custom_resource_subresource_scale_t *v1_custom_resource_subresource_scale);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_custom_resource_subresource_scale_H_ */
|
|
|
|
|
|