Files
c/kubernetes/model/v1_success_policy.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

40 lines
999 B
C

/*
* v1_success_policy.h
*
* SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
*/
#ifndef _v1_success_policy_H_
#define _v1_success_policy_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_success_policy_t v1_success_policy_t;
#include "v1_success_policy_rule.h"
typedef struct v1_success_policy_t {
list_t *rules; //nonprimitive container
int _library_owned; // Is the library responsible for freeing this object?
} v1_success_policy_t;
__attribute__((deprecated)) v1_success_policy_t *v1_success_policy_create(
list_t *rules
);
void v1_success_policy_free(v1_success_policy_t *v1_success_policy);
v1_success_policy_t *v1_success_policy_parseFromJSON(cJSON *v1_success_policyJSON);
cJSON *v1_success_policy_convertToJSON(v1_success_policy_t *v1_success_policy);
#endif /* _v1_success_policy_H_ */