Merge OpenAPITools/openapi-generator #12133

Do not put the invalid value of the enum to a JSON structure
This commit is contained in:
Hui Yu
2022-04-18 09:29:02 +08:00
parent c8678cbe7e
commit 08845310b8
555 changed files with 3707 additions and 4210 deletions

View File

@@ -51,7 +51,6 @@ cJSON *admissionregistration_v1_service_reference_convertToJSON(admissionregistr
if (!admissionregistration_v1_service_reference->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", admissionregistration_v1_service_reference->name) == NULL) {
goto fail; //String
}
@@ -61,26 +60,25 @@ cJSON *admissionregistration_v1_service_reference_convertToJSON(admissionregistr
if (!admissionregistration_v1_service_reference->_namespace) {
goto fail;
}
if(cJSON_AddStringToObject(item, "namespace", admissionregistration_v1_service_reference->_namespace) == NULL) {
goto fail; //String
}
// admissionregistration_v1_service_reference->path
if(admissionregistration_v1_service_reference->path) {
if(admissionregistration_v1_service_reference->path) {
if(cJSON_AddStringToObject(item, "path", admissionregistration_v1_service_reference->path) == NULL) {
goto fail; //String
}
}
}
// admissionregistration_v1_service_reference->port
if(admissionregistration_v1_service_reference->port) {
if(admissionregistration_v1_service_reference->port) {
if(cJSON_AddNumberToObject(item, "port", admissionregistration_v1_service_reference->port) == NULL) {
goto fail; //Numeric
}
}
}
return item;
fail:

View File

@@ -46,15 +46,15 @@ cJSON *admissionregistration_v1_webhook_client_config_convertToJSON(admissionreg
cJSON *item = cJSON_CreateObject();
// admissionregistration_v1_webhook_client_config->ca_bundle
if(admissionregistration_v1_webhook_client_config->ca_bundle) {
if(admissionregistration_v1_webhook_client_config->ca_bundle) {
if(cJSON_AddStringToObject(item, "caBundle", admissionregistration_v1_webhook_client_config->ca_bundle) == NULL) {
goto fail; //ByteArray
}
}
}
// admissionregistration_v1_webhook_client_config->service
if(admissionregistration_v1_webhook_client_config->service) {
if(admissionregistration_v1_webhook_client_config->service) {
cJSON *service_local_JSON = admissionregistration_v1_service_reference_convertToJSON(admissionregistration_v1_webhook_client_config->service);
if(service_local_JSON == NULL) {
goto fail; //model
@@ -63,15 +63,15 @@ cJSON *admissionregistration_v1_webhook_client_config_convertToJSON(admissionreg
if(item->child == NULL) {
goto fail;
}
}
}
// admissionregistration_v1_webhook_client_config->url
if(admissionregistration_v1_webhook_client_config->url) {
if(admissionregistration_v1_webhook_client_config->url) {
if(cJSON_AddStringToObject(item, "url", admissionregistration_v1_webhook_client_config->url) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -51,7 +51,6 @@ cJSON *apiextensions_v1_service_reference_convertToJSON(apiextensions_v1_service
if (!apiextensions_v1_service_reference->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", apiextensions_v1_service_reference->name) == NULL) {
goto fail; //String
}
@@ -61,26 +60,25 @@ cJSON *apiextensions_v1_service_reference_convertToJSON(apiextensions_v1_service
if (!apiextensions_v1_service_reference->_namespace) {
goto fail;
}
if(cJSON_AddStringToObject(item, "namespace", apiextensions_v1_service_reference->_namespace) == NULL) {
goto fail; //String
}
// apiextensions_v1_service_reference->path
if(apiextensions_v1_service_reference->path) {
if(apiextensions_v1_service_reference->path) {
if(cJSON_AddStringToObject(item, "path", apiextensions_v1_service_reference->path) == NULL) {
goto fail; //String
}
}
}
// apiextensions_v1_service_reference->port
if(apiextensions_v1_service_reference->port) {
if(apiextensions_v1_service_reference->port) {
if(cJSON_AddNumberToObject(item, "port", apiextensions_v1_service_reference->port) == NULL) {
goto fail; //Numeric
}
}
}
return item;
fail:

View File

@@ -46,15 +46,15 @@ cJSON *apiextensions_v1_webhook_client_config_convertToJSON(apiextensions_v1_web
cJSON *item = cJSON_CreateObject();
// apiextensions_v1_webhook_client_config->ca_bundle
if(apiextensions_v1_webhook_client_config->ca_bundle) {
if(apiextensions_v1_webhook_client_config->ca_bundle) {
if(cJSON_AddStringToObject(item, "caBundle", apiextensions_v1_webhook_client_config->ca_bundle) == NULL) {
goto fail; //ByteArray
}
}
}
// apiextensions_v1_webhook_client_config->service
if(apiextensions_v1_webhook_client_config->service) {
if(apiextensions_v1_webhook_client_config->service) {
cJSON *service_local_JSON = apiextensions_v1_service_reference_convertToJSON(apiextensions_v1_webhook_client_config->service);
if(service_local_JSON == NULL) {
goto fail; //model
@@ -63,15 +63,15 @@ cJSON *apiextensions_v1_webhook_client_config_convertToJSON(apiextensions_v1_web
if(item->child == NULL) {
goto fail;
}
}
}
// apiextensions_v1_webhook_client_config->url
if(apiextensions_v1_webhook_client_config->url) {
if(apiextensions_v1_webhook_client_config->url) {
if(cJSON_AddStringToObject(item, "url", apiextensions_v1_webhook_client_config->url) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -42,27 +42,27 @@ cJSON *apiregistration_v1_service_reference_convertToJSON(apiregistration_v1_ser
cJSON *item = cJSON_CreateObject();
// apiregistration_v1_service_reference->name
if(apiregistration_v1_service_reference->name) {
if(apiregistration_v1_service_reference->name) {
if(cJSON_AddStringToObject(item, "name", apiregistration_v1_service_reference->name) == NULL) {
goto fail; //String
}
}
}
// apiregistration_v1_service_reference->_namespace
if(apiregistration_v1_service_reference->_namespace) {
if(apiregistration_v1_service_reference->_namespace) {
if(cJSON_AddStringToObject(item, "namespace", apiregistration_v1_service_reference->_namespace) == NULL) {
goto fail; //String
}
}
}
// apiregistration_v1_service_reference->port
if(apiregistration_v1_service_reference->port) {
if(apiregistration_v1_service_reference->port) {
if(cJSON_AddNumberToObject(item, "port", apiregistration_v1_service_reference->port) == NULL) {
goto fail; //Numeric
}
}
}
return item;
fail:

View File

@@ -58,23 +58,23 @@ cJSON *authentication_v1_token_request_convertToJSON(authentication_v1_token_req
cJSON *item = cJSON_CreateObject();
// authentication_v1_token_request->api_version
if(authentication_v1_token_request->api_version) {
if(authentication_v1_token_request->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", authentication_v1_token_request->api_version) == NULL) {
goto fail; //String
}
}
}
// authentication_v1_token_request->kind
if(authentication_v1_token_request->kind) {
if(authentication_v1_token_request->kind) {
if(cJSON_AddStringToObject(item, "kind", authentication_v1_token_request->kind) == NULL) {
goto fail; //String
}
}
}
// authentication_v1_token_request->metadata
if(authentication_v1_token_request->metadata) {
if(authentication_v1_token_request->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(authentication_v1_token_request->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -83,14 +83,13 @@ cJSON *authentication_v1_token_request_convertToJSON(authentication_v1_token_req
if(item->child == NULL) {
goto fail;
}
}
}
// authentication_v1_token_request->spec
if (!authentication_v1_token_request->spec) {
goto fail;
}
cJSON *spec_local_JSON = v1_token_request_spec_convertToJSON(authentication_v1_token_request->spec);
if(spec_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *authentication_v1_token_request_convertToJSON(authentication_v1_token_req
// authentication_v1_token_request->status
if(authentication_v1_token_request->status) {
if(authentication_v1_token_request->status) {
cJSON *status_local_JSON = v1_token_request_status_convertToJSON(authentication_v1_token_request->status);
if(status_local_JSON == NULL) {
goto fail; //model
@@ -111,7 +110,7 @@ cJSON *authentication_v1_token_request_convertToJSON(authentication_v1_token_req
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -61,38 +61,37 @@ cJSON *core_v1_endpoint_port_convertToJSON(core_v1_endpoint_port_t *core_v1_endp
cJSON *item = cJSON_CreateObject();
// core_v1_endpoint_port->app_protocol
if(core_v1_endpoint_port->app_protocol) {
if(core_v1_endpoint_port->app_protocol) {
if(cJSON_AddStringToObject(item, "appProtocol", core_v1_endpoint_port->app_protocol) == NULL) {
goto fail; //String
}
}
}
// core_v1_endpoint_port->name
if(core_v1_endpoint_port->name) {
if(core_v1_endpoint_port->name) {
if(cJSON_AddStringToObject(item, "name", core_v1_endpoint_port->name) == NULL) {
goto fail; //String
}
}
}
// core_v1_endpoint_port->port
if (!core_v1_endpoint_port->port) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "port", core_v1_endpoint_port->port) == NULL) {
goto fail; //Numeric
}
// core_v1_endpoint_port->protocol
if(core_v1_endpoint_port->protocol != kubernetes_core_v1_endpoint_port_PROTOCOL_NULL) {
if(cJSON_AddStringToObject(item, "protocol", protocolcore_v1_endpoint_port_ToString(core_v1_endpoint_port->protocol)) == NULL)
{
goto fail; //Enum
}
}
return item;
fail:

View File

@@ -126,50 +126,49 @@ cJSON *core_v1_event_convertToJSON(core_v1_event_t *core_v1_event) {
cJSON *item = cJSON_CreateObject();
// core_v1_event->action
if(core_v1_event->action) {
if(core_v1_event->action) {
if(cJSON_AddStringToObject(item, "action", core_v1_event->action) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->api_version
if(core_v1_event->api_version) {
if(core_v1_event->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", core_v1_event->api_version) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->count
if(core_v1_event->count) {
if(core_v1_event->count) {
if(cJSON_AddNumberToObject(item, "count", core_v1_event->count) == NULL) {
goto fail; //Numeric
}
}
}
// core_v1_event->event_time
if(core_v1_event->event_time) {
if(core_v1_event->event_time) {
if(cJSON_AddStringToObject(item, "eventTime", core_v1_event->event_time) == NULL) {
goto fail; //Date-Time
}
}
}
// core_v1_event->first_timestamp
if(core_v1_event->first_timestamp) {
if(core_v1_event->first_timestamp) {
if(cJSON_AddStringToObject(item, "firstTimestamp", core_v1_event->first_timestamp) == NULL) {
goto fail; //Date-Time
}
}
}
// core_v1_event->involved_object
if (!core_v1_event->involved_object) {
goto fail;
}
cJSON *involved_object_local_JSON = v1_object_reference_convertToJSON(core_v1_event->involved_object);
if(involved_object_local_JSON == NULL) {
goto fail; //model
@@ -181,34 +180,33 @@ cJSON *core_v1_event_convertToJSON(core_v1_event_t *core_v1_event) {
// core_v1_event->kind
if(core_v1_event->kind) {
if(core_v1_event->kind) {
if(cJSON_AddStringToObject(item, "kind", core_v1_event->kind) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->last_timestamp
if(core_v1_event->last_timestamp) {
if(core_v1_event->last_timestamp) {
if(cJSON_AddStringToObject(item, "lastTimestamp", core_v1_event->last_timestamp) == NULL) {
goto fail; //Date-Time
}
}
}
// core_v1_event->message
if(core_v1_event->message) {
if(core_v1_event->message) {
if(cJSON_AddStringToObject(item, "message", core_v1_event->message) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->metadata
if (!core_v1_event->metadata) {
goto fail;
}
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(core_v1_event->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -220,15 +218,15 @@ cJSON *core_v1_event_convertToJSON(core_v1_event_t *core_v1_event) {
// core_v1_event->reason
if(core_v1_event->reason) {
if(core_v1_event->reason) {
if(cJSON_AddStringToObject(item, "reason", core_v1_event->reason) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->related
if(core_v1_event->related) {
if(core_v1_event->related) {
cJSON *related_local_JSON = v1_object_reference_convertToJSON(core_v1_event->related);
if(related_local_JSON == NULL) {
goto fail; //model
@@ -237,27 +235,27 @@ cJSON *core_v1_event_convertToJSON(core_v1_event_t *core_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// core_v1_event->reporting_component
if(core_v1_event->reporting_component) {
if(core_v1_event->reporting_component) {
if(cJSON_AddStringToObject(item, "reportingComponent", core_v1_event->reporting_component) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->reporting_instance
if(core_v1_event->reporting_instance) {
if(core_v1_event->reporting_instance) {
if(cJSON_AddStringToObject(item, "reportingInstance", core_v1_event->reporting_instance) == NULL) {
goto fail; //String
}
}
}
// core_v1_event->series
if(core_v1_event->series) {
if(core_v1_event->series) {
cJSON *series_local_JSON = core_v1_event_series_convertToJSON(core_v1_event->series);
if(series_local_JSON == NULL) {
goto fail; //model
@@ -266,11 +264,11 @@ cJSON *core_v1_event_convertToJSON(core_v1_event_t *core_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// core_v1_event->source
if(core_v1_event->source) {
if(core_v1_event->source) {
cJSON *source_local_JSON = v1_event_source_convertToJSON(core_v1_event->source);
if(source_local_JSON == NULL) {
goto fail; //model
@@ -279,15 +277,15 @@ cJSON *core_v1_event_convertToJSON(core_v1_event_t *core_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// core_v1_event->type
if(core_v1_event->type) {
if(core_v1_event->type) {
if(cJSON_AddStringToObject(item, "type", core_v1_event->type) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *core_v1_event_list_convertToJSON(core_v1_event_list_t *core_v1_event_list
cJSON *item = cJSON_CreateObject();
// core_v1_event_list->api_version
if(core_v1_event_list->api_version) {
if(core_v1_event_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", core_v1_event_list->api_version) == NULL) {
goto fail; //String
}
}
}
// core_v1_event_list->items
if (!core_v1_event_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *core_v1_event_list_convertToJSON(core_v1_event_list_t *core_v1_event_list
// core_v1_event_list->kind
if(core_v1_event_list->kind) {
if(core_v1_event_list->kind) {
if(cJSON_AddStringToObject(item, "kind", core_v1_event_list->kind) == NULL) {
goto fail; //String
}
}
}
// core_v1_event_list->metadata
if(core_v1_event_list->metadata) {
if(core_v1_event_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(core_v1_event_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *core_v1_event_list_convertToJSON(core_v1_event_list_t *core_v1_event_list
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -36,19 +36,19 @@ cJSON *core_v1_event_series_convertToJSON(core_v1_event_series_t *core_v1_event_
cJSON *item = cJSON_CreateObject();
// core_v1_event_series->count
if(core_v1_event_series->count) {
if(core_v1_event_series->count) {
if(cJSON_AddNumberToObject(item, "count", core_v1_event_series->count) == NULL) {
goto fail; //Numeric
}
}
}
// core_v1_event_series->last_observed_time
if(core_v1_event_series->last_observed_time) {
if(core_v1_event_series->last_observed_time) {
if(cJSON_AddStringToObject(item, "lastObservedTime", core_v1_event_series->last_observed_time) == NULL) {
goto fail; //Date-Time
}
}
}
return item;
fail:

View File

@@ -48,35 +48,35 @@ cJSON *discovery_v1_endpoint_port_convertToJSON(discovery_v1_endpoint_port_t *di
cJSON *item = cJSON_CreateObject();
// discovery_v1_endpoint_port->app_protocol
if(discovery_v1_endpoint_port->app_protocol) {
if(discovery_v1_endpoint_port->app_protocol) {
if(cJSON_AddStringToObject(item, "appProtocol", discovery_v1_endpoint_port->app_protocol) == NULL) {
goto fail; //String
}
}
}
// discovery_v1_endpoint_port->name
if(discovery_v1_endpoint_port->name) {
if(discovery_v1_endpoint_port->name) {
if(cJSON_AddStringToObject(item, "name", discovery_v1_endpoint_port->name) == NULL) {
goto fail; //String
}
}
}
// discovery_v1_endpoint_port->port
if(discovery_v1_endpoint_port->port) {
if(discovery_v1_endpoint_port->port) {
if(cJSON_AddNumberToObject(item, "port", discovery_v1_endpoint_port->port) == NULL) {
goto fail; //Numeric
}
}
}
// discovery_v1_endpoint_port->protocol
if(discovery_v1_endpoint_port->protocol) {
if(discovery_v1_endpoint_port->protocol) {
if(cJSON_AddStringToObject(item, "protocol", discovery_v1_endpoint_port->protocol) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -126,47 +126,47 @@ cJSON *events_v1_event_convertToJSON(events_v1_event_t *events_v1_event) {
cJSON *item = cJSON_CreateObject();
// events_v1_event->action
if(events_v1_event->action) {
if(events_v1_event->action) {
if(cJSON_AddStringToObject(item, "action", events_v1_event->action) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->api_version
if(events_v1_event->api_version) {
if(events_v1_event->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", events_v1_event->api_version) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->deprecated_count
if(events_v1_event->deprecated_count) {
if(events_v1_event->deprecated_count) {
if(cJSON_AddNumberToObject(item, "deprecatedCount", events_v1_event->deprecated_count) == NULL) {
goto fail; //Numeric
}
}
}
// events_v1_event->deprecated_first_timestamp
if(events_v1_event->deprecated_first_timestamp) {
if(events_v1_event->deprecated_first_timestamp) {
if(cJSON_AddStringToObject(item, "deprecatedFirstTimestamp", events_v1_event->deprecated_first_timestamp) == NULL) {
goto fail; //Date-Time
}
}
}
// events_v1_event->deprecated_last_timestamp
if(events_v1_event->deprecated_last_timestamp) {
if(events_v1_event->deprecated_last_timestamp) {
if(cJSON_AddStringToObject(item, "deprecatedLastTimestamp", events_v1_event->deprecated_last_timestamp) == NULL) {
goto fail; //Date-Time
}
}
}
// events_v1_event->deprecated_source
if(events_v1_event->deprecated_source) {
if(events_v1_event->deprecated_source) {
cJSON *deprecated_source_local_JSON = v1_event_source_convertToJSON(events_v1_event->deprecated_source);
if(deprecated_source_local_JSON == NULL) {
goto fail; //model
@@ -175,29 +175,28 @@ cJSON *events_v1_event_convertToJSON(events_v1_event_t *events_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// events_v1_event->event_time
if (!events_v1_event->event_time) {
goto fail;
}
if(cJSON_AddStringToObject(item, "eventTime", events_v1_event->event_time) == NULL) {
goto fail; //Date-Time
}
// events_v1_event->kind
if(events_v1_event->kind) {
if(events_v1_event->kind) {
if(cJSON_AddStringToObject(item, "kind", events_v1_event->kind) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->metadata
if(events_v1_event->metadata) {
if(events_v1_event->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(events_v1_event->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -206,27 +205,27 @@ cJSON *events_v1_event_convertToJSON(events_v1_event_t *events_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// events_v1_event->note
if(events_v1_event->note) {
if(events_v1_event->note) {
if(cJSON_AddStringToObject(item, "note", events_v1_event->note) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->reason
if(events_v1_event->reason) {
if(events_v1_event->reason) {
if(cJSON_AddStringToObject(item, "reason", events_v1_event->reason) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->regarding
if(events_v1_event->regarding) {
if(events_v1_event->regarding) {
cJSON *regarding_local_JSON = v1_object_reference_convertToJSON(events_v1_event->regarding);
if(regarding_local_JSON == NULL) {
goto fail; //model
@@ -235,11 +234,11 @@ cJSON *events_v1_event_convertToJSON(events_v1_event_t *events_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// events_v1_event->related
if(events_v1_event->related) {
if(events_v1_event->related) {
cJSON *related_local_JSON = v1_object_reference_convertToJSON(events_v1_event->related);
if(related_local_JSON == NULL) {
goto fail; //model
@@ -248,27 +247,27 @@ cJSON *events_v1_event_convertToJSON(events_v1_event_t *events_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// events_v1_event->reporting_controller
if(events_v1_event->reporting_controller) {
if(events_v1_event->reporting_controller) {
if(cJSON_AddStringToObject(item, "reportingController", events_v1_event->reporting_controller) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->reporting_instance
if(events_v1_event->reporting_instance) {
if(events_v1_event->reporting_instance) {
if(cJSON_AddStringToObject(item, "reportingInstance", events_v1_event->reporting_instance) == NULL) {
goto fail; //String
}
}
}
// events_v1_event->series
if(events_v1_event->series) {
if(events_v1_event->series) {
cJSON *series_local_JSON = events_v1_event_series_convertToJSON(events_v1_event->series);
if(series_local_JSON == NULL) {
goto fail; //model
@@ -277,15 +276,15 @@ cJSON *events_v1_event_convertToJSON(events_v1_event_t *events_v1_event) {
if(item->child == NULL) {
goto fail;
}
}
}
// events_v1_event->type
if(events_v1_event->type) {
if(events_v1_event->type) {
if(cJSON_AddStringToObject(item, "type", events_v1_event->type) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *events_v1_event_list_convertToJSON(events_v1_event_list_t *events_v1_even
cJSON *item = cJSON_CreateObject();
// events_v1_event_list->api_version
if(events_v1_event_list->api_version) {
if(events_v1_event_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", events_v1_event_list->api_version) == NULL) {
goto fail; //String
}
}
}
// events_v1_event_list->items
if (!events_v1_event_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *events_v1_event_list_convertToJSON(events_v1_event_list_t *events_v1_even
// events_v1_event_list->kind
if(events_v1_event_list->kind) {
if(events_v1_event_list->kind) {
if(cJSON_AddStringToObject(item, "kind", events_v1_event_list->kind) == NULL) {
goto fail; //String
}
}
}
// events_v1_event_list->metadata
if(events_v1_event_list->metadata) {
if(events_v1_event_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(events_v1_event_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *events_v1_event_list_convertToJSON(events_v1_event_list_t *events_v1_even
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -39,7 +39,6 @@ cJSON *events_v1_event_series_convertToJSON(events_v1_event_series_t *events_v1_
if (!events_v1_event_series->count) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "count", events_v1_event_series->count) == NULL) {
goto fail; //Numeric
}
@@ -49,7 +48,6 @@ cJSON *events_v1_event_series_convertToJSON(events_v1_event_series_t *events_v1_
if (!events_v1_event_series->last_observed_time) {
goto fail;
}
if(cJSON_AddStringToObject(item, "lastObservedTime", events_v1_event_series->last_observed_time) == NULL) {
goto fail; //Date-Time
}

View File

@@ -39,18 +39,17 @@ cJSON *storage_v1_token_request_convertToJSON(storage_v1_token_request_t *storag
if (!storage_v1_token_request->audience) {
goto fail;
}
if(cJSON_AddStringToObject(item, "audience", storage_v1_token_request->audience) == NULL) {
goto fail; //String
}
// storage_v1_token_request->expiration_seconds
if(storage_v1_token_request->expiration_seconds) {
if(storage_v1_token_request->expiration_seconds) {
if(cJSON_AddNumberToObject(item, "expirationSeconds", storage_v1_token_request->expiration_seconds) == NULL) {
goto fail; //Numeric
}
}
}
return item;
fail:

View File

@@ -46,7 +46,7 @@ cJSON *v1_affinity_convertToJSON(v1_affinity_t *v1_affinity) {
cJSON *item = cJSON_CreateObject();
// v1_affinity->node_affinity
if(v1_affinity->node_affinity) {
if(v1_affinity->node_affinity) {
cJSON *node_affinity_local_JSON = v1_node_affinity_convertToJSON(v1_affinity->node_affinity);
if(node_affinity_local_JSON == NULL) {
goto fail; //model
@@ -55,11 +55,11 @@ cJSON *v1_affinity_convertToJSON(v1_affinity_t *v1_affinity) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_affinity->pod_affinity
if(v1_affinity->pod_affinity) {
if(v1_affinity->pod_affinity) {
cJSON *pod_affinity_local_JSON = v1_pod_affinity_convertToJSON(v1_affinity->pod_affinity);
if(pod_affinity_local_JSON == NULL) {
goto fail; //model
@@ -68,11 +68,11 @@ cJSON *v1_affinity_convertToJSON(v1_affinity_t *v1_affinity) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_affinity->pod_anti_affinity
if(v1_affinity->pod_anti_affinity) {
if(v1_affinity->pod_anti_affinity) {
cJSON *pod_anti_affinity_local_JSON = v1_pod_anti_affinity_convertToJSON(v1_affinity->pod_anti_affinity);
if(pod_anti_affinity_local_JSON == NULL) {
goto fail; //model
@@ -81,7 +81,7 @@ cJSON *v1_affinity_convertToJSON(v1_affinity_t *v1_affinity) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -37,7 +37,7 @@ cJSON *v1_aggregation_rule_convertToJSON(v1_aggregation_rule_t *v1_aggregation_r
cJSON *item = cJSON_CreateObject();
// v1_aggregation_rule->cluster_role_selectors
if(v1_aggregation_rule->cluster_role_selectors) {
if(v1_aggregation_rule->cluster_role_selectors) {
cJSON *cluster_role_selectors = cJSON_AddArrayToObject(item, "clusterRoleSelectors");
if(cluster_role_selectors == NULL) {
goto fail; //nonprimitive container
@@ -53,7 +53,7 @@ cJSON *v1_aggregation_rule_convertToJSON(v1_aggregation_rule_t *v1_aggregation_r
cJSON_AddItemToArray(cluster_role_selectors, itemLocal);
}
}
}
}
return item;
fail:

View File

@@ -70,33 +70,32 @@ cJSON *v1_api_group_convertToJSON(v1_api_group_t *v1_api_group) {
cJSON *item = cJSON_CreateObject();
// v1_api_group->api_version
if(v1_api_group->api_version) {
if(v1_api_group->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_api_group->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_api_group->kind
if(v1_api_group->kind) {
if(v1_api_group->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_api_group->kind) == NULL) {
goto fail; //String
}
}
}
// v1_api_group->name
if (!v1_api_group->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_api_group->name) == NULL) {
goto fail; //String
}
// v1_api_group->preferred_version
if(v1_api_group->preferred_version) {
if(v1_api_group->preferred_version) {
cJSON *preferred_version_local_JSON = v1_group_version_for_discovery_convertToJSON(v1_api_group->preferred_version);
if(preferred_version_local_JSON == NULL) {
goto fail; //model
@@ -105,11 +104,11 @@ cJSON *v1_api_group_convertToJSON(v1_api_group_t *v1_api_group) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_api_group->server_address_by_client_cidrs
if(v1_api_group->server_address_by_client_cidrs) {
if(v1_api_group->server_address_by_client_cidrs) {
cJSON *server_address_by_client_cidrs = cJSON_AddArrayToObject(item, "serverAddressByClientCIDRs");
if(server_address_by_client_cidrs == NULL) {
goto fail; //nonprimitive container
@@ -125,14 +124,13 @@ cJSON *v1_api_group_convertToJSON(v1_api_group_t *v1_api_group) {
cJSON_AddItemToArray(server_address_by_client_cidrs, itemLocal);
}
}
}
}
// v1_api_group->versions
if (!v1_api_group->versions) {
goto fail;
}
cJSON *versions = cJSON_AddArrayToObject(item, "versions");
if(versions == NULL) {
goto fail; //nonprimitive container

View File

@@ -49,18 +49,17 @@ cJSON *v1_api_group_list_convertToJSON(v1_api_group_list_t *v1_api_group_list) {
cJSON *item = cJSON_CreateObject();
// v1_api_group_list->api_version
if(v1_api_group_list->api_version) {
if(v1_api_group_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_api_group_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_api_group_list->groups
if (!v1_api_group_list->groups) {
goto fail;
}
cJSON *groups = cJSON_AddArrayToObject(item, "groups");
if(groups == NULL) {
goto fail; //nonprimitive container
@@ -79,11 +78,11 @@ cJSON *v1_api_group_list_convertToJSON(v1_api_group_list_t *v1_api_group_list) {
// v1_api_group_list->kind
if(v1_api_group_list->kind) {
if(v1_api_group_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_api_group_list->kind) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -93,7 +93,7 @@ cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource) {
cJSON *item = cJSON_CreateObject();
// v1_api_resource->categories
if(v1_api_resource->categories) {
if(v1_api_resource->categories) {
cJSON *categories = cJSON_AddArrayToObject(item, "categories");
if(categories == NULL) {
goto fail; //primitive container
@@ -106,22 +106,21 @@ cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource) {
goto fail;
}
}
}
}
// v1_api_resource->group
if(v1_api_resource->group) {
if(v1_api_resource->group) {
if(cJSON_AddStringToObject(item, "group", v1_api_resource->group) == NULL) {
goto fail; //String
}
}
}
// v1_api_resource->kind
if (!v1_api_resource->kind) {
goto fail;
}
if(cJSON_AddStringToObject(item, "kind", v1_api_resource->kind) == NULL) {
goto fail; //String
}
@@ -131,7 +130,6 @@ cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource) {
if (!v1_api_resource->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_api_resource->name) == NULL) {
goto fail; //String
}
@@ -141,14 +139,13 @@ cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource) {
if (!v1_api_resource->namespaced) {
goto fail;
}
if(cJSON_AddBoolToObject(item, "namespaced", v1_api_resource->namespaced) == NULL) {
goto fail; //Bool
}
// v1_api_resource->short_names
if(v1_api_resource->short_names) {
if(v1_api_resource->short_names) {
cJSON *short_names = cJSON_AddArrayToObject(item, "shortNames");
if(short_names == NULL) {
goto fail; //primitive container
@@ -161,32 +158,30 @@ cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource) {
goto fail;
}
}
}
}
// v1_api_resource->singular_name
if (!v1_api_resource->singular_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "singularName", v1_api_resource->singular_name) == NULL) {
goto fail; //String
}
// v1_api_resource->storage_version_hash
if(v1_api_resource->storage_version_hash) {
if(v1_api_resource->storage_version_hash) {
if(cJSON_AddStringToObject(item, "storageVersionHash", v1_api_resource->storage_version_hash) == NULL) {
goto fail; //String
}
}
}
// v1_api_resource->verbs
if (!v1_api_resource->verbs) {
goto fail;
}
cJSON *verbs = cJSON_AddArrayToObject(item, "verbs");
if(verbs == NULL) {
goto fail; //primitive container
@@ -202,11 +197,11 @@ cJSON *v1_api_resource_convertToJSON(v1_api_resource_t *v1_api_resource) {
// v1_api_resource->version
if(v1_api_resource->version) {
if(v1_api_resource->version) {
if(cJSON_AddStringToObject(item, "version", v1_api_resource->version) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -55,36 +55,34 @@ cJSON *v1_api_resource_list_convertToJSON(v1_api_resource_list_t *v1_api_resourc
cJSON *item = cJSON_CreateObject();
// v1_api_resource_list->api_version
if(v1_api_resource_list->api_version) {
if(v1_api_resource_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_api_resource_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_api_resource_list->group_version
if (!v1_api_resource_list->group_version) {
goto fail;
}
if(cJSON_AddStringToObject(item, "groupVersion", v1_api_resource_list->group_version) == NULL) {
goto fail; //String
}
// v1_api_resource_list->kind
if(v1_api_resource_list->kind) {
if(v1_api_resource_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_api_resource_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_api_resource_list->resources
if (!v1_api_resource_list->resources) {
goto fail;
}
cJSON *resources = cJSON_AddArrayToObject(item, "resources");
if(resources == NULL) {
goto fail; //nonprimitive container

View File

@@ -58,23 +58,23 @@ cJSON *v1_api_service_convertToJSON(v1_api_service_t *v1_api_service) {
cJSON *item = cJSON_CreateObject();
// v1_api_service->api_version
if(v1_api_service->api_version) {
if(v1_api_service->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_api_service->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_api_service->kind
if(v1_api_service->kind) {
if(v1_api_service->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_api_service->kind) == NULL) {
goto fail; //String
}
}
}
// v1_api_service->metadata
if(v1_api_service->metadata) {
if(v1_api_service->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_api_service->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -83,11 +83,11 @@ cJSON *v1_api_service_convertToJSON(v1_api_service_t *v1_api_service) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_api_service->spec
if(v1_api_service->spec) {
if(v1_api_service->spec) {
cJSON *spec_local_JSON = v1_api_service_spec_convertToJSON(v1_api_service->spec);
if(spec_local_JSON == NULL) {
goto fail; //model
@@ -96,11 +96,11 @@ cJSON *v1_api_service_convertToJSON(v1_api_service_t *v1_api_service) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_api_service->status
if(v1_api_service->status) {
if(v1_api_service->status) {
cJSON *status_local_JSON = v1_api_service_status_convertToJSON(v1_api_service->status);
if(status_local_JSON == NULL) {
goto fail; //model
@@ -109,7 +109,7 @@ cJSON *v1_api_service_convertToJSON(v1_api_service_t *v1_api_service) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -58,34 +58,33 @@ cJSON *v1_api_service_condition_convertToJSON(v1_api_service_condition_t *v1_api
cJSON *item = cJSON_CreateObject();
// v1_api_service_condition->last_transition_time
if(v1_api_service_condition->last_transition_time) {
if(v1_api_service_condition->last_transition_time) {
if(cJSON_AddStringToObject(item, "lastTransitionTime", v1_api_service_condition->last_transition_time) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_api_service_condition->message
if(v1_api_service_condition->message) {
if(v1_api_service_condition->message) {
if(cJSON_AddStringToObject(item, "message", v1_api_service_condition->message) == NULL) {
goto fail; //String
}
}
}
// v1_api_service_condition->reason
if(v1_api_service_condition->reason) {
if(v1_api_service_condition->reason) {
if(cJSON_AddStringToObject(item, "reason", v1_api_service_condition->reason) == NULL) {
goto fail; //String
}
}
}
// v1_api_service_condition->status
if (!v1_api_service_condition->status) {
goto fail;
}
if(cJSON_AddStringToObject(item, "status", v1_api_service_condition->status) == NULL) {
goto fail; //String
}
@@ -95,7 +94,6 @@ cJSON *v1_api_service_condition_convertToJSON(v1_api_service_condition_t *v1_api
if (!v1_api_service_condition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", v1_api_service_condition->type) == NULL) {
goto fail; //String
}

View File

@@ -55,18 +55,17 @@ cJSON *v1_api_service_list_convertToJSON(v1_api_service_list_t *v1_api_service_l
cJSON *item = cJSON_CreateObject();
// v1_api_service_list->api_version
if(v1_api_service_list->api_version) {
if(v1_api_service_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_api_service_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_api_service_list->items
if (!v1_api_service_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_api_service_list_convertToJSON(v1_api_service_list_t *v1_api_service_l
// v1_api_service_list->kind
if(v1_api_service_list->kind) {
if(v1_api_service_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_api_service_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_api_service_list->metadata
if(v1_api_service_list->metadata) {
if(v1_api_service_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_api_service_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_api_service_list_convertToJSON(v1_api_service_list_t *v1_api_service_l
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -58,41 +58,40 @@ cJSON *v1_api_service_spec_convertToJSON(v1_api_service_spec_t *v1_api_service_s
cJSON *item = cJSON_CreateObject();
// v1_api_service_spec->ca_bundle
if(v1_api_service_spec->ca_bundle) {
if(v1_api_service_spec->ca_bundle) {
if(cJSON_AddStringToObject(item, "caBundle", v1_api_service_spec->ca_bundle) == NULL) {
goto fail; //ByteArray
}
}
}
// v1_api_service_spec->group
if(v1_api_service_spec->group) {
if(v1_api_service_spec->group) {
if(cJSON_AddStringToObject(item, "group", v1_api_service_spec->group) == NULL) {
goto fail; //String
}
}
}
// v1_api_service_spec->group_priority_minimum
if (!v1_api_service_spec->group_priority_minimum) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "groupPriorityMinimum", v1_api_service_spec->group_priority_minimum) == NULL) {
goto fail; //Numeric
}
// v1_api_service_spec->insecure_skip_tls_verify
if(v1_api_service_spec->insecure_skip_tls_verify) {
if(v1_api_service_spec->insecure_skip_tls_verify) {
if(cJSON_AddBoolToObject(item, "insecureSkipTLSVerify", v1_api_service_spec->insecure_skip_tls_verify) == NULL) {
goto fail; //Bool
}
}
}
// v1_api_service_spec->service
if(v1_api_service_spec->service) {
if(v1_api_service_spec->service) {
cJSON *service_local_JSON = apiregistration_v1_service_reference_convertToJSON(v1_api_service_spec->service);
if(service_local_JSON == NULL) {
goto fail; //model
@@ -101,22 +100,21 @@ cJSON *v1_api_service_spec_convertToJSON(v1_api_service_spec_t *v1_api_service_s
if(item->child == NULL) {
goto fail;
}
}
}
// v1_api_service_spec->version
if(v1_api_service_spec->version) {
if(v1_api_service_spec->version) {
if(cJSON_AddStringToObject(item, "version", v1_api_service_spec->version) == NULL) {
goto fail; //String
}
}
}
// v1_api_service_spec->version_priority
if (!v1_api_service_spec->version_priority) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "versionPriority", v1_api_service_spec->version_priority) == NULL) {
goto fail; //Numeric
}

View File

@@ -37,7 +37,7 @@ cJSON *v1_api_service_status_convertToJSON(v1_api_service_status_t *v1_api_servi
cJSON *item = cJSON_CreateObject();
// v1_api_service_status->conditions
if(v1_api_service_status->conditions) {
if(v1_api_service_status->conditions) {
cJSON *conditions = cJSON_AddArrayToObject(item, "conditions");
if(conditions == NULL) {
goto fail; //nonprimitive container
@@ -53,7 +53,7 @@ cJSON *v1_api_service_status_convertToJSON(v1_api_service_status_t *v1_api_servi
cJSON_AddItemToArray(conditions, itemLocal);
}
}
}
}
return item;
fail:

View File

@@ -58,26 +58,25 @@ cJSON *v1_api_versions_convertToJSON(v1_api_versions_t *v1_api_versions) {
cJSON *item = cJSON_CreateObject();
// v1_api_versions->api_version
if(v1_api_versions->api_version) {
if(v1_api_versions->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_api_versions->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_api_versions->kind
if(v1_api_versions->kind) {
if(v1_api_versions->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_api_versions->kind) == NULL) {
goto fail; //String
}
}
}
// v1_api_versions->server_address_by_client_cidrs
if (!v1_api_versions->server_address_by_client_cidrs) {
goto fail;
}
cJSON *server_address_by_client_cidrs = cJSON_AddArrayToObject(item, "serverAddressByClientCIDRs");
if(server_address_by_client_cidrs == NULL) {
goto fail; //nonprimitive container
@@ -99,7 +98,6 @@ cJSON *v1_api_versions_convertToJSON(v1_api_versions_t *v1_api_versions) {
if (!v1_api_versions->versions) {
goto fail;
}
cJSON *versions = cJSON_AddArrayToObject(item, "versions");
if(versions == NULL) {
goto fail; //primitive container

View File

@@ -43,7 +43,6 @@ cJSON *v1_attached_volume_convertToJSON(v1_attached_volume_t *v1_attached_volume
if (!v1_attached_volume->device_path) {
goto fail;
}
if(cJSON_AddStringToObject(item, "devicePath", v1_attached_volume->device_path) == NULL) {
goto fail; //String
}
@@ -53,7 +52,6 @@ cJSON *v1_attached_volume_convertToJSON(v1_attached_volume_t *v1_attached_volume
if (!v1_attached_volume->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_attached_volume->name) == NULL) {
goto fail; //String
}

View File

@@ -44,34 +44,33 @@ cJSON *v1_aws_elastic_block_store_volume_source_convertToJSON(v1_aws_elastic_blo
cJSON *item = cJSON_CreateObject();
// v1_aws_elastic_block_store_volume_source->fs_type
if(v1_aws_elastic_block_store_volume_source->fs_type) {
if(v1_aws_elastic_block_store_volume_source->fs_type) {
if(cJSON_AddStringToObject(item, "fsType", v1_aws_elastic_block_store_volume_source->fs_type) == NULL) {
goto fail; //String
}
}
}
// v1_aws_elastic_block_store_volume_source->partition
if(v1_aws_elastic_block_store_volume_source->partition) {
if(v1_aws_elastic_block_store_volume_source->partition) {
if(cJSON_AddNumberToObject(item, "partition", v1_aws_elastic_block_store_volume_source->partition) == NULL) {
goto fail; //Numeric
}
}
}
// v1_aws_elastic_block_store_volume_source->read_only
if(v1_aws_elastic_block_store_volume_source->read_only) {
if(v1_aws_elastic_block_store_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_aws_elastic_block_store_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_aws_elastic_block_store_volume_source->volume_id
if (!v1_aws_elastic_block_store_volume_source->volume_id) {
goto fail;
}
if(cJSON_AddStringToObject(item, "volumeID", v1_aws_elastic_block_store_volume_source->volume_id) == NULL) {
goto fail; //String
}

View File

@@ -60,18 +60,17 @@ cJSON *v1_azure_disk_volume_source_convertToJSON(v1_azure_disk_volume_source_t *
cJSON *item = cJSON_CreateObject();
// v1_azure_disk_volume_source->caching_mode
if(v1_azure_disk_volume_source->caching_mode) {
if(v1_azure_disk_volume_source->caching_mode) {
if(cJSON_AddStringToObject(item, "cachingMode", v1_azure_disk_volume_source->caching_mode) == NULL) {
goto fail; //String
}
}
}
// v1_azure_disk_volume_source->disk_name
if (!v1_azure_disk_volume_source->disk_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "diskName", v1_azure_disk_volume_source->disk_name) == NULL) {
goto fail; //String
}
@@ -81,34 +80,33 @@ cJSON *v1_azure_disk_volume_source_convertToJSON(v1_azure_disk_volume_source_t *
if (!v1_azure_disk_volume_source->disk_uri) {
goto fail;
}
if(cJSON_AddStringToObject(item, "diskURI", v1_azure_disk_volume_source->disk_uri) == NULL) {
goto fail; //String
}
// v1_azure_disk_volume_source->fs_type
if(v1_azure_disk_volume_source->fs_type) {
if(v1_azure_disk_volume_source->fs_type) {
if(cJSON_AddStringToObject(item, "fsType", v1_azure_disk_volume_source->fs_type) == NULL) {
goto fail; //String
}
}
}
// v1_azure_disk_volume_source->kind
if(v1_azure_disk_volume_source->kind) {
if(v1_azure_disk_volume_source->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_azure_disk_volume_source->kind) == NULL) {
goto fail; //String
}
}
}
// v1_azure_disk_volume_source->read_only
if(v1_azure_disk_volume_source->read_only) {
if(v1_azure_disk_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_azure_disk_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
return item;
fail:

View File

@@ -48,36 +48,34 @@ cJSON *v1_azure_file_persistent_volume_source_convertToJSON(v1_azure_file_persis
cJSON *item = cJSON_CreateObject();
// v1_azure_file_persistent_volume_source->read_only
if(v1_azure_file_persistent_volume_source->read_only) {
if(v1_azure_file_persistent_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_azure_file_persistent_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_azure_file_persistent_volume_source->secret_name
if (!v1_azure_file_persistent_volume_source->secret_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "secretName", v1_azure_file_persistent_volume_source->secret_name) == NULL) {
goto fail; //String
}
// v1_azure_file_persistent_volume_source->secret_namespace
if(v1_azure_file_persistent_volume_source->secret_namespace) {
if(v1_azure_file_persistent_volume_source->secret_namespace) {
if(cJSON_AddStringToObject(item, "secretNamespace", v1_azure_file_persistent_volume_source->secret_namespace) == NULL) {
goto fail; //String
}
}
}
// v1_azure_file_persistent_volume_source->share_name
if (!v1_azure_file_persistent_volume_source->share_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "shareName", v1_azure_file_persistent_volume_source->share_name) == NULL) {
goto fail; //String
}

View File

@@ -42,18 +42,17 @@ cJSON *v1_azure_file_volume_source_convertToJSON(v1_azure_file_volume_source_t *
cJSON *item = cJSON_CreateObject();
// v1_azure_file_volume_source->read_only
if(v1_azure_file_volume_source->read_only) {
if(v1_azure_file_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_azure_file_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_azure_file_volume_source->secret_name
if (!v1_azure_file_volume_source->secret_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "secretName", v1_azure_file_volume_source->secret_name) == NULL) {
goto fail; //String
}
@@ -63,7 +62,6 @@ cJSON *v1_azure_file_volume_source_convertToJSON(v1_azure_file_volume_source_t *
if (!v1_azure_file_volume_source->share_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "shareName", v1_azure_file_volume_source->share_name) == NULL) {
goto fail; //String
}

View File

@@ -52,23 +52,23 @@ cJSON *v1_binding_convertToJSON(v1_binding_t *v1_binding) {
cJSON *item = cJSON_CreateObject();
// v1_binding->api_version
if(v1_binding->api_version) {
if(v1_binding->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_binding->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_binding->kind
if(v1_binding->kind) {
if(v1_binding->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_binding->kind) == NULL) {
goto fail; //String
}
}
}
// v1_binding->metadata
if(v1_binding->metadata) {
if(v1_binding->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_binding->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -77,14 +77,13 @@ cJSON *v1_binding_convertToJSON(v1_binding_t *v1_binding) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_binding->target
if (!v1_binding->target) {
goto fail;
}
cJSON *target_local_JSON = v1_object_reference_convertToJSON(v1_binding->target);
if(target_local_JSON == NULL) {
goto fail; //model

View File

@@ -52,35 +52,35 @@ cJSON *v1_bound_object_reference_convertToJSON(v1_bound_object_reference_t *v1_b
cJSON *item = cJSON_CreateObject();
// v1_bound_object_reference->api_version
if(v1_bound_object_reference->api_version) {
if(v1_bound_object_reference->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_bound_object_reference->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_bound_object_reference->kind
if(v1_bound_object_reference->kind) {
if(v1_bound_object_reference->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_bound_object_reference->kind) == NULL) {
goto fail; //String
}
}
}
// v1_bound_object_reference->name
if(v1_bound_object_reference->name) {
if(v1_bound_object_reference->name) {
if(cJSON_AddStringToObject(item, "name", v1_bound_object_reference->name) == NULL) {
goto fail; //String
}
}
}
// v1_bound_object_reference->uid
if(v1_bound_object_reference->uid) {
if(v1_bound_object_reference->uid) {
if(cJSON_AddStringToObject(item, "uid", v1_bound_object_reference->uid) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -46,7 +46,7 @@ cJSON *v1_capabilities_convertToJSON(v1_capabilities_t *v1_capabilities) {
cJSON *item = cJSON_CreateObject();
// v1_capabilities->add
if(v1_capabilities->add) {
if(v1_capabilities->add) {
cJSON *add = cJSON_AddArrayToObject(item, "add");
if(add == NULL) {
goto fail; //primitive container
@@ -59,11 +59,11 @@ cJSON *v1_capabilities_convertToJSON(v1_capabilities_t *v1_capabilities) {
goto fail;
}
}
}
}
// v1_capabilities->drop
if(v1_capabilities->drop) {
if(v1_capabilities->drop) {
cJSON *drop = cJSON_AddArrayToObject(item, "drop");
if(drop == NULL) {
goto fail; //primitive container
@@ -76,7 +76,7 @@ cJSON *v1_capabilities_convertToJSON(v1_capabilities_t *v1_capabilities) {
goto fail;
}
}
}
}
return item;
fail:

View File

@@ -66,7 +66,6 @@ cJSON *v1_ceph_fs_persistent_volume_source_convertToJSON(v1_ceph_fs_persistent_v
if (!v1_ceph_fs_persistent_volume_source->monitors) {
goto fail;
}
cJSON *monitors = cJSON_AddArrayToObject(item, "monitors");
if(monitors == NULL) {
goto fail; //primitive container
@@ -82,31 +81,31 @@ cJSON *v1_ceph_fs_persistent_volume_source_convertToJSON(v1_ceph_fs_persistent_v
// v1_ceph_fs_persistent_volume_source->path
if(v1_ceph_fs_persistent_volume_source->path) {
if(v1_ceph_fs_persistent_volume_source->path) {
if(cJSON_AddStringToObject(item, "path", v1_ceph_fs_persistent_volume_source->path) == NULL) {
goto fail; //String
}
}
}
// v1_ceph_fs_persistent_volume_source->read_only
if(v1_ceph_fs_persistent_volume_source->read_only) {
if(v1_ceph_fs_persistent_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_ceph_fs_persistent_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_ceph_fs_persistent_volume_source->secret_file
if(v1_ceph_fs_persistent_volume_source->secret_file) {
if(v1_ceph_fs_persistent_volume_source->secret_file) {
if(cJSON_AddStringToObject(item, "secretFile", v1_ceph_fs_persistent_volume_source->secret_file) == NULL) {
goto fail; //String
}
}
}
// v1_ceph_fs_persistent_volume_source->secret_ref
if(v1_ceph_fs_persistent_volume_source->secret_ref) {
if(v1_ceph_fs_persistent_volume_source->secret_ref) {
cJSON *secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_ceph_fs_persistent_volume_source->secret_ref);
if(secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -115,15 +114,15 @@ cJSON *v1_ceph_fs_persistent_volume_source_convertToJSON(v1_ceph_fs_persistent_v
if(item->child == NULL) {
goto fail;
}
}
}
// v1_ceph_fs_persistent_volume_source->user
if(v1_ceph_fs_persistent_volume_source->user) {
if(v1_ceph_fs_persistent_volume_source->user) {
if(cJSON_AddStringToObject(item, "user", v1_ceph_fs_persistent_volume_source->user) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -66,7 +66,6 @@ cJSON *v1_ceph_fs_volume_source_convertToJSON(v1_ceph_fs_volume_source_t *v1_cep
if (!v1_ceph_fs_volume_source->monitors) {
goto fail;
}
cJSON *monitors = cJSON_AddArrayToObject(item, "monitors");
if(monitors == NULL) {
goto fail; //primitive container
@@ -82,31 +81,31 @@ cJSON *v1_ceph_fs_volume_source_convertToJSON(v1_ceph_fs_volume_source_t *v1_cep
// v1_ceph_fs_volume_source->path
if(v1_ceph_fs_volume_source->path) {
if(v1_ceph_fs_volume_source->path) {
if(cJSON_AddStringToObject(item, "path", v1_ceph_fs_volume_source->path) == NULL) {
goto fail; //String
}
}
}
// v1_ceph_fs_volume_source->read_only
if(v1_ceph_fs_volume_source->read_only) {
if(v1_ceph_fs_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_ceph_fs_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_ceph_fs_volume_source->secret_file
if(v1_ceph_fs_volume_source->secret_file) {
if(v1_ceph_fs_volume_source->secret_file) {
if(cJSON_AddStringToObject(item, "secretFile", v1_ceph_fs_volume_source->secret_file) == NULL) {
goto fail; //String
}
}
}
// v1_ceph_fs_volume_source->secret_ref
if(v1_ceph_fs_volume_source->secret_ref) {
if(v1_ceph_fs_volume_source->secret_ref) {
cJSON *secret_ref_local_JSON = v1_local_object_reference_convertToJSON(v1_ceph_fs_volume_source->secret_ref);
if(secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -115,15 +114,15 @@ cJSON *v1_ceph_fs_volume_source_convertToJSON(v1_ceph_fs_volume_source_t *v1_cep
if(item->child == NULL) {
goto fail;
}
}
}
// v1_ceph_fs_volume_source->user
if(v1_ceph_fs_volume_source->user) {
if(v1_ceph_fs_volume_source->user) {
if(cJSON_AddStringToObject(item, "user", v1_ceph_fs_volume_source->user) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -58,23 +58,23 @@ cJSON *v1_certificate_signing_request_convertToJSON(v1_certificate_signing_reque
cJSON *item = cJSON_CreateObject();
// v1_certificate_signing_request->api_version
if(v1_certificate_signing_request->api_version) {
if(v1_certificate_signing_request->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_certificate_signing_request->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request->kind
if(v1_certificate_signing_request->kind) {
if(v1_certificate_signing_request->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_certificate_signing_request->kind) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request->metadata
if(v1_certificate_signing_request->metadata) {
if(v1_certificate_signing_request->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_certificate_signing_request->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -83,14 +83,13 @@ cJSON *v1_certificate_signing_request_convertToJSON(v1_certificate_signing_reque
if(item->child == NULL) {
goto fail;
}
}
}
// v1_certificate_signing_request->spec
if (!v1_certificate_signing_request->spec) {
goto fail;
}
cJSON *spec_local_JSON = v1_certificate_signing_request_spec_convertToJSON(v1_certificate_signing_request->spec);
if(spec_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_certificate_signing_request_convertToJSON(v1_certificate_signing_reque
// v1_certificate_signing_request->status
if(v1_certificate_signing_request->status) {
if(v1_certificate_signing_request->status) {
cJSON *status_local_JSON = v1_certificate_signing_request_status_convertToJSON(v1_certificate_signing_request->status);
if(status_local_JSON == NULL) {
goto fail; //model
@@ -111,7 +110,7 @@ cJSON *v1_certificate_signing_request_convertToJSON(v1_certificate_signing_reque
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -77,49 +77,50 @@ cJSON *v1_certificate_signing_request_condition_convertToJSON(v1_certificate_sig
cJSON *item = cJSON_CreateObject();
// v1_certificate_signing_request_condition->last_transition_time
if(v1_certificate_signing_request_condition->last_transition_time) {
if(v1_certificate_signing_request_condition->last_transition_time) {
if(cJSON_AddStringToObject(item, "lastTransitionTime", v1_certificate_signing_request_condition->last_transition_time) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_certificate_signing_request_condition->last_update_time
if(v1_certificate_signing_request_condition->last_update_time) {
if(v1_certificate_signing_request_condition->last_update_time) {
if(cJSON_AddStringToObject(item, "lastUpdateTime", v1_certificate_signing_request_condition->last_update_time) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_certificate_signing_request_condition->message
if(v1_certificate_signing_request_condition->message) {
if(v1_certificate_signing_request_condition->message) {
if(cJSON_AddStringToObject(item, "message", v1_certificate_signing_request_condition->message) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request_condition->reason
if(v1_certificate_signing_request_condition->reason) {
if(v1_certificate_signing_request_condition->reason) {
if(cJSON_AddStringToObject(item, "reason", v1_certificate_signing_request_condition->reason) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request_condition->status
if (!v1_certificate_signing_request_condition->status) {
goto fail;
}
if(cJSON_AddStringToObject(item, "status", v1_certificate_signing_request_condition->status) == NULL) {
goto fail; //String
}
// v1_certificate_signing_request_condition->type
if (kubernetes_v1_certificate_signing_request_condition_TYPE_NULL == v1_certificate_signing_request_condition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", typev1_certificate_signing_request_condition_ToString(v1_certificate_signing_request_condition->type)) == NULL)
{
goto fail; //Enum

View File

@@ -55,18 +55,17 @@ cJSON *v1_certificate_signing_request_list_convertToJSON(v1_certificate_signing_
cJSON *item = cJSON_CreateObject();
// v1_certificate_signing_request_list->api_version
if(v1_certificate_signing_request_list->api_version) {
if(v1_certificate_signing_request_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_certificate_signing_request_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request_list->items
if (!v1_certificate_signing_request_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_certificate_signing_request_list_convertToJSON(v1_certificate_signing_
// v1_certificate_signing_request_list->kind
if(v1_certificate_signing_request_list->kind) {
if(v1_certificate_signing_request_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_certificate_signing_request_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request_list->metadata
if(v1_certificate_signing_request_list->metadata) {
if(v1_certificate_signing_request_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_certificate_signing_request_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_certificate_signing_request_list_convertToJSON(v1_certificate_signing_
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -84,15 +84,15 @@ cJSON *v1_certificate_signing_request_spec_convertToJSON(v1_certificate_signing_
cJSON *item = cJSON_CreateObject();
// v1_certificate_signing_request_spec->expiration_seconds
if(v1_certificate_signing_request_spec->expiration_seconds) {
if(v1_certificate_signing_request_spec->expiration_seconds) {
if(cJSON_AddNumberToObject(item, "expirationSeconds", v1_certificate_signing_request_spec->expiration_seconds) == NULL) {
goto fail; //Numeric
}
}
}
// v1_certificate_signing_request_spec->extra
if(v1_certificate_signing_request_spec->extra) {
if(v1_certificate_signing_request_spec->extra) {
cJSON *extra = cJSON_AddObjectToObject(item, "extra");
if(extra == NULL) {
goto fail; //primitive map container
@@ -104,11 +104,11 @@ cJSON *v1_certificate_signing_request_spec_convertToJSON(v1_certificate_signing_
keyValuePair_t *localKeyValue = (keyValuePair_t*)extraListEntry->data;
}
}
}
}
// v1_certificate_signing_request_spec->groups
if(v1_certificate_signing_request_spec->groups) {
if(v1_certificate_signing_request_spec->groups) {
cJSON *groups = cJSON_AddArrayToObject(item, "groups");
if(groups == NULL) {
goto fail; //primitive container
@@ -121,14 +121,13 @@ cJSON *v1_certificate_signing_request_spec_convertToJSON(v1_certificate_signing_
goto fail;
}
}
}
}
// v1_certificate_signing_request_spec->request
if (!v1_certificate_signing_request_spec->request) {
goto fail;
}
if(cJSON_AddStringToObject(item, "request", v1_certificate_signing_request_spec->request) == NULL) {
goto fail; //ByteArray
}
@@ -138,22 +137,21 @@ cJSON *v1_certificate_signing_request_spec_convertToJSON(v1_certificate_signing_
if (!v1_certificate_signing_request_spec->signer_name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "signerName", v1_certificate_signing_request_spec->signer_name) == NULL) {
goto fail; //String
}
// v1_certificate_signing_request_spec->uid
if(v1_certificate_signing_request_spec->uid) {
if(v1_certificate_signing_request_spec->uid) {
if(cJSON_AddStringToObject(item, "uid", v1_certificate_signing_request_spec->uid) == NULL) {
goto fail; //String
}
}
}
// v1_certificate_signing_request_spec->usages
if(v1_certificate_signing_request_spec->usages) {
if(v1_certificate_signing_request_spec->usages) {
cJSON *usages = cJSON_AddArrayToObject(item, "usages");
if(usages == NULL) {
goto fail; //primitive container
@@ -166,15 +164,15 @@ cJSON *v1_certificate_signing_request_spec_convertToJSON(v1_certificate_signing_
goto fail;
}
}
}
}
// v1_certificate_signing_request_spec->username
if(v1_certificate_signing_request_spec->username) {
if(v1_certificate_signing_request_spec->username) {
if(cJSON_AddStringToObject(item, "username", v1_certificate_signing_request_spec->username) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -43,15 +43,15 @@ cJSON *v1_certificate_signing_request_status_convertToJSON(v1_certificate_signin
cJSON *item = cJSON_CreateObject();
// v1_certificate_signing_request_status->certificate
if(v1_certificate_signing_request_status->certificate) {
if(v1_certificate_signing_request_status->certificate) {
if(cJSON_AddStringToObject(item, "certificate", v1_certificate_signing_request_status->certificate) == NULL) {
goto fail; //ByteArray
}
}
}
// v1_certificate_signing_request_status->conditions
if(v1_certificate_signing_request_status->conditions) {
if(v1_certificate_signing_request_status->conditions) {
cJSON *conditions = cJSON_AddArrayToObject(item, "conditions");
if(conditions == NULL) {
goto fail; //nonprimitive container
@@ -67,7 +67,7 @@ cJSON *v1_certificate_signing_request_status_convertToJSON(v1_certificate_signin
cJSON_AddItemToArray(conditions, itemLocal);
}
}
}
}
return item;
fail:

View File

@@ -48,23 +48,23 @@ cJSON *v1_cinder_persistent_volume_source_convertToJSON(v1_cinder_persistent_vol
cJSON *item = cJSON_CreateObject();
// v1_cinder_persistent_volume_source->fs_type
if(v1_cinder_persistent_volume_source->fs_type) {
if(v1_cinder_persistent_volume_source->fs_type) {
if(cJSON_AddStringToObject(item, "fsType", v1_cinder_persistent_volume_source->fs_type) == NULL) {
goto fail; //String
}
}
}
// v1_cinder_persistent_volume_source->read_only
if(v1_cinder_persistent_volume_source->read_only) {
if(v1_cinder_persistent_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_cinder_persistent_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_cinder_persistent_volume_source->secret_ref
if(v1_cinder_persistent_volume_source->secret_ref) {
if(v1_cinder_persistent_volume_source->secret_ref) {
cJSON *secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_cinder_persistent_volume_source->secret_ref);
if(secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -73,14 +73,13 @@ cJSON *v1_cinder_persistent_volume_source_convertToJSON(v1_cinder_persistent_vol
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cinder_persistent_volume_source->volume_id
if (!v1_cinder_persistent_volume_source->volume_id) {
goto fail;
}
if(cJSON_AddStringToObject(item, "volumeID", v1_cinder_persistent_volume_source->volume_id) == NULL) {
goto fail; //String
}

View File

@@ -48,23 +48,23 @@ cJSON *v1_cinder_volume_source_convertToJSON(v1_cinder_volume_source_t *v1_cinde
cJSON *item = cJSON_CreateObject();
// v1_cinder_volume_source->fs_type
if(v1_cinder_volume_source->fs_type) {
if(v1_cinder_volume_source->fs_type) {
if(cJSON_AddStringToObject(item, "fsType", v1_cinder_volume_source->fs_type) == NULL) {
goto fail; //String
}
}
}
// v1_cinder_volume_source->read_only
if(v1_cinder_volume_source->read_only) {
if(v1_cinder_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_cinder_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_cinder_volume_source->secret_ref
if(v1_cinder_volume_source->secret_ref) {
if(v1_cinder_volume_source->secret_ref) {
cJSON *secret_ref_local_JSON = v1_local_object_reference_convertToJSON(v1_cinder_volume_source->secret_ref);
if(secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -73,14 +73,13 @@ cJSON *v1_cinder_volume_source_convertToJSON(v1_cinder_volume_source_t *v1_cinde
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cinder_volume_source->volume_id
if (!v1_cinder_volume_source->volume_id) {
goto fail;
}
if(cJSON_AddStringToObject(item, "volumeID", v1_cinder_volume_source->volume_id) == NULL) {
goto fail; //String
}

View File

@@ -30,11 +30,11 @@ cJSON *v1_client_ip_config_convertToJSON(v1_client_ip_config_t *v1_client_ip_con
cJSON *item = cJSON_CreateObject();
// v1_client_ip_config->timeout_seconds
if(v1_client_ip_config->timeout_seconds) {
if(v1_client_ip_config->timeout_seconds) {
if(cJSON_AddNumberToObject(item, "timeoutSeconds", v1_client_ip_config->timeout_seconds) == NULL) {
goto fail; //Numeric
}
}
}
return item;
fail:

View File

@@ -61,7 +61,7 @@ cJSON *v1_cluster_role_convertToJSON(v1_cluster_role_t *v1_cluster_role) {
cJSON *item = cJSON_CreateObject();
// v1_cluster_role->aggregation_rule
if(v1_cluster_role->aggregation_rule) {
if(v1_cluster_role->aggregation_rule) {
cJSON *aggregation_rule_local_JSON = v1_aggregation_rule_convertToJSON(v1_cluster_role->aggregation_rule);
if(aggregation_rule_local_JSON == NULL) {
goto fail; //model
@@ -70,27 +70,27 @@ cJSON *v1_cluster_role_convertToJSON(v1_cluster_role_t *v1_cluster_role) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cluster_role->api_version
if(v1_cluster_role->api_version) {
if(v1_cluster_role->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cluster_role->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role->kind
if(v1_cluster_role->kind) {
if(v1_cluster_role->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_cluster_role->kind) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role->metadata
if(v1_cluster_role->metadata) {
if(v1_cluster_role->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_cluster_role->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -99,11 +99,11 @@ cJSON *v1_cluster_role_convertToJSON(v1_cluster_role_t *v1_cluster_role) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cluster_role->rules
if(v1_cluster_role->rules) {
if(v1_cluster_role->rules) {
cJSON *rules = cJSON_AddArrayToObject(item, "rules");
if(rules == NULL) {
goto fail; //nonprimitive container
@@ -119,7 +119,7 @@ cJSON *v1_cluster_role_convertToJSON(v1_cluster_role_t *v1_cluster_role) {
cJSON_AddItemToArray(rules, itemLocal);
}
}
}
}
return item;
fail:

View File

@@ -61,23 +61,23 @@ cJSON *v1_cluster_role_binding_convertToJSON(v1_cluster_role_binding_t *v1_clust
cJSON *item = cJSON_CreateObject();
// v1_cluster_role_binding->api_version
if(v1_cluster_role_binding->api_version) {
if(v1_cluster_role_binding->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cluster_role_binding->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role_binding->kind
if(v1_cluster_role_binding->kind) {
if(v1_cluster_role_binding->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_cluster_role_binding->kind) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role_binding->metadata
if(v1_cluster_role_binding->metadata) {
if(v1_cluster_role_binding->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_cluster_role_binding->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -86,14 +86,13 @@ cJSON *v1_cluster_role_binding_convertToJSON(v1_cluster_role_binding_t *v1_clust
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cluster_role_binding->role_ref
if (!v1_cluster_role_binding->role_ref) {
goto fail;
}
cJSON *role_ref_local_JSON = v1_role_ref_convertToJSON(v1_cluster_role_binding->role_ref);
if(role_ref_local_JSON == NULL) {
goto fail; //model
@@ -105,7 +104,7 @@ cJSON *v1_cluster_role_binding_convertToJSON(v1_cluster_role_binding_t *v1_clust
// v1_cluster_role_binding->subjects
if(v1_cluster_role_binding->subjects) {
if(v1_cluster_role_binding->subjects) {
cJSON *subjects = cJSON_AddArrayToObject(item, "subjects");
if(subjects == NULL) {
goto fail; //nonprimitive container
@@ -121,7 +120,7 @@ cJSON *v1_cluster_role_binding_convertToJSON(v1_cluster_role_binding_t *v1_clust
cJSON_AddItemToArray(subjects, itemLocal);
}
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *v1_cluster_role_binding_list_convertToJSON(v1_cluster_role_binding_list_t
cJSON *item = cJSON_CreateObject();
// v1_cluster_role_binding_list->api_version
if(v1_cluster_role_binding_list->api_version) {
if(v1_cluster_role_binding_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cluster_role_binding_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role_binding_list->items
if (!v1_cluster_role_binding_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_cluster_role_binding_list_convertToJSON(v1_cluster_role_binding_list_t
// v1_cluster_role_binding_list->kind
if(v1_cluster_role_binding_list->kind) {
if(v1_cluster_role_binding_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_cluster_role_binding_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role_binding_list->metadata
if(v1_cluster_role_binding_list->metadata) {
if(v1_cluster_role_binding_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_cluster_role_binding_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_cluster_role_binding_list_convertToJSON(v1_cluster_role_binding_list_t
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *v1_cluster_role_list_convertToJSON(v1_cluster_role_list_t *v1_cluster_rol
cJSON *item = cJSON_CreateObject();
// v1_cluster_role_list->api_version
if(v1_cluster_role_list->api_version) {
if(v1_cluster_role_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cluster_role_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role_list->items
if (!v1_cluster_role_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_cluster_role_list_convertToJSON(v1_cluster_role_list_t *v1_cluster_rol
// v1_cluster_role_list->kind
if(v1_cluster_role_list->kind) {
if(v1_cluster_role_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_cluster_role_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_cluster_role_list->metadata
if(v1_cluster_role_list->metadata) {
if(v1_cluster_role_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_cluster_role_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_cluster_role_list_convertToJSON(v1_cluster_role_list_t *v1_cluster_rol
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -52,26 +52,25 @@ cJSON *v1_component_condition_convertToJSON(v1_component_condition_t *v1_compone
cJSON *item = cJSON_CreateObject();
// v1_component_condition->error
if(v1_component_condition->error) {
if(v1_component_condition->error) {
if(cJSON_AddStringToObject(item, "error", v1_component_condition->error) == NULL) {
goto fail; //String
}
}
}
// v1_component_condition->message
if(v1_component_condition->message) {
if(v1_component_condition->message) {
if(cJSON_AddStringToObject(item, "message", v1_component_condition->message) == NULL) {
goto fail; //String
}
}
}
// v1_component_condition->status
if (!v1_component_condition->status) {
goto fail;
}
if(cJSON_AddStringToObject(item, "status", v1_component_condition->status) == NULL) {
goto fail; //String
}
@@ -81,7 +80,6 @@ cJSON *v1_component_condition_convertToJSON(v1_component_condition_t *v1_compone
if (!v1_component_condition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", v1_component_condition->type) == NULL) {
goto fail; //String
}

View File

@@ -55,15 +55,15 @@ cJSON *v1_component_status_convertToJSON(v1_component_status_t *v1_component_sta
cJSON *item = cJSON_CreateObject();
// v1_component_status->api_version
if(v1_component_status->api_version) {
if(v1_component_status->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_component_status->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_component_status->conditions
if(v1_component_status->conditions) {
if(v1_component_status->conditions) {
cJSON *conditions = cJSON_AddArrayToObject(item, "conditions");
if(conditions == NULL) {
goto fail; //nonprimitive container
@@ -79,19 +79,19 @@ cJSON *v1_component_status_convertToJSON(v1_component_status_t *v1_component_sta
cJSON_AddItemToArray(conditions, itemLocal);
}
}
}
}
// v1_component_status->kind
if(v1_component_status->kind) {
if(v1_component_status->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_component_status->kind) == NULL) {
goto fail; //String
}
}
}
// v1_component_status->metadata
if(v1_component_status->metadata) {
if(v1_component_status->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_component_status->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -100,7 +100,7 @@ cJSON *v1_component_status_convertToJSON(v1_component_status_t *v1_component_sta
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *v1_component_status_list_convertToJSON(v1_component_status_list_t *v1_com
cJSON *item = cJSON_CreateObject();
// v1_component_status_list->api_version
if(v1_component_status_list->api_version) {
if(v1_component_status_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_component_status_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_component_status_list->items
if (!v1_component_status_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_component_status_list_convertToJSON(v1_component_status_list_t *v1_com
// v1_component_status_list->kind
if(v1_component_status_list->kind) {
if(v1_component_status_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_component_status_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_component_status_list->metadata
if(v1_component_status_list->metadata) {
if(v1_component_status_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_component_status_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_component_status_list_convertToJSON(v1_component_status_list_t *v1_com
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -63,7 +63,6 @@ cJSON *v1_condition_convertToJSON(v1_condition_t *v1_condition) {
if (!v1_condition->last_transition_time) {
goto fail;
}
if(cJSON_AddStringToObject(item, "lastTransitionTime", v1_condition->last_transition_time) == NULL) {
goto fail; //Date-Time
}
@@ -73,25 +72,23 @@ cJSON *v1_condition_convertToJSON(v1_condition_t *v1_condition) {
if (!v1_condition->message) {
goto fail;
}
if(cJSON_AddStringToObject(item, "message", v1_condition->message) == NULL) {
goto fail; //String
}
// v1_condition->observed_generation
if(v1_condition->observed_generation) {
if(v1_condition->observed_generation) {
if(cJSON_AddNumberToObject(item, "observedGeneration", v1_condition->observed_generation) == NULL) {
goto fail; //Numeric
}
}
}
// v1_condition->reason
if (!v1_condition->reason) {
goto fail;
}
if(cJSON_AddStringToObject(item, "reason", v1_condition->reason) == NULL) {
goto fail; //String
}
@@ -101,7 +98,6 @@ cJSON *v1_condition_convertToJSON(v1_condition_t *v1_condition) {
if (!v1_condition->status) {
goto fail;
}
if(cJSON_AddStringToObject(item, "status", v1_condition->status) == NULL) {
goto fail; //String
}
@@ -111,7 +107,6 @@ cJSON *v1_condition_convertToJSON(v1_condition_t *v1_condition) {
if (!v1_condition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", v1_condition->type) == NULL) {
goto fail; //String
}

View File

@@ -72,15 +72,15 @@ cJSON *v1_config_map_convertToJSON(v1_config_map_t *v1_config_map) {
cJSON *item = cJSON_CreateObject();
// v1_config_map->api_version
if(v1_config_map->api_version) {
if(v1_config_map->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_config_map->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_config_map->binary_data
if(v1_config_map->binary_data) {
if(v1_config_map->binary_data) {
cJSON *binary_data = cJSON_AddObjectToObject(item, "binaryData");
if(binary_data == NULL) {
goto fail; //primitive map container
@@ -96,11 +96,11 @@ cJSON *v1_config_map_convertToJSON(v1_config_map_t *v1_config_map) {
}
}
}
}
}
// v1_config_map->data
if(v1_config_map->data) {
if(v1_config_map->data) {
cJSON *data = cJSON_AddObjectToObject(item, "data");
if(data == NULL) {
goto fail; //primitive map container
@@ -116,27 +116,27 @@ cJSON *v1_config_map_convertToJSON(v1_config_map_t *v1_config_map) {
}
}
}
}
}
// v1_config_map->immutable
if(v1_config_map->immutable) {
if(v1_config_map->immutable) {
if(cJSON_AddBoolToObject(item, "immutable", v1_config_map->immutable) == NULL) {
goto fail; //Bool
}
}
}
// v1_config_map->kind
if(v1_config_map->kind) {
if(v1_config_map->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_config_map->kind) == NULL) {
goto fail; //String
}
}
}
// v1_config_map->metadata
if(v1_config_map->metadata) {
if(v1_config_map->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_config_map->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -145,7 +145,7 @@ cJSON *v1_config_map_convertToJSON(v1_config_map_t *v1_config_map) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -36,19 +36,19 @@ cJSON *v1_config_map_env_source_convertToJSON(v1_config_map_env_source_t *v1_con
cJSON *item = cJSON_CreateObject();
// v1_config_map_env_source->name
if(v1_config_map_env_source->name) {
if(v1_config_map_env_source->name) {
if(cJSON_AddStringToObject(item, "name", v1_config_map_env_source->name) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_env_source->optional
if(v1_config_map_env_source->optional) {
if(v1_config_map_env_source->optional) {
if(cJSON_AddBoolToObject(item, "optional", v1_config_map_env_source->optional) == NULL) {
goto fail; //Bool
}
}
}
return item;
fail:

View File

@@ -45,26 +45,25 @@ cJSON *v1_config_map_key_selector_convertToJSON(v1_config_map_key_selector_t *v1
if (!v1_config_map_key_selector->key) {
goto fail;
}
if(cJSON_AddStringToObject(item, "key", v1_config_map_key_selector->key) == NULL) {
goto fail; //String
}
// v1_config_map_key_selector->name
if(v1_config_map_key_selector->name) {
if(v1_config_map_key_selector->name) {
if(cJSON_AddStringToObject(item, "name", v1_config_map_key_selector->name) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_key_selector->optional
if(v1_config_map_key_selector->optional) {
if(v1_config_map_key_selector->optional) {
if(cJSON_AddBoolToObject(item, "optional", v1_config_map_key_selector->optional) == NULL) {
goto fail; //Bool
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *v1_config_map_list_convertToJSON(v1_config_map_list_t *v1_config_map_list
cJSON *item = cJSON_CreateObject();
// v1_config_map_list->api_version
if(v1_config_map_list->api_version) {
if(v1_config_map_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_config_map_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_list->items
if (!v1_config_map_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_config_map_list_convertToJSON(v1_config_map_list_t *v1_config_map_list
// v1_config_map_list->kind
if(v1_config_map_list->kind) {
if(v1_config_map_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_config_map_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_list->metadata
if(v1_config_map_list->metadata) {
if(v1_config_map_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_config_map_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_config_map_list_convertToJSON(v1_config_map_list_t *v1_config_map_list
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -61,7 +61,6 @@ cJSON *v1_config_map_node_config_source_convertToJSON(v1_config_map_node_config_
if (!v1_config_map_node_config_source->kubelet_config_key) {
goto fail;
}
if(cJSON_AddStringToObject(item, "kubeletConfigKey", v1_config_map_node_config_source->kubelet_config_key) == NULL) {
goto fail; //String
}
@@ -71,7 +70,6 @@ cJSON *v1_config_map_node_config_source_convertToJSON(v1_config_map_node_config_
if (!v1_config_map_node_config_source->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_config_map_node_config_source->name) == NULL) {
goto fail; //String
}
@@ -81,26 +79,25 @@ cJSON *v1_config_map_node_config_source_convertToJSON(v1_config_map_node_config_
if (!v1_config_map_node_config_source->_namespace) {
goto fail;
}
if(cJSON_AddStringToObject(item, "namespace", v1_config_map_node_config_source->_namespace) == NULL) {
goto fail; //String
}
// v1_config_map_node_config_source->resource_version
if(v1_config_map_node_config_source->resource_version) {
if(v1_config_map_node_config_source->resource_version) {
if(cJSON_AddStringToObject(item, "resourceVersion", v1_config_map_node_config_source->resource_version) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_node_config_source->uid
if(v1_config_map_node_config_source->uid) {
if(v1_config_map_node_config_source->uid) {
if(cJSON_AddStringToObject(item, "uid", v1_config_map_node_config_source->uid) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -45,7 +45,7 @@ cJSON *v1_config_map_projection_convertToJSON(v1_config_map_projection_t *v1_con
cJSON *item = cJSON_CreateObject();
// v1_config_map_projection->items
if(v1_config_map_projection->items) {
if(v1_config_map_projection->items) {
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -61,23 +61,23 @@ cJSON *v1_config_map_projection_convertToJSON(v1_config_map_projection_t *v1_con
cJSON_AddItemToArray(items, itemLocal);
}
}
}
}
// v1_config_map_projection->name
if(v1_config_map_projection->name) {
if(v1_config_map_projection->name) {
if(cJSON_AddStringToObject(item, "name", v1_config_map_projection->name) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_projection->optional
if(v1_config_map_projection->optional) {
if(v1_config_map_projection->optional) {
if(cJSON_AddBoolToObject(item, "optional", v1_config_map_projection->optional) == NULL) {
goto fail; //Bool
}
}
}
return item;
fail:

View File

@@ -47,15 +47,15 @@ cJSON *v1_config_map_volume_source_convertToJSON(v1_config_map_volume_source_t *
cJSON *item = cJSON_CreateObject();
// v1_config_map_volume_source->default_mode
if(v1_config_map_volume_source->default_mode) {
if(v1_config_map_volume_source->default_mode) {
if(cJSON_AddNumberToObject(item, "defaultMode", v1_config_map_volume_source->default_mode) == NULL) {
goto fail; //Numeric
}
}
}
// v1_config_map_volume_source->items
if(v1_config_map_volume_source->items) {
if(v1_config_map_volume_source->items) {
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -71,23 +71,23 @@ cJSON *v1_config_map_volume_source_convertToJSON(v1_config_map_volume_source_t *
cJSON_AddItemToArray(items, itemLocal);
}
}
}
}
// v1_config_map_volume_source->name
if(v1_config_map_volume_source->name) {
if(v1_config_map_volume_source->name) {
if(cJSON_AddStringToObject(item, "name", v1_config_map_volume_source->name) == NULL) {
goto fail; //String
}
}
}
// v1_config_map_volume_source->optional
if(v1_config_map_volume_source->optional) {
if(v1_config_map_volume_source->optional) {
if(cJSON_AddBoolToObject(item, "optional", v1_config_map_volume_source->optional) == NULL) {
goto fail; //Bool
}
}
}
return item;
fail:

View File

@@ -195,7 +195,7 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
cJSON *item = cJSON_CreateObject();
// v1_container->args
if(v1_container->args) {
if(v1_container->args) {
cJSON *args = cJSON_AddArrayToObject(item, "args");
if(args == NULL) {
goto fail; //primitive container
@@ -208,11 +208,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
goto fail;
}
}
}
}
// v1_container->command
if(v1_container->command) {
if(v1_container->command) {
cJSON *command = cJSON_AddArrayToObject(item, "command");
if(command == NULL) {
goto fail; //primitive container
@@ -225,11 +225,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
goto fail;
}
}
}
}
// v1_container->env
if(v1_container->env) {
if(v1_container->env) {
cJSON *env = cJSON_AddArrayToObject(item, "env");
if(env == NULL) {
goto fail; //nonprimitive container
@@ -245,11 +245,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
cJSON_AddItemToArray(env, itemLocal);
}
}
}
}
// v1_container->env_from
if(v1_container->env_from) {
if(v1_container->env_from) {
cJSON *env_from = cJSON_AddArrayToObject(item, "envFrom");
if(env_from == NULL) {
goto fail; //nonprimitive container
@@ -265,28 +265,28 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
cJSON_AddItemToArray(env_from, itemLocal);
}
}
}
}
// v1_container->image
if(v1_container->image) {
if(v1_container->image) {
if(cJSON_AddStringToObject(item, "image", v1_container->image) == NULL) {
goto fail; //String
}
}
}
// v1_container->image_pull_policy
if(v1_container->image_pull_policy != kubernetes_v1_container_IMAGEPULLPOLICY_NULL) {
if(cJSON_AddStringToObject(item, "imagePullPolicy", image_pull_policyv1_container_ToString(v1_container->image_pull_policy)) == NULL)
{
goto fail; //Enum
}
}
// v1_container->lifecycle
if(v1_container->lifecycle) {
if(v1_container->lifecycle) {
cJSON *lifecycle_local_JSON = v1_lifecycle_convertToJSON(v1_container->lifecycle);
if(lifecycle_local_JSON == NULL) {
goto fail; //model
@@ -295,11 +295,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container->liveness_probe
if(v1_container->liveness_probe) {
if(v1_container->liveness_probe) {
cJSON *liveness_probe_local_JSON = v1_probe_convertToJSON(v1_container->liveness_probe);
if(liveness_probe_local_JSON == NULL) {
goto fail; //model
@@ -308,21 +308,20 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container->name
if (!v1_container->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_container->name) == NULL) {
goto fail; //String
}
// v1_container->ports
if(v1_container->ports) {
if(v1_container->ports) {
cJSON *ports = cJSON_AddArrayToObject(item, "ports");
if(ports == NULL) {
goto fail; //nonprimitive container
@@ -338,11 +337,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
cJSON_AddItemToArray(ports, itemLocal);
}
}
}
}
// v1_container->readiness_probe
if(v1_container->readiness_probe) {
if(v1_container->readiness_probe) {
cJSON *readiness_probe_local_JSON = v1_probe_convertToJSON(v1_container->readiness_probe);
if(readiness_probe_local_JSON == NULL) {
goto fail; //model
@@ -351,11 +350,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container->resources
if(v1_container->resources) {
if(v1_container->resources) {
cJSON *resources_local_JSON = v1_resource_requirements_convertToJSON(v1_container->resources);
if(resources_local_JSON == NULL) {
goto fail; //model
@@ -364,11 +363,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container->security_context
if(v1_container->security_context) {
if(v1_container->security_context) {
cJSON *security_context_local_JSON = v1_security_context_convertToJSON(v1_container->security_context);
if(security_context_local_JSON == NULL) {
goto fail; //model
@@ -377,11 +376,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container->startup_probe
if(v1_container->startup_probe) {
if(v1_container->startup_probe) {
cJSON *startup_probe_local_JSON = v1_probe_convertToJSON(v1_container->startup_probe);
if(startup_probe_local_JSON == NULL) {
goto fail; //model
@@ -390,52 +389,52 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container->_stdin
if(v1_container->_stdin) {
if(v1_container->_stdin) {
if(cJSON_AddBoolToObject(item, "stdin", v1_container->_stdin) == NULL) {
goto fail; //Bool
}
}
}
// v1_container->stdin_once
if(v1_container->stdin_once) {
if(v1_container->stdin_once) {
if(cJSON_AddBoolToObject(item, "stdinOnce", v1_container->stdin_once) == NULL) {
goto fail; //Bool
}
}
}
// v1_container->termination_message_path
if(v1_container->termination_message_path) {
if(v1_container->termination_message_path) {
if(cJSON_AddStringToObject(item, "terminationMessagePath", v1_container->termination_message_path) == NULL) {
goto fail; //String
}
}
}
// v1_container->termination_message_policy
if(v1_container->termination_message_policy != kubernetes_v1_container_TERMINATIONMESSAGEPOLICY_NULL) {
if(cJSON_AddStringToObject(item, "terminationMessagePolicy", termination_message_policyv1_container_ToString(v1_container->termination_message_policy)) == NULL)
{
goto fail; //Enum
}
}
// v1_container->tty
if(v1_container->tty) {
if(v1_container->tty) {
if(cJSON_AddBoolToObject(item, "tty", v1_container->tty) == NULL) {
goto fail; //Bool
}
}
}
// v1_container->volume_devices
if(v1_container->volume_devices) {
if(v1_container->volume_devices) {
cJSON *volume_devices = cJSON_AddArrayToObject(item, "volumeDevices");
if(volume_devices == NULL) {
goto fail; //nonprimitive container
@@ -451,11 +450,11 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
cJSON_AddItemToArray(volume_devices, itemLocal);
}
}
}
}
// v1_container->volume_mounts
if(v1_container->volume_mounts) {
if(v1_container->volume_mounts) {
cJSON *volume_mounts = cJSON_AddArrayToObject(item, "volumeMounts");
if(volume_mounts == NULL) {
goto fail; //nonprimitive container
@@ -471,15 +470,15 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
cJSON_AddItemToArray(volume_mounts, itemLocal);
}
}
}
}
// v1_container->working_dir
if(v1_container->working_dir) {
if(v1_container->working_dir) {
if(cJSON_AddStringToObject(item, "workingDir", v1_container->working_dir) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -39,7 +39,7 @@ cJSON *v1_container_image_convertToJSON(v1_container_image_t *v1_container_image
cJSON *item = cJSON_CreateObject();
// v1_container_image->names
if(v1_container_image->names) {
if(v1_container_image->names) {
cJSON *names = cJSON_AddArrayToObject(item, "names");
if(names == NULL) {
goto fail; //primitive container
@@ -52,15 +52,15 @@ cJSON *v1_container_image_convertToJSON(v1_container_image_t *v1_container_image
goto fail;
}
}
}
}
// v1_container_image->size_bytes
if(v1_container_image->size_bytes) {
if(v1_container_image->size_bytes) {
if(cJSON_AddNumberToObject(item, "sizeBytes", v1_container_image->size_bytes) == NULL) {
goto fail; //Numeric
}
}
}
return item;
fail:

View File

@@ -66,43 +66,42 @@ cJSON *v1_container_port_convertToJSON(v1_container_port_t *v1_container_port) {
if (!v1_container_port->container_port) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "containerPort", v1_container_port->container_port) == NULL) {
goto fail; //Numeric
}
// v1_container_port->host_ip
if(v1_container_port->host_ip) {
if(v1_container_port->host_ip) {
if(cJSON_AddStringToObject(item, "hostIP", v1_container_port->host_ip) == NULL) {
goto fail; //String
}
}
}
// v1_container_port->host_port
if(v1_container_port->host_port) {
if(v1_container_port->host_port) {
if(cJSON_AddNumberToObject(item, "hostPort", v1_container_port->host_port) == NULL) {
goto fail; //Numeric
}
}
}
// v1_container_port->name
if(v1_container_port->name) {
if(v1_container_port->name) {
if(cJSON_AddStringToObject(item, "name", v1_container_port->name) == NULL) {
goto fail; //String
}
}
}
// v1_container_port->protocol
if(v1_container_port->protocol != kubernetes_v1_container_port_PROTOCOL_NULL) {
if(cJSON_AddStringToObject(item, "protocol", protocolv1_container_port_ToString(v1_container_port->protocol)) == NULL)
{
goto fail; //Enum
}
}
return item;
fail:

View File

@@ -46,7 +46,7 @@ cJSON *v1_container_state_convertToJSON(v1_container_state_t *v1_container_state
cJSON *item = cJSON_CreateObject();
// v1_container_state->running
if(v1_container_state->running) {
if(v1_container_state->running) {
cJSON *running_local_JSON = v1_container_state_running_convertToJSON(v1_container_state->running);
if(running_local_JSON == NULL) {
goto fail; //model
@@ -55,11 +55,11 @@ cJSON *v1_container_state_convertToJSON(v1_container_state_t *v1_container_state
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container_state->terminated
if(v1_container_state->terminated) {
if(v1_container_state->terminated) {
cJSON *terminated_local_JSON = v1_container_state_terminated_convertToJSON(v1_container_state->terminated);
if(terminated_local_JSON == NULL) {
goto fail; //model
@@ -68,11 +68,11 @@ cJSON *v1_container_state_convertToJSON(v1_container_state_t *v1_container_state
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container_state->waiting
if(v1_container_state->waiting) {
if(v1_container_state->waiting) {
cJSON *waiting_local_JSON = v1_container_state_waiting_convertToJSON(v1_container_state->waiting);
if(waiting_local_JSON == NULL) {
goto fail; //model
@@ -81,7 +81,7 @@ cJSON *v1_container_state_convertToJSON(v1_container_state_t *v1_container_state
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -34,11 +34,11 @@ cJSON *v1_container_state_running_convertToJSON(v1_container_state_running_t *v1
cJSON *item = cJSON_CreateObject();
// v1_container_state_running->started_at
if(v1_container_state_running->started_at) {
if(v1_container_state_running->started_at) {
if(cJSON_AddStringToObject(item, "startedAt", v1_container_state_running->started_at) == NULL) {
goto fail; //Date-Time
}
}
}
return item;
fail:

View File

@@ -62,61 +62,60 @@ cJSON *v1_container_state_terminated_convertToJSON(v1_container_state_terminated
cJSON *item = cJSON_CreateObject();
// v1_container_state_terminated->container_id
if(v1_container_state_terminated->container_id) {
if(v1_container_state_terminated->container_id) {
if(cJSON_AddStringToObject(item, "containerID", v1_container_state_terminated->container_id) == NULL) {
goto fail; //String
}
}
}
// v1_container_state_terminated->exit_code
if (!v1_container_state_terminated->exit_code) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "exitCode", v1_container_state_terminated->exit_code) == NULL) {
goto fail; //Numeric
}
// v1_container_state_terminated->finished_at
if(v1_container_state_terminated->finished_at) {
if(v1_container_state_terminated->finished_at) {
if(cJSON_AddStringToObject(item, "finishedAt", v1_container_state_terminated->finished_at) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_container_state_terminated->message
if(v1_container_state_terminated->message) {
if(v1_container_state_terminated->message) {
if(cJSON_AddStringToObject(item, "message", v1_container_state_terminated->message) == NULL) {
goto fail; //String
}
}
}
// v1_container_state_terminated->reason
if(v1_container_state_terminated->reason) {
if(v1_container_state_terminated->reason) {
if(cJSON_AddStringToObject(item, "reason", v1_container_state_terminated->reason) == NULL) {
goto fail; //String
}
}
}
// v1_container_state_terminated->signal
if(v1_container_state_terminated->signal) {
if(v1_container_state_terminated->signal) {
if(cJSON_AddNumberToObject(item, "signal", v1_container_state_terminated->signal) == NULL) {
goto fail; //Numeric
}
}
}
// v1_container_state_terminated->started_at
if(v1_container_state_terminated->started_at) {
if(v1_container_state_terminated->started_at) {
if(cJSON_AddStringToObject(item, "startedAt", v1_container_state_terminated->started_at) == NULL) {
goto fail; //Date-Time
}
}
}
return item;
fail:

View File

@@ -40,19 +40,19 @@ cJSON *v1_container_state_waiting_convertToJSON(v1_container_state_waiting_t *v1
cJSON *item = cJSON_CreateObject();
// v1_container_state_waiting->message
if(v1_container_state_waiting->message) {
if(v1_container_state_waiting->message) {
if(cJSON_AddStringToObject(item, "message", v1_container_state_waiting->message) == NULL) {
goto fail; //String
}
}
}
// v1_container_state_waiting->reason
if(v1_container_state_waiting->reason) {
if(v1_container_state_waiting->reason) {
if(cJSON_AddStringToObject(item, "reason", v1_container_state_waiting->reason) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -70,18 +70,17 @@ cJSON *v1_container_status_convertToJSON(v1_container_status_t *v1_container_sta
cJSON *item = cJSON_CreateObject();
// v1_container_status->container_id
if(v1_container_status->container_id) {
if(v1_container_status->container_id) {
if(cJSON_AddStringToObject(item, "containerID", v1_container_status->container_id) == NULL) {
goto fail; //String
}
}
}
// v1_container_status->image
if (!v1_container_status->image) {
goto fail;
}
if(cJSON_AddStringToObject(item, "image", v1_container_status->image) == NULL) {
goto fail; //String
}
@@ -91,14 +90,13 @@ cJSON *v1_container_status_convertToJSON(v1_container_status_t *v1_container_sta
if (!v1_container_status->image_id) {
goto fail;
}
if(cJSON_AddStringToObject(item, "imageID", v1_container_status->image_id) == NULL) {
goto fail; //String
}
// v1_container_status->last_state
if(v1_container_status->last_state) {
if(v1_container_status->last_state) {
cJSON *last_state_local_JSON = v1_container_state_convertToJSON(v1_container_status->last_state);
if(last_state_local_JSON == NULL) {
goto fail; //model
@@ -107,14 +105,13 @@ cJSON *v1_container_status_convertToJSON(v1_container_status_t *v1_container_sta
if(item->child == NULL) {
goto fail;
}
}
}
// v1_container_status->name
if (!v1_container_status->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_container_status->name) == NULL) {
goto fail; //String
}
@@ -124,7 +121,6 @@ cJSON *v1_container_status_convertToJSON(v1_container_status_t *v1_container_sta
if (!v1_container_status->ready) {
goto fail;
}
if(cJSON_AddBoolToObject(item, "ready", v1_container_status->ready) == NULL) {
goto fail; //Bool
}
@@ -134,22 +130,21 @@ cJSON *v1_container_status_convertToJSON(v1_container_status_t *v1_container_sta
if (!v1_container_status->restart_count) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "restartCount", v1_container_status->restart_count) == NULL) {
goto fail; //Numeric
}
// v1_container_status->started
if(v1_container_status->started) {
if(v1_container_status->started) {
if(cJSON_AddBoolToObject(item, "started", v1_container_status->started) == NULL) {
goto fail; //Bool
}
}
}
// v1_container_status->state
if(v1_container_status->state) {
if(v1_container_status->state) {
cJSON *state_local_JSON = v1_container_state_convertToJSON(v1_container_status->state);
if(state_local_JSON == NULL) {
goto fail; //model
@@ -158,7 +153,7 @@ cJSON *v1_container_status_convertToJSON(v1_container_status_t *v1_container_sta
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -54,15 +54,15 @@ cJSON *v1_controller_revision_convertToJSON(v1_controller_revision_t *v1_control
cJSON *item = cJSON_CreateObject();
// v1_controller_revision->api_version
if(v1_controller_revision->api_version) {
if(v1_controller_revision->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_controller_revision->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_controller_revision->data
if(v1_controller_revision->data) {
if(v1_controller_revision->data) {
cJSON *data_object = object_convertToJSON(v1_controller_revision->data);
if(data_object == NULL) {
goto fail; //model
@@ -71,19 +71,19 @@ cJSON *v1_controller_revision_convertToJSON(v1_controller_revision_t *v1_control
if(item->child == NULL) {
goto fail;
}
}
}
// v1_controller_revision->kind
if(v1_controller_revision->kind) {
if(v1_controller_revision->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_controller_revision->kind) == NULL) {
goto fail; //String
}
}
}
// v1_controller_revision->metadata
if(v1_controller_revision->metadata) {
if(v1_controller_revision->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_controller_revision->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -92,14 +92,13 @@ cJSON *v1_controller_revision_convertToJSON(v1_controller_revision_t *v1_control
if(item->child == NULL) {
goto fail;
}
}
}
// v1_controller_revision->revision
if (!v1_controller_revision->revision) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "revision", v1_controller_revision->revision) == NULL) {
goto fail; //Numeric
}

View File

@@ -55,18 +55,17 @@ cJSON *v1_controller_revision_list_convertToJSON(v1_controller_revision_list_t *
cJSON *item = cJSON_CreateObject();
// v1_controller_revision_list->api_version
if(v1_controller_revision_list->api_version) {
if(v1_controller_revision_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_controller_revision_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_controller_revision_list->items
if (!v1_controller_revision_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_controller_revision_list_convertToJSON(v1_controller_revision_list_t *
// v1_controller_revision_list->kind
if(v1_controller_revision_list->kind) {
if(v1_controller_revision_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_controller_revision_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_controller_revision_list->metadata
if(v1_controller_revision_list->metadata) {
if(v1_controller_revision_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_controller_revision_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_controller_revision_list_convertToJSON(v1_controller_revision_list_t *
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -58,23 +58,23 @@ cJSON *v1_cron_job_convertToJSON(v1_cron_job_t *v1_cron_job) {
cJSON *item = cJSON_CreateObject();
// v1_cron_job->api_version
if(v1_cron_job->api_version) {
if(v1_cron_job->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cron_job->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cron_job->kind
if(v1_cron_job->kind) {
if(v1_cron_job->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_cron_job->kind) == NULL) {
goto fail; //String
}
}
}
// v1_cron_job->metadata
if(v1_cron_job->metadata) {
if(v1_cron_job->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_cron_job->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -83,11 +83,11 @@ cJSON *v1_cron_job_convertToJSON(v1_cron_job_t *v1_cron_job) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cron_job->spec
if(v1_cron_job->spec) {
if(v1_cron_job->spec) {
cJSON *spec_local_JSON = v1_cron_job_spec_convertToJSON(v1_cron_job->spec);
if(spec_local_JSON == NULL) {
goto fail; //model
@@ -96,11 +96,11 @@ cJSON *v1_cron_job_convertToJSON(v1_cron_job_t *v1_cron_job) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_cron_job->status
if(v1_cron_job->status) {
if(v1_cron_job->status) {
cJSON *status_local_JSON = v1_cron_job_status_convertToJSON(v1_cron_job->status);
if(status_local_JSON == NULL) {
goto fail; //model
@@ -109,7 +109,7 @@ cJSON *v1_cron_job_convertToJSON(v1_cron_job_t *v1_cron_job) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *v1_cron_job_list_convertToJSON(v1_cron_job_list_t *v1_cron_job_list) {
cJSON *item = cJSON_CreateObject();
// v1_cron_job_list->api_version
if(v1_cron_job_list->api_version) {
if(v1_cron_job_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cron_job_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cron_job_list->items
if (!v1_cron_job_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_cron_job_list_convertToJSON(v1_cron_job_list_t *v1_cron_job_list) {
// v1_cron_job_list->kind
if(v1_cron_job_list->kind) {
if(v1_cron_job_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_cron_job_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_cron_job_list->metadata
if(v1_cron_job_list->metadata) {
if(v1_cron_job_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_cron_job_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_cron_job_list_convertToJSON(v1_cron_job_list_t *v1_cron_job_list) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -67,27 +67,26 @@ cJSON *v1_cron_job_spec_convertToJSON(v1_cron_job_spec_t *v1_cron_job_spec) {
cJSON *item = cJSON_CreateObject();
// v1_cron_job_spec->concurrency_policy
if(v1_cron_job_spec->concurrency_policy != kubernetes_v1_cron_job_spec_CONCURRENCYPOLICY_NULL) {
if(cJSON_AddStringToObject(item, "concurrencyPolicy", concurrency_policyv1_cron_job_spec_ToString(v1_cron_job_spec->concurrency_policy)) == NULL)
{
goto fail; //Enum
}
}
// v1_cron_job_spec->failed_jobs_history_limit
if(v1_cron_job_spec->failed_jobs_history_limit) {
if(v1_cron_job_spec->failed_jobs_history_limit) {
if(cJSON_AddNumberToObject(item, "failedJobsHistoryLimit", v1_cron_job_spec->failed_jobs_history_limit) == NULL) {
goto fail; //Numeric
}
}
}
// v1_cron_job_spec->job_template
if (!v1_cron_job_spec->job_template) {
goto fail;
}
cJSON *job_template_local_JSON = v1_job_template_spec_convertToJSON(v1_cron_job_spec->job_template);
if(job_template_local_JSON == NULL) {
goto fail; //model
@@ -102,34 +101,33 @@ cJSON *v1_cron_job_spec_convertToJSON(v1_cron_job_spec_t *v1_cron_job_spec) {
if (!v1_cron_job_spec->schedule) {
goto fail;
}
if(cJSON_AddStringToObject(item, "schedule", v1_cron_job_spec->schedule) == NULL) {
goto fail; //String
}
// v1_cron_job_spec->starting_deadline_seconds
if(v1_cron_job_spec->starting_deadline_seconds) {
if(v1_cron_job_spec->starting_deadline_seconds) {
if(cJSON_AddNumberToObject(item, "startingDeadlineSeconds", v1_cron_job_spec->starting_deadline_seconds) == NULL) {
goto fail; //Numeric
}
}
}
// v1_cron_job_spec->successful_jobs_history_limit
if(v1_cron_job_spec->successful_jobs_history_limit) {
if(v1_cron_job_spec->successful_jobs_history_limit) {
if(cJSON_AddNumberToObject(item, "successfulJobsHistoryLimit", v1_cron_job_spec->successful_jobs_history_limit) == NULL) {
goto fail; //Numeric
}
}
}
// v1_cron_job_spec->suspend
if(v1_cron_job_spec->suspend) {
if(v1_cron_job_spec->suspend) {
if(cJSON_AddBoolToObject(item, "suspend", v1_cron_job_spec->suspend) == NULL) {
goto fail; //Bool
}
}
}
return item;
fail:

View File

@@ -49,7 +49,7 @@ cJSON *v1_cron_job_status_convertToJSON(v1_cron_job_status_t *v1_cron_job_status
cJSON *item = cJSON_CreateObject();
// v1_cron_job_status->active
if(v1_cron_job_status->active) {
if(v1_cron_job_status->active) {
cJSON *active = cJSON_AddArrayToObject(item, "active");
if(active == NULL) {
goto fail; //nonprimitive container
@@ -65,23 +65,23 @@ cJSON *v1_cron_job_status_convertToJSON(v1_cron_job_status_t *v1_cron_job_status
cJSON_AddItemToArray(active, itemLocal);
}
}
}
}
// v1_cron_job_status->last_schedule_time
if(v1_cron_job_status->last_schedule_time) {
if(v1_cron_job_status->last_schedule_time) {
if(cJSON_AddStringToObject(item, "lastScheduleTime", v1_cron_job_status->last_schedule_time) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_cron_job_status->last_successful_time
if(v1_cron_job_status->last_successful_time) {
if(v1_cron_job_status->last_successful_time) {
if(cJSON_AddStringToObject(item, "lastSuccessfulTime", v1_cron_job_status->last_successful_time) == NULL) {
goto fail; //Date-Time
}
}
}
return item;
fail:

View File

@@ -46,18 +46,17 @@ cJSON *v1_cross_version_object_reference_convertToJSON(v1_cross_version_object_r
cJSON *item = cJSON_CreateObject();
// v1_cross_version_object_reference->api_version
if(v1_cross_version_object_reference->api_version) {
if(v1_cross_version_object_reference->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_cross_version_object_reference->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_cross_version_object_reference->kind
if (!v1_cross_version_object_reference->kind) {
goto fail;
}
if(cJSON_AddStringToObject(item, "kind", v1_cross_version_object_reference->kind) == NULL) {
goto fail; //String
}
@@ -67,7 +66,6 @@ cJSON *v1_cross_version_object_reference_convertToJSON(v1_cross_version_object_r
if (!v1_cross_version_object_reference->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_cross_version_object_reference->name) == NULL) {
goto fail; //String
}

View File

@@ -52,23 +52,23 @@ cJSON *v1_csi_driver_convertToJSON(v1_csi_driver_t *v1_csi_driver) {
cJSON *item = cJSON_CreateObject();
// v1_csi_driver->api_version
if(v1_csi_driver->api_version) {
if(v1_csi_driver->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_csi_driver->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_csi_driver->kind
if(v1_csi_driver->kind) {
if(v1_csi_driver->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_csi_driver->kind) == NULL) {
goto fail; //String
}
}
}
// v1_csi_driver->metadata
if(v1_csi_driver->metadata) {
if(v1_csi_driver->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_csi_driver->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -77,14 +77,13 @@ cJSON *v1_csi_driver_convertToJSON(v1_csi_driver_t *v1_csi_driver) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_driver->spec
if (!v1_csi_driver->spec) {
goto fail;
}
cJSON *spec_local_JSON = v1_csi_driver_spec_convertToJSON(v1_csi_driver->spec);
if(spec_local_JSON == NULL) {
goto fail; //model

View File

@@ -55,18 +55,17 @@ cJSON *v1_csi_driver_list_convertToJSON(v1_csi_driver_list_t *v1_csi_driver_list
cJSON *item = cJSON_CreateObject();
// v1_csi_driver_list->api_version
if(v1_csi_driver_list->api_version) {
if(v1_csi_driver_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_csi_driver_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_csi_driver_list->items
if (!v1_csi_driver_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_csi_driver_list_convertToJSON(v1_csi_driver_list_t *v1_csi_driver_list
// v1_csi_driver_list->kind
if(v1_csi_driver_list->kind) {
if(v1_csi_driver_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_csi_driver_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_csi_driver_list->metadata
if(v1_csi_driver_list->metadata) {
if(v1_csi_driver_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_csi_driver_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_csi_driver_list_convertToJSON(v1_csi_driver_list_t *v1_csi_driver_list
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -60,47 +60,47 @@ cJSON *v1_csi_driver_spec_convertToJSON(v1_csi_driver_spec_t *v1_csi_driver_spec
cJSON *item = cJSON_CreateObject();
// v1_csi_driver_spec->attach_required
if(v1_csi_driver_spec->attach_required) {
if(v1_csi_driver_spec->attach_required) {
if(cJSON_AddBoolToObject(item, "attachRequired", v1_csi_driver_spec->attach_required) == NULL) {
goto fail; //Bool
}
}
}
// v1_csi_driver_spec->fs_group_policy
if(v1_csi_driver_spec->fs_group_policy) {
if(v1_csi_driver_spec->fs_group_policy) {
if(cJSON_AddStringToObject(item, "fsGroupPolicy", v1_csi_driver_spec->fs_group_policy) == NULL) {
goto fail; //String
}
}
}
// v1_csi_driver_spec->pod_info_on_mount
if(v1_csi_driver_spec->pod_info_on_mount) {
if(v1_csi_driver_spec->pod_info_on_mount) {
if(cJSON_AddBoolToObject(item, "podInfoOnMount", v1_csi_driver_spec->pod_info_on_mount) == NULL) {
goto fail; //Bool
}
}
}
// v1_csi_driver_spec->requires_republish
if(v1_csi_driver_spec->requires_republish) {
if(v1_csi_driver_spec->requires_republish) {
if(cJSON_AddBoolToObject(item, "requiresRepublish", v1_csi_driver_spec->requires_republish) == NULL) {
goto fail; //Bool
}
}
}
// v1_csi_driver_spec->storage_capacity
if(v1_csi_driver_spec->storage_capacity) {
if(v1_csi_driver_spec->storage_capacity) {
if(cJSON_AddBoolToObject(item, "storageCapacity", v1_csi_driver_spec->storage_capacity) == NULL) {
goto fail; //Bool
}
}
}
// v1_csi_driver_spec->token_requests
if(v1_csi_driver_spec->token_requests) {
if(v1_csi_driver_spec->token_requests) {
cJSON *token_requests = cJSON_AddArrayToObject(item, "tokenRequests");
if(token_requests == NULL) {
goto fail; //nonprimitive container
@@ -116,11 +116,11 @@ cJSON *v1_csi_driver_spec_convertToJSON(v1_csi_driver_spec_t *v1_csi_driver_spec
cJSON_AddItemToArray(token_requests, itemLocal);
}
}
}
}
// v1_csi_driver_spec->volume_lifecycle_modes
if(v1_csi_driver_spec->volume_lifecycle_modes) {
if(v1_csi_driver_spec->volume_lifecycle_modes) {
cJSON *volume_lifecycle_modes = cJSON_AddArrayToObject(item, "volumeLifecycleModes");
if(volume_lifecycle_modes == NULL) {
goto fail; //primitive container
@@ -133,7 +133,7 @@ cJSON *v1_csi_driver_spec_convertToJSON(v1_csi_driver_spec_t *v1_csi_driver_spec
goto fail;
}
}
}
}
return item;
fail:

View File

@@ -52,23 +52,23 @@ cJSON *v1_csi_node_convertToJSON(v1_csi_node_t *v1_csi_node) {
cJSON *item = cJSON_CreateObject();
// v1_csi_node->api_version
if(v1_csi_node->api_version) {
if(v1_csi_node->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_csi_node->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_csi_node->kind
if(v1_csi_node->kind) {
if(v1_csi_node->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_csi_node->kind) == NULL) {
goto fail; //String
}
}
}
// v1_csi_node->metadata
if(v1_csi_node->metadata) {
if(v1_csi_node->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_csi_node->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -77,14 +77,13 @@ cJSON *v1_csi_node_convertToJSON(v1_csi_node_t *v1_csi_node) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_node->spec
if (!v1_csi_node->spec) {
goto fail;
}
cJSON *spec_local_JSON = v1_csi_node_spec_convertToJSON(v1_csi_node->spec);
if(spec_local_JSON == NULL) {
goto fail; //model

View File

@@ -55,7 +55,7 @@ cJSON *v1_csi_node_driver_convertToJSON(v1_csi_node_driver_t *v1_csi_node_driver
cJSON *item = cJSON_CreateObject();
// v1_csi_node_driver->allocatable
if(v1_csi_node_driver->allocatable) {
if(v1_csi_node_driver->allocatable) {
cJSON *allocatable_local_JSON = v1_volume_node_resources_convertToJSON(v1_csi_node_driver->allocatable);
if(allocatable_local_JSON == NULL) {
goto fail; //model
@@ -64,14 +64,13 @@ cJSON *v1_csi_node_driver_convertToJSON(v1_csi_node_driver_t *v1_csi_node_driver
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_node_driver->name
if (!v1_csi_node_driver->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_csi_node_driver->name) == NULL) {
goto fail; //String
}
@@ -81,14 +80,13 @@ cJSON *v1_csi_node_driver_convertToJSON(v1_csi_node_driver_t *v1_csi_node_driver
if (!v1_csi_node_driver->node_id) {
goto fail;
}
if(cJSON_AddStringToObject(item, "nodeID", v1_csi_node_driver->node_id) == NULL) {
goto fail; //String
}
// v1_csi_node_driver->topology_keys
if(v1_csi_node_driver->topology_keys) {
if(v1_csi_node_driver->topology_keys) {
cJSON *topology_keys = cJSON_AddArrayToObject(item, "topologyKeys");
if(topology_keys == NULL) {
goto fail; //primitive container
@@ -101,7 +99,7 @@ cJSON *v1_csi_node_driver_convertToJSON(v1_csi_node_driver_t *v1_csi_node_driver
goto fail;
}
}
}
}
return item;
fail:

View File

@@ -55,18 +55,17 @@ cJSON *v1_csi_node_list_convertToJSON(v1_csi_node_list_t *v1_csi_node_list) {
cJSON *item = cJSON_CreateObject();
// v1_csi_node_list->api_version
if(v1_csi_node_list->api_version) {
if(v1_csi_node_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_csi_node_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_csi_node_list->items
if (!v1_csi_node_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_csi_node_list_convertToJSON(v1_csi_node_list_t *v1_csi_node_list) {
// v1_csi_node_list->kind
if(v1_csi_node_list->kind) {
if(v1_csi_node_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_csi_node_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_csi_node_list->metadata
if(v1_csi_node_list->metadata) {
if(v1_csi_node_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_csi_node_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_csi_node_list_convertToJSON(v1_csi_node_list_t *v1_csi_node_list) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -40,7 +40,6 @@ cJSON *v1_csi_node_spec_convertToJSON(v1_csi_node_spec_t *v1_csi_node_spec) {
if (!v1_csi_node_spec->drivers) {
goto fail;
}
cJSON *drivers = cJSON_AddArrayToObject(item, "drivers");
if(drivers == NULL) {
goto fail; //nonprimitive container

View File

@@ -84,7 +84,7 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so
cJSON *item = cJSON_CreateObject();
// v1_csi_persistent_volume_source->controller_expand_secret_ref
if(v1_csi_persistent_volume_source->controller_expand_secret_ref) {
if(v1_csi_persistent_volume_source->controller_expand_secret_ref) {
cJSON *controller_expand_secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_csi_persistent_volume_source->controller_expand_secret_ref);
if(controller_expand_secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -93,11 +93,11 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_persistent_volume_source->controller_publish_secret_ref
if(v1_csi_persistent_volume_source->controller_publish_secret_ref) {
if(v1_csi_persistent_volume_source->controller_publish_secret_ref) {
cJSON *controller_publish_secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_csi_persistent_volume_source->controller_publish_secret_ref);
if(controller_publish_secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -106,29 +106,28 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_persistent_volume_source->driver
if (!v1_csi_persistent_volume_source->driver) {
goto fail;
}
if(cJSON_AddStringToObject(item, "driver", v1_csi_persistent_volume_source->driver) == NULL) {
goto fail; //String
}
// v1_csi_persistent_volume_source->fs_type
if(v1_csi_persistent_volume_source->fs_type) {
if(v1_csi_persistent_volume_source->fs_type) {
if(cJSON_AddStringToObject(item, "fsType", v1_csi_persistent_volume_source->fs_type) == NULL) {
goto fail; //String
}
}
}
// v1_csi_persistent_volume_source->node_publish_secret_ref
if(v1_csi_persistent_volume_source->node_publish_secret_ref) {
if(v1_csi_persistent_volume_source->node_publish_secret_ref) {
cJSON *node_publish_secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_csi_persistent_volume_source->node_publish_secret_ref);
if(node_publish_secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -137,11 +136,11 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_persistent_volume_source->node_stage_secret_ref
if(v1_csi_persistent_volume_source->node_stage_secret_ref) {
if(v1_csi_persistent_volume_source->node_stage_secret_ref) {
cJSON *node_stage_secret_ref_local_JSON = v1_secret_reference_convertToJSON(v1_csi_persistent_volume_source->node_stage_secret_ref);
if(node_stage_secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -150,19 +149,19 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_persistent_volume_source->read_only
if(v1_csi_persistent_volume_source->read_only) {
if(v1_csi_persistent_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_csi_persistent_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_csi_persistent_volume_source->volume_attributes
if(v1_csi_persistent_volume_source->volume_attributes) {
if(v1_csi_persistent_volume_source->volume_attributes) {
cJSON *volume_attributes = cJSON_AddObjectToObject(item, "volumeAttributes");
if(volume_attributes == NULL) {
goto fail; //primitive map container
@@ -178,14 +177,13 @@ cJSON *v1_csi_persistent_volume_source_convertToJSON(v1_csi_persistent_volume_so
}
}
}
}
}
// v1_csi_persistent_volume_source->volume_handle
if (!v1_csi_persistent_volume_source->volume_handle) {
goto fail;
}
if(cJSON_AddStringToObject(item, "volumeHandle", v1_csi_persistent_volume_source->volume_handle) == NULL) {
goto fail; //String
}

View File

@@ -63,22 +63,21 @@ cJSON *v1_csi_volume_source_convertToJSON(v1_csi_volume_source_t *v1_csi_volume_
if (!v1_csi_volume_source->driver) {
goto fail;
}
if(cJSON_AddStringToObject(item, "driver", v1_csi_volume_source->driver) == NULL) {
goto fail; //String
}
// v1_csi_volume_source->fs_type
if(v1_csi_volume_source->fs_type) {
if(v1_csi_volume_source->fs_type) {
if(cJSON_AddStringToObject(item, "fsType", v1_csi_volume_source->fs_type) == NULL) {
goto fail; //String
}
}
}
// v1_csi_volume_source->node_publish_secret_ref
if(v1_csi_volume_source->node_publish_secret_ref) {
if(v1_csi_volume_source->node_publish_secret_ref) {
cJSON *node_publish_secret_ref_local_JSON = v1_local_object_reference_convertToJSON(v1_csi_volume_source->node_publish_secret_ref);
if(node_publish_secret_ref_local_JSON == NULL) {
goto fail; //model
@@ -87,19 +86,19 @@ cJSON *v1_csi_volume_source_convertToJSON(v1_csi_volume_source_t *v1_csi_volume_
if(item->child == NULL) {
goto fail;
}
}
}
// v1_csi_volume_source->read_only
if(v1_csi_volume_source->read_only) {
if(v1_csi_volume_source->read_only) {
if(cJSON_AddBoolToObject(item, "readOnly", v1_csi_volume_source->read_only) == NULL) {
goto fail; //Bool
}
}
}
// v1_csi_volume_source->volume_attributes
if(v1_csi_volume_source->volume_attributes) {
if(v1_csi_volume_source->volume_attributes) {
cJSON *volume_attributes = cJSON_AddObjectToObject(item, "volumeAttributes");
if(volume_attributes == NULL) {
goto fail; //primitive map container
@@ -115,7 +114,7 @@ cJSON *v1_csi_volume_source_convertToJSON(v1_csi_volume_source_t *v1_csi_volume_
}
}
}
}
}
return item;
fail:

View File

@@ -60,26 +60,25 @@ cJSON *v1_custom_resource_column_definition_convertToJSON(v1_custom_resource_col
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_column_definition->description
if(v1_custom_resource_column_definition->description) {
if(v1_custom_resource_column_definition->description) {
if(cJSON_AddStringToObject(item, "description", v1_custom_resource_column_definition->description) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_column_definition->format
if(v1_custom_resource_column_definition->format) {
if(v1_custom_resource_column_definition->format) {
if(cJSON_AddStringToObject(item, "format", v1_custom_resource_column_definition->format) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_column_definition->json_path
if (!v1_custom_resource_column_definition->json_path) {
goto fail;
}
if(cJSON_AddStringToObject(item, "jsonPath", v1_custom_resource_column_definition->json_path) == NULL) {
goto fail; //String
}
@@ -89,25 +88,23 @@ cJSON *v1_custom_resource_column_definition_convertToJSON(v1_custom_resource_col
if (!v1_custom_resource_column_definition->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_custom_resource_column_definition->name) == NULL) {
goto fail; //String
}
// v1_custom_resource_column_definition->priority
if(v1_custom_resource_column_definition->priority) {
if(v1_custom_resource_column_definition->priority) {
if(cJSON_AddNumberToObject(item, "priority", v1_custom_resource_column_definition->priority) == NULL) {
goto fail; //Numeric
}
}
}
// v1_custom_resource_column_definition->type
if (!v1_custom_resource_column_definition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", v1_custom_resource_column_definition->type) == NULL) {
goto fail; //String
}

View File

@@ -43,14 +43,13 @@ cJSON *v1_custom_resource_conversion_convertToJSON(v1_custom_resource_conversion
if (!v1_custom_resource_conversion->strategy) {
goto fail;
}
if(cJSON_AddStringToObject(item, "strategy", v1_custom_resource_conversion->strategy) == NULL) {
goto fail; //String
}
// v1_custom_resource_conversion->webhook
if(v1_custom_resource_conversion->webhook) {
if(v1_custom_resource_conversion->webhook) {
cJSON *webhook_local_JSON = v1_webhook_conversion_convertToJSON(v1_custom_resource_conversion->webhook);
if(webhook_local_JSON == NULL) {
goto fail; //model
@@ -59,7 +58,7 @@ cJSON *v1_custom_resource_conversion_convertToJSON(v1_custom_resource_conversion
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -58,23 +58,23 @@ cJSON *v1_custom_resource_definition_convertToJSON(v1_custom_resource_definition
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition->api_version
if(v1_custom_resource_definition->api_version) {
if(v1_custom_resource_definition->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_custom_resource_definition->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition->kind
if(v1_custom_resource_definition->kind) {
if(v1_custom_resource_definition->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_custom_resource_definition->kind) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition->metadata
if(v1_custom_resource_definition->metadata) {
if(v1_custom_resource_definition->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_custom_resource_definition->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -83,14 +83,13 @@ cJSON *v1_custom_resource_definition_convertToJSON(v1_custom_resource_definition
if(item->child == NULL) {
goto fail;
}
}
}
// v1_custom_resource_definition->spec
if (!v1_custom_resource_definition->spec) {
goto fail;
}
cJSON *spec_local_JSON = v1_custom_resource_definition_spec_convertToJSON(v1_custom_resource_definition->spec);
if(spec_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_custom_resource_definition_convertToJSON(v1_custom_resource_definition
// v1_custom_resource_definition->status
if(v1_custom_resource_definition->status) {
if(v1_custom_resource_definition->status) {
cJSON *status_local_JSON = v1_custom_resource_definition_status_convertToJSON(v1_custom_resource_definition->status);
if(status_local_JSON == NULL) {
goto fail; //model
@@ -111,7 +110,7 @@ cJSON *v1_custom_resource_definition_convertToJSON(v1_custom_resource_definition
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -58,34 +58,33 @@ cJSON *v1_custom_resource_definition_condition_convertToJSON(v1_custom_resource_
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition_condition->last_transition_time
if(v1_custom_resource_definition_condition->last_transition_time) {
if(v1_custom_resource_definition_condition->last_transition_time) {
if(cJSON_AddStringToObject(item, "lastTransitionTime", v1_custom_resource_definition_condition->last_transition_time) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_custom_resource_definition_condition->message
if(v1_custom_resource_definition_condition->message) {
if(v1_custom_resource_definition_condition->message) {
if(cJSON_AddStringToObject(item, "message", v1_custom_resource_definition_condition->message) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition_condition->reason
if(v1_custom_resource_definition_condition->reason) {
if(v1_custom_resource_definition_condition->reason) {
if(cJSON_AddStringToObject(item, "reason", v1_custom_resource_definition_condition->reason) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition_condition->status
if (!v1_custom_resource_definition_condition->status) {
goto fail;
}
if(cJSON_AddStringToObject(item, "status", v1_custom_resource_definition_condition->status) == NULL) {
goto fail; //String
}
@@ -95,7 +94,6 @@ cJSON *v1_custom_resource_definition_condition_convertToJSON(v1_custom_resource_
if (!v1_custom_resource_definition_condition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", v1_custom_resource_definition_condition->type) == NULL) {
goto fail; //String
}

View File

@@ -55,18 +55,17 @@ cJSON *v1_custom_resource_definition_list_convertToJSON(v1_custom_resource_defin
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition_list->api_version
if(v1_custom_resource_definition_list->api_version) {
if(v1_custom_resource_definition_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_custom_resource_definition_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition_list->items
if (!v1_custom_resource_definition_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_custom_resource_definition_list_convertToJSON(v1_custom_resource_defin
// v1_custom_resource_definition_list->kind
if(v1_custom_resource_definition_list->kind) {
if(v1_custom_resource_definition_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_custom_resource_definition_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition_list->metadata
if(v1_custom_resource_definition_list->metadata) {
if(v1_custom_resource_definition_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_custom_resource_definition_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_custom_resource_definition_list_convertToJSON(v1_custom_resource_defin
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -70,7 +70,7 @@ cJSON *v1_custom_resource_definition_names_convertToJSON(v1_custom_resource_defi
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition_names->categories
if(v1_custom_resource_definition_names->categories) {
if(v1_custom_resource_definition_names->categories) {
cJSON *categories = cJSON_AddArrayToObject(item, "categories");
if(categories == NULL) {
goto fail; //primitive container
@@ -83,39 +83,37 @@ cJSON *v1_custom_resource_definition_names_convertToJSON(v1_custom_resource_defi
goto fail;
}
}
}
}
// v1_custom_resource_definition_names->kind
if (!v1_custom_resource_definition_names->kind) {
goto fail;
}
if(cJSON_AddStringToObject(item, "kind", v1_custom_resource_definition_names->kind) == NULL) {
goto fail; //String
}
// v1_custom_resource_definition_names->list_kind
if(v1_custom_resource_definition_names->list_kind) {
if(v1_custom_resource_definition_names->list_kind) {
if(cJSON_AddStringToObject(item, "listKind", v1_custom_resource_definition_names->list_kind) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition_names->plural
if (!v1_custom_resource_definition_names->plural) {
goto fail;
}
if(cJSON_AddStringToObject(item, "plural", v1_custom_resource_definition_names->plural) == NULL) {
goto fail; //String
}
// v1_custom_resource_definition_names->short_names
if(v1_custom_resource_definition_names->short_names) {
if(v1_custom_resource_definition_names->short_names) {
cJSON *short_names = cJSON_AddArrayToObject(item, "shortNames");
if(short_names == NULL) {
goto fail; //primitive container
@@ -128,15 +126,15 @@ cJSON *v1_custom_resource_definition_names_convertToJSON(v1_custom_resource_defi
goto fail;
}
}
}
}
// v1_custom_resource_definition_names->singular
if(v1_custom_resource_definition_names->singular) {
if(v1_custom_resource_definition_names->singular) {
if(cJSON_AddStringToObject(item, "singular", v1_custom_resource_definition_names->singular) == NULL) {
goto fail; //String
}
}
}
return item;
fail:

View File

@@ -63,7 +63,7 @@ cJSON *v1_custom_resource_definition_spec_convertToJSON(v1_custom_resource_defin
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition_spec->conversion
if(v1_custom_resource_definition_spec->conversion) {
if(v1_custom_resource_definition_spec->conversion) {
cJSON *conversion_local_JSON = v1_custom_resource_conversion_convertToJSON(v1_custom_resource_definition_spec->conversion);
if(conversion_local_JSON == NULL) {
goto fail; //model
@@ -72,14 +72,13 @@ cJSON *v1_custom_resource_definition_spec_convertToJSON(v1_custom_resource_defin
if(item->child == NULL) {
goto fail;
}
}
}
// v1_custom_resource_definition_spec->group
if (!v1_custom_resource_definition_spec->group) {
goto fail;
}
if(cJSON_AddStringToObject(item, "group", v1_custom_resource_definition_spec->group) == NULL) {
goto fail; //String
}
@@ -89,7 +88,6 @@ cJSON *v1_custom_resource_definition_spec_convertToJSON(v1_custom_resource_defin
if (!v1_custom_resource_definition_spec->names) {
goto fail;
}
cJSON *names_local_JSON = v1_custom_resource_definition_names_convertToJSON(v1_custom_resource_definition_spec->names);
if(names_local_JSON == NULL) {
goto fail; //model
@@ -101,18 +99,17 @@ cJSON *v1_custom_resource_definition_spec_convertToJSON(v1_custom_resource_defin
// v1_custom_resource_definition_spec->preserve_unknown_fields
if(v1_custom_resource_definition_spec->preserve_unknown_fields) {
if(v1_custom_resource_definition_spec->preserve_unknown_fields) {
if(cJSON_AddBoolToObject(item, "preserveUnknownFields", v1_custom_resource_definition_spec->preserve_unknown_fields) == NULL) {
goto fail; //Bool
}
}
}
// v1_custom_resource_definition_spec->scope
if (!v1_custom_resource_definition_spec->scope) {
goto fail;
}
if(cJSON_AddStringToObject(item, "scope", v1_custom_resource_definition_spec->scope) == NULL) {
goto fail; //String
}
@@ -122,7 +119,6 @@ cJSON *v1_custom_resource_definition_spec_convertToJSON(v1_custom_resource_defin
if (!v1_custom_resource_definition_spec->versions) {
goto fail;
}
cJSON *versions = cJSON_AddArrayToObject(item, "versions");
if(versions == NULL) {
goto fail; //nonprimitive container

View File

@@ -52,7 +52,7 @@ cJSON *v1_custom_resource_definition_status_convertToJSON(v1_custom_resource_def
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition_status->accepted_names
if(v1_custom_resource_definition_status->accepted_names) {
if(v1_custom_resource_definition_status->accepted_names) {
cJSON *accepted_names_local_JSON = v1_custom_resource_definition_names_convertToJSON(v1_custom_resource_definition_status->accepted_names);
if(accepted_names_local_JSON == NULL) {
goto fail; //model
@@ -61,11 +61,11 @@ cJSON *v1_custom_resource_definition_status_convertToJSON(v1_custom_resource_def
if(item->child == NULL) {
goto fail;
}
}
}
// v1_custom_resource_definition_status->conditions
if(v1_custom_resource_definition_status->conditions) {
if(v1_custom_resource_definition_status->conditions) {
cJSON *conditions = cJSON_AddArrayToObject(item, "conditions");
if(conditions == NULL) {
goto fail; //nonprimitive container
@@ -81,11 +81,11 @@ cJSON *v1_custom_resource_definition_status_convertToJSON(v1_custom_resource_def
cJSON_AddItemToArray(conditions, itemLocal);
}
}
}
}
// v1_custom_resource_definition_status->stored_versions
if(v1_custom_resource_definition_status->stored_versions) {
if(v1_custom_resource_definition_status->stored_versions) {
cJSON *stored_versions = cJSON_AddArrayToObject(item, "storedVersions");
if(stored_versions == NULL) {
goto fail; //primitive container
@@ -98,7 +98,7 @@ cJSON *v1_custom_resource_definition_status_convertToJSON(v1_custom_resource_def
goto fail;
}
}
}
}
return item;
fail:

View File

@@ -67,7 +67,7 @@ cJSON *v1_custom_resource_definition_version_convertToJSON(v1_custom_resource_de
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_definition_version->additional_printer_columns
if(v1_custom_resource_definition_version->additional_printer_columns) {
if(v1_custom_resource_definition_version->additional_printer_columns) {
cJSON *additional_printer_columns = cJSON_AddArrayToObject(item, "additionalPrinterColumns");
if(additional_printer_columns == NULL) {
goto fail; //nonprimitive container
@@ -83,37 +83,36 @@ cJSON *v1_custom_resource_definition_version_convertToJSON(v1_custom_resource_de
cJSON_AddItemToArray(additional_printer_columns, itemLocal);
}
}
}
}
// v1_custom_resource_definition_version->deprecated
if(v1_custom_resource_definition_version->deprecated) {
if(v1_custom_resource_definition_version->deprecated) {
if(cJSON_AddBoolToObject(item, "deprecated", v1_custom_resource_definition_version->deprecated) == NULL) {
goto fail; //Bool
}
}
}
// v1_custom_resource_definition_version->deprecation_warning
if(v1_custom_resource_definition_version->deprecation_warning) {
if(v1_custom_resource_definition_version->deprecation_warning) {
if(cJSON_AddStringToObject(item, "deprecationWarning", v1_custom_resource_definition_version->deprecation_warning) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_definition_version->name
if (!v1_custom_resource_definition_version->name) {
goto fail;
}
if(cJSON_AddStringToObject(item, "name", v1_custom_resource_definition_version->name) == NULL) {
goto fail; //String
}
// v1_custom_resource_definition_version->schema
if(v1_custom_resource_definition_version->schema) {
if(v1_custom_resource_definition_version->schema) {
cJSON *schema_local_JSON = v1_custom_resource_validation_convertToJSON(v1_custom_resource_definition_version->schema);
if(schema_local_JSON == NULL) {
goto fail; //model
@@ -122,14 +121,13 @@ cJSON *v1_custom_resource_definition_version_convertToJSON(v1_custom_resource_de
if(item->child == NULL) {
goto fail;
}
}
}
// v1_custom_resource_definition_version->served
if (!v1_custom_resource_definition_version->served) {
goto fail;
}
if(cJSON_AddBoolToObject(item, "served", v1_custom_resource_definition_version->served) == NULL) {
goto fail; //Bool
}
@@ -139,14 +137,13 @@ cJSON *v1_custom_resource_definition_version_convertToJSON(v1_custom_resource_de
if (!v1_custom_resource_definition_version->storage) {
goto fail;
}
if(cJSON_AddBoolToObject(item, "storage", v1_custom_resource_definition_version->storage) == NULL) {
goto fail; //Bool
}
// v1_custom_resource_definition_version->subresources
if(v1_custom_resource_definition_version->subresources) {
if(v1_custom_resource_definition_version->subresources) {
cJSON *subresources_local_JSON = v1_custom_resource_subresources_convertToJSON(v1_custom_resource_definition_version->subresources);
if(subresources_local_JSON == NULL) {
goto fail; //model
@@ -155,7 +152,7 @@ cJSON *v1_custom_resource_definition_version_convertToJSON(v1_custom_resource_de
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -46,18 +46,17 @@ cJSON *v1_custom_resource_subresource_scale_convertToJSON(v1_custom_resource_sub
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_subresource_scale->label_selector_path
if(v1_custom_resource_subresource_scale->label_selector_path) {
if(v1_custom_resource_subresource_scale->label_selector_path) {
if(cJSON_AddStringToObject(item, "labelSelectorPath", v1_custom_resource_subresource_scale->label_selector_path) == NULL) {
goto fail; //String
}
}
}
// v1_custom_resource_subresource_scale->spec_replicas_path
if (!v1_custom_resource_subresource_scale->spec_replicas_path) {
goto fail;
}
if(cJSON_AddStringToObject(item, "specReplicasPath", v1_custom_resource_subresource_scale->spec_replicas_path) == NULL) {
goto fail; //String
}
@@ -67,7 +66,6 @@ cJSON *v1_custom_resource_subresource_scale_convertToJSON(v1_custom_resource_sub
if (!v1_custom_resource_subresource_scale->status_replicas_path) {
goto fail;
}
if(cJSON_AddStringToObject(item, "statusReplicasPath", v1_custom_resource_subresource_scale->status_replicas_path) == NULL) {
goto fail; //String
}

View File

@@ -40,7 +40,7 @@ cJSON *v1_custom_resource_subresources_convertToJSON(v1_custom_resource_subresou
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_subresources->scale
if(v1_custom_resource_subresources->scale) {
if(v1_custom_resource_subresources->scale) {
cJSON *scale_local_JSON = v1_custom_resource_subresource_scale_convertToJSON(v1_custom_resource_subresources->scale);
if(scale_local_JSON == NULL) {
goto fail; //model
@@ -49,11 +49,11 @@ cJSON *v1_custom_resource_subresources_convertToJSON(v1_custom_resource_subresou
if(item->child == NULL) {
goto fail;
}
}
}
// v1_custom_resource_subresources->status
if(v1_custom_resource_subresources->status) {
if(v1_custom_resource_subresources->status) {
cJSON *status_object = object_convertToJSON(v1_custom_resource_subresources->status);
if(status_object == NULL) {
goto fail; //model
@@ -62,7 +62,7 @@ cJSON *v1_custom_resource_subresources_convertToJSON(v1_custom_resource_subresou
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -34,7 +34,7 @@ cJSON *v1_custom_resource_validation_convertToJSON(v1_custom_resource_validation
cJSON *item = cJSON_CreateObject();
// v1_custom_resource_validation->open_apiv3_schema
if(v1_custom_resource_validation->open_apiv3_schema) {
if(v1_custom_resource_validation->open_apiv3_schema) {
cJSON *open_apiv3_schema_local_JSON = v1_json_schema_props_convertToJSON(v1_custom_resource_validation->open_apiv3_schema);
if(open_apiv3_schema_local_JSON == NULL) {
goto fail; //model
@@ -43,7 +43,7 @@ cJSON *v1_custom_resource_validation_convertToJSON(v1_custom_resource_validation
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -33,7 +33,6 @@ cJSON *v1_daemon_endpoint_convertToJSON(v1_daemon_endpoint_t *v1_daemon_endpoint
if (!v1_daemon_endpoint->port) {
goto fail;
}
if(cJSON_AddNumberToObject(item, "Port", v1_daemon_endpoint->port) == NULL) {
goto fail; //Numeric
}

View File

@@ -58,23 +58,23 @@ cJSON *v1_daemon_set_convertToJSON(v1_daemon_set_t *v1_daemon_set) {
cJSON *item = cJSON_CreateObject();
// v1_daemon_set->api_version
if(v1_daemon_set->api_version) {
if(v1_daemon_set->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_daemon_set->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_daemon_set->kind
if(v1_daemon_set->kind) {
if(v1_daemon_set->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_daemon_set->kind) == NULL) {
goto fail; //String
}
}
}
// v1_daemon_set->metadata
if(v1_daemon_set->metadata) {
if(v1_daemon_set->metadata) {
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_daemon_set->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -83,11 +83,11 @@ cJSON *v1_daemon_set_convertToJSON(v1_daemon_set_t *v1_daemon_set) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_daemon_set->spec
if(v1_daemon_set->spec) {
if(v1_daemon_set->spec) {
cJSON *spec_local_JSON = v1_daemon_set_spec_convertToJSON(v1_daemon_set->spec);
if(spec_local_JSON == NULL) {
goto fail; //model
@@ -96,11 +96,11 @@ cJSON *v1_daemon_set_convertToJSON(v1_daemon_set_t *v1_daemon_set) {
if(item->child == NULL) {
goto fail;
}
}
}
// v1_daemon_set->status
if(v1_daemon_set->status) {
if(v1_daemon_set->status) {
cJSON *status_local_JSON = v1_daemon_set_status_convertToJSON(v1_daemon_set->status);
if(status_local_JSON == NULL) {
goto fail; //model
@@ -109,7 +109,7 @@ cJSON *v1_daemon_set_convertToJSON(v1_daemon_set_t *v1_daemon_set) {
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

View File

@@ -58,34 +58,33 @@ cJSON *v1_daemon_set_condition_convertToJSON(v1_daemon_set_condition_t *v1_daemo
cJSON *item = cJSON_CreateObject();
// v1_daemon_set_condition->last_transition_time
if(v1_daemon_set_condition->last_transition_time) {
if(v1_daemon_set_condition->last_transition_time) {
if(cJSON_AddStringToObject(item, "lastTransitionTime", v1_daemon_set_condition->last_transition_time) == NULL) {
goto fail; //Date-Time
}
}
}
// v1_daemon_set_condition->message
if(v1_daemon_set_condition->message) {
if(v1_daemon_set_condition->message) {
if(cJSON_AddStringToObject(item, "message", v1_daemon_set_condition->message) == NULL) {
goto fail; //String
}
}
}
// v1_daemon_set_condition->reason
if(v1_daemon_set_condition->reason) {
if(v1_daemon_set_condition->reason) {
if(cJSON_AddStringToObject(item, "reason", v1_daemon_set_condition->reason) == NULL) {
goto fail; //String
}
}
}
// v1_daemon_set_condition->status
if (!v1_daemon_set_condition->status) {
goto fail;
}
if(cJSON_AddStringToObject(item, "status", v1_daemon_set_condition->status) == NULL) {
goto fail; //String
}
@@ -95,7 +94,6 @@ cJSON *v1_daemon_set_condition_convertToJSON(v1_daemon_set_condition_t *v1_daemo
if (!v1_daemon_set_condition->type) {
goto fail;
}
if(cJSON_AddStringToObject(item, "type", v1_daemon_set_condition->type) == NULL) {
goto fail; //String
}

View File

@@ -55,18 +55,17 @@ cJSON *v1_daemon_set_list_convertToJSON(v1_daemon_set_list_t *v1_daemon_set_list
cJSON *item = cJSON_CreateObject();
// v1_daemon_set_list->api_version
if(v1_daemon_set_list->api_version) {
if(v1_daemon_set_list->api_version) {
if(cJSON_AddStringToObject(item, "apiVersion", v1_daemon_set_list->api_version) == NULL) {
goto fail; //String
}
}
}
// v1_daemon_set_list->items
if (!v1_daemon_set_list->items) {
goto fail;
}
cJSON *items = cJSON_AddArrayToObject(item, "items");
if(items == NULL) {
goto fail; //nonprimitive container
@@ -85,15 +84,15 @@ cJSON *v1_daemon_set_list_convertToJSON(v1_daemon_set_list_t *v1_daemon_set_list
// v1_daemon_set_list->kind
if(v1_daemon_set_list->kind) {
if(v1_daemon_set_list->kind) {
if(cJSON_AddStringToObject(item, "kind", v1_daemon_set_list->kind) == NULL) {
goto fail; //String
}
}
}
// v1_daemon_set_list->metadata
if(v1_daemon_set_list->metadata) {
if(v1_daemon_set_list->metadata) {
cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1_daemon_set_list->metadata);
if(metadata_local_JSON == NULL) {
goto fail; //model
@@ -102,7 +101,7 @@ cJSON *v1_daemon_set_list_convertToJSON(v1_daemon_set_list_t *v1_daemon_set_list
if(item->child == NULL) {
goto fail;
}
}
}
return item;
fail:

Some files were not shown because too many files have changed in this diff Show More