Files
c/kubernetes/model/v1_volume_attachment_spec.h
Hui Yu ab432efa49 [API] Re-run code generator to merge the changes of OpenAPITools/openapi-generator to fix the bug:
* If the data type of query parameter is "int" or "bool" in OpenAPI Spec, the request url will not be generated correctly. ( PR #6692 )
2020-06-20 09:41:15 +08:00

43 lines
1.1 KiB
C

/*
* v1_volume_attachment_spec.h
*
* VolumeAttachmentSpec is the specification of a VolumeAttachment request.
*/
#ifndef _v1_volume_attachment_spec_H_
#define _v1_volume_attachment_spec_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_volume_attachment_spec_t v1_volume_attachment_spec_t;
#include "v1_volume_attachment_source.h"
typedef struct v1_volume_attachment_spec_t {
char *attacher; // string
char *node_name; // string
struct v1_volume_attachment_source_t *source; //model
} v1_volume_attachment_spec_t;
v1_volume_attachment_spec_t *v1_volume_attachment_spec_create(
char *attacher,
char *node_name,
v1_volume_attachment_source_t *source
);
void v1_volume_attachment_spec_free(v1_volume_attachment_spec_t *v1_volume_attachment_spec);
v1_volume_attachment_spec_t *v1_volume_attachment_spec_parseFromJSON(cJSON *v1_volume_attachment_specJSON);
cJSON *v1_volume_attachment_spec_convertToJSON(v1_volume_attachment_spec_t *v1_volume_attachment_spec);
#endif /* _v1_volume_attachment_spec_H_ */