48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/*
|
|
* v1alpha1_volume_attributes_class.h
|
|
*
|
|
* VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
|
|
*/
|
|
|
|
#ifndef _v1alpha1_volume_attributes_class_H_
|
|
#define _v1alpha1_volume_attributes_class_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1alpha1_volume_attributes_class_t v1alpha1_volume_attributes_class_t;
|
|
|
|
#include "v1_object_meta.h"
|
|
|
|
|
|
|
|
typedef struct v1alpha1_volume_attributes_class_t {
|
|
char *api_version; // string
|
|
char *driver_name; // string
|
|
char *kind; // string
|
|
struct v1_object_meta_t *metadata; //model
|
|
list_t* parameters; //map
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1alpha1_volume_attributes_class_t;
|
|
|
|
__attribute__((deprecated)) v1alpha1_volume_attributes_class_t *v1alpha1_volume_attributes_class_create(
|
|
char *api_version,
|
|
char *driver_name,
|
|
char *kind,
|
|
v1_object_meta_t *metadata,
|
|
list_t* parameters
|
|
);
|
|
|
|
void v1alpha1_volume_attributes_class_free(v1alpha1_volume_attributes_class_t *v1alpha1_volume_attributes_class);
|
|
|
|
v1alpha1_volume_attributes_class_t *v1alpha1_volume_attributes_class_parseFromJSON(cJSON *v1alpha1_volume_attributes_classJSON);
|
|
|
|
cJSON *v1alpha1_volume_attributes_class_convertToJSON(v1alpha1_volume_attributes_class_t *v1alpha1_volume_attributes_class);
|
|
|
|
#endif /* _v1alpha1_volume_attributes_class_H_ */
|
|
|