Files
c/kubernetes/model/v2_horizontal_pod_autoscaler_behavior.h
Brendan Burns d72a1c8566 Automated openapi generation from release-1.32
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2025-02-11 19:36:46 +00:00

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_ */