Files
c/kubernetes/model/v1beta1_named_rule_with_operations.h
Kubernetes Prow Robot 0f1f163bb9 Automated openapi generation from release-1.28
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2023-09-06 01:56:31 +00:00

48 lines
1.5 KiB
C

/*
* v1beta1_named_rule_with_operations.h
*
* NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
*/
#ifndef _v1beta1_named_rule_with_operations_H_
#define _v1beta1_named_rule_with_operations_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1beta1_named_rule_with_operations_t v1beta1_named_rule_with_operations_t;
typedef struct v1beta1_named_rule_with_operations_t {
list_t *api_groups; //primitive container
list_t *api_versions; //primitive container
list_t *operations; //primitive container
list_t *resource_names; //primitive container
list_t *resources; //primitive container
char *scope; // string
} v1beta1_named_rule_with_operations_t;
v1beta1_named_rule_with_operations_t *v1beta1_named_rule_with_operations_create(
list_t *api_groups,
list_t *api_versions,
list_t *operations,
list_t *resource_names,
list_t *resources,
char *scope
);
void v1beta1_named_rule_with_operations_free(v1beta1_named_rule_with_operations_t *v1beta1_named_rule_with_operations);
v1beta1_named_rule_with_operations_t *v1beta1_named_rule_with_operations_parseFromJSON(cJSON *v1beta1_named_rule_with_operationsJSON);
cJSON *v1beta1_named_rule_with_operations_convertToJSON(v1beta1_named_rule_with_operations_t *v1beta1_named_rule_with_operations);
#endif /* _v1beta1_named_rule_with_operations_H_ */