Files
c/kubernetes/model/v1_volume_attachment_source.h
Hui Yu 8ba394045d commit
1. The kubernetes-client/gen setting for c generator

    2. The source code generated by OpenAPI c generator
2020-03-18 17:24:33 +08:00

37 lines
1.2 KiB
C

/*
* v1_volume_attachment_source.h
*
* VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.
*/
#ifndef _v1_volume_attachment_source_H_
#define _v1_volume_attachment_source_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "v1_persistent_volume_spec.h"
typedef struct v1_volume_attachment_source_t {
struct v1_persistent_volume_spec_t *inline_volume_spec; //model
char *persistent_volume_name; // string
} v1_volume_attachment_source_t;
v1_volume_attachment_source_t *v1_volume_attachment_source_create(
v1_persistent_volume_spec_t *inline_volume_spec,
char *persistent_volume_name
);
void v1_volume_attachment_source_free(v1_volume_attachment_source_t *v1_volume_attachment_source);
v1_volume_attachment_source_t *v1_volume_attachment_source_parseFromJSON(cJSON *v1_volume_attachment_sourceJSON);
cJSON *v1_volume_attachment_source_convertToJSON(v1_volume_attachment_source_t *v1_volume_attachment_source);
#endif /* _v1_volume_attachment_source_H_ */