* If the data type of query parameter is "int" or "bool" in OpenAPI Spec, the request url will not be generated correctly. ( PR #6692 )
46 lines
1.6 KiB
C
46 lines
1.6 KiB
C
/*
|
|
* v2beta1_horizontal_pod_autoscaler_spec.h
|
|
*
|
|
* HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
|
|
*/
|
|
|
|
#ifndef _v2beta1_horizontal_pod_autoscaler_spec_H_
|
|
#define _v2beta1_horizontal_pod_autoscaler_spec_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v2beta1_horizontal_pod_autoscaler_spec_t v2beta1_horizontal_pod_autoscaler_spec_t;
|
|
|
|
#include "v2beta1_cross_version_object_reference.h"
|
|
#include "v2beta1_metric_spec.h"
|
|
|
|
|
|
|
|
typedef struct v2beta1_horizontal_pod_autoscaler_spec_t {
|
|
int max_replicas; //numeric
|
|
list_t *metrics; //nonprimitive container
|
|
int min_replicas; //numeric
|
|
struct v2beta1_cross_version_object_reference_t *scale_target_ref; //model
|
|
|
|
} v2beta1_horizontal_pod_autoscaler_spec_t;
|
|
|
|
v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_create(
|
|
int max_replicas,
|
|
list_t *metrics,
|
|
int min_replicas,
|
|
v2beta1_cross_version_object_reference_t *scale_target_ref
|
|
);
|
|
|
|
void v2beta1_horizontal_pod_autoscaler_spec_free(v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec);
|
|
|
|
v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta1_horizontal_pod_autoscaler_specJSON);
|
|
|
|
cJSON *v2beta1_horizontal_pod_autoscaler_spec_convertToJSON(v2beta1_horizontal_pod_autoscaler_spec_t *v2beta1_horizontal_pod_autoscaler_spec);
|
|
|
|
#endif /* _v2beta1_horizontal_pod_autoscaler_spec_H_ */
|
|
|