2020-03-18 17:24:33 +08:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include "../include/apiClient.h"
|
|
|
|
|
#include "../include/list.h"
|
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
|
#include "../include/keyValuePair.h"
|
2020-06-20 09:41:15 +08:00
|
|
|
#include "../include/binary.h"
|
2022-03-09 10:56:53 +08:00
|
|
|
#include "../model/object.h"
|
2020-03-18 17:24:33 +08:00
|
|
|
#include "../model/v1_api_resource_list.h"
|
2021-09-14 21:52:06 +08:00
|
|
|
#include "../model/v1_csi_driver.h"
|
|
|
|
|
#include "../model/v1_csi_driver_list.h"
|
2020-03-18 17:24:33 +08:00
|
|
|
#include "../model/v1_csi_node.h"
|
|
|
|
|
#include "../model/v1_csi_node_list.h"
|
2022-06-05 18:16:17 +00:00
|
|
|
#include "../model/v1_csi_storage_capacity.h"
|
|
|
|
|
#include "../model/v1_csi_storage_capacity_list.h"
|
2020-03-18 17:24:33 +08:00
|
|
|
#include "../model/v1_delete_options.h"
|
|
|
|
|
#include "../model/v1_status.h"
|
|
|
|
|
#include "../model/v1_storage_class.h"
|
|
|
|
|
#include "../model/v1_storage_class_list.h"
|
|
|
|
|
#include "../model/v1_volume_attachment.h"
|
|
|
|
|
#include "../model/v1_volume_attachment_list.h"
|
|
|
|
|
|
|
|
|
|
|
2021-09-14 21:52:06 +08:00
|
|
|
// create a CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_csi_driver_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_createCSIDriver(apiClient_t *apiClient, v1_csi_driver_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// create a CSINode
|
|
|
|
|
//
|
|
|
|
|
v1_csi_node_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_createCSINode(apiClient_t *apiClient, v1_csi_node_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// create a CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_csi_storage_capacity_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_createNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *_namespace, v1_csi_storage_capacity_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// create a StorageClass
|
|
|
|
|
//
|
|
|
|
|
v1_storage_class_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_createStorageClass(apiClient_t *apiClient, v1_storage_class_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// create a VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_createVolumeAttachment(apiClient_t *apiClient, v1_volume_attachment_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2021-09-14 21:52:06 +08:00
|
|
|
// delete a CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_csi_driver_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCSIDriver(apiClient_t *apiClient, char *name, char *pretty, char *dryRun, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// delete a CSINode
|
|
|
|
|
//
|
2021-09-14 21:52:06 +08:00
|
|
|
v1_csi_node_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCSINode(apiClient_t *apiClient, char *name, char *pretty, char *dryRun, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2021-09-14 21:52:06 +08:00
|
|
|
// delete collection of CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_status_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCollectionCSIDriver(apiClient_t *apiClient, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// delete collection of CSINode
|
|
|
|
|
//
|
|
|
|
|
v1_status_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCollectionCSINode(apiClient_t *apiClient, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// delete collection of CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_status_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCollectionNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *_namespace, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// delete collection of StorageClass
|
|
|
|
|
//
|
|
|
|
|
v1_status_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCollectionStorageClass(apiClient_t *apiClient, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// delete collection of VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_status_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteCollectionVolumeAttachment(apiClient_t *apiClient, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// delete a CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_status_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *name, char *_namespace, char *pretty, char *dryRun, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// delete a StorageClass
|
|
|
|
|
//
|
2021-09-14 21:52:06 +08:00
|
|
|
v1_storage_class_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteStorageClass(apiClient_t *apiClient, char *name, char *pretty, char *dryRun, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// delete a VolumeAttachment
|
|
|
|
|
//
|
2021-09-14 21:52:06 +08:00
|
|
|
v1_volume_attachment_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_deleteVolumeAttachment(apiClient_t *apiClient, char *name, char *pretty, char *dryRun, int *gracePeriodSeconds, int *ignoreStoreReadErrorWithClusterBreakingPotential, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// get available resources
|
|
|
|
|
//
|
|
|
|
|
v1_api_resource_list_t*
|
2025-02-11 19:36:46 +00:00
|
|
|
StorageV1API_getAPIResources(apiClient_t *apiClient);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2021-09-14 21:52:06 +08:00
|
|
|
// list or watch objects of kind CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_csi_driver_list_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_listCSIDriver(apiClient_t *apiClient, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// list or watch objects of kind CSINode
|
|
|
|
|
//
|
|
|
|
|
v1_csi_node_list_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_listCSINode(apiClient_t *apiClient, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// list or watch objects of kind CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_csi_storage_capacity_list_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_listCSIStorageCapacityForAllNamespaces(apiClient_t *apiClient, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *pretty, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// list or watch objects of kind CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_csi_storage_capacity_list_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_listNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *_namespace, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// list or watch objects of kind StorageClass
|
|
|
|
|
//
|
|
|
|
|
v1_storage_class_list_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_listStorageClass(apiClient_t *apiClient, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// list or watch objects of kind VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_list_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_listVolumeAttachment(apiClient_t *apiClient, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// partially update the specified CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_csi_driver_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_patchCSIDriver(apiClient_t *apiClient, char *name, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// partially update the specified CSINode
|
|
|
|
|
//
|
|
|
|
|
v1_csi_node_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_patchCSINode(apiClient_t *apiClient, char *name, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// partially update the specified CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_csi_storage_capacity_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_patchNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// partially update the specified StorageClass
|
|
|
|
|
//
|
|
|
|
|
v1_storage_class_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_patchStorageClass(apiClient_t *apiClient, char *name, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// partially update the specified VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_patchVolumeAttachment(apiClient_t *apiClient, char *name, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// partially update status of the specified VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_patchVolumeAttachmentStatus(apiClient_t *apiClient, char *name, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2021-09-14 21:52:06 +08:00
|
|
|
// read the specified CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_csi_driver_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_readCSIDriver(apiClient_t *apiClient, char *name, char *pretty);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// read the specified CSINode
|
|
|
|
|
//
|
|
|
|
|
v1_csi_node_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_readCSINode(apiClient_t *apiClient, char *name, char *pretty);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// read the specified CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_csi_storage_capacity_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_readNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// read the specified StorageClass
|
|
|
|
|
//
|
|
|
|
|
v1_storage_class_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_readStorageClass(apiClient_t *apiClient, char *name, char *pretty);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// read the specified VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_readVolumeAttachment(apiClient_t *apiClient, char *name, char *pretty);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// read status of the specified VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_readVolumeAttachmentStatus(apiClient_t *apiClient, char *name, char *pretty);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2021-09-14 21:52:06 +08:00
|
|
|
// replace the specified CSIDriver
|
|
|
|
|
//
|
|
|
|
|
v1_csi_driver_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_replaceCSIDriver(apiClient_t *apiClient, char *name, v1_csi_driver_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2021-09-14 21:52:06 +08:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// replace the specified CSINode
|
|
|
|
|
//
|
|
|
|
|
v1_csi_node_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_replaceCSINode(apiClient_t *apiClient, char *name, v1_csi_node_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
2022-06-05 18:16:17 +00:00
|
|
|
// replace the specified CSIStorageCapacity
|
|
|
|
|
//
|
|
|
|
|
v1_csi_storage_capacity_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_replaceNamespacedCSIStorageCapacity(apiClient_t *apiClient, char *name, char *_namespace, v1_csi_storage_capacity_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2022-06-05 18:16:17 +00:00
|
|
|
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
// replace the specified StorageClass
|
|
|
|
|
//
|
|
|
|
|
v1_storage_class_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_replaceStorageClass(apiClient_t *apiClient, char *name, v1_storage_class_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// replace the specified VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_replaceVolumeAttachment(apiClient_t *apiClient, char *name, v1_volume_attachment_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// replace status of the specified VolumeAttachment
|
|
|
|
|
//
|
|
|
|
|
v1_volume_attachment_t*
|
2023-12-14 20:34:20 +08:00
|
|
|
StorageV1API_replaceVolumeAttachmentStatus(apiClient_t *apiClient, char *name, v1_volume_attachment_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|