1. [C][Client] Add C++ reserved keywords to C-libcurl client generator,then the C client can be compiled by C++ compiler (#8205) 2. [C][Client] Disable escaping the parameter name in URL path string (#8243) 3. [C][Client] Fix coredump when releasing the memory of an incompleted model (#8190)
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* rbac_v1alpha1_subject.h
|
|
*
|
|
* Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
|
|
*/
|
|
|
|
#ifndef _rbac_v1alpha1_subject_H_
|
|
#define _rbac_v1alpha1_subject_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct rbac_v1alpha1_subject_t rbac_v1alpha1_subject_t;
|
|
|
|
|
|
|
|
|
|
typedef struct rbac_v1alpha1_subject_t {
|
|
char *api_version; // string
|
|
char *kind; // string
|
|
char *name; // string
|
|
char *_namespace; // string
|
|
|
|
} rbac_v1alpha1_subject_t;
|
|
|
|
rbac_v1alpha1_subject_t *rbac_v1alpha1_subject_create(
|
|
char *api_version,
|
|
char *kind,
|
|
char *name,
|
|
char *_namespace
|
|
);
|
|
|
|
void rbac_v1alpha1_subject_free(rbac_v1alpha1_subject_t *rbac_v1alpha1_subject);
|
|
|
|
rbac_v1alpha1_subject_t *rbac_v1alpha1_subject_parseFromJSON(cJSON *rbac_v1alpha1_subjectJSON);
|
|
|
|
cJSON *rbac_v1alpha1_subject_convertToJSON(rbac_v1alpha1_subject_t *rbac_v1alpha1_subject);
|
|
|
|
#endif /* _rbac_v1alpha1_subject_H_ */
|
|
|