42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
/*
|
|
* v2_horizontal_pod_autoscaler_behavior.h
|
|
*
|
|
* HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
|
|
*/
|
|
|
|
#ifndef _v2_horizontal_pod_autoscaler_behavior_H_
|
|
#define _v2_horizontal_pod_autoscaler_behavior_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v2_horizontal_pod_autoscaler_behavior_t v2_horizontal_pod_autoscaler_behavior_t;
|
|
|
|
#include "v2_hpa_scaling_rules.h"
|
|
|
|
|
|
|
|
typedef struct v2_horizontal_pod_autoscaler_behavior_t {
|
|
struct v2_hpa_scaling_rules_t *scale_down; //model
|
|
struct v2_hpa_scaling_rules_t *scale_up; //model
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v2_horizontal_pod_autoscaler_behavior_t;
|
|
|
|
__attribute__((deprecated)) v2_horizontal_pod_autoscaler_behavior_t *v2_horizontal_pod_autoscaler_behavior_create(
|
|
v2_hpa_scaling_rules_t *scale_down,
|
|
v2_hpa_scaling_rules_t *scale_up
|
|
);
|
|
|
|
void v2_horizontal_pod_autoscaler_behavior_free(v2_horizontal_pod_autoscaler_behavior_t *v2_horizontal_pod_autoscaler_behavior);
|
|
|
|
v2_horizontal_pod_autoscaler_behavior_t *v2_horizontal_pod_autoscaler_behavior_parseFromJSON(cJSON *v2_horizontal_pod_autoscaler_behaviorJSON);
|
|
|
|
cJSON *v2_horizontal_pod_autoscaler_behavior_convertToJSON(v2_horizontal_pod_autoscaler_behavior_t *v2_horizontal_pod_autoscaler_behavior);
|
|
|
|
#endif /* _v2_horizontal_pod_autoscaler_behavior_H_ */
|
|
|